/* ==========================================================
   Quirkrankshelf — French Nautical Editorial
   Aesthetic: Editorial · Card: Framed canvas
   ========================================================== */
:root {
  --plum: #3b1f3a;
  --plum-deep: #2a1429;
  --plum-soft: #5a3a58;
  --champagne: #e8d9b5;
  --champagne-soft: #f3ead4;
  --white: #faf6ef;
  --paper: #fffdf8;
  --orange: #b4602f;
  --orange-dark: #8f4a22;
  --ink: #2b2226;
  --muted: #5b4d52;
  --rule: #cdbb94;
  --error: #a3261f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--s3);
  overflow-wrap: anywhere;
}
p { margin: 0 0 var(--s3); }
ul, ol { margin: 0 0 var(--s3); padding-left: var(--s4); }
li { margin-bottom: var(--s2); }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.site-footer :focus-visible,
.cookie-banner :focus-visible,
.page-hero :focus-visible,
.hero :focus-visible { outline-color: var(--champagne); }

.skip-link {
  position: absolute;
  left: var(--s3);
  top: -100px;
  z-index: 200;
  padding: var(--s2) var(--s3);
  background: var(--plum);
  color: var(--champagne);
}
.skip-link:focus { top: var(--s2); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s4); }
.container > *, .header-inner > *, .card-grid > *, .footer-grid > * { min-width: 0; }

/* ---------- Header ---------- */
.site-header {
  height: var(--header-h);
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 60;
}
.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-width: 0;
  text-decoration: none;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.brand:hover { color: var(--orange-dark); }
.brand-mark { flex-shrink: 0; }
.brand-name { min-width: 0; overflow-wrap: anywhere; }

.primary-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; overflow-wrap: anywhere; }
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; min-width: 0; }
.nav-list a {
  display: inline-block;
  padding: var(--s1) 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--orange-dark); border-bottom-color: var(--orange); }
.nav-list a[aria-current="page"] { color: var(--plum); border-bottom-color: var(--orange); font-weight: 600; }
.nav-close { display: none; }

.header-actions { display: flex; align-items: center; gap: var(--s2); flex-shrink: 0; }
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: var(--s2) var(--s3);
  background: var(--plum);
  color: var(--champagne);
  border: 1px solid var(--plum);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.header-cta:hover { background: var(--orange-dark); color: #ffffff; border-color: var(--orange-dark); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  color: var(--plum);
  border: 1px solid var(--plum);
  cursor: pointer;
}
.nav-toggle-bar { display: block; width: 18px; height: 2px; background: currentColor; }

