/* ==================================================================
 * Scientivora Publishers — design system
 * Palette: deep navy #10243A · royal blue #2457A7 · teal #168C8C
 *          white #FFFFFF · light grey · gold accent #C5A45B
 * Type:    Playfair Display (display) · Inter (text)
 * ================================================================== */

/* ------------------------------------------------------------------ *
 * 1. Design tokens
 * ------------------------------------------------------------------ */
:root {
  --navy-950: #08192B;
  --navy-900: #10243A;   /* deep navy — primary brand colour */
  --navy-800: #17324F;
  --navy-700: #1D3C5E;
  --navy-600: #2457A7;   /* royal blue — links, accents, highlights */
  --navy-500: #3A72C4;

  --teal-700: #0E6E6E;
  --teal-600: #168C8C;   /* teal — primary action colour */
  --teal-500: #1FA5A5;
  --teal-400: #35BFB8;
  --teal-100: #DCF4F2;
  --teal-50:  #EEFBFA;

  --gold-700: #8A6E31;
  --gold-600: #A8873F;
  --gold-500: #C5A45B;   /* restrained gold accent */
  --gold-400: #DCBE7C;
  --gold-100: #F8EDD4;
  --gold-50:  #FDF7EA;

  --red-600: #B3372F;
  --red-100: #FBE7E5;
  --green-600: #1F7A4D;
  --green-100: #E1F4E9;
  --blue-600: #2457A7;
  --blue-100: #E4EEFA;

  --ink:    #16202F;
  --body:   #44536A;
  --muted:  #6D7C93;
  --line:   #E2E8F1;
  --line-strong: #CBD6E4;
  --bg:      #FFFFFF;
  --bg-soft: #F5F8FC;
  --bg-mist: #EDF2F8;
  --bg-navy: #10243A;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --shadow-xs: 0 1px 2px rgba(7, 27, 54, .06);
  --shadow-sm: 0 2px 8px rgba(7, 27, 54, .07);
  --shadow-md: 0 10px 30px rgba(7, 27, 54, .10);
  --shadow-lg: 0 24px 60px rgba(7, 27, 54, .16);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --container: 1200px;
  --container-wide: 1340px;
  --header-h: 69px;          /* navigation bar (drawer layout) */
  --header-h-desktop: 107px; /* editorial-office row + navigation bar */

  --ease: cubic-bezier(.22, .68, .36, 1);
}

/* ------------------------------------------------------------------ *
 * 2. Reset & base
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

/* The wide-screen header carries the editorial-office contact row above
   the navigation bar, so anchored sections need a larger offset. */
@media (min-width: 1201px) {
  html { scroll-padding-top: calc(var(--header-h-desktop) + 16px); }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--navy-900);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.9rem, 1.35rem + 1.9vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.03rem + .55vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-600); text-decoration: underline; }

strong, b { color: var(--ink); }

code, .tracking-id {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--bg-mist);
  color: var(--navy-700);
  padding: .1em .42em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  white-space: nowrap;
}

time { white-space: nowrap; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

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

::selection { background: var(--teal-100); color: var(--navy-900); }

/* ------------------------------------------------------------------ *
 * 3. Accessibility helpers
 * ------------------------------------------------------------------ */
.sr-only {
  position: absolute !important;
  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: 16px; top: -60px;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ------------------------------------------------------------------ *
 * 4. Layout primitives
 * ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}
.container.narrow-page { max-width: 900px; }
.container.narrow-wide  { max-width: 1040px; }

.section { padding-block: clamp(48px, 7vw, 88px); }
.section-tight-top { padding-top: clamp(16px, 3vw, 34px); }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--bg-navy); color: #C9D6E6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(26px, 3.4vw, 42px);
}
.section-cta .btn { min-width: 220px; justify-content: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.stack { display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 28px); }

.muted { color: var(--muted); }
.accent { color: var(--teal-600); }
.pending { color: var(--muted); font-style: italic; }
.fine-print { font-size: .83rem; color: var(--muted); line-height: 1.6; }
.fine-print a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 2px; }
.mono-input { font-family: var(--mono); font-size: .92rem; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 .7em;
}
.eyebrow.gold { color: var(--gold-600); }

.section-heading { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 46px); text-align: center; }
.section-heading h2 { margin-bottom: .35em; }
.section-sub { color: var(--muted); font-size: 1.03rem; margin: 0; }

.page-header {
  background:
    radial-gradient(900px 320px at 85% -40%, rgba(18, 163, 163, .18), transparent 60%),
    radial-gradient(700px 300px at 0% 120%, rgba(208, 163, 68, .12), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #DCE7F4;
  padding-block: clamp(40px, 6vw, 74px);
}
.page-header h1 { color: #fff; margin-bottom: .3em; }
.page-sub { color: #B7C8DD; font-size: clamp(1rem, .96rem + .3vw, 1.14rem); margin: 0; max-width: 760px; }
.page-header .eyebrow { color: var(--gold-400); }

/* Page header with a photographic band behind the title */
.page-header-photo { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-900); }
.page-header-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--navy-900);
  background-image:
    var(--page-header-image, none),
    radial-gradient(760px 300px at 82% -30%, rgba(22, 140, 140, .40), transparent 62%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-950) 100%);
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}
.page-header-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(16, 36, 58, .95) 0%, rgba(16, 36, 58, .84) 42%, rgba(16, 36, 58, .55) 100%),
    linear-gradient(to top, rgba(8, 25, 43, .55), transparent 60%);
}
.page-header-photo .container { position: relative; z-index: 2; }
.page-header-photo .page-sub { color: #CFDDEC; }

/* Reveal-on-scroll — only when JS is present (html.js) */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ------------------------------------------------------------------ *
 * 5. Buttons & link-buttons
 * ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .72em 1.35em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { flex: none; }

.btn-primary, .btn-teal {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 140, 143, .28);
}
.btn-primary:hover, .btn-teal:hover { background: linear-gradient(135deg, var(--teal-700), var(--teal-600)); color: #fff; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: #fff;
  box-shadow: 0 6px 18px rgba(185, 140, 46, .3);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-700), var(--gold-600)); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy-700);
}
.btn-outline:hover { border-color: var(--teal-600); color: var(--teal-700); background: var(--teal-50); }

.btn-ghost {
  background: transparent;
  color: var(--teal-700);
  border-color: transparent;
  padding-inline: .9em;
}
.btn-ghost:hover { background: var(--teal-50); color: var(--teal-700); }

