/* =========================================================
   Wherever Magazine — Site CSS
   ========================================================= */

:root {
    --gold:       #C8A96E;
    --black:      #111111;
    --off-black:  #1a1a1a;
    --mid-grey:   #666666;
    --light-grey: #E8E8E8;
    --bg:         #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-w:      1200px;
    --gap:        2rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--off-black);
    background: var(--bg);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--light-grey);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-logo img { height: 36px; width: auto; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--off-black);
    transition: color 0.15s;
}
.nav-link:hover { color: var(--gold); }

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--light-grey);
    min-width: 160px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.nav-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: var(--mid-grey);
    transition: color 0.15s, background 0.15s;
}
.nav-dropdown a:hover { color: var(--gold); background: #fafafa; }

.nav-item.has-dropdown:hover .nav-dropdown { display: block; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--off-black);
    transition: transform 0.2s;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: var(--black);
}

.hero-link { display: block; height: 100%; }

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.65;
    transition: opacity 0.3s;
}
.hero:hover .hero-image { opacity: 0.55; }
.hero-image--empty { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); opacity: 1; }

.hero--empty { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero--brand .hero-brand-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-brand-logo {
    width: clamp(180px, 28vw, 380px);
    height: auto;
    filter: drop-shadow(0 2px 24px rgba(0,0,0,.4));
}

.hero-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem max(1.5rem, calc((100% - var(--max-w)) / 2 + 1.5rem));
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    color: #fff;
}

.hero-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    max-width: 720px;
    color: #fff;
}

.hero-subtitle {
    margin-top: 0.75rem;
    font-size: 1.0625rem;
    color: rgba(255,255,255,.8);
    max-width: 600px;
}

/* ── Sections ────────────────────────────────────────────── */
.section-latest,
.section-category {
    padding: 3rem 1.5rem;
    border-bottom: 1px solid var(--light-grey);
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--gold);
}

.section-more {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mid-grey);
    transition: color 0.15s;
}
.section-more:hover { color: var(--gold); }

/* ── Article Grid ────────────────────────────────────────── */
.article-grid {
    display: grid;
    gap: var(--gap);
}
.article-grid--3 { grid-template-columns: repeat(3, 1fr); }
.article-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ── Article Card ────────────────────────────────────────── */
.article-card { display: flex; flex-direction: column; }

.card-image-link {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--light-grey);
    margin-bottom: 1rem;
}
.card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .card-image-link img { transform: scale(1.03); }

.card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}

.card-body { flex: 1; display: flex; flex-direction: column; }

.card-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}
.card-category:hover { text-decoration: underline; }

.card-title {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.card-title a:hover { color: var(--gold); }

/* Latest section: keep titles to a single line, truncated with … if long. */
.section-latest .card-title {
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
}

.card-subtitle,
.card-excerpt {
    font-size: 0.875rem;
    color: var(--mid-grey);
    line-height: 1.55;
    margin-top: 0.25rem;
}

.article-card--large .card-image-link { aspect-ratio: 3/2; }
.article-card--large .card-title { font-size: 1.25rem; }

.article-card--small .card-image-link { aspect-ratio: 4/3; }
.article-card--small .card-title { font-size: 0.9375rem; }

/* ── Newsletter CTA ──────────────────────────────────────── */
.newsletter-cta {
    padding: 4rem 1.5rem;
    max-width: var(--max-w);
    margin: 0 auto;
}

.newsletter-inner {
    background: var(--black);
    color: #fff;
    padding: 3rem;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.newsletter-inner h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.newsletter-inner p {
    color: rgba(255,255,255,.7);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 0.9375rem;
    outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { border-color: var(--gold); }

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--gold);
    color: #fff;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.15s;
}
.newsletter-form button:hover { opacity: 0.88; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--black);
    color: rgba(255,255,255,.75);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-logo { margin-bottom: 2.5rem; }
.footer-logo img { height: 28px; }

.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-nav-group { display: flex; flex-direction: column; gap: 0.4rem; }

.footer-nav-heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.25rem;
}
.footer-nav-group a {
    font-size: 0.8125rem;
    color: rgba(255,255,255,.5);
    transition: color 0.15s;
}
.footer-nav-group a:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
}

