/* GNDS website styles, ported from the approved prototype's inline styles
   (docs/reference/gnds-prototype-reference.dc.html). */

:root {
  --ink: #1C1A16;
  --paper: #FBF9F6;
  --white: #FFFFFF;
  --line: #E4DFD6;
  --muted: #6B675C;
  --red: #C8102E;
  --red-dark: #A00D24;
  --gold: #E8B10A;
  --pad-x: clamp(16px, 4vw, 48px);
  --pad-x-wide: clamp(20px, 5vw, 64px);
  --max: 1240px;
}
[data-branch="land"] {
  --dark: #06381A; --deepest: #052D15; --brand: #0A6B2D; --tint: #E7F1E9; --tint-line: #D6E4D9; --scrim: 5, 40, 20;
}
[data-branch="marine"] {
  --dark: #062B3F; --deepest: #04202F; --brand: #0B5C86; --tint: #E4EEF4; --tint-line: #CFE0EA; --scrim: 5, 32, 46;
}

/* ---------- base (prototype <style> block) ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif; line-height: 1.6; text-wrap: pretty; }
[lang="ar"] { font-family: "IBM Plex Sans Arabic", ui-sans-serif, system-ui, "Segoe UI", Tahoma, sans-serif; line-height: 1.8; letter-spacing: normal; }
h1, h2, h3, h4, p, ul, li, figure { margin: 0; }
ul { padding: 0; list-style: none; }
[lang="en"] h1, [lang="en"] h2, [lang="en"] h3, [lang="fr"] h1, [lang="fr"] h2, [lang="fr"] h3 { font-family: Fraunces, Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.15; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; font-weight: 700; line-height: 1.45; letter-spacing: normal; }
a { color: var(--brand, #0A6B2D); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
* :focus-visible, :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes gnds-wave { 0% { transform: translateY(108%); } 42% { transform: translateY(0); } 58% { transform: translateY(0); } 100% { transform: translateY(-112%); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { transition: none !important; animation: none !important; } }

/* Scroll reveal (classes are added by site.js, so nothing is hidden without JavaScript). */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal .reveal-item { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(140ms + var(--reveal-i, 0) * 70ms); }
.reveal.is-in .reveal-item { opacity: 1; transform: none; }
@media print { .reveal, .reveal .reveal-item { opacity: 1 !important; transform: none !important; } }
.js .nojs-only { display: none !important; }
.no-js .js-only { display: none !important; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x); }

/* ---------- skip link ---------- */
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; background: var(--dark); color: var(--paper); padding: 10px 16px; z-index: 90; }
.skip:focus { inset-inline-start: 12px; color: var(--paper); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(251,249,246,0.94); backdrop-filter: saturate(120%) blur(6px); -webkit-backdrop-filter: saturate(120%) blur(6px); border-block-end: 1px solid var(--line); }
.header-row { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x); display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding-block: 16px; transition: padding 180ms ease; }
.site-header.scrolled .header-row { padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--dark); flex: 0 0 auto; }
.brand:hover { color: var(--dark); }
.brand-mark { display: block; width: 52px; height: 52px; overflow: hidden; flex: 0 0 auto; transition: all 180ms ease; }
.site-header.scrolled .brand-mark { width: 40px; height: 40px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text { display: grid; gap: 1px; }
.brand-name { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 15px; letter-spacing: 0.01em; line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
/* Pushes the switches to the end when the desktop menu is hidden (tablets). */
.header-spacer { flex: 1 1 auto; display: none; }

/* Equal auto margins centre the menu between the logo and the switches. */
.nav-desktop { display: flex; align-items: stretch; gap: 2px; margin-inline: auto; }
.nav-item { position: relative; display: flex; }
.nav-link { display: grid; gap: 6px; padding: 8px 9px; min-height: 44px; align-content: center; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; background: transparent; border: 0; cursor: pointer; }
.nav-link:hover { color: var(--brand); }
.nav-rule { display: block; height: 2px; background: transparent; }
.nav-link[aria-current="page"] .nav-rule, .nav-link.is-current .nav-rule { background: var(--red); }
.nav-caret-label { display: inline-flex; gap: 6px; align-items: center; }
.nav-caret { font-size: 10px; display: inline-block; transition: transform 160ms ease; }
.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-sub { position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-block-start: 3px solid var(--red); box-shadow: 0 12px 28px rgba(28,26,22,0.14); padding: 6px; display: grid; gap: 2px; z-index: 70; }
.nav-sub[hidden] { display: none; }
.nav-sub a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-sub a:hover { background: var(--tint); color: var(--brand); }
.nav-sub a[aria-current="page"] { color: var(--brand); background: var(--tint); }
/* "Join Us" stands out in red text in both the desktop menu and the mobile drawer. */
.nav-link.nav-join, .drawer-link.nav-join { color: var(--red); }
.nav-link.nav-join:hover, .drawer-link.nav-join:hover { color: var(--red-dark); }

.header-controls { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.switch { display: flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; margin: 0; }
.switch-branch { background: var(--white); }
.switch button, .switch a { min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; text-decoration: none; }
.switch-branch button[aria-pressed="true"] { background: var(--dark); color: var(--paper); }
/* Language switch: compact, last in the header row (top-right corner; top-left in Arabic). */
.switch-lang a { min-width: 34px; min-height: 34px; padding: 0 8px; font-size: 13px; justify-content: center; color: var(--dark); box-sizing: border-box; }
.switch-lang a[aria-current="true"] { background: var(--dark); color: var(--paper); }
.btn-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; background: var(--red); color: var(--paper); border-radius: 2px; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; }
.btn-cta:hover { background: var(--red-dark); color: var(--paper); }
.menu-btn { width: 46px; height: 46px; display: none; place-content: center; gap: 5px; background: transparent; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--dark); }
.menu-btn span:last-child { width: 14px; background: var(--red); }

.drawer { border-block-start: 1px solid var(--line); background: var(--paper); padding: 8px var(--pad-x) 20px; display: none; gap: 2px; max-height: calc(100vh - 90px); overflow-y: auto; }
.drawer.open { display: grid; }
.drawer-link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding-inline: 4px; text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 600; border-block-end: 1px solid var(--line); }
.drawer-link:hover { color: var(--brand); }
.drawer-link .arrow { color: transparent; font-size: 13px; }
.drawer-link[aria-current="page"] .arrow { color: var(--red); }
[dir="rtl"] .drawer-link .arrow { transform: scaleX(-1); }
.drawer-group { border-block-end: 1px solid var(--line); padding-block-end: 6px; }
.drawer-group-label { display: flex; align-items: center; min-height: 52px; padding-inline: 4px; font-size: 17px; font-weight: 600; color: var(--ink); }
.drawer-sub { display: flex; align-items: center; min-height: 46px; padding-inline: 18px 4px; text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 600; border-inline-start: 2px solid var(--line); margin-inline-start: 6px; }
.drawer-sub:hover { color: var(--brand); }
.drawer-sub[aria-current="page"] { color: var(--brand); border-inline-start-color: var(--red); }