.btn-ghost-light { color: #CFE0F2; border-color: rgba(255,255,255,.35); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }

.btn-sm { font-size: .86rem; padding: .5em 1.05em; }
.btn-lg { font-size: 1.03rem; padding: .85em 1.8em; }
.btn-block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.1rem; }
.btn-row-center { justify-content: center; margin-top: 2.2rem; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--teal-700);
  cursor: pointer;
}
.link-button:hover { text-decoration: underline; color: var(--teal-600); }
.link-button.danger { color: var(--red-600); }
.link-button.danger:hover { color: #8F2A24; }

.inline-form { display: inline-block; }

/* ------------------------------------------------------------------ *
 * 6. Badges, chips, tags
 * ------------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3em .8em;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.5;
}
.badge-grey  { background: var(--bg-mist); color: var(--navy-700); }
.badge-blue   { background: var(--blue-100); color: var(--blue-600); }
.badge-teal   { background: var(--teal-100); color: var(--teal-700); }
.badge-green  { background: var(--green-100); color: var(--green-600); }
.badge-gold   { background: var(--gold-100); color: var(--gold-700); }
.badge-red    { background: var(--red-100); color: var(--red-600); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: .78rem;
  font-weight: 600;
  padding: .3em .85em;
  border-radius: 999px;
  background: var(--bg-mist);
  color: var(--navy-700);
  border: 1px solid transparent;
  line-height: 1.55;
}
a.chip:hover { text-decoration: none; border-color: var(--teal-500); color: var(--teal-700); }

.chip-category { background: var(--teal-100); color: var(--teal-700); }
.chip-navy     { background: var(--navy-800); color: #DDE8F5; }
.chip-teal     { background: var(--teal-600); color: #fff; }
.chip-gold     { background: var(--gold-100); color: var(--gold-700); border-color: rgba(208,163,68,.4); }
.chip-danger   { background: var(--red-100); color: var(--red-600); border-color: rgba(179,55,47,.3); }
.chip-demo     { background: var(--gold-50); color: var(--gold-700); border: 1px dashed var(--gold-500); }
.chip-keyword  { background: #fff; border-color: var(--line-strong); color: var(--navy-700); font-weight: 500; }

.card-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .9rem; align-items: center; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: .6rem 0 0; }
.tag-list li { margin: 0; }

/* ------------------------------------------------------------------ *
 * 7. Flash alerts
 * ------------------------------------------------------------------ */
.flash-area { padding-top: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 30; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: .95rem;
  box-shadow: var(--shadow-xs);
  transition: opacity .2s var(--ease);
}
.alert span { flex: 1; }
.alert-success { background: var(--green-100); border-color: #BCE3CD; color: #175E3D; }
.alert-error   { background: var(--red-100);   border-color: #F1C4C0; color: #8F2A24; }
.alert-info    { background: var(--blue-100);  border-color: #C6DAF3; color: #164A85; }
.alert-warning { background: var(--gold-100);  border-color: #EBD6A6; color: var(--gold-700); }
.alert.is-leaving { opacity: 0; }

.alert-close {
  background: none;
  border: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: inherit;
  opacity: .55;
  cursor: pointer;
  padding: 0 2px;
}
.alert-close:hover { opacity: 1; }

/* ------------------------------------------------------------------ *
 * 8. Forms
 * ------------------------------------------------------------------ */
.form-group { margin-bottom: 1.1rem; }

.form-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: .38rem;
}
.form-label .req { color: var(--red-600); }

.field-hint { font-size: .8rem; color: var(--muted); margin: -.15rem 0 .45rem; line-height: 1.5; }

.form-control, .form-select {
  width: 100%;
  font-family: var(--sans);
  font-size: .97rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .66em .9em;
  line-height: 1.5;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-control::placeholder { color: #97A5BA; }
.form-control:hover, .form-select:hover { border-color: #A9BACF; }
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(18, 163, 163, .18);
}
textarea.form-control { resize: vertical; min-height: 96px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236D7C93' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95em center;
  padding-right: 2.4em;
}
.form-file { padding: .5em; background: var(--bg-soft); }
.form-file::file-selector-button {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--bg-mist);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .45em 1em;
  margin-right: .9em;
  cursor: pointer;
}
.form-file::file-selector-button:hover { background: var(--teal-50); border-color: var(--teal-500); }

.form-check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; }
.form-check-input { margin-top: .3em; accent-color: var(--teal-600); width: 1.05em; height: 1.05em; flex: none; }
.form-check-label { font-size: .93rem; color: var(--body); line-height: 1.5; }
.declaration-list .form-check { padding: .55rem .75rem; background: var(--bg-soft); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.declaration-list .form-check:hover { border-color: var(--teal-400); }

.form-group.has-error .form-control,
.form-group.has-error .form-select { border-color: var(--red-600); background: #FFF9F8; }

.field-errors {
  list-style: none;
  margin: .4rem 0 0;
  padding: 0;
  color: var(--red-600);
  font-size: .85rem;
  font-weight: 500;
}
.field-errors li::before { content: "⚠ "; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.4vw, 38px);
  box-shadow: var(--shadow-sm);
}
.form-card h2, .form-card h3 { margin-top: 0; }
.form-card-wide { max-width: 880px; margin-inline: auto; }
.form-intro { font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; }
.form-alt { text-align: center; font-size: .93rem; color: var(--muted); margin: 1.1rem 0 0; }
.form-footer { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.form-footer .btn { align-self: stretch; }

.form-section {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.8rem 0 0;
  padding: 1.5rem 0 0;
}
.form-section legend {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0;
  margin-bottom: .9rem;
}

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

.message-form { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }

/* ------------------------------------------------------------------ *
 * 9. Site header & navigation
 * ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
  box-shadow: 0 1px 2px rgba(6, 24, 47, 0.02);
}
.site-header.is-scrolled { 
  box-shadow: 0 4px 20px rgba(6, 24, 47, 0.06);
  border-bottom-color: rgba(226, 232, 241, 0.8);
}

/* The header is a two-tier block: a slim editorial-office contact row
   above the main navigation bar.  Below 1200px the contact row folds
   into the navigation drawer (see the responsive section). */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px 10px;
  flex-wrap: nowrap;
}

/* Header layout controlled by flexbox */

.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; flex: none; margin-left: -28px; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  flex: none;
}
.brand:hover .brand-mark { transform: translateY(-1px); }
.brand img { height: 84px; width: auto; max-width: min(100%, 320px); object-fit: contain; border-radius: 0; display: block; }
.brand-footer img { height: 52px; width: auto; max-width: min(100%, 240px); object-fit: contain; border-radius: 0; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-top: 2px;
}

.primary-nav { display: flex; align-items: center; justify-content: flex-end; min-width: 0; margin-left: auto; flex-wrap: nowrap; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 0.6em 0.45em;
  font-size: 0.91rem;
  font-weight: 500;
  color: var(--navy-700);
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-links .nav-action { display: flex; align-items: center; }
.nav-links .nav-action .btn { margin-left: 4px; white-space: nowrap; }
.nav-links a:hover { 
  color: var(--teal-700); 
  background: rgba(22, 140, 140, 0.07);
  text-decoration: none;
}
.nav-links a.is-active { 
  color: var(--teal-700); 
  font-weight: 600;
}
/* Clear active-page indicator: teal rule under the current section. */
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0.5em;
  right: 0.5em;
  bottom: 0.24em;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-600);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: 16px; }

/* Editorial-office contact details — phones and e-mail addresses. */
.header-contact {
  grid-area: contact;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 14px;
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.header-contact-label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.header-contact-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.3rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy-700);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.header-contact-list a:hover {
  color: var(--teal-700);
  background: var(--teal-50);
  text-decoration: none;
}
.header-contact-list .icon { color: var(--teal-600); flex: none; }

/* Account shortcuts for signed-in users sit at the left of the utility
   row so the navigation bar keeps its full width for the menu. */
.header-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  padding-right: 11px;
}
.header-account-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-700);
  white-space: nowrap;
  padding: 0.18rem 0.3rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.header-account-link:hover {
  color: var(--teal-700);
  background: var(--teal-50);
  text-decoration: none;
}
.header-account .link-button { font-size: 0.8rem; }

.header-submit-btn {
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 100%);
  border: none;
  color: white !important;
  font-weight: 600;
  padding: 0.55em 1.3em;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
  transition: all 0.2s var(--ease);
  letter-spacing: -0.01em;
}
.header-submit-btn:hover {
  background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-500) 100%);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
  transform: translateY(-1px);
  color: white !important;
}

