/* ═══════════════════════════════════════════════════════════════════
   CASTILLO ARQUITECTOS — guide pages (SEO content template)
   Loaded after main.css. Everything here is namespaced .guide-* so the
   rest of the site is untouched; header, footer, buttons and the gallery
   are main.css components used as-is.
   ═══════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

.page-guide {
    /* Body copy runs darker and larger than the site's 13.5px captions:
       these pages are read end to end, not glanced at. */
    --g-ink: #1f2d36;
    /* Breadcrumb and byline around the title. */
    --g-head-soft: #8f989e;
    /* Breadcrumb and byline in the header: quieter still, so the title and
       its subline carry the header. */
    --g-head-faint: #949ba0;
    /* Reading face for everything on the page except display headings. */
    --f-read: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Secondary text on this page runs a step darker than the site's
       caption grey: these pages are long reads. */
    --c-text-muted: #4a5862;
    --g-measure: 800px;
    --g-aside: 252px;
    --g-gap: clamp(2.5rem, 5vw, 5rem);
}

.guide-hero,
.guide-layout,
.guide-gallery,
.guide-explore { font-family: var(--f-read); }


/* Citation numbers stay out of the way of the line they sit on. */
.page-guide .cite { font-size: 0.66em; line-height: 0; vertical-align: super; margin-left: 0.12em; }
.page-guide .cite + .cite { margin-left: 0.3em; }
.page-guide .cite a { color: var(--c-gold-text) !important; font-weight: 500; text-decoration: none !important; }

/* No motion on guide pages: nothing fades in and images don't zoom on
   hover. */
.page-guide .gallery__item:hover img { transform: none; }

/* ─────────── Reading progress ─────────── */
.guide-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4px;
    z-index: 1200;
    background: var(--c-gold);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   Hero — a band of the project's real view under the site's white menu
   (the project pages' opening), then the copy on the warm page with two
   still motif plates rising from the band's lower edge on the right.
   Nothing is written on the photo.
   ═══════════════════════════════════════════ */
.guide-band {
    position: relative;
    height: 32vh;
    min-height: 240px;
    max-height: 330px;
    overflow: hidden;
    background: var(--c-navy);
}

.guide-band__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 72%;
}

/* Shade at the top only, for the menu. */
.guide-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 20, 27, 0.5) 0%, rgba(6, 20, 27, 0) 45%);
}

.guide-band .nav { z-index: 3; }
/* The menu carries a soft shadow over light photos; the current section stays white. */
.guide-band .nav--hero:not(.nav--scrolled) .nav__links a,
.guide-band .nav--hero:not(.nav--scrolled) .nav__lang { text-shadow: 0 1px 6px rgba(6, 20, 27, 0.7); }
.guide-band .nav--hero:not(.nav--scrolled) .nav__links a.is-active { color: #fff; }
.guide-band .nav--hero:not(.nav--scrolled) .nav__lang-btn--active { color: var(--c-gold-light); }

.guide-hero {
    position: relative;
    background: var(--c-warm-white);
    padding: clamp(2rem, 3vw, 2.6rem) 0 clamp(1.2rem, 1.8vw, 1.6rem);
}

.guide-hero__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 420px);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.guide-hero__copy { min-width: 0; }

/* The breadcrumb reads as the site's eyebrow. */
.guide-crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0;
    font-family: var(--f-sans);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-gold-text);
}

.guide-crumbs li { display: inline-flex; align-items: center; }

.guide-crumbs li + li::before {
    content: '/';
    margin: 0 0.75rem;
    opacity: 0.5;
    letter-spacing: 0;
}

.guide-crumbs a { transition: color 0.3s ease; }
.guide-crumbs a:hover { color: var(--c-navy); }
.guide-crumbs [aria-current] { color: var(--g-head-faint); }

.guide-hero__title {
    margin-top: 1rem;
    max-width: 19em;
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(1.95rem, 3.2vw, 2.85rem);
    line-height: 1.16;
    letter-spacing: -0.012em;
    color: var(--c-navy);
    text-wrap: balance;
}

.guide-hero__title em { font-style: italic; color: var(--c-gold-text); }

/* Subline and byline share one row under the title: the subline on the
   left, the byline on the right under the plates. */
.guide-hero__foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 3rem;
    margin-top: 1.1rem;
}

.guide-hero__sub {
    max-width: 34rem;
    font-family: var(--f-sans);
    font-size: 13.6px;
    line-height: 1.75;
    font-weight: 400;
    color: var(--g-ink);
}

.guide-byline {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-family: var(--f-read);
    font-size: 13px;
    line-height: 1.4;
    color: var(--c-text-soft);
}

.guide-byline > span:not(.guide-byline__avatar) + span::before { content: '\00B7'; margin: 0 0.75rem; }

/* The studio's mark on the favicon's brown. */
.guide-byline__avatar {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-right: 0.6rem;
    border-radius: 50%;
    background: #8f6e47;
    flex-shrink: 0;
}

.guide-byline__avatar img { width: 12px; height: 12px; object-fit: contain; }

/* Two plates, still, pulled up over the band's lower edge. */
.guide-hero__plates {
    position: relative;
    height: 100%;
    min-height: 130px;
}

.guide-hero__plate { transition: none; aspect-ratio: 4 / 3; }
.guide-hero__plate--1 { width: 62%; right: 30%; top: calc(-1 * clamp(4.5rem, 7vw, 6.5rem)); transform: rotate(-6deg); z-index: 2; }
.guide-hero__plate--2 { width: 52%; right: 0;   top: calc(-1 * clamp(1.5rem, 2.5vw, 2.4rem)); transform: rotate(5deg); z-index: 1; }

