/* =============================================================
   ABSoc for Justice (absoc.uk/forjustice)
   The absoc.uk house style (ruled, square, Cormorant headings,
   Schibsted Grotesk text, nothing moving by itself) in AFJ's own
   colours: maroon, gold and cream. Photographs stay as they were.

   The maroon scale keeps its old --green-* names so the pages'
   own markup keeps working.
   ============================================================= */

:root {
  --maroon-950: #1c0506;
  --maroon-925: #2a0b0d;
  --green-900: #3f1113;
  --green-800: #571719;
  --green-700: #6e1f22;
  --green-600: #8a2a2d;
  --gold: #c8a24a;
  --gold-light: #e8c468;
  --gold-dark: #82620f;      /* gold dark enough to read on cream */
  --cream: #f7f2ea;
  --cream-2: #efe6d7;
  --paper: #fcf9f3;
  --ink: #201a1a;
  --muted: #5e524c;
  --line: #ddcfbe;           /* hairline between rows */
  --rule: #3f1113;           /* the rule over a group */
  --on-dark: #f3ead9;
  --on-dark-soft: rgba(243, 234, 217, 0.74);
  --on-dark-line: rgba(232, 196, 104, 0.24);
  --maxw: 1280px;            /* absoc.uk's width, so everything lines up with it */
  --header-h: 76px;
  --font-head: "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
  --curve-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-fast: 150ms ease;
  --t-press: transform 120ms var(--curve-out), color var(--ease-fast), background-color var(--ease-fast), border-color var(--ease-fast);
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color var(--ease-fast); }
p a, li a { text-decoration: underline; text-underline-offset: 3px; }
a, button, label { touch-action: manipulation; }
button, .btn { -webkit-user-select: none; user-select: none; }
::selection { background: var(--gold-light); color: var(--green-900); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  color: var(--green-900);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 5vw, 4.5rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* A small label over a heading: sentence case, no spacing out. */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 0 0 0.6rem;
}

/* ---------- Buttons: square, no lift, a press you can feel ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  padding: 0.85rem 1.6rem;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--t-press);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gold); color: var(--green-900); }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
:is(.hero, .page-hero, .bg-green, .banner-quote, .ab-karbala, .fzr, .camp-explainer, .af-thanks, .site-header) .btn-ghost,
:is(.fzr, .af-thanks, .camp-explainer) .btn-outline { border-color: rgba(243, 234, 217, 0.42); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--gold-dark); }
  .btn-primary:hover { background: var(--gold-light); color: var(--green-900); }
  .btn-outline:hover, .btn-ghost:hover { background: var(--green-700); border-color: var(--green-700); color: var(--on-dark); }
  :is(.hero, .page-hero, .bg-green, .banner-quote, .ab-karbala, .fzr, .camp-explainer, .af-thanks, .site-header) .btn-ghost:hover,
  :is(.fzr, .af-thanks, .camp-explainer) .btn-outline:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--gold-light); color: var(--gold-light); }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Top bar: absoc.uk's, in maroon ----------
   Clear over the starry header, solid once the page moves under it
   (main.js adds .scrolled). The logo has no tile behind it. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1002;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms var(--curve-out), border-color 200ms var(--curve-out);
}
.site-header.scrolled, .site-header:has(.nav-links.open) {
  background: var(--green-900);
  border-bottom-color: var(--on-dark-line);
}
.nav { display: flex; align-items: center; height: 100%; gap: 1rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; margin-right: 0.5rem; }
.brand-logo { height: 46px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn), .sub-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  font: 500 0.875rem/1.2 var(--font-body);
  color: rgba(255, 255, 255, 0.82);
  background: none; border: 0; border-radius: 0;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: color var(--ease-fast);
}
.sub-toggle .caret { width: 11px; height: 11px; }
.nav-links a.active:not(.btn), .nav-links .sub-toggle.active, .has-sub.sub-open > .sub-toggle { color: var(--gold-light); }
.nav-links .sub { list-style: none; margin: 0; padding: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px; margin: 0;
  background: var(--gold-light);
  transition: transform 200ms var(--curve-out), opacity 200ms var(--curve-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 1181px) {
  .nav-links { flex: 1; height: 100%; }
  .nav-links > li:first-child { margin-left: auto; }
  .nav-links > li.nav-contact, .nav-links > li.nav-signin { margin-left: auto; }
  .nav-links > li.nav-contact + li.nav-signin { margin-left: 0; }
  /* a thin gold line under the page you're on, and under a link on hover */
  .nav-links > li:not(.nav-cta) > a::after, .nav-links .sub-toggle::after {
    content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 2px; height: 1px;
    background: var(--gold-light); transform: scaleX(0); transition: transform 200ms var(--curve-out);
  }
  .nav-links > li:not(.nav-cta) > a.active::after, .nav-links .sub-toggle.active::after { transform: scaleX(1); }
  /* Sign in (for the admin) reads like absoc.uk's; Donate is the full-height gold block */
  .nav-signin .btn {
    border: 0; background: none; padding: 0.5rem 0.75rem;
    font: 500 0.875rem/1.2 var(--font-body); color: rgba(255, 255, 255, 0.82);
  }
  .nav-signin .btn.active { color: var(--gold-light); }
  .nav-links > li.nav-cta:not(.nav-signin) { height: 100%; margin-left: 1rem; }
  .nav-cta:not(.nav-signin) .btn-primary { height: 100%; padding: 0 1.5rem; font-size: 0.875rem; }
  .nav-cta:not(.nav-signin) .btn-primary:active { transform: none; background: var(--gold-light); }
  .has-sub { position: relative; }
  .nav-links .sub {
    position: absolute; top: 100%; left: 0; min-width: 190px;
    background: rgba(28, 5, 6, 0.98);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid var(--on-dark-line);
    padding: 0.5rem; box-shadow: 0 20px 56px rgba(20, 4, 5, 0.32);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--ease-fast), transform var(--ease-fast), visibility var(--ease-fast);
  }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.sub-open > .sub { opacity: 1; visibility: visible; transform: none; }
  .nav-links .sub a:not(.btn) { display: flex; width: 100%; padding: 0.5rem 0.75rem; }
  .nav-links .sub a::after { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.btn):hover, .sub-toggle:hover, .nav-signin .btn:hover { color: #fff; background: none; }
  .nav-links > li:not(.nav-cta) > a:hover::after, .nav-links .sub-toggle:hover::after { transform: scaleX(1); }
  .nav-links .sub a:not(.btn):hover { background: rgba(255, 255, 255, 0.06); }
  .nav-cta:not(.nav-signin) .btn-primary:hover { background: var(--gold-light); color: var(--green-900); }
}