/* Below 1280px the full menu (widest in French) no longer fits on one row beside the logo and
   switches, so the hamburger takes over and the header stays a single row. */
@media (max-width: 1279px) {
  .nav-desktop { display: none; }
  .header-spacer { display: block; }
  .js .menu-btn { display: grid; }
  .no-js .drawer { display: grid; }
}
/* Phones: logo, language switch and hamburger share the top row; Land/Marine gets its own
   full-width row underneath. */
@media (max-width: 640px) {
  .header-row { gap: 10px 8px; }
  /* The brand takes the space left over (basis 0) so it shrinks and wraps instead of pushing
     the switch and hamburger onto another row. */
  .brand { flex: 1 1 0; min-width: 0; gap: 8px; }
  .brand-text { min-width: 0; }
  .brand-name { font-size: 14px; }
  .header-spacer { display: none; }
  .brand-mark, .site-header.scrolled .brand-mark { width: 36px; height: 36px; }
  .header-controls { display: contents; }
  .switch-branch { order: 1; flex: 1 1 100%; }
  .switch-branch button { flex: 1 1 0; justify-content: center; min-height: 40px; }
  .switch-lang a { min-width: 32px; padding: 0 6px; }
  .menu-btn { width: 42px; height: 42px; }
}

/* ---------- branch-switch wave ---------- */
.wave { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.wave span { position: absolute; inset-inline: -8%; bottom: 0; height: 132%; border-radius: 46% 54% 0 0 / 16% 18% 0 0; transform: translateY(108%); animation: gnds-wave 900ms cubic-bezier(.6,.05,.3,1) forwards; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--paper); }
.footer-grid { max-width: var(--max); margin-inline: auto; padding: clamp(44px, 7vw, 80px) var(--pad-x-wide) 28px; display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col:first-child { gap: 16px; }
.footer-logo { width: 104px; height: auto; background: var(--paper); padding: 10px; justify-self: start; }
.footer-blurb { color: rgba(251,249,246,0.78); font-size: 14px; max-width: 30ch; }
.footer-motto { color: var(--gold); font-size: 15px; font-weight: 600; max-width: 26ch; }
.footer-h { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(251,249,246,0.6); font-weight: 600; font-family: inherit !important; }
.footer-contacts { display: grid; gap: 10px; }
.footer-contacts li { display: grid; gap: 1px; }
.footer-contacts .role { font-size: 12px; color: rgba(251,249,246,0.6); }
.footer-contacts a { color: var(--paper); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.footer-contacts a:hover, .footer-mail:hover, .footer-nav a:hover { color: var(--gold); }
.footer-mail { color: rgba(251,249,246,0.86); font-size: 14px; word-break: break-all; min-height: 44px; display: inline-flex; align-items: center; }
.footer-address { color: rgba(251,249,246,0.86); font-size: 15px; max-width: 24ch; }
.footer-map { position: relative; aspect-ratio: 3 / 2; background: rgba(251,249,246,0.08); border: 1px dashed rgba(251,249,246,0.35); }
.footer-map span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 11px; color: rgba(251,249,246,0.7); padding: 10px; }
.footer-nav { display: grid; gap: 2px; }
.footer-nav a { color: rgba(251,249,246,0.86); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; font-size: 15px; }
.footer-nav .minor { color: rgba(251,249,246,0.55); font-size: 13px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-langs a { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; background: transparent; border: 1px solid rgba(251,249,246,0.4); color: var(--paper); border-radius: 2px; font-weight: 600; text-decoration: none; }
.footer-langs a[aria-current="true"] { background: rgba(251,249,246,0.16); }
.footer-langs a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom { border-block-start: 1px solid rgba(251,249,246,0.16); }
.footer-bottom div { max-width: var(--max); margin-inline: auto; padding: 18px var(--pad-x-wide); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12px; color: rgba(251,249,246,0.6); }

/* ---------- error pages ---------- */
.page-head { background: var(--dark); color: var(--paper); }
.error-page { max-width: 760px; margin-inline: auto; padding: clamp(64px, 10vw, 120px) var(--pad-x-wide); display: grid; gap: 16px; }
.error-page h1 { font-size: clamp(30px, 4vw, 44px); color: var(--dark); }

/* ---------- shared bits ---------- */
.eyebrow-gold { color: var(--gold); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.eyebrow-brand { color: var(--brand); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.page-head { padding: clamp(40px, 7vw, 80px) var(--pad-x-wide); }
.page-head .inner { max-width: var(--max); margin-inline: auto; padding: 0; display: grid; gap: 14px; }
.page-head h1 { color: var(--paper); font-size: clamp(2rem, 5vw, 3.4rem); max-width: 26ch; }
.page-head p:not(.eyebrow-gold) { color: rgba(251,249,246,0.82); max-width: 58ch; font-size: inherit; }
.section { max-width: var(--max); margin-inline: auto; padding: clamp(40px, 6vw, 80px) var(--pad-x-wide); }
.stack-sm { display: grid; gap: 14px; align-content: start; }
.stack-md { display: grid; gap: 22px; align-content: start; }
.stack-lg { display: grid; gap: 26px; }
.stack-xl { display: grid; gap: clamp(40px, 6vw, 72px); }
.stack-xxl { display: grid; gap: clamp(44px, 7vw, 84px); }
.center { text-align: center; }
.h2-dark { color: var(--dark); font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.h2-md { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.h2-sm { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.h2-xs { font-size: 1.28rem; }
.lead-muted { color: var(--muted); max-width: 64ch; }
.muted { color: var(--muted); }
.muted-sm { font-size: 14px; color: var(--muted); }
.muted-xs { font-size: 12px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); max-width: 74ch; }
.measure-56 { max-width: 56ch; } .measure-62 { max-width: 62ch; } .measure-70 { max-width: 70ch; }
.pre-line { white-space: pre-line; }
.strong { font-weight: 600; }
.red-rule { display: block; width: 56px; height: 3px; background: var(--red); }
.brand-rule { display: block; width: 56px; height: 3px; background: var(--brand); }
.arrow { display: inline-block; }
[dir="rtl"] .arrow, [dir="rtl"] .arrow-back { transform: scaleX(-1); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--brand); }
.link-arrow.small { font-size: 14px; gap: 6px; justify-self: start; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-md { min-height: 50px; padding: 0 26px; }
.btn-ghost-light { display: inline-flex; align-items: center; border: 1px solid rgba(251,249,246,0.55); color: var(--paper); font-weight: 600; border-radius: 2px; text-decoration: none; }
.btn-ghost-light:hover { background: rgba(251,249,246,0.12); border-color: var(--paper); color: var(--paper); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--brand); color: var(--brand); border-radius: 2px; font-weight: 600; text-decoration: none; background: transparent; cursor: pointer; }
.btn-outline:hover { background: var(--brand); color: var(--paper); }
.side-rule { padding-inline-start: 20px; border-inline-start: 3px solid var(--brand); display: grid; gap: 6px; }
.side-rule h2 { font-size: 1.2rem; color: var(--dark); }
.side-red { border-inline-start-color: var(--red); }
.card-white { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
.band-white { background: var(--white); border-block: 1px solid var(--line); }
.tint-box { background: var(--tint); border: 1px solid var(--tint-line); padding: clamp(24px, 4vw, 38px); }
.note-box { background: #FDF3D7; border-inline-start: 3px solid var(--gold); padding: 18px 20px; display: grid; gap: 6px; }
.note-box-lg { padding: clamp(22px, 4vw, 34px); }
.note-box-h { font-weight: 600; color: var(--dark); }
.rule-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rule-head h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); color: var(--dark); }
.rule-head > span { flex: 1 1 auto; height: 2px; background: var(--line); }
.ph { position: relative; background: repeating-linear-gradient(45deg, rgba(6,56,26,0.05) 0 1px, transparent 1px 12px), var(--tint); border: 1px solid var(--tint-line); overflow: hidden; }
.ph-43 { aspect-ratio: 4 / 3; } .ph-45 { aspect-ratio: 4 / 5; border: 0; } .ph-167 { aspect-ratio: 16 / 7; }
.ph-tag { position: absolute; top: 10px; inset-inline-start: 10px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); border: 1px dashed var(--brand); padding: 4px 7px; background: var(--paper); }
.ph-brief { position: absolute; bottom: 8px; inset-inline: 8px; font-size: 11px; color: var(--muted); }
.avatar { border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.avatar-initials { background: var(--tint); color: var(--brand); display: grid; place-content: center; font-family: Fraunces, Georgia, serif; font-weight: 600; }
.avatar-sm { width: 56px; height: 56px; } .avatar-sm.avatar-initials { font-family: inherit; }
.avatar-lg { width: 92px; height: 92px; font-size: 1.6rem; border: 3px solid var(--tint); }
.avatar-xl { width: 96px; height: 96px; font-size: 1.6rem; border: 3px solid var(--tint); }
.avatar-initials.avatar-lg, .avatar-initials.avatar-xl { border: 0; }

/* ---------- home: hero ---------- */
.hero { position: relative; background: var(--dark); overflow: hidden; min-height: clamp(520px, 78vh, 760px); display: grid; align-items: end; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-ph { background: repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 9px), radial-gradient(120% 90% at var(--origin), var(--brand) 0%, var(--dark) 62%, var(--deepest) 100%); }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--scrim),0.92) 0%, rgba(var(--scrim),0.45) 46%, rgba(var(--scrim),0.25) 100%); }
.hero-ph-tag { position: absolute; top: 16px; inset-inline-start: 16px; border: 1px dashed rgba(251,249,246,0.5); color: rgba(251,249,246,0.78); font-size: 11px; letter-spacing: 0.08em; padding: 6px 10px; text-transform: uppercase; }
/* The brief is English (dir=ltr), so it is placed with physical sides of the page, away from the dots. */
.hero-brief { position: absolute; bottom: 14px; right: 16px; max-width: min(300px, calc(100% - 190px)); color: rgba(251,249,246,0.62); font-size: 11px; line-height: 1.5; text-align: right; }
[dir="rtl"] .hero-brief { right: auto; left: 16px; text-align: left; }
@media (max-width: 560px) { .hero-brief { display: none; } }
.hero-dots { position: absolute; bottom: 14px; inset-inline-start: 12px; display: flex; gap: 2px; z-index: 2; }
.hero-dots button { width: 44px; height: 44px; display: grid; place-content: center; background: transparent; border: 0; cursor: pointer; }
.hero-dots span { display: block; width: 26px; height: 3px; background: rgba(251,249,246,0.4); }
.hero-dots button[aria-selected="true"] span { background: var(--paper); }
.hero-body { position: relative; max-width: var(--max); margin-inline: auto; width: 100%; padding: clamp(64px, 10vw, 120px) var(--pad-x-wide) clamp(56px, 7vw, 88px); box-sizing: border-box; }
.hero-eyebrow { color: var(--gold); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-block-end: 20px; }
.hero h1 { color: var(--paper); font-size: clamp(2.1rem, 6.4vw, 4.6rem); max-width: 20ch; margin-block-end: 8px; }
.hero-alt { color: rgba(251,249,246,0.82); font-size: clamp(0.95rem, 2vw, 1.15rem); max-width: 48ch; margin-block-end: 12px; }
.hero-sub { color: rgba(251,249,246,0.9); font-size: clamp(0.95rem, 2vw, 1.05rem); margin-block-end: 36px; }

/* ---------- home: facts ---------- */
.facts { background: var(--white); border-block-end: 1px solid var(--line); }
.facts ul { max-width: 1100px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--pad-x-wide); display: grid; gap: 32px 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.facts li { display: grid; justify-items: center; gap: 8px; text-align: center; }
.fact-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--tint); color: var(--brand); display: grid; place-content: center; }
.fact-num { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
.fact-label { font-size: 15px; color: var(--muted); }

/* ---------- home: who / branches / history / gallery / cta ---------- */
.who { max-width: var(--max); margin-inline: auto; padding: clamp(56px, 8vw, 104px) var(--pad-x-wide); display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: center; }
.who h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--dark); margin-block-end: 14px; }
.who .red-rule { margin-block-end: 24px; }
.who-lead { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 46ch; margin-block-end: 20px; }
.who-body { color: var(--muted); max-width: 46ch; margin-block-end: 28px; }
.who-fig { display: grid; gap: 10px; }
.who-fig figcaption { font-size: 12px; color: var(--muted); }
.branches { background: #F6F3EE; border-block: 1px solid var(--line); }
.branches-inner { max-width: 1280px; margin-inline: auto; padding: clamp(56px, 8vw, 104px) var(--pad-x-wide); }
.branches-head { text-align: center; display: grid; justify-items: center; gap: 12px; margin-block-end: clamp(32px, 5vw, 48px); }
.branches-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--ink); }
.branches-head p:last-child { color: #4A463E; max-width: 60ch; font-size: clamp(1rem, 1.6vw, 1.12rem); }
.branch-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
.branch-cards > li { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 6px 20px rgba(28,26,22,0.08); display: grid; grid-template-rows: auto 1fr; }
.branch-card-top { padding: 18px 18px 16px; display: grid; gap: 6px; align-content: start; }
.branch-icon { display: block; height: 26px; }
.branch-card-top h3 { font-size: 1.15rem; }
.branch-ages { font-size: 13px; }
.branch-card-body { padding: 18px; display: grid; gap: 14px; align-content: space-between; }
.branch-card-body p { font-size: 14px; color: #4A463E; line-height: 1.6; }
.hist-teaser { padding-block: clamp(56px, 8vw, 104px); }
.hist-teaser h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--dark); margin-block-end: 10px; }
.hist-teaser .lead-muted { max-width: 56ch; margin-block-end: 40px; }
.timeline-row { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; margin: 0 0 32px; }
.timeline-row li { flex: 1 1 190px; min-width: 190px; border-block-start: 2px solid var(--line); padding-block-start: 20px; position: relative; }
.timeline-row .dot { position: absolute; top: -6px; inset-inline-start: 0; width: 10px; height: 10px; background: var(--red); border-radius: 50%; }
.timeline-row .year { display: block; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 1.15rem; color: var(--brand); margin-block-end: 6px; font-variant-numeric: tabular-nums; text-align: start; }
.timeline-row .text { display: block; font-size: 15px; }
.gallery { background: var(--tint); border-block: 1px solid var(--tint-line); scroll-margin-top: 90px; }
.gallery-inner { max-width: var(--max); margin-inline: auto; padding: clamp(56px, 8vw, 96px) var(--pad-x-wide); }
.gallery-head { margin-block-end: 32px; }
.gallery-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--dark); margin-block-end: 8px; }
.gallery-head p { color: var(--muted); max-width: 52ch; }
.gallery-cols { columns: 250px; column-gap: 18px; }
.gallery-item { display: block; width: 100%; margin: 0 0 18px; padding: 0; border: 1px solid var(--tint-line); background: var(--paper); break-inside: avoid; text-decoration: none; }
a.gallery-item:hover { border-color: var(--brand); }
.gallery-item img { display: block; width: 100%; height: auto; }
.gallery-ph { display: block; background: repeating-linear-gradient(45deg, rgba(6,56,26,0.05) 0 1px, transparent 1px 12px), var(--tint); }
.gallery-cap { display: block; padding: 10px 12px 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.gallery-more { margin-block-start: 14px; }
.gallery-more .btn-outline { display: inline-flex; align-items: center; gap: 8px; }
.gallery-page { max-width: var(--max); margin-inline: auto; padding: clamp(32px, 5vw, 56px) var(--pad-x-wide) clamp(56px, 8vw, 96px); }
.gallery-consent { margin-block-start: 12px; font-size: 12px; color: var(--muted); max-width: 70ch; }
.band-cta { background: var(--dark); }
.band-cta > div { max-width: 1000px; margin-inline: auto; padding: clamp(56px, 8vw, 104px) var(--pad-x-wide); }
.band-cta h2 { color: var(--paper); font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-block-end: 18px; max-width: 26ch; }
.band-cta p { color: rgba(251,249,246,0.84); font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 56ch; margin-block-end: 32px; }

/* ---------- about / identity / affiliation ---------- */
.about-grid { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); padding-block: clamp(48px, 7vw, 88px); }
.about-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 44ch; }
.about-blocks { display: grid; gap: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 28px; }
.pills li { padding: 10px 18px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; font-weight: 600; color: var(--dark); font-size: 15px; }
.id-intro { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); align-items: center; }
.id-emblem { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); display: grid; justify-items: center; }
.id-emblem img { width: min(240px, 100%); height: auto; }
.id-intro .side-rule h2 { font-size: 1.15rem; }
.swatch-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.swatch-grid li { background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.swatch { display: block; height: 64px; }
.swatch-text { display: grid; gap: 4px; padding: 14px; }
.swatch-name { font-weight: 600; }
.swatch-use { font-size: 14px; color: var(--muted); }
.duty-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.duty-grid li { background: var(--tint); border: 1px solid var(--tint-line); padding: 18px; display: grid; gap: 6px; }
.duty-h { font-weight: 600; color: var(--dark); }
.duty-p { font-size: 14px; }
.measure-80 { max-width: 80ch; }
.point-brand { background: var(--brand); }
.point-gold { background: var(--gold); }
.id-sub { font-size: 1.1rem; color: var(--dark); margin-block-start: 8px; }
.id-quote { margin: 0; padding: 18px 22px; border-inline-start: 3px solid var(--brand); background: var(--tint); font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 600; color: var(--dark); max-width: 70ch; }
.id-quote-cub { border-inline-start-color: var(--gold); background: #FDF3D7; font-size: 1.05rem; }
.law-list { margin: 0; padding: 0; list-style: none; counter-reset: law; display: grid; gap: 10px 28px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.law-list li { counter-increment: law; display: flex; gap: 14px; align-items: baseline; padding-block-end: 10px; border-block-end: 1px solid var(--line); }
.law-list li::before { content: counter(law); flex: 0 0 1.6em; font-weight: 700; color: var(--red); font-size: 1.15rem; }
.creed-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.creed-grid > li { background: var(--white); border: 1px solid var(--line); border-block-start: 3px solid var(--brand); padding: 18px; display: grid; gap: 10px; align-content: start; }
.creed-list { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 6px; font-size: 15px; }
.motto-text { font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.prayer-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.prayer-grid li { background: var(--white); border: 1px solid var(--line); padding: 22px; display: grid; gap: 10px; align-content: start; }
.prayer-grid h3 { font-size: 1.05rem; color: var(--dark); }
.prayer-grid p { font-size: 15px; }
.af-section { max-width: 760px; margin-inline: auto; padding: clamp(40px, 6vw, 80px) var(--pad-x-wide); display: grid; justify-items: center; }
.af-chain { list-style: none; margin: 0; padding: 0; display: grid; justify-items: center; width: 100%; }
.af-chain li { display: grid; justify-items: center; width: 100%; }
.af-link { display: block; width: 2px; height: 30px; background: #CFC8BB; }
.af-box { width: 100%; max-width: 520px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-block-start: 4px solid var(--brand); padding: 18px 22px; display: grid; gap: 4px; text-align: center; box-sizing: border-box; }
.af-box.af-group { background: var(--dark); color: var(--paper); border-color: var(--dark); }
.af-accent-gold { border-block-start-color: var(--gold); }
.af-accent-red { border-block-start-color: var(--red); }
.af-level { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; opacity: 0.8; }
.af-name { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 1.2rem; }
[lang="ar"] .af-name { font-family: inherit; }
.af-note { font-size: 14px; opacity: 0.85; }
.af-section .note-box { margin-block-start: 36px; width: 100%; box-sizing: border-box; }
.af-section .note { margin-block-start: 18px; }

/* ---------- history ---------- */
.hist-section { max-width: 1080px; margin-inline: auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 64px); }
.hist-tree { position: relative; }
.hist-line { position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; width: 2px; margin-inline-start: -1px; background: linear-gradient(to bottom, var(--brand), var(--red)); }
.hist-tree ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 3vw, 30px); }
.hist-tree li { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); column-gap: clamp(12px, 3vw, 28px); align-items: start; }
.hist-node { grid-column: 2; grid-row: 1; justify-self: center; margin-block-start: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--red); box-sizing: border-box; }
.hist-card { grid-row: 1; background: var(--white); border: 1px solid var(--line); border-block-start: 3px solid var(--brand); padding: clamp(16px, 2.4vw, 22px); display: grid; gap: 10px; }
.hist-left .hist-card { grid-column: 1; }
.hist-right .hist-card { grid-column: 3; }
.hist-year { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--brand); text-align: start; }
.hist-card h2 { font-size: 1.12rem; color: var(--dark); }
.hist-card > p { color: #4A463E; font-size: 15px; }
.hist-card .ph-tag { top: 8px; inset-inline-start: 8px; padding: 3px 6px; }
@media (max-width: 1080px) {
  .hist-line { inset-inline-start: 18px; }
  .hist-tree li { grid-template-columns: 36px minmax(0, 1fr); }
  .hist-node { grid-column: 1; }
  .hist-left .hist-card, .hist-right .hist-card { grid-column: 2; }
}
/* History timeline: each card slides in from its own side (classes added by site.js). */
.hist-tree { overflow-x: clip; }
.hist-left { --hist-from: -72px; }
.hist-right { --hist-from: 72px; }
[dir="rtl"] .hist-left { --hist-from: 72px; }
[dir="rtl"] .hist-right { --hist-from: -72px; }
.hist-anim .hist-card { opacity: 0; transform: translateX(var(--hist-from, 0)); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hist-anim .hist-node { transform: scale(0); transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) 0.2s; }
.hist-anim.is-in .hist-card { opacity: 1; transform: none; }
.hist-anim.is-in .hist-node { transform: none; }
@media (max-width: 1080px) {
  .hist-left, .hist-right { --hist-from: 56px; }
  [dir="rtl"] .hist-left, [dir="rtl"] .hist-right { --hist-from: -56px; }
}
@media print { .hist-anim .hist-card, .hist-anim .hist-node { opacity: 1 !important; transform: none !important; } }

/* ---------- leadership ---------- */
.tree { display: grid; justify-items: center; }
.tree-level { display: grid; justify-items: center; width: 100%; }
.tree-stem { display: block; width: 2px; height: 28px; background: #CFC8BB; }
.tree-bar { display: block; height: 2px; width: var(--bar-w); max-width: 100%; background: #CFC8BB; }
.tree-drop { display: block; width: 2px; height: 18px; background: #CFC8BB; }
.tree-level ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; width: 100%; }
.tree-level li { display: grid; justify-items: center; width: 240px; max-width: 100%; }
.leader-card { width: 100%; box-sizing: border-box; background: var(--white); border: 1px solid var(--line); border-block-start: 3px solid var(--dark); padding: 18px 16px; display: grid; justify-items: center; gap: 8px; text-align: center; margin-block-end: 8px; }
.tree-level-2 .leader-card { border-block-start-color: var(--brand); }
.tree-level-3 .leader-card { border-block-start-color: var(--red); }
.rank-badge { background: var(--dark); color: var(--paper); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; }
.tree-level-2 .rank-badge { background: var(--brand); }
.tree-level-3 .rank-badge { background: var(--red); }
.leader-card h3 { font-size: 1.12rem; color: var(--dark); }
.leader-card .tel { min-height: 40px; display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; }
@media (max-width: 1080px) { .tree-bar, .tree-drop { display: none; } }
.board-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.board-grid > li { background: var(--white); border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.board-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.board-ph { display: grid; place-content: center; }
.board-initials { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 2.2rem; color: var(--brand); }
.board-body { padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.board-body h3 { font-size: 1.08rem; color: var(--dark); }
.chief-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.chief-grid > li { background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--line); padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.chief-body { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.chief-name { font-weight: 600; color: var(--dark); }
.chief-body a { font-size: 14px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; justify-self: start; }

/* ---------- troops ---------- */
.band-section { scroll-margin-top: 110px; }
.band-intro { display: grid; gap: clamp(18px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; }
.band-card { padding: clamp(22px, 3vw, 30px); display: grid; gap: 10px; border-radius: 10px; }
.band-ages { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.band-card h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.band-word { font-size: 14px; opacity: 0.9; }
.band-motto { margin-block-start: 6px; font-weight: 600; }
.band-method { font-size: clamp(1rem, 1.6vw, 1.08rem); }
.points { display: grid; gap: 8px; }
.points li { display: flex; gap: 10px; align-items: baseline; }
.point-dot { width: 8px; height: 8px; flex: 0 0 auto; transform: translateY(-1px); }
.unit-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.unit-cards > li { background: var(--white); border: 1px solid var(--line); border-block-start: 4px solid var(--line); display: grid; gap: 10px; padding: 20px; align-content: start; }
.unit-kind { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.unit-cards h3 { font-size: 1.25rem; color: var(--dark); }
.unit-cards dl { display: grid; gap: 6px; margin: 0; font-size: 14px; }
.unit-cards dl div { display: flex; justify-content: space-between; gap: 10px; }
.unit-cards dt { color: var(--muted); }
.unit-cards dd { margin: 0; font-weight: 600; text-align: end; }
.unit-cards .btn-outline { margin-block-start: 6px; }

/* ---------- unit page ---------- */
.unit-head { background: var(--dark); padding: clamp(36px, 6vw, 72px) var(--pad-x-wide); border-block-end: 6px solid var(--line); }
.unit-head .inner { max-width: var(--max); margin-inline: auto; display: grid; gap: 14px; }
.unit-head h1 { color: var(--paper); font-size: clamp(2rem, 5vw, 3.4rem); max-width: 24ch; }
.back-link { color: rgba(251,249,246,0.85); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; justify-self: start; text-decoration: none; }
.back-link:hover { color: var(--gold); }
.arrow-back { display: inline-block; }
.unit-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(251,249,246,0.85); font-size: 15px; }
.archived-note { background: #FDF3D7; border-inline-start: 3px solid var(--gold); padding: 14px 18px; font-weight: 600; color: var(--dark); }
.unit-top { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; }
.saturday { gap: 12px; padding: 20px 22px; }
.saturday h3 { font-size: 1.1rem; color: var(--dark); }
.saturday dl { display: grid; gap: 12px; margin: 0; }
.saturday dl div { display: grid; gap: 2px; }
.saturday dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.saturday dd { margin: 0; text-align: start; }
.saturday dd[dir="ltr"] { font-weight: 600; }
.people-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.people-grid > li { background: var(--white); border: 1px solid var(--line); padding: 18px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.person-name { font-weight: 600; color: var(--dark); font-size: 1.05rem; }
.patrol-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.patrol-grid > li { background: var(--tint); border: 1px solid var(--tint-line); border-block-start: 3px solid var(--line); padding: 16px 18px; display: grid; gap: 4px; }
.patrol-name { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 1.12rem; color: var(--dark); }
.patrol-note { font-size: 14px; color: #4A463E; }
.unit-cta { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: clamp(22px, 4vw, 34px); }

/* ---------- news ---------- */
.home-news { max-width: var(--max); margin-inline: auto; padding: clamp(48px, 7vw, 88px) var(--pad-x-wide) 0; }
.home-news-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-block-end: 8px; }
.home-news-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--dark); }
.home-news .lead-muted { max-width: 60ch; margin-block-end: 32px; }
.news-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.news-cards-compact { gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.news-card { background: var(--white); border: 1px solid var(--line); border-block-start: 3px solid var(--brand); border-radius: 2px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; align-content: start; }
.news-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tint); }
.news-card-banner { position: relative; aspect-ratio: 16 / 9; background-color: var(--dark); background-size: cover; background-position: center; display: grid; align-content: end; padding: 16px 18px; }
.news-card-banner span { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.news-card-body { padding: 22px; display: grid; gap: 10px; align-content: start; }
.news-cards-compact .news-card-body { padding: 18px 20px; gap: 8px; }
.news-card h3 { font-size: 1.2rem; color: var(--dark); text-align: start; }
.news-cards-compact .news-card h3 { font-size: 1.12rem; }
.news-card p { color: var(--muted); font-size: 15px; text-align: start; }
.news-cards-compact .news-card p { font-size: 14px; }
.news-card .link-arrow { justify-self: start; }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12px; }
.news-cat { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.news-date { color: var(--muted); }
.news-pdf { font-weight: 600; color: var(--brand); border: 1px solid var(--tint-line); background: var(--tint); padding: 2px 7px; border-radius: 999px; }
.news-meta-light { font-size: 13px; color: rgba(251,249,246,0.82); gap: 6px 14px; }
.news-meta-light .news-cat { color: var(--gold); letter-spacing: 0.12em; }
.news-list { max-width: 980px; margin-inline: auto; padding: clamp(36px, 6vw, 72px) var(--pad-x-wide); }
.news-list ol { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
.news-row { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: clamp(16px, 3vw, 36px); padding-block: clamp(22px, 4vw, 34px); border-block-end: 1px solid var(--line); align-items: start; }
.news-row-meta { display: grid; gap: 6px; }
.news-row-date { font-size: 14px; font-weight: 600; color: var(--brand); }
.news-row .news-cat { font-size: 11px; }
.news-row-body { display: grid; gap: 8px; }
.news-row-body img { display: block; width: 100%; max-width: 420px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tint); border: 1px solid var(--tint-line); margin-block-end: 6px; }
.news-row-body h2 { font-size: 1.25rem; color: var(--dark); text-align: start; }
.news-row-body p { color: var(--muted); max-width: 62ch; text-align: start; }
.news-row-body .link-arrow { justify-self: start; }
@media (max-width: 560px) { .news-row { grid-template-columns: 1fr; gap: 10px; } }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-block-start: 32px; }
.pager-no { font-weight: 600; min-width: 2ch; text-align: center; }
.article-banner { background-color: var(--dark); background-size: cover; background-position: center; min-height: clamp(380px, 60vh, 620px); display: grid; align-items: end; }
.article-banner-inner { max-width: 1000px; width: 100%; margin-inline: auto; padding: clamp(48px, 8vw, 96px) var(--pad-x-wide) clamp(36px, 6vw, 64px); box-sizing: border-box; display: grid; gap: 14px; }
.article-banner h1 { color: var(--paper); font-size: clamp(2rem, 5.4vw, 3.8rem); max-width: 22ch; text-align: start; }
.article-banner p { color: rgba(251,249,246,0.88); font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 56ch; text-align: start; }
.article { max-width: 780px; margin-inline: auto; padding: clamp(28px, 5vw, 64px) var(--pad-x-wide) clamp(48px, 7vw, 88px); display: grid; gap: 18px; }
.article--side { max-width: 1100px; }
.article--banner { max-width: 820px; }
.article .back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; justify-self: start; }
.article-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tint); border: 1px solid var(--tint-line); }
.article-side { display: grid; gap: clamp(22px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; }
.article-side img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--tint); border: 1px solid var(--tint-line); }
.article-text { display: grid; gap: 18px; align-content: start; }
.article-text .news-meta { font-size: 13px; gap: 6px 14px; }
.article-text h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--dark); text-align: start; }
.article-side .article-text h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.article-summary { font-size: clamp(1.05rem, 1.8vw, 1.2rem); text-align: start; }
.article-body { white-space: pre-line; text-align: start; }
.article-body-lg { font-size: clamp(1rem, 1.6vw, 1.1rem); }
.doc-box { margin-block-start: 10px; padding: 18px 20px; background: #FDF3D7; border-inline-start: 3px solid var(--gold); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.doc-box-text { display: grid; gap: 2px; min-width: 0; }
.doc-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.doc-name { font-weight: 600; word-break: break-all; text-align: start; }
.btn-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; background: var(--brand); color: var(--paper); border: 0; border-radius: 2px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-brand:hover { background: var(--dark); color: var(--paper); }

/* ---------- join ---------- */
.join-grid { max-width: var(--max); margin-inline: auto; padding: clamp(40px, 6vw, 80px) var(--pad-x-wide); display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); align-items: start; }
.join-form { display: grid; gap: 20px; max-width: 560px; }
.join-sent { background: var(--tint); border-inline-start: 3px solid var(--brand); padding: 16px 18px; color: var(--dark); font-weight: 600; }
.join-notice { background: #FDF3D7; border-inline-start: 3px solid var(--gold); padding: 16px 18px; color: var(--ink); font-weight: 600; }
.join-field { display: grid; gap: 7px; }
.join-field label { font-weight: 600; font-size: 15px; }
.join-field input, .join-field select { min-height: 48px; padding: 0 14px; background: var(--white); border: 1px solid var(--line); border-radius: 2px; font-size: 16px; width: 100%; box-sizing: border-box; }
.join-field select { padding: 0 12px; }
.join-field textarea { padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 2px; font-size: 16px; width: 100%; box-sizing: border-box; font-family: inherit; line-height: 1.6; }
.join-field input:focus, .join-field select:focus, .join-field textarea:focus { border-color: var(--brand); }
.join-field [aria-invalid="true"] { border-color: var(--red-dark); }
.join-err { color: var(--red-dark); font-size: 13px; font-weight: 600; }
.join-submit { justify-self: start; }
.join-submit:active { background: #8C0B1F; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join-aside { display: grid; gap: 20px; background: var(--tint); border: 1px solid var(--tint-line); padding: clamp(22px, 4vw, 32px); align-content: start; }
.join-aside h2 { font-size: 1.2rem; color: var(--dark); }
.join-aside ul { display: grid; gap: 14px; }
.join-aside li { display: grid; gap: 2px; }
.join-aside li a { font-weight: 600; font-size: 1.05rem; min-height: 44px; display: inline-flex; align-items: center; text-align: start; }
.join-aside-rule { height: 1px; background: var(--tint-line); }
.join-aside-item { display: grid; gap: 4px; }
.join-aside-item a { font-weight: 600; word-break: break-all; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- admin shell (prototype admin panel) ---------- */
body.admin { display: flex; flex-direction: column; }
.admin-head { background: var(--dark); padding: clamp(28px, 4vw, 48px) var(--pad-x-wide); }
.admin-head-inner { max-width: var(--max); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; justify-content: space-between; }
.admin-head .eyebrow-gold { margin-block-end: 12px; }
.admin-head h1 { color: var(--paper); font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 28ch; font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.15; }
.admin-who { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: rgba(251,249,246,0.88); font-size: 14px; }
.admin-who form { margin: 0; }
.role-badge { background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; }
.btn-sm { min-height: 44px; padding: 0 16px; background: transparent; cursor: pointer; }
.admin-tabs { border-block-end: 1px solid var(--line); background: var(--paper); }
.admin-tabs-inner { max-width: var(--max); margin-inline: auto; padding: 0 var(--pad-x-wide); display: flex; flex-wrap: wrap; gap: 4px; }
.admin-tabs a { min-height: 46px; padding: 0 16px; display: inline-flex; align-items: center; border-block-end: 3px solid transparent; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; margin-block-end: -1px; }
.admin-tabs a[aria-current="page"] { border-block-end-color: var(--red); color: var(--dark); }
.admin-tabs a:hover { color: var(--brand); }
.admin-main { flex: 1 0 auto; width: 100%; max-width: var(--max); margin-inline: auto; padding: clamp(28px, 5vw, 56px) var(--pad-x-wide) clamp(56px, 8vw, 96px); box-sizing: border-box; display: grid; gap: 24px; align-content: start; }
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: clamp(22px, 4vw, 32px); }
.admin-card h2 { font-size: 1.4rem; color: var(--dark); font-family: Fraunces, Georgia, serif; font-weight: 600; }
.admin-login { display: grid; justify-items: start; }
.admin-login .admin-card { max-width: 440px; width: 100%; box-sizing: border-box; }
.btn-google { gap: 10px; justify-self: start; background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-google:hover { background: var(--tint); color: var(--ink); }
.form-error { color: var(--red-dark); font-weight: 600; font-size: 14px; }
.flash { background: var(--tint); border-inline-start: 3px solid var(--brand); padding: 12px 16px; font-weight: 600; color: var(--dark); }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea { min-height: 46px; padding: 0 12px; background: var(--white); border: 1px solid var(--line); border-radius: 2px; font-size: 16px; width: 100%; box-sizing: border-box; }
.field textarea { padding: 10px 12px; min-height: 120px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red-dark); }
.admin-links { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--brand); border-radius: 2px; font-weight: 600; text-decoration: none; }
.admin-foot { border-block-start: 1px solid var(--line); padding: 18px var(--pad-x-wide); font-size: 13px; text-align: center; }
.admin-pane { display: grid; gap: 22px; }
.admin-form { background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); }
.pane-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; }
.pane-head h2 { font-size: 1.5rem; color: var(--dark); font-family: Fraunces, Georgia, serif; font-weight: 600; }
.pane-head p { max-width: 70ch; margin-block-start: 6px; }
.admin-rows { display: grid; border-block-start: 1px solid var(--line); }
.admin-rows > li { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding-block: 14px; border-block-end: 1px solid var(--line); }
.admin-row-main { display: grid; gap: 2px; flex: 1 1 280px; min-width: 0; }
.admin-row-title { font-weight: 600; color: var(--dark); }
.admin-tag { font-size: 12px; font-weight: 600; color: var(--brand); background: var(--tint); border: 1px solid var(--tint-line); padding: 3px 9px; border-radius: 999px; }
.admin-tag.off { color: var(--muted); background: #F3F0EA; border-color: var(--line); }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-row-actions form { margin: 0; }
.btn-xs { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-danger { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--red); color: var(--red); background: transparent; border-radius: 2px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-danger:hover { background: var(--red); color: var(--paper); }
.form-grid { display: grid; gap: 18px 22px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.span-all { grid-column: 1 / -1; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lang-switch .switch { background: var(--white); }
.lang-switch .switch a { min-height: 40px; padding: 0 12px; color: var(--dark); }
.lang-switch .switch a[aria-current="true"] { background: var(--dark); color: var(--paper); }
.tpl-set { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.tpl-set legend { font-weight: 600; font-size: 14px; margin-block-end: 10px; }
.tpl-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tpl-tile { display: grid; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: 4px; background: var(--white); cursor: pointer; position: relative; }
.tpl-tile:has(input:checked) { border-color: var(--brand); background: var(--tint); }
.tpl-tile:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.tpl-tile input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-text { display: grid; gap: 2px; }
.tpl-label { font-weight: 600; color: var(--dark); }
.tpl-desc { font-size: 13px; color: var(--muted); }
.tpl-mini { display: grid; gap: 4px; height: 64px; padding: 6px; background: var(--paper); border: 1px solid var(--line); box-sizing: border-box; }
.tpl-mini span { display: block; background: #D9D3C7; border-radius: 1px; }
.tpl-mini-standard { grid-template-rows: 6px 10px 6px 1fr; }
.tpl-mini-standard span:nth-child(2) { width: 70%; background: var(--dark); }
.tpl-mini-cover { grid-template-rows: 1fr 8px 5px 5px; }
.tpl-mini-cover span:first-child { background: var(--brand); opacity: 0.6; }
.tpl-mini-cover span:nth-child(2) { width: 70%; background: var(--dark); }
.tpl-mini-side { grid-template-columns: 40% 1fr; grid-template-rows: repeat(3, 1fr); }
.tpl-mini-side span:first-child { grid-row: 1 / -1; background: var(--brand); opacity: 0.6; }
.tpl-mini-side span:nth-child(2) { background: var(--dark); }
.tpl-mini-banner { grid-template-rows: 1fr 6px; background: linear-gradient(to top, var(--dark), var(--brand)); }
.tpl-mini-banner span { background: rgba(251,249,246,0.75); }
.tpl-mini-banner span:nth-child(1) { width: 70%; align-self: end; height: 8px; }
.tpl-mini-banner span:nth-child(n+3) { display: none; }
.upload-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.upload-box { display: grid; gap: 12px; align-content: start; padding: 16px; border: 1px dashed var(--line); background: var(--paper); }
.upload-box .label { font-weight: 600; font-size: 14px; }
.upload-preview { width: 100%; max-width: 320px; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.upload-preview.round { width: 96px; height: 96px; aspect-ratio: 1; border-radius: 50%; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.check input { width: 18px; height: 18px; }
.consent-line { font-size: 13px; color: var(--red-dark); font-weight: 600; }
.current-file { font-weight: 600; word-break: break-all; }
.h2-admin { font-size: 1.3rem; color: var(--dark); font-family: Fraunces, Georgia, serif; font-weight: 600; }
.h3-admin { font-size: 1.05rem; color: var(--dark); margin-block-start: 8px; font-family: inherit; font-weight: 600; }
.leaders-set { border: 1px solid var(--line); padding: 16px; margin: 0; display: grid; gap: 12px; }
.leaders-set legend { font-weight: 600; padding: 0 6px; }
.leader-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.leader-row { display: grid; gap: 10px 14px; grid-template-columns: auto repeat(auto-fit, minmax(min(180px, 100%), 1fr)); align-items: end; padding: 12px; background: var(--paper); border: 1px solid var(--line); }
.leader-row:first-child { border-inline-start: 4px solid var(--red); }
.image-rows { display: grid; gap: 12px; }
.image-rows > li { display: grid; gap: 12px 18px; grid-template-columns: 160px minmax(0, 1fr) auto; align-items: start; padding: 12px; border: 1px solid var(--line); background: var(--paper); }
@media (max-width: 760px) { .image-rows > li { grid-template-columns: 1fr; } }
.thumb { width: 160px; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); }
.hidden-img { opacity: 0.4; }
.image-fields { display: grid; gap: 10px; align-content: start; }
.image-fields .btn-xs { justify-self: start; }
.retention-box { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; background: #FDF3D7; border-inline-start: 3px solid var(--gold); padding: 14px 18px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-block-end: 1px solid var(--line); }
.filter-tabs a { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; border-block-end: 3px solid transparent; color: var(--muted); font-weight: 600; text-decoration: none; margin-block-end: -1px; }
.filter-tabs a[aria-current="page"] { border-block-end-color: var(--red); color: var(--dark); }
.detail-list { display: grid; gap: 0; margin: 0; }
.detail-list > div { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 12px; padding-block: 10px; border-block-end: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 14px; }
.detail-list dd { margin: 0; font-weight: 600; }
.readonly { min-height: 46px; display: inline-flex; align-items: center; font-weight: 600; font-size: 1.2rem; color: var(--brand); }

/* ---------- privacy ---------- */
.privacy { max-width: 860px; }
.privacy-contact { font-weight: 600; }
