/*
 * Guías — blog archive and article.
 *
 * The guides were recovered from the previous installation, so this sheet
 * deliberately adds no new design language: it reuses the tokens, the kicker
 * rule, the square corners and the single orange accent the rest of the site
 * already uses, and only supplies the shapes the catalog never needed
 * (a lead article, a reading column, a related strip).
 */

/* ---------------------------------------------------------------- Archive */

/* Same dark band as the tour catalog, but the photo comes from the newest
   guide, so the page restyles itself as the blog grows. */
.catalog-hero--guides {
	background:
		linear-gradient(rgba(8, 12, 10, .68), rgba(8, 12, 10, .58)),
		var(--guides-photo, none) center 48% / cover no-repeat,
		#24312f;
}
.catalog-hero--guides .catalog-hero__grid { grid-template-columns: 1.35fr .65fr; }

/* The newest guide gets the room a lead story deserves. */
.guide-lead { display: grid; grid-template-columns: 1.08fr .92fr; align-items: stretch; gap: 0; background: var(--white); }
.guide-lead__media { position: relative; display: block; overflow: hidden; min-height: 340px; background: #cdbca2; }
.guide-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2, .7, .2, 1); }
.guide-lead:hover .guide-lead__media img { transform: scale(1.035); }
.guide-lead__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 4vw, 64px); }
.guide-lead__body h2 { margin-bottom: 16px; font-size: clamp(2rem, 3.4vw, 3.3rem); }
.guide-lead__body h2 a { text-decoration: none; }
.guide-lead__body > p:not(.guide-meta) { max-width: 52ch; margin-bottom: 26px; color: var(--ink-soft); }
.guide-lead__more { align-self: start; font-size: .78rem; font-weight: 780; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.guide-lead__more span { display: inline-block; transition: transform .3s ease; }
.guide-lead:hover .guide-lead__more span { transform: translateX(5px); }

/* Meta line shared by the lead, the cards and the article header. */
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--orange-dark); font-size: .66rem; font-weight: 800; letter-spacing: .11em; line-height: 1.4; text-transform: uppercase; }
.guide-meta span + span::before { margin-right: 10px; content: '·'; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.guide-grid .entry-card { display: flex; min-width: 0; flex-direction: column; background: var(--white); }
.guide-grid .entry-card__media { aspect-ratio: 1.35; background: #cdbca2; }
.guide-grid .entry-card__media img { transition: transform .65s cubic-bezier(.2, .7, .2, 1); }
.guide-grid .entry-card:hover .entry-card__media img { transform: scale(1.035); }
.guide-grid .entry-card__body { display: flex; flex: 1; flex-direction: column; padding: 26px 26px 24px; }
.guide-grid .entry-card__body h2 { min-height: 2.2em; margin-bottom: 12px; font-size: clamp(1.35rem, 1.9vw, 1.72rem); }
/* Only the excerpt absorbs the slack when a neighbouring card has a taller
   title — without the exclusion the date line grows too and drifts away from
   the headline it belongs to. */
.guide-grid .entry-card__body > p:not(.guide-meta) { flex: 1; margin-bottom: 18px; color: var(--ink-soft); font-size: .88rem; }
.guide-grid .entry-card__more { padding-top: 16px; border-top: 1px solid var(--line); font-size: .72rem; font-weight: 780; text-decoration: none; }

/* ------------------------------------------------------------- Article */

.guide-article .page-hero--image { min-height: 540px; }
.guide-article .guide-meta { color: #e8c7ae; }
.guide-article .page-hero--compact .guide-meta { color: var(--orange-dark); }
.guide-article__hero-grid { max-width: 940px; }
.guide-article__hero-grid h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); }

/* A reading column, not a layout column: 68 characters is where the eye stops
   losing the line on a 500-word guide. */
.guide-article__body { max-width: 780px; margin-inline: auto; padding-block: clamp(56px, 7vw, 96px); }
/* The opening paragraph was written entirely in bold in most guides. As a
   standfirst it only needs the extra size, so the weight comes back down. */
.guide-article__body > p:first-of-type { color: var(--ink); font-size: 1.14rem; line-height: 1.6; }
.guide-article__body > p:first-of-type strong { font-weight: 500; }
.guide-article__body h2 { margin-top: 1.5em; margin-bottom: .5em; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.guide-article__body h3 { margin-top: 1.6em; margin-bottom: .6em; font-size: 1.3rem; font-weight: 700; }
.guide-article__body p, .guide-article__body li { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; }
.guide-article__body ul, .guide-article__body ol { padding-left: 1.15em; margin-bottom: 1.4em; }
.guide-article__body li { margin-bottom: .5em; }
.guide-article__body img { margin-block: 2em; }
.guide-article__body figure { margin: 2.4em 0; }
.guide-article__body figcaption { margin-top: 10px; color: var(--ink-soft); font-size: .8rem; }
.guide-article__body a { color: var(--orange-dark); font-weight: 600; }
.guide-article__body blockquote { padding-left: 26px; margin: 2em 0; border-left: 2px solid var(--orange); font-family: var(--serif); font-size: 1.25rem; font-style: normal; line-height: 1.5; }
.guide-article__body blockquote p { color: var(--ink); }
/* The old editor left inline colours and font sizes on nearly every paragraph;
   they fight the palette, so the page wins. */
.guide-article__body [style*='color'] { color: inherit !important; }
.guide-article__body h1[style], .guide-article__body h2[style], .guide-article__body h3[style] { font-size: inherit !important; background-color: transparent !important; }
.guide-article__body .wp-block-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; margin-block: 2.2em; }
.guide-article__body .wp-block-column > :last-child { margin-bottom: 0; }

/* Closing band: the guides exist to lead somewhere. */
.guide-cta { padding-block: clamp(56px, 7vw, 92px); background: var(--ink); color: var(--white); }
.guide-cta__grid { display: grid; grid-template-columns: 1.05fr minmax(300px, .95fr); align-items: end; gap: 48px; }
.guide-cta h2 { max-width: 22ch; margin-bottom: 0; font-size: clamp(2rem, 3.6vw, 3.4rem); }
.guide-cta p { max-width: 46ch; margin-bottom: 20px; color: rgba(255, 255, 255, .72); }

.guide-related { padding-block: clamp(56px, 7vw, 96px); background: var(--sand); }
.guide-related .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 38px; }