.header-search { display: flex; align-items: center; position: relative; }
.header-search input {
  width: 172px;
  font-family: var(--sans);
  font-size: .86rem;
  padding: .5em 2.1em .5em .9em;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-soft);
  transition: width .2s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.header-search input:focus {
  outline: none;
  width: 220px;
  background: #fff;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(18, 163, 163, .16);
}
.header-search button {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--navy-600);
  cursor: pointer;
  display: flex;
  padding: 3px;
}
.header-search button:hover { color: var(--teal-600); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--bg-mist);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  padding: 7px 9px;
  cursor: pointer;
}

/* ------------------------------------------------------------------ *
 * 9b. Announcement ticker
 * ------------------------------------------------------------------ */
.announcement-ticker {
  --ticker-gap: clamp(22px, 2.4vw, 38px);
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(130% 200% at 0% 50%, rgba(197, 164, 91, .14) 0%, rgba(197, 164, 91, 0) 44%),
    linear-gradient(180deg, #13293F 0%, var(--navy-900) 100%);
  border-top: 1px solid rgba(197, 164, 91, .5);
  border-bottom: 1px solid rgba(197, 164, 91, .28);
}
.ticker-shell {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 22px);
  min-height: 44px;
  padding-block: 9px;
}
.ticker-eyebrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding-right: clamp(12px, 1.8vw, 22px);
  border-right: 1px solid rgba(197, 164, 91, .38);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gold-400);
  white-space: nowrap;
}
.ticker-eyebrow::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--gold-500);
  transform: rotate(45deg);
}
.ticker-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 30px), transparent 100%);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
  will-change: transform;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: var(--ticker-gap);
  margin: 0;
  padding: 0 var(--ticker-gap) 0 0;
  list-style: none;
}
.ticker-group li {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .012em;
  color: rgba(255, 255, 255, .94);
  white-space: nowrap;
}
.ticker-group li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--gold-500);
  transform: rotate(45deg);
}
/* Pause on hover for mouse users only: a tap on a touch screen must not
   leave the animation stuck in the paused state. */
@media (hover: hover) {
  .announcement-ticker:hover .ticker-track { animation-play-state: paused; }
}

@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 520px) {
  .announcement-ticker { --ticker-gap: 26px; }
  .ticker-shell { min-height: 40px; padding-block: 8px; }
  .ticker-eyebrow { display: none; }
  .ticker-group li { font-size: .8rem; }
}

/* No motion: show the announcements as a static, wrapping list.  The
   duplicated track is hidden so nothing is read or seen twice. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; transform: none; width: 100%; }
  .ticker-group { width: 100%; flex-wrap: wrap; padding-right: 0; row-gap: 4px; }
  .ticker-group[aria-hidden="true"] { display: none; }
  .ticker-viewport { overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

/* ------------------------------------------------------------------ *
 * 10. Footer
 * ------------------------------------------------------------------ */
.site-footer {
  background: #FFFFFF;
  color: #142B4A;
  margin-top: auto;
  border-top: 1px solid #E5E7EB;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: clamp(24px, 4vw, 46px);
  padding-block: clamp(40px, 6vw, 66px);
}
.footer-col p { font-size: .92rem; line-height: 1.7; color: #142B4A; }
.brand-footer .brand-name { color: #0B1F3A; }
.brand-footer .brand-sub { color: var(--teal-600); }
.footer-note { font-size: .8rem; color: #4B5563; border-top: 1px solid #E5E7EB; padding-top: .9rem; }

.footer-heading {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0B1F3A;
  margin: 0 0 1.1rem;
}
.footer-heading-spaced { margin-top: 1.5rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: #142B4A; font-size: .93rem; text-decoration: none; }
.footer-links a:hover { color: #2563EB; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact li { display: flex; gap: .5rem; color: #142B4A; }
.footer-contact a { color: #142B4A; }
.footer-contact a:hover { color: #2563EB; }

.social-links { margin-top: 1.2rem; }
.social-pending {
  display: inline-block;
  font-size: .78rem;
  color: #6B7280;
  border: 1px dashed #D1D5DB;
  border-radius: 999px;
  padding: .3em .9em;
}

.footer-bottom { border-top: 1px solid #E5E7EB; background: #FFFFFF; }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 16px;
  font-size: .83rem;
  color: #374151;
}
.footer-bottom-inner p { margin: 0; }

/* ------------------------------------------------------------------ *
 * 11. Home — hero
 * ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(18, 163, 163, .22), transparent 62%),
    radial-gradient(800px 420px at -5% 110%, rgba(208, 163, 68, .14), transparent 60%),
    linear-gradient(158deg, var(--navy-950) 0%, var(--navy-800) 58%, #0D2C53 100%);
  color: #CDDCEE;
}

/* ---- Premium hero: full-bleed photography + navy overlay ---- */
.hero-premium {
  min-height: clamp(540px, 78vh, 780px);
  display: flex;
  align-items: center;
  isolation: isolate;
  background: var(--navy-950);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  /* Branded fallback — shown if the photograph cannot be decoded */
  background:
    radial-gradient(760px 420px at 78% 24%, rgba(22, 140, 140, .34), transparent 66%),
    radial-gradient(700px 380px at 6% 92%, rgba(36, 87, 167, .30), transparent 64%),
    linear-gradient(158deg, var(--navy-800) 0%, var(--navy-950) 100%);
}
.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  animation: hero-kenburns 22s ease-out forwards;
}
@keyframes hero-kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 25, 43, .94) 0%, rgba(16, 36, 58, .86) 38%, rgba(16, 36, 58, .62) 66%, rgba(22, 140, 140, .34) 100%),
    radial-gradient(900px 520px at 82% 22%, rgba(22, 140, 140, .22), transparent 68%),
    linear-gradient(to top, rgba(8, 25, 43, .85) 0%, rgba(8, 25, 43, 0) 42%);
}
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse at 30% 45%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 45%, #000 10%, transparent 72%);
  opacity: .55;
}

.hero-premium .hero-inner {
  grid-template-columns: 1fr;
  padding-block: clamp(72px, 11vw, 132px);
  max-width: var(--container);
}

.hero-copy-centered {
  max-width: 880px;
  text-align: left;
}

.eyebrow-premium {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9FE7DF;
  border: 1px solid rgba(159, 231, 223, .32);
  background: rgba(20, 184, 166, .12);
  border-radius: 999px;
  padding: .5em 1.15em;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-premium h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.35rem + 5.1vw, 4.65rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: #fff;
  margin: 0 0 .55em;
  text-wrap: balance;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .38);
}
.accent-teal {
  color: var(--teal-400);
  font-style: italic;
  font-weight: 600;
}

.hero-premium .hero-sub {
  font-size: clamp(1.04rem, .96rem + .48vw, 1.28rem);
  line-height: 1.68;
  color: #CFDEEE;
  max-width: 660px;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .3);
}