/* Key facts: one strip under the header, the way project pages open on their facts. */
.guide-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: clamp(0.4rem, 0.8vw, 0.7rem) max(2.5rem, calc((100vw - var(--max-w)) / 2 + 2.5rem)) clamp(1.4rem, 2vw, 1.8rem);
    background: var(--c-warm-white);
    font-family: var(--f-read);
}

.guide-facts__title {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: 1.15rem;
    line-height: 1.25;
    color: var(--c-navy);
}

.guide-facts__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(1.2rem, 2.4vw, 2.2rem);
    max-width: none;
    padding-top: clamp(0.9rem, 1.3vw, 1.15rem);
    border-top: 1px solid var(--c-line-light);
}

.guide-facts__row + .guide-facts__row {
    padding-left: clamp(1.2rem, 2.2vw, 2rem);
}

.guide-facts dt {
    font-family: var(--f-sans);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-gold-text);
    margin-bottom: 0.4rem;
}

.guide-facts dd {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--g-ink);
    font-weight: 400;
}

.guide-facts dd strong { font-weight: 600; color: var(--c-navy); }


/* The short answer opens the article: the whole page in one paragraph,
   set apart from the sections that follow by its larger serif type. */
.guide-answer {
    max-width: var(--g-measure);
}

.guide-answer__text {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(0.96rem, 1.28vw, 1.07rem);
    line-height: 1.75;
    color: var(--c-navy);
}

.guide-answer__text strong { font-weight: 400; color: inherit; }

/* ═══════════════════════════════════════════
   Layout — one reading column, one sticky rail
   ═══════════════════════════════════════════ */
.guide-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: clamp(1.8rem, 2.8vw, 2.5rem) 2.5rem clamp(4rem, 7vw, 6rem);
    display: grid;
    grid-template-columns: minmax(0, var(--g-measure)) var(--g-aside);
    justify-content: space-between;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "answer aside"
        "body   aside";
    column-gap: var(--g-gap);
    align-items: start;
}

/* On wide screens the text column moves in from the page edge, closing the
   gap to the rail; the rail stays where it is. */
@media (min-width: 1241px) {
    .guide-layout { padding-left: calc(2.5rem + clamp(0px, 4.5vw, 4.5rem)); }
}

.guide-answer { grid-area: answer; }

.guide-body { grid-area: body; min-width: 0; }

/* Space, but no rule, between the answer and the first section. */
.guide-body > .guide-section:first-child { margin-top: clamp(2.8rem, 4.5vw, 3.6rem); }

.guide-aside {
    grid-area: aside;
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* ─────────── Table of contents ─────────── */
.guide-toc__list {
    list-style: none;
    margin-top: 1.1rem;
    position: relative;
    border-left: 1px solid var(--c-line-light);
}

/* Gold track: fills as the reader moves through the article. */
.guide-toc__list::before {
    content: '';
    position: absolute;
    left: -1px; top: 0;
    width: 1px;
    height: calc(var(--toc-progress, 0) * 100%);
    background: var(--c-gold);
    transition: height 0.2s linear;
}

.guide-toc__list a {
    display: grid;
    grid-template-columns: 1.7rem 1fr;
    padding: 0.42rem 0 0.42rem 1rem;
    font-family: var(--f-sans);
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--c-text-muted);
    font-weight: 400;
    transition: color 0.25s ease;
}

.guide-toc__num {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 11px;
    color: var(--c-gold-text);
    padding-top: 1px;
}

.guide-toc__list a:hover,
.guide-toc__list a.is-active { color: var(--c-navy); }
.guide-toc__list a.is-active { font-weight: 500; }

/* ─────────── Rail: the site's inquiry panel (Community / Contacto) ───────────
   No border, a soft shadow, and one still motif plate tipped over its top
   right corner. */
.guide-rail-card.contact-form-panel {
    position: relative;
    margin-top: 1.4rem;
    padding: 1.35rem 1.25rem 1.2rem;
    border: none;
    box-shadow: 0 10px 30px rgba(12, 39, 53, 0.09);
}

.guide-rail-card__plate {
    width: 86px;
    top: -26px;
    right: -18px;
    transform: rotate(7deg);
    transition: none;
}

.guide-rail-card__title.contact-grid__heading { font-size: 1.08rem; line-height: 1.35; margin: 0 4.2rem 0.6rem 0; }

.guide-rail-card .contact-form-panel__hint { margin: 0; font-size: 12px; line-height: 1.6; }

