/* ==========================================================================
   مداد الأقصى — Design System (v2)
   Colors & type from the official brand guide. Layout language: rounded,
   floating "cards on paper" — full-bleed rounded hero with docked stats,
   icon tiles, carousels, step flows and accordion FAQ.
   ========================================================================== */

:root {
  --navy: #0C447C;
  --navy-deep: #082C4E;
  --navy-70: #4A76A0;
  --navy-40: #9CB4CC;
  --navy-15: #DDE6EE;
  --navy-5: #F1F5F9;
  --gold: #BA7517;
  --gold-dark: #9A600F;
  --gold-70: #CE9C58;
  --gold-40: #E4C89B;
  --gold-15: #F6EBDA;
  --gold-light: #FAC775;
  --cream: #F1EFE8;
  --paper: #FAF9F6;
  --charcoal: #2C2C2A;
  --muted: #5F6068;
  --white: #FFFFFF;
  --line: #E6E3DA;

  --font-body: 'Cairo', 'Arial', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 10px rgba(12, 68, 124, 0.06);
  --shadow-md: 0 12px 32px rgba(12, 68, 124, 0.10);
  --shadow-lg: 0 24px 60px rgba(12, 68, 124, 0.18);

  --container: 1240px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.25rem; }
.h-sm { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
li { margin-bottom: .4em; }

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

/* Material Symbols (icon font) */
.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  user-select: none;
  flex-shrink: 0;
  overflow: hidden;
  max-width: 1.2em;
}
/* Arrows point "forward" in RTL, i.e. to the left — already handled by glyph choice. */

.si { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

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

.section { padding: 76px 0; }
.section--tight { padding: 36px 0; }
.section--after-banner { padding-top: 48px; }
.section--tint { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: var(--gold-light); }
.section--rounded { margin-inline: clamp(8px, 2vw, 24px); border-radius: var(--radius-xl); }
.section--navy.section--rounded::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 14px;
  background: url('/images/logo/pattern_strip_long.svg') repeat-x center / auto 100%; opacity: .85;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 800; font-size: .92rem; margin-bottom: 8px;
}
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.section-head .eyebrow::after { content: ''; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.section-head--split .eyebrow::after { display: none; }
.section-head p { color: var(--muted); }

.section-head--split {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  text-align: start; max-width: none; margin: 0 0 30px; flex-wrap: wrap;
}
.section-head--split h2 { margin-bottom: 0; }
.head-actions { display: flex; align-items: center; gap: 16px; }
.see-more {
  font-weight: 800; color: var(--navy); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.see-more:hover { color: var(--gold); }
.see-more .ms { transition: transform .15s ease; }
.see-more:hover .ms { transform: translateX(-4px); }
.center-actions { display: flex; justify-content: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.4;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 6px 18px rgba(186,117,23,.28); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; border-color: var(--navy-40); color: var(--navy); }
.btn-ghost:hover { background: var(--navy-15); border-color: var(--navy-15); }
.btn-glass, .btn-outline-light {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-glass:hover, .btn-outline-light:hover { background: rgba(255,255,255,.22); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--white); color: var(--navy);
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.icon-btn--sm { width: 34px; height: 34px; font-size: .9rem; }

/* ---------- Embroidery pattern divider ---------- */
.pattern-divider {
  height: 18px;
  background: url('/images/logo/pattern_strip_long.svg') repeat-x center / auto 100%;
}

/* ==========================================================================
   Header — floating white bar
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding-top: 12px;
  transition: padding .2s ease;
}
.site-header.scrolled { padding-top: 6px; }
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding-inline: 22px 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
.site-header.scrolled .header-bar { box-shadow: var(--shadow-md); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 9px 14px; border-radius: 999px;
  font-weight: 700; color: var(--charcoal); font-size: .95rem;
  transition: background-color .15s ease, color .15s ease;
}
.main-nav a:hover { color: var(--navy); background: var(--navy-5); }
.main-nav a.active { background: var(--navy-15); color: var(--navy); }
.nav-search-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

.search-panel {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 10px 10px 10px 10px; padding-inline-start: 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-md);
}
.search-panel[hidden] { display: none; }
.search-panel .ms { color: var(--navy-70); }
.search-panel input { flex: 1; border: none; font: inherit; font-size: 1rem; background: transparent; outline: none; min-width: 0; }

.admin-pill {
  position: fixed; bottom: 20px; inset-inline-start: 16px; z-index: 120;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--charcoal); color: var(--white); font-weight: 700; font-size: .85rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-md);
}

@media (max-width: 1100px) {
  .main-nav a { padding: 8px 10px; font-size: .9rem; }
}
@media (max-width: 980px) {
  .header-bar { border-radius: var(--radius-lg); padding-inline: 16px 10px; }
  .nav-toggle { display: inline-flex; }
  #searchToggle { display: none; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + 24px) 12px auto 12px;
    max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; padding: 14px; gap: 2px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 13px 16px; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav-search-mobile {
    display: flex; align-items: center; gap: 8px; margin-top: 8px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px;
  }
  .nav-search-mobile input { flex: 1; border: none; font: inherit; outline: none; min-width: 0; background: transparent; }
}
@media (max-width: 520px) {
  :root { --header-h: 64px; }
  .brand img { height: 36px; }
  .header-cta { padding: 7px 14px; font-size: .85rem; }
}

/* ==========================================================================
   Hero — rounded full-bleed banner, stats docked at the bottom
   ========================================================================== */
.hero-wrap { padding-top: 18px; }
.hero-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: clamp(540px, 80vh, 720px);
  display: flex; flex-direction: column; justify-content: center;
  color: var(--white);
  background-color: var(--navy);
  isolation: isolate;
}
.hero-card--photo {
  background-image:
    linear-gradient(180deg, rgba(8,44,78,.35) 0%, rgba(8,44,78,.55) 45%, rgba(8,44,78,.92) 100%),
    var(--hero-img);
  background-size: cover; background-position: center;
}
.hero-card--pattern {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.08), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(186,117,23,.30), transparent 48%),
    linear-gradient(155deg, var(--navy) 0%, #0a3660 55%, var(--navy-deep) 100%);
}
.hero-card--pattern::after {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 16px; z-index: -1;
  background: url('/images/logo/pattern_strip_long.svg') repeat-x center / auto 100%; opacity: .9;
}
.hero-emblem {
  position: absolute; z-index: -1;
  width: min(520px, 60%); inset-inline-end: -6%; top: 50%; transform: translateY(-58%);
  opacity: .09;
}
.hero-content {
  position: relative; text-align: center;
  max-width: 820px; margin: 0 auto; padding: 72px 24px 170px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 18px; border-radius: 999px;
  color: var(--gold-light); font-weight: 800; font-size: .92rem;
  margin-bottom: 20px; backdrop-filter: blur(6px);
}
.hero-card h1 {
  color: var(--white); font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900;
  margin-bottom: .3em; text-shadow: 0 4px 30px rgba(0,0,0,.25);
}
.hero-card .lead { color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero-stats {
  position: absolute; inset-inline: 20px; bottom: 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px;
}
.hero-stat {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border-radius: 999px; padding: 10px 12px; padding-inline-end: 22px;
}
.hero-stat-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--white); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; max-width: none;
}
.hero-stat .num { font-size: 1.6rem; font-weight: 900; line-height: 1.1; color: var(--white); }
.hero-stat .label { font-size: .86rem; color: rgba(255,255,255,.8); font-weight: 600; }

