/* Vecnine checkpoint 53 · Batch 20
   Coverage closeout, duplicate-layer removal, tool recovery, and high-impact route polish. */
:root{--v55-orange:#e8692a;--v55-gold:#c9a96e;--v55-lavender:#b9a5d6;--v55-bg:#0a0720;--v55-ink:#f2edf7;--v55-muted:rgba(242,237,247,.62);--v55-line:rgba(201,169,110,.24)}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:6.4rem;overflow-x:hidden}
body.v53-polished{overflow-x:hidden}
body.v53-polished main,body.v53-polished section,body.v53-polished article,body.v53-polished aside,body.v53-polished nav,body.v53-polished form{min-width:0}
body.v53-polished img,body.v53-polished svg,body.v53-polished canvas,body.v53-polished video,body.v53-polished iframe{max-width:100%}
.v55-skip-link{position:fixed;z-index:100000;top:.7rem;left:.8rem;transform:translateY(-180%);padding:.72rem 1rem;border:1px solid rgba(201,169,110,.55);border-radius:.55rem;background:#fff;color:#130d27;font:800 .85rem/1 system-ui,sans-serif;text-decoration:none;box-shadow:0 10px 32px rgba(0,0,0,.38)}
.v55-skip-link:focus{transform:none}
body.v53-polished :focus-visible{outline:3px solid var(--v55-gold)!important;outline-offset:3px!important}

/* Retired routes remain useful instead of flashing an unstyled browser default. */
.v55-continuity-page{min-height:100vh;margin:0;display:grid;place-items:center;padding:clamp(1rem,5vw,3rem);background:radial-gradient(circle at 17% 14%,rgba(232,105,42,.12),transparent 27%),radial-gradient(circle at 84% 78%,rgba(185,165,214,.11),transparent 30%),#09061a;color:var(--v55-ink);font:16px/1.67 Outfit,Inter,system-ui,sans-serif}
.v55-continuity-card{width:min(720px,100%);padding:clamp(1.35rem,5vw,3.2rem);border:1px solid rgba(201,169,110,.30);border-radius:1.15rem;background:linear-gradient(145deg,rgba(232,105,42,.075),rgba(185,165,214,.07) 55%,rgba(255,255,255,.022));box-shadow:0 30px 80px rgba(0,0,0,.46);position:relative;overflow:hidden}
.v55-continuity-card::before{content:"";position:absolute;inset:0 auto auto 0;width:100%;height:3px;background:linear-gradient(90deg,var(--v55-orange),var(--v55-gold),var(--v55-lavender))}
.v55-continuity-card__eyebrow{margin:0;color:var(--v55-orange);font:750 .72rem/1.35 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.13em;text-transform:uppercase}
.v55-continuity-card h1{max-width:15ch;margin:.65rem 0 1rem;font:400 clamp(2rem,7vw,4.2rem)/.98 Fraunces,Georgia,serif;letter-spacing:-.035em}
.v55-continuity-card p{max-width:63ch;margin:.8rem 0;color:var(--v55-muted)}
.v55-continuity-card__note{padding-left:1rem;border-left:2px solid rgba(185,165,214,.55)}
.v55-continuity-action{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.72rem 1rem;border:1px solid rgba(232,105,42,.55);border-radius:.65rem;background:rgba(232,105,42,.11);color:#fff;text-decoration:none;font-weight:750}
.v55-continuity-action:hover{background:rgba(232,105,42,.19);border-color:var(--v55-orange)}

/* Existing checkpoint-34 guides remain the single orientation layer. */
body.v53-polished .vn-page-guide{margin-top:clamp(1rem,2.2vw,1.8rem);border-top-color:rgba(232,105,42,.55);box-shadow:0 14px 42px rgba(0,0,0,.13)}
body.v53-polished .vn-page-guide__nav a{min-height:42px;display:inline-flex;align-items:center}
body.v53-polished .vn-polish-next{margin-bottom:clamp(2rem,5vw,4rem)}

/* Research register: the original source order let the desktop four-column rule
   override its own mobile media query. These final rules intentionally win. */
body[data-vn-page="research"].v53-polished .research-route-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body[data-vn-page="research"].v53-polished .research-route{display:flex;flex-direction:column;min-height:164px}
body[data-vn-page="research"].v53-polished .research-route em{margin-top:auto;position:static;padding-top:12px;align-self:flex-end}
body[data-vn-page="research"].v53-polished .research-preservation{border-radius:0 .55rem .55rem 0}

/* Academy: keep the learning rail legible without letting it dominate the page. */
body[data-vn-page="courses"].v53-polished .academy-rail{border-right-color:rgba(185,165,214,.20)}
body[data-vn-page="courses"].v53-polished .v33-path-card{position:relative;overflow:hidden;min-height:190px}
body[data-vn-page="courses"].v53-polished .v33-path-card::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,var(--v55-orange),var(--v55-gold),var(--v55-lavender));opacity:.48}
body[data-vn-page="courses"].v53-polished .v33-path-number{font-variant-numeric:tabular-nums}

/* Community area tabs now read as a real state control instead of five passive links. */
body[data-vn-page="community"].v53-polished .community-space-tabs{border:1px solid rgba(185,165,214,.16);border-radius:.75rem;overflow:hidden;background:rgba(255,255,255,.018)}
body[data-vn-page="community"].v53-polished .community-space-tabs a{min-height:46px;display:flex;align-items:center;justify-content:center;position:relative}
body[data-vn-page="community"].v53-polished .community-space-tabs a::after{content:"";position:absolute;left:22%;right:22%;bottom:0;height:2px;transform:scaleX(0);background:linear-gradient(90deg,var(--v55-orange),var(--v55-lavender));transition:transform .16s ease}
body[data-vn-page="community"].v53-polished .community-space-tabs a.act::after,body[data-vn-page="community"].v53-polished .community-space-tabs a[aria-current="page"]::after{transform:scaleX(1)}
body[data-vn-page="community"].v53-polished .community-ethic{border-left:2px solid rgba(201,169,110,.62);padding-left:1rem}

/* Public entry and reading pages: clearer visual cadence, not another content block. */
body[data-vn-page="home"].v53-polished main>section,
body[data-vn-page="calculator"].v53-polished main>section,
body[data-vn-page="codex"].v53-polished main>section,
body[data-vn-page="types"].v53-polished main>section{scroll-margin-top:6.5rem}
body.v53-polished .type-card,body.v53-polished .card,body.v53-polished .panel{min-width:0}
body[data-vn-page="types"].v53-polished .type-card{transition:transform .16s ease,border-color .16s ease,background-color .16s ease}
body[data-vn-page="types"].v53-polished .type-card:hover{transform:translateY(-2px)}
body[data-vn-page="how-it-works"].v53-polished .portrait-reading,
body[data-vn-page="how-to-read-sequence"].v53-polished .vn-page-guide{border-left-color:rgba(185,165,214,.58)}

/* Atlas optional-map drawer: visible only when the final controller owns it. */
body[data-vn-page="atlas"].v53-polished>#ws-switcher-menu.ws-menu:not(.is-open),
body[data-vn-page="atlas"].v53-polished>#ws-switcher-menu.ws-menu[hidden]{display:none!important;pointer-events:none!important}
body[data-vn-page="atlas"].v53-polished>#ws-switcher-menu.ws-menu.is-open:not([hidden]){display:block!important;pointer-events:auto!important}

@media(max-width:900px){
 body[data-vn-page="research"].v53-polished .research-route-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-vn-page="courses"].v53-polished .academy-frame{grid-template-columns:1fr!important}
 body[data-vn-page="courses"].v53-polished .academy-rail{position:static!important;max-height:none!important;border-right:0;border-bottom:1px solid rgba(185,165,214,.18)}
}
@media(max-width:640px){
 html{scroll-padding-top:5.2rem}
 body[data-vn-page="research"].v53-polished .research-route-grid{grid-template-columns:1fr}
 body[data-vn-page="research"].v53-polished .research-route{min-height:0;border-right:0!important}
 body[data-vn-page="community"].v53-polished .community-space-tabs{display:flex!important;overflow-x:auto;scroll-snap-type:x proximity;border-radius:.6rem}
 body[data-vn-page="community"].v53-polished .community-space-tabs a{flex:0 0 min(42vw,145px);border-left:1px solid rgba(255,255,255,.07)!important;border-top:0!important;scroll-snap-align:start}
 body[data-vn-page="community"].v53-polished .community-space-tabs a:first-child{border-left:0!important}
 body[data-vn-page="courses"].v53-polished .v33-path-grid{grid-template-columns:1fr!important}
 body[data-vn-page="courses"].v53-polished .v33-path-card{min-height:0}
 body.v53-polished table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media(prefers-reduced-motion:reduce){body.v53-polished *,body.v53-polished *::before,body.v53-polished *::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