/* Phones and tablets: the menu drops down under the bar, as on absoc.uk */
@media (max-width: 1180px) {
  .nav { justify-content: space-between; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: linear-gradient(180deg, rgba(28, 5, 6, 0.98), rgba(63, 17, 19, 0.98));
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    padding: 0.75rem 16px 1.5rem;
    border-top: 1px solid var(--on-dark-line); border-bottom: 1px solid var(--on-dark-line);
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform 250ms var(--curve-out), opacity 200ms var(--curve-out);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn), .sub-toggle {
    display: flex; width: 100%; justify-content: space-between;
    padding: 0.85rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 1rem;
  }
  .nav-links .sub { display: none; padding-left: 1rem; }
  .has-sub.sub-open > .sub { display: block; }
  .has-sub.sub-open > .sub-toggle .caret { transform: rotate(180deg); }
  .nav-cta { margin-top: 0.75rem; }
  .nav-cta .btn { width: 100%; padding: 0.85rem 1rem; justify-content: center; }
  .nav-signin .btn { border-color: rgba(243, 234, 217, 0.42); color: #fff; }
}
@media (max-width: 400px) { .brand-logo { height: 40px; } }

/* ---------- Side tabs: off the right edge until the mouse comes close ----------
   assets/js/side-tabs.js, the same behaviour as absoc.uk's. Wide screens
   only; on phones the same links are in the menu. */
.side-tabs { display: none; }
@media (min-width: 1024px) {
  .side-tabs {
    position: fixed; top: 50%; right: 0; z-index: 1000;
    display: flex; flex-direction: column; gap: 6px;
    transform: translateY(-50%);
  }
}
.side-tab {
  display: flex; align-items: center; gap: 0.75rem;
  width: 168px; height: 46px; padding-inline: 13px;
  background: var(--green-800); color: #f5f1e4;
  border: 1px solid rgba(218, 185, 78, 0.55); border-right: 0;
  font-size: 0.875rem; font-weight: 500; text-decoration: none;
  transform: translateX(100%);
  transition: transform 200ms var(--curve-out), color var(--ease-fast);
}
.side-tab[aria-current] { box-shadow: inset 2px 0 0 var(--gold-light); color: var(--gold-light); }
.side-tabs.open .side-tab, .side-tabs:focus-within .side-tab { transform: translateX(122px); }
.side-tabs.open .side-tab:hover, .side-tabs .side-tab:focus-visible { transform: none; color: #f5f1e4; }
@media (prefers-reduced-motion: reduce) { .side-tab { transition: none; } }
/* absoc.uk's drawn glyphs */
.g { display: inline-block; width: 1.25rem; height: 1.25rem; flex: none; background-color: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.g-calendar { -webkit-mask-image: url(/images/glyphs/calendar.svg); mask-image: url(/images/glyphs/calendar.svg); }
.g-megaphone { -webkit-mask-image: url(/images/glyphs/megaphone.svg); mask-image: url(/images/glyphs/megaphone.svg); }
.g-shop { -webkit-mask-image: url(/images/glyphs/shop.svg); mask-image: url(/images/glyphs/shop.svg); }
.g-heart { -webkit-mask-image: url(/images/glyphs/heart.svg); mask-image: url(/images/glyphs/heart.svg); }

/* ---------- Headers: AFJ red with absoc.uk's stars (/js/motion.js) on the
   left, fading into the page's photograph on the right ---------- */
.hero, .page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(ellipse 90% 70% at 70% 15%, rgba(138, 42, 45, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(87, 23, 25, 0.6) 0%, transparent 60%),
    linear-gradient(170deg, #120304 0%, var(--green-900) 45%, var(--maroon-925) 100%);
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; z-index: 1;
  width: 60%;
  /* darker under the top bar, so its links still read over a bright photo */
  background:
    linear-gradient(180deg, rgba(28, 5, 6, 0.62) 0%, rgba(28, 5, 6, 0) 30%),
    linear-gradient(rgba(28, 5, 6, 0.26), rgba(28, 5, 6, 0.26)),
    var(--hero-img) var(--hero-pos, center) / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 58%);
  pointer-events: none;
}
.hero > .container, .page-hero > .container { position: relative; z-index: 2; }

/* ---------- Home hero ---------- */
.hero {
  --hero-img: url("/forjustice/assets/img/gallery/protest-hussain-justice.jpeg");
  --hero-pos: 62% 3%;
  /* the same size and spacing as absoc.uk's home page header */
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 1.5rem) 0 3rem;
}
.hero .container > * { max-width: 40rem; }
.hero h1 {
  color: #f5f1e4;
  font-size: clamp(2.75rem, 4.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.hero .lede { max-width: 520px; margin: 0; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; color: var(--on-dark-soft); }
/* The heading and its paragraph are centred as absoc.uk's are; the buttons
   hang below them, so "We rise" starts where "A society on your doorstep" does. */
@media (min-width: 861px) {
  .hero .hero-actions { position: absolute; top: 100%; margin-top: 2rem; }
}
/* Phones: the red and the stars on top, fading down into the photograph */
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; padding-bottom: 70vw; }
  .hero::before {
    top: auto; left: 0; width: 100%; height: 84vw;
    --hero-pos: 50% 8%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  }
}

/* ---------- Inner page headers ---------- */
.page-hero {
  --hero-img: url("/forjustice/assets/img/gallery/hall-packed-audience.jpeg");
  --hero-pos: center 45%;
  padding: calc(var(--header-h) + clamp(2.75rem, 7vw, 5rem)) 0 clamp(3rem, 6vw, 4.5rem);
}
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: var(--on-dark); max-width: 620px; font-size: 1.125rem; line-height: 1.6; }
.page-hero .breadcrumb, .breadcrumb { font-size: 0.875rem; color: var(--on-dark-soft) !important; margin: 0 0 0.75rem !important; }
.breadcrumb a { color: var(--on-dark-soft); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .breadcrumb a:hover { color: var(--gold-light); } }
/* Phones: the photograph stays, faint behind the words */
@media (max-width: 860px) {
  .page-hero::before {
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.5) 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.5) 100%);
  }
}

