/* Idalou Co-op Gin. Written for this site. Ledger chassis: rules, row figures, 0 radius. */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.62;
  font-synthesis-weight: none;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }

::selection { background: var(--red); color: #fff; }
* { scrollbar-color: var(--rule-strong) var(--paper-2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border: 3px solid var(--paper-2); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.skip {
  position: absolute; left: var(--s-2); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; font-weight: 600; text-decoration: none;
  transition: top var(--t-fast) var(--ease);
}
.skip:focus { top: var(--s-2); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.012em; }
h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.28; }
p { margin: 0 0 var(--s-2); max-width: var(--measure); }
.lead { font-size: var(--t-lead); color: var(--ink-2); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-small); }

a { color: var(--red-text); text-underline-offset: 3px; }

/* text link with an underline that grows from the left */
.tlink {
  position: relative; text-decoration: none; font-weight: 600;
  color: var(--red-text); display: inline-block; padding-bottom: 2px;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.tlink:hover::after, .tlink:focus-visible::after { transform: scaleX(1); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--s-3), var(--wrap)); margin-inline: auto; }
.wrap-n { width: min(100% - 2 * var(--s-3), var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--s-7); }
.section--tight { padding-block: var(--s-6); }
.section--tall { padding-block: var(--s-8); }

/* Ambient A: faint ledger-paper ruling behind light sections (static, 3%) */
.ruled {
  position: relative;
  background-color: var(--paper);
}
.ruled::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 31px,
    rgba(28, 26, 21, 0.03) 31px 32px
  );
}
.ruled > * { position: relative; z-index: 1; }
.inset { background-color: var(--paper-2); }
.inset.ruled::before { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(28,26,21,0.035) 31px 32px); }

/* ---------- Header: the co-op ledger line ---------- */
.mast {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1.5px solid var(--rule-strong);
}
.mast__in {
  width: min(100% - 2 * var(--s-3), var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  align-items: end;
  gap: var(--s-2);
  padding-bottom: 10px; padding-top: 18px;
}
/* the ledger line the name is written ON */
.mast__rulehead {
  font-family: var(--f-body); font-size: var(--t-fig); font-weight: 600;
  letter-spacing: 0.08em; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  padding-bottom: 6px; border-bottom: 1px solid var(--rule);
}
.mast__name {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.12rem, 0.86rem + 0.95vw, 1.6rem);
  line-height: 1; color: var(--ink); text-decoration: none;
  padding-bottom: 6px; border-bottom: 1px solid var(--rule);
  display: block; letter-spacing: -0.01em;
}
.mast__name span { color: var(--ink-2); font-weight: 600; font-size: max(0.72rem, 0.62em); margin-left: 0.45em; white-space: nowrap; }
.mast__nav { display: flex; gap: var(--s-3); align-items: flex-end; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.mast__nav a {
  display: flex; align-items: baseline; gap: 7px;
  text-decoration: none; color: var(--ink); font-size: var(--t-small); font-weight: 500;
  padding: 4px 2px; position: relative;
  transition: color var(--t-fast) var(--ease);
}
.mast__nav a .fig {
  font-size: 0.72rem; color: var(--ink-2); font-variant-numeric: tabular-nums;
  transition: color var(--t-fast) var(--ease);
}
.mast__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.mast__nav a:hover::after, .mast__nav a:focus-visible::after { transform: scaleX(1); }
.mast__nav a:hover, .mast__nav a:hover .fig { color: var(--red-text); }
.mast__nav a[aria-current="page"] { color: var(--red-text); font-weight: 600; }
.mast__nav a[aria-current="page"]::after { transform: scaleX(1); }

.navtoggle {
  display: none; align-items: center; gap: 9px;
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  font: inherit; font-size: var(--t-small); font-weight: 600; color: var(--ink);
  padding: 4px 2px 6px; cursor: pointer;
}
.navtoggle svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.6; fill: none; }

/* ---------- Buttons: 0 radius, one filled form only ---------- */
.btn {
  display: inline-block; border: 0; border-radius: 0; cursor: pointer;
  background: var(--red); color: #fff;
  font-family: var(--f-body); font-size: 1rem; font-weight: 600;
  padding: 15px 30px; text-decoration: none; min-height: 48px;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: var(--ink-2); cursor: not-allowed; transform: none; }