.btn-row-centered { justify-content: flex-start; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-cta {
  padding: .82em 1.9em;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 10px;
}
.btn-teal.hero-cta,
.hero-cta.btn-teal {
  background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-600) 100%);
  border-color: transparent;
  color: #04211F;
  box-shadow: 0 10px 28px rgba(18, 163, 163, .32);
}
.hero-cta.btn-teal:hover {
  background: linear-gradient(135deg, #43C9C1 0%, var(--teal-500) 100%);
  color: #04211F;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(18, 163, 163, .42);
}
.btn-outline-light {
  background: rgba(255, 255, 255, .05);
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* Hero entrance animations */
.hero-premium .hero-copy-centered > * {
  animation: hero-rise .85s cubic-bezier(.22, .68, .36, 1) both;
}
.hero-premium .hero-copy-centered > *:nth-child(1) { animation-delay: .05s; }
.hero-premium .hero-copy-centered > *:nth-child(2) { animation-delay: .16s; }
.hero-premium .hero-copy-centered > *:nth-child(3) { animation-delay: .27s; }
.hero-premium .hero-copy-centered > *:nth-child(4) { animation-delay: .38s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-premium .hero-copy-centered > *,
  .hero-bg-image img { animation: none !important; }
  .hero-bg-image img { transform: none; }
  html { scroll-behavior: auto; }
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; }
.orb-1 { width: 260px; height: 260px; right: -70px; top: -60px; background: radial-gradient(circle at 30% 30%, rgba(47,184,176,.5), transparent 70%); }
.orb-2 { width: 190px; height: 190px; left: -50px; bottom: -40px; background: radial-gradient(circle at 60% 40%, rgba(224,184,96,.4), transparent 70%); }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero-copy h1 { color: #fff; margin-bottom: .5em; }
.hero-sub { font-size: clamp(1.02rem, .97rem + .4vw, 1.18rem); line-height: 1.7; color: #B9CBDF; max-width: 620px; }
.hero-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-direction: column; gap: .55rem; }
.hero-points li { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: #D3E0EE; }
.hero-points .icon { color: var(--teal-400); flex: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero .btn-outline { border-color: rgba(255,255,255,.45); color: #E7EEF7; }
.hero .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* Horizontal trust markers under the hero calls to action */
.hero-points-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.1rem 1.8rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  max-width: 720px;
}
.hero-points-row li { font-size: .9rem; color: #CFDEEE; }
.hero-points-row .icon { color: var(--teal-400); }

.hero-visual { position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.hero-molecule { width: min(100%, 420px); opacity: .95; }

.hero-card {
  position: relative;
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  color: var(--body);
  border-top: 4px solid var(--teal-500);
}
.hero-card-title { font-family: var(--serif); font-weight: 700; color: var(--navy-900); font-size: 1.05rem; line-height: 1.4; margin: 0 0 .5rem; }
.hero-card-lines { display: flex; flex-direction: column; gap: .55rem; margin-top: .8rem; }
.hero-card-lines span { display: block; height: 8px; border-radius: 999px; background: var(--bg-mist); }
.hero-card-lines span:nth-child(2) { width: 85%; }
.hero-card-lines span:nth-child(3) { width: 62%; background: var(--teal-100); }
.hero-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 1.1rem; font-size: .8rem; color: var(--muted); }

/* Stats strip */
.stats-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-block: clamp(20px, 3vw, 34px);
}
.stat { text-align: center; padding: .4rem 1rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.15;
}
.stat-label { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; font-weight: 600; }

/* ------------------------------------------------------------------ *
 * 11b. Photography & media components
 *
 * Every image on the site is self-hosted, optimised and served from
 * /static/img.  Each media frame paints a branded navy gradient first,
 * so a missing or slow file degrades to a deliberate-looking panel
 * rather than a broken-image icon.
 * ------------------------------------------------------------------ */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  isolation: isolate;
  background:
    radial-gradient(680px 320px at 22% 8%, rgba(22, 140, 140, .30), transparent 66%),
    radial-gradient(520px 300px at 92% 96%, rgba(36, 87, 167, .28), transparent 64%),
    linear-gradient(150deg, var(--navy-800) 0%, var(--navy-950) 100%);
  box-shadow: var(--shadow-md);
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame-media { position: relative; aspect-ratio: 3 / 2; }
.media-frame-media.wide   { aspect-ratio: 16 / 9; }
.media-frame-media.tall   { aspect-ratio: 4 / 5; }
.media-frame-media.square { aspect-ratio: 1 / 1; }
.media-frame-media.panorama { aspect-ratio: 21 / 9; }

/* Optional gradient scrim for legible overlaid text */
.media-frame-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 25, 43, .88) 0%, rgba(8, 25, 43, .38) 48%, rgba(8, 25, 43, 0) 100%);
  pointer-events: none;
}
.media-frame-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.8rem 1.15rem 1.05rem;
  color: #E4EDF7;
  font-size: .85rem;
  line-height: 1.5;
  pointer-events: none;
}
.media-frame-caption strong {
  display: block;
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: .15rem;
}
.media-frame-caption span { color: #BACBDE; font-size: .78rem; }

/* Attribution line — every photograph carries one */
.photo-credit {
  font-size: .74rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: .6rem;
}
.photo-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--teal-700); }
.photo-credit-light { color: #93A8C2; }
.photo-credit-light a { color: #B7C8DC; }

/* Split section: image beside copy */
.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4.5vw, 58px);
  align-items: center;
}
.split-media-reverse .split-media-media { order: 2; }
.split-media-copy p:not(.eyebrow) { font-size: 1rem; }

/* Card grid built on photographs */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.photo-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.photo-card .media-frame { border-radius: 0; box-shadow: none; }
.photo-card-body { padding: clamp(16px, 2vw, 22px); }
.photo-card-body h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.photo-card-body p { font-size: .9rem; color: var(--body); margin: 0; }
.photo-card-body .mini-label { display: block; margin-bottom: .4rem; }

/* Journal card cover band — deterministic, no database change required */
.journal-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: .8rem;
  height: 108px;
  margin: calc(clamp(18px, 2.4vw, 26px) * -1) calc(clamp(18px, 2.4vw, 26px) * -1) 1.15rem;
  padding: 1.1rem clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background:
    radial-gradient(420px 200px at 88% 12%, rgba(53, 191, 184, .34), transparent 62%),
    linear-gradient(122deg, var(--navy-900) 0%, var(--navy-700) 58%, var(--navy-600) 100%);
  color: #fff;
}
.journal-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .7;
  pointer-events: none;
}
.journal-cover-monogram {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: .02em;
  line-height: 1;
  color: #fff;
}
.journal-cover-label {
  position: relative;
  z-index: 1;
  margin-left: auto;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #A9C6E2;
}
.journal-card-wide .journal-cover {
  margin: calc(clamp(22px, 3vw, 34px) * -1) calc(clamp(22px, 3vw, 34px) * -1) 1.15rem;
  padding: 1.2rem clamp(22px, 3vw, 34px);
  height: 120px;
}

/* Contact method cards */
.contact-tally-section {
  background: linear-gradient(180deg, rgba(16, 36, 58, 0.02) 0%, rgba(16, 36, 58, 0.04) 100%);
  border: 1px solid rgba(16, 36, 58, 0.12);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 30px 60px -40px rgba(16, 36, 58, 0.8);
}

.contact-tally-header {
  text-align: center;
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
}

.contact-tally-header h2 {
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.contact-tally-header p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--slate-700);
}

.tally-embed-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(16, 36, 58, 0.08);
}

.tally-embed-wrap iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}

.tally-fallback {
  margin-top: 1rem;
  text-align: center;
  color: var(--slate-700);
}

.tally-fallback a {
  color: var(--teal);
  font-weight: 600;
}

@media (max-width: 768px) {
  .tally-embed-wrap iframe {
    min-height: 880px;
  }
}

