/* ==========================================================================
   Blog index — card grid + sticky sidebar
   Layout modelled on the UK Name Change blog, recoloured to the Wick Golf
   Lounge dark-luxury theme (charcoal + fairway + brushed gold).
   ========================================================================== */

/* Two-column shell: stories on the left, sticky sidebar on the right. */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 980px) {
    .blog-grid { grid-template-columns: 1fr; gap: 32px; }
}

.blog-header-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.blog-header-row h2 { margin: 0; }
.blog-count { color: var(--text-muted); font-size: .85rem; }

/* ---- Card grid ---------------------------------------------------------- */
.blog-cards {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
@media (max-width: 620px) { .blog-cards { grid-template-columns: 1fr; } }

.blog-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s var(--ease);
}
/* Editorial gold accent in place of a hero image. */
.blog-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gold); opacity: .55; transition: opacity .3s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.blog-card:hover::before { opacity: 1; }

.blog-card__body {
    padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1;
    text-align: center; align-items: center;
}
.blog-card__meta {
    display: flex; align-items: center; gap: 10px;
    font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold); font-weight: 600;
}
.blog-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.blog-card__date { color: var(--text-muted); letter-spacing: .08em; }

.blog-title {
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.15; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    min-height: calc(1.15em * 2);
}
/* Keep the card title (and its clamp ellipsis) white over the dark card,
   overriding the light-section heading colour. */
.section--light .blog-title { color: var(--text); }
.blog-title a { color: var(--text); }
.blog-title a:hover { color: var(--gold); }

.blog-excerpt {
    color: var(--text-muted); font-size: .92rem; line-height: 1.6; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

.blog-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-tag {
    padding: 4px 11px; border-radius: 999px;
    background: rgba(11, 61, 46, 0.4); color: var(--gold);
    font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    border: 1px solid rgba(200, 162, 75, 0.2); font-weight: 600;
}

/* Whole card is clickable: the title link is stretched over the entire card. */
.blog-card .blog-title a::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
}
.blog-card:hover .blog-title a { color: var(--gold); }

/* ---- Sidebar ------------------------------------------------------------ */
.blog-aside {
    position: sticky; top: 100px;
    display: flex; flex-direction: column; gap: 20px;
}
@media (max-width: 980px) { .blog-aside { position: static; } }

.blog-panel {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 26px;
}
.blog-panel__title {
    font-family: var(--font-body); font-size: .75rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 16px;
}

