/*
 * Editorial Magazine Layer — loaded after editorial-theme.css.
 *
 * Purpose: upgrade the existing design tokens into a magazine-grade visual
 * system. The base stylesheet provides the typography + color variables; this
 * file layers on:
 *   - Magazine hero (full bleed, serif headline, gradient overlay)
 *   - Card system (hover lift, accent top stripe, color-coded verticals)
 *   - Section headers (top rule, accent kicker, view-all link)
 *   - Drop cap + pull quote utilities
 *   - Single-article polish (720px column, sticky share, drop cap)
 *   - Footer polish (accent rule, single-line reassurance)
 *
 * Tokens used (defined in editorial-theme.css):
 *   --brand-red, --tech-blue, --sport-green, --premium-violet, --premium-gold
 *   --shadow-soft, --shadow-card, --border-soft, --ink-strong, --ink-soft
 *   --surface-soft, --surface-muted
 */

/* --------------------------------------------------------------------------
 * Magazine hero — full-bleed featured story
 * -----------------------------------------------------------------------*/
.op-magazine-hero {
    position: relative;
    min-height: clamp(420px, 70vh, 720px);
    display: flex;
    align-items: flex-end;
    border-radius: 0;
    overflow: hidden;
    margin: 24px auto 36px;
    max-width: 1280px;
    background: var(--surface-muted);
    box-shadow: var(--shadow-soft);
}
.op-magazine-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.op-magazine-hero-media .op-magazine-hero-img,
.op-magazine-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.op-magazine-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.85) 100%);
}
.op-magazine-hero-copy {
    position: relative;
    z-index: 2;
    padding: 36px 32px 32px;
    max-width: 760px;
    color: #fff;
}
.op-magazine-hero-copy .op-card-category {
    display: inline-block;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    color: #fff;
}
.op-magazine-hero-copy h1 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(36px, 5.4vw, 72px);
    line-height: 1.05;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.op-magazine-hero-copy h1 a {
    color: inherit;
    text-decoration: none;
}
.op-magazine-hero-copy h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.op-magazine-hero-deck {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.5;
    margin: 0 0 14px;
    opacity: .92;
    max-width: 56ch;
}
.op-magazine-hero-meta {
    font-size: 13px;
    opacity: .85;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.op-magazine-hero-meta a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Brand-led fallback (no featured post yet) */
.op-magazine-hero-copy--brand {
    max-width: 880px;
    padding: 56px 36px;
    color: var(--ink-strong);
    background: var(--surface-soft);
    border-top: 4px solid var(--brand-red);
}
.op-magazine-hero-copy--brand .op-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    font-size: 12px;
    color: var(--brand-red);
    margin-bottom: 12px;
}
.op-magazine-hero-copy--brand h1 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--ink-strong);
}
.op-magazine-hero-copy--brand p {
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 64ch;
    margin: 0 0 22px;
}
.op-magazine-hero-copy--brand .op-home-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    max-width: 520px;
    box-shadow: var(--shadow-card);
}
.op-magazine-hero-copy--brand .op-home-search svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--ink-soft); }
.op-magazine-hero-copy--brand .op-home-search input {
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: var(--ink-strong);
    padding: 8px 4px;
    min-width: 0;
}
.op-magazine-hero-copy--brand .op-home-search button {
    border: 0;
    background: var(--brand-red);
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
 * Section headers — 2px top rule, accent kicker, serif H2, view-all link
 * -----------------------------------------------------------------------*/
.op-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-top: 2px solid var(--ink-strong);
    padding-top: 18px;
    margin: 36px 0 22px;
    flex-wrap: wrap;
}
.op-section-header .op-section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(24px, 2.6vw, 38px);
    font-weight: 700;
    color: var(--ink-strong);
    letter-spacing: -.005em;
}
.op-section-header .op-section-title svg {
    width: 22px;
    height: 22px;
    color: var(--brand-red);
    flex: 0 0 auto;
}
.op-section-header a {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.op-section-header a:hover { text-decoration: underline; text-underline-offset: 3px; }
.op-section-header a svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
 * Card system — hover lift, accent top stripe, vertical color coding
 * -----------------------------------------------------------------------*/
.op-grid { display: grid; gap: 22px; }
.op-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.op-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .op-grid-3, .op-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .op-grid-3, .op-grid-4 { grid-template-columns: 1fr; } }

