:root{color-scheme:light;--ink:#1d1d1f;--sub:#565660;--blue:#0066cc;--surface:#fff;--shell:#f5f5f7;--line:#dedee5;--selection:#e8f1ff;--radius:18px;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--shell)}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
button,input,textarea{font:inherit;color:inherit}
a{color:var(--blue)}
button,a,input,textarea,summary{outline-offset:3px}
:focus-visible{outline:2px solid var(--blue)}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.55}
.button[aria-disabled="true"]{opacity:.55;cursor:default}
svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.symbols{position:absolute;width:0;height:0;overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.startup{padding:30px;text-align:center}
.auth{min-height:100svh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at top,#e6effd,transparent 66%),var(--shell)}
.auth-card{width:min(100%,450px);padding:clamp(22px,6vw,38px);background:#fff;border:1px solid #ffffffc9;border-radius:24px;box-shadow:0 15px 60px #283c6e18}
.brand-mark{width:52px;height:52px;display:grid;place-items:center;background:linear-gradient(145deg,#237be0,#0554b2);color:#fff;border-radius:15px;box-shadow:0 4px 12px #1265c52b}
.brand-mark svg{width:28px;height:28px}
.brand-mark.small{width:38px;height:38px;border-radius:11px}
.small svg{width:22px;height:22px}
.brand-label{font-weight:600;color:var(--sub);margin:20px 0 8px}
h1,h2,p{margin:0}
h1{font-size:clamp(29px,4vw,47px);letter-spacing:-.035em;line-height:1.1}
.auth h1{font-size:33px}
#auth-hint{color:var(--sub);margin:12px 0 25px}
label{display:block;font-size:14px;font-weight:600}
input,textarea{display:block;width:100%;min-width:0;background:#fff;border:1px solid #c9cad4;border-radius:10px;padding:10px 12px;min-height:44px;font-size:16px}
#auth-form input:not(.sr-only){margin:5px 0 12px}
.auth .primary{width:100%}
.error{color:#ab1830}
.error:not(:empty){margin-bottom:10px}
.site-link{display:inline-flex;gap:5px;align-items:center;margin-top:18px}
.button{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 14px;border-radius:10px;text-decoration:none;font-weight:600;font-size:14px;white-space:normal;transition:background-color .18s,color .18s}
.primary{background:var(--blue);color:#fff}
.primary:hover{background:#0055ac}
.secondary{color:var(--ink);background:#fff;border-color:var(--line)}
.secondary:hover,.ghost:hover{background:#e9e9ef}
.ghost{background:transparent;color:var(--blue)}
.workspace{--cabinet-header-height:72px;display:grid;grid-template-columns:minmax(235px,280px) minmax(0,1fr);grid-template-rows:auto 1fr;min-height:100svh}
.topbar{position:sticky;top:0;z-index:3;grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:70px;padding:10px 24px;background:#ffffffeb;backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.identity,.header-actions,.page-meta,.title-row,.action-buttons{display:flex;align-items:center;gap:10px}
.identity strong,.identity span{display:block}
.identity span{font-size:12px;color:var(--sub)}
.sidebar{background:#ededf2;border-right:1px solid var(--line);position:sticky;top:var(--cabinet-header-height);height:calc(100svh - var(--cabinet-header-height));overflow:auto}
.sidebar-header{padding:23px 16px 10px}
.sidebar h2,.content-heading h2{font-size:20px;letter-spacing:-.02em}
.segmented{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#dfe0e7;border-radius:12px;padding:3px;margin:12px 0}
.segmented button{background:transparent;border:0;border-radius:9px;min-height:44px;padding:4px;font-size:13px;font-weight:600}
.segmented button[aria-pressed="true"]{background:#fff;box-shadow:0 1px 4px #20204018}
.search{position:relative}
.search svg{position:absolute;left:10px;top:12px;color:var(--sub)}
.search input{padding-left:34px}
#pages{padding:0 12px 18px}
.nav-group{margin:14px 6px 4px;color:var(--sub);font-size:13px;font-weight:600}
.nav-item{display:flex;align-items:center;text-align:left;width:100%;gap:7px;min-height:44px;padding:7px 10px;border:0;border-radius:9px;background:transparent;overflow-wrap:anywhere}
.nav-item:hover{background:#e2e3ea}
.nav-item[aria-current="page"]{background:#dbe9ff;color:#004b9e;font-weight:650}
.nav-item svg{width:16px}
.nav-item .dot{font-size:12px;margin-left:auto;color:#574244}
.editor{width:min(100%,1180px);margin:0 auto;padding:clamp(22px,3.2vw,36px) clamp(16px,4vw,60px) 55px;min-width:0}
.editor:focus{outline:0}
.page-heading{margin-bottom:16px}
.breadcrumbs,.page-meta,.action-info,.history,.status{color:var(--sub)}
.breadcrumbs span{margin:0 4px}
.title-row{justify-content:space-between;align-items:flex-start;margin:10px 0 13px}
.title-row h1{overflow-wrap:anywhere}
.title-row>a{flex:none}
.release-editor .title-row{align-items:center;margin:0 0 20px}
.release-title-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.release-title-actions .button{white-space:nowrap}
.release-title-actions .button svg{width:16px;height:16px}
.release-title-actions .button.secondary{color:var(--blue)}
.page-meta{flex-wrap:wrap;font-size:13px}
code{color:var(--sub);overflow-wrap:anywhere}
.badge{background:#e7e7ec;color:#3f3f48;padding:3px 9px;border-radius:30px;font-weight:600}
.badge.draft{background:#fff1d5;color:#644500}
.badge.published{background:#dcf4e7;color:#175334}
.actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:22px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#fff}
.action-buttons{flex-wrap:wrap}
.action-info{font-size:13px}
.status{min-height:24px;margin:9px 0}
.status[data-error]{color:#ab1830}
.status:empty{position:absolute;width:1px;height:1px;min-height:0;margin:0;overflow:hidden}
.notice{padding:12px 16px;background:#fff1d5;border-radius:12px;margin:16px 0;color:#644500}
.content-heading{display:flex;gap:12px;align-items:end;justify-content:space-between;margin:12px 0}
.content-heading label{width:min(100%,320px);color:var(--sub)}
.content-heading input{margin-top:3px}
fieldset{border:0;margin:0;padding:0;min-width:0}
details{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);margin-bottom:12px}
summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:11px 17px;font-size:16px;font-weight:650;overflow-wrap:anywhere}
summary::-webkit-details-marker{display:none}
summary::after{content:'';width:8px;height:8px;border-bottom:2px solid var(--sub);border-right:2px solid var(--sub);transform:rotate(45deg);flex:none;margin-right:3px}
details[open] summary::after{transform:rotate(225deg)}
.fields-body{padding:0 17px 16px}
.field{display:block;padding-top:12px}
.field textarea,.field input{margin-top:5px}
textarea{resize:vertical;line-height:1.5}
.history{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:740px){
 .workspace{grid-template-columns:1fr;grid-template-rows:auto auto 1fr}
 .topbar{position:relative;padding:10px 12px;align-items:flex-start}
 .identity span{display:none}
 .header-actions{gap:2px}
 .header-actions .button{padding:5px 8px}
 .sidebar{position:relative;top:auto;height:auto;border:0;border-bottom:1px solid var(--line)}
 #pages{max-height:200px;overflow:auto}
 .sidebar-header{padding-top:12px}
 .editor{padding-top:20px}
 .title-row{flex-wrap:wrap}
 .content-heading{align-items:start;flex-direction:column}
 .content-heading label{width:100%;max-width:none}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}

.workspace-tabs{display:flex;gap:3px;padding:3px;background:#f0f0f5;border:1px solid #e7e7ed;border-radius:12px}
.workspace-tabs .button{background:transparent;color:var(--sub)}
.workspace-tabs .button:not([aria-current="page"]):hover{background:#e9ebf1}
.workspace-tabs [aria-current="page"]{background:#fff;color:#004b9e;box-shadow:0 1px 3px #20204421}
.skip-to-editor{position:fixed;left:14px;top:12px;padding:10px 14px;z-index:5;background:var(--surface);border-radius:8px;transform:translateY(-180%)}
.skip-to-editor:focus{transform:none}
.mobile-picker{display:none}
.page-nav-group{border:0;background:transparent;margin:5px 0}
.page-nav-group summary{min-height:44px;padding:7px 10px;font-size:13px;text-transform:none;color:var(--sub)}
.page-nav-group summary::after{width:6px;height:6px}
.nav-count{margin-left:auto;font-size:12px;font-weight:650;color:var(--sub);font-variant-numeric:tabular-nums}
.release-workspace{grid-column:1/-1;display:grid;grid-template-columns:minmax(235px,280px) minmax(0,1fr)}
.release-sidebar .sidebar-header{padding-bottom:12px}
#release-list{padding:0 12px 18px}
#release-list .nav-item{justify-content:flex-start}
.release-sheet,.release-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:16px}
.release-card-body{padding:8px 18px 18px}
.release-sheet{margin-top:12px}
.release-sheet summary{min-height:56px}
.release-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.release-grid select{display:block;width:100%;min-height:44px;margin-top:5px;padding:7px;border:1px solid #c9cad4;border-radius:10px;background:#fff;font:inherit}
.release-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 12px}
.release-heading h2{display:flex;align-items:center;gap:10px;font-size:24px}
.count-chip{border-radius:20px;min-width:26px;text-align:center;padding:2px 7px;background:#e8e8ef;color:var(--sub);font-size:12px}
.article-search{padding:0;margin:0 0 14px;max-width:360px}
.article-empty{color:var(--sub);padding:20px 0}
.release-card{margin-bottom:8px}
.release-card[open]{border-color:#b9cce9;box-shadow:0 4px 18px #203a6410}
.release-card>summary{justify-content:flex-start;font-size:15px;font-weight:600}
.release-card>summary::after{margin-left:auto}
.article-editor-number{font-size:12px;flex:none;color:#425369;background:#edf1f7;padding:4px 8px;border-radius:7px}
.article-editor-title{line-height:1.4;overflow-wrap:anywhere}
.article-editor-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:3px;border:1px solid #e0e4ea;background:#f1f3f7;border-radius:12px;margin:8px 0 10px}
.article-tab{flex:1 0 auto;color:var(--sub);background:transparent;min-width:84px}
.article-tab[aria-pressed="true"]{background:white;color:#004b9e;box-shadow:0 1px 4px #20204018}
.article-languages{width:min(100%,305px);margin:0 0 8px}
.article-editor-pane{max-width:820px}
.article-editor-pane .field{padding-top:10px}
.release-preview-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 4px}
.release-preview-links span{color:var(--sub);font-weight:600;margin-right:4px}
.article-links-fields{background:#f5f6fa;border:1px solid var(--line);border-radius:12px;padding:12px;margin:8px 0}
.citation-editor textarea{min-height:118px}
.citation-editor-tools{display:flex;align-items:center;justify-content:space-between;gap:6px 12px;flex-wrap:wrap}
.media-field{min-width:0;padding-bottom:8px}
.media-field input{margin-top:5px}
.media-field input::file-selector-button{padding:4px 8px;border:0;border-radius:6px;background:#e8f1ff;color:#004b9e;font:inherit}
.media-name{color:var(--sub);font-size:13px;overflow-wrap:anywhere;margin-top:4px}
.contact-editor{grid-column:1/-1;width:min(100%,900px)}
.contact-intro{max-width:62ch;color:var(--sub)}
.contact-form{display:grid;justify-items:start;max-width:560px;width:100%;gap:9px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:clamp(16px,4vw,24px);margin-top:20px}
.contact-form .button{margin-top:6px}
.contact-addresses{display:grid;width:100%;padding-top:8px;gap:8px;margin-top:12px;border-top:1px solid var(--line)}
.contact-addresses legend{font-size:16px;font-weight:650;padding:0 8px 0 0}
.contact-addresses label:not(:first-of-type){margin-top:6px}
.contact-editor .status:not(:empty){margin-top:12px}
.bound-contact-hint{font-size:13px;color:var(--sub);margin-top:5px}
.field :is(input,textarea)[readonly]{background:#f5f5f8;color:#474750}
.editor-actions{position:sticky;top:calc(var(--cabinet-header-height) + 6px);z-index:1;box-shadow:0 4px 18px #20284013;margin:0 0 16px}
.editor-actions .status{flex:0 0 100%;margin:0;font-size:13px;min-height:0}
.editor-actions .status:empty{position:absolute}
.release-actions .action-info{font-weight:650}
.action-buttons .button{white-space:nowrap}
.editor :is(input,textarea,summary,button){scroll-margin-top:calc(var(--cabinet-header-height) + 84px)}
@media(max-width:740px){
 .workspace{grid-template-rows:auto auto 1fr}
 .topbar{display:grid;grid-template-columns:1fr auto;align-items:center;min-height:0}
 .workspace-tabs{grid-row:2;grid-column:1/-1;width:100%}
 .workspace-tabs .button{flex:1;min-width:0;padding:5px 7px;font-size:13px}
 .mobile-picker{display:inline-flex;justify-self:start;margin:12px 16px 0;min-height:44px}
 .mobile-picker[aria-expanded="false"] + .sidebar{display:none}
 .sidebar{top:auto;height:auto}
 .release-workspace{grid-template-columns:1fr}
 #release-list{max-height:180px;overflow:auto}
 .release-title-actions{width:100%}
 .release-editor .title-row{gap:10px;margin-bottom:14px}
 .editor-actions{top:4px;margin-bottom:12px}
 .editor :is(input,textarea,summary,button){scroll-margin-top:145px}
 .editor-actions .action-buttons{gap:6px}
 .release-actions .action-buttons{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .release-actions .action-buttons .button{padding:6px 8px;font-size:13px}
 .editor-actions .button{white-space:normal}
 .release-card-body{padding:6px 12px 14px}
}
@media(max-width:470px){
 .release-grid{grid-template-columns:1fr}
 .release-preview-links span{flex-basis:100%;margin-right:0}
}
