.portal-head {border-bottom:1px solid var(--rule);background:var(--surface)}
.portal-brand {background:var(--green);color:#130d0c}
.portal-brand .portal-wrap {display:flex;min-height:62px;align-items:center;justify-content:space-between;gap:12px}
.portal-brand img {width:175px;height:auto}
.portal-actions {display:flex;align-items:center;gap:12px;white-space:nowrap}
.portal-brand a,.portal-brand button {color:#130d0c}
.portal-lang {font-size:.86rem;font-weight:850}
.portal-wrap {width:min(1370px,calc(100% - 80px));margin-inline:auto}
.portal-tabs,.portal-tools {display:flex;align-items:center;gap:6px;overflow-x:auto}
.portal-tabs {min-height:56px}
.portal-tabs a,.portal-tools a {color:var(--ink);font-size:.88rem;font-weight:800;text-decoration:none;white-space:nowrap;border-radius:7px;padding:8px 12px}
.portal-tabs a[aria-current],.portal-tools a[aria-current] {background:#d9f2e2;color:#105630}
.portal-tabs a:hover,.portal-tools a:hover {text-decoration:underline}
.portal-frame-mode {display:grid;grid-template-rows:auto auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);height:100dvh;overflow:hidden}
.portal-bar {border-bottom:1px solid var(--rule);background:var(--paper)}
.portal-bar-inner {display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:45px}
.portal-bar-inner > a {flex:none;font-size:.83rem;font-weight:750}
.portal-frame-mode #portal-pages {min-height:0;overflow:hidden}
.portal-frame-mode iframe {display:block;width:100%;height:100%;border:0;background:var(--paper)}
.portal-home {padding-top:26px}
.portal-home .hero {padding:18px 0 26px;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
.portal-home .hero-image {background:#e8eeeb}
.portal-home .hero-image img {aspect-ratio:1.6}
.portal-home .hero-copy p {max-width:51ch}
.portal-section {padding:32px 0 24px;border-top:1px solid var(--rule)}
.portal-section > h1 {font-size:clamp(2.25rem,5vw,4.3rem)}
.portal-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0 8px}
.portal-card {border:1px solid var(--rule);border-radius:10px;padding:16px;background:var(--surface)}
.portal-card h2,.portal-card h3 {margin:.12rem 0 .6rem;font-size:1.12rem}
.portal-card p {color:var(--muted);font-size:.91rem;margin-bottom:.5rem}
.portal-card a {font-weight:800}
.portal-list {margin:.3rem 0 0;padding-left:1.25rem}
.portal-list li {margin:.42rem 0}
.portal-archives {display:grid;gap:12px;margin:22px 0}
.portal-archive {display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:6px 13px;padding:12px;border-bottom:1px solid var(--rule)}
.portal-archive strong {overflow-wrap:anywhere}
.portal-archive code {font-size:.77rem;overflow-wrap:anywhere;color:var(--muted)}
.portal-size {color:var(--muted);font-size:.89rem}
.portal-skip {position:absolute;left:16px;top:8px;padding:8px;z-index:2;background:var(--surface);transform:translateY(-160%)}
.portal-skip:focus {transform:none}
@media(max-width:930px) {.portal-wrap {width:calc(100% - 32px)}.portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-tabs a{padding-inline:10px}}
@media(max-width:630px) {.portal-home .hero,.portal-grid {grid-template-columns:1fr}.portal-home .hero{gap:14px}.portal-brand img{width:144px}.portal-brand .portal-wrap{min-height:55px}.portal-tabs{min-height:44px;flex-wrap:wrap;overflow-x:visible;gap:2px;padding-block:4px}.portal-tabs a,.portal-tools a{font-size:.8rem;padding:6px 8px}.portal-bar-inner{min-height:38px;gap:8px}.portal-bar-inner > a{font-size:.74rem}.portal-section{padding:20px 0}}