/* The site's button (sheen and arrow included) in navy, across the card. */
.guide-rail-card__btn { display: flex; justify-content: center; width: 100%; margin-top: 1rem; padding: 0.85rem 1rem; }
.btn--navy { color: #fff; background: var(--c-navy); border-color: var(--c-navy); transition: box-shadow 0.8s ease; }
.btn--navy:hover { box-shadow: 0 0 20px 6px rgba(12, 39, 53, 0.22); }

.guide-rail-card .contact-detail { flex-direction: column; gap: 0.2rem; margin: 1rem 0 0; }
.guide-rail-card .contact-detail__label { min-width: 0; padding-top: 0; font-size: 8.5px; }
.guide-rail-card .contact-detail__value { font-size: 12px; overflow-wrap: anywhere; }

/* ═══════════════════════════════════════════
   Sections & prose
   ═══════════════════════════════════════════ */
/* Sections are separated by space alone. */
.guide-section {
    scroll-margin-top: 2rem;
    margin-top: clamp(5rem, 8.5vw, 7rem);
}

.guide-section:first-child { margin-top: 0; }

/* Closing blocks (contact, credits) sit closer to what precedes them. */
.guide-section--plain { margin-top: clamp(2.5rem, 4vw, 3.2rem); }

.guide-section > * + * { margin-top: 1.25rem; }
.guide-section > h3 + * { margin-top: 0.9rem; }
.guide-section > .guide-figure,
.guide-section > .guide-figure + :not(h3),
.guide-section > .guide-stats,
.guide-section > .guide-stats + :not(h3),
.guide-section > .guide-terms + :not(h3),
.guide-section > .guide-duo + :not(h3),
.guide-section > .guide-case,
.guide-section > .guide-case + :not(h3) { margin-top: 1.9rem; }

/* Section heading: the number and the title on one line, in solid navy. */
.guide-section h2 {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(1.4rem, 1.95vw, 1.68rem);
    line-height: 1.3;
    letter-spacing: -0.005em;
    color: var(--c-navy);
    max-width: var(--g-measure);
    text-wrap: balance;
}

.guide-section h2 em { font-style: normal; color: inherit; }

/* Section number above the title. */
.guide-h2__num {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0;
    color: var(--c-gold-text);
}


.guide-section h3 {
    margin-top: 3.4rem;
    font-family: var(--f-read);
    font-weight: 600;
    font-size: var(--g-h3);
    line-height: 1.35;
    color: var(--c-navy);
}

/* Two sizes for everything a reader reads: --g-body for text, --g-small for
   captions, credits, tables and sources. Headings have their own. */
.page-guide { --g-body: 14.5px; --g-small: 12px; --g-h3: 1rem; }

.guide-section p,
.guide-list li {
    max-width: var(--g-measure);
    font-size: var(--g-body);
    line-height: 1.75;
    font-weight: 400;
    color: var(--g-ink);
}

.guide-section strong { font-weight: 600; color: var(--c-navy); }

.guide-section p a:not(.arrow-link),
.guide-answer a,
.guide-list a,
.guide-table a,
.guide-faq a {
    color: var(--c-navy);
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: var(--c-gold);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

.guide-section p a:not(.arrow-link):hover,
.guide-answer a:hover,
.guide-list a:hover,
.guide-table a:hover,
.guide-faq a:hover { color: var(--c-gold-text); }
.guide-table th a { font-weight: inherit; }

/* Lead-in under an H2: the section's own answer, in the reading face. */
.guide-section .guide-lede {
    margin-top: 1rem;
    font-size: var(--g-body);
    line-height: 1.75;
    color: var(--g-ink);
}

/* ─────────── Lists ─────────── */
.guide-list { list-style: none; max-width: var(--g-measure); }

.guide-list li {
    position: relative;
    padding-left: 1.6rem;
}

.guide-list li + li { margin-top: 0.7rem; }

.guide-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 0.8rem;
    height: 1px;
    background: var(--c-gold);
}

/* Numbered steps: big serif numerals, bold lead, one short paragraph. */
.guide-steps {
    list-style: none;
    counter-reset: step;
    max-width: var(--g-measure);
}

.guide-steps > li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    padding: 1rem 0;
}


.guide-steps > li::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--f-display);
    font-weight: 300;
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--c-gold);
}

.guide-steps strong {
    display: block;
    font-size: var(--g-body);
    font-weight: 600;
    line-height: 1.4;
    color: var(--c-navy);
    margin-bottom: 0.3rem;
}

.guide-section .guide-steps p { font-size: var(--g-body); line-height: 1.75; }

/* ─────────── Table ─────────── */
.guide-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.guide-table table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: var(--g-small);
    line-height: 1.5;
}

.guide-table caption {
    caption-side: top;
    text-align: left;
    padding: 0 0 0.9rem;
    font-size: var(--g-small);
    color: var(--c-text-muted);
}

.guide-table th,
.guide-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--c-line-light);
}

.guide-table tr > :first-child { padding-left: 0; }

.guide-table thead th {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--c-navy);
    vertical-align: bottom;
    border-bottom: 1px solid var(--c-navy);
}

.guide-table tbody th {
    font-weight: 600;
    font-size: var(--g-small);
    color: var(--c-navy);
    width: 22%;
}

.guide-table td { color: var(--g-ink); font-weight: 400; }

/* The column the page argues for. */
.guide-table .is-pick { background: rgba(164, 127, 84, 0.07); color: var(--c-navy); font-weight: 400; }
.guide-table thead .is-pick { background: var(--c-navy); color: #fff; }

/* ─────────── Grid (2×2, a hairline over each item, no boxes) ─────────── */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 2.2rem;
}

.guide-grid__item {
    padding: 0.9rem 0 1rem;
}

.guide-grid__icon {
    width: 24px;
    height: 24px;
    color: var(--c-gold);
    margin-bottom: 0.8rem;
}

.guide-grid__item h3 {
    margin: 0 0 0.4rem;
    font-size: var(--g-h3);
}

.guide-section .guide-grid__item p {
    font-size: var(--g-body);
    line-height: 1.75;
    color: var(--c-text-muted);
}

/* ─────────── Timeline ─────────── */
.guide-timeline {
    list-style: none;
    position: relative;
    max-width: var(--g-measure);
    padding-left: 2.2rem;
}