.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: rgba(255,255,255,.5); transition: color 0.15s; }
.footer-social a:hover { color: var(--gold); }

.footer-copy { color: rgba(255,255,255,.35); margin-left: auto; }

/* ── Article page (stub) ─────────────────────────────────── */
.article-header {
    max-width: 760px;
    margin: 3rem auto 0;
    padding: 0 1.5rem;
}
.article-category-link {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.article-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.625rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.article-subtitle {
    font-size: 1.125rem;
    color: var(--mid-grey);
    margin-bottom: 1.5rem;
    font-style: italic;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.8125rem;
    color: var(--mid-grey);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-grey);
}
.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.article-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.article-featured-image {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.article-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}
.article-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--off-black);
}
.article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}
.article-body h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body img { margin: 2rem auto; max-width: 100%; }
.article-body a { color: var(--gold); text-decoration: underline; }
.article-body blockquote {
    border-left: 3px solid var(--gold);
    margin: 2rem 0;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--off-black);
}

/* My Place: intro text was too large. */
.article-page--my-place .article-subtitle { font-size: 0.9375rem; }

/* ── Photo credit / copyright line, bottom of article ───────────────────── */
.article-photo-credit {
    max-width: 720px;
    margin: -2.5rem auto 3rem;
    padding: 0 1.5rem;
    font-size: 0.75rem;
    color: var(--mid-grey);
    font-style: italic;
}

/* ── Photo grids (Seen-style event roundups) ────────────────────────────── */
.article-body .wm-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 0 0 2.5rem;
}
.article-body .wm-photo-grid figure { margin: 0; }
.article-body .wm-photo-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin: 0;
    border-radius: 2px;
    display: block;
}
.article-body .wm-photo-grid figcaption {
    font-size: 0.75rem;
    color: var(--mid-grey);
    margin-top: 0.35rem;
    line-height: 1.3;
}

/* ── Article page: side list of other articles from the same section ──── */
.article-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 3rem;
    align-items: start;
}
.article-layout .article-header,
.article-layout .article-featured-image,
.article-layout .article-body { padding-left: 0; padding-right: 0; }
.article-sidebar {
    border-top: 3px solid var(--off-black);
    padding-top: 1.25rem;
    margin-top: 3rem;
}
.article-sidebar-heading {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    margin-bottom: 1rem;
}
.article-sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.article-sidebar-link {
    display: flex; align-items: center; gap: 0.75rem;
    color: var(--off-black); text-decoration: none;
}
.article-sidebar-link:hover span { color: var(--gold); }
.article-sidebar-link img {
    width: 64px; height: 64px; object-fit: cover; flex-shrink: 0;
}
.article-sidebar-link span {
    font-size: 0.875rem; font-weight: 600; line-height: 1.35;
}
.article-sidebar-more {
    display: inline-block; margin-top: 1.25rem;
    font-size: 0.8125rem; font-weight: 600; color: var(--gold);
}

@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { max-width: 720px; margin-left: auto; margin-right: auto; }
}

/* ── 404 ─────────────────────────────────────────────────── */
.not-found {
    text-align: center;
    padding: 8rem 1.5rem;
}
.not-found h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1rem;
}
.not-found p { color: var(--mid-grey); margin-bottom: 2rem; }
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--black);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.15s;
}
.btn:hover { background: var(--gold); }

/* ── Category page ───────────────────────────────────────── */
.category-header {
    padding: 3rem 1.5rem 2rem;
    max-width: var(--max-w);
    margin: 0 auto;
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: 2rem;
}
.category-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}
.category-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
}
.category-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* Optional intro/editorial text at the top of a category page (e.g. The
   Schools Guide), shares the article-body reading typography. */
