:root {
  --ink:#142736;--muted:#4e6066;--paper:#f8f6f0;--surface:#fffefa;--line:#cdd3cd;--orange:#af431c;--orange-deep:#903315;--tint:#edeee5;
  --night:#162e3a;--sky:#dce7e7;--ring:#167294;
  font-family:Inter,"Avenir Next","Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-size:100%;font-synthesis:none;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--paper);font:1rem/1.55 Inter,"Avenir Next","Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
img,video{max-width:100%}a{color:inherit;text-underline-offset:.18em}button,input,select{font:inherit}button{cursor:pointer}a:hover{color:var(--orange-deep)}
:focus-visible{outline:3px solid var(--ring);outline-offset:3px}
.wrap{width:min(1200px,calc(100% - clamp(2rem,7vw,7.5rem)));margin-inline:auto}
.portal-skip{position:fixed;inset:5px auto auto 5px;padding:.65rem 1rem;background:white;transform:translateY(-160%);z-index:10}.portal-skip:focus{transform:none}
.portal-head{background:var(--paper);border-bottom:1px solid var(--line);position:relative;z-index:3}
.portal-bar{display:flex;align-items:center;gap:clamp(.65rem,2.7vw,3rem);min-height:84px}
.portal-brand{display:inline-flex;align-items:center;gap:.58rem;white-space:nowrap;color:var(--ink);font-weight:550;letter-spacing:-.055em;font-size:clamp(1.25rem,2.1vw,1.77rem);text-decoration:none;line-height:1.15}
.portal-brand strong{font-weight:780}.portal-mark{position:relative;display:flex;align-items:center;justify-content:center;gap:2px;height:34px;width:34px;border-radius:9px;background:var(--ink);flex:none;overflow:hidden}
.portal-mark i{display:block;width:4px;background:#ffb08a;transform:skew(-17deg);border-radius:1px}
.portal-mark i:nth-child(1){height:9px}.portal-mark i:nth-child(2){height:17px}.portal-mark i:nth-child(3){height:23px}
.portal-nav{display:flex;margin-inline-start:auto;align-items:center;gap:clamp(.8rem,2.2vw,2.2rem)}
.portal-nav a,.portal-foot nav a{font-size:.96rem;font-weight:600;text-decoration:none}.portal-nav a[aria-current=page]{box-shadow:inset 0 -2px var(--orange);color:var(--orange);padding-block:5px}
.portal-search{width:42px;height:42px;display:grid;place-items:center;border:1px solid #abb8b4;border-radius:50%;flex:none}
.portal-search span{display:block;width:15px;height:15px;border:2px solid currentColor;border-radius:50%;position:relative}.portal-search span::after{content:"";position:absolute;width:7px;height:2px;right:-5px;bottom:-2px;transform:rotate(45deg);background:currentColor}
.portal-foot{margin-top:clamp(3rem,7vw,7rem);background:var(--night);color:white}.portal-foot-inner{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding-block:2.5rem}.portal-foot .portal-brand,.portal-foot nav a{color:white}.portal-foot nav{display:flex;gap:1.4rem;flex-wrap:wrap}.portal-foot nav a:hover{text-decoration:underline}
h1,h2,h3{line-height:1.12;text-wrap:balance;color:inherit}h1{font-size:clamp(2.5rem,5.7vw,5.2rem);font-weight:720;letter-spacing:-.069em}h2{font-size:clamp(1.72rem,3vw,2.7rem);letter-spacing:-.047em}h3{font-size:clamp(1.16rem,1.8vw,1.5rem);letter-spacing:-.027em}
.page-intro{padding-block:clamp(2.1rem,5.7vw,5rem) 2rem}.page-intro h1{max-width:22ch;margin:.4rem 0 1.1rem}.page-intro p{max-width:67ch;font-size:clamp(1.02rem,1.5vw,1.2rem);color:var(--muted)}
main{min-height:45vh} .subtle,.muted{color:var(--muted)} .card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:clamp(1.1rem,2vw,1.7rem)}
.button,button.primary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.65rem 1.15rem;border:1px solid var(--orange);border-radius:.5rem;background:var(--orange);color:white;text-decoration:none;font-weight:700;line-height:1.3}
.button:hover,button.primary:hover{background:var(--orange-deep);color:white}
.tool-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(1rem,3.8vw,3rem);align-items:start}
.form-panel,.result-panel{min-width:0;padding:clamp(1.2rem,3vw,2.4rem);border-radius:15px}
.form-panel{background:var(--surface);border:1px solid var(--line)}.result-panel{background:var(--night);color:#fff}.result-panel .subtle,.result-panel .muted{color:#d5e0e0}.result-panel a{color:#ffd4b9}
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.field{display:flex;flex-direction:column;gap:.35rem;min-width:0}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select{max-width:100%;min-height:44px;background:white;color:var(--ink);border:1px solid #8e9b9d;border-radius:.42rem;padding:.52rem .7rem}
fieldset{min-width:0}.field label,label.field,legend{font-weight:620}.stat{font-size:clamp(2.5rem,5vw,4.4rem);font-weight:720;letter-spacing:-.06em;line-height:1.05;font-variant-numeric:tabular-nums}
.article-body{max-width:79ch;margin-block:1.7rem 3.5rem}.article-body h2{margin-top:2rem}.article-body p,.article-body li{line-height:1.72}.article-body a,.source-links a{color:var(--orange-deep)}
.crumbs,.breadcrumb{font-size:.91rem;color:var(--muted)}.crumbs a,.breadcrumb a{text-decoration:none}.crumbs a:hover,.breadcrumb a:hover{text-decoration:underline}
.portal-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem}.portal-list h2,.portal-list h3{margin:.35rem 0;font-size:1.38rem}.portal-list a{text-decoration:none;display:block;height:100%}.portal-list a:hover{border-color:var(--orange)}.portal-list p{margin-bottom:0}
@media(max-width:850px){.portal-bar{gap:.65rem;flex-wrap:wrap;padding-top:1rem;min-height:0}.portal-search{margin-inline-start:auto;width:35px;height:35px}.portal-nav{order:3;flex:0 0 100%;gap:1.25rem;overflow:auto;white-space:nowrap;margin:0;padding:.48rem 0 .72rem}.portal-nav a{font-size:.91rem}.tool-layout{grid-template-columns:1fr}.portal-foot-inner{display:block}.portal-foot nav{margin-top:1.3rem}}
@media(max-width:495px){.field-grid{grid-template-columns:1fr}.portal-nav{gap:.95rem}.portal-foot nav{display:grid;grid-template-columns:1fr 1fr}.wrap{width:calc(100% - 2rem)}}
.episode-index .card{padding:1rem 1rem 1.5rem}.episode-index img{display:block;width:100%;height:auto;max-height:300px;object-fit:contain;background:var(--night);margin-bottom:1rem;border-radius:8px}.finder{max-width:760px}.finder>div{display:flex;gap:.65rem;margin-top:.4rem}.finder input{flex:1;min-width:0}.article-body :where(h2,h3){scroll-margin-top:1rem}