@media (min-width: 768px) and (max-width: 1023px) {
  .brand { font-size: 1rem; }
  .nav-list { gap: 10px; }
  .nav-list a { font-size: 0.75rem; letter-spacing: 0.02em; }
  .header-cta { padding: var(--s1) 10px; font-size: 0.72rem; }
  .header-inner { gap: var(--s2); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px var(--s4);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-small { min-height: 44px; padding: 10px var(--s3); font-size: 0.875rem; }
.btn-primary { background: var(--orange); color: #ffffff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); color: #ffffff; border-color: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--champagne); }
.btn-ghost:hover { background: var(--champagne); color: var(--plum); border-color: var(--champagne); }
.link-button {
  padding: 0;
  background: none;
  color: var(--champagne);
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: #ffffff; }

/* ---------- Hero with chart animation ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  background: radial-gradient(ellipse at 50% 40%, #3f2340 0%, var(--plum-deep) 70%);
  color: var(--white);
  clip-path: inset(0);
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;
  animation: photo-reveal 1.4s cubic-bezier(.2,.7,.2,1) 3.6s both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(42,20,41,.95) 0%, rgba(42,20,41,.78) 45%, rgba(42,20,41,.35) 100%);
  color: var(--white);
  animation: fade-in 1.4s ease 3.6s both;
}
.hero-chart {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: var(--s4);
  perspective: 1600px;
  pointer-events: none;
}
.chart-sheet {
  position: relative;
  width: min(100%, 880px);
  aspect-ratio: 8 / 5;
  opacity: .16;
  animation: chart-recede 1s ease 3.7s both;
}
.chart-panels {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transform-style: preserve-3d;
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
}
.chart-panel {
  display: block;
  min-width: 0;
  background:
    linear-gradient(90deg, rgba(90,58,74,.18) 0%, rgba(90,58,74,0) 14%, rgba(90,58,74,0) 86%, rgba(90,58,74,.22) 100%),
    radial-gradient(ellipse at 40% 35%, #f8efd9 0%, #ecdcb4 70%, #dcc796 100%);
  color: var(--plum);
  transform-origin: left center;
  animation: chart-unfold .45s cubic-bezier(.3,.7,.3,1) both;
}
.chart-panel:nth-child(1) { animation-delay: .1s; }
.chart-panel:nth-child(2) { animation-delay: .35s; }
.chart-panel:nth-child(3) { animation-delay: .6s; }
.chart-panel:nth-child(4) { animation-delay: .85s; }
.chart-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: fade-in .5s ease 1.1s both;
}
.chart-grid path { stroke: #6b4a4a; stroke-opacity: .25; fill: none; }
.chart-rhumb path { stroke: #6b4a4a; stroke-opacity: .2; fill: none; }
.chart-land { fill: #d4b97f; fill-opacity: .55; stroke: #5a3a4a; stroke-width: 1.5; }
.chart-land-faint { fill-opacity: .3; stroke-width: 1; }
.chart-compass circle { fill: none; stroke: #5a3a4a; }
.compass-ns { fill: var(--plum); }
.compass-ew { fill: var(--orange); }
.chart-art text { font-family: var(--serif); font-size: 12px; fill: var(--plum); font-style: italic; }
.chart-cartouche rect { fill: #f6ecd4; stroke: var(--plum); }
.chart-cartouche .cartouche-inner { fill: none; stroke-opacity: .5; }
.chart-art .cartouche-title { font-size: 16px; font-weight: 600; }
.chart-art .cartouche-sub { font-size: 10px; font-style: normal; letter-spacing: .08em; }
.chart-ports circle { fill: var(--plum); stroke: #f6ecd4; stroke-width: 1.5; }
.chart-route-ghost { fill: none; stroke: var(--plum); stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 4 6; }
.chart-route {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  animation: route-draw 1s ease-in-out 1.5s both;
}
.chart-route-med { animation-delay: 2.1s; }
.chart-yacht {
  fill: var(--plum);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: yacht-emerge 1.6s ease-in 3s both;
}
.chart-yacht .yacht-mast { stroke: var(--plum); stroke-width: 1.5; fill: none; }
.chart-yacht .yacht-sail { fill: var(--orange); }

.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s6) var(--s4);
  animation: fade-up .9s ease 4.2s both;
}
.hero-content > * { max-width: 720px; }
.hero-kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--champagne);
  font-size: 1.05rem;
  letter-spacing: .04em;
  margin-bottom: var(--s3);
}
.hero-title {
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: var(--s4);
  letter-spacing: -0.01em;
}
.hero-lede { font-size: 1.125rem; color: var(--white); margin-bottom: var(--s5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

@keyframes chart-unfold {
  from { transform: rotateY(-88deg); opacity: 0; }
  to { transform: rotateY(0); opacity: 1; }
}
@keyframes route-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes yacht-emerge {
  0% { opacity: 0; transform: scale(0); }
  18% { opacity: 1; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(8); }
}
@keyframes chart-recede {
  from { opacity: 1; transform: scale(1); }
  to { opacity: .16; transform: scale(1.04); }
}
@keyframes photo-reveal {
  from { opacity: 0; transform: scale(1.15); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */
.section { padding: var(--s6) 0; }
.section-alt { background: var(--champagne-soft); color: var(--ink); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 760px; margin-bottom: var(--s5); padding-bottom: var(--s4); border-bottom: 3px double var(--plum); }
.kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--orange-dark);
  font-size: 1.05rem;
  margin-bottom: var(--s2);
}
.section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); color: var(--plum); }
.section-title-small { font-size: 1.6rem; color: var(--plum); margin-bottom: var(--s4); }
.section-intro { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Framed canvas cards ---------- */
.card-grid {
  display: grid;
  gap: var(--s5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
@media (min-width: 640px) and (max-width: 1023px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid > .card-frame:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card-grid > .card-frame { grid-column: span 2; }
  .card-grid > .card-frame:nth-child(-n+2) { grid-column: span 3; }
}
.card-frame {
  position: relative;
  min-width: 0;
  padding: 0 var(--s3) var(--s3) 0;
}
.card-frame::before {
  content: "";
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  right: 0;
  bottom: 0;
  z-index: 0;
  background: var(--champagne);
  color: var(--plum);
  border: 1px solid var(--plum);
}
.card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--plum);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card-frame:hover .card,
.card-frame:focus-within .card {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(59,31,58,.18);
}
.card-media { border-bottom: 1px solid var(--plum); }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  flex: 1;
  padding: var(--s4);
  min-width: 0;
}
.card-body > * { margin: 0; }
.card-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--orange-dark);
}
.card-title { font-size: 1.6rem; color: var(--plum); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--orange-dark); text-decoration: underline; }
.card-text { color: var(--muted); }
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  list-style: none;
  padding: var(--s3) 0 0;
  border-top: 1px solid var(--rule);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--plum-soft);
}
.card-tags li { margin: 0; }
.card-tags li + li::before { content: "·"; margin-right: var(--s3); color: var(--orange); }
.card-cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--plum);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.card-cta:hover { color: var(--orange-dark); }