.category-intro {
    max-width: 720px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--off-black);
}
.category-intro h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}
.category-intro h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}
.category-intro p { margin-bottom: 1.25rem; }
.category-intro a { color: var(--gold); text-decoration: underline; }
.category-intro blockquote {
    border-left: 3px solid var(--gold);
    margin: 2rem 0;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--off-black);
}
.category-intro-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}
.category-intro-author img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.category-intro-author-text { display: flex; flex-direction: column; }
.category-intro-author-text strong { font-family: var(--font-serif); font-size: 1rem; }
.category-intro-author-text span { font-size: 0.8125rem; color: var(--mid-grey); }
.category-intro-author-text a { font-size: 0.8125rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .article-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .footer-nav { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .main-nav { display: none; }
    .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--light-grey); padding: 1rem; gap: 0; }
    .nav-toggle { display: flex; }
    .nav-dropdown { position: static; box-shadow: none; border: none; padding-left: 1rem; }
    .nav-item.has-dropdown .nav-dropdown { display: block; }
    .article-grid--3 { grid-template-columns: 1fr; }
    .article-grid--2 { grid-template-columns: 1fr; }
    .hero { height: 420px; }
    .newsletter-form { flex-direction: column; }
    .footer-nav { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .footer-copy { margin-left: 0; }
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 0 1rem;
    font-size: 0.875rem;
    color: var(--mid-grey);
}
.pagination-link {
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--off-black);
    transition: color 0.15s;
}
.pagination-link:hover { color: var(--gold); }

/* ── Banners / house ads ─────────────────────────────────────────────── */
/* Every banner occupies a fixed-height band, whatever the creative is.
   Artwork keeps its own shape and is centred — never cropped or stretched.
   A per-creative background colour (below) fills the band on wide screens
   instead of leaving bare page background beside the artwork. */