.guide-timeline::before {
    content: '';
    position: absolute;
    left: 5px; top: 0.6rem; bottom: 0.6rem;
    width: 1px;
    background: linear-gradient(to bottom, var(--c-gold) 0%, rgba(164, 127, 84, 0.25) 100%);
}

.guide-timeline > li {
    position: relative;
    padding-bottom: 2.1rem;
}

.guide-timeline > li:last-child { padding-bottom: 0; }

/* Square node — the site's tile motif, drawn small. */
.guide-timeline > li::before {
    content: '';
    position: absolute;
    left: calc(-2.2rem + 1px);
    top: 0.42rem;
    width: 9px;
    height: 9px;
    background: var(--c-page-category-bg);
    border: 1px solid var(--c-gold);
    transform: rotate(45deg);
}

.guide-timeline > li:first-child::before { background: var(--c-gold); }

.guide-timeline__when {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-gold-text);
}

.guide-timeline h3 { margin: 0.35rem 0 0.4rem; }

.guide-section .guide-timeline p { font-size: var(--g-body); line-height: 1.75; }

.guide-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.guide-chips li {
    padding: 0.24rem 0.62rem;
    background: rgba(164, 127, 84, 0.12);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--c-gold-text);
}

/* ─────────── Terms: a label on the left, its explanation on the right.
   The left column reads like an index when skimming. ─────────── */
.guide-terms {
    max-width: var(--g-measure);
}

.guide-terms > div {
    display: grid;
    grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr);
    column-gap: 2rem;
    padding: 0.7rem 0;
}

.guide-terms dt {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--c-navy);
}

.guide-terms dd {
    font-size: 16px;
    line-height: 1.62;
    font-weight: 400;
    color: var(--g-ink);
}

/* ─────────── Figures: the number first, what it counts underneath ─────────── */
.guide-stats {
    display: flex;
    max-width: var(--g-measure);
    padding: 1.45rem 1.6rem 1.5rem;
    background: var(--c-warm-white);
}

.guide-stats > div {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 1.4rem;
}

.guide-stats > div:first-child { padding-left: 0; border-left: 0; }
.guide-stats > div:last-child { padding-right: 0; }

.guide-stats strong {
    display: block;
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(1.4rem, 2vw, 1.72rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--c-gold-text);
}

/* Four figures need a smaller number to stay on one line each. */
.guide-stats:has(> :nth-child(4)) { padding-left: 1.3rem; padding-right: 1.3rem; }
.guide-stats:has(> :nth-child(4)) > div { padding: 0 1rem; }
.guide-stats:has(> :nth-child(4)) > div:first-child { padding-left: 0; }
.guide-stats:has(> :nth-child(4)) > div:last-child { padding-right: 0; }
.guide-stats:has(> :nth-child(4)) strong { font-size: 1.22rem; white-space: nowrap; }

.guide-stats span:not(.cite) {
    display: block;
    margin-top: 0.5rem;
    font-size: 14px;
    line-height: 1.5;
    color: var(--c-text-muted);
}

/* ─────────── Duo: two cases side by side ─────────── */
.guide-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2.2rem;
    max-width: var(--g-measure);
}

.guide-duo > div {
    padding-top: 0.3rem;
}

.guide-duo strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--c-navy);
    margin-bottom: 0.3rem;
}

.guide-section .guide-duo strong a { font-weight: 400; }
.guide-section .guide-duo p { font-size: 16px; line-height: 1.62; }

/* ─────────── In practice: the studio's work next to the point it proves ─────────── */
.guide-case {
    max-width: var(--g-measure);
    padding-left: 1.5rem;
    border-left: 2px solid var(--c-gold);
}

.guide-section .guide-case p { margin-top: 0.5rem; font-size: 16px; line-height: 1.62; }

/* ─────────── Takeaway ─────────── */
.guide-takeaway {
    max-width: var(--g-measure);
    background: var(--c-warm-white);
    padding: 1.5rem 1.7rem 1.6rem;
}

.guide-takeaway ul {
    list-style: none;
    margin-top: 0.85rem;
}

.guide-takeaway li {
    position: relative;
    padding-left: 1.3rem;
    font-size: var(--g-body);
    line-height: 1.6;
    color: var(--c-navy);
    font-weight: 400;
}

.guide-takeaway li + li { margin-top: 0.5rem; }

.guide-takeaway li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.55em;
    width: 6px; height: 6px;
    background: var(--c-gold);
}

/* ─────────── Figures ─────────── */
.guide-figure img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    background: rgba(12, 39, 53, 0.05);
}

.guide-figure figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.65rem;
    font-size: var(--g-small);
    line-height: 1.45;
    color: var(--c-text-muted);
}

.guide-figure__credit {
    flex-shrink: 0;
    font-size: var(--g-small);
    color: var(--c-text-soft);
}

/* Drawings sit on paper, like the About page's plan. */
.guide-figure--drawing .guide-figure__frame {
    background: var(--c-warm-white-alt);
    padding: clamp(0.6rem, 1.4vw, 1rem);
}

.guide-figure--drawing img { background: transparent; mix-blend-mode: multiply; object-fit: contain; }

.guide-figure--pair .guide-figure__frame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(4px, 0.55vw, 10px);
}

.guide-figure--pair img { aspect-ratio: 4 / 5; object-fit: cover; height: 100%; }

/* ─────────── Bento ("Obras del estudio" band) ───────────
   Photo tiles with the project named over the image, one stat tile.
   4 columns: a 2×2 feature, then single and double-width tiles. */
