/* Nordvern International — design system
   ---------------------------------------------------------------------------
   Editorial rather than "product landing page": warm paper, hairline rules
   instead of drop-shadowed cards, a serif display face against a system sans,
   and a numbered index in place of an icon-card grid.

   No external requests of any kind — the type stack is resolved locally, so
   there is no font CDN and nothing for the CSP to allow.

   Contrast: body text and interactive labels meet WCAG AA (>= 4.5:1);
   large display text meets >= 3:1.
   ------------------------------------------------------------------------- */

:root {
  /* Ink and paper */
  --ink:        #14181f;
  --ink-soft:   #4a5160;   /* 7.1:1 on paper */
  --ink-faint:  #6b7280;   /* 4.9:1 on paper */
  --paper:      #fbfaf8;
  --paper-2:    #f4f1ec;
  --rule:       #e2ddd4;
  --rule-strong:#cfc8bb;

  /* Brand, sampled from the mark */
  --navy-900:   #061530;
  --navy:       #0a1f44;
  --navy-600:   #14356f;
  --blue:       #0b57c8;
  --blue-bright:#1283e2;
  --blue-pale:  #6fb6f5;

  --danger:     #9b1c1c;
  --danger-bg:  #fdf3f3;
  --good:       #14532d;
  --good-bg:    #f1f8f3;
  --note-bg:    #f0f4fb;
  --note-ink:   #17356e;

  /* A serif display face gives the pages the character of a reference
     publication. All three families ship with the major desktop platforms. */
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
             "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shell: 1180px;
  --gutter: 28px;
  --radius: 3px;
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; }

h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.012em; line-height: 1.1; }
h1 { font-size: clamp(2.35rem, 1.55rem + 3.3vw, 4rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem); }
h3 { font-size: 1.16rem; line-height: 1.3; letter-spacing: -.005em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

img, svg { max-width: 100%; height: auto; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- Shell ---------------------------------------------------------------- */

.container { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 720px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.section { padding: clamp(3.25rem, 2rem + 4.5vw, 6rem) 0; }
.section--tint { background: var(--paper-2); }
.section--rule { border-top: 1px solid var(--rule); }

/* A short rule above a heading, echoing the diagonal of the shield mark. */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
  padding-top: .9rem;
  border-top: 2px solid var(--ink);
  width: fit-content;
}
.eyebrow--light { color: var(--blue-pale); border-top-color: var(--blue-pale); }

.lede {
  font-size: clamp(1.09rem, 1.02rem + .35vw, 1.28rem);
  line-height: 1.52;
  color: var(--ink-soft);
}

.section-head { max-width: 660px; margin-bottom: 3rem; }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 248, .93);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 74px;
}

.brand-lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); padding: 6px 0; }
.brand-lockup__mark { width: 30px; height: 35px; flex: none; }
.brand-lockup__text { display: flex; flex-direction: column; line-height: 1; }
.brand-lockup__name { font-family: var(--display); font-size: 1.24rem; font-weight: 600; letter-spacing: .028em; }
.brand-lockup__sub { font-size: .565rem; font-weight: 700; letter-spacing: .3em; color: var(--ink-faint); margin-top: 4px; }

.nav-toggle {
  display: none; align-items: center; gap: 9px;
  background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 9px 14px; font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--ink); cursor: pointer;
}
.nav-toggle__bars { display: inline-block; width: 16px; height: 10px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 4.25px; }
.nav-toggle__bars::after { bottom: 0; }

.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 12px; text-decoration: none;
  font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.site-nav__cta { margin-left: 10px; }
.site-nav__cta a, .site-nav__cta button {
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  padding: 10px 18px; border-radius: var(--radius);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.site-nav__cta a:hover, .site-nav__cta button:hover { background: var(--navy-900); color: #fff; border-bottom-color: var(--navy-900); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 10px var(--gutter) 20px;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 14px 0; font-size: 1.02rem; border-bottom: 1px solid var(--rule); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
  .site-nav__cta { margin: 16px 0 0; }
  .site-nav__cta a, .site-nav__cta button { display: block; width: 100%; text-align: center; }
}

/* --- Masthead / hero ------------------------------------------------------ */

.masthead { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.masthead__media { position: absolute; inset: 0; }
/* <picture> is inline by default, which would collapse a percentage height on
   the image inside it. */
.masthead__media picture { display: block; width: 100%; height: 100%; }
.masthead__media img {
  width: 100%; height: 100%; object-fit: cover;
  /* Framed left-of-centre so the CN Tower falls on the right-hand side of the
     masthead, where the overlay is lightest. Vertically on the skyline band
     rather than the dark water below it. */
  object-position: 32% 52%;
  /* The photograph is a dusk silhouette; without this it reads as flat black
     once the navy overlay is on top. */
  filter: brightness(1.35) contrast(1.04) saturate(1.1);
}
/* Heavy on the left so the headline keeps its contrast, clearing to almost
   nothing on the right so the skyline and the tower are actually legible. */
.masthead__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6,21,48,.96) 0%, rgba(6,21,48,.88) 32%,
                    rgba(6,21,48,.5) 60%, rgba(6,21,48,.1) 100%);
}