/* Once the four stats can't sit on one row, stack them under the text instead of docking them. */
@media (max-width: 1000px) {
  .hero-card { min-height: auto; }
  .hero-content { padding: 64px 24px 30px; }
  .hero-stats { position: static; grid-template-columns: repeat(2, 1fr); padding: 0 16px 16px; gap: 10px; }
}
@media (max-width: 760px) {
  .hero-card { border-radius: var(--radius-lg); }
  .hero-content { padding: 60px 20px 28px; }
  .hero-stats { padding: 0 14px 14px; gap: 8px; }
  .hero-stat { border-radius: var(--radius-md); padding: 10px; gap: 10px; }
  .hero-stat-icon { width: 38px; height: 38px; font-size: 1.15rem; }
  .hero-stat .num { font-size: 1.25rem; }
  .hero-stat .label { font-size: .76rem; }
  .hero-emblem { width: 80%; inset-inline-end: -20%; }
}

/* ---------- Quick tiles ---------- */
.tiles-wrap { padding-top: 24px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 12px; font-weight: 800; color: var(--navy);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-40); }
.tile-icon {
  width: 60px; height: 60px; border-radius: 50%; max-width: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-5); color: var(--navy); font-size: 1.7rem;
  transition: background-color .18s ease, color .18s ease;
}
.tile:hover .tile-icon { background: var(--navy); color: var(--white); }
.tile--accent { background: var(--gold); border-color: var(--gold); color: var(--white); }
.tile--accent .tile-icon { background: rgba(255,255,255,.2); color: var(--white); }
.tile--accent:hover .tile-icon { background: var(--white); color: var(--gold); }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile:last-child { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
  .tile { padding: 16px 10px; font-size: .92rem; }
  .tile-icon { width: 48px; height: 48px; font-size: 1.4rem; }
}