.op-card,
article[class*="card"] {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex;
    flex-direction: column;
}
.op-card::before,
article[class*="card"]::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--accent, var(--brand-red));
    z-index: 1;
}
.op-card:hover,
article[class*="card"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: color-mix(in srgb, var(--accent, var(--brand-red)) 40%, var(--border-soft));
}
.op-card a:focus-visible,
article[class*="card"] a:focus-visible { outline: 2px solid var(--accent, var(--brand-red)); outline-offset: 2px; }

/* Color-coded verticals — applied to .op-card via data-vertical or via category class */
.op-home-vertical[data-vertical="lifestyle"]       .op-card { --accent: var(--brand-red); }
.op-home-vertical[data-vertical="travel"]          .op-card { --accent: var(--premium-gold); }
.op-home-vertical[data-vertical="technology"]      .op-card { --accent: var(--tech-blue); }
.op-home-vertical[data-vertical="sports"]          .op-card { --accent: var(--sport-green); }
.op-home-vertical[data-vertical="strange-history"] .op-card { --accent: var(--premium-violet); }

/* Vertical title icons tinted by category */
.op-home-vertical[data-vertical="lifestyle"]       .op-vertical-title svg { color: var(--brand-red); }
.op-home-vertical[data-vertical="travel"]          .op-vertical-title svg { color: var(--premium-gold); }
.op-home-vertical[data-vertical="technology"]      .op-vertical-title svg { color: var(--tech-blue); }
.op-home-vertical[data-vertical="sports"]          .op-vertical-title svg { color: var(--sport-green); }
.op-home-vertical[data-vertical="strange-history"] .op-vertical-title svg { color: var(--premium-violet); }

/* --------------------------------------------------------------------------
 * Dashboard tiles — vertical navigator (skips empty verticals visually)
 * -----------------------------------------------------------------------*/
.op-publisher-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 28px;
}
@media (max-width: 1024px) { .op-publisher-dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .op-publisher-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.op-dashboard-tile {
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 18px;
    color: var(--ink-strong);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.op-dashboard-tile svg { width: 26px; height: 26px; color: var(--brand-red); }
.op-dashboard-tile strong { font-family: "Source Serif 4", Georgia, serif; font-size: 22px; font-weight: 700; }
.op-dashboard-tile span { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.op-dashboard-tile small { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.op-dashboard-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--brand-red); }
.op-dashboard-tile--soon { background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(0,0,0,.02) 8px 16px); }
.op-dashboard-tile--soon svg { color: var(--ink-soft); }
.op-dashboard-tile--soon strong { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
 * Latest wire — short headline ticker
 * -----------------------------------------------------------------------*/
.op-home-wire { margin: 24px 0 8px; }
.op-wire-list { display: grid; gap: 10px; }
.op-wire-item {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 12px;
    align-items: baseline;
    padding: 12px 14px;
    background: var(--surface-soft);
    border-left: 3px solid var(--brand-red);
    border-radius: 6px;
}
.op-wire-item span { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.op-wire-item h3 { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-size: 18px; font-weight: 600; line-height: 1.3; }
.op-wire-item h3 a { color: var(--ink-strong); text-decoration: none; }
.op-wire-item h3 a:hover { color: var(--brand-red); }
.op-wire-item small { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) { .op-wire-item { grid-template-columns: 1fr; gap: 4px; } }

/* --------------------------------------------------------------------------
 * Newsletter CTA — single, prominent block before the footer
 * -----------------------------------------------------------------------*/
.op-home-newsletter { margin: 48px 0 24px; }
.op-newsletter-card {
    max-width: 1280px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--brand-red) 0%, #6f0020 100%);
    color: #fff;
    padding: 44px 36px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}
.op-newsletter-card .op-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 700;
    color: #ffdada;
    margin-bottom: 10px;
}
.op-newsletter-card h2 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.1;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: -.005em;
}
.op-newsletter-card p {
    margin: 0 auto 18px;
    max-width: 56ch;
    font-size: 15px;
    opacity: .92;
    line-height: 1.5;
}
.op-newsletter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto 14px;
    padding: 6px 6px 6px 16px;
    background: #fff;
    border-radius: 999px;
}
.op-newsletter-form input {
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: var(--ink-strong);
    padding: 8px 4px;
    min-width: 0;
}
.op-newsletter-form button {
    border: 0;
    background: var(--ink-strong);
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}
.op-newsletter-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffdada;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,218,218,.5);
    padding-bottom: 2px;
}
.op-newsletter-link svg { width: 14px; height: 14px; }
.op-newsletter-link:hover { color: #fff; border-bottom-color: #fff; }

/* --------------------------------------------------------------------------
 * Single article — 720px reading column, drop cap, sticky share
 * -----------------------------------------------------------------------*/
.op-single .op-article { max-width: 720px; margin: 0 auto; }
.op-single .op-article-hero { padding: 36px 0 18px; }
.op-single .op-article-hero h1 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.08;
    margin: 12px 0 14px;
    color: var(--ink-strong);
    letter-spacing: -.005em;
    text-wrap: balance;
}
.op-single .op-article-deck {
    font-family: "Source Serif 4", Georgia, serif;
    font-style: italic;
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.4;
    color: var(--ink-soft);
    margin: 0 0 18px;
}
.op-single .op-article-meta-row { color: var(--ink-soft); font-size: 14px; }
.op-single .op-content {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 19px;
    line-height: 1.7;
    color: var(--ink-strong);
    max-width: 680px;
    margin: 24px auto 0;
}
.op-single .op-content > p:first-of-type::first-letter,
.op-dropcap {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 700;
    float: left;
    font-size: 4.6em;
    line-height: 0.85;
    padding: 6px 12px 0 0;
    color: var(--brand-red);
}
.op-pullquote {
    border-top: 2px solid var(--brand-red);
    border-bottom: 2px solid var(--brand-red);
    padding: 18px 0;
    margin: 28px 0;
    font-family: "Source Serif 4", Georgia, serif;
    font-style: italic;
    font-size: 24px;
    line-height: 1.35;
    color: var(--ink-strong);
    text-align: center;
}

