/* ============================================================================
   Drone Space — dronespace.ie
   Palette and type per branding/messaging.md §5.
   Mobile-first. No external requests: system font stacks, inline SVG only.
   ========================================================================= */

:root {
  --ink:    #0E1621;
  --slate:  #1C2A38;
  --mid:    #4A5B6C;
  --soft:   #6B7A88;
  --mist:   #F4F6F8;
  --line:   #D6DDE4;
  --amber:  #E8A33D;
  --amber-dk: #B87A1E;
  --green:  #2E7D5B;
  --rust:   #C2410C;
  --white:  #FFFFFF;

  --serif: Charter, "Iowan Old Style", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1140px;
  --narrow: 760px;

  --s1: 0.25rem;  --s2: 0.5rem;   --s3: 0.75rem;  --s4: 1rem;
  --s5: 1.5rem;   --s6: 2rem;     --s7: 3rem;     --s8: 4rem;
  --s9: 5.5rem;

  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- accessibility ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--white);
  padding: var(--s3) var(--s4); font-weight: 600;
}
.skip:focus { left: 0; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.narrow { max-width: var(--narrow); }
main { display: block; }

section { padding: var(--s7) 0; }
@media (min-width: 768px) { section { padding: var(--s8) 0; } }

.band-mist { background: var(--mist); }
.band-ink  { background: var(--ink); color: #C9D3DC; }
.band-ink h2, .band-ink h3, .band-ink strong { color: var(--white); }
.band-ink a { color: var(--amber); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 var(--s4); font-weight: 600; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); letter-spacing: -0.015em; line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.03rem; font-family: var(--sans); font-weight: 700; }

p { margin: 0 0 var(--s4); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--mid); }
@media (min-width: 768px) { .lede { font-size: 1.3rem; } }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--amber-dk); }

strong { color: var(--ink); font-weight: 600; }
small { font-size: .875rem; }

.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mid);
  margin: 0 0 var(--s3);
}
.band-ink .eyebrow { color: var(--amber); }

.num { font-variant-numeric: tabular-nums; font-family: var(--mono); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; display: block; }
.brand-name {
  font-family: var(--sans); font-weight: 700; font-size: .95rem;
  letter-spacing: .19em; text-transform: uppercase; color: var(--ink); line-height: 1;
}
.brand-sub {
  display: block; font-size: .58rem; font-weight: 500; letter-spacing: .13em;
  color: var(--mid); margin-top: 4px; text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: none; list-style: none; margin: 0; padding: 0;
}
.nav-menu.is-open {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: var(--s3) var(--s5) var(--s5);
  box-shadow: 0 12px 24px rgba(14,22,33,.08);
}
.nav-menu a {
  display: block; padding: var(--s3) 0; text-decoration: none;
  font-size: .97rem; font-weight: 500; color: var(--slate);
  border-bottom: 1px solid var(--mist);
}
.nav-menu a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-menu .btn { margin-top: var(--s4); border-bottom: 0; }

/* V3 added a sixth nav item (Operations); with the tighter gap the row fits
   from about 1040px — below that the burger menu is used instead. */
@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .nav-menu, .nav-menu.is-open {
    display: flex; flex-direction: row; align-items: center; gap: var(--s4);
    position: static; padding: 0; border: 0; box-shadow: none;
  }
  .nav-menu a { padding: var(--s2) 0; border-bottom: 2px solid transparent; }
  .nav-menu a:hover { border-bottom-color: var(--line); }
  .nav-menu a[aria-current="page"] { border-bottom-color: var(--amber); }
  .nav-menu .btn { margin-top: 0; border-bottom: 0; }
  .nav-menu .btn:hover { border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .8rem 1.5rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  text-decoration: none; border-radius: var(--radius);
  border: 2px solid var(--ink); background: var(--ink); color: var(--white);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--amber-dk); border-color: var(--amber-dk); color: var(--white); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-dk); border-color: var(--amber-dk); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.band-ink .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.band-ink .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #C9D3DC; padding: var(--s7) 0 var(--s8); }
@media (min-width: 768px) { .hero { padding: var(--s9) 0; } }
.hero h1 { color: var(--white); max-width: 20ch; }
.hero .lede { color: #A9B7C4; max-width: 58ch; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.45); }
.hero .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.hero-flag {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: var(--s5);
}
.hero-flag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); flex-shrink: 0;
}