/* Narrow viewports put the text across the full width, including the bright
   part of the sky, so the horizontal gradient is replaced by an even scrim. */
@media (max-width: 900px) {
  .masthead__media::after {
    background:
      linear-gradient(180deg, rgba(6,21,48,.88) 0%, rgba(6,21,48,.8) 55%, rgba(6,21,48,.9) 100%);
  }
  .masthead__media img { object-position: 46% 50%; }
}

.masthead__inner { position: relative; padding: clamp(4rem, 2.5rem + 7vw, 8rem) 0 clamp(3rem, 2rem + 4vw, 5rem); }
.masthead__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.masthead h1 { color: #fff; max-width: 16ch; margin-bottom: 1.25rem; }
.masthead__lead { font-size: clamp(1.06rem, 1rem + .45vw, 1.3rem); color: #cfdcf2; max-width: 52ch; line-height: 1.55; }

.masthead__note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .93rem; color: #b9cbe8; max-width: 56ch;
}
.masthead__note svg { flex: none; margin-top: 2px; }

.masthead__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.25rem; }

/* Credit line for the photograph, kept unobtrusive but present. */
.masthead__credit {
  position: absolute; right: var(--gutter); bottom: 12px;
  font-size: .7rem; color: rgba(255,255,255,.5); letter-spacing: .02em;
}
.masthead__credit a { color: rgba(255,255,255,.66); }
.masthead__credit a:hover { color: #fff; }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: .97rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.btn--onDark { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--onDark:hover { background: var(--blue-pale); border-color: var(--blue-pale); color: var(--navy-900); }

.btn--ghostOnDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn--ghostOnDark:hover { background: rgba(255,255,255,.11); color: #fff; }

.btn--secondary { background: transparent; color: var(--navy); border-color: var(--rule-strong); }
.btn--secondary:hover { background: var(--paper-2); border-color: var(--ink); }

.btn--danger { background: transparent; color: var(--danger); border-color: #e6c9c9; }
.btn--danger:hover { background: var(--danger-bg); }

.btn--small { padding: 7px 14px; font-size: .86rem; }
.btn--block { width: 100%; }

/* --- Numbered index (replaces the card grid) ------------------------------ */

.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-list > li { margin: 0; border-bottom: 1px solid var(--rule); }

.index-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.75rem);
  align-items: start;
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.25rem) 0;
  text-decoration: none; color: inherit;
}
a.index-row:hover { color: inherit; background: linear-gradient(90deg, var(--paper-2), transparent 70%); }
a.index-row:hover .index-row__title { text-decoration: underline; text-underline-offset: 4px; }

.index-row__num {
  font-family: var(--mono); font-size: .82rem; font-weight: 500;
  color: var(--ink-faint); letter-spacing: .06em; padding-top: .35rem;
}
.index-row__title { font-family: var(--display); font-size: 1.32rem; font-weight: 600; line-height: 1.25; margin: 0; }
.index-row__body { color: var(--ink-soft); font-size: .99rem; margin: 0; }

@media (max-width: 760px) {
  .index-row { grid-template-columns: 3rem minmax(0, 1fr); gap: .75rem 1.25rem; }
  .index-row__body { grid-column: 2; }
}

/* --- Editorial two-column ------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--media { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
@media (max-width: 860px) {
  .split, .split--even, .split--media { grid-template-columns: 1fr; }
  .split--media .split__media { order: -1; }
}
.split__sticky { position: sticky; top: 108px; }

.prose-columns { columns: 2; column-gap: 3rem; }
@media (max-width: 760px) { .prose-columns { columns: 1; } }

/* --- Steps ---------------------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1.25rem;
  padding: 1.5rem 0; margin: 0; border-top: 1px solid var(--rule);
}
.steps > li:first-child { border-top: 0; padding-top: 0; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .82rem; color: var(--blue); padding-top: .2rem;
}
.steps h3 { margin-bottom: .25em; }
.steps p { color: var(--ink-soft); font-size: .99rem; }

/* --- Definition list ------------------------------------------------------ */