.guide-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(clamp(160px, 14vw, 200px), auto);
    gap: clamp(6px, 0.8vw, 10px);
}

.guide-bento__tile {
    position: relative;
    overflow: hidden;
    background: var(--c-navy);
    display: flex;
    align-items: flex-end;
}

.guide-bento__tile--lg   { grid-column: span 2; grid-row: span 2; }
.guide-bento__tile--wide { grid-column: span 2; }

.guide-bento__tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-bento__tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 20, 27, 0.72) 0%, rgba(6, 20, 27, 0.32) 38%, transparent 65%);
}

.guide-bento__cap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: clamp(1rem, 1.8vw, 1.5rem);
    color: #fff;
}

.guide-bento__place {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

/* The studio's role on the project, word for word from the project page. */
.guide-bento__scope {
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

.guide-bento__name {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: 1.15rem;
    line-height: 1.25;
}

.guide-bento__tile--lg .guide-bento__name { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

.guide-bento__note {
    max-width: 34ch;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.guide-bento__tile:hover .guide-bento__name { color: var(--c-gold-light); }

.guide-bento__stat-tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: clamp(1rem, 1.8vw, 1.5rem);
    background-color: var(--c-warm-white);
}

.guide-bento__stat {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(1.6rem, 2.5vw, 2.3rem);
    line-height: 1;
    white-space: nowrap;
    color: var(--c-gold-text);
}

.guide-bento__stat-copy {
    font-size: 13px;
    line-height: 1.55;
    color: var(--c-text-muted);
}

/* The band's call to action, as the bento's last tile. */
.guide-bento__tile--cta {
    background-color: var(--c-navy);
    background-image: var(--footer-bg-shine), var(--footer-bg-gradient);
}

.guide-bento__tile--cta::after { display: none; }

.guide-bento__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: clamp(1.3rem, 2.4vw, 2rem);
    color: var(--c-warm-white);
}

.guide-bento__cta-title {
    max-width: 24ch;
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    line-height: 1.3;
    color: #fff;
}

.guide-bento__cta-title em { font-style: italic; color: var(--c-gold-light); }

/* Looks like the site's gold button; the whole tile is the link. */
.guide-bento__cta-btn {
    margin-top: 0.4rem;
    display: inline-flex;
    gap: 0.55rem;
    padding: 0.75rem 1.4rem;
    background: var(--c-gold);
    color: #fff;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    transition: box-shadow 0.4s ease;
}

.guide-bento__tile--cta:hover .guide-bento__cta-btn { box-shadow: 0 0 20px 6px rgba(164, 127, 84, 0.25); }

/* ─────────── Inline CTA (mirrors .related-cta) ─────────── */
.guide-cta-inline {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 1.6rem;
    background-color: var(--c-warm-white);
    color: var(--c-navy);
    transition: background-color 0.4s ease;
}

.guide-cta-inline:hover { background-color: var(--c-warm-white-alt); }

.guide-cta-inline__text { margin-right: auto; }

.guide-cta-inline__title {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    font-weight: 600;
    line-height: 1.35;
}

.guide-cta-inline__arrow {
    font-size: 1.3rem;
    color: var(--c-gold);
    transition: transform 0.35s ease;
}

.guide-cta-inline:hover .guide-cta-inline__arrow { transform: translateX(6px); }

/* ─────────── FAQ — always open ─────────── */
.guide-faq { max-width: var(--g-measure); }

/* Question and answer on one line, hairlines between. */
.guide-faq__item {
    padding: 1.3rem 0;
}

.guide-section .guide-faq h3 { margin: 0 0 0.5rem; font-size: var(--g-h3); }
.guide-section .guide-faq p { font-size: var(--g-body); line-height: 1.75; }

/* ─────────── Folds: long subsections (the legal ones) stay one tap away ─────────── */
.guide-section > .guide-fold + .guide-fold { margin-top: 0; }
.guide-fold { border-top: 1px solid var(--c-line-light); }
.guide-fold:has(+ :not(.guide-fold)),
.guide-fold:last-child { border-bottom: 1px solid var(--c-line-light); }

.guide-fold > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    cursor: pointer;
    list-style: none;
}

.guide-fold > summary::-webkit-details-marker { display: none; }
.guide-section .guide-fold > summary h3 { margin: 0; font-size: var(--g-h3); }
.guide-fold > summary::after { content: '+'; font-size: 1.35rem; line-height: 1; color: var(--c-gold); }
.guide-fold[open] > summary::after { content: '\2013'; }
.guide-fold__body { padding-bottom: 1.5rem; }
.guide-fold__body > * + * { margin-top: 1.25rem; }

/* ─────────── Closing CTA: one large photo, the copy over its left side ─────────── */
.guide-contact {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 420px;
    overflow: hidden;
    background-color: var(--c-navy);
    color: var(--c-warm-white);
}

.guide-contact > div {
    position: relative;
    z-index: 1;
    max-width: 480px;
    padding: clamp(1.8rem, 3.2vw, 2.8rem);
}

.guide-contact__media { position: absolute; inset: 0; margin: 0; }

.guide-contact__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-contact__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(80deg, rgba(6, 20, 27, 0.94) 0%, rgba(6, 20, 27, 0.8) 46%, rgba(6, 20, 27, 0.06) 84%);
}

.guide-section .guide-contact__title {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    line-height: 1.28;
    margin: 0.7rem 0 0.8rem;
    color: #fff;
}

.guide-section .guide-contact__title em { font-style: italic; color: var(--c-gold-light); }

