:root {
  --blue: #2236c9;
  --navy: #18259a;
  --ink: #10131c;
  --muted: #50586b;
  --line: #daddE7;
  --paper: #f4f5f7;
  --marker: #ffe55c;
  --mono: "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box }
body.inner { margin: 0; color: var(--ink); background: white; font: 1rem/1.58 Manrope,system-ui,sans-serif; }
.inner a { color: inherit }
.inner :focus-visible { outline: 3px solid #4862fa; outline-offset: 4px }
.inner h1,.inner h2,.inner h3,.inner p { margin: 0 }
.inner h1,.inner h2,.inner h3 { text-wrap: balance }
.inner .frame { width: min(100% - clamp(2.5rem,8vw,8rem),76rem); margin-inline: auto }
.inner .skip { position: fixed; top: -8rem; left: 1rem; z-index: 99; padding: .65rem 1rem; background: white }
.inner .skip:focus { top: .5rem }
.inner-head { border-bottom: 1px solid var(--line); background: white; position: relative; z-index: 10 }
.inner-bar { position:relative; display:flex; align-items:center; min-height:4.5rem; gap:clamp(.8rem,3vw,2.4rem); font-family:var(--menu-font) }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.65rem; font-weight: 800; line-height: 1; letter-spacing: -.07em; text-decoration: none }
.bars { display: inline-flex; align-items: end; width: 1.8rem; height: 1.4rem; gap: .16rem }
.bars i { flex: 1; background: var(--ink); height: 33%; border-radius: 1px }
.bars i:nth-child(2) { height: 50% }.bars i:nth-child(3) { height: 67% }.bars i:nth-child(4) { height: 83%; background: var(--blue) }.bars i:nth-child(5) { height: 100%; background: #c9cdd8 }
.inner-nav { margin-left:auto }
.inner-nav summary { display:flex; gap:.55rem; align-items:center; min-height:44px; list-style:none; padding:.45rem .25rem; cursor:pointer; font-size:1.05rem; font-weight:720; letter-spacing:-.02em }
.inner-nav summary::-webkit-details-marker { display: none }
.inner-nav summary::after { content:""; display:inline-block; width:.43rem; height:.43rem; margin:0 .18rem .2rem 0; border:solid currentColor; border-width:0 1.6px 1.6px 0; transform:rotate(45deg) }
.inner-nav[open] summary::after { transform: rotate(225deg); margin-bottom: 0 }
.inner-menu { position:absolute; right:0; top:calc(100% + .25rem); width:min(41rem,100%); display:grid; grid-template-columns:1fr 1.2fr; gap:1.25rem; padding:1.2rem; max-height:calc(100vh - 5.4rem); max-height:calc(100dvh - 5.4rem); overflow-y:auto; overscroll-behavior:contain; background:white; box-shadow:0 12px 40px #10131c22; border:1px solid var(--line); border-radius:1rem }
.inner-menu b { display: block; margin: .2rem .5rem .5rem; color: var(--muted); font-size: .86rem }
.inner-menu a { display:flex; align-items:center; min-height:44px; padding:.5rem; border-radius:.45rem; text-decoration:none; font-size:1rem; font-weight:650; letter-spacing:-.016em; line-height:1.35; overflow-wrap:break-word }
.inner-menu a:hover,.inner-menu [aria-current=page] { color: var(--blue); background: #eef0ff }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .65rem 1.25rem; border-radius: 3rem; background: var(--blue); color: white!important; font-weight: 700; text-decoration: none; transition: background .18s,transform .18s }
.pill:hover { background: var(--navy); transform: translateY(-2px) }
.inner .bread { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 1.4rem 0; font-size: .88rem; color: var(--muted) }
.bread a { text-underline-offset: .2rem }
.feature-top { background: var(--paper); padding-bottom: clamp(2.6rem,6vw,5.5rem) }
.feature-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(16rem,.8fr); align-items: center; gap: clamp(2rem,5vw,5rem); padding-top: clamp(1.6rem,4vw,3.9rem) }
.inner .kicker { font: 600 .82rem/1.4 var(--mono); letter-spacing: .085em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.05rem }
.inner h1 { font-size: clamp(2.25rem,4.8vw,4.6rem); line-height: 1.06; letter-spacing: -.057em; font-weight: 750; overflow-wrap: break-word }
.inner .lead { max-width: 44rem; margin-top: 1.25rem; color: var(--muted); font-size: clamp(1.06rem,1.45vw,1.28rem); line-height: 1.55 }
.sheet { color: white; background: var(--navy); border-radius: 1.1rem; padding: clamp(1.3rem,3.4vw,2.5rem); box-shadow: 0 .7rem 0 -.33rem #cdd2f1 }
.sheet .cap { color: #d9ddff; font: .82rem/1.4 var(--mono) }
.sheet h2 { font-size: clamp(1.45rem,2.5vw,2.1rem); line-height: 1.15; letter-spacing: -.04em; margin: .65rem 0 1.25rem }
.sheet dl { margin: 0 }
.sheet dl div { display: grid; grid-template-columns: minmax(5.2rem,.64fr) 1fr; gap: 1rem; border-top: 1px solid #6672ca; padding: .68rem 0 }
.sheet dt { color: #e3e6ff; font-size: .87rem }.sheet dd { margin: 0; font-weight: 650; line-height: 1.4 }
.sheet dl div:last-child dd span { background: var(--marker); color: var(--ink); padding: .06rem .28rem; box-decoration-break: clone; -webkit-box-decoration-break: clone }
.inner main { padding: 0 }
.inner .chapter { padding-block: clamp(3rem,6.8vw,6rem) }
.inner .chapter + .chapter { border-top: 1px solid var(--line) }
.inner .spread { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: clamp(1.6rem,5.3vw,5.5rem) }
.inner .chapter h2,.related h2,.inner-foot h2 { font-size: clamp(1.8rem,3.35vw,3.25rem); line-height: 1.1; letter-spacing: -.05em }
.inner .chapter h3 { font-size: 1.18rem; line-height: 1.35; letter-spacing: -.02em }
.inner .copy { font-size: clamp(1.05rem,1.3vw,1.19rem); max-width: 49rem }
.inner .copy p+p { margin-top: .85rem }
.route-list { list-style: none; padding: 0; margin: 0; counter-reset: step }
.route-list li { position: relative; padding: 0 0 1.4rem 2.55rem; counter-increment: step }
.route-list li::before { content: counter(step); position: absolute; top: .07rem; left: 0; width: 1.65rem; height: 1.65rem; display: grid; place-items:center; border-radius: 50%; background:#e9edff; color:var(--blue); font: 600 .85rem var(--mono); z-index:1 }
.route-list li:not(:last-child)::after { content:""; position:absolute; left:.8rem; top:1.65rem; bottom:-.15rem; width:1px; background:#c5cbeb }
.route-list li:last-child { padding-bottom: 0 }.route-list p,.pair p { margin-top: .35rem; color: var(--muted) }
.pair { padding: 1.1rem 0; border-top: 1px solid var(--line) }
.pair:first-child { padding-top: 0; border: 0 }
.switcher { margin:0; min-width:0; border:0; padding:0 }
.switcher legend { padding:0; margin-bottom:.75rem; font-size:.92rem; color:var(--muted) }
.switcher input { position:absolute; opacity:0; width:1px; height:1px }
.switcher label { cursor:pointer; display:inline-block; padding:.46rem .9rem; border:1px solid #c6cadc; border-radius:2rem; margin:0 .25rem .75rem 0; font-weight:700 }
.switcher input:checked+label { background:var(--blue); color:white; border-color:var(--blue) }
.switcher input:focus-visible+label { outline:3px solid var(--blue); outline-offset:3px }
.switcher .example-route { display:none; margin:.4rem 0 0; padding:1.1rem 1.25rem; background:var(--paper); border-radius:.8rem }
#quick:checked~.quick,#long:checked~.long { display:block }
.example-route ol { margin:0; padding-left:1.35rem }.example-route li+li { margin-top:.5rem }
.related { background: var(--paper); padding-block: clamp(2.5rem,5vw,4.5rem) }
.related-list { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:1.4rem }
.related-list a { background:white; border:1px solid #cdd1dd; border-radius:1.8rem; padding:.6rem 1rem; text-decoration:none; font-weight:650; transition:border-color .18s,color .18s }
.related-list a:hover { border-color:var(--blue); color:var(--blue) }
.inner .context-link { color:var(--blue); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.17em; text-decoration-color:#96a1ed }
.inner .context-link:hover { color:var(--navy); text-decoration-color:currentColor }
.inner .page-nav { margin-top:1.3rem; padding-top:.8rem; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:0 1.2rem; align-items:center }
.page-nav span { width:100%; color:var(--muted); font-size:.88rem; margin:0 0 .23rem }
.inner .page-nav a { display:inline-flex; align-items:center; min-height:2.7rem; color:var(--blue); font-weight:650; line-height:1.35; text-decoration:underline; text-decoration-color:#adb5ee; text-underline-offset:.2rem }
.inner .page-nav a:hover { text-decoration-color:currentColor }
.inner .chapter h2[id] { scroll-margin-top:1.4rem }
.inner .next-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap:1rem; margin-top:1.5rem }
.inner .next-cards a { display:block; padding:clamp(1.15rem,2.5vw,2rem); border:1px solid var(--line); border-radius:.9rem; background:#fff; text-decoration:none; transition:border-color .16s }
.next-cards strong { display:block; color:var(--blue); font-size:clamp(1.12rem,2vw,1.4rem); line-height:1.28; letter-spacing:-.025em }
.next-cards span { display:block; max-width:46ch; margin-top:.62rem; color:var(--muted); line-height:1.5 }
.inner .next-cards a:hover,.inner .next-cards a:focus-visible { border-color:var(--blue) }
.next-cards a:hover strong { text-decoration:underline; text-underline-offset:.15em }
.inner-foot { background: var(--navy); color: white; padding-block: clamp(2.5rem,5.5vw,5rem) }
.foot-line { display:flex; align-items:center; justify-content:space-between; gap:2rem }
.inner-foot h2 { max-width:32rem }.inner-foot .pill { background:var(--marker); color:var(--ink)!important; flex:none }
.inner-foot .pill:hover { background:white }.inner-foot .home-link { display:inline-block; margin-top:1.8rem; color:#e1e5ff; text-underline-offset:.25rem }
@media(max-width:760px) {
  .inner .frame { width:auto; margin-left:max(clamp(1rem,4.9vw,1.45rem),env(safe-area-inset-left)); margin-right:max(clamp(1rem,4.9vw,1.45rem),env(safe-area-inset-right)) }.inner .inner-head div,.inner .inner-menu div { padding-inline:0 }
  .inner-bar { gap:clamp(.4rem,2vw,.9rem); min-height:3.95rem }.wordmark { font-size:1.45rem; min-height:44px }.bars { width:1.35rem }
  .inner-bar>.pill { font-size:.94rem; padding:.55rem .85rem; min-height:44px; white-space:nowrap; letter-spacing:-.025em }
  .inner-menu { top:100%; right:0; left:0; width:auto; padding:.88rem; max-height:calc(100vh - 4.8rem); max-height:calc(100dvh - 4.8rem - env(safe-area-inset-bottom)); gap:1rem }
  .feature-grid,.inner .spread { grid-template-columns:1fr }
  .feature-grid { padding-top:.85rem; gap:1.5rem }.inner .bread { font-size:.875rem; line-height:1.4; gap:.25rem .45rem; padding:.65rem 0 }
  .inner .bread a { display:inline-flex; align-items:center; min-height:36px }
  .inner .chapter { padding-block:clamp(2.25rem,7.8vw,3.65rem) }
  .inner .chapter h2,.inner-foot h2,.inner .related h2 { font-size:clamp(1.6rem,6.3vw,2.25rem); line-height:1.17; letter-spacing:-.04em; overflow-wrap:break-word }
  .inner .page-nav { gap:.16rem 1rem }.inner .page-nav a { min-height:44px; line-height:1.45 }
  .inner .sheet dd,.inner .sheet dt,.inner .copy { overflow-wrap:break-word }
  .inner .sheet dl div { grid-template-columns:minmax(0,.76fr) minmax(0,1.24fr) }
  .inner .kicker { font-size:.8rem; margin-bottom:.65rem }.inner .lead { margin-top:.95rem; font-size:1.05rem }
  .inner .next-cards { gap:.72rem }.inner .related-list a { line-height:1.45; min-height:44px }
  .foot-line { align-items:flex-start; flex-direction:column; gap:1.1rem }.inner-foot .home-link { display:inline-flex; align-items:center; min-height:44px; margin-top:1rem }
  .inner h1 { font-size:clamp(2rem,7.8vw,3rem); letter-spacing:-.045em; line-height:1.12 }
}
@media(max-width:440px) {
  .inner-menu { grid-template-columns:1fr; gap:.72rem }
  .inner .sheet dl div { gap:.65rem }.route-list li { padding-left:2.2rem }
  .inner .sheet { padding:1.15rem 1.22rem }
}
@media(max-width:360px) {
  .inner-bar>.pill { font-size:.875rem; padding-inline:.65rem }.inner-nav summary { font-size:.98rem; gap:.32rem }.wordmark { gap:.35rem }
}