.calltext {
  display: block; margin-top: 20px;
  font-size: var(--t-lead); font-weight: 600; color: var(--ink);
  text-decoration: none; font-variant-numeric: tabular-nums;
  border-bottom: 1.5px solid var(--rule); padding-bottom: 3px;
  width: max-content; max-width: 100%;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.calltext:hover { color: var(--red-text); border-color: var(--red); }
.calltext .lbl { display: block; font-size: var(--t-fig); font-weight: 500; color: var(--ink-2); letter-spacing: 0.06em; margin-bottom: 2px; border: 0; }

/* ---------- Hero: ledger rule across the image ---------- */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(24,22,17,0.86) 0%, rgba(24,22,17,0.66) 46%, rgba(24,22,17,0.30) 100%);
}
.hero__in { position: relative; z-index: 2; padding-block: clamp(72px, 11vw, 148px); }
.hero h1 { color: var(--paper); max-width: 17ch; }
/* the rule that continues across the image, the h1 sits ON it */
.hero__rule { display: block; width: 100%; height: 2px; margin-bottom: var(--s-3); overflow: visible; }
.hero__rule line { stroke: var(--dust); stroke-width: 2; }
.hero__meta {
  margin-top: var(--s-4); padding-top: var(--s-2);
  border-top: 1px solid var(--rule-on-dark);
  color: var(--ink-2-on-dark); font-size: var(--t-small); max-width: 46ch;
}
.hero__meta strong { color: var(--paper); font-weight: 600; }
.hero p.lead { color: var(--ink-2-on-dark); max-width: 44ch; margin-top: var(--s-3); }
.hero .btn { margin-top: var(--s-4); }
.hero .calltext { color: var(--paper); border-color: var(--rule-on-dark-strong); }
.hero .calltext:hover { color: var(--red-on-dark); border-color: var(--red-on-dark); }
.hero .calltext .lbl { color: var(--ink-2-on-dark); }

/* Ambient B: slow warm dust drift, hero only, gradient translate (no particles) */
.hero__dust {
  position: absolute; inset: -12% -60%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
     rgba(196,160,92,0) 0%,
     rgba(196,160,92,0.10) 34%,
     rgba(196,160,92,0.17) 50%,
     rgba(196,160,92,0.10) 66%,
     rgba(196,160,92,0) 100%);
  animation: dust 26s linear infinite;
  will-change: transform;
}
@keyframes dust {
  from { transform: translate3d(-32%, 0, 0); }
  to   { transform: translate3d(32%, 0, 0); }
}

/* inner page hero, shorter */
.hero--page .hero__in { padding-block: clamp(56px, 8vw, 104px); }
.hero--page h1 { max-width: 20ch; }

/* ---------- Ledger rows: the recurring device ---------- */
.ledger { border-top: 1.5px solid var(--rule-strong); }
.lrow {
  display: grid; grid-template-columns: 3.1rem 1fr;
  gap: var(--s-3); align-items: start;
  padding: var(--s-3) var(--s-2) var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  transition: background var(--t-fast) var(--ease);
}
.lrow:nth-child(even) { background: var(--row-stripe); }
.lrow:hover { background: var(--row-hover); }
.lrow:hover .lrow__fig { color: var(--red-text); }
.lrow__fig {
  font-size: var(--t-fig); font-weight: 600; color: var(--ink-2);
  font-variant-numeric: tabular-nums; letter-spacing: 0.06em;
  padding-top: 6px; padding-left: var(--s-2);
  transition: color var(--t-fast) var(--ease);
}
.lrow__body h3 { margin-bottom: 5px; }
.lrow__body p { margin-bottom: 0; font-size: var(--t-small); color: var(--ink-2); max-width: 52ch; }
.lrow__body p + p { margin-top: 6px; }