/* ---------- proof bar ---------- */
.proof {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: var(--s7); padding-top: var(--s5);
  display: grid; gap: var(--s5);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .proof { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof-item .k {
  display: block; font-family: var(--serif); font-size: 1.02rem;
  color: var(--white); font-weight: 600; margin-bottom: 3px; line-height: 1.3;
}
.proof-item .v { display: block; font-size: .8rem; color: #8DA0B0; line-height: 1.45; }

/* ---------- cards / pillars ---------- */
.grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s5);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: var(--s3); }
.card p:last-of-type { margin-bottom: var(--s4); }
.card .card-link { margin-top: auto; font-weight: 600; font-size: .93rem; text-decoration: none; }
.card .card-link::after { content: " →"; }
.card .card-link:hover { text-decoration: underline; }
.card-icon { margin-bottom: var(--s4); }
.card-icon svg { width: 38px; height: 38px; display: block; }

/* ---------- stat tiles ---------- */
.stats { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); background: var(--white); }
.stat .n { display: block; font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: var(--s2); font-variant-numeric: tabular-nums; }
.stat .n.is-amber { color: var(--amber-dk); }
.stats-col { grid-template-columns: 1fr; }
@media (min-width: 620px) { .stats-col { grid-template-columns: 1fr; } }
.stat .c { display: block; font-size: .87rem; color: var(--mid); line-height: 1.45; }

/* ---------- callout ---------- */
.callout {
  background: var(--mist); border-left: 4px solid var(--amber);
  padding: var(--s5); border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--s5) 0;
}
.callout :last-child { margin-bottom: 0; }
.callout-quote { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.callout cite { display: block; margin-top: var(--s3); font-size: .85rem; font-style: normal; color: var(--mid); }

/* pending-confirmation marker — demo only, see website/README.md */
.tbc {
  background: #FDF2DF; border-bottom: 1px dashed var(--amber-dk);
  padding: 0 .25em; color: var(--amber-dk); font-style: italic;
  font-size: .95em;
}

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; margin: var(--s5) 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
caption { text-align: left; font-size: .85rem; color: var(--mid); padding-bottom: var(--s3); }
th {
  text-align: left; font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--mid);
  border-bottom: 2px solid var(--ink); padding: 0 var(--s4) var(--s2) 0; vertical-align: bottom;
}
td { padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.yes { color: var(--green); font-weight: 600; }
.no  { color: var(--rust);  font-weight: 600; }

/* ---------- lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 var(--s5); }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: var(--s3); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--amber);
}

.deliverables { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.deliverables li { border-top: 1px solid var(--line); padding: var(--s4) 0; }
.deliverables li:last-child { border-bottom: 1px solid var(--line); }
/* Only the leading label is a block heading — <strong> used for emphasis
   inside the description stays inline. */
.deliverables > li > strong { display: block; font-family: var(--serif); font-size: 1.08rem; margin-bottom: 3px; }
.deliverables span { font-size: .93rem; color: var(--mid); }

/* ---------- Q&A blocks (compliance hub) ---------- */
.qa { border-top: 1px solid var(--line); padding-top: var(--s5); margin-top: var(--s5); }
.qa h3 { font-size: 1.28rem; margin-bottom: var(--s3); }
.qa .answer-first { font-weight: 600; color: var(--ink); }

.source-note {
  font-size: .82rem; color: var(--soft); border-left: 2px solid var(--line);
  padding-left: var(--s4); margin-top: var(--s4);
}
.source-note a { color: var(--mid); }

.reviewed {
  display: inline-block; font-size: .8rem; color: var(--mid);
  background: var(--mist); border-radius: var(--radius);
  padding: var(--s2) var(--s3); margin-bottom: var(--s5);
}

/* ---------- diagrams ---------- */
figure { margin: var(--s6) 0; }
figure svg { width: 100%; height: auto; display: block; }
/* Diagrams stay legible instead of shrinking to unreadable text: below the
   breakpoint the figure scrolls horizontally, like the data tables do. */
.diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram svg { min-width: 660px; }
figcaption { font-size: .85rem; color: var(--mid); margin-top: var(--s3); line-height: 1.5; }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: var(--s2); }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--mid); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--slate);
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-consent { font-size: .87rem; color: var(--mid); }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #8DA0B0; padding: var(--s7) 0 var(--s5); font-size: .92rem; }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 760px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { color: var(--white); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s4); font-family: var(--sans); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--s3); }
.site-footer a { color: #A9B7C4; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-sub { color: #7B8C9B; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s6); padding-top: var(--s5);
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between;
  font-size: .82rem; color: #6E8090;
}

/* ---------- misc ---------- */
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.max-60 { max-width: 60ch; }

.cta-strip { background: var(--ink); color: #C9D3DC; padding: var(--s7) 0; }
.cta-strip h2 { color: var(--white); margin-bottom: var(--s3); }
.cta-strip p { max-width: 55ch; }

.event-strip {
  background: var(--amber); color: var(--ink);
  padding: var(--s4) 0; font-size: .93rem;
}
.event-strip .wrap { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; justify-content: center; text-align: center; }
.event-strip strong { color: var(--ink); }
.event-strip a { color: var(--ink); font-weight: 700; }

@media print {
  .site-header, .site-footer, .nav-toggle, .event-strip, .btn { display: none; }
  body { color: #000; font-size: 11pt; }
}

/* ============================================================================
   V3 additions
   ========================================================================= */

/* ---------- interior page hero ---------- */
.hero-page { padding: var(--s7) 0; }
@media (min-width: 768px) { .hero-page { padding: var(--s8) 0 var(--s8); } }

/* ---------- people ---------- */
.people-grid { display: grid; gap: var(--s7); grid-template-columns: 1fr; }
@media (min-width: 900px) { .people-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6); } }