/* ---------- Overview split ---------- */
.overview { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.overview-media {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 1 / 1; max-height: 440px; width: 100%;
  background:
    radial-gradient(circle at 80% 20%, rgba(250,199,117,.25), transparent 50%),
    linear-gradient(155deg, var(--navy), var(--navy-deep));
  display: flex; align-items: center; justify-content: center;
}
.overview-media img { width: 62%; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
.overview-media .pattern-divider { position: absolute; inset-inline: 0; bottom: 0; }
@media (max-width: 860px) {
  .overview { grid-template-columns: 1fr; gap: 30px; }
  .overview-media { aspect-ratio: 16 / 9; order: -1; }
  .overview-media img { width: auto; height: 70%; }
}

.prose { max-width: 760px; margin-inline: auto; font-size: 1.08rem; color: #33342f; }
.prose--start { margin-inline: 0; }
.prose h2, .prose h3 { margin-top: 1.3em; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold-40); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--gold); }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 24px; border-inline-start: 4px solid var(--gold);
  background: var(--gold-15); border-radius: var(--radius-sm); font-weight: 600; color: var(--navy);
}
.prose img { border-radius: var(--radius-md); margin: 1.4em auto; height: auto; }
.prose hr { border: none; height: 14px; background: url('/images/logo/pattern_strip_long.svg') repeat-x center / auto 100%; margin: 2em 0; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-weight: 700; font-size: .9rem; color: var(--navy);
  transition: background-color .15s ease, color .15s ease;
}
.chip small { background: var(--navy-5); color: var(--navy-70); border-radius: 999px; padding: 0 8px; font-size: .75rem; }
.chip:hover { border-color: var(--navy-40); }
.chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip.active small { background: rgba(255,255,255,.18); color: var(--white); }

/* ---------- Carousel (native scroll-snap) ---------- */
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 18px; margin: -4px -4px 0;
  scrollbar-width: thin; scrollbar-color: var(--navy-40) transparent;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--navy-40); border-radius: 6px; }
.carousel-item { scroll-snap-align: start; display: flex; }
.carousel-item > * { flex: 1; }
.carousel-nav { display: flex; gap: 8px; }
@media (max-width: 960px) { .carousel { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 620px) { .carousel { grid-auto-columns: 86%; gap: 14px; } .carousel-nav { display: none; } }

/* ==========================================================================
   Cards
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10; margin: 10px 10px 0; border-radius: calc(var(--radius-lg) - 8px);
  background: linear-gradient(155deg, var(--navy), var(--navy-deep)) center / cover no-repeat;
  overflow: hidden;
}
.card-media[style*="background-image"] { background-size: cover; background-position: center; }
.card-media-emblem { width: 64px; opacity: .55; border-radius: 12px; }
.card-tag {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: var(--white); color: var(--navy); font-weight: 800; font-size: .78rem;
  padding: 4px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.card-tag--muted { background: rgba(0,0,0,.55); color: var(--white); inset-inline-start: auto; inset-inline-end: 12px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.card-meta-row > span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta-row .ms { font-size: 1rem; color: var(--gold); }
.card h3 { margin: 0; font-size: 1.15rem; line-height: 1.5; }
.card h3 a:hover { color: var(--gold); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.card-footer {
  margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-link { font-weight: 800; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.card-arrow {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-5); color: var(--navy); transition: background-color .15s ease, color .15s ease;
}
.card:hover .card-arrow, .card-arrow:hover { background: var(--gold); color: var(--white); }

.mini-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--navy); min-width: 0; }
.mini-author--light { color: var(--white); }
.mini-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy-15) center / cover no-repeat; border: 2px solid var(--gold-40);
}
.mini-avatar--brand { background: var(--navy) url('/images/logo/icon_simplified_reversed.svg') center / cover no-repeat; }

.date-badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: var(--white); color: var(--navy); border-radius: var(--radius-sm);
  min-width: 56px; padding: 6px 10px; text-align: center; line-height: 1.2; box-shadow: var(--shadow-sm);
}
.date-badge b { display: block; font-size: 1.35rem; font-weight: 900; }
.date-badge small { font-size: .75rem; font-weight: 700; color: var(--gold); }
.event-card--past .card-media { filter: grayscale(.6); }

/* Writer card */
.writer-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 20px 22px; transition: transform .2s ease, box-shadow .2s ease;
  position: relative; overflow: hidden;
}
.writer-card::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 64px;
  background: linear-gradient(155deg, var(--navy-5), var(--cream));
}
.writer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.writer-card h3 { margin: 0 0 2px; font-size: 1.12rem; position: relative; }
.writer-avatar {
  position: relative; width: 104px; height: 104px; border-radius: 50%; margin-bottom: 14px;
  background: var(--navy) center / cover no-repeat;
  border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--gold-40);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 2.2rem; flex-shrink: 0;
}
.writer-avatar .ms { max-width: none; }
.writer-avatar--xl { width: 150px; height: 150px; font-size: 3rem; border-width: 5px; }
.writer-role { color: var(--gold); font-weight: 700; font-size: .88rem; position: relative; }
.writer-tagline { color: var(--muted); font-size: .88rem; margin: 8px 0 0; }
.writer-stats { display: flex; gap: 14px; margin-top: auto; padding-top: 14px; font-size: .8rem; color: var(--muted); font-weight: 700; }
.writer-stats span { display: inline-flex; align-items: center; gap: 4px; }
.writer-stats .ms { color: var(--navy-70); font-size: 1rem; }