.glossary { margin: 0; border-top: 1px solid var(--ink); }
.glossary > div {
  display: grid; grid-template-columns: minmax(190px, .32fr) 1fr;
  gap: 1.75rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule);
}
.glossary dt { font-weight: 650; color: var(--navy); }
.glossary dd { margin: 0; color: var(--ink-soft); font-size: .99rem; }
@media (max-width: 640px) { .glossary > div { grid-template-columns: 1fr; gap: .3rem; } }

/* --- Source list ---------------------------------------------------------- */

.source-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.source-list li { margin: 0; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }
.source-list a { font-weight: 600; }
.source-list p { margin: .25rem 0 0; color: var(--ink-soft); font-size: .93rem; }

/* --- Callouts and lists --------------------------------------------------- */

.callout { border-left: 2px solid var(--ink); padding: .35rem 0 .35rem 1.6rem; color: var(--ink-soft); }
.callout--strong { border-left-color: var(--blue); }
.callout--box {
  border: 1px solid var(--rule); border-left: 2px solid var(--ink);
  background: var(--paper-2); padding: 1.4rem 1.75rem;
}
.callout h3 { color: var(--ink); }

.limits { list-style: none; padding: 0; margin: 0; }
.limits li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: .85rem 0; margin: 0; border-bottom: 1px solid var(--rule);
  color: var(--ink-soft); font-size: .99rem;
}
.limits li:first-child { border-top: 1px solid var(--rule); }
.limits li svg { flex: none; margin-top: 3px; }

/* --- Photography ---------------------------------------------------------- */

figure { margin: 0; }
.media-frame img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.media-frame figcaption { margin-top: .6rem; font-size: .79rem; color: var(--ink-faint); }
.media-frame figcaption a { color: var(--ink-soft); }

/* --- Forms ---------------------------------------------------------------- */

.form { display: grid; gap: 1.4rem; }
.form-row { display: grid; gap: .4rem; }
.form-row label { font-weight: 600; font-size: .93rem; }
.form-row .hint { font-size: .85rem; color: var(--ink-faint); }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], select, textarea {
  width: 100%; padding: 12px 13px; font: inherit; font-size: 1rem;
  color: var(--ink); background: #fff;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { min-height: 165px; resize: vertical; }
textarea.code { font-family: var(--mono); font-size: .9rem; min-height: 300px; }

.form-row--invalid input, .form-row--invalid textarea, .form-row--invalid select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .87rem; font-weight: 600; }