.person { display: grid; gap: var(--s5); align-content: start; }
.person-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: var(--s1); }
.person-role {
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber-dk);
  margin: 0 0 var(--s4);
}

/* ---------- course cards ---------- */
.course-card .course-meta { font-size: .9rem; color: var(--mid); margin-bottom: var(--s4); }
.course-card .price {
  font-size: .97rem; color: var(--ink);
  border-top: 1px solid var(--line); padding-top: var(--s3); margin-top: auto;
}
.course-card .price + .card-link { margin-top: var(--s3); }

/* ---------- event page ---------- */
.event-tagline {
  font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--amber); margin: calc(var(--s4) * -1) 0 var(--s6); line-height: 1.25;
}
.event-facts {
  display: grid; gap: var(--s5); margin: 0 0 var(--s6);
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: var(--s5);
}
@media (min-width: 620px) { .event-facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .event-facts { grid-template-columns: repeat(4, 1fr); } }
.event-facts dt {
  font-family: var(--sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--amber);
  margin-bottom: var(--s2);
}
.event-facts dd { margin: 0; color: var(--white); font-family: var(--serif); font-size: 1.05rem; line-height: 1.35; }

.sponsor-row { display: flex; flex-wrap: wrap; gap: var(--s4); margin: var(--s5) 0; }
.sponsor {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 120px; flex: 1 1 220px; padding: var(--s5);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink);
}
.sponsor img { max-height: 76px; max-width: 220px; width: auto; height: auto; object-fit: contain; }

/* ---------- conference programme ----------
   The numbered session list on /event/. Same counter idiom as .guide-list,
   but with a speaker line between title and description and roomier numerals:
   fourteen sessions need more air than a six-step guide. */
.agenda { list-style: none; padding: 0; margin: var(--s6) 0 0; counter-reset: ag; }
.agenda > li {
  position: relative; counter-increment: ag;
  padding: var(--s5) 0 var(--s5) 3.25rem;
  border-top: 1px solid var(--line);
}
.agenda > li:last-child { border-bottom: 1px solid var(--line); }
.agenda > li::before {
  content: counter(ag, decimal-leading-zero);
  position: absolute; left: 0; top: calc(var(--s5) + 3px);
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
  line-height: 1; color: var(--amber-dk); font-variant-numeric: tabular-nums;
}
.agenda h3 {
  font-family: var(--serif); font-size: clamp(1.06rem, 1.9vw, 1.28rem);
  line-height: 1.32; margin: 0 0 var(--s2);
}
.agenda .speaker {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber-dk);
  margin: 0 0 var(--s3);
}
.agenda .speaker .org { color: var(--soft); }
.agenda > li > p:last-child { margin: 0; color: var(--mid); font-size: .95rem; }
@media (min-width: 768px) {
  .agenda > li { padding-left: 4rem; }
  .agenda > li::before { font-size: 1.55rem; }
}
@media print { .agenda > li { break-inside: avoid; } }

/* Closes the list without numbering it — the programme is still growing, and
   "more to come" is not session fifteen. */
.agenda-more {
  margin: var(--s5) 0 0; padding: var(--s5); text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--white);
}
.agenda-more h3 { font-family: var(--serif); font-size: 1.08rem; margin: 0 0 var(--s2); }
.agenda-more p { margin: 0; color: var(--mid); font-size: .95rem; }

/* Host / moderator: one person, photograph beside the copy rather than the
   two-up .people-grid used elsewhere. */
.host-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; align-content: start; }
@media (min-width: 700px) {
  .host-grid { grid-template-columns: 260px 1fr; gap: var(--s6); align-items: start; }
}

/* ---------- contact layout ---------- */
.contact-grid { display: grid; gap: var(--s7); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.6fr 1fr; gap: var(--s8); } }
.contact-aside h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 700; margin-top: var(--s6); }
.contact-aside h2.mt-0 { margin-top: 0; }

/* ---------- two-column tick list ---------- */
@media (min-width: 760px) {
  .ticks.cols-2 { columns: 2; column-gap: var(--s7); }
  .ticks.cols-2 li { break-inside: avoid; }
}

/* ---------- /compare/ review copies ---------- */
.compare-banner {
  background: var(--rust); color: var(--white);
  padding: var(--s4) 0; font-size: .9rem;
}
.compare-banner strong, .compare-banner a { color: var(--white); }
.compare-banner a { text-decoration: underline; }