/* Quote card */
.quote-card {
  margin: 0; position: relative; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 18px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.quote-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.quote-icon {
  width: 46px; height: 46px; border-radius: 50%; max-width: none;
  background: var(--gold-15); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.quote-text { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--navy); line-height: 1.85; flex: 1; }
.quote-text a:hover { color: var(--gold-dark); }
.quote-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.quote-actions { display: flex; gap: 6px; }
.masonry { columns: 3 300px; column-gap: 24px; }
.masonry .quote-card { break-inside: avoid; margin-bottom: 24px; height: auto; }

/* Quote of the day */
.qotd {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--radius-xl); padding: 56px clamp(20px, 6vw, 90px) 64px;
  background:
    radial-gradient(circle at 10% 10%, rgba(250,199,117,.18), transparent 40%),
    linear-gradient(155deg, var(--navy), var(--navy-deep));
  color: var(--white);
}
.qotd::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 14px;
  background: url('/images/logo/pattern_strip_long.svg') repeat-x center / auto 100%;
}
.qotd-label {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--gold-light);
  background: rgba(255,255,255,.1); padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
}
.qotd blockquote { margin: 0 auto 16px; max-width: 30ch; font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.7; }
.qotd-author { color: var(--gold-light); font-weight: 700; margin-bottom: 26px; }
.qotd-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Ways to contribute */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.way-card {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden;
  min-height: 300px;
}
.way-media { background: var(--navy) center / cover no-repeat; min-height: 220px; }
.way-media--pattern {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--navy), var(--navy-deep));
  color: var(--gold-light); font-size: 4rem; position: relative;
}
.way-media--pattern .ms { max-width: none; }
.way-media--pattern::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 12px;
  background: url('/images/logo/pattern_strip_long.svg') repeat-x center / auto 100%;
}
.way-body { padding: 30px 28px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.way-body p { color: var(--muted); }
@media (max-width: 1000px) { .ways { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .way-card { grid-template-columns: 1fr; } .way-media { min-height: 170px; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step {
  position: relative; margin: 0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  padding: 30px 22px 24px;
}
.step-num {
  position: absolute; top: 18px; inset-inline-end: 20px;
  font-size: 2.6rem; font-weight: 900; color: rgba(255,255,255,.12); line-height: 1;
}
.step-icon {
  width: 56px; height: 56px; border-radius: 50%; max-width: none;
  background: var(--gold); color: var(--white); font-size: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: rgba(255,255,255,.78); font-size: .94rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.faq-intro p { color: var(--muted); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); transition: box-shadow .2s ease; }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--navy-15); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 800; color: var(--navy); font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ms {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy-5); max-width: none;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .2s ease, background-color .2s ease;
}
.faq-item[open] summary .ms { transform: rotate(180deg); background: var(--gold); color: var(--white); }
.faq-answer { padding: 0 22px 18px; font-size: 1rem; color: var(--muted); }
.faq-item--compact { border-radius: var(--radius-sm); }
.faq-item--compact summary { padding: 12px 14px; font-size: .95rem; }
.faq-item--compact .faq-answer { padding: 0 14px 12px; font-size: .92rem; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; gap: 24px; } .faq-intro { position: static; } }

/* CTA band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-radius: var(--radius-xl); padding: 44px clamp(24px, 5vw, 60px);
  background:
    radial-gradient(circle at 90% 10%, rgba(250,199,117,.22), transparent 45%),
    linear-gradient(155deg, var(--navy), var(--navy-deep));
  color: var(--white); margin-top: 48px;
}
.section--tight .cta-band { margin-top: 0; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }
.cta-band--light { background: var(--gold-15); color: var(--charcoal); border: 1px solid var(--gold-40); }
.cta-band--light h2 { color: var(--navy); }
.cta-band--light p { color: var(--muted); }

/* ==========================================================================
   Inner-page banner
   ========================================================================== */
.page-banner-wrap { padding-top: 18px; }
.page-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 8% 20%, rgba(255,255,255,.07), transparent 40%),
    radial-gradient(circle at 92% 90%, rgba(186,117,23,.28), transparent 45%),
    linear-gradient(155deg, var(--navy), var(--navy-deep));
  color: var(--white); text-align: center;
  padding: 58px 24px 64px;
}
.page-banner::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 14px;
  background: url('/images/logo/pattern_strip_long.svg') repeat-x center / auto 100%;
}
.page-banner--photo {
  background: linear-gradient(180deg, rgba(8,44,78,.55), rgba(8,44,78,.9)), var(--banner-img) center / cover no-repeat;
  padding-block: 90px 80px;
}
.page-banner-inner { position: relative; max-width: 760px; margin: 0 auto; }
.page-banner h1 { color: var(--white); margin-bottom: 8px; }
.page-banner p { color: rgba(255,255,255,.82); max-width: 60ch; margin: 0 auto; font-size: 1.08rem; }
.banner-icon {
  width: 64px; height: 64px; border-radius: 50%; max-width: none;
  background: rgba(255,255,255,.12); color: var(--gold-light); font-size: 2rem;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px;
  color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 700; margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb [aria-current] { color: var(--gold-light); }
.breadcrumb .ms { font-size: 1.1rem; opacity: .7; }
.breadcrumb--dark { color: var(--muted); justify-content: flex-start; }
.breadcrumb--dark a:hover { color: var(--gold); }

/* List toolbar / search */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.search-inline {
  display: flex; align-items: center; gap: 8px; flex: 1; max-width: 420px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
}
.search-inline:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-15); }
.search-inline .ms { color: var(--navy-70); }
.search-inline input { flex: 1; border: none; font: inherit; outline: none; background: transparent; min-width: 0; }
.result-count { color: var(--muted); font-weight: 700; font-size: .9rem; }
.search-big {
  display: flex; align-items: center; gap: 10px; max-width: 720px; margin: 0 auto 40px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 8px; padding-inline-start: 22px;
  box-shadow: var(--shadow-sm);
}
.search-big .ms { color: var(--navy-70); }
.search-big input { flex: 1; border: none; font: inherit; font-size: 1.05rem; outline: none; min-width: 0; background: transparent; }
.result-heading { display: flex; align-items: center; gap: 8px; margin: 40px 0 18px; }
.result-heading small { background: var(--navy-5); color: var(--navy-70); border-radius: 999px; padding: 0 10px; font-size: .85rem; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a {
  min-width: 42px; height: 42px; border-radius: 999px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line); font-weight: 800; color: var(--navy);
}
.pagination a:hover { border-color: var(--navy-40); }
.pagination a.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination .dots { color: var(--muted); padding: 0 4px; }