.wm-banner { margin: 0 auto; max-width: var(--max-w); height: 100px;
             display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wm-banner-slide { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.wm-banner-slide a { display: flex; align-items: center; justify-content: center;
               width: 100%; height: 100%; text-decoration: none; color: inherit; }
.wm-banner-slide img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
/* Custom-HTML house ads fill the band so their background covers it. */
.wm-banner-slide > :not(img), .wm-banner-slide a > :not(img) {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
}
.wm-banner--home_top { max-width: none; }
.wm-banner--issues_top { margin-bottom: 2rem; }

/* Per-creative background colour, matched to each banner's own edge tone,
   so the band blends into the page while the image loads (and behind any
   creative that isn't a perfect 8:1 fit). */
.wm-banner-slide:has(img[src*="banners-tft-2026-wm-800x100-1"]) { background-color: #07070a; }
.wm-banner-slide:has(img[src*="haier-banner"])   { background-color: #000000; }
.wm-banner-slide:has(img[src*="colunex-banner"]) { background-color: #0b0909; }
.wm-banner-slide:has(img[src*="terapia-banner"]) { background-color: #efebe2; }
.wm-banner-slide:has(img[src*="ivens-banner"])   { background-color: #837e7c; }

/* Two or more banners in one slot: stack the slides and fade between them
   (site.js swaps which one carries .is-active) instead of showing all at once. */
.wm-banner-rotator { position: relative; }
.wm-banner-rotator .wm-banner-slide {
    position: absolute; inset: 0; opacity: 0; pointer-events: none;
    transition: opacity .6s ease;
}
.wm-banner-rotator .wm-banner-slide.is-active { opacity: 1; pointer-events: auto; }

/* Phones: shorten the band so a wide banner fills it snugly instead of
   floating in a tall strip of empty space above and below. */
@media (max-width: 600px) {
    .wm-banner { height: 60px; }
}

/* ── Static pages (Advertise, Contact, Privacy, …) ───────────────────── */
.static-page { max-width: 760px; padding-top: 3rem; padding-bottom: 4rem; }
.static-page-header { margin-bottom: 2rem; border-bottom: 1px solid var(--light-grey); padding-bottom: 1.25rem; }
.static-page-title { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.1; }
.static-page-body h2 { font-family: var(--font-serif); font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
.static-page-body p, .static-page-body li { line-height: 1.7; margin-bottom: 1rem; color: var(--off-black); }
.static-page-body ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.static-page-body blockquote { border-left: 3px solid var(--gold); padding: .25rem 0 .25rem 1.25rem; margin: 1.5rem 0; font-style: italic; font-size: 1.5rem; line-height: 1.4; color: var(--off-black); }
.static-page-body blockquote cite { display: block; font-style: normal; font-weight: 600; color: var(--off-black); margin-top: .5rem; }
.page-lead { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.4; color: var(--off-black); margin-bottom: 1.25rem !important; }
.page-fineprint { font-size: .8125rem; color: var(--mid-grey); margin-top: 2rem; }
.wm-list { list-style: none; padding-left: 0 !important; }
.wm-list li { padding-left: 1.4rem; position: relative; }
.wm-list li::before { content: "→"; position: absolute; left: 0; color: var(--gold); }

.page-btn { display: inline-block; background: var(--black); color: #fff; padding: .75rem 1.5rem; font-family: var(--font-sans); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; margin: .35rem .5rem .35rem 0; transition: background .15s; }
.page-btn:hover { background: var(--gold); }
.page-btn--outline { background: transparent; color: var(--black); border: 1.5px solid var(--black); }
.page-btn--outline:hover { background: var(--black); color: #fff; }

/* Contact form */
.wm-form { margin: 1.5rem 0 2.5rem; max-width: 520px; }
.wm-field { margin-bottom: 1.1rem; }
.wm-field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mid-grey); margin-bottom: .35rem; }
.wm-form input[type=text], .wm-form input[type=email], .wm-form select, .wm-form textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--light-grey); font-family: var(--font-sans); font-size: .95rem; outline: none; }
.wm-form input:focus, .wm-form select:focus, .wm-form textarea:focus { border-color: var(--gold); }
.wm-check { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; color: var(--mid-grey); margin-bottom: 1.1rem; }
.wm-check input { margin-top: .2rem; }

/* ── Issues index ────────────────────────────────────────────────────── */
.issues-page { padding-top: 3rem; padding-bottom: 4rem; }
.issues-header { text-align: center; margin-bottom: 1.75rem; }
.issues-title { font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 3.25rem); }
.issues-intro { color: var(--mid-grey); margin-top: .5rem; }
.issues-chooser { display: inline-flex; gap: .35rem; padding: .35rem; background: #f3f1ec; border-radius: 999px; margin: 0 auto 2.5rem; }
.issues-page .issues-chooser { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
.issues-chooser-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.35rem; border-radius: 999px; font-family: var(--font-sans); font-size: .9rem; font-weight: 600; letter-spacing: .02em; color: var(--off-black); text-decoration: none; transition: background .15s, color .15s; }
.issues-chooser-btn:hover { color: var(--gold); }
.issues-chooser-btn.is-active { background: var(--black); color: #fff; }
.issues-chooser-count { font-size: .72rem; opacity: .7; font-weight: 500; }
.issues-chooser-btn.is-active .issues-chooser-count { color: var(--gold); opacity: 1; }

.issues-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; }
.issues-grid--guides { grid-template-columns: repeat(3, 1fr); max-width: 840px; margin: 0 auto; }
.issue-card { text-decoration: none; color: inherit; display: block; }
.issue-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #ece8e1; box-shadow: 0 6px 22px rgba(0,0,0,.14); transition: transform .2s, box-shadow .2s; }
.issue-card:hover .issue-cover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.issue-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.issue-cover--placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.issue-cover--placeholder span { font-family: var(--font-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--mid-grey); font-size: .9rem; }
.issue-meta { margin-top: .9rem; }
.issue-edition { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.issue-title { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.25; margin-bottom: .35rem; }
.issue-cta { font-size: .78rem; color: var(--mid-grey); }
.issue-card:hover .issue-cta { color: var(--gold); }
.issue-pages { font-size: .72rem; color: var(--mid-grey); opacity: .75; white-space: nowrap; }
.issue-pages::before { content: '·'; margin: 0 .35rem; }
.issues-empty { grid-column: 1 / -1; text-align: center; color: var(--mid-grey); padding: 3rem 0; }

/* Issue detail */
.issue-detail { max-width: 900px; padding-top: 3rem; padding-bottom: 4rem; }
.issue-detail-grid { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; }
.issue-detail-cover img { width: 100%; height: auto; box-shadow: 0 8px 26px rgba(0,0,0,.18); }
.issue-detail-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: .3rem 0 1.1rem; }

@media (max-width: 900px) {
  .issues-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .issues-grid, .issues-grid--guides { grid-template-columns: repeat(2, 1fr); }
  .issue-detail-grid { grid-template-columns: 1fr; }
  .issue-detail-cover { max-width: 240px; margin: 0 auto; }
}

/* Contact form: honeypot + submit feedback */
.wm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wm-form-note { padding: 0.9rem 1.1rem; border-radius: 6px; margin: 1.25rem 0; font-size: 0.95rem; line-height: 1.5; }
.wm-form-note strong { display: block; }
.wm-form-note--ok { background: #f0f7f1; border-left: 3px solid #2e7d47; color: #1f5c34; }
.wm-form-note--err { background: #fdf0f0; border-left: 3px solid #c0392b; color: #a5271b; }
.wm-form-note--closed { background: #f3f1ec; border-left: 3px solid var(--mid-grey); color: var(--off-black); }
.wm-form-note--closed a { color: var(--gold); }

/* Competitions: open/closed pill + entry box */
.wm-comp-pill { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; margin-left: .5rem; vertical-align: middle; }
.wm-comp-pill--live { background: #f0f7f1; color: #1f5c34; }
.wm-comp-pill--closed { background: #f3f1ec; color: var(--mid-grey); }

.wm-competition-box { margin-top: 2.5rem; padding: 2rem 2.25rem; background: var(--black); border: 1px solid var(--black); }
.wm-competition-eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.wm-competition-prize { font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.25; color: #fff; margin-bottom: 1.4rem; }
.wm-competition-box .wm-field label { color: #cfcfcf; }
.wm-competition-box .wm-check { color: #cfcfcf; }
.wm-competition-box .wm-check a { color: var(--gold); }
.wm-competition-box .wm-form { margin-bottom: 0; max-width: none; }
.wm-competition-box .page-btn { background: var(--gold); color: var(--black); }
.wm-competition-box .page-btn:hover { background: #fff; }
.wm-competition-box .wm-form-note--ok { background: rgba(240,247,241,.12); border-left: 3px solid var(--gold); color: #fff; }
.wm-competition-box .wm-form-note--err { background: rgba(253,240,240,.12); border-left: 3px solid #e2857a; color: #fff; }

/* Competition archive: full-bleed photo cards */
.wm-comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.wm-comp-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #ece8e1 center/cover no-repeat; text-decoration: none; box-shadow: 0 6px 22px rgba(0,0,0,.14); transition: transform .2s, box-shadow .2s; }
.wm-comp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.wm-comp-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.82) 100%); }
.wm-comp-card-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--gold); color: var(--black); }
.wm-comp-card--closed .wm-comp-card-badge { background: rgba(255,255,255,.85); color: var(--off-black); }
.wm-comp-card-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.wm-comp-card-title { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.3; color: #fff; }
.wm-comp-card-cta { font-size: .78rem; font-weight: 600; letter-spacing: .03em; color: var(--gold); }
.wm-comp-card--closed .wm-comp-card-cta { color: #e8e8e8; }

@media (max-width: 900px) {
  .wm-comp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wm-comp-grid { grid-template-columns: 1fr; }
  .wm-competition-box { padding: 1.5rem; }
}