.page-hero--about { --hero-img: url("/forjustice/assets/img/gallery/fatema-zainab-panel.jpeg"); }
.page-hero--work { --hero-img: url("/forjustice/assets/img/gallery/community-legal-workshop.jpeg"); }
.page-hero--reading { --hero-img: url("/forjustice/assets/img/gallery/hall-packed-audience.jpeg"); }
.page-hero--statements { --hero-img: url("/forjustice/assets/img/gallery/placard-zaynab.jpeg"); }
.page-hero--involved { --hero-img: url("/forjustice/assets/img/gallery/event-who-is-hussain.jpeg"); }
.page-hero--articles { --hero-img: url("/forjustice/assets/img/gallery/event-panel-keffiyeh.jpeg"); }
.page-hero--contact { --hero-img: url("/forjustice/assets/img/gallery/msc-conference-stall.jpeg"); }
.page-hero--campaigns { --hero-img: url("/forjustice/assets/img/gallery/placard-karbala-palestine.jpeg"); --hero-pos: center 35%; }
.page-hero--events { --hero-img: url("/forjustice/assets/img/gallery/hall-packed-audience.jpeg"); --hero-pos: center 40%; }
.page-hero--lectures { --hero-img: url("/forjustice/assets/img/gallery/event-panel-audience.jpeg"); }
.page-hero--shop { --hero-img: url("/forjustice/assets/img/shop-tote-black.jpeg"); --hero-pos: 70% center; }
.page-hero--action { --hero-img: url("/forjustice/assets/img/gallery/azerbaijan-hijab-protest.jpeg"); --hero-pos: center 30%; }
.page-hero--city { --hero-img: url("/forjustice/assets/img/gallery/placard-shia-sunni-united.jpeg"); --hero-pos: center 35%; }
.page-hero--gallery { --hero-img: url("/forjustice/assets/img/gallery/speaker-iran-flag.jpeg"); --hero-pos: 20% 60%; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.bg-cream-2 { background: var(--cream-2); }
.bg-paper { background: var(--paper); }
.bg-green { background: var(--green-900); color: var(--on-dark-soft); }
.bg-green h2, .bg-green h3 { color: #fff; }
.bg-green .eyebrow { color: var(--gold-light); }
.bg-green .lead { color: var(--on-dark); }
.bg-green .container > * { max-width: 46rem; }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: 0; }
.section-head > p:not(.eyebrow) { margin: 0.9rem 0 0; color: var(--muted); }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.75; color: var(--ink); }
section p { max-width: 46rem; }
.divider-gold { display: none; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split > [style*="order"] { order: 0 !important; }
}
.media-frame {
  aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--green-900);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.grid { display: grid; gap: 2rem 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- No cards: a rule over each group ---------- */
.card {
  background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0;
  padding: 1rem 0 0; box-shadow: none;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
/* the four ways on the home page: the photograph, then the rule and the words */
.card--photo { border-top: 0; padding-top: 0; }
.card--photo::before {
  content: ""; display: block; aspect-ratio: 4 / 3;
  background: var(--green-900) var(--card-img) center / cover no-repeat;
  margin-bottom: 1rem;
}
.card .icon { display: none; }
.card .icon--num {
  display: block; width: auto; height: auto;
  padding-top: 0.75rem; margin: 0 0 0.35rem;
  border-top: 1px solid var(--rule);
  font: 600 1.25rem/1 var(--font-head);
  color: var(--gold-dark); background: none;
}

/* Get involved: four ways in, each a photograph and a line */
.tile {
  display: flex; flex-direction: column;
  color: var(--ink); text-decoration: none;
}
.tile::before {
  content: ""; display: block; aspect-ratio: 3 / 2;
  background: var(--green-900) var(--tile-img) center / cover no-repeat;
  margin-bottom: 1rem;
}
.tile .tile-icon { display: none; }
.tile h3 { padding-top: 0.75rem; border-top: 1px solid var(--rule); margin-bottom: 0.3rem; }
.tile p { color: var(--muted); margin: 0 0 0.75rem; }
.tile .arrow { margin-top: auto; color: var(--gold-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { color: var(--ink); }
  .tile:hover h3 { color: var(--green-700); }
}

/* Lists: hairline rows */
.values { list-style: none; margin: 0; padding: 0; }
.values li { padding: 1rem 0; border-top: 1px solid var(--line); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.bg-green .values li { border-color: var(--on-dark-line); color: var(--on-dark); }

/* ---------- About ---------- */
.ab-narrow > * { max-width: 46rem; }
.ab-quote {
  margin: 2rem 0;
  font: 600 clamp(1.5rem, 2.6vw, 1.95rem)/1.25 var(--font-head);
  color: var(--green-900);
}
.ab-quote small { display: block; margin-top: 0.6rem; font: 600 0.875rem/1.4 var(--font-body); color: var(--gold-dark); }
.ab-list { list-style: none; padding: 0; margin: 0; }
.ab-list li { padding: 1.25rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.ab-list li:last-child { border-bottom: 1px solid var(--line); }
.ab-list li > :is(b, strong):first-child { display: block; font: 600 1.4rem/1.2 var(--font-head); color: var(--green-900); margin-bottom: 0.3rem; }
.ab-karbala { background: var(--maroon-925); color: var(--on-dark-soft); }
.ab-karbala h2 { color: #fff; }
.ab-karbala .eyebrow { color: var(--gold-light); }
.ab-karbala p { color: var(--on-dark-soft); }
.ab-karbala .big { font: 600 clamp(1.75rem, 3.6vw, 2.5rem)/1.2 var(--font-head); color: var(--gold-light); margin: 1.5rem 0; }
.ab-karbala .ar { font-style: italic; color: #fff; }

/* ---------- Coming soon ---------- */
.soon-panel { border-top: 1px solid var(--rule); padding-top: 1.25rem; max-width: 46rem; }
.coming-soon {
  display: block; margin: 0;
  font: 600 clamp(1.75rem, 3vw, 2.25rem)/1.15 var(--font-head);
  color: var(--green-700);
}
.soon-panel .lead { margin: 0.75rem 0 0; }
.soon-panel .hero-actions { margin-top: 1.5rem !important; }

/* ---------- Call to collaborate: the heading left, the words right ---------- */
.cta-band { display: grid; gap: 1rem 4rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.cta-band h2 { margin: 0; }
.cta-band p { color: var(--muted); margin: 0; max-width: 40rem; }
.cta-band .hero-actions, .cta-band > .btn { margin-top: 0.5rem; justify-self: start; }
@media (min-width: 900px) {
  .cta-band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .cta-band h2 { grid-row: span 2; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .grid { gap: 0 !important; }
.contact-card {
  display: block; padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.contact-card:last-child { border-bottom: 1px solid var(--line); }
.contact-card b { display: block; font: 600 0.875rem/1.4 var(--font-body); color: var(--gold-dark); margin-bottom: 0.15rem; }
.contact-card > span { font-size: 1.0625rem; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .contact-card:hover { color: var(--green-700); } }

/* ---------- Forms: ruled lines, not boxes ---------- */
form.afj-form { display: grid; gap: 1.25rem; }
.afj-form.card { border-top: 0; padding: 0; }
.afj-waitlist { max-width: 560px; }
.afj-form label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 0.15rem; }
.afj-form input:not([type=checkbox]):not([type=hidden]), .afj-form textarea, .afj-form select,
.action-form input[type=text], .action-form input[type=email] {
  width: 100%; min-height: 42px;
  padding: 0.5rem 0;
  font: inherit; font-weight: 400; color: var(--ink);
  background: none;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
}
.afj-form textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.afj-form input:focus, .afj-form textarea:focus, .action-form input:focus {
  outline: none; border-bottom-color: var(--gold-dark); box-shadow: inset 0 -1px 0 var(--gold-dark);
}
.afj-form button[type=submit] { justify-self: start; }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
@media (max-width: 560px) { .af-row { grid-template-columns: 1fr; } }
@media (pointer: coarse) { input, textarea, select { font-size: 16px !important; } }
/* what happened after sending: a line of text under a rule */
.note, .form-status {
  margin: 0; padding: 0.75rem 0 0;
  border: 0; border-top: 2px solid var(--green-800); border-radius: 0;
  background: none; font-size: 0.9375rem; font-weight: 600; color: var(--ink);
}

/* ---------- Events: ruled rows, like the absoc.uk calendar list ---------- */
.ev-list { display: grid; }
.ev {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.5rem; align-items: start;
  padding: 1.5rem 0; border-top: 1px solid var(--rule);
}
.ev-list > .ev:last-child { border-bottom: 1px solid var(--line); }
.ev-date { display: flex; flex-direction: column; color: var(--green-700); }
.ev-day { font: 600 2.25rem/1 var(--font-body); letter-spacing: -0.02em; }
.ev-mon { margin-top: 0.3rem; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.ev-body h3 { margin: 0 0 0.3rem; font-size: 1.6rem; }
.ev-meta { margin: 0 0 0.6rem; font-weight: 600; color: var(--gold-dark); font-size: 0.9375rem; }
.ev-body p { margin: 0 0 0.75rem; color: var(--muted); }
.ev-speakers { font-size: 0.9375rem; }
.ev-topics { margin: 0 0 1rem; padding-left: 1.1rem; font-size: 0.9375rem; color: var(--muted); }
.ev-topics li { margin: 0.15rem 0; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.ev-actions .btn { padding: 0.65rem 1.2rem; font-size: 0.875rem; }
.ev--past .ev-date, .ev--past h3 { color: var(--muted); }
.ev--poster { grid-template-columns: 6.5rem minmax(0, 1fr) 200px; }
.ev-poster { display: block; }
.ev-poster img { width: 100%; height: auto; }
.ev-empty { padding: 1.25rem 0; border-top: 1px solid var(--rule); max-width: 40rem; }
.ev-empty h3 { margin: 0 0 0.3rem; }
.ev-empty p { margin: 0; color: var(--muted); }
.ev-more { margin: 1.75rem 0 0; }
@media (max-width: 860px) {
  .ev--poster { grid-template-columns: 5rem minmax(0, 1fr); }
  .ev--poster .ev-poster { grid-column: 2; max-width: 320px; }
}
@media (max-width: 560px) {
  .ev, .ev--poster { grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; }
  .ev-day { font-size: 1.75rem; }
  .ev-mon { font-size: 0.75rem; }
  .ev--poster .ev-poster { grid-column: 1 / -1; }
}

/* ---------- The Imam Hussain banner on the home page ---------- */
.banner-quote--hero {
  min-height: min(78vh, 700px);
  display: flex; align-items: center;
  padding: clamp(4.5rem, 11vw, 8rem) 0;
  background:
    linear-gradient(270deg, rgba(25, 5, 6, 0.04) 0, rgba(25, 5, 6, 0.26) 240px, rgba(25, 5, 6, 0.97) 470px),
    url("../img/gallery/speaker-quote-banner.jpeg?v=2") right 0 center / auto 118% no-repeat,
    var(--maroon-950);
  color: var(--on-dark);
  overflow: hidden;
}
.banner-quote--hero .bq-inner { position: relative; width: 100%; }
.banner-quote--hero .bq-mark { display: none; }
.banner-quote--hero .bq-label { margin: 0 0 1rem; font-size: 0.9375rem; font-weight: 600; color: var(--gold-light); }
.banner-quote--hero .bq-title {
  color: #fff; font-weight: 500;
  font-size: clamp(2.75rem, 7vw, 5.25rem); line-height: 1;
  letter-spacing: -0.02em;
  max-width: 620px; margin: 0 0 1.5rem;
}
.banner-quote--hero .bq-title em { font-style: italic; color: var(--gold-light); }
.banner-quote--hero .bq-sub {
  max-width: 560px; margin: 0;
  padding-top: 1.25rem; border-top: 1px solid var(--on-dark-line);
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem); line-height: 1.6; color: var(--on-dark);
}
@media (max-width: 900px) {
  .banner-quote--hero {
    min-height: 860px; align-items: flex-start;
    background:
      linear-gradient(180deg, rgba(25,5,6,.97) 0%, rgba(25,5,6,.93) 36%, rgba(25,5,6,.3) 55%, rgba(25,5,6,.08) 100%),
      url("../img/gallery/speaker-quote-banner.jpeg?v=2") center bottom / max(100%, 600px) auto no-repeat,
      var(--maroon-950);
  }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-925); color: var(--on-dark-soft); padding: 4rem 0 1.5rem; border-top: 1px solid var(--on-dark-line); position: relative; overflow: hidden; }
.site-footer > .container { position: relative; z-index: 1; }
/* the big faint wordmark behind the footer, as on absoc.uk: inside
   .footer-bottom, its letters standing on the thin gold line */
.footer-watermark {
  position: absolute; z-index: -1; bottom: calc(100% - 0.18em); left: 50%; transform: translateX(-50%);
  font: 600 clamp(6rem, 22vw, 20rem)/1 var(--font-head);
  color: rgba(252, 250, 244, 0.025);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-logo { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9375rem; color: var(--on-dark-soft); max-width: 330px; }
.site-footer h4 { font: 600 0.875rem/1.4 var(--font-body); color: var(--gold-light); margin: 0 0 1rem; letter-spacing: 0; }
.site-footer a { color: var(--on-dark-soft); display: block; padding: 0.25rem 0; font-size: 0.9375rem; text-decoration: none; overflow-wrap: anywhere; }
.footer-msc { margin: 0; }
.footer-msc a { display: inline; padding: 0; color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  position: relative;
  border-top: 1px solid var(--on-dark-line); padding-top: 1.25rem;
  font-size: 0.8125rem; color: rgba(243, 234, 217, 0.6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: var(--gold-light); } }

/* ---------- Gallery ---------- */
.camp-index {
  position: sticky; top: var(--header-h); z-index: 20;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.camp-index .container, .camp-index .ci-group {
  display: flex; gap: 1.75rem;
  overflow-x: auto; scrollbar-width: none;
}
.camp-index .container::-webkit-scrollbar, .camp-index .ci-viewport::-webkit-scrollbar { display: none; }
.camp-index .ci-viewport { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 640px) { .camp-index .ci-viewport { padding: 0 24px; } }
@media (min-width: 1024px) { .camp-index .ci-viewport { padding: 0 32px; } }
.camp-index .ci-group { overflow: visible; }
@media (min-width: 1100px) { .camp-index .ci-group { flex-wrap: wrap; row-gap: 0; column-gap: 1.5rem; } .camp-index a { padding: 0.6rem 0 0.5rem; } }
.camp-index a {
  flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 0.4rem;
  padding: 0.85rem 0 0.75rem; border-bottom: 2px solid transparent;
  color: var(--ink); font-weight: 600; font-size: 0.9375rem; white-space: nowrap; text-decoration: none;
  transition: border-color var(--ease-fast), color var(--ease-fast);
}
.camp-index a span { font-size: 0.8125rem; color: var(--gold-dark); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .camp-index a:hover { color: var(--green-700); border-bottom-color: var(--gold); } }

.g-section { scroll-margin-top: 130px; }
.g-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; gap: 6px; }
.m-item { position: relative; margin: 0; overflow: hidden; background: var(--green-900); }
.m-big { grid-column: span 2; grid-row: span 2; }
.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }
.m-full { grid-column: 1 / -1; grid-row: span 2; }
.m-item a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.m-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 2.2rem 0.9rem 0.8rem; color: #fff; font-weight: 600; font-size: 0.875rem; line-height: 1.35;
  background: linear-gradient(180deg, rgba(20, 4, 5, 0), rgba(20, 4, 5, 0.88) 60%);
}
.m-big figcaption { font-size: 1rem; padding: 2.6rem 1.1rem 1rem; }
.g-mosaic .m-captop figcaption { top: 0; bottom: auto; padding-top: 0.8rem; padding-bottom: 2rem; background: linear-gradient(0deg, rgba(20,4,5,0), rgba(20,4,5,.88) 60%); }
@media (max-width: 900px) { .g-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; } }
@media (max-width: 600px) {
  .g-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 4px; }
  .m-item figcaption { font-size: 0.75rem; padding: 1.6rem 0.6rem 0.55rem; }
  .g-mosaic .m-big figcaption, .g-mosaic .m-full figcaption { font-size: 0.8125rem; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  background: rgba(20, 4, 5, 0.95); padding: clamp(0.8rem, 3vw, 2rem);
  flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; }
.lightbox p { color: var(--on-dark); font-weight: 600; margin: 0; text-align: center; }
.lb-btn {
  position: absolute; border: 1px solid rgba(243, 234, 217, 0.3); cursor: pointer;
  color: #fff; background: rgba(20, 4, 5, 0.6);
  width: 44px; height: 44px; border-radius: 0; font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center; transition: var(--t-press);
}
.lb-btn:active { transform: scale(0.97); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
@media (max-width: 560px) { .lb-prev, .lb-next { top: auto; bottom: 14px; translate: none; } }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--green-900); } }

/* ---------- Campaigns ---------- */
.camp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2rem; align-items: center; }
.camp-hero-ar {
  font-family: var(--font-arabic); font-weight: 700;
  color: var(--gold-light) !important; font-size: clamp(1.4rem, 2.8vw, 1.9rem) !important; line-height: 1.6;
  margin: 1rem 0 0.5rem; text-align: left;
}
.camp-globe { position: relative; width: 100%; max-width: 460px; justify-self: end; }
.camp-globe canvas { display: block; width: 100%; touch-action: pan-y; cursor: grab; }
.camp-globe canvas:active { cursor: grabbing; }
@media (max-width: 860px) {
  .camp-hero { grid-template-columns: 1fr; gap: 0.5rem; }
  .camp-globe { justify-self: center; max-width: 400px; }
}

.camp { padding: clamp(3.5rem, 8vw, 6rem) 0; scroll-margin-top: 130px; }
.camp:nth-of-type(even) { background: var(--cream-2); }
.camp-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.camp--flip .camp-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.camp--flip .camp-art { order: 2; }
@media (max-width: 860px) {
  .camp-grid, .camp--flip .camp-grid { grid-template-columns: 1fr; }
  .camp--flip .camp-art { order: 0; }
}
.camp-art {
  position: sticky; top: 150px;
  aspect-ratio: 4 / 5; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--green-900);
  isolation: isolate;
}
.camp-photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.camp-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28, 5, 6, 0.3) 0%, rgba(28, 5, 6, 0.55) 55%, rgba(28, 5, 6, 0.92) 100%);
}
.camp-art.has-photo .camp-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 38% at 18% 10%, rgba(28, 5, 6, 0.7), rgba(28, 5, 6, 0) 70%);
}
.camp-num { font: 600 clamp(2.75rem, 6vw, 4.25rem)/1 var(--font-body); letter-spacing: -0.03em; color: var(--gold-light); }
.camp-ar {
  font-family: var(--font-arabic); color: #fff; font-weight: 700; line-height: 1.3; text-align: right;
  font-size: clamp(2rem, 5vw, 3.2rem);
}
.camp-art--top { justify-content: flex-start; }
.camp-art--top .camp-ar { position: absolute; top: clamp(1.25rem, 3vw, 1.75rem); right: clamp(1.25rem, 3vw, 1.75rem); }
.camp-art--top .camp-photo::after { background: linear-gradient(180deg, rgba(28,5,6,.85) 0%, rgba(28,5,6,.35) 32%, rgba(28,5,6,0) 55%); }
@media (max-width: 860px) {
  .camp-art { position: relative; top: 0; aspect-ratio: 16 / 9; }
  .camp-art--top { aspect-ratio: 4 / 3; }
  .camp-art--top .camp-photo { background-position: center 62%; }
}