.empty-state { text-align: center; padding: 50px 20px; color: #7a7b74; }
.empty-state > .ms { font-size: 3rem; max-width: none; color: var(--navy-40); display: block; margin: 0 auto 10px; }

.tag-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--navy-15); color: var(--navy); font-size: .8rem; font-weight: 800;
  padding: 5px 14px; border-radius: 999px;
}
.tag-pill--gold { background: rgba(250,199,117,.2); color: var(--gold-light); }

/* ==========================================================================
   Article page
   ========================================================================== */
.reading-progress {
  position: fixed; top: 0; inset-inline-start: 0; height: 4px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.preview-banner {
  margin-top: 16px; background: #FFF4E0; border: 1px solid var(--gold-40); color: #7a4a09;
  padding: 12px 18px; border-radius: var(--radius-md); font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.preview-banner a { text-decoration: underline; }
.article-head { max-width: 860px; margin: 0 auto; padding: 48px 0 10px; }
.article-head .breadcrumb { margin-bottom: 18px; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 14px 0 12px; }
.article-lead { font-size: 1.2rem; color: var(--muted); }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.byline-author { display: inline-flex; align-items: center; gap: 10px; margin-inline-end: auto; }
.byline-author b { display: block; color: var(--navy); line-height: 1.3; }
.byline-author small { color: var(--muted); font-size: .8rem; }
.byline-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.byline-meta .ms { color: var(--gold); font-size: 1.1rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-15) center / cover no-repeat; border: 2px solid var(--gold-40); flex-shrink: 0; }
.avatar--brand { background: var(--navy) url('/images/logo/icon_simplified_reversed.svg') center / cover no-repeat; }
.avatar--lg { width: 72px; height: 72px; }
.article-hero-image { margin: 30px auto; max-width: 1100px; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 8; background: var(--navy-15); }
.article-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; max-width: 1100px; margin: 36px auto 0; align-items: start; }
.article-body { max-width: 760px; font-size: 1.14rem; line-height: 2; margin: 0; }
.article-aside { position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-aside { position: static; order: 2; }
}
.author-box {
  display: flex; align-items: center; gap: 18px; max-width: 1100px; margin: 48px auto 70px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 26px;
  transition: box-shadow .2s ease;
}
.author-box:hover { box-shadow: var(--shadow-md); }
.author-box small { display: block; color: var(--gold); font-weight: 800; }
.author-box b { display: block; font-size: 1.25rem; color: var(--navy); }