@media (max-width: 520px) {
  .tally-embed-wrap iframe {
    min-height: 940px;
  }
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 1.4rem;
}
.contact-method {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.contact-method:hover {
  border-color: var(--teal-400);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.contact-method-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-100);
}
.contact-method-body { min-width: 0; }
.contact-method-body strong {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .15rem;
}
.contact-method-body a,
.contact-method-body span { font-weight: 600; color: var(--navy-800); overflow-wrap: anywhere; }
.contact-method-body a:hover { color: var(--teal-700); }
.contact-method-wide { grid-column: 1 / -1; }

/* Indexing / service table used on About and For Authors */
.service-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  background: #fff;
}
.service-table th,
.service-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.service-table thead th {
  background: var(--bg-soft);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-700);
  font-weight: 700;
}
.service-table tbody tr:last-child td { border-bottom: 0; }
.service-table td:first-child { font-weight: 600; color: var(--navy-800); }

/* On narrow screens the service table becomes a stack of labelled cards */
@media (max-width: 700px) {
  .service-table,
  .service-table tbody,
  .service-table tr,
  .service-table td { display: block; width: 100%; }
  .service-table thead { display: none; }
  .service-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .service-table tbody tr:last-child { border-bottom: 0; }
  .service-table td { border-bottom: 0; padding: 0; }
  .service-table td::before {
    content: attr(data-label);
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .15rem;
  }
  .service-table td:first-child {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: .5rem;
  }
  .service-table td:first-child::before { display: none; }
  .service-table td + td { margin-top: .55rem; }
}

/* Photography credits page */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
  margin-top: 1.8rem;
}
.credit-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}
.credit-card .media-frame { border-radius: 0; box-shadow: none; }
.credit-card figcaption { padding: 14px 16px 16px; }
.credit-card figcaption strong {
  display: block;
  font-size: .88rem;
  line-height: 1.45;
  color: var(--navy-800);
  font-weight: 600;
  margin-bottom: .35rem;
}

/* ------------------------------------------------------------------ *
 * 12. Cards — journals, articles, categories, people
 * ------------------------------------------------------------------ */
.journal-card, .article-card, .category-tile, .person-card, .content-card, .record-card, .mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.journal-card, .article-card {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 26px);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.journal-card:hover, .article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.journal-card-wide { padding: clamp(22px, 3vw, 34px); }

.card-title { font-size: 1.08rem; margin: 0 0 .5rem; line-height: 1.42; }
.card-title a { color: var(--navy-900); text-decoration: none; }
.card-title a:hover { color: var(--teal-700); }

.card-authors { font-size: .87rem; color: var(--navy-600); font-weight: 500; margin: 0 0 .45rem; }
.card-abstract { font-size: .92rem; color: var(--body); margin: 0 0 .9rem; flex: 1; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: .8rem;
}
.card-doi { color: var(--teal-700); font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .9rem; }

.journal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .9rem; }
.journal-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(22px, 3.5vw, 42px); align-items: start; }
.journal-meta-detail { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 2.5vw, 26px); }
.journal-meta-detail dl { margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.journal-meta-detail dt { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.journal-meta-detail dd { margin: .15rem 0 0; color: var(--navy-800); font-weight: 600; }
.journal-articles { margin-top: clamp(28px, 4vw, 44px); }
.journals-list { display: flex; flex-direction: column; gap: clamp(18px, 3vw, 30px); }

/* Category tiles */
.category-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: clamp(18px, 2.4vw, 26px);
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.category-tile::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--teal-50);
  transition: transform .3s var(--ease);
  z-index: 0;
}
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-400); text-decoration: none; }
.category-tile:hover::after { transform: scale(1.35); }
.category-tile > * { position: relative; z-index: 1; }

.category-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--teal-400);
  margin-bottom: .3rem;
}
.category-tile h3 { font-size: 1.06rem; margin: 0; color: var(--navy-900); }
.category-tile p { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.55; }
.category-link { font-size: .85rem; font-weight: 600; color: var(--teal-700); }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }

/* People / editorial board */
.person-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: clamp(20px, 2.6vw, 28px);
  text-align: left;
}
.person-card-wide { text-align: center; align-items: center; }
.person-card h2 { font-size: 1.16rem; margin: .6rem 0 .1rem; }
.person-title { font-size: .88rem; font-weight: 600; color: var(--teal-700); margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.person-affil { font-size: .86rem; color: var(--muted); margin: 0; }
.person-bio { font-size: .9rem; color: var(--body); margin: .5rem 0 0; }
.person-email { font-size: .85rem; margin: .6rem 0 0; display: flex; align-items: center; gap: .4rem; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--navy-700));
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .04em;
  flex: none;
}
.avatar-lg { width: 74px; height: 74px; font-size: 1.35rem; }
.avatar-xl { width: 92px; height: 92px; font-size: 1.7rem; }

/* Feature / ethics grids */
.feature-list, .ethics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.feature-list-list { grid-template-columns: 1fr; gap: .9rem; }
.feature-list-list li {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .94rem;
}
.feature-list-list .icon { color: var(--teal-600); flex: none; margin-top: .15rem; }
.ethics-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 24px);
}
.ethics-item h3 { font-size: 1.04rem; margin-bottom: .45rem; }
.ethics-item p { font-size: .9rem; color: var(--body); margin: 0; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-teal { background: var(--teal-500); }
.dot-gold { background: var(--gold-500); }
.dot-green { background: var(--green-600); }

.two-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 30px); }

/* Split sections (For Authors / About) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4.5vw, 56px); align-items: center; }
.split-copy p { font-size: 1rem; }
.split-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}
.aside-note { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--gold-500); padding-left: .9rem; margin-top: 1rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #D6E2F0; border-radius: var(--radius-xl); }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(26px, 4vw, 48px);
}
.cta-inner h2 { color: #fff; margin-bottom: .3em; }
.cta-inner p { margin: 0; color: #B9CBDF; max-width: 560px; }
.cta-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.cta-card-spaced { margin-top: clamp(16px, 2.4vw, 22px); }

/* ------------------------------------------------------------------ *
 * 12b. Component states referenced by templates
 *
 * These class names are used across the templates but had no rules of
 * their own.  They are defined here so every screen renders as the
 * markup intends instead of falling back to unstyled block layout.
 * ------------------------------------------------------------------ */

/* Contact page — two-column layout (info beside the message form) */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.contact-info { min-width: 0; }
.contact-info h2 { font-size: 1.35rem; }
.contact-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.contact-list > li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-list > li > .icon { color: var(--teal-600); flex: none; margin-top: .3rem; }
.contact-list strong {
  display: block;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .25rem;
}
.contact-list p { margin: 0 0 .2rem; font-size: .94rem; }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }
.contact-form-wrap { min-width: 0; }
.contact-form-wrap .form-card { position: sticky; top: calc(var(--header-h) + 20px); }
.contact-photo { margin-bottom: .2rem; }

/* Quick-answer grid on the contact page */
.faq-grid { align-items: stretch; }
.faq-grid .mini-card { display: flex; flex-direction: column; }
.faq-grid .mini-card h3 { font-size: 1.05rem; margin: .1rem 0 .45rem; line-height: 1.4; }
.faq-grid .mini-card p { flex: 1; font-size: .92rem; }
.faq-grid .link-button { margin-top: .3rem; }

/* Author rows — the dynamic add/remove list on the submission form */
.author-rows { display: flex; flex-direction: column; gap: 18px; }
.author-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: 16px 18px 18px;
}
.author-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.author-row-num {
  width: 26px;
  height: 26px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}
.author-row-title { font-weight: 700; color: var(--navy-800); font-size: .9rem; }
.author-row-head .link-button { margin-left: auto; }