/* ---------- Supporting section ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
  margin: 0 0 var(--s6);
  padding: 0;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  padding: var(--s4) var(--s3);
  border-top: 3px solid var(--plum);
  min-width: 0;
}
.stat-value { margin: 0; font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1; color: var(--plum); }
.stat-label { margin: 0; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.editorial-columns {
  columns: 3 260px;
  column-gap: var(--s5);
  column-rule: 1px solid var(--rule);
}
.column-item { break-inside: avoid; margin-bottom: var(--s5); }
.column-item h3 { font-size: 1.3rem; color: var(--plum); }
.editor-note {
  margin-top: var(--s5);
  padding: var(--s4);
  background: var(--paper);
  color: var(--ink);
  border-top: 3px double var(--plum);
  border-bottom: 1px solid var(--plum);
}
.editor-note-title { font-size: 1.25rem; color: var(--plum); }
.editor-note p { margin: 0; }

/* ---------- Sub-page layout ---------- */
.page-hero {
  padding: var(--s6) 0;
  background: var(--plum);
  color: var(--champagne);
}
.breadcrumbs { font-size: .875rem; margin-bottom: var(--s4); color: var(--champagne); overflow-wrap: anywhere; }
.breadcrumbs a { color: var(--champagne); }
.breadcrumbs a:hover { color: #ffffff; }
.page-kicker { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--champagne); margin-bottom: var(--s2); }
.page-title { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); max-width: 900px; margin-bottom: var(--s4); }
.page-standfirst { font-size: 1.15rem; max-width: 760px; margin: 0; color: var(--champagne); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
  gap: var(--s6);
  padding-top: var(--s6);
  padding-bottom: var(--s6);
}
.article-layout > * { min-width: 0; }
.article-body { max-width: 72ch; }
.article-body h2 {
  font-size: 1.75rem;
  color: var(--plum);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}
.article-body .lead { font-size: 1.2rem; font-family: var(--serif); }
.article-body .lead::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: .85;
  padding: 6px var(--s2) 0 0;
  color: var(--orange-dark);
  font-weight: 600;
}
.article-figure { margin: 0 0 var(--s5); }
.article-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--plum); }
.article-figure figcaption { margin-top: var(--s2); font-size: .9rem; font-style: italic; color: var(--muted); }