/* Share bar */
.share-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px;
}
.share-label { font-weight: 800; color: var(--navy); width: 100%; font-size: .92rem; }
.share-bar a, .share-bar button {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-5); color: var(--navy); transition: background-color .15s ease, color .15s ease;
}
.share-bar a:hover, .share-bar button:hover { background: var(--navy); color: var(--white); }
.share-bar--light { background: transparent; border-color: rgba(255,255,255,.18); justify-content: center; margin-top: 26px; }
.share-bar--light .share-label { color: var(--white); width: auto; }
.share-bar--light a, .share-bar--light button { background: rgba(255,255,255,.12); color: var(--white); }
.share-bar--light a:hover, .share-bar--light button:hover { background: var(--gold); }

.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.info-card > div { display: flex; align-items: center; gap: 12px; }
.info-card .ms { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-15); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; max-width: none; }
.info-card small { display: block; color: var(--muted); font-size: .8rem; }
.info-card b { color: var(--navy); }

/* ==========================================================================
   Writer profile
   ========================================================================== */
.profile-card {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 10%, rgba(250,199,117,.2), transparent 45%),
    linear-gradient(155deg, var(--navy), var(--navy-deep));
  color: var(--white); padding: 34px clamp(20px, 5vw, 60px) 54px;
}
.profile-card::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 14px;
  background: url('/images/logo/pattern_strip_long.svg') repeat-x center / auto 100%;
}
.profile-card .breadcrumb { justify-content: flex-start; }
.profile-main { display: flex; align-items: center; gap: 34px; }
.profile-info h1 { color: var(--white); margin: 8px 0 2px; }
.profile-role { color: var(--gold-light); font-weight: 800; font-size: 1.05rem; }
.profile-tagline { color: rgba(255,255,255,.85); font-size: 1.1rem; margin: 10px 0 0; max-width: 60ch; }
.profile-stats { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.profile-stats span { background: rgba(255,255,255,.1); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: .9rem; }
.profile-stats b { color: var(--gold-light); font-size: 1.05rem; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
@media (max-width: 760px) {
  .profile-main { flex-direction: column; text-align: center; gap: 16px; }
  .profile-card .breadcrumb { justify-content: center; }
  .profile-stats, .profile-card .social-row { justify-content: center; }
  .profile-tagline { margin-inline: auto; }
  .profile-layout { grid-template-columns: 1fr; gap: 24px; }
  .writer-avatar--xl { width: 120px; height: 120px; }
}

/* Quote page hero */
.quote-hero {
  position: relative; overflow: hidden; text-align: center; border-radius: var(--radius-xl);
  padding: 34px clamp(20px, 6vw, 90px) 60px;
  background:
    radial-gradient(circle at 10% 10%, rgba(250,199,117,.18), transparent 40%),
    linear-gradient(155deg, var(--navy), var(--navy-deep));
  color: var(--white);
}
.quote-hero::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 14px;
  background: url('/images/logo/pattern_strip_long.svg') repeat-x center / auto 100%;
}
.quote-hero-mark { font-size: 4rem; color: var(--gold-light); max-width: none; opacity: .9; }
.quote-hero blockquote { margin: 10px auto 22px; max-width: 28ch; font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.65; }
.quote-hero-author { display: flex; justify-content: center; margin-bottom: 26px; }

/* About */
.pillar { background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid var(--line); height: 100%; }
.pillar-icon {
  width: 60px; height: 60px; border-radius: 50%; max-width: none;
  background: var(--navy); color: var(--gold-light); font-size: 1.8rem;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.values-prose ul, .goals-prose ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: none; }
.values-prose, .goals-prose { max-width: 1000px; }
.values-prose li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 22px; margin: 0; border-inline-start: 4px solid var(--gold);
}
.goals-prose { color: rgba(255,255,255,.9); }
.goals-prose li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md); padding: 18px 22px; margin: 0; }
.goals-prose strong { color: var(--gold-light); }
@media (max-width: 700px) { .values-prose ul, .goals-prose ul { grid-template-columns: 1fr; } }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--navy); font-size: .95rem; }
.form-control {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); font-family: var(--font-body); font-size: 1rem;
  background: var(--paper); color: var(--charcoal);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.form-control:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px var(--gold-15); }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-alert { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 700; font-size: .95rem; }