/* a compact ruled definition list, used for office lines */
.dlrows { border-top: 1.5px solid var(--rule-strong); margin: 0; }
.dlrows > div {
  display: grid; grid-template-columns: 8.6rem 1fr; gap: var(--s-2);
  padding: 13px var(--s-2) 13px 0; border-bottom: 1px solid var(--rule);
  transition: background var(--t-fast) var(--ease);
}
.dlrows > div:nth-child(even) { background: var(--row-stripe); }
.dlrows > div:hover { background: var(--row-hover); }
.dlrows dt { font-size: var(--t-small); color: var(--ink-2); padding-left: var(--s-2); }
.dlrows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.dlrows dd a { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--rule); padding-bottom: 1px; transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.dlrows dd a:hover { color: var(--red-text); border-color: var(--red); }
.dlrows dd .note { display: block; font-weight: 400; font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: normal; margin-top: 2px; }

/* ---------- Section heads ---------- */
.shead { margin-bottom: var(--s-4); }
.shead h2 { max-width: 20ch; }
.shead p { margin-top: var(--s-2); }
.shead--rule { border-top: 1.5px solid var(--rule-strong); padding-top: var(--s-3); }

/* one line of running facts on a rule, never a stat strip */
.factline {
  border-top: 1.5px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-3) 0;
  font-size: var(--t-lead);
  max-width: 62ch;
}
.factline .tnum { font-weight: 600; }

/* ---------- Season rail (signature) ---------- */
.rail { position: relative; }
.rail__scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: var(--s-2); }
.rail__svg { min-width: 940px; width: 100%; height: auto; display: block; }
.rail__svg .rail-line { stroke: var(--ink); stroke-width: 2; fill: none; }
.rail__svg .tick { stroke: var(--rule-strong); stroke-width: 1.5; }
.rail__svg .mark { fill: var(--red); }
.rail__svg .e-title { font-family: var(--f-display); font-size: 17px; font-weight: 700; fill: var(--ink); }
.rail__svg .e-when { font-family: var(--f-body); font-size: 12.5px; font-weight: 600; fill: var(--red-text); }
.rail__svg .e-note { font-family: var(--f-body); font-size: 12px; fill: var(--ink-2); }
.rail__svg .e-fig { font-family: var(--f-body); font-size: 10.5px; font-weight: 600; fill: var(--ink-2); letter-spacing: 0.08em; }
.rail__svg .sidelab { font-family: var(--f-body); font-size: 10.5px; font-weight: 600; fill: var(--ink-2); letter-spacing: 0.09em; }
.rail__hint { font-size: var(--t-small); color: var(--ink-2); margin-top: var(--s-2); }
.rail__src { font-size: var(--t-small); color: var(--ink-2); margin-top: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--rule); max-width: 66ch; }

/* ---------- Divisions: unequal ledger blocks, not identical cards ---------- */
.divs { display: grid; gap: var(--s-5); grid-template-columns: 1.62fr 1fr; align-items: start; }
.divblock { border-top: 1.5px solid var(--rule-strong); padding-top: var(--s-3); }
.divblock--narrow { border-top-width: 1px; }
.divblock h3 { margin-bottom: var(--s-1); }
.divblock p { font-size: var(--t-small); color: var(--ink-2); }
.divblock .fig { font-size: var(--t-fig); color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; display: block; margin-bottom: 10px; }
.divblock__photo { margin: var(--s-3) 0; overflow: hidden; }
.divblock__photo img { width: 100%; transition: transform var(--t-slow) var(--ease); }
.divblock:hover .divblock__photo img { transform: scale(1.025); }

