/*
Theme Name: La Casa del Parrandero
Theme URI: https://www.lacasadelparrandero.org
Author: Fundación Museo del Parrandero
Description: Tema institucional y cultural de La Casa del Parrandero.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: casa-del-parrandero
*/

:root {
  --black: #010101;
  --espresso: #2f120d;
  --brown: #572a14;
  --clay: #91593e;
  --terracotta: #c58564;
  --sand: #e3c7ae;
  --paper: #fbf8f1;
  --white: #ffffff;
  --ivory: #f8f5ed;
  --petrol: #063e47;
  --petrol-deep: #052f35;
  --petrol-soft: #dcebed;
  --coral: #e4725d;
  --coral-soft: #f3b6aa;
  --saffron: #f6c75b;
  --saffron-soft: #f7d982;
  --serif: "High Tower Text", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
  --section-space: clamp(48px, 5vw, 80px);
  --section-heading-gap: clamp(24px, 2.5vw, 36px);
  --anchor-offset: 112px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--petrol-deep); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
section[id], main[id] { scroll-margin-top: var(--anchor-offset); }
body.admin-bar :is(section[id], main[id]) { scroll-margin-top: calc(var(--anchor-offset) + 32px); }
::selection { color: var(--white); background: var(--petrol); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 11px 15px; color: var(--white); background: var(--brown); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 30; min-height: 94px; padding: 14px clamp(22px, 3vw, 52px); display: grid; grid-template-columns: 235px minmax(420px, 1fr) auto; align-items: center; gap: 26px; background: rgba(251,248,241,.97); border-bottom: 1px solid rgba(7,63,71,.16); backdrop-filter: blur(14px); }
.brand { display: block; width: 250px; }
.brand img { display: block; width: 100%; height: auto; }
.main-nav { display: flex; justify-content: flex-end; gap: clamp(10px, 1.25vw, 20px); overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { padding: 10px 0; white-space: nowrap; color: var(--petrol-deep); font-size: 12px; font-weight: 700; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] { border-color: var(--coral); }
.commerce-nav { display: flex; align-items: center; gap: 7px; }
.commerce-nav a { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; color: var(--petrol); border: 1px solid rgba(7,63,71,.34); background: var(--white); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: 180ms ease; }
.commerce-nav a:nth-child(2) { color: var(--white); background: var(--petrol); border-color: var(--petrol); }
.commerce-nav a:nth-child(3) { background: var(--saffron-soft); }
.commerce-nav a:hover, .commerce-nav a:focus-visible { transform: translateY(-2px); border-color: var(--coral); }

.hero { min-height: calc(100vh - 94px); display: grid; grid-template-columns: .92fr 1.08fr; background: var(--ivory); }
.hero-copy { padding: clamp(80px, 10vw, 150px) clamp(28px, 6vw, 92px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow, .section-label { margin-bottom: 24px; color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: 720px; margin-bottom: 28px; color: var(--petrol); font: 400 clamp(58px, 6.6vw, 102px)/.92 var(--serif); letter-spacing: -.045em; }
.hero-lead { max-width: 610px; margin-bottom: 38px; color: #40585b; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-quick-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.hero-quick-links a, .section-route, .archive-home { display: inline-flex; align-items: center; min-height: 42px; gap: 8px; color: var(--petrol); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hero-quick-links span, .section-route span { color: var(--brown); }
.section-route { align-self: flex-start; margin-top: 12px; }
.button { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--petrol); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transition: 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--petrol); }
.button-outline { background: transparent; }
.hero-visual { position: relative; min-height: 650px; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: rgba(7,63,71,.03); }
.hero-stamp { position: absolute; right: 30px; bottom: 28px; z-index: 2; padding: 11px 15px; color: var(--white); background: rgba(7,63,71,.94); font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.purpose, .stories, .heritage, .research, .publications, .agenda, .support, .commerce-entry { padding: var(--section-space) clamp(24px, 6vw, 96px); }
.purpose-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 6vw, 100px); align-items: start; }
.purpose h2, .section-heading h2, .museum h2, .stories h2, .safeguarding h2, .exhibitions h2, .visit h2, .cafe h2, .support h2 { margin-bottom: 0; color: var(--petrol); font: 400 clamp(42px, 5.2vw, 76px)/1.02 var(--serif); letter-spacing: -.035em; }
.purpose-grid > div { padding-top: 10px; }
.purpose-grid p { color: #53666a; font-size: 17px; line-height: 1.75; }

.museum { min-height: 600px; display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }
.museum-image { position: relative; min-height: 560px; overflow: hidden; }
.museum-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.museum-copy { padding: var(--section-space) clamp(28px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.museum-copy > p:not(.section-label) { margin: 22px 0; color: #53666a; font-size: 17px; line-height: 1.72; }
.collection-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.collection-tags span { padding: 10px 13px; color: var(--petrol); background: var(--saffron-soft); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.collection-tags span:nth-child(2) { background: var(--petrol-soft); }
.collection-tags span:nth-child(3) { background: var(--coral-soft); }
.collection-tags span:nth-child(4) { color: var(--brown); background: var(--sand); }

.stories { background: var(--paper); }
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(7,63,71,.28); border-bottom: 1px solid rgba(7,63,71,.28); }
.stories-grid article { padding: clamp(20px, 2.2vw, 30px); display: flex; flex-direction: column; border-right: 1px solid rgba(7,63,71,.2); }
.stories-grid article:last-child { border-right: 0; }
.stories-grid article:nth-child(2) { background: var(--petrol-soft); }
.stories-grid article:nth-child(3) { background: var(--saffron-soft); }
.story-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story-meta small { color: var(--petrol-deep); font-size: 10px; }
.stories-grid h3 { max-width: 360px; margin: 28px 0 12px; color: var(--petrol); font: 400 32px/1.06 var(--serif); }
.stories-grid p { margin: 0; color: #40585b; font-size: 14px; line-height: 1.65; }
.stories-source { margin: 22px 0 0; color: #66777a; font-size: 11px; line-height: 1.55; }

.commerce-entry { color: var(--petrol-deep); background: var(--white); }
.commerce-route-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(7,63,71,.24); }
.commerce-route-grid article { padding: clamp(20px, 2.3vw, 32px); display: flex; flex-direction: column; border-right: 1px solid rgba(7,63,71,.2); }
.commerce-route-grid article:nth-child(2) { background: var(--petrol-soft); }
.commerce-route-grid article:nth-child(3) { background: var(--saffron-soft); }
.commerce-route-grid article:last-child { border-right: 0; }
.commerce-route-grid article > span { color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.commerce-route-grid h3 { margin: 26px 0 12px; font: 400 32px/1.05 var(--serif); }
.commerce-route-grid p { margin: 0 0 28px; color: #40585b; font-size: 14px; line-height: 1.65; }
.commerce-route-grid a { margin-top: auto; width: fit-content; padding-bottom: 5px; color: var(--petrol); border-bottom: 1px solid var(--petrol); font-size: 11px; font-weight: 800; }
.commerce-route-grid a b { color: var(--coral); }

.section-heading { max-width: 950px; margin-bottom: var(--section-heading-gap); }
.section-heading.split { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 6vw, 88px); align-items: end; }
.section-heading.split > p { margin-bottom: 4px; color: #53666a; font-size: 16px; line-height: 1.7; }
.archive-preview { margin-bottom: 0; align-items: center; }
.archive-preview > div > p:not(.section-label) { margin-bottom: 0; color: #53666a; font-size: 16px; line-height: 1.7; }
.heritage { background: var(--ivory); }
.heritage .section-heading { max-width: 1140px; }
.heritage .section-heading h2 { text-wrap: balance; }
.heritage-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(7,63,71,.25); }
.heritage-grid article { padding: 22px 20px; border-right: 1px solid rgba(7,63,71,.2); }
.heritage-grid article:nth-child(1) { background: var(--white); }
.heritage-grid article:nth-child(2) { background: var(--saffron-soft); }
.heritage-grid article:nth-child(3) { background: var(--petrol-soft); }
.heritage-grid article:nth-child(4) { background: var(--coral-soft); }
.heritage-grid article:nth-child(5) { background: var(--sand); }
.heritage-grid article:last-child { border-right: 0; }
.icon-frame { height: clamp(105px, 11vw, 150px); display: flex; align-items: center; justify-content: center; }
.icon-frame img { width: 100%; height: 100%; object-fit: contain; }
.heritage-grid h3 { margin: 16px 0 10px; font: 400 26px/1 var(--serif); }
.heritage-grid p { margin: 0; color: #40585b; font-size: 12px; line-height: 1.6; }

.safeguarding { padding: var(--section-space) clamp(24px, 7vw, 110px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 6vw, 92px); align-items: center; color: var(--white); background: var(--petrol); }
.section-label.light { color: var(--saffron); }
.safeguarding h2 { color: var(--white); }
.safeguarding-copy > p:last-child, .exhibitions-intro > p:last-child, .cafe-copy > p:last-child { margin-top: 32px; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.72; }
.safeguarding-quote { padding: 46px; border: 1px solid rgba(242,191,73,.6); }
.safeguarding-quote > span { color: var(--saffron); font: 400 92px/.65 var(--serif); }
.safeguarding-quote p { margin: 16px 0 28px; font: 400 clamp(30px, 3.2vw, 48px)/1.05 var(--serif); }
.safeguarding-quote small { color: var(--petrol-soft); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }

.research { background: var(--paper); }
.research-list { border-top: 2px solid var(--petrol); }
.research-list article { padding: 30px 0; display: grid; grid-template-columns: 70px .7fr 1fr; gap: 25px; align-items: start; border-bottom: 1px solid rgba(87,42,20,.2); }
.research-list article > span { color: var(--coral); font-size: 10px; font-weight: 800; }
.research-list h3 { margin: 0; font: 400 27px/1.1 var(--serif); }
.research-list p { margin: 0; color: #53666a; font-size: 14px; line-height: 1.6; }

.exhibitions { padding: var(--section-space) clamp(24px, 7vw, 110px); color: var(--espresso); background: var(--coral); }
.exhibitions-intro { max-width: 920px; }
.exhibitions .section-label.light { color: var(--espresso); }
.exhibitions h2 { color: var(--petrol-deep); }
.exhibitions-intro > p:last-child { color: var(--espresso); }
.experience-grid { margin-top: var(--section-heading-gap); display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(47,18,13,.45); }
.experience-grid article { padding: clamp(20px, 2.3vw, 32px); border-right: 1px solid rgba(47,18,13,.45); }
.experience-grid article:last-child { border-right: 0; }
.experience-grid span { color: var(--espresso); font-size: 10px; }
.experience-grid h3 { margin: 24px 0 12px; font: 400 27px/1.08 var(--serif); }
.experience-grid p { margin: 0; color: var(--espresso); font-size: 13px; line-height: 1.6; }

.publications { background: var(--white); }
.publication-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.publication-grid article { padding-bottom: 28px; border-bottom: 1px solid rgba(87,42,20,.25); }
.publication-cover { aspect-ratio: 4 / 5; margin-bottom: 28px; padding: 27px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); background: var(--petrol); }
.publication-cover b { font: 400 68px/1 var(--serif); }
.publication-cover span { font: 400 29px/1.05 var(--serif); }
.cover-2 { color: var(--petrol-deep); background: var(--saffron); }
.cover-3 { color: var(--petrol-deep); background: var(--coral); }
.card-label { margin-bottom: 12px; color: var(--coral); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.publication-grid h3 { margin-bottom: 12px; font: 400 28px/1.08 var(--serif); }
.publication-grid article > p:last-child { margin: 0; color: #53666a; font-size: 13px; line-height: 1.6; }

.visit { display: grid; grid-template-columns: .92fr 1.08fr; background: var(--saffron-soft); }
.visit-copy { padding: var(--section-space) clamp(24px, 6vw, 96px); }
.visit-copy > p:last-child { margin-top: 30px; color: #40585b; font-size: 17px; line-height: 1.72; }
.visit-cards { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--petrol-deep); }
.visit-cards div { padding: 38px 26px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); border-left: 1px solid rgba(255,255,255,.2); }
.visit-cards span { margin-bottom: auto; color: var(--saffron); font-size: 10px; }
.visit-cards strong { margin: 28px 0 10px; font: 400 29px/1 var(--serif); }
.visit-cards p { margin: 0; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.5; }
.visit-side { display: grid; grid-template-rows: 1fr auto; background: var(--petrol-deep); }
.visit-action { min-height: 76px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; color: var(--petrol-deep); background: var(--saffron); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.visit-action span { font-size: 21px; }

.agenda { background: var(--paper); }
.agenda-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(87,42,20,.25); }
.agenda-grid article { padding: 22px 24px; border-right: 1px solid rgba(87,42,20,.2); }
.agenda-grid article:last-child { border-right: 0; }
.agenda-grid article:nth-child(2) { background: var(--petrol-soft); }
.agenda-grid article:nth-child(3) { background: var(--saffron-soft); }
.agenda-grid article:nth-child(4) { background: var(--coral-soft); }
.agenda-grid span { color: var(--coral); font-size: 10px; font-weight: 800; }
.agenda-grid h3 { margin: 22px 0 10px; font: 400 27px/1 var(--serif); }
.agenda-grid p { margin: 0; color: #40585b; font-size: 12px; line-height: 1.6; }

.cafe { min-height: 500px; display: grid; grid-template-columns: 1fr 1fr; color: var(--petrol-deep); background: var(--paper); overflow: hidden; }
.cafe-art { position: relative; min-height: 460px; padding: clamp(24px, 4vw, 64px); display: flex; align-items: center; justify-content: center; background: #f4eadb; }
.cafe-art img { width: 100%; height: auto; max-height: 560px; object-fit: contain; object-position: center; }
.cafe-copy { padding: var(--section-space) clamp(28px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.cafe-logo { width: 120px; height: 120px; margin-bottom: 28px; object-fit: contain; }
.cafe .section-label.light { color: var(--coral); }
.cafe h2 { color: var(--petrol); }
.cafe-copy > p:not(.section-label) { margin-top: 32px; color: #53666a; font-size: 17px; line-height: 1.72; }
.cafe-facts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.cafe-facts span { padding: 9px 11px; color: #6b2d12; background: #f6d998; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cafe-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.shop-intro { padding: var(--section-space) clamp(24px, 7vw, 110px); display: grid; grid-template-columns: 1.2fr .8fr auto; gap: clamp(32px, 6vw, 90px); align-items: end; color: var(--white); background: var(--petrol); }
.shop-intro h2 { margin: 0; color: var(--white); font: 400 clamp(42px, 5vw, 72px)/1.02 var(--serif); letter-spacing: -.035em; }
.shop-intro > p { margin: 0; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.7; }
.button-light { color: var(--petrol); background: var(--saffron); border-color: var(--saffron); white-space: nowrap; }
.text-link { margin-top: 22px; display: inline-flex; gap: 8px; color: var(--petrol); font-size: 11px; font-weight: 800; border-bottom: 1px solid rgba(7,63,71,.5); }

.support { text-align: center; background: var(--ivory); }
.support h2 { max-width: 900px; margin: 0 auto; }
.support-lead { max-width: 720px; margin: 30px auto 0; color: #53666a; font-size: 17px; line-height: 1.7; }
.support-grid { margin-top: var(--section-heading-gap); display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(87,42,20,.3); text-align: left; }
.support-grid article { padding: clamp(20px, 2.2vw, 30px); border-right: 1px solid rgba(87,42,20,.3); }
.support-grid article:nth-child(1) { background: var(--petrol-soft); }
.support-grid article:nth-child(2) { background: var(--saffron-soft); }
.support-grid article:nth-child(3) { background: var(--coral-soft); }
.support-grid article:last-child { border-right: 0; }
.support-grid span { color: var(--coral); font-size: 10px; font-weight: 800; }
.support-grid h3 { margin: 22px 0 12px; font: 400 28px/1 var(--serif); }
.support-grid p { margin: 0; color: #40585b; font-size: 13px; line-height: 1.6; }
.support-grid a { margin-top: 24px; display: inline-block; color: var(--petrol); font-size: 10px; font-weight: 800; border-bottom: 1px solid rgba(7,63,71,.45); }

.archive-main { max-width: 1280px; margin-inline: auto; padding: var(--section-space) clamp(22px, 6vw, 88px); }
.archive-home { margin-bottom: 16px; }
.archive-heading { max-width: 770px; }
.archive-heading h1 { margin-bottom: 16px; color: var(--petrol); font: 400 clamp(46px, 7vw, 92px)/.98 var(--serif); letter-spacing: -.035em; }
.archive-heading > p:last-child { margin: 0; color: #40585b; font-size: clamp(16px, 2vw, 20px); line-height: 1.6; }
.archive-figure { max-width: 800px; margin: var(--section-heading-gap) 0 0; }
.archive-figure img { display: block; width: 100%; height: auto; }
.archive-figure figcaption { margin-top: 8px; color: #53666a; font-size: 13px; line-height: 1.5; }
.archive-section { margin-top: var(--section-heading-gap); }
.archive-section h2 { margin-bottom: 16px; color: var(--petrol); font: 400 clamp(28px, 4vw, 47px)/1.08 var(--serif); }
.archive-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 12px; }
.archive-cards article { min-width: 0; padding: clamp(16px, 3vw, 27px); border: 1px solid rgba(7,63,71,.24); background: var(--white); overflow-wrap: anywhere; }
.archive-cards h3 { margin: 0 0 10px; color: var(--petrol); font: 400 26px/1.12 var(--serif); }
.archive-cards h3 a { text-decoration: underline; text-underline-offset: 3px; }
.archive-cards p:not(.card-label), .archive-empty { margin: 0; color: #40585b; font-size: 15px; line-height: 1.6; }
.archive-card-image { display: block; width: 100%; height: auto; margin-bottom: 14px; }
.archive-empty { padding: 16px; border-left: 4px solid var(--saffron); background: var(--ivory); }
.archive-section .pagination { margin-top: 20px; }
.archive-section .page-numbers { display: inline-block; margin-right: 8px; padding: 8px; }

.alejo-launcher { position: fixed; right: 24px; bottom: 22px; z-index: 45; min-width: 210px; padding: 10px 15px 10px 10px; display: flex; align-items: center; gap: 11px; color: var(--white); background: var(--petrol); border: 1px solid rgba(255,255,255,.28); box-shadow: 0 14px 36px rgba(5,47,53,.28); }
.alejo-launcher strong, .alejo-launcher small { display: block; }
.alejo-launcher strong { font-size: 11px; letter-spacing: .02em; }
.alejo-launcher small { margin-top: 3px; color: var(--petrol-soft); font-size: 9px; }
.alejo-avatar { width: 38px; height: 38px; flex: 0 0 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--petrol-deep); background: var(--saffron); border-radius: 50%; font: 700 21px/1 var(--serif); }
.alejo-panel { position: fixed; right: 24px; bottom: 22px; z-index: 60; width: min(410px, calc(100vw - 32px)); color: var(--petrol-deep); background: var(--ivory); border: 1px solid rgba(7,63,71,.28); box-shadow: 0 24px 70px rgba(5,47,53,.34); }
.alejo-panel > header { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; color: var(--white); background: var(--petrol); }
.alejo-identity { display: flex; align-items: center; gap: 11px; }
.alejo-identity strong, .alejo-identity small { display: block; }
.alejo-identity strong { font: 400 22px/1 var(--serif); }
.alejo-identity small { margin-top: 4px; color: var(--petrol-soft); font-size: 9px; }
.alejo-panel header button { width: 36px; height: 36px; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.35); font-size: 24px; cursor: pointer; }
.alejo-conversation { min-height: 220px; padding: 28px 26px; }
.alejo-kicker { margin-bottom: 12px; color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.alejo-conversation > p:not(.alejo-kicker) { color: #40585b; font-size: 15px; line-height: 1.65; }
.alejo-next { margin-top: 8px; min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; color: var(--white); background: var(--petrol); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.alejo-options { padding: 0 18px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.alejo-options button { min-height: 44px; padding: 8px 10px; color: var(--petrol); background: var(--white); border: 1px solid rgba(7,63,71,.3); font-size: 10px; font-weight: 800; cursor: pointer; }
.alejo-options button:hover, .alejo-options button:focus-visible { background: var(--saffron-soft); }
.alejo-note { margin: 0; padding: 13px 18px; color: #53666a; background: var(--petrol-soft); font-size: 9px; line-height: 1.5; }
.alejo-launcher[hidden], .alejo-panel[hidden], .alejo-next[hidden] { display: none; }

footer { min-height: 140px; padding: 28px clamp(24px, 4vw, 62px); display: grid; grid-template-columns: 240px 1fr auto auto; align-items: center; gap: 30px; color: var(--petrol-deep); background: var(--ivory); border-top: 1px solid rgba(7,63,71,.16); }
.footer-brand { display: block; }
.footer-brand img { display: block; width: 100%; height: auto; }
footer p { margin: 0; text-align: center; color: #53666a; font-size: 10px; }
.footer-site { color: var(--brown); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
footer > a:last-child { color: var(--petrol); font-size: 10px; font-weight: 700; }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.admin-bar .site-header { top: 32px; }

@media (max-width: 1180px) {
  :root { --anchor-offset: 170px; }
  .site-header { grid-template-columns: 220px 1fr; }
  .main-nav { justify-content: flex-start; }
  .commerce-nav { grid-column: 1 / -1; justify-content: flex-end; }
  .heritage-grid { grid-template-columns: repeat(3, 1fr); }
  .heritage-grid article { border-bottom: 1px solid rgba(87,42,20,.2); }
}

@media (max-width: 860px) {
  :root { --anchor-offset: 20px; }
  .site-header { position: relative; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .admin-bar .site-header { top: auto; }
  .brand { width: 205px; }
  .main-nav { display: flex; flex-wrap: wrap; gap: 0 16px; padding-top: 5px; overflow: visible; border-top: 1px solid rgba(87,42,20,.16); }
  .main-nav a { min-height: 40px; align-content: center; }
  .hero, .museum, .safeguarding, .visit, .cafe, .purpose-grid, .section-heading.split { grid-template-columns: 1fr; }
  .shop-intro { grid-template-columns: 1fr 1fr; }
  .shop-intro .button { grid-column: 1 / -1; width: fit-content; }
  .hero-visual { min-height: 560px; grid-row: 1; }
  .hero-copy { grid-row: 2; }
  .museum-image { min-height: 0; height: clamp(280px, 59vw, 470px); }
  .stories-grid, .heritage-grid, .publication-grid, .agenda-grid, .experience-grid, .support-grid, .commerce-route-grid { grid-template-columns: 1fr 1fr; }
  .stories-grid article { border-bottom: 1px solid rgba(7,63,71,.2); }
  .heritage-grid article:nth-child(3n), .experience-grid article, .agenda-grid article, .support-grid article { border-right: 1px solid rgba(87,42,20,.2); }
  .experience-grid article { border-bottom: 1px solid rgba(255,255,255,.28); }
  footer { grid-template-columns: 220px 1fr auto; }
  footer p { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}

@media (max-width: 560px) {
  :root { --section-space: 36px; }
  .main-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 6px; }
  .main-nav a { padding: 7px 1px; text-align: center; }
  .hero-visual { min-height: 410px; }
  .hero h1 { font-size: clamp(42px, 10vw, 55px); }
  .hero-actions, .button { width: 100%; }
  .purpose, .stories, .heritage, .research, .publications, .agenda, .support, .commerce-entry { padding: var(--section-space) 22px; }
  .museum-image { height: clamp(240px, 75vw, 390px); }
  .museum-copy, .safeguarding, .exhibitions, .visit-copy, .cafe-copy { padding: var(--section-space) 22px; }
  .purpose h2, .section-heading h2, .museum h2, .stories h2, .safeguarding h2, .exhibitions h2, .visit h2, .cafe h2, .support h2 { font-size: clamp(32px, 8vw, 42px); }
  .stories-grid, .heritage-grid, .publication-grid, .experience-grid, .agenda-grid, .support-grid, .commerce-route-grid, .shop-intro { grid-template-columns: 1fr; }
  .stories-grid article { border-right: 0; }
  .heritage-grid article { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 15px 18px; }
  .heritage-grid .icon-frame { grid-row: span 2; height: 72px; }
  .heritage-grid h3 { align-self: end; margin: 0 0 5px; font-size: 23px; }
  .heritage-grid p { align-self: start; }
  .heritage-grid article, .experience-grid article, .agenda-grid article, .support-grid article { border-right: 0; border-bottom: 1px solid rgba(87,42,20,.2); }
  .research-list article { grid-template-columns: 42px 1fr; }
  .research-list p { grid-column: 2; }
  .visit-cards { grid-template-columns: 1fr; }
  .visit-cards div { padding: 19px 22px; border: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .visit-cards strong { margin-top: 14px; }
  .cafe-art { min-height: 0; }
  .cafe-actions, .cafe-actions .button { width: 100%; }
  footer { grid-template-columns: 1fr; }
  footer p { grid-column: 1; grid-row: auto; }
  .footer-site { justify-self: start; }
  footer > a:last-child { justify-self: start; }
  .commerce-nav { justify-content: flex-start; }
  .commerce-nav a { flex: 1 1 0; min-width: 0; padding-inline: 5px; }
  .shop-intro .button { grid-column: auto; width: 100%; }
  .alejo-launcher { right: 14px; bottom: 14px; min-width: 0; padding: 6px 10px 6px 6px; gap: 7px; }
  .alejo-launcher small { display: none; }
  .alejo-panel { right: 16px; bottom: 16px; }
}

@media (max-width: 782px) {
  body.admin-bar :is(section[id], main[id]) { scroll-margin-top: calc(var(--anchor-offset) + 46px); }
}

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