.form-alert.success { background: #E6F4EA; color: #1E7E34; }
.form-alert.error { background: #FCE8E8; color: #B3261E; }
.form-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.aside-card h3 { font-size: 1.1rem; }
.aside-card--link { display: flex; align-items: center; gap: 14px; transition: box-shadow .2s ease; }
.aside-card--link:hover { box-shadow: var(--shadow-md); }
.aside-card--link > .ms { width: 48px; height: 48px; border-radius: 50%; background: var(--gold-15); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; max-width: none; }
.aside-card--link b { display: block; color: var(--navy); }
.aside-card--link small { color: var(--muted); }
.mini-steps { list-style: none; padding: 0; margin: 0; counter-reset: ms; }
.mini-steps li { counter-increment: ms; position: relative; padding-inline-start: 44px; margin-bottom: 16px; }
.mini-steps li::before {
  content: counter(ms); position: absolute; inset-inline-start: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem;
}
.mini-steps b { display: block; color: var(--navy); }
.mini-steps span { color: var(--muted); font-size: .92rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.contact-list .ms { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-5); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; max-width: none; }

/* Honeypot spam trap — hidden from real visitors, often auto-filled by bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-top: 40px; }
.footer-card {
  background: var(--navy); color: var(--navy-15);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 52px clamp(20px, 4vw, 48px) 0;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: var(--navy-15); }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand img { height: 54px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; max-width: 40ch; }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-contact .ms { color: var(--gold-light); font-size: 1.1rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, color .15s ease;
}
.social-row a:hover { background: var(--gold); color: var(--white); }
.social-row--light a { background: var(--navy-5); color: var(--navy); }
.profile-card .social-row--light a { background: rgba(255,255,255,.12); color: var(--white); }
.social-row--light a:hover { background: var(--navy); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding: 20px 0;
  font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: rgba(255,255,255,.7);
}
.site-footer > .pattern-divider { background-color: var(--navy); }

/* Floating side rail */
.side-rail {
  position: fixed; inset-inline-end: 16px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.rail-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: var(--white); box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, transform .15s ease;
}
.rail-btn:hover { background: var(--gold); transform: translateY(-2px); }
.rail-btn[hidden] { display: none; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 300;
  background: var(--charcoal); color: var(--white); padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Scroll reveal (progressive enhancement; JS adds .reveal-ready to <html>) */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready .reveal.in { opacity: 1; transform: none; }

/* Legacy (404 / 500 pages) */
.page-hero { background: var(--navy); color: var(--white); padding: 60px 0 50px; text-align: center; }
.page-hero h1 { color: var(--white); }

/* ==========================================================================
   Admin panel
   ========================================================================== */
.admin-body {
  background: #F3F5F8;
  min-height: 100vh;
}
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--white);
  padding: 26px 18px;
}
.admin-sidebar .brand { color: var(--white); margin-bottom: 30px; }
.admin-sidebar img { height: 40px; }

.admin-nav-toggle {
  display: none;
  position: fixed;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 210;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.admin-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 68, 124, .45);
  z-index: 140;
}

@media (max-width: 960px) {
  .admin-nav-toggle { display: block; }
  .admin-sidebar {
    position: fixed;
    inset-block: 0;
    /* the sidebar sits on the right in this RTL-only app (it's the first flex
       child of .admin-shell) — inset-inline-start resolves to "right" in RTL */
    inset-inline-start: 0;
    z-index: 150;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
    max-width: 82vw;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-backdrop.open { display: block; }
}
.admin-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy-15);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: .95rem;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}
.admin-nav .badge {
  background: var(--gold);
  color: var(--white);
  border-radius: 999px;
  font-size: .72rem;
  padding: 1px 8px;
  font-weight: 800;
}
.admin-main { flex: 1; padding: 34px 40px; max-width: 1100px; min-width: 0; }
.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.admin-topbar h1 { margin: 0; font-size: 1.6rem; }