/* ---------- Photo figures ---------- */
.fig-photo { margin: 0; }
.fig-photo > div { overflow: hidden; }
.fig-photo img { width: 100%; transition: transform var(--t-slow) var(--ease); }
.fig-photo:hover img { transform: scale(1.025); }
.fig-photo figcaption {
  font-size: var(--t-small); color: var(--ink-2); padding-top: 10px; margin-top: 10px;
  border-top: 1px solid var(--rule);
}
.photopair { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
.photopair--offset { grid-template-columns: 1.25fr 1fr; align-items: end; }


/* a fixed-ratio photo frame so mismatched source shapes still pair cleanly */
.fig-photo .ratio { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.fig-photo .ratio img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* a standalone tall photo, capped so it does not swallow the page */
.fig-photo--capped { max-width: 620px; margin-top: var(--s-4); }
.fig-photo--capped > div { max-height: 560px; overflow: hidden; }
.fig-photo--capped img { width: 100%; height: 560px; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 760px) {
  .fig-photo--capped img { height: 380px; }
}

/* ---------- Dark band (fuel and oil) ---------- */
.band-dark { background: var(--dark); color: var(--ink-on-dark); }
.band-dark h2, .band-dark h3 { color: var(--paper); }
.band-dark p { color: var(--ink-2-on-dark); }
.band-dark .ledger { border-top-color: var(--rule-on-dark-strong); }
.band-dark .lrow { border-bottom-color: var(--rule-on-dark); }
.band-dark .lrow:nth-child(even) { background: rgba(244,241,233,0.035); }
.band-dark .lrow:hover { background: rgba(224,138,120,0.10); }
.band-dark .lrow__fig { color: var(--ink-2-on-dark); }
.band-dark .lrow:hover .lrow__fig { color: var(--red-on-dark); }
.band-dark .lrow__body p { color: var(--ink-2-on-dark); }
.band-dark .factline { border-top-color: var(--rule-on-dark-strong); border-bottom-color: var(--rule-on-dark); }
.band-dark .tlink { color: var(--red-on-dark); }
.band-dark .calltext { color: var(--paper); border-color: var(--rule-on-dark-strong); }
.band-dark .calltext:hover { color: var(--red-on-dark); border-color: var(--red-on-dark); }
.band-dark .calltext .lbl { color: var(--ink-2-on-dark); }
.band-dark .fig-photo figcaption { color: var(--ink-2-on-dark); border-top-color: var(--rule-on-dark); }

/* ---------- Call band ---------- */
.callband { background: var(--red); color: #fff; padding-block: var(--s-6); }
.callband h2 { color: #fff; max-width: 18ch; }
.callband p { color: rgba(255,255,255,0.88); }
.callband__num {
  display: inline-block; margin-top: var(--s-3);
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem);
  color: #fff; text-decoration: none; font-variant-numeric: tabular-nums;
  border-bottom: 2px solid rgba(255,255,255,0.45); padding-bottom: 4px; line-height: 1.15;
  transition: border-color var(--t-fast) var(--ease);
}
.callband__num:hover { border-color: #fff; }
.callband__note { margin-top: var(--s-3); font-size: var(--t-small); }

/* ---------- Form ---------- */
.form { border-top: 1.5px solid var(--rule-strong); padding-top: var(--s-3); }
.field { margin-bottom: var(--s-3); }
.field label { display: block; font-size: var(--t-small); font-weight: 600; margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--rule-strong); border-radius: 0;
  background: var(--paper); color: var(--ink);
  font: inherit; padding: 12px 13px; min-height: 48px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red);
}
.field input:invalid:not(:placeholder-shown) { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formnote { margin-top: var(--s-2); padding: var(--s-2) var(--s-3); border-left: 3px solid var(--red); background: var(--paper-2); font-size: var(--t-small); }
.formnote[hidden] { display: none; }
.formnote a { font-weight: 600; }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-3); }

/* ---------- Map ---------- */
.mapwrap { border: 1px solid var(--rule-strong); }
#map { height: 420px; width: 100%; background: var(--paper-2); }
.leaflet-container { font-family: var(--f-body); }
.pin {
  width: 17px; height: 17px; background: var(--red);
  border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--rule-strong);
}
.pin--town { width: 11px; height: 11px; background: var(--ink); }
.leaflet-popup-content-wrapper { border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: 0 2px 10px rgba(28,26,21,0.18); }
.leaflet-popup-content { margin: 12px 14px; font-size: var(--t-small); line-height: 1.5; }
.leaflet-popup-content b { font-family: var(--f-display); font-size: 1.03rem; }
.leaflet-popup-tip { background: var(--paper); }
.mapgrid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s-5); align-items: start; }
.mintable { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.mintable caption { text-align: left; font-size: var(--t-small); color: var(--ink-2); padding-bottom: 10px; }
.mintable th, .mintable td { text-align: left; padding: 11px var(--s-2) 11px 0; border-bottom: 1px solid var(--rule); }
.mintable thead th { font-size: var(--t-fig); letter-spacing: 0.06em; color: var(--ink-2); font-weight: 600; border-bottom: 1.5px solid var(--rule-strong); }
.mintable tbody tr { transition: background var(--t-fast) var(--ease); }
.mintable tbody tr:nth-child(even) { background: var(--row-stripe); }
.mintable tbody tr:hover { background: var(--row-hover); }
.mintable td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Footer: ledger closing block ---------- */
.foot { background: var(--paper-2); border-top: 1.5px solid var(--rule-strong); padding-block: var(--s-6) var(--s-4); }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s-4); }
.foot__name { font-family: var(--f-display); font-weight: 700; font-size: 1.32rem; margin-bottom: var(--s-1); }
.foot h2 { font-family: var(--f-body); font-size: var(--t-fig); font-weight: 600; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.foot p, .foot address { font-style: normal; font-size: var(--t-small); color: var(--ink-2); max-width: 34ch; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { border-bottom: 1px solid var(--rule-soft); }
.foot li a {
  display: flex; align-items: baseline; gap: 8px;
  min-height: 44px; padding: 10px 0;
  color: var(--ink); text-decoration: none; font-size: var(--t-small);
  transition: color var(--t-fast) var(--ease);
}
.foot li a .fig { font-size: 0.72rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.foot li a:hover { color: var(--red-text); }
.foot li a:hover .fig { color: var(--red-text); }
.foot__fine { margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--rule); font-size: var(--t-small); color: var(--ink-2); }
.foot__fine p { max-width: 76ch; margin-bottom: 8px; }

/* ---------- Mobile sticky bar ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none;
  background: var(--red); border-top: 1px solid rgba(0,0,0,0.2);
  transform: translateY(0); transition: transform var(--t-mid) var(--ease);
}
.stickybar[data-hidden="true"] { transform: translateY(105%); }
.stickybar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; color: #fff; text-decoration: none; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stickybar a:active { background: var(--red-deep); }

/* ---------- Scroll reveals ---------- */
.rv { opacity: 0; transform: translateY(16px); }
.js .rv { transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.rv.in { opacity: 1; transform: none; }
html:not(.js) .rv { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .divs, .mapgrid { grid-template-columns: 1fr; gap: var(--s-4); }
  .photopair, .photopair--offset { grid-template-columns: 1fr; gap: var(--s-3); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .form2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .mast__in { grid-template-columns: 1fr auto; padding-top: 14px; padding-bottom: 8px; }
  .mast__rulehead { display: none; }
  .navtoggle { display: flex; }
  .mast__nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1.5px solid var(--rule-strong);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0;
  }
  .mast__nav[data-open="true"] { display: flex; }
  .mast__nav a {
    min-height: 52px; padding: 0 var(--s-3); align-items: center;
    border-bottom: 1px solid var(--rule); font-size: 1rem;
  }
  .mast__nav a:nth-child(even) { background: var(--row-stripe); }
  .mast__nav a::after { display: none; }
  .stickybar { display: block; }
  body { padding-bottom: 56px; }
  .section { padding-block: var(--s-6); }
  .section--tall { padding-block: var(--s-7); }
  .foot__grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .dlrows > div { grid-template-columns: 1fr; gap: 2px; padding-left: var(--s-2); }
  .dlrows dt { padding-left: 0; }
  .lrow { grid-template-columns: 2.4rem 1fr; gap: var(--s-2); }
  .lrow__fig { padding-left: 4px; }
  #map { height: 340px; }
}



@media (max-width: 420px) {
  /* at the narrowest widths the locality crowds the name; the footer still carries it */
  .mast__name span { display: none; }
}

/* ---------- Mobile tap targets: every interactive element gets 44px ---------- */
@media (max-width: 760px) {
  .mast__name { display: flex; align-items: center; min-height: 44px; }
  .navtoggle { min-height: 44px; }
  .tlink { min-height: 44px; display: inline-flex; align-items: center; }
  .calltext { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
  .callband__num { min-height: 48px; display: inline-flex; align-items: flex-end; }
  .foot address .tlink { min-height: 44px; }
  .dlrows dd a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- Reduced motion: static page is complete ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__dust { animation: none; opacity: 0.5; }
  .rv, .js .rv { opacity: 1 !important; transform: none !important; }
  .fig-photo:hover img, .divblock:hover .divblock__photo img { transform: none; }
}
