/* VFN's own look (from vfnstart.php). VFN pages load this instead of the site's site.css / header.css. */
:root {
    --bg:        #0c1822;
    --panel:     #132432;
    --panel-alt: #172b3b;
    --line:      #264257;
    --text:      #e8eef3;
    --muted:     #8da3b3;
    --signal:    #ffb938;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--signal); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.muted { color: var(--muted); }
form.inline { display: inline; margin: 0; }
.link-btn {
    background: none; border: 0; padding: 4px 6px; cursor: pointer;
    color: var(--signal); font: inherit; text-decoration: underline;
}

/* Header and navigation: one full-width row on every VFN page (wraps only on narrow screens) */
.vfn-head { background: var(--panel); border-bottom: 1px solid var(--line); }
.vfn-head .inner { display: flex; align-items: center; gap: 4px 16px; padding: 4px 12px; }
.vfn-head .brand { flex: 0 0 auto; white-space: nowrap; font: 700 1.1rem/1.1 "Barlow Semi Condensed", "Barlow", sans-serif; letter-spacing: .01em; color: var(--text); text-decoration: none; }
.vfn-head nav { display: flex; flex-wrap: wrap; gap: 0 2px; flex: 1 1 auto; min-width: 0; }
.vfn-head nav a {
    padding: 6px 8px;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    font-size: .9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}
.vfn-head nav a:hover { color: var(--text); }
.vfn-head nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--signal); }
.vfn-head .who { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 4px 10px; white-space: nowrap; font-size: .85rem; }
.vfn-head .who .call { font-weight: 600; }
.vfn-head .who .roles { color: var(--muted); }

/* Notes */
.vfn-maint, .vfn-note { margin: 0; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.vfn-maint { background: #3a2a06; color: var(--text); }
.vfn-note  { background: var(--panel-alt); color: var(--text); }

/* Home and simple pages */
.vfn-wrap { max-width: 860px; margin: 0 auto; padding: 40px 16px 48px; }
.vfn-wrap h1 { margin: 0 0 20px; font: 700 clamp(1.9rem, 4.5vw, 2.8rem)/1.1 "Barlow Semi Condensed", "Barlow", sans-serif; letter-spacing: .01em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; margin: 0 0 24px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.facts div { padding: 14px 18px; background: var(--panel); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font: 600 1.2rem/1.3 "Barlow Semi Condensed", "Barlow", sans-serif; }
.vfn-wrap p { max-width: 70ch; margin: 0 0 16px; }
.logo { display: block; margin-top: 32px; max-width: min(400px, 100%); height: auto; }

/* While a page is open in the frame, the frame fills the rest of the window */
body.framed { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
body.framed main { flex: 1; min-height: 0; }

/* Pages shown in the frame */
#view { display: none; height: 100%; }
#view iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--bg); }
body.framed #home { display: none; }
body.framed #view { display: block; }

/* Narrow screens: the menu goes on its own row under the name and login */
@media (max-width: 900px) {
    .vfn-head .inner { flex-wrap: wrap; }
    .vfn-head nav { order: 3; flex-basis: 100%; }
}
@media (max-width: 640px) {
    .vfn-wrap { padding-top: 24px; }
}