/* Sticky share rail on desktop */
@media (min-width: 1024px) {
    .op-single .op-single-share-rail {
        position: sticky;
        top: 120px;
        margin-left: -88px;
        width: 56px;
        float: left;
    }
}

/* --------------------------------------------------------------------------
 * Footer polish — single accent rule, lighter columns, single-line note
 * -----------------------------------------------------------------------*/
.op-footer { border-top: 4px solid var(--brand-red); }
.op-footer-masthead { border-bottom: 1px solid var(--border-soft); }
.op-footer-note {
    font-size: 12px;
    color: var(--ink-soft);
    margin: 8px 0 0;
    font-style: italic;
}
.op-footer-navs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .op-footer-navs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .op-footer-navs { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
 * A11y / focus polish
 * -----------------------------------------------------------------------*/
.op-magazine-hero-copy h1 a:focus-visible,
.op-card a:focus-visible,
.op-section-header a:focus-visible,
.op-dashboard-tile:focus-visible,
.op-newsletter-link:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 3px;
    border-radius: 4px;
}

/* =========================================================================
 * FIX 2026-06-30: Responsive content + reading typography
 * - Article body: real side padding on mobile, max-width on desktop
 * - Page body: same treatment + page-hero for static pages
 * - Legal pages: better hierarchy for long content
 * ========================================================================= */