/* Article rows — compact list used on the journal page */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.article-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.article-row .row-main { flex: 1 1 auto; min-width: 0; }
.article-row h3 { font-size: 1.05rem; margin: .45rem 0 .3rem; line-height: 1.42; }
.article-row h3 a { color: var(--navy-900); text-decoration: none; }
.article-row h3 a:hover { color: var(--teal-700); }
.article-row .row-actions {
  flex: none;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.article-row .card-meta { border-top: 0; padding-top: 0; margin-top: .25rem; }

/* Ruled heading above a list */
.h-ruled {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: 1.2rem;
  margin: 0 0 1.15rem;
}
.h-ruled::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

/* Action card — a highlighted panel holding a form the reader must act on */
.action-card {
  border-left: 4px solid var(--teal-500);
  background: linear-gradient(180deg, var(--teal-50) 0%, #fff 60%);
}
.action-card > h3 { margin-top: 0; }

/* Editorial board grid */
.board-grid { align-items: stretch; }

/* Demonstration banner shown on seeded evaluation records */
.demo-banner {
  display: block;
  background: var(--gold-50);
  border: 1px solid var(--gold-100);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--gold-700);
}
.demo-banner strong { color: var(--gold-700); }

/* Footer brand column */
.footer-brand { display: flex; flex-direction: column; }

/* Header sign-in link */
.header-signin { white-space: nowrap; }

/* Enlarged tracking identifier used in the editorial views */
.tracking-lg { font-size: 1rem; letter-spacing: .04em; }

/* Workspace main column */
.workspace-main { min-width: 0; }

/* Error pages */
.page-header.compact { padding-block: clamp(48px, 8vw, 88px); }
.container.narrow { max-width: 680px; }

/* Full-width mini card inside a two-column aside */
.mini-card.wide { grid-column: 1 / -1; }

/* ------------------------------------------------------------------ *
 * 13. Article detail page
 * ------------------------------------------------------------------ */
.article-page {
  display: block;
  background: var(--bg);
  scroll-margin-top: var(--header-h);
}
.article-hero {
  background:
    radial-gradient(900px 300px at 90% -30%, rgba(18, 163, 163, .16), transparent 60%),
    linear-gradient(175deg, var(--bg-soft), #fff 70%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(26px, 4vw, 48px);
}
.article-hero h1 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem); margin-bottom: .7rem; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: .83rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--teal-700); }

.author-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.author-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem; line-height: 1.5; }
.author-name { font-weight: 600; color: var(--navy-800); font-size: 1rem; }
.author-affil { font-size: .87rem; color: var(--muted); }
.author-orcid { font-size: .78rem; color: var(--teal-700); font-family: var(--mono); }
.author-list-compact li { gap: .45rem; }
.author-list-compact .author-name { font-size: .94rem; }
.corresponding-mark { color: var(--gold-600); font-weight: 700; margin-left: .18em; }
.corresponding-line { font-size: .9rem; color: var(--body); }

.article-body { padding-block: clamp(28px, 4vw, 46px); }

/* Publisher strip at the foot of an article */
.publisher-strip {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
  margin-top: clamp(30px, 4.5vw, 52px);
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.publisher-strip-media .media-frame { box-shadow: var(--shadow-sm); }
.publisher-strip-copy h2 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); margin: .1rem 0 .5rem; }
.publisher-strip-copy p { font-size: .94rem; color: var(--body); }
.publisher-strip-copy .btn-row { margin-top: 1rem; }

@media (max-width: 700px) {
  .publisher-strip { grid-template-columns: 1fr; }
  .publisher-strip-media .media-frame { max-width: 260px; }
}

.article-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(26px, 3.6vw, 40px);
}
.meta-cell { background: #fff; padding: 14px 18px; display: flex; flex-direction: column; gap: .25rem; }
.meta-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.meta-value { font-size: .93rem; color: var(--navy-800); font-weight: 600; word-break: break-word; }

.article-section { margin-bottom: clamp(30px, 4.5vw, 48px); scroll-margin-top: calc(var(--header-h) + 20px); }
.article-section h2 {
  font-size: 1.35rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--bg-mist);
  margin-bottom: 1.1rem;
}
.abstract-text { font-size: 1.02rem; line-height: 1.78; color: var(--ink); }

.keyword-block { margin-top: 1.3rem; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.timeline li { display: flex; align-items: center; gap: 1rem; font-size: .93rem; }
.tl-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy-700);
  border-radius: 999px;
  padding: .28em .9em;
  min-width: 96px;
  text-align: center;
}
.timeline li:last-child .tl-label { background: var(--teal-600); }

.reference-list { padding-left: 1.4rem; display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; line-height: 1.65; }
.reference-list li { padding-left: .3rem; }
.reference-list li::marker { color: var(--teal-600); font-weight: 600; }

.citation-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}
.citation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.citation-tab {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-700);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .4em 1.05em;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.citation-tab:hover { background: var(--bg-mist); }
.citation-tab.is-active { background: var(--navy-800); color: #fff; }

.citation-panel { display: none; padding: clamp(16px, 2.4vw, 22px); }
.citation-panel.is-active { display: block; }
.citation-text {
  font-family: var(--serif);
  font-size: .97rem;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-500);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 1rem;
}
.btn.is-copied { background: var(--green-600); border-color: var(--green-600); color: #fff; }

.licence-box {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 30px);
  align-items: center;
  justify-content: space-between;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.5vw, 24px);
}
.licence-box p { margin: 0 0 .4rem; }

.share-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------------ *
 * 14. Prose pages (For Authors, Ethics, Privacy)
 * ------------------------------------------------------------------ */
.onpage-nav {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: clamp(24px, 3.5vw, 38px);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}
.onpage-nav a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-700);
  padding: .35em .85em;
  border-radius: 999px;
  white-space: nowrap;
}
.onpage-nav a:hover { background: var(--teal-100); color: var(--teal-700); text-decoration: none; }

.prose { font-size: 1rem; }
.prose-section { scroll-margin-top: calc(var(--header-h) + 70px); margin-bottom: clamp(34px, 5vw, 54px); }
.prose-section > h2 {
  font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  margin-bottom: .8rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--teal-100);
}
.prose-section > h3 { margin-top: 1.6rem; font-size: 1.13rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.prose li { line-height: 1.65; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.5rem; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: .25rem; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--teal-600); font-weight: 600; }

.tick-list { list-style: none; padding: 0 !important; }
.tick-list > li::before {
  content: "✓" !important;
  background: none !important;
  width: auto !important; height: auto !important;
  top: 0 !important;
  color: var(--green-600);
  font-weight: 700;
  font-size: .95rem;
}
.tick-list > li.missing::before { content: "—"; color: var(--red-600); }
.tick-list > li.ok::before { content: "✓"; color: var(--green-600); }

.process-steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: clamp(16px, 2.5vw, 24px); counter-reset: step; }
.process-steps li { display: flex; gap: 1.1rem; align-items: flex-start; }
.step-num {
  flex: none;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  font-family: var(--sans);
}
.process-steps h3 { margin: .2rem 0 .3rem; font-size: 1.05rem; }
.process-steps p { font-size: .92rem; margin: 0; color: var(--body); }

