:root {
  color-scheme: light;
  --ink: #1d2a2f;
  --muted: #24343a;
  --line: #d9e2df;
  --paper: #fbf8f1;
  --white: #ffffff;
  --green: #246b4f;
  --green-dark: #174837;
  --blue: #1f596f;
  --clay: #9a482b;
  --gold: #c79b3c;
  --hero-image: image-set(url("DSC_0458_2-hero-1920.webp") type("image/webp"), url("DSC_0458_2-hero-1920.jpg") type("image/jpeg"));
  --hero-image-mobile: image-set(url("DSC_0458_2-hero-1200.webp") type("image/webp"), url("DSC_0458_2-hero-1200.jpg") type("image/jpeg"));
  --shadow: 0 18px 45px rgba(25, 43, 48, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

main, section { scroll-margin-top: 88px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(251, 248, 241, .94);
  border-bottom: 1px solid rgba(29, 42, 47, .08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  width: auto;
  max-width: 180px;
  max-height: 46px;
  object-fit: contain;
}

.brand-text {
  display: block;
  min-width: 0;
}

.brand strong { display: block; line-height: 1.05; }
.brand small { display: block; color: var(--muted); font-size: .78rem; }

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
}

.language-switcher button,
.language-switcher .lang-control {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 1.16rem;
  line-height: 1;
  text-decoration: none;
}

.language-switcher button.active,
.language-switcher .lang-control.active {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--green);
}

.flag {
  display: block;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(29, 42, 47, .18);
}

.flag-es {
  background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.flag-uk {
  position: relative;
  background: #012169;
}

.flag-uk::before,
.flag-uk::after {
  content: "";
  position: absolute;
  inset: 0;
}

.flag-uk::before {
  background:
    linear-gradient(27deg, transparent 0 42%, #fff 42% 48%, #c8102e 48% 52%, #fff 52% 58%, transparent 58% 100%),
    linear-gradient(153deg, transparent 0 42%, #fff 42% 48%, #c8102e 48% 52%, #fff 52% 58%, transparent 58% 100%);
}

.flag-uk::after {
  background:
    linear-gradient(90deg, transparent 0 40%, #fff 40% 45%, #c8102e 45% 55%, #fff 55% 60%, transparent 60% 100%),
    linear-gradient(0deg, transparent 0 35%, #fff 35% 42%, #c8102e 42% 58%, #fff 58% 65%, transparent 65% 100%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover { color: var(--green-dark); background: rgba(36, 107, 79, .08); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(14, 33, 31, .82) 0%, rgba(14, 33, 31, .55) 46%, rgba(14, 33, 31, .22) 100%),
    var(--hero-image) center 54%/cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  z-index: -1;
  background: linear-gradient(0deg, var(--paper), rgba(251, 248, 241, 0));
}

.hero-content {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto 12vh clamp(16px, 6vw, 72px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.hero .eyebrow { color: #ffe2a3; }

h1, h2, h3 { color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: 0; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 7vw, 5.8rem); max-width: 820px; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.18rem; }

.esenasturias-page .hero .hero-content h1,
.hero .hero-content h1 {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .35);
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  font-size: clamp(1.02rem, 2.1vw, 1.28rem);
  color: #ffffff;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  width: min(680px, 100%);
  margin-top: 26px;
  padding: 8px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px 14px;
  background: transparent;
  color: var(--ink);
}

.search-box input::placeholder,
.archive-search input::placeholder,
.community-question-form input::placeholder,
.community-question-form textarea::placeholder {
  color: #40525a;
  opacity: 1;
}

.search-box button, .button, .filters button, .quick-links button {
  border: 0;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
}

.search-box button, .button.primary {
  background: var(--green);
  color: var(--white);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button.ghost {
  background: rgba(255, 255, 255, .16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .35);
}

.section .button.ghost,
.band .button.ghost,
.wp-block-group .button.ghost {
  background: #ffffff;
  color: var(--green-dark);
  border: 1px solid var(--green);
}

.hero .button.ghost,
.concejo-hero .button.ghost,
.archive-hero .button.ghost {
  background: rgba(255, 255, 255, .16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .45);
}

.quick-links {
  display: flex;
  gap: 10px;
  max-width: 1180px;
  margin: -34px auto 0;
  padding: 0 16px;
  overflow-x: auto;
  position: relative;
  z-index: 3;
}

.quick-links button {
  flex: 0 0 auto;
  background: var(--white);
  color: var(--green-dark);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(29, 42, 47, .08);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(16px, 4vw, 48px);
}

.home-block-content {
  background: var(--paper);
}

.home-block-content > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.home-block-content .wp-block-group,
.home-block-content .wp-block-columns,
.home-block-content .wp-block-buttons {
  box-sizing: border-box;
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 30px;
}

.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.04rem; }
.section-heading.split {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.section-actions {
  max-width: 1180px;
  margin: 22px auto 0;
  display: flex;
  justify-content: center;
}

.band { background: #eef3ee; }

.info-grid, .guide-grid, .council-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-grid article, .info-grid .wp-block-column, .guide-card, .council-card, .map-info, .compare-table, .checklist, .source-list {
  background: var(--white);
  border: 1px solid rgba(29, 42, 47, .09);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(29, 42, 47, .06);
}

.info-grid article, .info-grid .wp-block-column, .guide-card, .council-card { padding: 20px; }
.info-grid p, .guide-card p, .council-card p { color: var(--muted); margin-bottom: 0; }

.card-media {
  display: block;
  margin: -20px -20px 18px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--paper-strong);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media:focus-visible {
  outline: 3px solid rgba(36, 107, 79, .34);
  outline-offset: -3px;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--white);
  border: 1px solid rgba(29, 42, 47, .1);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(29, 42, 47, .06);
  overflow: hidden;
}

.faq-list summary {
  position: relative;
  display: block;
  padding: 18px 54px 18px 20px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(36, 107, 79, .1);
  color: var(--green-dark);
  font-weight: 800;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after { content: "-"; }

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-weight: 500;
}

.community-question-form {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(29, 42, 47, .1);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(29, 42, 47, .06);
}

.community-question-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.community-question-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.community-question-form input,
.community-question-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.community-question-form textarea { resize: vertical; }

.community-question-form input:focus,
.community-question-form textarea:focus {
  outline: 3px solid rgba(36, 107, 79, .16);
  border-color: var(--green);
}

.community-question-form .consent-field {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 500;
  color: var(--muted);
}

.community-question-form .consent-field input {
  width: auto;
  margin-top: 5px;
}

.community-question-form .form-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

.community-question-form .form-message.success {
  color: var(--green-dark);
  background: rgba(36, 107, 79, .1);
}

.community-question-form .form-message.error {
  color: #8d2a16;
  background: rgba(185, 95, 59, .12);
}

.ea-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wp-block-button.button .wp-block-button__link {
  all: unset;
}

.wp-block-buttons.hero-actions {
  display: flex;
}

.icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(36, 107, 79, .1);
  color: var(--green);
  font-weight: 900;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filters button {
  background: var(--white);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.filters button.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.council-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(31, 89, 111, .14);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  min-width: 0;
  padding: 10px;
  background: #f7f5ee;
  border-radius: var(--radius);
}

.stat strong { display: block; font-size: .98rem; }
.stat span { color: var(--muted); font-size: .76rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: .78rem;
  background: #fbfaf6;
}

.open-detail {
  margin-top: auto;
  border: 1px solid var(--green);
  color: var(--green-dark);
  background: transparent;
  border-radius: var(--radius);
  padding: 11px 14px;
  font-weight: 800;
  cursor: pointer;
}

.card-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.card-actions .open-detail {
  margin-top: 0;
}

.card-actions .as-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.compare-controls {
  max-width: 1180px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.compare-controls select {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.compare-table {
  max-width: 1180px;
  margin: 0 auto;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th, td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th { background: #f7f5ee; }

.guide-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.guide-card a {
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.archive-guide-card {
  min-height: 210px;
}

.map-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 18px;
  align-items: stretch;
}

.asturias-map {
  position: relative;
  z-index: 0;
  min-height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dbe7dd;
  box-shadow: var(--shadow);
}

.asturias-map .leaflet-control-attribution { font-size: .68rem; }
.asturias-map .leaflet-popup-content-wrapper { border-radius: var(--radius); }
.asturias-map .leaflet-popup-content { margin: 12px 14px; color: var(--ink); }
.asturias-map .leaflet-popup-content strong { display: block; margin-bottom: 4px; }

.capital-marker {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  font-size: .82rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23, 72, 55, .32);
}

.map-legend {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 12px;
}

.map-info { padding: 22px; }
.map-info p, .map-info li { color: var(--muted); }

.checklist {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 24px 46px;
}

.checklist li { margin: 0 0 14px; }
.checklist li:last-child { margin-bottom: 0; }

.source-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.source-list a {
  padding: 15px 18px;
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 780;
  border-bottom: 1px solid var(--line);
}

.source-list a:last-child { border-bottom: 0; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(16px, 4vw, 48px);
  background: var(--green-dark);
  color: var(--white);
}

.footer p { margin: 4px 0 0; color: #ffffff; }
.footer a { color: var(--white); font-weight: 800; }

.footer-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-links a {
  font-size: .92rem;
  font-weight: 700;
  color: #ffffff;
}

.legal-page {
  background: var(--paper);
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 84px) clamp(16px, 4vw, 48px);
}

.legal-card {
  background: var(--white);
  border: 1px solid rgba(29, 42, 47, .09);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(29, 42, 47, .06);
  padding: clamp(22px, 4vw, 42px);
}

.legal-card h1 {
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.legal-card h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.legal-card p {
  color: var(--muted);
  font-weight: 500;
}

.not-found-page {
  background: var(--paper);
}

.not-found-content {
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  padding: clamp(42px, 7vw, 84px) clamp(16px, 4vw, 48px);
}

.not-found-card {
  width: min(920px, 100%);
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(29, 42, 47, .09);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 56px);
}

.not-found-card .eyebrow {
  margin-bottom: 12px;
}

.not-found-card h1 {
  margin-bottom: 18px;
}

.not-found-card p {
  max-width: 680px;
  color: var(--muted);
  font-weight: 500;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 18, 19, .58);
}

.modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 32px);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.detail-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
}

.detail-block ul { padding-left: 20px; margin-bottom: 0; color: var(--muted); }

.concejo-single {
  background: var(--paper);
}

.concejo-hero {
  position: relative;
  padding: clamp(72px, 11vw, 128px) clamp(16px, 4vw, 48px) clamp(42px, 7vw, 72px);
  color: var(--white);
  overflow: hidden;
}

.concejo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(14, 33, 31, .88) 0%, rgba(14, 33, 31, .7) 48%, rgba(14, 33, 31, .36) 100%),
    var(--archive-hero-image, var(--hero-image)) center 54%/cover;
}

.concejo-hero > * {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.concejo-hero h1 {
  color: var(--white);
  font-weight: 800;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .35);
}

.concejo-hero .lead {
  color: #ffffff;
  max-width: 860px;
}

.concejo-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 64px) 0 clamp(64px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.concejo-main,
.concejo-sidebar {
  display: grid;
  gap: 18px;
}

.concejo-sidebar {
  position: sticky;
  top: 92px;
}

.concejo-card {
  background: var(--white);
  border: 1px solid rgba(29, 42, 47, .09);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(29, 42, 47, .06);
  padding: clamp(20px, 4vw, 30px);
}

.concejo-card h2 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.concejo-card .detail-grid {
  margin-top: 0;
}

.wp-content > *:first-child {
  margin-top: 0;
}

.wp-content > *:last-child {
  margin-bottom: 0;
}

.as-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

.modal-page-link {
  margin-top: 20px;
  width: 100%;
}

.archive-hero {
  min-height: 520px;
}

.archive-list-section {
  background: #eef3ee;
}

.archive-count {
  align-self: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  white-space: nowrap;
}

.archive-filters {
  max-width: 1180px;
  margin: 0 auto 12px;
  justify-content: flex-start;
}

.archive-search {
  max-width: 1180px;
  margin: 0 auto 18px;
}

.archive-search input {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  box-shadow: 0 10px 24px rgba(29, 42, 47, .05);
}

.archive-council-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.archive-council-card .open-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.archive-empty {
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .language-switcher { margin-left: auto; }
  .nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav ul { display: grid; gap: 4px; }
  .nav a { border-radius: var(--radius); }
  .hero-content { margin-left: auto; margin-right: auto; }
  .section-heading.split, .map-layout { grid-template-columns: 1fr; }
  .concejo-content { grid-template-columns: 1fr; }
  .concejo-sidebar { position: static; }
  .filters { justify-content: flex-start; }
  .info-grid, .guide-grid, .council-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-council-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body,
  .esenasturias-page {
    color: #101820 !important;
    font-weight: 500;
  }

  .brand strong,
  .brand-text strong,
  .menu-toggle {
    color: #101820 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
  }

  .site-header { min-height: 66px; }
  .brand small { display: none; }
  .site-header { gap: 8px; }
  .language-switcher { padding: 3px; }
  .language-switcher button,
  .language-switcher .lang-control { width: 31px; height: 31px; font-size: 1rem; }
  .menu-toggle { padding: 8px 10px; }
  .nav { top: 66px; }
  .hero { min-height: 720px; }
  .hero-media {
    background:
      linear-gradient(180deg, rgba(8, 21, 20, .84) 0%, rgba(8, 21, 20, .78) 42%, rgba(8, 21, 20, .64) 72%, rgba(8, 21, 20, .38) 100%),
      var(--hero-image-mobile) center 54%/cover;
  }
  .hero::after {
    height: 18%;
    background: linear-gradient(0deg, var(--paper), rgba(251, 248, 241, 0));
  }
  .hero-content { width: calc(100% - 28px); margin-bottom: 96px; }
  .hero .eyebrow {
    color: #ffe2a3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
  }
  .esenasturias-page .hero .hero-content h1,
  .hero .hero-content h1 {
    color: #ffffff !important;
    text-shadow: 0 4px 22px rgba(0, 0, 0, .78), 0 1px 2px rgba(0, 0, 0, .9);
  }
  .hero .lead {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .78), 0 1px 2px rgba(0, 0, 0, .9);
    font-weight: 600;
  }
  .section-heading p:not(.eyebrow),
  .section p,
  .section li,
  .section .wp-block-heading + p,
  .info-grid p,
  .guide-card p,
  .council-card p,
  .map-info p,
  .map-info li,
  .detail-block p,
  .detail-block li,
  .checklist li,
.wp-content p,
.wp-block-group p,
.home-block-content p,
.home-block-content li,
.home-block-content .wp-block-paragraph,
.wp-block-column p,
.wp-block-column li,
.faq-list details p,
.community-question-form,
.community-question-form input,
.community-question-form textarea,
.community-question-form .consent-field {
    color: #101820 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }
  .section h1,
  .section h2,
  .section h3,
  .home-block-content h1,
.home-block-content h2,
.home-block-content h3,
.wp-block-heading {
    color: #111a20 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }
  .info-grid h3,
  .guide-card h3,
  .council-card h3,
.map-info h3,
.detail-block h3 {
    color: #111a20 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
  }
  .faq-list summary {
    color: #111a20 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
  }
  .community-question-form .form-grid {
    grid-template-columns: 1fr;
  }
  .section-heading .eyebrow,
.eyebrow {
    color: #963719 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
  }
  .nav a,
  .filters button,
  .tags span,
  .stat span,
.map-legend span {
    color: #1f3037 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
  }
  .filters button.active {
    background: var(--green-dark) !important;
    color: #ffffff !important;
    border-color: var(--green-dark) !important;
  }
.card-top p {
    color: #1f3037 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
  }
  .footer p {
    color: #ffffff;
  }
  .footer-actions {
    justify-items: start;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .search-box { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .quick-links { margin-top: -26px; }
  .section { padding-left: 14px; padding-right: 14px; }
  .info-grid, .guide-grid, .council-grid, .compare-controls, .detail-grid { grid-template-columns: 1fr; }
  .archive-council-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .asturias-map { min-height: 380px; }
  .footer { display: block; }
  .footer a { display: inline-block; margin-top: 16px; }
}
