/* The blog in our site design (SEO plan §11.10): list cards and the article page. Scoped to body.blog-page; the nav,
   footer, fonts, yellow page colour and glass cards come from the shared site stylesheets. Mobile first. */
.blog-page {
    --bl-ink: #16181d;
    --bl-text: #2f3238;
    --bl-muted: #5d6169;
    --bl-line: #e7e2d2;
    --bl-paper: #fffdf6;
    --bl-brand: #f4b400;
    --bl-brand-deep: #8a6400;
    --bl-brand-soft: #fff6dc;
    --bl-dark: #0f1013;
}
/* no sideways scroll; clip (not hidden) keeps the sticky top bar working */
html:has(> body.blog-page),
body.blog-page { overflow-x: clip; }

/* the top bar sits over the dark band, as on the Privacy page */
.blog-page .sticky-wrapper { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }

/* ---- dark band with the H1 */
.blog-hero {
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(244, 180, 0, .24), transparent 60%),
        radial-gradient(800px 300px at 0% 110%, rgba(244, 180, 0, .10), transparent 60%),
        var(--bl-dark);
    color: #fff;
    padding: 140px 0 44px;
}
.blog-hero h1 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1;
    margin: 0 0 14px;
}
.blog-hero--post h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; }
.blog-lead {
    color: rgba(255, 255, 255, .84);
    font-size: clamp(19px, 2vw, 22px);
    line-height: 1.35;
    max-width: 720px;
    margin: 0;
}
.blog-lead a { color: var(--bl-brand); font-weight: 700; }
.blog-hero-page { margin: 10px 0 0; color: var(--bl-brand); font-weight: 700; font-size: 18px; }
.blog-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
}
.blog-crumbs a { color: var(--bl-brand); text-decoration: none; }
.blog-crumbs a:hover { text-decoration: underline; }
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, .82);
}
.blog-post-meta i { color: var(--bl-brand); margin-right: 4px; }

