/* ============================================================
   The Australian Equine Podiatry Conference 2027
   Brand stylesheet — colours taken from the conference flyer
   ============================================================ */

:root{
  /* Core palette — sampled from the conference flyer */
  --ink:        #04191e;   /* deepest ground: nav, footer */
  --ground:     #003e49;   /* page ground */
  --ground-2:   #01313a;   /* alternating band */
  --surface:    #002b35;   /* cards */
  --surface-hi: #0a4d58;   /* raised card / hover */
  --blue:       #175483;   /* flyer speaker pills */
  --blue-deep:  #103f64;
  --teal:       #3bafbc;   /* flyer accent band */
  --teal-bright:#7fd4df;   /* flyer headline teal */
  --bone:       #eef4f4;   /* primary text */
  --muted:      #a3c2c7;   /* secondary text */
  --dim:        #7fa3a9;   /* tertiary text */
  --line:       rgba(59,175,188,.24);
  --line-soft:  rgba(163,194,199,.16);
  --amber:      #e0a33f;   /* "to confirm" flag only */

  --shell: 1160px;
  --prose: 68ch;
  --r-sm: 6px;
  --r-md: 14px;
  --r-pill: 999px;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  color-scheme: dark;
}

*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }

html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

body{
  margin:0;
  background:var(--ground);
  color:var(--bone);
  font-family:var(--f-body);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

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

a{ color:var(--teal-bright); text-decoration-color:var(--line); text-underline-offset:3px; }
a:hover{ color:#a9e6ee; }

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

/* ---------- Type ---------- */

h1,h2,h3,h4,.display{
  font-family:var(--f-display);
  font-weight:800;
  line-height:1.05;
  text-wrap:balance;
  margin:0;
  letter-spacing:-.01em;
}
h1{ font-size:clamp(2.1rem, 5.2vw, 3.9rem); text-transform:uppercase; letter-spacing:-.015em; }
h2{ font-size:clamp(1.65rem, 3.3vw, 2.5rem); text-transform:uppercase; }
h3{ font-size:1.22rem; font-weight:700; letter-spacing:0; text-transform:none; }
h4{ font-size:1rem; font-weight:700; letter-spacing:0; text-transform:none; }

p{ margin:0 0 1.05em; }
p:last-child{ margin-bottom:0; }

.eyebrow{
  font-family:var(--f-display);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--teal);
  margin:0 0 .9rem;
}
.lede{
  font-size:1.16rem;
  line-height:1.6;
  color:#dbe9ea;
}
.prose{ max-width:var(--prose); }
.muted{ color:var(--muted); }
.center{ text-align:center; }
.center .prose{ margin-inline:auto; }

/* Section heading with the flyer's teal shoulder rule */
.rule-head{ display:flex; flex-direction:column; gap:.75rem; }
.rule-head::after{
  content:"";
  width:64px; height:3px;
  background:var(--teal);
  border-radius:2px;
}
.center .rule-head{ align-items:center; }

/* "To confirm" flag for placeholder content */
.tbc{
  display:inline-block;
  font-family:var(--f-display);
  font-size:.62rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--amber);
  border:1px dashed rgba(224,163,63,.55);
  border-radius:var(--r-sm);
  padding:.15em .5em;
  vertical-align:middle;
  white-space:nowrap;
}
.tbc-block{
  border:1px dashed rgba(224,163,63,.4);
  border-radius:var(--r-md);
  padding:1.4rem 1.5rem;
  background:rgba(224,163,63,.05);
}

/* ---------- Layout ---------- */