.guide-section .guide-contact p {
    font-size: 15.5px;
    line-height: 1.6;
    color: rgba(245, 240, 235, 0.88);
}

.guide-contact .btn { white-space: nowrap; padding-left: 1.3rem; padding-right: 1.3rem; letter-spacing: 0.14em; line-height: 1.2; }

.guide-contact__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.2rem;
    margin-top: 1.3rem;
}

.guide-contact__actions a:not(.btn) {
    font-size: 13px;
    color: rgba(245, 240, 235, 0.85);
    border-bottom: 1px solid rgba(201, 160, 117, 0.5);
    padding-bottom: 1px;
    transition: color 0.3s ease;
}

.guide-contact__actions a:not(.btn):hover { color: var(--c-gold-light); }

/* ─────────── About this guide (author, dates, credits, sources) ─────────── */
.guide-about {
    background: var(--c-warm-white);
    padding: clamp(1.6rem, 3vw, 2.4rem);
}

.guide-about__author {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 1.1rem;
    align-items: start;
}

.guide-about__author img { width: 40px; height: 40px; object-fit: contain; }

.guide-section .guide-about__title {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    max-width: none;
}

.guide-section .guide-about__author p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--c-text-muted);
}

.guide-section .guide-about__author p strong { font-weight: 500; color: var(--c-navy); }

.guide-about__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 2.4rem;
    margin-top: 1.6rem;
    padding-left: calc(40px + 1.1rem);
}

.guide-about__meta dt {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-gold-text);
}

.guide-about__meta dd {
    margin-top: 0.2rem;
    font-size: 14px;
    color: var(--c-navy);
    font-weight: 400;
}

.guide-section .guide-about__notice {
    margin-top: 1.6rem;
    margin-left: calc(40px + 1.1rem);
    padding: 0.9rem 1.1rem;
    border-left: 2px solid var(--c-line-light);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--c-text-muted);
}
.guide-section .guide-about__notice strong { font-weight: 500; color: var(--c-navy); }

.guide-about__sources {
    margin-top: 1.6rem;
    padding-left: calc(40px + 1.1rem);
}

.guide-about__sources .guide-fold { border-bottom: 1px solid var(--c-line-light); }
.guide-about__sources > h3 { margin-top: 1.3rem !important; margin-bottom: 0.6rem !important; }
.guide-section .guide-about__sources h3 { margin: 0; font-family: var(--f-read); font-size: 14.5px; font-weight: 500; }

.guide-sources {
    padding-left: 1.4rem;
    font-weight: 400;
    font-size: var(--g-small);
    line-height: 1.55;
    color: var(--c-text-muted);
}

.guide-sources li + li { margin-top: 0.4rem; }
.guide-sources li::marker { color: var(--c-gold-text); }
.guide-sources a { color: var(--c-navy); border-bottom: 1px solid var(--c-line-light); transition: border-color 0.3s ease; }
.guide-sources a:hover { border-color: var(--c-gold); }

/* ═══════════════════════════════════════════
   After the article — gallery, next reads
   ═══════════════════════════════════════════ */
.guide-band-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2.2rem;
}

.guide-band-head h2 {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(1.35rem, 2.4vw, 1.95rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--c-navy);
    margin-top: 0.7rem;
}

.guide-band-head h2 em { font-style: italic; color: var(--c-gold-text); }

.guide-band-head__copy {
    margin-top: 0.8rem;
    max-width: 520px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--c-text-muted);
}

/* Mixed-project gallery: each frame says which project it is. */
.guide-gallery__item { position: relative; margin: 0; }

.guide-gallery__label {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 2.4rem 0.9rem 0.65rem;
    font-size: 11.5px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(to top, rgba(6, 20, 27, 0.62), rgba(6, 20, 27, 0));
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.related__label em { font-style: italic; color: var(--c-gold-text); }

.guide-gallery {
    background: var(--c-warm-white);
    padding: clamp(4.5rem, 7vw, 6.5rem) 0 clamp(2.4rem, 3.5vw, 3.2rem);
}

.guide-gallery .gallery__row { gap: clamp(4px, 0.5vw, 8px); }

.guide-gallery .photo-credit { padding-bottom: 0; }

/* ─────────── Where to go next: the project page's "Más en…" bento ───────────
   The site's .related band, project panels (.related-card) and outline CTA,
   with text-only guide cards set between the panels. */
.guide-explore { background: var(--c-page-category-bg); padding-top: clamp(3.8rem, 5.5vw, 5rem); }

.guide-explore__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    grid-auto-rows: minmax(220px, auto);
    gap: clamp(0.4rem, 0.75vw, 0.65rem);
}

.guide-explore__grid > .related-card { grid-column: auto; grid-row: auto; min-height: 220px; }
.guide-explore__grid > .related-cta { grid-column: auto; grid-row: auto; }

.guide-explore__grid--full {
    grid-template-areas:
        "p1 g1  p2"
        "p1 p3  g2"
        "g3 cta cta";
    grid-template-rows: 250px 250px auto;
}

.guide-explore__grid--full > :nth-child(1) { grid-area: p1; }
.guide-explore__grid--full > :nth-child(2) { grid-area: g1; }
.guide-explore__grid--full > :nth-child(3) { grid-area: p2; }
.guide-explore__grid--full > :nth-child(4) { grid-area: p3; }
.guide-explore__grid--full > :nth-child(5) { grid-area: g2; }
.guide-explore__grid--full > :nth-child(6) { grid-area: g3; }
.guide-explore__grid--full > :nth-child(7) { grid-area: cta; }