.camp-body h2 { margin: 0.1rem 0 1.25rem; }
.camp-body > p { font-size: 1.0625rem; line-height: 1.7; }
.camp-facts { margin: 2rem 0; padding-top: 1rem; border-top: 1px solid var(--rule); }
.camp-facts h3 { font: 600 0.875rem/1.4 var(--font-body); color: var(--gold-dark); margin: 0 0 0.6rem; letter-spacing: 0; }
.camp-facts ul { margin: 0; padding-left: 1.1rem; }
.camp-facts li { color: var(--muted); font-size: 0.9375rem; margin: 0.4rem 0; }
.camp-facts strong { color: var(--green-800); }
.camp-call { font: 600 clamp(1.3rem, 2.2vw, 1.55rem)/1.3 var(--font-head); color: var(--green-900); margin: 0 0 1.5rem; }
.camp-call span { display: block; font: 600 0.875rem/1.4 var(--font-body); color: var(--gold-dark); margin-bottom: 0.35rem; }
.camp-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.fzr { margin: 2rem 0; padding: clamp(1.4rem, 3vw, 2rem); background: var(--green-900); color: var(--on-dark-soft); }
.fzr-kicker { margin: 0; color: var(--gold-light); font-weight: 600; font-size: 0.875rem; }
.fzr h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0.2rem 0 0.8rem; }
.fzr p, .fzr li { color: var(--on-dark-soft); }
.fzr .fzr-lead { color: var(--on-dark); font-size: 1.0625rem; }
.fzr strong { color: #fff; }
.fzr ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.fzr li { margin: 0.45rem 0; font-size: 0.9375rem; }
.fzr a:not(.btn) { color: var(--gold-light); }

.brit-tabs { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.brit-tabs a { padding: 0.25rem 0; border-bottom: 1px solid var(--gold); font-weight: 600; font-size: 0.9375rem; color: var(--green-800); text-decoration: none; }
.brit-part {
  display: flex; align-items: baseline; gap: 0.6rem; scroll-margin-top: 140px;
  font-size: 1.6rem; color: var(--green-900);
  margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.brit-part span { font: 600 1.6rem/1 var(--font-head); color: var(--gold-dark); }
.camp-body .brit-part:first-of-type { margin-top: 0.5rem; }
.stu-card { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.stu-card h4 { margin: 0 0 0.5rem; font-size: 1.45rem; }
.stu-card p { font-size: 1rem; }
.stu-card--landmark { border-top: 2px solid var(--green-700); }
.stu-kicker { margin: 0 0 0.2rem; font-size: 0.875rem !important; font-weight: 600; color: var(--gold-dark) !important; }
.stu-quote { margin: 1rem 0 1.25rem; padding: 0; font: italic 500 1.35rem/1.35 var(--font-head); color: var(--green-800); }
.stu-quote cite { display: block; margin-top: 0.4rem; font: 600 0.875rem/1.4 var(--font-body); font-style: normal; color: var(--gold-dark); }
.camp-explainer { margin: 1.5rem 0; padding: 1.4rem 1.5rem; background: var(--green-900); color: var(--on-dark-soft); }
.camp-explainer h3 { font: 600 0.9375rem/1.4 var(--font-body); color: var(--gold-light); margin: 0 0 0.6rem; }
.camp-explainer p { color: var(--on-dark-soft); }
.camp-explainer p:last-child { margin-bottom: 0; }
.camp-explainer strong { color: #fff; }
.camp-sources summary { cursor: pointer; font-weight: 600; color: var(--green-700); }
.camp-sources li { font-size: 0.875rem; margin: 0.4rem 0; }
.camp-sources a { color: var(--muted); }

.hussain-quote { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--cream); text-align: center; }
.hussain-quote .container > * { max-width: 40rem; margin-left: auto; margin-right: auto; }
.hq-star { display: none; }
.hussain-quote blockquote { margin: 0; }
.hq-ar { font-family: var(--font-arabic); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.65rem); line-height: 1.8; color: var(--green-800); margin: 0 0 0.5rem; }
.hq-en { font: italic 500 clamp(1.25rem, 2vw, 1.45rem)/1.4 var(--font-head); color: var(--ink); margin: 0 auto; }
.hq-cite { display: block; margin-top: 0.75rem; font-weight: 600; font-size: 0.875rem; color: var(--gold-dark); }
.hq-close { margin: 1rem auto 0; font-size: 0.9375rem; color: var(--muted); }

.to-top {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 60;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1rem; border: 1px solid var(--gold); border-radius: 0;
  background: var(--green-900); color: #fff; font: 600 0.875rem/1 var(--font-body);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms, background-color var(--ease-fast);
}
.to-top.show { opacity: 1; visibility: visible; transition: opacity 200ms ease, background-color var(--ease-fast); }
.to-top:active { transform: scale(0.97); }
.to-top svg { color: var(--gold-light); }
@media (max-width: 600px) { .to-top .to-top-label { display: none; } .to-top { padding: 0.75rem; } }
@media (hover: hover) and (pointer: fine) { .to-top:hover { background: var(--green-700); } }

/* ---------- Take action ---------- */
.btn-take-action { font-weight: 600; }
.action-kicker { display: block; margin: 0 0 0.75rem; font-weight: 600; font-size: 0.9375rem; color: var(--gold-light); }
.page-hero--action h1, .page-hero--city h1 { max-width: 820px; }
.action-wrap { scroll-margin-top: 80px; }
.action-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .action-grid { grid-template-columns: 1fr; } }
.action-intro h2 { margin-top: 0.2rem; }
.action-steps { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.action-steps li { display: flex; gap: 0.9rem; align-items: baseline; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.action-steps li:last-child { border-bottom: 1px solid var(--line); }
.action-steps li > span { flex: 0 0 1.25rem; font: 600 1.125rem/1 var(--font-body); color: var(--gold-dark); }
.action-form { display: grid; gap: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.action-form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.action-form label small { font-weight: 400; color: var(--muted); }
.action-form label em { color: var(--green-600); font-style: normal; }
.action-form textarea {
  width: 100%; min-height: 280px; resize: vertical;
  padding: 0.85rem 1rem; font: 400 0.9375rem/1.65 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--ink); border-radius: 0;
}
.action-form textarea:focus { outline: none; border-color: var(--gold-dark); box-shadow: inset 0 0 0 1px var(--gold-dark); }
.af-subject { font-weight: 600 !important; margin-bottom: 0.4rem; }
.af-who { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.af-who legend { font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; font-size: 0.9375rem; padding: 0; }
.af-choice {
  display: flex !important; flex-direction: row; align-items: flex-start; gap: 0.75rem !important;
  border: 1px solid var(--line); border-radius: 0; padding: 0.85rem 1rem; cursor: pointer;
  font-weight: 400 !important; transition: border-color var(--ease-fast), background-color var(--ease-fast);
}
.af-choice:has(input:checked) { border-color: var(--green-700); background: var(--paper); box-shadow: inset 0 0 0 1px var(--green-700); }
.af-choice input { margin-top: 0.2rem; accent-color: var(--green-700); width: 18px; height: 18px; flex: none; }
.af-choice b { display: block; color: var(--green-800); font-size: 1rem; }
.af-choice span { color: var(--muted); font-size: 0.875rem; }
.af-fm { display: grid; gap: 1rem; }
.af-fm[hidden] { display: none; }
.af-to { margin: -0.4rem 0 0; font-size: 0.875rem; color: var(--muted); }
.af-to span { color: var(--green-800); font-weight: 600; word-break: break-all; }
.af-buttons { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.af-note { margin: 0; font-size: 0.875rem; color: var(--muted); }
.af-error { margin: 0; padding-top: 0.6rem; border-top: 2px solid #a3191f; color: #a3191f; font-weight: 600; font-size: 0.9375rem; }
.af-thanks { background: var(--green-900); color: var(--on-dark); padding: 1.4rem 1.5rem; }
.af-thanks h3 { color: var(--gold-light); margin: 0 0 0.4rem; }
.af-thanks p { color: var(--on-dark); }
.af-count { margin: 0; font-weight: 600; color: var(--green-700); font-size: 0.9375rem; }
:root:not(.afj-auto) .auto-only, .afj-auto .manual-only, .afj-auto .af-manual .auto-only { display: none !important; }
.afj-auto .af-manual span.manual-only { display: inline !important; }
.afj-auto .af-manual p.manual-only { display: block !important; }
.af-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.c-course[hidden] { display: none !important; }

.action-bg { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .action-bg { grid-template-columns: 1fr; } }
.action-photo img { width: 100%; display: block; }
.action-card { display: block; color: inherit; }
.action-letter { border-top: 1px solid var(--line); }
.action-letter:last-of-type { border-bottom: 1px solid var(--line); }
.action-letter summary { cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--green-800); }
.letter-paper { white-space: pre-wrap; padding: 0 0 1.5rem; font: 400 0.9375rem/1.7 var(--font-body); color: var(--ink); }
.action-address { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.action-address h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.action-address address { font-style: normal; line-height: 1.6; color: var(--ink); }
.action-address p { margin: 0.6rem 0 0; }

/* ---------- Shop: coming soon ---------- */
.soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 780px) { .soon-grid { grid-template-columns: 1fr 1fr; } .soon-tile:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; } }
@media (max-width: 480px) { .soon-grid { grid-template-columns: 1fr; } .soon-tile:last-child { aspect-ratio: 1 / 1; } }
.soon-tile {
  position: relative; aspect-ratio: 1 / 1;
  display: grid; place-items: center; align-content: center;
  background: var(--green-900); color: var(--on-dark);
}
.soon-tile svg { display: none; }
.soon-num { font: 600 clamp(2.5rem, 5vw, 3.75rem)/1 var(--font-body); letter-spacing: -0.03em; color: var(--gold-light); }
.product-badge { position: absolute; top: 1rem; left: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--on-dark-soft); }

/* ---------- Media library ---------- */
.lec-cat { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 3rem 0 1.25rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.lec-cat:first-child { margin-top: 0; }
.lec-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.5rem 1.75rem; }
.lec-card { display: flex; flex-direction: column; }
.lec-thumb, .lec-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--maroon-950); position: relative; cursor: pointer; }
.lec-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lec-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--gold); }
.lec-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 16px solid var(--green-900); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.lec-body { padding: 1rem 0 0; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.lec-body h4 { font-size: 1.4rem; line-height: 1.2; margin: 0; }
.lec-body p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.lec-meta { font-size: 0.8125rem !important; font-weight: 600; color: var(--gold-dark) !important; }
.lec-link { margin-top: auto; padding-top: 0.4rem; font-weight: 600; font-size: 0.9375rem; color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .lec-thumb:hover .lec-play { background: var(--gold-light); } }

/* ---------- Library ---------- */
.rl-category { margin-bottom: 3.5rem; }
.rl-category > .cat-head { padding-top: 0.75rem; border-top: 1px solid var(--rule); margin-bottom: 1.75rem; }
.rl-category > .cat-head h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.rl-category > .cat-head p { margin: 0.3rem 0 0; color: var(--muted); }

/* ---------- Statements and articles (written in the editor) ---------- */
[hidden] { display: none !important; }
.statement-list { display: grid; max-width: 46rem; }
.statement { padding: 2rem 0; border-top: 1px solid var(--rule); }
.statement:last-child { border-bottom: 1px solid var(--line); }
.statement-date { margin: 0 0 0.4rem; font-size: 0.875rem; font-weight: 600; color: var(--gold-dark); }
.statement h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.prose { max-width: 42rem; }
.prose p { line-height: 1.75; }
.prose h2, .prose h3 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.prose li { margin: 0.3rem 0; }
.article-list { display: grid; max-width: 52rem; }
.article-row {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1.5rem; align-items: start;
  padding: 1.5rem 0; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none;
}
.article-row img { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; }
.article-row:not(:has(img)) { grid-template-columns: 1fr; }
.article-meta { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gold-dark); }
.article-title { display: block; margin: 0.25rem 0 0.4rem; font: 600 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--font-head); color: var(--green-900); }
.article-summary { display: block; color: var(--muted); }
@media (max-width: 600px) { .article-row { grid-template-columns: 1fr; } .article-row img { width: 100%; } }
@media (hover: hover) and (pointer: fine) { .article-row:hover .article-title { color: var(--green-700); } }
.article { max-width: 46rem; }
.article h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.5rem 0; }
.article-cover { width: 100%; margin: 1.5rem 0; }
.breadcrumb-inline { font-size: 0.875rem; margin: 0 0 0.5rem; }
.draft-flag { display: inline-block; margin: 0 0 0.5rem; padding: 0.2rem 0.5rem; border: 1px solid var(--green-700); color: var(--green-700); font-size: 0.8125rem; font-weight: 600; }