.shell{ width:min(100% - 2.5rem, var(--shell)); margin-inline:auto; }
.section{ padding:clamp(3.2rem, 7vw, 5.6rem) 0; }
.section--tight{ padding:clamp(2.4rem, 5vw, 3.6rem) 0; }
.section--alt{ background:var(--ground-2); }
.section--ink{ background:var(--ink); }
.stack{ display:flex; flex-direction:column; gap:1.6rem; }
.stack-sm{ display:flex; flex-direction:column; gap:.8rem; }
.grid{ display:grid; gap:1.4rem; }
@media (min-width:720px){
  .g-2{ grid-template-columns:repeat(2,1fr); }
  .g-3{ grid-template-columns:repeat(3,1fr); }
  .g-4{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width:1000px){
  .g-4{ grid-template-columns:repeat(4,1fr); }
}

/* ---------- Buttons ---------- */

.btn{
  display:inline-flex; align-items:center; gap:.55rem;
  font-family:var(--f-display); font-weight:700;
  font-size:.9rem; letter-spacing:.06em; text-transform:uppercase;
  padding:.85rem 1.5rem;
  border-radius:var(--r-pill);
  border:1.5px solid transparent;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn--primary{ background:var(--teal); color:var(--ink); }
.btn--primary:hover{ background:var(--teal-bright); color:var(--ink); }
.btn--ghost{ border-color:rgba(163,194,199,.45); color:var(--bone); background:transparent; }
.btn--ghost:hover{ border-color:var(--teal); color:var(--teal-bright); background:rgba(59,175,188,.08); }
.btn-row{ display:flex; flex-wrap:wrap; gap:.85rem; }

/* ---------- Site header ---------- */

.site-head{
  position:sticky; top:0; z-index:40;
  background:rgba(4,25,30,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.head-in{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; padding:.7rem 0;
}
.brand{
  display:flex; align-items:center; gap:.7rem;
  text-decoration:none; color:var(--bone);
}
.brand-mark{
  width:38px; height:38px; flex:none;
  border-radius:50%;
  border:2px solid var(--teal);
  display:grid; place-items:center;
  font-family:var(--f-display); font-weight:800; font-size:.72rem;
  letter-spacing:.02em; color:var(--teal-bright);
}
.brand-txt{ font-family:var(--f-display); line-height:1.15; }
.brand-txt b{ display:block; font-size:.86rem; font-weight:800; letter-spacing:.02em; text-transform:uppercase; }
.brand-txt span{ display:block; font-size:.66rem; letter-spacing:.16em; text-transform:uppercase; color:var(--teal); }

.nav{ display:flex; align-items:center; gap:.15rem; }
.nav a{
  font-family:var(--f-display); font-size:.79rem; font-weight:600;
  letter-spacing:.03em; text-transform:uppercase;
  color:var(--muted); text-decoration:none;
  padding:.5rem .5rem; border-radius:var(--r-sm);
}
.nav a:hover{ color:var(--bone); background:rgba(59,175,188,.1); }
.nav a[aria-current="page"]{ color:var(--teal-bright); box-shadow:inset 0 -2px 0 var(--teal); }
.nav .btn{
  margin-left:.7rem; padding:.62rem 1.2rem;
  font-size:.78rem; font-weight:800; letter-spacing:.08em;
  background:var(--teal-bright); color:var(--ink);
  box-shadow:0 0 0 4px rgba(127,212,223,.15);
}
.nav .btn:hover{
  background:#b6ecf3; color:var(--ink);
  box-shadow:0 0 0 6px rgba(127,212,223,.24);
}

.nav-toggle{
  display:none;
  background:transparent; border:1.5px solid rgba(163,194,199,.4);
  color:var(--bone); border-radius:var(--r-sm);
  font-family:var(--f-display); font-size:.78rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
  padding:.55rem .8rem; cursor:pointer;
}
@media (max-width:960px){
  .nav-toggle{ display:block; }
  .nav{
    position:absolute; left:0; right:0; top:100%;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--ink);
    border-bottom:1px solid var(--line);
    padding:.6rem 1.25rem 1.1rem;
  }
  .nav a{ padding:.8rem .2rem; border-bottom:1px solid var(--line-soft); }
  .nav .btn{ margin:.9rem 0 0; justify-content:center; }
  .head-in{ position:relative; }
}

/* ---------- Hero ---------- */

.hero{ position:relative; overflow:hidden; background:var(--ink); }
.hero-img{
  position:absolute; inset:0;
  background-size:cover; background-position:52% 30%;
  opacity:.4;
}
.hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(105deg, rgba(4,25,30,.96) 0%, rgba(0,62,73,.86) 46%, rgba(0,43,53,.6) 100%);
}
.hero-in{
  position:relative; z-index:2;
  padding:clamp(3.4rem, 8vw, 6.2rem) 0 clamp(3rem, 6vw, 4.6rem);
  max-width:53rem;
  text-align:center;
}
.hero-in .btn-row{ justify-content:center; }
.hero h1 span{ display:block; color:var(--teal-bright); }
.hero-sub{
  font-family:var(--f-display); font-weight:600;
  font-size:clamp(1rem,2.1vw,1.28rem);
  letter-spacing:.01em; line-height:1.35;
  color:#d7e8ea; margin:1.2rem auto 0; max-width:40rem; text-wrap:balance;
}
.hero-note{
  font-family:var(--f-display); font-weight:600;
  font-size:clamp(.98rem, 1.7vw, 1.12rem); line-height:1.5;
  color:var(--teal-bright); text-wrap:balance;
  max-width:36rem; margin:1.1rem auto 2.1rem;
}

/* Page banner (interior pages) */
.banner{ background:var(--ink); border-bottom:1px solid var(--line); }
.banner-in{ padding:clamp(2.4rem,5vw,3.6rem) 0 clamp(2rem,4vw,2.8rem); max-width:46rem; }
.banner h1{ font-size:clamp(1.9rem,4.4vw,3rem); }
.banner .lede{ margin-top:1rem; }

/* ---------- Fact strip ---------- */

.facts{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.facts-in{
  display:grid; gap:0;
  grid-template-columns:1fr;
}
@media (min-width:720px){ .facts-in{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .facts-in{ grid-template-columns:repeat(4,1fr); } }
.fact{ padding:1.65rem 1.4rem; border-bottom:1px solid var(--line-soft); }
.fact:last-child{ border-bottom:0; }
@media (min-width:1000px){
  .fact{ border-bottom:0; border-left:1px solid var(--line-soft); }
  .fact:first-child{ border-left:0; padding-left:0; }
}
.fact dt{
  font-family:var(--f-display); font-size:.95rem; font-weight:700;
  letter-spacing:.11em; text-transform:uppercase; color:var(--teal);
  margin-bottom:.5rem; line-height:1.2;
}
.fact dd{ margin:0; font-family:var(--f-display); font-weight:600; font-size:1.1rem; line-height:1.35; color:var(--bone); }
.fact dd small{ display:block; font-weight:400; font-size:.86rem; color:var(--dim); margin-top:.25rem; letter-spacing:.01em; }
.fact-val{ display:block; }
@media (min-width:720px){
  /* reserve enough lines that every supporting line starts on the same baseline,
     at every width where the boxes sit side by side */
  .fact-val{ min-height:4.05em; }
}
@media (min-width:1000px) and (max-width:1139px){
  /* four narrow columns: the longest value needs a fourth line here */
  .fact-val{ min-height:5.4em; }
}

/* ---------- Cards ---------- */

.card{
  background:var(--surface);
  border:1px solid var(--line-soft);
  border-radius:var(--r-md);
  padding:1.5rem 1.5rem 1.6rem;
  display:flex; flex-direction:column; gap:.6rem;
}
.card h3{ color:var(--bone); }
.card p{ color:var(--muted); font-size:.98rem; }
.card--reason{ border-top:3px solid var(--teal); }

/* Speaker pill — echoes the flyer's blue pill + teal crescent */
.pill-list{ display:flex; flex-direction:column; gap:1.1rem; }
.pill{
  position:relative;
  display:flex; align-items:center; gap:1.1rem;
  background:var(--blue);
  border-radius:var(--r-pill);
  padding:.7rem 1.8rem .7rem .7rem;
  text-decoration:none; color:inherit;
  border:1px solid rgba(127,212,223,.18);
  transition:background-color .2s ease, transform .2s ease;
}
.pill::before{
  content:""; position:absolute;
  left:-10px; top:-6px; bottom:-6px; width:74px;
  background:var(--teal);
  border-radius:var(--r-pill);
  z-index:0;
}
.pill:hover{ background:var(--blue-deep); transform:translateX(3px); }
.pill img{
  position:relative; z-index:1;
  width:86px; height:86px; flex:none;
  border-radius:50%; object-fit:cover;
  border:3px solid var(--ground);
}
.pill-txt{ position:relative; z-index:1; }
.pill-txt b{
  display:block; font-family:var(--f-display); font-weight:800;
  font-size:1.05rem; letter-spacing:.02em; text-transform:uppercase; color:#fff;
}
.pill-txt i{
  display:block; font-style:normal; font-family:var(--f-display);
  font-weight:600; font-size:.9rem; color:var(--teal-bright); margin-top:.1rem;
}
.pill-txt span{
  display:block; font-family:var(--f-display); font-size:.72rem;
  letter-spacing:.12em; text-transform:uppercase; color:#b9d4dd; margin-top:.3rem;
}

/* Full speaker profile */
.speaker{
  display:grid; gap:1.8rem;
  padding-top:clamp(2rem,4vw,3rem);
  border-top:1px solid var(--line-soft);
}
.speaker:first-of-type{ border-top:0; padding-top:0; }
@media (min-width:860px){
  .speaker{ grid-template-columns:300px 1fr; gap:2.6rem; align-items:start; }
}
.speaker-photo{ position:relative; }
.speaker-photo img{
  width:100%; border-radius:var(--r-md);
  border:1px solid var(--line);
}
.speaker-photo::after{
  content:""; position:absolute; left:-10px; bottom:-10px;
  width:88px; height:5px; background:var(--teal); border-radius:3px;
}
.speaker-name{ font-size:clamp(1.6rem,3vw,2.1rem); text-transform:uppercase; }
.speaker-cred{
  font-family:var(--f-display); font-weight:700; font-size:.95rem;
  color:var(--teal-bright); letter-spacing:.04em; margin:.4rem 0 .1rem;
}
.speaker-org{
  font-family:var(--f-display); font-size:.75rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--dim);
}
.tag-row{ display:flex; flex-wrap:wrap; gap:.45rem; margin-top:1.1rem; }
.tag{
  font-family:var(--f-display); font-size:.7rem; font-weight:600;
  letter-spacing:.1em; text-transform:uppercase;
  color:var(--teal-bright); background:rgba(59,175,188,.12);
  border:1px solid var(--line); border-radius:var(--r-pill);
  padding:.32rem .7rem;
}

/* ---------- Programme themes ---------- */

.themes{ display:grid; gap:1.2rem; counter-reset:theme; }
@media (min-width:800px){ .themes{ grid-template-columns:repeat(2,1fr); } }
.theme{
  background:var(--surface);
  border:1px solid var(--line-soft);
  border-left:3px solid var(--teal);
  border-radius:0 var(--r-md) var(--r-md) 0;
  padding:1.5rem 1.6rem;
  display:flex; flex-direction:column; gap:.6rem;
}
.theme h3{ font-family:var(--f-display); font-size:1.15rem; font-weight:800; color:var(--teal-bright); text-transform:none; }
.theme p{ color:var(--muted); font-size:.97rem; margin:0; }

/* Day schedule */
.days{ display:grid; gap:1.2rem; }
@media (min-width:860px){ .days{ grid-template-columns:repeat(3,1fr); } }
.day{
  background:var(--surface); border:1px solid var(--line-soft);
  border-radius:var(--r-md); overflow:hidden;
  display:flex; flex-direction:column;
}
.day-head{ background:var(--blue); padding:1rem 1.3rem; }
.day-head b{
  display:block; font-family:var(--f-display); font-weight:800;
  font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--teal-bright);
}
.day-head span{ display:block; font-family:var(--f-display); font-weight:700; font-size:1.05rem; color:#fff; margin-top:.15rem; }
.day-body{ padding:1.2rem 1.3rem 1.4rem; }
.day-body ul{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:.7rem; }
.day-body li{ display:flex; gap:.85rem; font-size:.95rem; color:var(--muted); }
.day-body li b{
  flex:none; width:5.2rem; font-family:var(--f-display); font-weight:700;
  font-size:.82rem; color:var(--teal); font-variant-numeric:tabular-nums; padding-top:.1rem;
}

/* ---------- Tables ---------- */

.table-wrap{ overflow-x:auto; border:1px solid var(--line-soft); border-radius:var(--r-md); }
table{ width:100%; border-collapse:collapse; min-width:520px; font-size:.95rem; }
thead th{
  background:var(--surface);
  font-family:var(--f-display); font-size:.7rem; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; color:var(--teal);
  text-align:left; padding:.85rem 1rem; border-bottom:1px solid var(--line);
}
tbody td{ padding:.85rem 1rem; border-bottom:1px solid var(--line-soft); color:var(--muted); vertical-align:top; }
tbody tr:last-child td{ border-bottom:0; }
tbody td:first-child{ color:var(--bone); font-family:var(--f-display); font-weight:600; }
td.num{ font-variant-numeric:tabular-nums; white-space:nowrap; }

/* ---------- Media band ---------- */

.media{ display:grid; gap:1.8rem; align-items:center; }
@media (min-width:880px){
  .media{ grid-template-columns:1fr 1fr; gap:3rem; }
  .media--flip .media-txt{ order:2; }
}
.media img{ border-radius:var(--r-md); border:1px solid var(--line); }
.media .figure img{ width:100%; max-height:34rem; object-fit:cover; object-position:center 15%; }
.figure{ display:flex; flex-direction:column; gap:.6rem; }
.figure figcaption{
  font-family:var(--f-display); font-size:.74rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--dim);
}

/* ---------- Lists ---------- */

.ticks{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.85rem; }
.ticks li{ position:relative; padding-left:1.7rem; color:var(--muted); }
.ticks li::before{
  content:""; position:absolute; left:0; top:.62rem;
  width:9px; height:9px; border-radius:50%;
  background:var(--teal);
}
.ticks li b{ color:var(--bone); }

/* ---------- Sponsorship packages ---------- */

.pkg-group{ display:flex; flex-direction:column; gap:1.2rem; }
.pkg-grid{ display:grid; gap:1.2rem; }
@media (min-width:820px){ .pkg-grid{ grid-template-columns:repeat(2,1fr); } }

.pkg{
  background:var(--surface);
  border:1px solid var(--line-soft);
  border-radius:var(--r-md);
  padding:1.5rem 1.6rem 1.7rem;
  display:flex; flex-direction:column; gap:.5rem;
}
.pkg--lead{ border-top:3px solid var(--teal); }
.pkg-head{
  display:flex; flex-wrap:wrap; align-items:baseline;
  justify-content:space-between; gap:.4rem 1rem;
}
.pkg-head h3{ margin:0; font-size:1.15rem; color:var(--bone); }
.pkg-price{
  font-family:var(--f-display); font-weight:700; font-size:1.05rem;
  color:var(--teal-bright); white-space:nowrap; font-variant-numeric:tabular-nums;
}
.pkg-sub{
  font-family:var(--f-display); font-size:.7rem; font-weight:600;
  letter-spacing:.13em; text-transform:uppercase; color:var(--dim);
  margin:0 0 .5rem; padding-bottom:.8rem;
  border-bottom:1px solid var(--line-soft);
}
.pkg ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.6rem; }
.pkg li{ position:relative; padding-left:1.25rem; color:var(--muted); font-size:.97rem; line-height:1.5; }
.pkg li::before{
  content:""; position:absolute; left:0; top:.58rem;
  width:6px; height:6px; border-radius:50%; background:var(--teal);
}
.pkg li b{ color:var(--bone); font-weight:600; }

/* ---------- Forms ---------- */

.form{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-md);
  padding:clamp(1.4rem,3vw,2.2rem);
  display:flex; flex-direction:column; gap:1.1rem;
}
.field{ display:flex; flex-direction:column; gap:.4rem; }
.field label{
  font-family:var(--f-display); font-size:.74rem; font-weight:700;
  letter-spacing:.13em; text-transform:uppercase; color:var(--teal);
}
.field input, .field select, .field textarea{
  font-family:var(--f-body); font-size:1rem; color:var(--bone);
  background:var(--ink);
  border:1px solid rgba(163,194,199,.28);
  border-radius:var(--r-sm);
  padding:.72rem .85rem;
  width:100%;
}
.field textarea{ min-height:120px; resize:vertical; }
.field input::placeholder, .field textarea::placeholder{ color:#6b8d93; }
.field select{ appearance:none; background-image:linear-gradient(45deg,transparent 50%,var(--teal) 50%),linear-gradient(135deg,var(--teal) 50%,transparent 50%); background-position:calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size:6px 6px, 6px 6px; background-repeat:no-repeat; }
.field-row{ display:grid; gap:1.1rem; }
@media (min-width:640px){ .field-row{ grid-template-columns:1fr 1fr; } }
.form-note{ font-size:.88rem; color:var(--dim); }
.form-status{
  border-radius:var(--r-sm); padding:.85rem 1rem;
  background:rgba(59,175,188,.12); border:1px solid var(--line);
  color:var(--teal-bright); font-size:.92rem;
}

/* ---------- CTA band ---------- */

.cta{
  background:linear-gradient(120deg,var(--blue-deep),var(--blue) 60%, #1b6c9e);
  border-top:3px solid var(--teal);
}
.cta-in{
  padding:clamp(2.6rem,6vw,4rem) 0;
  display:flex; flex-direction:column; gap:1.4rem;
  align-items:flex-start;
}
@media (min-width:880px){
  .cta-in{ flex-direction:row; align-items:center; justify-content:space-between; gap:2.5rem; }
}
.cta h2{ color:#fff; }
.cta p{ color:#cfe6ee; max-width:46ch; margin-top:.7rem; }

/* ---------- Contact blocks ---------- */

.contact-card{
  background:var(--surface); border:1px solid var(--line-soft);
  border-radius:var(--r-md); padding:1.5rem;
  display:flex; flex-direction:column; gap:.45rem;
}
.contact-card dt{
  font-family:var(--f-display); font-size:.68rem; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; color:var(--teal);
}
.contact-card dd{ margin:0 0 .8rem; font-size:1rem; color:var(--bone); }
.contact-card dd:last-child{ margin-bottom:0; }

/* ---------- Footer ---------- */

.site-foot{ background:var(--ink); border-top:1px solid var(--line); }
.foot-in{
  padding:3rem 0 1.5rem;
  display:grid; gap:2rem;
}
@media (min-width:820px){ .foot-in{ grid-template-columns:1.4fr 1fr 1fr; gap:3rem; } }
.foot-in h4{
  font-family:var(--f-display); font-size:.7rem; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; color:var(--teal); margin-bottom:.9rem;
}
.foot-links{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.55rem; }
.foot-links a{ color:var(--muted); text-decoration:none; font-size:.95rem; }
.foot-links a:hover{ color:var(--teal-bright); }
.foot-bar{
  border-top:1px solid var(--line-soft);
  padding:1.1rem 0 2rem;
  display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; justify-content:space-between;
  font-size:.82rem; color:var(--dim);
}
.foot-blurb{ color:var(--muted); font-size:.95rem; max-width:38ch; }

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


/* ---------- Media block: image fills the column ---------- */
/* Where the text column is taller than the picture, stretch the figure to the
   full row height so the image fills its half instead of floating in dead space. */
.media--fill .figure{ margin:0; }
@media (min-width:880px){
  .media--fill{ align-items:stretch; }
  .media--fill .figure img{
    flex:1 1 auto; min-height:0; height:auto; max-height:none;
    object-fit:cover; object-position:center 35%;
  }
}

/* ---------- Spacing inside gapped containers ---------- */
/* These containers space their children with `gap`. A child's own vertical
   margin is added on top of that and doubles the gap, so clear both.
   Kept last in the file so it wins over the component rules above. */
.stack > *, .stack-sm > *, .rule-head > *, .card > *, .theme > *,
.pkg > *, .pkg-group > *, .form > *, .figure > *, .grid > *{ margin-top:0; margin-bottom:0; }