/* v7.0 global menu: one bar on every page of the portal (engine/v7.py). Colours are the corporate tokens
   (tokens/corporate.vars.css): navy #16223a, gold #c9a96e, ivory #f5f0e8; the fallbacks repeat them for pages without the tokens. */
.gnav{background:var(--color-navy,#16223a);color:var(--color-on-navy,#f5f0e8);font:500 14px/1.2 Inter,"Helvetica Neue",Arial,system-ui,sans-serif;position:relative;z-index:30}
.gnav-in{max-width:1240px;margin:0 auto;padding:0 16px;display:flex;flex-wrap:wrap;align-items:center;gap:2px;overflow-x:visible}
.gnav-in::-webkit-scrollbar{display:none}
.gnav .gnav-in a{color:var(--color-on-navy,#f5f0e8);text-decoration:none;padding:13px 10px 11px;white-space:nowrap;border-bottom:2px solid transparent}
.gnav .gnav-in a:hover{border-bottom-color:var(--color-gold,#c9a96e)}
.gnav .gnav-in a:focus-visible{outline:2px solid var(--color-gold,#c9a96e);outline-offset:-2px}
.gnav .gnav-in a[aria-current="page"]{border-bottom-color:var(--color-gold,#c9a96e)}
.gnav .gnav-home{font-weight:600;letter-spacing:.04em;margin-right:6px}
/* phones (audit round 11, R11-L1): the menu wraps so every item, the current one included, is in view without scrolling it */
@media (max-width:720px){.gnav-in{flex-wrap:wrap;overflow-x:visible;padding:4px 10px;gap:0 2px}.gnav .gnav-in a{padding:9px 7px 7px;font-size:13px}
.gnav .gnav-home{flex-basis:100%;margin-right:0}}
/* v7.3.7 (C14 acceptance: a 320 px phone at 200 percent zoom leaves 160 CSS px): the home link wraps rather than run past the edge */
@media (max-width:239px){.gnav .gnav-in a.gnav-home{white-space:normal}}
@media print{.gnav{display:none}}
/* Amiri, the sanctioned Arabic face (D-7), for every run marked Arabic (round 12, R12-L3). OFL 1.1: fonts/amiri-OFL.txt */
@font-face{font-family:Amiri;src:url(../fonts/amiri-400-arabic.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;
unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF}
/* Amiri's own Latin digits and punctuation inside Arabic runs (round 13, R13-L2) */
@font-face{font-family:Amiri;src:url(../fonts/amiri-400-latin.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;
unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
[lang^="ar"]{font-family:Amiri,"Noto Naskh Arabic","Geeza Pro",serif}
.gnav-skip{position:absolute;left:-9999px;top:0;z-index:40;background:var(--color-ivory,#f5f0e8);color:var(--color-navy,#16223a);padding:10px 14px;font:600 14px Inter,system-ui,sans-serif}
.gnav-skip:focus{left:16px;top:8px;outline:2px solid var(--color-gold,#c9a96e)}
/* LinkedIn Command Center rail: its section labels and footer were set at 42 and 48 percent ivory, under the 4.5:1 floor on the
   deep navy rail (axe, v7.0 pre-flight). Raised to 72 percent; the page's own stylesheet loads first, so this rule wins. */
.rail nav p,.rail-foot{color:rgba(245,240,232,.72)}
.table-frame:focus-visible{outline:2px solid var(--color-gold,#c9a96e);outline-offset:2px}
/* v7.0 final (external review, 1 Oct 2026): one header on every page. The crest leads the global bar; the logo pages' older
   menu bar repeated it item for item and is hidden; the library and guide keep their own section links as a sub-bar, without
   a second crest or the retired "Working collection" label. */
.gnav .gnav-home{display:inline-flex;align-items:center;gap:9px}
.gnav .gnav-home img{display:block;width:15px;height:18px}
.gnav ~ header.masthead:has(nav a[href="docket.html"]){display:none}
.gnav ~ header.masthead.shell .identity,.gnav ~ header.masthead .edition{display:none}
.gnav ~ header.masthead.shell{justify-content:flex-start;padding-block:.35rem;padding-inline:max(26px,calc((100% - 1240px) / 2 + 26px))}
/* phones: the global bar already wraps to two rows; the section sub-bar would stack a third, so it steps aside (each of its
   links is also on Start and in the library itself) */
@media (max-width:760px){.gnav ~ header.masthead.shell{display:none}}
/* v7.0 final (external review): the Logo Studio's file list keeps each file name whole (it had wrapped mid-extension) and
   moves the size and hash under the name when the column is narrow */
#d-files li{flex-wrap:wrap;row-gap:0}
#d-files a{overflow-wrap:break-word}
#d-files code{margin-left:auto;white-space:nowrap}
/* the production-method sheets sit two to a row at desktop widths, large enough to read on the page */
main:has(img[src*="production-methods/"]) .plates{grid-template-columns:repeat(auto-fill,minmax(min(100%,34rem),1fr))}

/* C11 (Codex's Start brief): Start's bar keeps Find, the library and Kits in view; on phones the rest sit behind More */
.gnav-c .gnav-rest{display:contents}
.gnav-c .gnav-rest[hidden]{display:none}
.gnav-c .gnav-more{font:inherit;color:var(--color-on-navy,#f5f0e8);background:transparent;border:1px solid rgba(245,240,232,.55);padding:7px 12px;margin-left:6px;cursor:pointer}
.gnav-c .gnav-more:focus-visible{outline:2px solid var(--color-gold,#c9a96e);outline-offset:2px}
.gnav-c .gnav-more[aria-expanded="true"]{background:rgba(245,240,232,.12)}
@media (max-width:720px){.gnav-c .gnav-rest:not([hidden]){display:flex;flex-wrap:wrap;flex-basis:100%;gap:0 2px}}
/* v7.3.9 (Codex master, weakness 2): phones keep two rows: the home link and More, then the four main links */
.gnav-c .gnav-prim{display:contents}
@media (max-width:720px){.gnav-c .gnav-in .gnav-home{flex:1 1 0;flex-basis:0;min-width:0}
.gnav-c .gnav-more{margin-left:auto;flex:none}
.gnav-c .gnav-prim{display:flex;flex-wrap:wrap;flex-basis:100%;gap:0 2px}}

/* v7.1 (engine/v71.py, review V-12): the reference-archive notice on the v5 pages */
.v7-ref{background:#fff;border:1px solid rgba(22,34,58,.2);border-left:4px solid var(--color-muted,#64748b);max-width:1208px;margin:16px auto 0;padding:12px 16px;
  font:400 .95rem/1.55 Inter,"Helvetica Neue",Arial,system-ui,sans-serif;color:#16223a;box-sizing:border-box;position:relative;z-index:20}
.v7-ref strong{font-weight:600}
.v7-ref a{color:#16223a;text-underline-offset:3px;display:inline-block;min-height:24px}
@media (max-width:1272px){.v7-ref{margin:16px 16px 0}}
/* the v5 collection's small text links get a 24 px target (WCAG 2.2, 2.5.8) without touching its frozen markup or script */
.collection-intro a,.production-card details>a,main a[href^="public-use-notes.html"]{display:inline-block;min-height:24px;padding-top:2px}