.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; }
.checkbox input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); }
.checkbox label { font-weight: 400; font-size: .95rem; color: var(--ink-soft); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Messages ------------------------------------------------------------- */

.flash-stack { display: grid; gap: .6rem; margin-bottom: 1.75rem; }
.message { padding: 13px 17px; border: 1px solid transparent; border-left-width: 2px; font-size: .95rem; }
.message--success { background: var(--good-bg); color: var(--good); border-color: #bfe0cb; border-left-color: var(--good); }
.message--error   { background: var(--danger-bg); color: var(--danger); border-color: #e8cccc; border-left-color: var(--danger); }
.message--notice  { background: var(--note-bg); color: var(--note-ink); border-color: #c8d8f0; border-left-color: var(--note-ink); }

/* --- Panels --------------------------------------------------------------- */

.panel { border: 1px solid var(--rule); background: #fff; padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); }
.panel--tint { background: var(--paper-2); border-color: var(--rule); }
.panel--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.panel--dark h2, .panel--dark h3 { color: #fff; }
.panel--dark p { color: #c3d4ee; }
.panel--dark a { color: #fff; }

.feature-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: .95rem 0; margin: 0; border-top: 1px solid var(--rule);
}
.feature-list li:first-child { border-top: 0; padding-top: 0; }
.feature-list li svg { flex: none; margin-top: 3px; }
.feature-list strong { display: block; color: var(--ink); margin-bottom: .15rem; }
.feature-list span { color: var(--ink-soft); font-size: .94rem; }
.panel--dark .feature-list li { border-top-color: rgba(255,255,255,.16); }
.panel--dark .feature-list strong { color: #fff; }
.panel--dark .feature-list span { color: #c3d4ee; }

/* --- Library -------------------------------------------------------------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 2.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.filter-bar a {
  text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink-faint);
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.filter-bar a:hover { color: var(--ink); }
.filter-bar a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.entry-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.entry-list li { margin: 0; border-bottom: 1px solid var(--rule); }
.entry-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1rem, 3vw, 2.5rem); padding: 1.75rem 0;
  text-decoration: none; color: inherit;
}
.entry-card:hover { color: inherit; }
.entry-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.entry-card h3 { font-family: var(--display); font-size: 1.3rem; margin: .35rem 0 0; }
.entry-card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
@media (max-width: 760px) { .entry-card { grid-template-columns: 1fr; gap: .5rem; } }

.tag {
  display: inline-block; font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
}
.tag--live { color: var(--good); }
.tag--muted { color: var(--ink-faint); }

.prose { max-width: 68ch; font-size: 1.04rem; }
.prose h2 { margin-top: 2.25rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { color: var(--ink-soft); }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 2px solid var(--blue-pale); color: var(--ink-soft); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: 2px 5px; border-radius: 2px; }
.prose pre { background: var(--navy-900); color: #e2e8f0; padding: 1.1rem; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--rule); text-align: left; }

/* --- Tables --------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; }
table.data th, table.data td { padding: .8rem 1rem; text-align: left; vertical-align: middle; }
table.data thead th {
  background: var(--paper-2); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px solid var(--rule-strong); white-space: nowrap;
}
table.data tbody tr { border-top: 1px solid var(--rule); }
table.data tbody tr:first-child { border-top: 0; }
table.data .actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--rule); background: #fff; }
.stat { padding: 1.25rem 1.4rem; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat dt { font-size: .72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .1em; }
.stat dd { margin: .3rem 0 0; font-family: var(--display); font-size: 2rem; font-weight: 600; color: var(--navy); }

.admin-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.admin-tabs a { text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink-faint); padding-bottom: 3px; border-bottom: 2px solid transparent; }
.admin-tabs a:hover { color: var(--ink); }
.admin-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.credential {
  font-family: var(--mono); font-size: 1.02rem;
  background: var(--navy-900); color: #d7e6fb;
  padding: 1rem 1.1rem; border-radius: var(--radius); word-break: break-all; user-select: all;
}

/* --- Contact -------------------------------------------------------------- */

.contact-line { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.contact-line a.phone {
  display: inline-block; font-family: var(--display);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); font-weight: 600;
  color: var(--navy); text-decoration: none; letter-spacing: -.015em;
}
.contact-line a.phone:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.contact-line .email { font-size: 1.04rem; font-weight: 600; }

/* --- Footer --------------------------------------------------------------- */

.site-footer { background: var(--navy-900); color: #a9c0e0; padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 2rem; font-size: .93rem; }
.site-footer a { color: #dce8f8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-lockup { color: #fff; }
.site-footer .brand-lockup__sub { color: #7fa0cc; }

.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem; padding-bottom: 2.25rem; border-bottom: 1px solid rgba(255,255,255,.14);
}
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }

.footer-col h2 { font-family: var(--sans); font-size: .72rem; letter-spacing: .19em; text-transform: uppercase; color: #7fa0cc; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col li { margin: 0; }

.disclaimer {
  margin-top: 2.25rem; padding: 1.25rem 1.4rem;
  border: 1px solid rgba(255,255,255,.14); border-left-width: 2px; border-left-color: var(--blue-pale);
  font-size: .84rem; line-height: 1.6; color: #9db6d8;
}
.disclaimer strong { display: block; color: #dce8f8; margin-bottom: .35rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }

.footer-bottom { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; color: #7690b4; font-size: .82rem; }

.disclaimer--inline {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-left: 2px solid var(--ink); color: var(--ink-soft); margin-top: 0;
}
.disclaimer--inline strong { color: var(--ink); }

/* --- Error pages ---------------------------------------------------------- */

.error-page { padding: clamp(4rem, 3rem + 6vw, 8rem) 0; }
.error-page .status { font-family: var(--mono); font-size: .78rem; letter-spacing: .16em; color: var(--ink-faint); text-transform: uppercase; }
.error-page p { color: var(--ink-soft); max-width: 52ch; }
.error-page .btn { margin-top: 1.75rem; }

/* --- Print ---------------------------------------------------------------- */

@media print {
  .site-header, .site-nav, .nav-toggle, .masthead__actions, .filter-bar { display: none !important; }
  body { font-size: 12pt; background: #fff; }
  .site-footer { background: none; color: #000; }
}