.article-aside { display: flex; flex-direction: column; gap: var(--s5); }
.aside-box {
  padding: var(--s4);
  background: var(--champagne-soft);
  color: var(--ink);
  border-top: 3px double var(--plum);
  border-bottom: 1px solid var(--plum);
}
.aside-title { font-size: 1.3rem; color: var(--plum); }
.fact-list { margin: 0; }
.fact-list > div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.fact-list > div:last-child { border-bottom: 0; }
.fact-list dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); }
.fact-list dd { margin: 0; font-family: var(--serif); font-size: 1.05rem; color: var(--plum); }

.table-wrap { overflow-x: auto; margin: var(--s4) 0 var(--s5); border-top: 2px solid var(--plum); border-bottom: 2px solid var(--plum); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; font-family: var(--serif); font-style: italic; padding: 12px var(--s3); color: var(--muted); }
th, td { padding: var(--s3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th { background: var(--plum); color: var(--champagne); font-weight: 600; font-size: .85rem; letter-spacing: .04em; }
tbody th { font-family: var(--serif); color: var(--plum); }

.pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-bottom: var(--s4); }
.pc-col { padding: var(--s4); background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-top: 3px solid var(--plum); min-width: 0; }
.pc-col:last-child { border-top-color: var(--orange); }
.pc-col h3 { font-size: 1.25rem; color: var(--plum); }
.pc-col ul { margin: 0; }

/* ---------- Legal ---------- */
.legal-layout { padding-top: var(--s6); padding-bottom: var(--s6); }
.legal-body { max-width: 75ch; }
.legal-body h2 { font-size: 1.5rem; color: var(--plum); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.legal-body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--s6);
  padding-top: var(--s6);
  padding-bottom: var(--s6);
}
.contact-layout > * { min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: var(--s4); }
.form-field { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.form-field label { font-weight: 600; color: var(--plum); }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px var(--s3);
  font: inherit;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--plum-soft);
  border-radius: 0;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-color: var(--plum); }