/* ---- list: glass cards (dt-glass-card from the site; site-ui.js adds the glare) */
.blog-list { padding: 32px 0 24px; }
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.blog-page .blog-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    min-width: 0;
}
.blog-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    background: rgba(15, 16, 19, .25);
    overflow: hidden;
}
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.03); }
.blog-card-placeholder { display: grid; place-items: center; height: 100%; }
.blog-card-placeholder img { width: 30%; height: auto; object-fit: contain; }
.blog-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; position: relative; z-index: 2; }
.blog-card-meta { margin: 0; font-size: 16px; font-weight: 700; color: #3b3a33; }
.blog-card-title { margin: 0; font-size: 24px; line-height: 1.12; font-weight: 800; }
.blog-card-title a { color: var(--bl-ink); text-decoration: none; }
.blog-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-card-text { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 500; color: #2c2b26; overflow-wrap: anywhere; }
.blog-card-more {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 800;
    font-size: 18px;
    color: var(--bl-ink);
    text-decoration: none;
    border-bottom: 2px solid var(--bl-ink);
}
.blog-card-more:hover { color: #000; border-bottom-color: var(--bl-brand); }

/* ---- pager */
.blog-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 28px 0 0; }
.blog-pager ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.blog-pager a,
.blog-pager span {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
    color: var(--bl-ink);
    background: rgba(255, 255, 255, .55);
    border: 2px solid rgba(255, 249, 129, .8);
}
.blog-pager a:hover { background: #fff; }
.blog-pager .is-current { background: var(--bl-dark); color: var(--bl-brand); border-color: var(--bl-dark); }
.blog-pager-step { gap: 6px; grid-auto-flow: column; }

/* ---- article */
.blog-narrow { max-width: 820px; }
.blog-article { padding: 0 0 24px; }
.blog-cover { margin: -24px 0 0; position: relative; z-index: 2; }
.blog-cover img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    border: 2px solid rgba(255, 249, 129, .7);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}
.blog-content {
    background: var(--bl-paper);
    border-radius: 20px;
    border: 1px solid var(--bl-line);
    box-shadow: 0 14px 40px -20px rgba(15, 16, 19, .35);
    margin-top: 20px;
    padding: 22px 18px 26px;
    color: var(--bl-text);
    font-size: 20px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.blog-content > :first-child { margin-top: 0; }
.blog-content p { margin: 0 0 16px; }
/* the site's paragraphs are light (300); long reading text is one step stronger */
.blog-content p,
.blog-content li,
.blog-content td,
.blog-content dd { font-weight: 400; }
.blog-content .blog-lede { font-size: 23px; font-weight: 700; line-height: 1.3; color: var(--bl-ink); }
.blog-content h2 {
    font-size: clamp(27px, 3.2vw, 34px);
    font-weight: 800;
    line-height: 1.12;
    color: var(--bl-ink);
    margin: 34px 0 12px;
    padding-left: 14px;
    border-left: 5px solid var(--bl-brand);
}
.blog-content h3 { font-size: clamp(22px, 2.4vw, 25px); font-weight: 800; line-height: 1.18; color: var(--bl-ink); margin: 24px 0 8px; }
.blog-content h4 { font-size: 21px; font-weight: 800; color: var(--bl-ink); margin: 20px 0 6px; }
.blog-content strong { color: var(--bl-ink); }
.blog-content a { color: var(--bl-brand-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.blog-content ul,
.blog-content ol { margin: 0 0 16px; padding-left: 24px; }
.blog-content li { margin-bottom: 6px; }
.blog-content li::marker { color: var(--bl-brand-deep); font-weight: 800; }
.blog-content hr { border: 0; border-top: 2px dashed var(--bl-line); margin: 28px 0; opacity: 1; }
.blog-content blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    background: var(--bl-brand-soft);
    border-left: 5px solid var(--bl-brand);
    border-radius: 0 14px 14px 0;
    font-size: 20px;
}
.blog-content blockquote p:last-child { margin-bottom: 0; }
.blog-content img { max-width: 100%; height: auto; border-radius: 12px; }
.blog-content dl { margin: 0 0 16px; }
.blog-content dt { font-weight: 800; color: var(--bl-ink); margin-top: 10px; }
.blog-content dd { margin: 0 0 6px; }
/* tables scroll inside their own box on a phone, never the page */
.blog-table { overflow-x: auto; overflow-wrap: normal; margin: 8px 0 18px; border: 1px solid var(--bl-line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.blog-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 18px; line-height: 1.35; }
.blog-table th,
.blog-table td { padding: 10px 12px; border-bottom: 1px solid var(--bl-line); text-align: left; vertical-align: top; }
.blog-table th:first-child,
.blog-table td:first-child { min-width: 9.5em; }
.blog-table th { background: var(--bl-dark); color: #fff; font-weight: 800; }
.blog-table tr:last-child td { border-bottom: 0; }
.blog-table tbody tr:nth-child(even) td { background: #faf6e8; }

.blog-post-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 22px 0 0; }
.blog-back { font-weight: 800; font-size: 19px; color: var(--bl-ink); text-decoration: none; }
.blog-back:hover { text-decoration: underline; }

/* ---- related + CTA */
.blog-related { padding: 24px 0 8px; }
.blog-related-title { font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); color: var(--bl-ink); margin: 0 0 16px; }
.blog-cta { padding: 28px 0 56px; }
.blog-page .blog-cta-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 20px;
}
.blog-cta-title { margin: 0 0 4px; font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); color: var(--bl-ink); }
.blog-cta-text { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 500; color: #2c2b26; }
.blog-cta-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; position: relative; z-index: 2; }
.blog-page .blog-cta-book {
    background: var(--bl-dark);
    color: var(--bl-brand);
    border: 0;
    font-weight: 800;
    font-size: 19px;
    padding: 10px 26px;
    border-radius: 999px;
}
.blog-page .blog-cta-book:hover { background: #000; color: #ffd84d; }
.blog-cta-call { font-weight: 800; font-size: 19px; color: var(--bl-ink); text-decoration: none; white-space: nowrap; }
.blog-cta-call:hover { text-decoration: underline; }

@media (min-width: 576px) {
    .blog-content { padding: 28px 30px 32px; }
}
@media (min-width: 768px) {
    .blog-hero { padding: 160px 0 56px; }
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .blog-list { padding: 40px 0 24px; }
    .blog-cover { margin-top: -32px; }
    .blog-content { padding: 36px 48px 40px; }
    .blog-page .blog-cta-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 34px; }
    .blog-cta-actions { flex-shrink: 0; }
}
@media (min-width: 1100px) {
    .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
    .blog-page .sticky-wrapper, .blog-cta, .blog-related, .blog-post-foot { display: none; }
    .blog-hero { background: none; color: #000; padding: 0; }
    .blog-hero h1 { color: #000; }
}

/* Panel preview of a post (Blogs > Preview): a bar at the top, never on the live page */
.blog-preview-bar { position: sticky; top: 0; z-index: 1100; padding: 10px 16px; background: #1b1b1b; color: #FCDF2B; font-weight: 700; text-align: center; }
.blog-preview-bar a { color: #ffffff; margin-left: 12px; text-decoration: underline; }