/* ---------- Sign in (admin.html): AFJ's red and absoc.uk's stars beside the
   form, the same layout as absoc.uk's sign-in. No top bar or footer. ---------- */
.afj-auth {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh;
  color: var(--on-dark);
  background:
    radial-gradient(ellipse 80% 70% at 70% 10%, rgba(138, 42, 45, 0.32) 0%, transparent 55%),
    linear-gradient(170deg, #120304, var(--green-900) 60%, var(--maroon-925));
}
.afj-auth .hero-canvas { z-index: 0; }
.auth-side { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 0 16px 2rem; }
.auth-top { display: flex; align-items: center; min-height: var(--header-h); margin-bottom: 1rem; }
.auth-logo img { height: 46px; width: auto; }
.auth-title {
  margin: 0 0 0.5rem; color: #fff;
  font: 500 clamp(2.75rem, 4.5vw, 4.25rem)/1.04 var(--font-head); letter-spacing: -0.015em;
}
.auth-lead { margin: 0; max-width: 30rem; font-size: 1.125rem; line-height: 1.6; color: var(--on-dark-soft); }
.auth-form { position: relative; z-index: 1; background: var(--cream); color: var(--ink); padding: 2rem 16px 3rem; }
.auth-form-inner { width: 100%; max-width: 440px; margin-inline: auto; }
.afj-signin { display: grid; gap: 1.25rem; }
.afj-signin .btn-primary { justify-self: start; min-height: 48px; min-width: 10rem; }
.afj-signin-help { margin: -0.25rem 0 0; font-size: 0.875rem; color: var(--muted); }
.afj-signin-step { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.afj-signout { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pw-field { position: relative; }
.pw-field input { padding-right: 2.5rem !important; }
.pw-toggle {
  position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  display: grid; place-items: center; width: 40px; height: 40px;
  padding: 0; border: 0; background: none; color: var(--ink); opacity: 0.55; cursor: pointer;
  transition: opacity var(--ease-fast);
}
.pw-toggle svg { display: block; }
@media (hover: hover) and (pointer: fine) { .pw-toggle:hover { opacity: 1; } }
@media (min-width: 640px) { .auth-side, .auth-form { padding-inline: 24px; } }
@media (min-width: 1024px) {
  .afj-auth { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .auth-side {
    position: sticky; top: 0; align-self: start; height: 100svh;
    padding: 0 4rem 2rem max(32px, calc((100vw - var(--maxw)) / 2 + 32px));
  }
  .auth-top { margin-bottom: auto; }
  .auth-intro { margin-bottom: auto; }
  .auth-form { display: flex; align-items: center; min-height: 100svh; padding: 1rem 3rem; }
}
/* Phones and tablets: the red is a short header and the form fits the screen. */
@media (max-width: 1023px) {
  .afj-auth { display: flex; flex-direction: column; }
  .auth-form { flex: 1; padding-top: 1.25rem; }
  .auth-top { min-height: 60px; margin-bottom: 0.5rem; }
  .auth-logo img { height: 40px; }
  .auth-side { padding-bottom: 0.9rem; }
  .auth-title { font-size: 2rem; margin-bottom: 0.25rem; }
  .auth-lead { font-size: 1rem; }
}
.note.is-error { border-top-color: #a3191f; color: #a3191f; }

/* a small line above a heading, written as !! in the editor */
.kicker { margin: 0 0 0.2rem; font-size: 0.875rem; font-weight: 600; color: var(--gold-dark); }