/* Topics — full-width stacked rows */
.blog-filter-list { display: flex; flex-direction: column; gap: 8px; }
.blog-chip {
    display: block; width: 100%; text-align: left;
    padding: 13px 18px; border-radius: var(--radius-md);
    background: rgba(244, 241, 234, 0.05); border: 1px solid var(--line);
    color: var(--text-muted); font-size: .92rem; font-weight: 600;
    cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.blog-chip:hover { color: var(--text); border-color: var(--line-strong); background: rgba(244, 241, 234, 0.08); }
.blog-chip.is-active { background: var(--gold); border-color: var(--gold); color: #1a1206; font-weight: 700; }

/* ---- Mobile topics dropdown (hero) — shown on phones in place of the sidebar
   Topics panel. Built on <details>/<summary>: no JS, accessible, CSP-safe. ---- */
.blog-topics-dd { display: none; }   /* desktop & tablet: hidden (sidebar used instead) */
.blog-topics-dd__btn {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; padding: 12px 20px; border-radius: 999px;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
    color: var(--text); font-weight: 600; font-size: .98rem;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.blog-topics-dd__btn::-webkit-details-marker { display: none; }
.blog-topics-dd__btn:hover { border-color: var(--gold); background: rgba(255, 255, 255, .14); }
.blog-topics-dd__chev { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.blog-topics-dd[open] .blog-topics-dd__chev { transform: rotate(180deg); }
.blog-topics-dd__menu {
    margin-top: 10px; overflow: hidden; text-align: left;
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius-md); box-shadow: 0 16px 36px rgba(0, 0, 0, .34);
}
.blog-topics-dd__item {
    display: block; padding: 13px 18px; color: var(--text-muted);
    font-weight: 600; font-size: .95rem; border-top: 1px solid var(--line);
    transition: color .2s var(--ease), background .2s var(--ease);
}
.blog-topics-dd__item:first-child { border-top: 0; }
.blog-topics-dd__item:hover { color: var(--text); background: rgba(244, 241, 234, .06); }
.blog-topics-dd__item.is-active { background: var(--gold); color: #1a1206; }

@media (max-width: 980px) {
    .blog-topics-dd { display: block; width: 260px; margin: 18px auto 0; position: relative; }
    .blog-topics-dd__menu {
        position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 30;
        margin-top: 0;
    }
    .blog-panel--topics { display: none; }   /* hide the sidebar Topics panel on mobile + tablet */
}

/* Popular — numbered list */
.blog-popular-list { display: flex; flex-direction: column; }
.blog-popular-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 0; border-top: 1px solid var(--line);
}
.blog-popular-item:first-child { border-top: 0; padding-top: 0; }
.blog-popular-num {
    flex: none; width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(200, 162, 75, 0.14); color: var(--gold);
    font-weight: 700; font-size: .8rem; font-family: var(--font-display);
}
.blog-popular-title { font-size: .9rem; color: var(--text); line-height: 1.4; font-weight: 500; }
.blog-popular-item:hover .blog-popular-title { color: var(--gold); }

/* About panel */
.blog-panel__text { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin: 0 0 18px; }

/* ---- Pagination --------------------------------------------------------- */
.blog-pagination {
    display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 44px;
}
.blog-page-btn {
    min-width: 42px; padding: 10px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: transparent; color: var(--text-muted);
    font-weight: 600; font-size: .9rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.blog-page-btn:hover { color: var(--text); border-color: var(--gold); }
.blog-page-btn.is-active { background: var(--gold); border-color: var(--gold); color: #1a1206; }
.blog-page-btn.is-disabled { opacity: .35; pointer-events: none; }

/* ==========================================================================
   Single post — light editorial article (header, feature, prose + sidebar)
   ========================================================================== */
:root { --ink: #2b332e; --ink-soft: #5c655d; --line-ink: rgba(11,61,46,.12); }

.article { background: var(--bg-light); color: var(--ink); }

/* ---- Hero header (dark fairway band, matches the blog index hero) ---- */
.article-hero {
    background: var(--fairway);
    border-bottom: 1px solid rgba(0,0,0,.16);
    padding: 44px 0 56px;
    text-align: center;
}
.article-hero__inner { max-width: 760px; margin: 0 auto; }
.article-breadcrumb {
    display: flex; gap: 9px; align-items: center; justify-content: flex-start; flex-wrap: wrap;
    font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(244,241,234,.55); font-weight: 600; margin-bottom: 26px;
}
.article-breadcrumb a { color: rgba(244,241,234,.85); }
.article-breadcrumb a:hover { color: var(--gold); text-decoration: underline; }
.article-pill {
    display: inline-block; margin-bottom: 18px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(200,162,75,.16); border: 1px solid rgba(200,162,75,.32);
    color: var(--gold); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.article-title {
    font-family: var(--font-display); font-weight: 800; color: var(--text);
    font-size: clamp(2.1rem, 4.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.015em;
    margin: 0 0 18px;
}
.article-lede {
    font-size: 1.2rem; line-height: 1.55; color: rgba(244,241,234,.82);
    max-width: 46ch; margin: 0 auto 26px;
}

.article-meta {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(244,241,234,.16);
}
/* Google rating badge sits on its own line below the facts row. */
.article-meta .gr__badge { margin-bottom: 0; }
.article-meta__facts {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; flex-wrap: wrap;
    color: rgba(244,241,234,.78); font-size: .86rem; font-weight: 500;
}
.article-meta__facts li { display: flex; align-items: center; }
.article-meta__facts li:not(:first-child)::before {
    content: ''; width: 3px; height: 3px; border-radius: 50%;
    background: rgba(244,241,234,.4); margin: 0 14px;
}

/* ---- Share buttons (dark band) ---- */
.article-share { display: flex; align-items: center; gap: 9px; }
.article-share__label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,241,234,.55); font-weight: 600; }
.share-btn {
    width: 38px; height: 38px; border-radius: 50%; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(244,241,234,.08); border: 1px solid rgba(244,241,234,.2); color: rgba(244,241,234,.9);
    transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), border-color .2s var(--ease);
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { background: var(--gold); color: #1a1206; border-color: var(--gold); transform: translateY(-2px); }

/* ---- Feature image (lifts up to straddle the hero band) ---- */
.article-feature {
    max-width: 1080px; margin: -44px auto 0; padding: 0; position: relative;
    border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 16 / 8; max-height: 460px;
    box-shadow: 0 22px 60px rgba(11,21,16,.30);
}
.article-feature img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Body grid: prose + sticky sidebar ---- */
.article-body {
    display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 56px;
    max-width: 1080px; margin: 0 auto; align-items: start;
    /* Vertical padding only — the horizontal gutter comes from .container so it
       stays in sync site-wide. (Setting `padding: … 0 …` here previously zeroed
       the side gutter, so the prose ran to the screen edges below 1080px.) */
    padding-top: 50px; padding-bottom: 76px;
}
.article-main { min-width: 0; }

/* ---- Prose ---- */
.article-prose { color: var(--ink); font-size: 1.1rem; line-height: 1.75; max-width: 70ch; }
.article-prose > *:first-child { margin-top: 0; }
.article-prose p { margin: 0 0 1.35em; }
.article-prose > p:first-of-type { font-size: 1.2rem; color: #232a25; }
.article-prose h2 {
    font-family: var(--font-display); font-weight: 700; color: var(--text-on-light);
    font-size: clamp(1.55rem, 2.6vw, 1.95rem); line-height: 1.18; margin: 1.9em 0 .2em;
}
.article-prose h2::after {
    content: ''; display: block; width: 34px; height: 3px; border-radius: 2px;
    background: var(--gold); margin: .55em 0 .7em;
}
.article-prose h3 {
    font-family: var(--font-display); font-weight: 700; color: var(--text-on-light);
    font-size: 1.32rem; line-height: 1.25; margin: 1.7em 0 .5em;
}
.article-prose a { color: var(--fairway); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.article-prose a:hover { color: var(--gold); }
.article-prose strong { color: var(--text-on-light); font-weight: 700; }
.article-prose ul, .article-prose ol { margin: 0 0 1.35em; padding-left: 1.5em; }
.article-prose li { margin-bottom: .55em; padding-left: .2em; }
.article-prose ul { list-style: none; padding-left: 0; }
.article-prose ul > li { position: relative; padding-left: 1.6em; }
.article-prose ul > li::before {
    content: ''; position: absolute; left: .25em; top: .62em;
    width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.article-prose ol { list-style: none; counter-reset: li; padding-left: 0; }
.article-prose ol > li { position: relative; padding-left: 2.1em; counter-increment: li; }
.article-prose ol > li::before {
    content: counter(li); position: absolute; left: 0; top: .05em;
    width: 1.5em; height: 1.5em; border-radius: 50%;
    background: rgba(11,61,46,.08); color: var(--fairway);
    font-family: var(--font-display); font-weight: 700; font-size: .85em;
    display: flex; align-items: center; justify-content: center;
}
.article-prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 1.6em 0; }
.article-prose blockquote {
    margin: 1.8em 0; padding: 18px 24px; border-left: 4px solid var(--gold);
    background: rgba(11,61,46,.05); border-radius: 0 12px 12px 0;
    font-size: 1.18rem; line-height: 1.55; color: #232a25; font-style: italic;
}
.article-prose blockquote p:last-child { margin-bottom: 0; }
.article-prose hr { border: 0; border-top: 1px solid var(--line-ink); margin: 2.4em 0; }

/* Tables — bordered, fairway header, zebra rows */
.article-prose table {
    width: 100%; border-collapse: collapse; margin: 1.9em 0;
    font-size: .98rem; background: #fff;
    border: 1px solid var(--line-ink); border-radius: 12px; overflow: hidden;
}
.article-prose thead th {
    background: var(--fairway); color: #fff; text-align: left;
    font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
    padding: 13px 18px;
}
.article-prose tbody td { padding: 13px 18px; border-top: 1px solid var(--line-ink); vertical-align: top; }
.article-prose tbody tr:nth-child(even) { background: rgba(11,61,46,.035); }
.article-prose tbody td:first-child { font-weight: 600; color: var(--text-on-light); }

/* ---- Sidebar ----
   Sticky lives on the grid item (.article-side), not the inner wrapper: the
   grid cell sticks within the tall article body as you scroll. Same pattern as
   .legal__sidebar. align-self:start keeps the cell at its content height so it
   has room to travel. */
.article-side { position: sticky; top: 100px; align-self: start; }
.article-side__sticky { display: flex; flex-direction: column; gap: 18px; }
.side-card { background: #fff; border: 1px solid var(--line-ink); border-radius: var(--radius-lg); padding: 24px; }
.side-card__eyebrow { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.side-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin: 0 0 10px; line-height: 1.15; }
.side-card--cta {
    padding: 28px;
    background: var(--bg-dark);
    border: 1px solid rgba(200,162,75,.22);
    box-shadow: 0 18px 44px rgba(0,0,0,.4);
    text-align: center;
}
/* Keep the feature checklist left-aligned even though the card is centred. */
.side-card--cta .side-card__list { text-align: left; }
.side-card--cta .side-card__eyebrow { color: var(--gold-soft); }
.side-card--cta .side-card__title { color: #fff; font-size: 1.4rem; }
.side-card--cta p { color: rgba(244,241,234,.82); font-size: .92rem; line-height: 1.55; margin: 0 0 18px; }
.side-card__btn { width: 100%; }
.article-share--side { gap: 10px; }

/* "In this article" table of contents */
.side-toc { padding: 22px 24px; }
.side-toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.side-toc__item { margin: 0; }
.side-toc__link {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 10px 0; border-top: 1px solid var(--line-ink);
    color: var(--ink-soft); font-size: .9rem; line-height: 1.4;
    transition: color .2s var(--ease);
}
.side-toc__item:first-child .side-toc__link { border-top: 0; padding-top: 2px; }
.side-toc__num {
    flex: none; width: 24px; height: 24px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(11,61,46,.08); color: var(--fairway);
    font-family: var(--font-display); font-weight: 700; font-size: .78rem;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.side-toc__link:hover { color: var(--fairway); }
.side-toc__link.is-active { color: var(--fairway); font-weight: 700; }
.side-toc__link.is-active .side-toc__num { background: var(--fairway); color: #fff; }

/* CTA card — price line + benefit checklist */
.side-card__price { color: rgba(244,241,234,.78); font-size: .95rem; margin: 2px 0 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(244,241,234,.12); }
.side-card__price strong { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--gold); }
.side-card__price span { font-size: .9rem; }
.side-card__list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-card--cta .side-card__list li {
    position: relative; padding-left: 28px;
    color: rgba(244,241,234,.92); font-size: .9rem; line-height: 1.45;
}
.side-card--cta .side-card__list li::before {
    content: ''; position: absolute; left: 0; top: 1px;
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(200,162,75,.18);
    /* gold checkmark */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8A24B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 11px 11px;
}
/* Tablet: drop the tick markers from the booking-card checklist. */
@media (min-width: 761px) and (max-width: 1024px) {
    .side-card--cta .side-card__list li { padding-left: 0; }
    .side-card--cta .side-card__list li::before { display: none; }
}
.side-card__link {
    display: block; text-align: center; margin-top: 12px;
    color: rgba(244,241,234,.82); font-size: .85rem; font-weight: 600;
    text-decoration: underline; text-decoration-color: rgba(200,162,75,.5); text-underline-offset: 3px;
}
.side-card__link:hover { color: var(--gold); }

/* Browse topics card */
.side-topics__list { display: flex; flex-wrap: wrap; gap: 8px; }
.side-topic {
    padding: 7px 13px; border-radius: 999px;
    background: var(--bg-light); border: 1px solid var(--line-ink);
    color: var(--ink-soft); font-size: .8rem; font-weight: 600;
    transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.side-topic:hover { color: var(--fairway); border-color: var(--gold); }
.side-topic.is-active { background: var(--fairway); border-color: var(--fairway); color: #fff; }

/* Anchored headings clear the fixed site header when jumped to from the TOC */
.article-prose h2, .article-prose h3 { scroll-margin-top: 96px; }

/* ---- Related ---- */
/* No dividing rules on the article page — the related block and CTA flow
   straight on from the body. */
.page-article .cta-finale { border-top: none; }
/* Related posts run 3 across (full-width section, exactly 3 cards). Scoped here
   so the index grid — which sits beside the sidebar — stays 2 across. */
.article-related .blog-cards { max-width: 1080px; margin: 0 auto; grid-template-columns: repeat(3, 1fr); }
/* Related is always exactly 3 cards, so a 2-col grid below desktop leaves a
   lopsided 2 + 1 row — go straight to a single centred column. */
@media (max-width: 900px) { .article-related .blog-cards { grid-template-columns: 1fr; max-width: 560px; } }

@media (max-width: 940px) {
    .article-body { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
    .article-side { position: static; }
    .article-prose { max-width: none; }
    /* The TOC is built for the sticky desktop sidebar; once the sidebar unsticks
       and stacks below the prose it lands at the foot of the article, where it
       can't aid navigation — hide it rather than leave a dead block of links. */
    .side-toc { display: none; }
}
@media (max-width: 720px) {
    .article-hero { padding: 32px 0 40px; }
    /* Breadcrumb links are tiny (~19px tall) plain text — give them a touch-
       friendly tap height on phones. */
    .article-breadcrumb { margin-bottom: 16px; }
    .article-breadcrumb a { display: inline-block; padding: 9px 2px; }
    .article-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
    .article-lede { font-size: 1.08rem; }
    .article-meta { gap: 14px; padding-top: 18px; }
    .article-feature { margin-top: -28px; aspect-ratio: 16 / 10; }
}
/* ==========================================================================
   Blog index hero — solid fairway-green band (lighter than the navbar) + search
   ========================================================================== */
.blog-hero {
    position: relative;
    padding: 136px 0 72px;
    background: var(--fairway);          /* flat green fallback when no image */
    border-bottom: 1px solid rgba(0,0,0,.16);
    text-align: center;
    overflow: hidden;
}
/* Optional photo background: an image layer + green/dark overlay so the title
   and search stay legible. Mirrors the .page-hero / .hero pattern. */
.blog-hero__media { position: absolute; inset: 0; z-index: 0; }
.blog-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.blog-hero__media::after {
    content: ''; position: absolute; inset: 0;
    /* Neutral dark scrim (no green tint) — just enough to keep the white title
       and search box legible over the photo. */
    background: linear-gradient(180deg, rgba(0,0,0,.40) 0%, rgba(0,0,0,.60) 100%);
}
.blog-hero__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.blog-hero__title {
    font-family: var(--font-display); font-weight: 800; color: var(--text);
    font-size: clamp(2.5rem, 5.5vw, 3.7rem); line-height: 1.02;
    letter-spacing: -0.015em; margin: 0 0 16px;
}
.blog-hero__sub {
    color: rgba(244,241,234,.82); font-size: 1.16rem; line-height: 1.6;
    max-width: 42ch; margin: 0 auto 34px;
}

/* Search field — frosted, lifted, gold focus ring */
.blog-search {
    display: flex; align-items: center; gap: 2px;
    max-width: 500px; margin: 0 auto;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px;
    padding: 7px 10px 7px 6px;
    box-shadow: 0 14px 34px rgba(0,0,0,.20);
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.blog-search:focus-within {
    border-color: var(--gold);
    background: rgba(255,255,255,.15);
    box-shadow: 0 0 0 4px rgba(200,162,75,.22), 0 14px 34px rgba(0,0,0,.22);
}
.blog-search__icon {
    flex: none; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: transparent; color: var(--gold); cursor: pointer;
    transition: background .2s var(--ease), transform .15s var(--ease);
}
.blog-search__icon svg { width: 21px; height: 21px; }
.blog-search__icon:hover { background: rgba(200,162,75,.16); }
.blog-search__icon:active { transform: scale(.92); }
.blog-search__input {
    flex: 1; min-width: 0;
    background: transparent; border: 0; outline: none;
    color: var(--text); font-family: var(--font-body); font-size: 1.02rem; font-weight: 500;
    padding: 12px 16px 12px 2px;
}
.blog-search__input::placeholder { color: rgba(244,241,234,.55); font-weight: 400; }
/* Hide the native search "clear" control for a clean, consistent look */
.blog-search__input::-webkit-search-decoration,
.blog-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

@media (max-width: 720px) {
    /* overflow visible so the mobile topics popup can float past the hero band
       (this rule sits after the base .blog-hero, so it wins the cascade). */
    .blog-hero { padding: 108px 0 52px; overflow: visible; }
    .blog-hero__title { font-size: clamp(2.1rem, 8vw, 2.8rem); }
    .blog-hero__sub { font-size: 1.02rem; margin-bottom: 28px; }
    .blog-search { max-width: 100%; }
}

/* ==========================================================================
   Blog index/category — mobile & tablet refinements (responsive audit)
   ========================================================================== */

/* Beside the 320px sidebar the 2-up card grid squeezes each card to ~296px on
   tablet / small-laptop widths, which clamps titles mid-word, wraps the meta
   row, and leaves the stories column short of the sidebar. Drop to a single
   full-width reading column across that band. */
@media (min-width: 981px) and (max-width: 1200px) {
    .blog-grid .blog-cards { grid-template-columns: 1fr; }
}

/* On the narrower cards (phone single-column + tablet two-up) the 1.35rem title
   clamped to 2 lines cuts long headlines mid-phrase and looks broken. Drop the
   size a touch and allow 3 lines so titles read in full (or near it). */
@media (max-width: 980px) {
    .blog-title {
        font-size: 1.18rem;
        -webkit-line-clamp: 3; line-clamp: 3;
        min-height: calc(1.18em * 3);
    }
}

/* Mobile: blog cards stay centred (base style); centre the "Latest stories"
   header row and hide the post count. */
@media (max-width: 620px) {
    .blog-header-row { justify-content: center; text-align: center; }
    .blog-count { display: none; }
}

/* When the sidebar drops below the cards (<=980px) the full-width Topics chips
   become near-empty bars with a tiny label — wrap them into compact pills. */
@media (max-width: 980px) {
    .blog-filter-list { flex-direction: row; flex-wrap: wrap; }
    .blog-chip { display: inline-block; width: auto; text-align: center; padding: 10px 18px; border-radius: 999px; }
}

/* Mobile + tablet: Topics is now the hero dropdown, so the sidebar simply stacks
   Popular + the Play-a-bay CTA. Centre the CTA panel, and let the hero overflow
   (after the base rule, so it wins) so the topics popup can float past the band. */
@media (max-width: 980px) {
    .blog-hero { overflow: visible; }
    .blog-panel--cta { text-align: center; }
}

/* Tablet: the index hero keeps its tall desktop top-padding until 720px, leaving
   an oversized empty band at iPad widths — trim it for 721–900px. */
@media (min-width: 721px) and (max-width: 900px) {
    .blog-hero { padding: 108px 0 52px; }
}