/* Reset article body padding so the editor content has breathing room */
.op-content {
    box-sizing: border-box;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 19px;
    line-height: 1.7;
    color: var(--ink-strong, #111315);
}
@media (min-width: 768px) { .op-content { padding: 0 32px; } }
@media (min-width: 1100px) { .op-content { padding: 0 40px; } }

/* Reading typography inside content */
.op-content > * { margin: 0 0 1.4em; }
.op-content p { margin: 0 0 1.4em; }
.op-content > p:first-of-type::first-letter {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 700;
    float: left;
    font-size: 4.2em;
    line-height: 0.9;
    padding: 6px 12px 0 0;
    color: var(--brand-red, #b80035);
}
.op-content h2 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    margin: 2em 0 0.6em;
    color: var(--ink-strong, #111315);
    letter-spacing: -0.005em;
}
.op-content h3 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    margin: 1.8em 0 0.5em;
    color: var(--ink-strong, #111315);
}
.op-content h4 {
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 1.8em 0 0.5em;
    color: var(--brand-red, #b80035);
}
.op-content a { color: var(--brand-red, #b80035); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.op-content a:hover { text-decoration-thickness: 2px; }
.op-content ul, .op-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.op-content li { margin-bottom: 0.5em; }
.op-content blockquote {
    border-left: 3px solid var(--brand-red, #b80035);
    margin: 1.6em 0;
    padding: 0.6em 0 0.6em 1.4em;
    font-style: italic;
    color: var(--ink-soft, #404858);
    font-size: 1.05em;
}
.op-content figure { margin: 1.8em 0; }
.op-content figure img { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.op-content figcaption { font-size: 14px; color: var(--ink-soft, #404858); text-align: center; margin-top: 0.5em; }
.op-content code, .op-content kbd, .op-content samp { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 0.9em; background: #f4f5f7; padding: 2px 6px; border-radius: 4px; }
.op-content pre { background: #f4f5f7; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: 14px; line-height: 1.55; }
.op-content hr { border: 0; border-top: 1px solid var(--border-soft, #e6e8ea); margin: 2.2em 0; }
.op-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.op-content th, .op-content td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft, #e6e8ea); text-align: left; }
.op-content th { background: var(--surface-soft, #f7f9fb); font-weight: 700; }

/* Disable the drop-cap on the very first paragraph if it's inside a list/heading block */
.op-content > ul > li:first-child::first-letter,
.op-content > ol > li:first-child::first-letter { float: none; font-size: inherit; padding: 0; }

/* Single article: the .op-article should be full-width inside .op-main, with .op-content doing the constraining */
.op-single .op-main, .op-page .op-main { padding: 0; }
.op-single .op-article, .op-page .op-article { max-width: 100%; }
.op-single .op-article-hero { max-width: 880px; margin: 0 auto; padding: 36px 20px 18px; box-sizing: border-box; }
@media (min-width: 768px) { .op-single .op-article-hero { padding: 48px 32px 22px; } }
.op-single .op-article-hero h1 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.08;
    margin: 12px 0 14px;
    color: var(--ink-strong, #111315);
    letter-spacing: -0.005em;
    text-wrap: balance;
}
.op-single .op-article-deck {
    font-family: "Source Serif 4", Georgia, serif;
    font-style: italic;
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.4;
    color: var(--ink-soft, #404858);
    margin: 0 0 18px;
}
.op-single .op-single-media { max-width: 1100px; margin: 0 auto 24px; padding: 0 20px; box-sizing: border-box; }
.op-single .op-single-media img { width: 100%; height: auto; border-radius: 10px; display: block; }
.op-single .op-article-meta-row { color: var(--ink-soft, #404858); font-size: 14px; margin: 8px 0 18px; }

/* Static page hero */
.op-page .op-page-hero {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 20px 12px;
    box-sizing: border-box;
    border-top: 4px solid var(--ink-strong, #111315);
}
.op-page .op-page-hero .op-card-category { display: inline-block; margin-bottom: 10px; }
.op-page .op-page-hero h1 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(32px, 4.2vw, 52px);
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--ink-strong, #111315);
    letter-spacing: -0.005em;
    text-wrap: balance;
}
.op-page .op-page-hero .op-page-deck {
    font-family: "Source Serif 4", Georgia, serif;
    font-style: italic;
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink-soft, #404858);
    margin: 0;
    max-width: 64ch;
}
.op-page .op-page-hero .op-page-meta {
    margin-top: 14px;
    font-size: 13px;
    color: var(--ink-soft, #404858);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* When there's no hero (older static pages), still give the page H1 styling */
.op-page .op-article > h1:first-child {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.1;
    font-weight: 700;
    margin: 36px auto 16px;
    max-width: 720px;
    padding: 0 20px;
    color: var(--ink-strong, #111315);
    text-wrap: balance;
}

/* Legal page styling: longer headings list, more breathing room */
.op-page.page-slug-privacy-policy .op-content h2,
.op-page.page-slug-cookie-policy .op-content h2,
.op-page.page-slug-terms-and-conditions .op-content h2,
.op-page.page-slug-disclaimer .op-content h2,
.op-page.page-slug-editorial-policy .op-content h2 {
    border-top: 1px solid var(--border-soft, #e6e8ea);
    padding-top: 0.7em;
    margin-top: 2.2em;
}
.op-page .op-content { font-size: 18px; line-height: 1.75; }

/* Share rail polish on single */
.op-single .op-share-rail, .op-single [class*="share"] {
    max-width: 720px;
    margin: 0 auto 22px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Article footer (related, trending, author) should also have side padding */
.op-single .op-article-footer { max-width: 1100px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* Trust strip and author box spacing */
.op-single .op-trust-strip { padding: 16px 0; border-top: 1px solid var(--border-soft, #e6e8ea); border-bottom: 1px solid var(--border-soft, #e6e8ea); margin: 22px 0; }
.op-single .op-trust-strip > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft, #404858); margin-right: 18px; }

/* Tags & categories line on articles */
.op-single .op-article-footer .op-tags, .op-single .op-article-footer .op-cats {
    display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0;
}
.op-single .op-article-footer .op-tags a, .op-single .op-article-footer .op-cats a {
    display: inline-block;
    padding: 4px 10px;
    background: var(--surface-soft, #f7f9fb);
    border: 1px solid var(--border-soft, #e6e8ea);
    border-radius: 999px;
    font-size: 12px;
    color: var(--ink-soft, #404858);
    text-decoration: none;
}
.op-single .op-article-footer .op-tags a:hover, .op-single .op-article-footer .op-cats a:hover {
    background: var(--ink-strong, #111315);
    color: #fff;
    border-color: var(--ink-strong, #111315);
}

/* Main content wrapper side padding for static pages */
.op-page .op-main > .op-article { padding: 0; }
.op-page .op-main { padding-bottom: 60px; }

/* Improve the cards-grid inside article (related) on small screens */
@media (max-width: 640px) {
    .op-single .op-related .op-grid, .op-page .op-related .op-grid { grid-template-columns: 1fr; }
}

/* Image captions (WordPress default style) inside article */
.op-content .wp-caption { max-width: 100%; }
.op-content .wp-caption-text { font-size: 14px; color: var(--ink-soft, #404858); text-align: center; padding: 6px 0 0; }

/* Stronger focus for keyboard nav on links inside article body */
.op-content a:focus-visible { outline: 2px solid var(--brand-red, #b80035); outline-offset: 3px; border-radius: 2px; }

/* =========================================================================
 * Page hero (added by page.php v2) — replaces the conditional h1
 * ========================================================================= */
.op-page-hero {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.op-page-hero-inner {
    border-top: 4px solid var(--ink-strong, #111315);
    padding: 32px 0 24px;
}
@media (min-width: 768px) { .op-page-hero-inner { padding: 44px 0 28px; } }
.op-page-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    font-size: 11px;
    color: var(--brand-red, #b80035);
    margin: 0 0 12px;
}
.op-page-title {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--ink-strong, #111315);
    letter-spacing: -0.005em;
    text-wrap: balance;
}
.op-page-deck {
    font-family: "Source Serif 4", Georgia, serif;
    font-style: italic;
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink-soft, #404858);
    margin: 0 0 14px;
    max-width: 64ch;
}
.op-page-meta {
    font-size: 12px;
    color: var(--ink-soft, #404858);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.op-page-related { max-width: 1100px; margin: 36px auto 0; padding: 0 20px; box-sizing: border-box; }

/* When the page has the page-slug class on body via WP, target via body
   (or use the op-page-{slug} class on main for specificity).
   Legal pages: add a top-rule divider between h2 sections for readability. */
.op-page-privacy-policy .op-content h2,
.op-page-cookie-policy .op-content h2,
.op-page-terms-and-conditions .op-content h2,
.op-page-disclaimer .op-content h2,
.op-page-editorial-policy .op-content h2 {
    border-top: 1px solid var(--border-soft, #e6e8ea);
    padding-top: 0.9em;
    margin-top: 2.2em;
}
.op-page-privacy-policy .op-content h2:first-of-type,
.op-page-cookie-policy .op-content h2:first-of-type,
.op-page-terms-and-conditions .op-content h2:first-of-type,
.op-page-disclaimer .op-content h2:first-of-type,
.op-page-editorial-policy .op-content h2:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

/* Wider container for the legal-style pages since their content tends to be longer */
.op-page-privacy-policy .op-page-content,
.op-page-cookie-policy .op-page-content,
.op-page-terms-and-conditions .op-page-content,
.op-page-disclaimer .op-page-content,
.op-page-editorial-policy .op-page-content {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.75;
}

/* Page content default — generous leading */
.op-page-content { font-size: 18px; line-height: 1.7; }
@media (max-width: 600px) {
    .op-page-hero-inner { padding: 24px 0 18px; }
    .op-page-title { font-size: 28px; }
    .op-page-deck { font-size: 16px; }
    .op-page-content { font-size: 17px; line-height: 1.7; }
}

/* The original page.php rendered the H1 inline before; ensure that
   if any cached version of page.php still emits an H1, it doesn't
   double-render after the new hero. */
.op-page .op-page-body > h1:first-child {
    display: none;
}

/* =========================================================================
 * Polish 2026-06-30 round 2 — override inline styles on article body,
 * stronger mobile padding, fix drop cap under inline styles
 * ========================================================================= */

/* The article body often has inline styles on paragraphs (added by editor).
   Force the editorial typography to win by using the article wrapper. */
.op-single .op-content {
    font-family: "Source Serif 4", Georgia, serif !important;
    font-size: 19px !important;
    line-height: 1.7 !important;
    color: var(--ink-strong, #111315) !important;
}
.op-single .op-content p {
    font-size: inherit !important;
    line-height: 1.7 !important;
    color: inherit !important;
    margin: 0 0 1.4em !important;
}

/* The lead paragraph (first paragraph) keeps its lighter treatment but
   slightly larger and the inline style override */
.op-single .op-content > p:first-of-type {
    font-size: 22px !important;
    line-height: 1.5 !important;
    color: var(--ink-soft, #404858) !important;
    font-weight: 400 !important;
    margin: 0 0 1.6em !important;
    max-width: 60ch !important;
}
.op-single .op-content > p:first-of-type strong,
.op-single .op-content > p:first-of-type b {
    color: var(--ink-strong, #111315) !important;
    font-weight: 700 !important;
}

/* Drop cap on the lead paragraph — works even when the paragraph has inline styles */
.op-single .op-content > p:first-of-type::first-letter {
    font-family: "Source Serif 4", Georgia, serif !important;
    font-weight: 700 !important;
    float: left !important;
    font-size: 5.2em !important;
    line-height: 0.85 !important;
    padding: 6px 14px 0 0 !important;
    color: var(--brand-red, #b80035) !important;
    background: transparent !important;
}

/* Stronger mobile padding on article body and hero */
@media (max-width: 600px) {
    .op-single .op-article-hero { padding: 28px 16px 14px !important; }
    .op-single .op-content { padding: 0 16px !important; font-size: 18px !important; }
    .op-single .op-content > p:first-of-type { font-size: 20px !important; }
    .op-single .op-single-media { padding: 0 16px !important; }
    .op-page .op-page-hero { padding: 0 16px !important; }
    .op-page .op-content { padding: 0 16px !important; }
    .op-page .op-page-related { padding: 0 16px !important; }
}

/* Better legal page spacing */
@media (min-width: 1100px) {
    .op-page-privacy-policy .op-page-content,
    .op-page-cookie-policy .op-page-content,
    .op-page-terms-and-conditions .op-page-content,
    .op-page-disclaimer .op-page-content,
    .op-page-editorial-policy .op-page-content {
        font-size: 18px;
        line-height: 1.8;
    }
}

/* Make the meta line under page title less cramped */
.op-page-meta { margin-top: 12px !important; }

/* Article tags row layout (some themes emit op-article-footer-items) */
.op-article-footer { display: flex; flex-direction: column; gap: 22px; }

/* =========================================================================
 * Cards — internal padding + improved typography + hover polish
 * ========================================================================= */
.op-card {
    padding: 0 !important;
    overflow: hidden !important;
}
.op-card .op-card-image {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    aspect-ratio: 520/360 !important;
    background: var(--surface-muted, #f2f4f6);
}
.op-card .op-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform .35s ease !important;
}
.op-card:hover .op-card-image img {
    transform: scale(1.04) !important;
}

.op-card .op-card-meta {
    padding: 14px 18px 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: var(--ink-soft, #404858) !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}
.op-card .op-card-meta .op-dot {
    display: inline-block !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: var(--brand-red, #b80035) !important;
    margin-right: 4px !important;
    flex: 0 0 auto !important;
}

.op-card .op-card-title {
    padding: 8px 18px 0 !important;
    margin: 0 !important;
    font-family: "Source Serif 4", Georgia, serif !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: -0.003em !important;
    color: var(--ink-strong, #111315) !important;
    text-wrap: balance !important;
}
.op-card .op-card-title a {
    color: inherit !important;
    text-decoration: none !important;
    background-image: linear-gradient(currentColor, currentColor) !important;
    background-size: 0 1px !important;
    background-repeat: no-repeat !important;
    background-position: 0 100% !important;
    transition: background-size .25s ease !important;
}
.op-card:hover .op-card-title a { background-size: 100% 1px !important; }

.op-card p {
    padding: 10px 18px 0 !important;
    margin: 0 !important;
    font-family: "Source Serif 4", Georgia, serif !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: var(--ink-soft, #404858) !important;
    flex: 1 1 auto !important;
}

.op-card .op-card-category {
    padding: 14px 18px 16px !important;
    margin: 0 !important;
    font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--brand-red, #b80035) !important;
    border: 0 !important;
    background: transparent !important;
    display: inline-block !important;
}

/* Color-code the category link by category */
.op-card .op-card-category.is-editorial     { color: var(--brand-red, #b80035) !important; }
.op-card .op-card-category.is-sport          { color: var(--sport-green, #00836c) !important; }
.op-card .op-card-category.is-tech           { color: var(--tech-blue, #2563eb) !important; }
.op-card .op-card-category.is-commerce       { color: var(--premium-gold, #a16207) !important; }
.op-card .op-card-category.is-entertainment  { color: var(--premium-violet, #7c3aed) !important; }

/* Stronger hover state for the card itself */
.op-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}
.op-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 18px 36px rgba(17, 19, 21, .12) !important;
    border-color: color-mix(in srgb, var(--accent, var(--brand-red, #b80035)) 50%, var(--border-soft, #e6e8ea)) !important;
}

/* Make the card link to the article fill the title row only (not the whole card) */
.op-card { position: relative; }
.op-card .op-card-image::after {
    content: "";
    position: absolute; inset: 0;
    z-index: 1;
}
.op-card .op-card-title a,
.op-card .op-card-category { position: relative; z-index: 2; }
.op-card .op-card-meta { position: relative; z-index: 2; }
.op-card p { position: relative; z-index: 2; }

/* Media badge inside the card image */
.op-card .op-media-badge {
    position: absolute !important;
    bottom: 10px !important;
    left: 10px !important;
    z-index: 3 !important;
    background: rgba(17, 19, 21, .85) !important;
    color: #fff !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    backdrop-filter: blur(4px) !important;
}

/* Mobile: bigger padding since the cards have less room anyway */
@media (max-width: 600px) {
    .op-card .op-card-meta { padding: 12px 14px 0 !important; }
    .op-card .op-card-title { padding: 8px 14px 0 !important; font-size: 19px !important; }
    .op-card p { padding: 8px 14px 0 !important; font-size: 14px !important; }
    .op-card .op-card-category { padding: 12px 14px 14px !important; }
}

/* Grid spacing — slightly tighter so cards don't look floating */
.op-grid-3, .op-grid-4 { gap: 24px !important; }
@media (max-width: 1024px) { .op-grid-3, .op-grid-4 { gap: 18px !important; } }
@media (max-width: 640px)  { .op-grid-3, .op-grid-4 { gap: 16px !important; } }

/* The home page "picks" and related cards have slight tweaks */
.op-home-picks .op-card { background: #fff; }
.op-related .op-section-header { margin-top: 32px !important; }