.form-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.form-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--plum); flex-shrink: 0; }
.form-check label { flex: 1 1 200px; font-weight: 400; color: var(--ink); min-width: 0; }
.form-check .field-error { flex-basis: 100%; }
.field-error { margin: 0; font-size: .9rem; color: var(--error); font-weight: 600; }
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea { border-color: var(--error); border-width: 2px; }
.form-field.is-invalid label { color: var(--error); }
.contact-form .btn { align-self: flex-start; }
.form-success {
  margin: 0;
  padding: var(--s3) var(--s4);
  background: var(--champagne-soft);
  color: var(--plum);
  border-left: 3px solid var(--plum);
  font-weight: 600;
}
.contact-address { font-style: normal; margin-bottom: var(--s5); line-height: 1.8; overflow-wrap: anywhere; }
.map-block { border: 1px solid var(--plum); background: var(--champagne-soft); color: var(--ink); }
.map-art { display: block; width: 100%; height: auto; }
.map-land { fill: #efe3c6; }
.map-sea { fill: #c9d3d6; }
.map-port { fill: #b9c7cc; stroke: var(--plum-soft); stroke-width: 1.5; }
.map-streets path { stroke: #fffaf0; stroke-width: 6; fill: none; }
.map-quay-labels text { font-family: var(--serif); font-size: 14px; font-style: italic; fill: var(--plum); }
.map-quay-labels .map-small { font-size: 11px; }
.map-pin path { fill: var(--orange); stroke: var(--plum); stroke-width: 1.5; }
.map-pin-dot { fill: var(--paper); }
.map-caption { margin: 0; padding: var(--s3); border-top: 1px solid var(--plum); font-size: .9rem; background: var(--paper); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-deep); color: var(--champagne); padding: var(--s6) 0 var(--s5); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s5); }
.brand-footer { color: var(--champagne); margin-bottom: var(--s3); }
.brand-footer:hover { color: #ffffff; }
.footer-about { color: var(--champagne); font-size: .95rem; }
.footer-heading { font-size: .85rem; font-family: var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: var(--s3); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: var(--s2); }
.footer-links a { color: var(--champagne); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: #ffffff; text-decoration: underline; }
.footer-address { font-style: normal; font-size: .95rem; line-height: 1.8; overflow-wrap: anywhere; }
.footer-address a { color: var(--champagne); }
.footer-address a:hover { color: #ffffff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid rgba(232,217,181,.3);
  font-size: .875rem;
}
.footer-bottom p { margin: 0; overflow-wrap: anywhere; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: var(--s3);
  right: var(--s3);
  bottom: var(--s3);
  z-index: 90;
  max-width: 960px;
  margin: 0 auto;
  background: var(--plum);
  color: var(--champagne);
  border: 1px solid var(--champagne);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.cookie-inner { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.cookie-title { font-size: 1.2rem; color: var(--white); margin: 0; }
.cookie-text { margin: 0; font-size: .95rem; }
.cookie-text a { color: var(--champagne); }
.cookie-text a:hover { color: #ffffff; }
.cookie-prefs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); padding: var(--s3) 0; border-top: 1px solid rgba(232,217,181,.35); border-bottom: 1px solid rgba(232,217,181,.35); }
.cookie-option { display: inline-flex; align-items: center; gap: var(--s2); font-size: .95rem; }
.cookie-option input { width: 18px; height: 18px; accent-color: var(--orange); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .article-aside { flex-direction: column; }
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
}
@media (max-width: 767px) {
  :root { --header-h: 50px; }
  .header-inner { padding: 0 var(--s3); gap: var(--s2); }
  .brand { font-size: 1.1rem; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    padding: var(--s6) var(--s4) var(--s5);
    background: var(--plum-deep);
    color: var(--champagne);
    overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav :focus-visible { outline-color: var(--champagne); }
  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: var(--s2);
    right: var(--s3);
    width: 44px;
    height: 44px;
    background: transparent;
    color: var(--champagne);
    border: 1px solid var(--champagne);
    cursor: pointer;
  }
  .nav-list { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .nav-list li { width: 100%; border-bottom: 1px solid rgba(232,217,181,.25); }
  .nav-list a {
    display: block;
    padding: 12px 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    letter-spacing: 0;
    white-space: normal;
    color: var(--champagne);
    border-bottom: 0;
  }
  .nav-list a:hover, .nav-list a[aria-current="page"] { color: #ffffff; border-bottom: 0; text-decoration: underline; }
  .header-cta { padding: 6px 12px; font-size: .72rem; min-height: 36px; }
  .card-frame { padding: 0; }
  .card-frame::before { top: 0; left: 0; right: 0; bottom: 0; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin-bottom: var(--s5); }
  .pros-cons { grid-template-columns: minmax(0, 1fr); }
  .hero-content { padding: var(--s5) var(--s3); }
  .hero-lede { font-size: 1.05rem; }
}
@media (max-width: 399px) {
  .container { padding: 0 var(--s3); }
  .header-inner { padding: 0 12px; gap: 6px; }
  .brand { font-size: .95rem; gap: 6px; }
  .brand-mark { width: 22px; height: 22px; }
  .header-cta { padding: 6px var(--s2); font-size: .68rem; letter-spacing: .03em; }
  .nav-toggle { width: 36px; height: 36px; }
  .hero-title { font-size: 1.9rem; }
  .hero-actions .btn { width: 100%; }
  .card-body { padding: var(--s3); gap: var(--s4); }
  .card-title { font-size: 1.35rem; }
  .page-title { font-size: 1.8rem; }
  .cookie-banner { left: var(--s2); right: var(--s2); bottom: var(--s2); }
  .cookie-inner { padding: var(--s3); }
  .cookie-actions .btn { width: 100%; }
  th, td { padding: 12px var(--s3); }
}

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