/* ============================================================================
   Photography
   ----------------------------------------------------------------------------
   Every photograph on this site sits in a named slot. The slot is marked in the
   markup with data-photo-slot="…" and documented in PHOTOS.md with its aspect
   ratio and alt text.

   Until a real image is dropped in, the placeholder carries .is-empty and is
   removed from the layout entirely — the page is designed to look finished
   with no photographs at all, and better with them. To add one, replace the
   placeholder div with the <picture> element shown in PHOTOS.md.
   ========================================================================= */

.is-empty { display: none !important; }

/* Shared image behaviour: never distort, never push the page wide, always
   reserve space so nothing reflows as images load. */
.photo, .person-photo, .card-photo, .course-photo { overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.photo img, .person-photo img, .card-photo img, .course-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}

/* Portrait / person. The portrait stacks above the biography rather than
   sitting beside it: the people grid is already two-up on desktop, and a side
   column inside that leaves the text far too narrow to read. */
.person-photo { aspect-ratio: 4 / 5; max-width: 260px; }

/* Inside a card, above the heading */
.card-photo, .course-photo { aspect-ratio: 16 / 10; margin: calc(var(--s5) * -1) calc(var(--s5) * -1) var(--s5); border-radius: var(--radius) var(--radius) 0 0; }

/* A standalone figure in the body copy */
figure.photo { margin: var(--s6) 0; border-radius: var(--radius); }
figure.photo img { aspect-ratio: 16 / 9; }
figure.photo figcaption { padding: 0 var(--s1); }

/* A full-width band of photograph between sections */
.photo-band { position: relative; min-height: 300px; display: grid; }
.photo-band img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.photo-band .photo-band-body {
  grid-area: 1 / 1; position: relative; align-self: end;
  padding: var(--s7) 0 var(--s5); color: var(--white);
  background: linear-gradient(to top, rgba(14,22,33,.88), rgba(14,22,33,0));
}
.photo-band h2, .photo-band p { color: var(--white); }

/* No text-shadow on hero type: Safari renders a blurred shadow on large text as
   solid boxes behind each line. Legibility comes from the gradient alone. */

/* Hero with a photograph behind it. Add .hero-photo to the <section> and set
   --hero-image on it. The gradient keeps the type legible on any photograph;
   do not remove it. */
.hero-photo {
  position: relative;
  background-image:
    linear-gradient(100deg, rgba(14,22,33,.94) 0%, rgba(14,22,33,.86) 34%, rgba(14,22,33,.55) 62%, rgba(14,22,33,.18) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}
@media (max-width: 700px) {
  .hero-photo {
    background-image:
      linear-gradient(to bottom, rgba(14,22,33,.82), rgba(14,22,33,.90)),
      var(--hero-image);
  }
}

/* ---------- utilities that replace inline style= (blocked by CSP style-src 'self') ---------- */
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.qa-first { border-top: 0; padding-top: 0; margin-top: 0; }
.footer-blurb { margin-top: 1rem; max-width: 38ch; }

/* ---------- brand logo (Ian's lockup replaces the placeholder mark) ---------- */
.brand img { display: block; height: 56px; width: auto; }
@media (min-width: 768px) { .brand img { height: 68px; } }
.nav { padding: var(--s2) 0; }
.brand .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-footer .brand img { height: 64px; }

/* ---------- credentials strip on /about/ ---------- */
.record-strip { display: grid; gap: var(--s4); grid-template-columns: repeat(2, 1fr); margin-top: var(--s5); }
@media (min-width: 700px) { .record-strip { grid-template-columns: repeat(4, 1fr); } }
.record { display: grid; gap: var(--s3); }
.record-photo { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.record-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.record figcaption, .record .cap { font-size: .82rem; color: var(--mid); line-height: 1.4; margin: 0; }

/* ---------- guides ---------- */
.guide-list { list-style: none; padding: 0; margin: 0; counter-reset: g; }
.guide-list > li { position: relative; padding: var(--s4) 0 var(--s4) 3rem; border-top: 1px solid var(--line); counter-increment: g; }
.guide-list > li:last-child { border-bottom: 1px solid var(--line); }
.guide-list > li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 0; top: var(--s4); font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--amber-dk); }
.guide-list strong { display: block; font-family: var(--serif); font-size: 1.08rem; margin-bottom: 3px; }
.guide-list ul { margin: var(--s2) 0 0; padding-left: 1.1rem; font-size: .93rem; color: var(--mid); }
.guide-list ul li { margin-bottom: 3px; }
@media print { .guide-list > li { break-inside: avoid; } }

/* Joe's portrait: a neutral silhouette until a photograph is supplied */
.person-silhouette svg { display: block; width: 100%; height: 100%; }
