@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 900;font-display:swap;src:url('/fonts/GolosText.ttf') format('truetype')}
/* Shared masthead; scoped names keep the two existing page layouts independent. */
:root{--shell-height:72px;--shell-bg:#fff;--shell-text:#182f28;--shell-muted:#66746e;--shell-border:#dce3df;--shell-selected:#edf4e9;--shell-accent:#315c47;--shell-hover:#f3f6f3;color-scheme:light}
html[data-theme="dark"]{--shell-bg:#171c21;--shell-text:#e5ece8;--shell-muted:#a9b7ae;--shell-border:#344039;--shell-selected:#263d2f;--shell-accent:#c3ec7a;--shell-hover:#252e28;color-scheme:dark}
html{scroll-padding-top:calc(var(--shell-height) + 20px)}
.nfp-header{position:sticky;top:0;z-index:80;background:var(--shell-bg);border-bottom:1px solid var(--shell-border);color:var(--shell-text);font:14px/1.4 'Golos Text',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
.nfp-bar{max-width:1500px;margin:auto;padding:0 28px;height:72px;display:flex;align-items:center;gap:32px}
.nfp-header a{text-decoration:none;color:inherit}.nfp-header a:hover{text-decoration:none;color:var(--shell-accent)}
.nfp-brand{font-family:'Golos Text',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;display:flex;gap:10px;align-items:center;flex-shrink:0;font-size:21px;font-weight:750;letter-spacing:-.6px}.nfp-brand img{display:block;flex-shrink:0;border-radius:9px}.nfp-brand small{display:block;font-size:10px;line-height:1.7;letter-spacing:.3px;font-weight:500;color:var(--shell-muted)}
.nfp-nav{display:flex;gap:4px;align-items:center;min-width:0}.nfp-nav a{white-space:nowrap;padding:10px 13px;border-radius:7px;font-weight:550}.nfp-nav a:hover{background:var(--shell-hover)}.nfp-nav a[aria-current="page"]{background:var(--shell-selected);color:var(--shell-accent)}
.nfp-actions{margin-left:auto;display:flex;gap:10px;align-items:center;flex-shrink:0}.nfp-pdf{display:flex;gap:6px;align-items:center;font-weight:600;border:1px solid var(--shell-border);padding:9px 12px;border-radius:7px}.nfp-pdf:hover{background:var(--shell-hover)}
.nfp-theme{background:var(--shell-bg);border:1px solid var(--shell-border);color:var(--shell-text);border-radius:7px;width:38px;height:38px;font:20px/1 Arial,sans-serif;cursor:pointer}.nfp-theme:hover{background:var(--shell-hover)}
.nfp-header :is(a,button,input):focus-visible{outline:3px solid #78a158;outline-offset:3px}
.nfp-wiki-tools{max-width:1500px;margin:auto;height:56px;padding:0 28px;display:flex;gap:14px;align-items:center;border-top:1px solid var(--shell-border)}.nfp-search{display:flex;align-items:center;gap:9px;background:var(--shell-hover);border:1px solid var(--shell-border);border-radius:7px;padding:0 12px;max-width:540px;width:100%;height:38px}.nfp-search input{border:0;background:transparent;width:100%;min-width:0;color:var(--shell-text);font:inherit;outline:none}.nfp-search:focus-within{outline:2px solid #78a158;outline-offset:2px}.nfp-search input:focus-visible{outline:0}.nfp-search kbd{color:var(--shell-muted);font:12px monospace}.nfp-edition{margin-left:auto;color:var(--shell-muted);white-space:nowrap;font-size:12px}
html[data-wiki="index"]{--shell-height:128px;--top:128px}html[data-wiki="article"]{--header:72px}
html[data-wiki] .nfp-nav{height:auto}html[data-wiki] .nfp-brand{min-width:0}
html[data-wiki="index"] .overlay{z-index:85}html[data-wiki="index"] .sidebar{z-index:90}
.summary{top:calc(var(--shell-height) + 20px);background:#182f28}
.exercise-row .meta a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
html[data-theme="dark"]:not([data-wiki]){--ink:#e5ece8;--muted:#a9b7ae;--line:#344039;--paper:#111815;--accent:#b1d391;--white:#1b2520;--red:#ff9999}
html[data-theme="dark"]:not([data-wiki]) :is(.edition,.article-card,.footer,.field input,.field select,.exercise-select,.article-body .source-box){background:var(--white)}
html[data-theme="dark"]:not([data-wiki]) :is(.field input,.field select,.exercise-row input,.result-select){border-color:var(--line)}
html[data-theme="dark"]:not([data-wiki]) :is(.exercise-row input,.result-select,.step,.type-tag,.add-button,.callout,.article-body th){background:#25352b;color:var(--ink)}
html[data-theme="dark"]:not([data-wiki]) .add-button:hover{background:#304534}
html[data-theme="dark"]:not([data-wiki]) .article-lead{color:#b1c5b8}
html[data-theme="dark"]:not([data-wiki]) .primary-link{background:#274934}
@media(max-width:1100px){.nfp-bar{gap:20px;padding:0 20px}.nfp-nav a{padding:10px 9px}.nfp-brand{font-size:19px}.nfp-brand small{font-size:9px}.nfp-actions{gap:8px}.nfp-wiki-tools{padding:0 20px}}
@media(max-width:900px){:root{--shell-height:116px}.nfp-bar{height:116px;display:grid;grid-template-columns:1fr auto;grid-template-rows:66px 50px;gap:0 16px;padding:0 20px}.nfp-brand{width:max-content}.nfp-nav{grid-row:2;grid-column:1/-1;overflow-x:auto;scrollbar-width:thin;align-self:stretch;gap:5px;margin:0 -5px;padding:0 5px 5px}.nfp-nav a{padding:9px 12px;font-size:13px}.nfp-actions{grid-row:1;grid-column:2}.nfp-brand small{font-size:10px}.nfp-edition{display:none}html[data-wiki="index"]{--shell-height:172px;--top:172px}html[data-wiki="article"]{--header:116px}}
@media(max-width:480px){.nfp-bar{padding:0 14px}.nfp-wiki-tools{padding:0 14px}.nfp-pdf{padding:9px}.nfp-actions{gap:7px}.nfp-brand img{width:32px;height:32px}.nfp-nav{gap:1px}.nfp-nav a{padding:9px 10px}.nfp-search kbd{display:none}}
@media print{.nfp-header{display:none}.summary{position:static}html{scroll-padding-top:0}}
.skip{z-index:100}


/* Navigation refresh */
.nfp-sections{position:relative}.nfp-sections>summary{list-style:none;cursor:pointer;white-space:nowrap;padding:10px 13px;border-radius:7px;font-weight:550;user-select:none}.nfp-sections>summary::-webkit-details-marker{display:none}.nfp-sections>summary::after{content:'▾';font-size:10px;margin-left:7px;color:var(--shell-muted)}.nfp-sections>summary:hover,.nfp-sections[open]>summary{background:var(--shell-hover);color:var(--shell-accent)}.nfp-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:210px;padding:7px;background:var(--shell-bg);border:1px solid var(--shell-border);border-radius:10px;box-shadow:0 16px 40px rgba(18,35,27,.14);display:grid;z-index:120}.nfp-menu a{padding:10px 12px!important;border-radius:7px}.nfp-menu a[aria-current="page"]{background:var(--shell-selected);color:var(--shell-accent)}
@media(max-width:900px){.nfp-nav{overflow:visible}.nfp-sections{flex-shrink:0}.nfp-menu{left:auto;right:0}}
@media(max-width:560px){.nfp-brand small{display:none}.nfp-pdf span{display:none}.nfp-pdf{width:38px;height:38px;justify-content:center;padding:0}.nfp-nav a,.nfp-sections>summary{padding:9px 10px}.nfp-menu{position:fixed;left:14px;right:14px;top:108px;min-width:0}}


/* Section icons */
.nfp-nav a{gap:7px}.nfp-nav-icon{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;opacity:.82}.nfp-nav a[aria-current="page"] .nfp-nav-icon{opacity:1}
@media(max-width:480px){.nfp-nav a{gap:6px}.nfp-nav-icon{width:15px;height:15px;flex-basis:15px}}

/* Global order search: one fixed-height masthead on every site page. */
.nfp-global-search{position:relative;width:clamp(190px,18vw,290px);flex:0 1 290px;min-width:150px}
.nfp-search-toggle{display:none;width:38px;height:38px;border:1px solid var(--shell-border);border-radius:7px;background:var(--shell-bg);color:var(--shell-text);padding:9px;cursor:pointer}
.nfp-search-toggle:hover{background:var(--shell-hover)}
.nfp-search-toggle svg,.nfp-search-field>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:0 0 18px}
.nfp-search-panel{position:relative;width:100%}
.nfp-search-field{height:38px;width:100%;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--shell-border);border-radius:7px;background:var(--shell-hover);color:var(--shell-muted)}
.nfp-search-field:focus-within{border-color:var(--shell-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--shell-accent) 24%,transparent)}
.nfp-search-field input{min-width:0;width:100%;height:100%;border:0;outline:0;background:transparent;color:var(--shell-text);font:inherit}
.nfp-search-field input::placeholder{color:var(--shell-muted)}
.nfp-search-field kbd{padding:1px 5px;border:1px solid var(--shell-border);border-radius:4px;background:var(--shell-bg);color:var(--shell-muted);font:11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}
.nfp-search-results{position:absolute;top:calc(100% + 8px);right:0;width:min(520px,calc(100vw - 28px));max-height:min(560px,calc(100vh - var(--shell-height) - 30px));overflow:auto;padding:7px;background:var(--shell-bg);border:1px solid var(--shell-border);border-radius:10px;box-shadow:0 18px 48px rgba(18,35,27,.18);z-index:140}
.nfp-search-result{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:10px 11px!important;border-radius:7px;color:var(--shell-text)!important;text-decoration:none!important}
.nfp-search-result:hover,.nfp-search-result.is-selected{background:var(--shell-hover);color:var(--shell-text)!important}
.nfp-search-result strong{font-size:13px;line-height:1.35;font-weight:650;min-width:0}
.nfp-search-result small{grid-column:1;color:var(--shell-muted);font-size:11px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nfp-search-result em{grid-column:2;grid-row:1/3;align-self:center;font-style:normal;font-size:11px;color:var(--shell-accent);white-space:nowrap}
.nfp-search-empty{padding:14px 12px;color:var(--shell-muted);font-size:12px;line-height:1.45}
.nfp-wiki-menu{flex:0 0 38px;width:38px;height:38px;border:1px solid var(--shell-border)!important;border-radius:7px!important;background:var(--shell-bg)!important;color:var(--shell-text)!important;font:20px/1 Arial,sans-serif!important;padding:0!important}
.nfp-wiki-menu:hover{background:var(--shell-hover)!important}
html[data-wiki="index"]{--shell-height:72px;--top:72px}
html[data-wiki="article"]{--header:72px}

@media(max-width:1180px){.nfp-global-search{width:200px;flex-basis:200px}.nfp-search-field kbd{display:none}}
@media(max-width:1000px){.nfp-global-search{width:160px;min-width:130px;flex-basis:160px}.nfp-search-field{padding:0 8px}.nfp-search-field>svg{display:none}}
@media(max-width:900px){
  html[data-wiki="index"]{--shell-height:116px;--top:116px}
  html[data-wiki="article"]{--header:116px}
  .nfp-global-search{width:38px;min-width:38px;flex:0 0 38px}
  .nfp-search-toggle{display:grid;place-items:center}
  .nfp-search-panel{display:none;position:fixed;left:14px;right:14px;top:calc(var(--shell-height) + 8px);width:auto;padding:8px;background:var(--shell-bg);border:1px solid var(--shell-border);border-radius:10px;box-shadow:0 18px 48px rgba(18,35,27,.20);z-index:145}
  .nfp-global-search.is-open .nfp-search-panel{display:block}
  .nfp-search-field{background:var(--shell-hover)}
  .nfp-search-field>svg{display:block}
  .nfp-search-results{position:static;width:100%;max-height:50vh;margin-top:7px;border:0;border-top:1px solid var(--shell-border);border-radius:0;box-shadow:none;padding:7px 0 0}
}
@media(max-width:560px){.nfp-search-result small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.nfp-search-result em{display:none}.nfp-search-result{grid-template-columns:1fr}}