/* ---------------------------------------------------------- Responsive */

@media (max-width: 1100px) {
	.guide-grid, .guide-related .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.catalog-hero--guides .catalog-hero__grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 900px) {
	.guide-lead { grid-template-columns: 1fr; }
	.guide-lead__media { min-height: 0; aspect-ratio: 1.5; }
	.guide-cta__grid { grid-template-columns: 1fr; align-items: start; gap: 26px; }
	.guide-article .page-hero--image { min-height: 420px; }
	.guide-article__body .wp-block-columns { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 620px) {
	.guide-grid, .guide-related .guide-grid { grid-template-columns: 1fr; gap: 22px; }
	.guide-article__body { padding-block: 44px; }
	.guide-article__body > p:first-of-type { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
	.guide-lead__media img,
	.guide-grid .entry-card__media img,
	.guide-lead__more span { transition: none; }
	.guide-lead:hover .guide-lead__media img,
	.guide-grid .entry-card:hover .entry-card__media img,
	.guide-lead:hover .guide-lead__more span { transform: none; }
}

/* ------------------------------------------------------- Home page strip */

.guide-home__heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 12px; }
.guide-home__heading h2 { margin-bottom: 0; }
.guide-home__heading .text-link { flex: none; padding-bottom: 6px; }

@media (max-width: 900px) {
	.guide-home__heading { flex-direction: column; align-items: start; gap: 18px; }
}