/* Compact variant used beside a photograph */
.process-steps-compact { gap: clamp(14px, 2vw, 20px); margin-bottom: 1.4rem; }
.process-steps-compact .step-num {
  width: 34px;
  height: 34px;
  font-size: .9rem;
}
.process-steps-compact h3 { font-size: 1rem; margin: .1rem 0 .2rem; }

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 1.5rem 0;
}
.notice .icon { color: var(--teal-600); flex: none; margin-top: 2px; }
.notice strong { display: block; color: var(--navy-900); margin-bottom: .25rem; }
.notice p { margin: 0; font-size: .93rem; }
.notice-gold { background: var(--gold-50); border-color: var(--gold-100); border-left-color: var(--gold-500); }
.notice-gold .icon { color: var(--gold-600); }

.info-strip {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
  margin-top: clamp(20px, 3vw, 30px);
}
.info-strip .icon { color: var(--navy-600); flex: none; margin-top: 3px; }
.info-strip p { margin: 0; font-size: .92rem; }

.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 1.2rem; }
.download-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-decoration: none;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.download-card:hover { border-color: var(--teal-500); background: var(--teal-50); transform: translateY(-3px); text-decoration: none; }
.download-card .icon { color: var(--teal-600); }
.dl-title { font-weight: 700; color: var(--navy-900); font-size: .97rem; }
.dl-meta { font-size: .8rem; color: var(--muted); }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--navy-800);
  font-size: .97rem;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--teal-600);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { background: var(--bg-soft); }
.faq-item p { padding: 0 18px 15px; margin: 0; font-size: .93rem; }

.criteria-list { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .5rem; font-size: .93rem; margin-bottom: 1.5rem; }

/* ------------------------------------------------------------------ *
 * 15. Auth pages
 * ------------------------------------------------------------------ */
.auth-section {
  background:
    radial-gradient(800px 340px at 15% -20%, rgba(18, 163, 163, .16), transparent 60%),
    linear-gradient(165deg, var(--bg-soft), #fff 65%);
  padding-block: clamp(36px, 6vw, 72px);
  min-height: calc(100vh - var(--header-h));
}
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.auth-side h1 { margin-bottom: .5em; }
.auth-side > p { color: var(--body); }
.auth-side .hero-points { margin-top: 1.1rem; }
.auth-side .hero-points li { color: var(--navy-700); }
.auth-side .hero-points .icon { color: var(--green-600); }

/* ------------------------------------------------------------------ *
 * 16. Dashboards — toolbars, filters, tables, pagination
 * ------------------------------------------------------------------ */
.dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(18px, 3vw, 28px);
}
.dash-toolbar .muted { margin: 0; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-filter {
  cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  color: var(--navy-700);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.chip-filter:hover { border-color: var(--teal-500); color: var(--teal-700); text-decoration: none; }
.chip-filter.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip-count {
  background: rgba(0,0,0,.08);
  border-radius: 999px;
  padding: .05em .55em;
  font-size: .74rem;
  font-weight: 700;
}
.chip-filter.is-active .chip-count { background: rgba(255,255,255,.2); }

.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: clamp(18px, 3vw, 26px); }
.mini-stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius);
  padding: 15px 18px;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
a.mini-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); text-decoration: none; }
.mini-stat.is-warning { border-left-color: var(--gold-500); background: var(--gold-50); }
.mini-stat-num { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--navy-900); line-height: 1.1; }
.mini-stat-label { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.mini-card { padding: 16px 18px; }
.mini-label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: clamp(18px, 3vw, 26px);
}
.search-panel-compact { padding: 12px; }
.search-main { flex: 1 1 300px; }
.search-main .form-control { width: 100%; }
.search-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: 1; }
.search-inline .form-control { width: min(340px, 100%); }

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.2rem;
}
.results-bar p { margin: 0; }
.results-count {
  margin: 0;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--muted);
}
.results-count strong { color: var(--navy-900); font-weight: 700; }

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 720px; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th {
  background: var(--bg-soft);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--bg-soft); }
.row-title { font-weight: 600; color: var(--navy-900); display: block; }
.row-title:hover { color: var(--teal-700); }
.row-sub { display: block; font-size: .82rem; color: var(--muted); margin-top: .18rem; }
.td-secondary { font-size: .87rem; color: var(--body); }
.td-actions { white-space: nowrap; }
.td-actions .btn { margin-right: 6px; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.tracking-id { font-size: .82rem; }

.review-pill {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  background: var(--bg-mist);
  color: var(--navy-700);
  border-radius: 999px;
  padding: .18em .7em;
  margin-right: 4px;
}
.review-pill.active { background: var(--gold-100); color: var(--gold-700); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(20px, 3vw, 30px);
}
.page-btn {
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy-700);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: .5em 1.3em;
}
.page-btn:hover { border-color: var(--teal-500); color: var(--teal-700); text-decoration: none; background: var(--teal-50); }
.page-status { font-size: .88rem; color: var(--muted); }

/* ------------------------------------------------------------------ *
 * 17. Record cards, workspace, events, messages, reviews
 * ------------------------------------------------------------------ */
.record-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.8vw, 30px);
  box-shadow: var(--shadow-xs);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.record-card > h2, .record-card > h3 { font-size: 1.22rem; margin-bottom: .8rem; }
.record-head-full { margin-bottom: clamp(18px, 3vw, 26px); border-top: 4px solid var(--teal-500); }
.record-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.record-head h1, .record-title {
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.85rem);
  margin: .4rem 0 .35rem;
}
.record-title-sm { font-size: 1.18rem !important; margin-top: .5rem; }
.record-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: .5rem; }

.record-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 20px;
  margin: 1.1rem 0;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.record-meta dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.record-meta dd { margin: .18rem 0 0; font-size: .92rem; color: var(--navy-800); font-weight: 500; word-break: break-word; }

.record-files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }

.workspace { padding-block: clamp(24px, 4vw, 44px); }
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.workspace-side { position: sticky; top: calc(var(--header-h) + 18px); }
.side-card { border-top: 3px solid var(--navy-700); }
.publish-card { border-top-color: var(--gold-500); background: linear-gradient(180deg, var(--gold-50), #fff 120px); }

.declaration-review { margin: .4rem 0 0; }
.declaration-review li { font-size: .92rem; }

/* Event / audit timeline */
.event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .95rem; }
.event-list li { display: flex; gap: 12px; align-items: flex-start; }
.event-dot {
  flex: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--teal-500);
  margin-top: .45em;
  box-shadow: 0 0 0 3px var(--teal-100);
}
.event-dot.event-decision { background: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-100); }
.event-dot.event-published { background: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.event-text { margin: 0; font-size: .92rem; }
.event-time { margin: .15rem 0 0; font-size: .78rem; color: var(--muted); }

/* Messages */
.message-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.message-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  background: var(--bg-soft);
}
.message-item.from-me { background: var(--teal-50); border-color: var(--teal-100); }
.message-item.from-editor { background: var(--bg-soft); }
.message-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: .4rem; }
.message-item p { margin: 0; font-size: .93rem; white-space: pre-wrap; }
.message-body { white-space: pre-wrap; font-size: .97rem; margin: 0; }
.message-item.is-unread, .record-card.is-unread { border-left: 4px solid var(--gold-500); }

/* Reviews */
.review-list { display: flex; flex-direction: column; gap: clamp(14px, 2.4vw, 22px); }
.review-list-nested { margin-bottom: 1.2rem; }
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.4vw, 24px);
  box-shadow: var(--shadow-xs);
}
.review-card.is-overdue { border-left: 4px solid var(--red-600); }
.review-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.review-card-head h2 { font-size: 1.12rem; margin: .35rem 0 .25rem; }
.review-card-head h2 a { color: var(--navy-900); }
.review-card-head h2 a:hover { color: var(--teal-700); text-decoration: none; }