/* Project panels carry two styles only: the name, and one line with the
   country and the studio's role (word for word from the project page). */
.guide-explore__grid .related-card .h-panel__feature-title { margin-bottom: 0.3rem; font-size: 0.9rem; }
.guide-explore__grid .related-card:nth-child(1) .h-panel__feature-title { font-size: 1.1rem; }

.guide-explore__meta {
    display: block;
    font-family: var(--f-sans);
    font-size: 10px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

/* Guide cards: the title and link on the warm page color, the guide's photo
   below them with the beige fading into its top edge. The wide card (bottom
   row) sets the photo on the left, clean, with no fade. */
.guide-explore__guide {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    overflow: hidden;
    background: var(--c-warm-white);
    color: var(--c-navy);
}

.guide-explore__body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1.2rem 1.2rem 0.4rem;
}

.guide-explore__media {
    position: relative;
    flex: 1 1 52%;
    min-height: 0;
    overflow: hidden;
    background: var(--c-navy);
}

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

.guide-explore__media::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 55%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, var(--c-warm-white) 0%, rgba(245, 240, 235, 0.55) 45%, rgba(245, 240, 235, 0) 100%);
}

.guide-explore__grid--full > .guide-explore__guide:nth-child(6) { flex-direction: row-reverse; }
.guide-explore__grid--full > .guide-explore__guide:nth-child(6) .guide-explore__body { flex: 1; justify-content: center; padding: 1.4rem 1.6rem; }
.guide-explore__grid--full > .guide-explore__guide:nth-child(6) .guide-explore__media { flex: 0 0 42%; }
.guide-explore__grid--full > .guide-explore__guide:nth-child(6) .guide-explore__media::before { content: none; }

.guide-explore__title {
    margin: 0;
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(0.95rem, 1.25vw, 1.08rem);
    line-height: 1.38;
    color: var(--c-navy);
    text-wrap: balance;
    transition: color 0.3s ease;
}

.guide-explore__guide:hover .guide-explore__title { color: var(--c-gold-text); }

/* The CTA in the footer's navy, white and gold on it. */
.guide-explore__cta.related-cta {
    border: none;
    background-color: var(--c-navy);
    background-image: var(--footer-bg-shine), var(--footer-bg-gradient);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: #fff;
    transition: box-shadow 0.4s ease;
}

.guide-explore__cta.related-cta:hover { background-color: var(--c-navy); box-shadow: 0 14px 34px rgba(12, 39, 53, 0.22); }
.guide-explore__cta.related-cta { padding: clamp(1.5rem, 2.4vw, 2.1rem) clamp(1.6rem, 2.6vw, 2.4rem); }
.guide-explore__cta-text { display: flex; flex-direction: column; gap: 0.55rem; margin-right: auto; }
.guide-explore__cta .related-cta__eyebrow { color: var(--c-gold-light); font-size: 8.5px; }
.guide-explore__guide .arrow-link { font-size: 8.5px; }
.guide-explore__cta .related-cta__title { margin: 0; color: #fff; font-size: clamp(1.02rem, 1.53vw, 1.28rem); }
.guide-explore__cta .related-cta__arrow { font-size: 1.5rem; }

/* ─────────── Project strip: three studio views in a row, inside the article ─────────── */
.guide-strip {
    max-width: var(--g-measure);
    margin: clamp(3.5rem, 6vw, 5rem) 0 0;
}

.guide-strip__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

/* The strip's label reads as a heading, its link at full size. */
.guide-strip__head .eyebrow {
    font-family: var(--f-display);
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: -0.005em;
    text-transform: none;
    color: var(--c-navy);
}

.guide-strip__head .arrow-link { font-size: 11px; }

.guide-strip__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.4rem, 0.75vw, 0.65rem);
}

.guide-strip__item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--c-navy);
}

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

.guide-strip__label {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 3rem 0.95rem 0.8rem;
    font-family: var(--f-sans);
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(to top, rgba(6, 20, 27, 0.62), rgba(6, 20, 27, 0));
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 1240px) {
    .page-guide { --g-aside: 250px; --g-gap: 3.5rem; }
    .guide-layout { grid-template-columns: minmax(0, 1fr) var(--g-aside); justify-content: normal; }
}

@media (max-width: 1024px) {
    .guide-hero__inner { padding-left: 1.5rem; padding-right: 1.5rem; }

    .guide-layout {
        grid-template-columns: minmax(0, 1fr);
        justify-content: normal;
        grid-template-areas: "answer" "aside" "body";
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* The rail becomes a plain contents box between the answer and the
       article. The sticky CTA goes: inline CTAs carry the job here. */
    .guide-aside {
        position: static;
        margin: 2.5rem 0 3rem;
        padding: 1.4rem 1.4rem 1.2rem;
        border: 1px solid var(--c-line-light);
        background: #fff;
    }

    .guide-rail-card { display: none; }

    .guide-toc__list::before { display: none; }

    .guide-body > .guide-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }
}