.admin-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  max-width: 100%;
  overflow-x: auto;
}
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 960px) {
  .admin-main { padding: 78px 16px 30px; }
  .admin-topbar h1 { font-size: 1.35rem; }
}
.stat-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-bottom: 4px solid var(--gold);
}
.stat-box .num { font-size: 2rem; font-weight: 800; color: var(--navy); }
.stat-box .label { color: #777; font-size: .88rem; }

table.admin-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .94rem;
}
table.admin-table th {
  text-align: right;
  padding: 12px 14px;
  color: #777;
  font-size: .82rem;
  border-bottom: 2px solid var(--navy-15);
}
table.admin-table td {
  padding: 14px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
table.admin-table tr:hover td { background: #FAFBFC; }
.row-actions { display: flex; gap: 8px; }

.status-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}
.status-pill.published { background: #E6F4EA; color: #1E7E34; }
.status-pill.draft { background: #F1F1EE; color: #777; }
.status-pill.new { background: #FCE8E8; color: #B3261E; }
.status-pill.read { background: #F1F1EE; color: #777; }

.admin-form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 800px) { .admin-form-grid { grid-template-columns: 1fr; } }

.image-drop {
  border: 2px dashed var(--navy-40);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  color: #777;
  cursor: pointer;
  background: var(--cream);
}
.image-drop img { max-height: 160px; margin: 0 auto 10px; border-radius: var(--radius-sm); }

.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: 18px; height: 18px; }

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--navy), #082c4e);
  padding: 20px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-card img { height: 56px; margin: 0 auto 18px; }
@media (max-width: 480px) {
  .login-card { padding: 30px 22px; }
}

.helper-text { color: #888; font-size: .85rem; margin-top: 6px; }

/* Honeypot spam trap — hidden from real visitors, often auto-filled by bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Rich text editor (admin) */
.richtext-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--cream);
  border: 1.5px solid var(--navy-40);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.richtext-toolbar button {
  border: 1px solid var(--navy-15);
  background: var(--white);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  color: var(--navy);
}
.richtext-toolbar button:hover { background: var(--navy-15); }
.richtext-editor {
  min-height: 220px;
  padding: 16px;
  border: 1.5px solid var(--navy-40);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--font-body);
  line-height: 1.8;
}
.richtext-editor:focus { outline: none; box-shadow: 0 0 0 4px var(--gold-40); }
.richtext textarea { display: none; }

.image-drop img.preview { display: none; }

/* ---------- Admin v2 additions ---------- */
.admin-body .ms { max-width: none; }
.admin-nav a .ms { font-size: 1.15rem; opacity: .8; }
.admin-nav a .nav-label { display: inline-flex; align-items: center; gap: 10px; flex: 1; }
.admin-nav .nav-group { font-size: .72rem; font-weight: 800; color: var(--navy-40); letter-spacing: .04em; margin: 18px 14px 6px; }
.stat-row--wide { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stat-row--wide { grid-template-columns: repeat(2, 1fr); } }
.stat-box { text-align: start; display: flex; align-items: center; gap: 14px; }
.stat-box .ms { width: 46px; height: 46px; border-radius: 50%; background: var(--navy-5); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.stat-box .num { font-size: 1.6rem; line-height: 1.1; }
.stat-box small { display: block; color: var(--gold); font-weight: 700; font-size: .78rem; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.quick-actions .btn { justify-content: flex-start; white-space: normal; padding-inline: 14px; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.admin-toolbar .form-control { width: auto; min-width: 180px; padding: 9px 14px; background: var(--white); }
.admin-toolbar .grow { flex: 1; min-width: 200px; }
.status-pill.replied { background: #E3EEF9; color: var(--navy); }
.status-pill.accepted { background: #FFF1DC; color: #8A5307; }
.status-pill.archived { background: #EEE; color: #888; }
.status-pill.scheduled { background: #FFF1DC; color: #8A5307; }
.admin-table .muted { color: #888; font-size: .85rem; }
.admin-table .thumb { width: 54px; height: 40px; border-radius: 8px; background: var(--navy-15) center / cover no-repeat; }
.saved-note { background: #E6F4EA; color: #1E7E34; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; margin-bottom: 18px; }
.form-hint { color: #888; font-size: .82rem; margin-top: 6px; }
.admin-card h3 { display: flex; align-items: center; gap: 8px; }
.admin-card h3 .ms { color: var(--gold); }
.admin-topbar .btn .ms, .admin-card .btn .ms { font-size: 1.1rem; }
.richtext-toolbar .sep { width: 1px; background: var(--navy-15); margin: 2px 4px; }
.richtext-editor img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.richtext-editor blockquote { border-inline-start: 4px solid var(--gold); background: var(--gold-15); margin: 12px 0; padding: 10px 16px; border-radius: 8px; }
.richtext-editor h2, .richtext-editor h3 { margin: 14px 0 8px; }
.word-count { color: #888; font-size: .8rem; margin-top: 6px; text-align: end; }
.admin-main { max-width: 1240px; }