.review-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 1rem 0 0; }
.review-meta > div { display: flex; flex-direction: column; gap: .1rem; }
.review-meta dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.review-meta dd { margin: 0; font-size: .9rem; color: var(--navy-800); font-weight: 500; display: flex; gap: 6px; align-items: center; }

.review-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 1rem 0;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.review-scores dt { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.review-scores dd { margin: .15rem 0 0; font-weight: 700; color: var(--navy-800); }

.review-block {
  margin: 1rem 0 0;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--teal-500);
  border-radius: var(--radius);
}
.review-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: .6rem; }
.review-ratings { font-size: .78rem; color: var(--muted); }
.review-comments { font-size: .94rem; margin: 0 0 .5rem; }
.review-comments-block { margin-top: .8rem; padding: 12px 14px; background: var(--teal-50); border-radius: var(--radius); }
.review-comments-block p { margin: .3rem 0 0; font-size: .93rem; }
.review-comments-block.confidential { background: var(--gold-50); }
.review-comments-block.confidential .meta-label { color: var(--gold-700); }
.invite-note { font-size: .86rem; color: var(--navy-700); background: var(--bg-soft); border-radius: var(--radius-sm); padding: .5rem .8rem; display: flex; gap: .5rem; align-items: center; margin: .8rem 0 0; }

.decision-card { border-left: 4px solid var(--gold-500); background: linear-gradient(180deg, var(--gold-50), #fff 140px); }
.letter-text {
  font-family: var(--serif);
  font-size: .98rem;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.revision-summary { background: var(--bg-soft); margin-top: 1rem; }
.revision-summary p { margin: .4rem 0 0; }

.status-breakdown { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.status-breakdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: .55rem .85rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  color: var(--navy-700);
  text-decoration: none;
}
.status-breakdown a:hover { border-color: var(--teal-400); background: var(--teal-50); color: var(--teal-700); text-decoration: none; }
.status-breakdown strong { font-family: var(--serif); font-size: 1.05rem; color: var(--navy-900); }

/* Profile */
.profile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.8vw, 28px);
  margin-bottom: clamp(18px, 3vw, 28px);
}
.profile-head h2 { margin: 0 0 .2rem; }
.profile-head p { margin: .1rem 0; }
.profile-head-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 9px; }
.overview-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .94rem; }

/* WhatsApp buttons */
.whatsapp-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  border-color: transparent;
  font-weight: 600;
  padding: 0.6em 1.2em;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  transition: all 0.2s var(--ease);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2EE670, #25D366);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  text-decoration: none;
}
@media (max-width: 760px) {
  .whatsapp-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
}

/* Empty states */
.empty-state {
  text-align: center;
  color: var(--muted);
  font-size: .93rem;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px;
  margin: .8rem 0;
}
.empty-state-lg {
  padding: clamp(34px, 6vw, 64px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}
.empty-state-lg p { margin: 0; font-size: 1.03rem; }
.empty-state-lg .icon { color: var(--line-strong); }

/* Dashboard shells */
.profile-head + .grid-2 { align-items: start; }

/* ------------------------------------------------------------------ *
 * 18. Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1160px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 330px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-search input { width: 140px; }
  .header-submit-btn { padding: .55em 1.05em; font-size: .82rem; }
}

/* The brand, the seven navigation links, the two account buttons and the
   contact row do not fit side by side inside the 1200px content column,
   so the header collapses into the drawer well before the layout would
   break.  The editorial-office contact details fold into the same
   drawer so no contact route is hidden on a phone. */
@media (max-width: 1200px) {
  .header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-block: 10px;
  }
  .nav-toggle { display: inline-flex; }
  .header-panel {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 20px clamp(18px, 4vw, 32px) 24px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .header-panel.is-open { display: flex; }
  .primary-nav { order: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a {
    padding: .78em .9em;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
  }
  .nav-links a:hover { background: var(--teal-50); }
  .nav-links a.is-active { border-left-color: var(--teal-500); background: var(--teal-50); }
  .nav-links a.is-active::after { display: none; }
  .header-actions { order: 2; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
  .header-actions .btn { flex: 1 1 auto; }
  .header-submit-btn { flex: 1 1 100% !important; order: -1; }
  .header-search { width: 100%; }
  .header-search input, .header-search input:focus { width: 100%; }
  .header-contact {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 16px 0 0;
    border-bottom: 0;
    border-top: 1px solid var(--line);
  }
  .header-contact-label { font-size: .64rem; }
  .header-contact-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .header-contact-list a { padding: .55em .55em; font-size: .95rem; }
  .header-account {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-right: 0;
    padding-right: 0;
  }
  .header-account-link { padding: .5em .55em; font-size: .95rem; }
  .header-account .link-button { padding: .5em .55em; font-size: .95rem; }
}

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; }
  .hero-premium { min-height: auto; }
  .journal-detail-grid { grid-template-columns: 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-side { position: static; }
  .grid-4, .stats-grid, .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .feature-list, .ethics-grid, .grid-3, .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-list-list { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { text-align: center; }
  .auth-side .hero-points { align-items: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-media { grid-template-columns: 1fr; }
  .split-media-reverse .split-media-media { order: 0; }
  .photo-grid, .credits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-methods { grid-template-columns: 1fr; }
  .contact-form-wrap .form-card { position: static; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .two-cards,
  .feature-list, .ethics-grid, .download-grid,
  .category-grid, .stats-grid, .stat-cards { grid-template-columns: 1fr; }
  .feature-list-list { grid-template-columns: 1fr; }
  .photo-grid, .credits-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .article-meta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .record-head-actions { width: 100%; }
  .profile-head-actions { margin-left: 0; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .btn-row .btn { flex: 1 1 auto; }
  .onpage-nav { border-radius: var(--radius-lg); }
  .licence-box { flex-direction: column; align-items: flex-start; }
  .dash-toolbar { flex-direction: column; align-items: stretch; }
  .dash-toolbar .btn { width: 100%; }

  .brand-name { font-size: 1.16rem; }
  .brand img { height: 70px; width: auto; } .brand-footer img { height: 46px; }
  .hero-premium .hero-inner { padding-block: clamp(56px, 12vw, 84px); }
  .hero-premium h1 { font-size: clamp(2.05rem, 1.3rem + 4.4vw, 3rem); }
  .hero-premium .hero-sub { font-size: 1rem; margin-bottom: 1.8rem; }
  .hero-cta { width: 100%; padding: .85em 1.4em; }
  .btn-row-centered { gap: 12px; }
  .eyebrow-premium { font-size: .68rem; letter-spacing: .16em; padding: .45em .95em; }
  .hero-bg-image img { object-position: 62% 40%; }
}

@media (max-width: 520px) {
  :root { --header-h: 63px; }
  .brand-sub { display: none; }
  /* Keep the outline buttons ("Sign in", "My submissions", "Editorial desk")
     reachable on phones — they live inside the collapsed drawer, so hiding
     them here would remove the only way to sign in on a phone. */
  .header-actions .btn { flex: 1 1 100%; }
  .record-card { padding: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-premium { min-height: auto; }
  .brand img { height: 62px; width: auto; } .brand-footer img { height: 42px; }
}

/* ------------------------------------------------------------------ *
 * 19. Print
 * ------------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .flash-area, .skip-link, .announcement-ticker,
  .btn, .pagination, .onpage-nav, .share-row { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .record-card, .article-card { border: 1px solid #999; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #444; }
}