@media (max-width: 900px) {
    .guide-facts { grid-template-columns: minmax(0, 1fr); row-gap: 1.2rem; }
    .guide-facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
    .guide-facts__row:nth-child(odd) { padding-left: 0; border-left: 0; }

    .guide-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(clamp(170px, 34vw, 240px), auto); }
    .guide-bento__tile--lg,
    .guide-bento__tile--wide { grid-column: 1 / -1; }
    .guide-bento__tile--lg { grid-row: span 2; }


    .guide-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .guide-hero__foot { flex-direction: column; align-items: flex-start; }
    /* Plates go first, small, tucked against the band's edge on the right. */
    .guide-hero__plates { order: -1; height: 96px; min-height: 0; width: min(300px, 70%); margin-left: auto; }
    .guide-band { height: 26vh; min-height: 200px; }

    .guide-explore__grid { grid-template-columns: 1fr 1fr; }
    .guide-explore__grid--full {
        grid-template-areas:
            "p1  p1"
            "g1  p2"
            "p3  g2"
            "g3  g3"
            "cta cta";
        grid-template-rows: 300px 230px 230px auto auto;
    }
}

@media (max-width: 640px) {
    .guide-hero { padding-top: 1.5rem; }
    .guide-hero__title { font-size: 2.05rem; }
    .guide-facts { padding-left: 1.5rem; padding-right: 1.5rem; }
    .guide-facts__list { grid-template-columns: minmax(0, 1fr); }
    .guide-facts__row + .guide-facts__row { padding-left: 0; border-left: 0; }
    .guide-contact > div { max-width: none; }
    .guide-contact__media::after { background: linear-gradient(0deg, rgba(6, 20, 27, 0.92) 0%, rgba(6, 20, 27, 0.68) 60%, rgba(6, 20, 27, 0.2) 100%); }
    .guide-about__meta,
    .guide-about__sources { padding-left: 0; }
    .guide-section .guide-about__notice { margin-left: 0; }


    .guide-grid { grid-template-columns: 1fr; }
    .guide-duo { grid-template-columns: 1fr; row-gap: 1.6rem; }
    .guide-terms > div { grid-template-columns: minmax(0, 1fr); row-gap: 0.3rem; }
    .guide-stats { flex-wrap: wrap; row-gap: 1.2rem; }
    .guide-stats > div { flex: 1 1 calc(50% - 1px); padding: 0 1rem 0 0; border-left: 0; }
    .guide-stats:has(> :nth-child(4)) > div { padding: 0 1rem 0 0; }
    .guide-figure img { max-height: none; }


    .guide-figure figcaption { flex-direction: column; gap: 0.2rem; }

    /* Table → one card per row, so the recommended column never scrolls
       out of view. Each cell names its column from data-label. */
    .guide-table { overflow: visible; border: none; background: transparent; }
    .guide-table table { min-width: 0; }
    .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .guide-table tbody, .guide-table tr, .guide-table th, .guide-table td { display: block; width: auto; }
    .guide-table tbody tr { background: #fff; border: 1px solid var(--c-line-light); margin-bottom: 0.6rem; }
    .guide-table tbody th { padding: 0.9rem 1.1rem 0.5rem; border-bottom: none; font-size: 1rem; width: auto; }
    .guide-table td { padding: 0.55rem 1.1rem 0.7rem; border-bottom: none; }
    .guide-table tbody tr:last-child > * { border-bottom: none; }
    .guide-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 11.5px;
        font-weight: 500;
        color: var(--c-text-soft);
        margin-bottom: 0.15rem;
    }
    .guide-table td.is-pick::before { color: var(--c-gold-text); }

    .guide-contact .btn { width: 100%; justify-content: center; text-align: center; }

    .guide-cta-inline { padding: 1.1rem 1.2rem; }

    .guide-gallery__label { font-size: 10.5px; padding: 1.6rem 0.55rem 0.4rem; }

    .guide-explore__grid,
    .guide-explore__grid--full { grid-template-columns: 1fr; grid-template-areas: none; grid-template-rows: none; grid-auto-rows: auto; }
    .guide-explore__grid--full > :nth-child(n) { grid-area: auto; }
    .guide-explore__grid > .related-card { min-height: 250px; }
    .guide-explore__grid--full > .guide-explore__guide:nth-child(6) { flex-direction: column; }
    .guide-explore__grid--full > .guide-explore__guide:nth-child(6) .guide-explore__media { flex: 0 0 170px; }
    .guide-explore__grid--full > .guide-explore__guide:nth-child(6) .guide-explore__media::before {
        content: '';
        inset: 0 0 auto 0; width: auto; height: 55%;
        background: linear-gradient(180deg, var(--c-warm-white) 0%, rgba(245, 240, 235, 0.55) 45%, rgba(245, 240, 235, 0) 100%);
    }
    .guide-explore__guide { min-height: 260px; }

    /* The photos leave the article's margins and run edge to edge; the heading stays aligned with the text. */
    .guide-strip__head { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
    .guide-strip__row { grid-template-columns: repeat(3, 72%); width: 100vw; margin-left: calc(50% - 50vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .guide-strip__row::-webkit-scrollbar { display: none; }
    .guide-strip__item { scroll-snap-align: start; }

    .guide-band-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .guide-progress { display: none; }
}

/* The title's accent, as the site's page headers set it. */
.guide-hero__title em { font-style: italic; color: var(--c-gold-text); }

/* "Keep exploring" with only 3 cards + contact (guides whose related guides aren't live yet):
   the contact card fills the empty slot. Added by seo/prepare_publish.py as .guide-explore__cta--fill. */
.guide-explore__grid--full > .guide-explore__cta--fill { grid-area: 2 / 2 / 3 / 4; }
@media (max-width: 900px) { .guide-explore__grid--full > .guide-explore__cta--fill { grid-area: 3 / 1 / 4 / 3; } }
@media (max-width: 640px) { .guide-explore__grid--full > .guide-explore__cta--fill { grid-area: auto; } }
