/*
 * E565: Super Site Home layout bridge.
 * Uses the original laboratory visual tokens without replacing WordPress
 * content queries, editorial decisions, ad providers, SEO or taxonomy.
 * Registered only when p63_super_theme_enabled() is explicitly true.
 */
body.p63-super-theme .p63-home--modular {
    width: min(var(--max), calc(100% - 36px));
    max-width: 100%;
    margin-inline: auto;
    padding-top: 22px;
}
body.p63-super-theme .p63-home-layout--has-ad-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: var(--gap);
    align-items: start;
}
body.p63-super-theme .p63-home-layout--no-ad-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
}
body.p63-super-theme .p63-home-content,
body.p63-super-theme .p63-home-ad-rail,
body.p63-super-theme .p63-lead-primary,
body.p63-super-theme .p63-lead-secondary {
    min-width: 0;
}
body.p63-super-theme .p63-home .p63-section {
    margin: 0 0 36px;
}
body.p63-super-theme .p63-home .p63-section-heading {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--p63-line);
    margin-bottom: 17px;
}
body.p63-super-theme .p63-home .p63-section-heading h2 {
    font-family: Georgia, serif;
    font-size: clamp(22px, 2.3vw, 29px);
    color: var(--p63-ink);
    line-height: 1.18;
    margin: 0;
}
body.p63-super-theme .p63-home .p63-section-heading .p63-eyebrow {
    margin: 0 0 5px;
    font-size: 10px;
    letter-spacing: .11em;
}
body.p63-super-theme .p63-home .p63-see-all {
    font-size: 12px;
    font-weight: 800;
    color: var(--p63-brand);
    flex: 0 0 auto;
}
body.p63-super-theme .p63-lead-grid--modular {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}
body.p63-super-theme .p63-lead-grid--modular > .p63-lead-primary {
    grid-column: 1;
    grid-row: auto;
}
body.p63-super-theme .p63-lead-primary .super-hero-card {
    width: 100%;
}
body.p63-super-theme .p63-lead-secondary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid var(--p63-line);
}
body.p63-super-theme .p63-lead-secondary .super-secondary-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin: 0;
    border: 0;
}
body.p63-super-theme .p63-lead-secondary .super-secondary-card.super-card--text-only {
    display: block;
}
body.p63-super-theme .p63-lead-secondary .super-secondary-card .super-visual {
    margin: 0;
    aspect-ratio: 1.2;
}
body.p63-super-theme .p63-headline-ticker {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 22px 0 32px;
    padding: 11px 14px;
    border: 1px solid var(--p63-line);
    background: var(--surface);
}
body.p63-super-theme .p63-headline-ticker > div {
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}
body.p63-super-theme .p63-home .p63-editorial-module,
body.p63-super-theme .p63-home .p63-territory-module,
body.p63-super-theme .p63-home .p63-format-module {
    border-top: 0;
    padding-top: 10px;
}
body.p63-super-theme .p63-home .p63-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}
body.p63-super-theme .p63-editorial-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 20px;
}
body.p63-super-theme .p63-editorial-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}
body.p63-super-theme .p63-editorial-list .super-secondary-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
}
body.p63-super-theme .p63-editorial-list .super-secondary-card.super-card--text-only {
    display: block;
}
body.p63-super-theme .p63-territory-module {
    padding-block: 15px 27px;
}
/* No territory is given larger cards, different spacing or special ad treatment. */
body.p63-super-theme .p63-home-ad-rail {
    width: 300px;
    max-width: 100%;
    min-width: 0;
    padding-top: 0;
}
@media (max-width: 1100px) {
    body.p63-super-theme .p63-home-layout--has-ad-rail {
        grid-template-columns: minmax(0, 1fr);
    }
    body.p63-super-theme .p63-home-ad-rail {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        margin-top: 18px;
    }
}
@media (max-width: 840px) {
    body.p63-super-theme .p63-lead-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.p63-super-theme .p63-editorial-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 760px) {
    body.p63-super-theme .p63-home .p63-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.p63-super-theme .p63-home .p63-section-heading {
        flex-wrap: wrap;
        gap: 8px;
    }
    body.p63-super-theme .p63-lead-secondary .super-secondary-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}
@media (max-width: 540px) {
    body.p63-super-theme .p63-home .p63-cards-grid,
    body.p63-super-theme .p63-lead-secondary {
        grid-template-columns: minmax(0, 1fr);
    }
    body.p63-super-theme .p63-home-ad-rail {
        display: block;
    }
}

/* E565. Additional selectors for the independent Super Home template. */
/*
 * E565. Layout bridge from the unchanged Super Prototype CSS to live WP cards.
 * The stylesheet is loaded only with the explicit Super Site rollout filter.
 */
body.p63-super-theme .p63-super-home {
    max-width: var(--max);
    min-width: 0;
    padding-top: 18px;
    padding-bottom: 44px;
}
body.p63-super-theme .p63-super-home .home-hero-grid {
    margin-top: 10px;
    margin-bottom: 28px;
}
body.p63-super-theme .p63-super-home .p63-super-hero-no-feature {
    grid-template-columns: minmax(0, 1fr);
}
body.p63-super-theme .p63-super-hero-no-feature .home-lead-column {
    display: none;
}
body.p63-super-theme .p63-super-home .p63-super-territory,
body.p63-super-theme .p63-super-home .p63-super-editorial {
    margin-top: 26px;
    min-width: 0;
}
body.p63-super-theme .p63-super-home .section-head {
    align-items: end;
}
body.p63-super-theme .p63-super-home .story-grid > article {
    min-width: 0;
}
body.p63-super-theme .p63-super-home .home-lead .super-hero-card {
    width: 100%;
}
body.p63-super-theme .p63-super-home .latest-widget {
    min-width: 0;
}
body.p63-super-theme .p63-super-home .latest-item a,
body.p63-super-theme .p63-super-home .super-story-title a {
    overflow-wrap: anywhere;
}
body.p63-super-theme .breaking .ticker-window {
    min-width: 0;
    overflow: hidden;
}
body.p63-super-theme .breaking .ticker-track {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    transform: none;
    width: auto;
}
body.p63-super-theme .breaking .ticker-track a {
    color: inherit;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}
body.p63-super-theme .breaking .ticker-track a:hover {
    text-decoration: underline;
}
@media (max-width: 960px) {
    body.p63-super-theme .p63-super-home .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    body.p63-super-theme .p63-super-home {
        padding-top: 10px;
        padding-bottom: 28px;
    }
    body.p63-super-theme .p63-super-home .home-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    body.p63-super-theme .p63-super-home .home-rail {
        min-width: 0;
    }
    body.p63-super-theme .p63-super-home .section-head {
        flex-wrap: wrap;
    }
}
@media (max-width: 520px) {
    body.p63-super-theme .p63-super-home .story-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    body.p63-super-theme .p63-super-home .home-secondary-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    body.p63-super-theme .breaking .ticker-track {
        display: block;
    }
    body.p63-super-theme .breaking .ticker-track a {
        display: block;
        margin: 5px 0;
    }
}

/* E580, useful navigation for an Editorial-owned inaugurated section without
 * current cards. No advertisement or placeholder content is generated. */
body.p63-super-theme .p63-super-inaugurated-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 13px 17px;
    border: 1px solid var(--p63-line);
    background: var(--surface);
    border-radius: 7px;
    min-width: 0;
}
body.p63-super-theme .p63-super-inaugurated-nav p {
    margin: 0;
    color: var(--p63-muted);
    line-height: 1.5;
}
body.p63-super-theme .p63-super-inaugurated-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 800;
    color: var(--p63-brand);
    border: 1px solid var(--p63-line);
    border-radius: 7px;
}
body.p63-super-theme .p63-super-inaugurated-nav a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

/* Restore the prototype's editorial hierarchy, not a wall of identical rows. */
body.p63-super-theme .p63-super-home .p63-super-editorial-grid {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px;
}
body.p63-super-theme .p63-super-home .p63-super-editorial-grid > * { grid-column: 1 / -1; min-width: 0; }
body.p63-super-theme .p63-super-home .p63-super-editorial-grid > .p63-super-editorial-compact { grid-column: auto; }
body.p63-super-theme .p63-super-home .p63-super-editorial-compact .story-grid,
body.p63-super-theme .p63-super-home .p63-super-editorial-feature .story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
body.p63-super-theme .p63-super-home .p63-super-feed-ad:empty { display: none; }
body.p63-super-theme .p63-super-home .p63-super-lead-action { margin-top: 18px; }
body.p63-super-theme .p63-super-home .p63-super-lead-action a { display:inline-flex; align-items:center; min-height:44px; }
body.p63-super-theme .p63-super-home .home-lead-column .home-rank { margin-top:18px; }
@media(max-width:760px) {
 body.p63-super-theme .p63-super-home .p63-super-editorial-grid { grid-template-columns:minmax(0,1fr); }
 body.p63-super-theme .p63-super-home .p63-super-editorial-feature .editorial-two-col { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:520px) {
 body.p63-super-theme .p63-super-home .p63-super-editorial-compact .story-grid,
 body.p63-super-theme .p63-super-home .p63-super-editorial-feature .story-grid { grid-template-columns:minmax(0,1fr); }
}

/* Production parity: legacy .p63-card display must not override prototype's
 * thumbnail/text secondary row. Preserve full titles, natural text height. */
body.p63-super-theme .p63-super-home .home-secondary-grid .super-secondary-card.super-card--photo {
    display:grid; grid-template-columns:76px minmax(0,1fr); align-items:start; gap:8px;
}
body.p63-super-theme .p63-super-home .home-secondary-grid .super-secondary-card .super-visual {
    width:100%; min-height:0; aspect-ratio:1; margin:0;
}
body.p63-super-theme .p63-super-home .home-secondary-grid .super-secondary-copy { min-width:0; }
body.p63-super-theme .p63-super-home .home-secondary-grid .super-secondary-copy h3 { font-size:15px; line-height:1.2; }
body.p63-super-theme .p63-super-home .home-secondary-grid .super-secondary-copy .story-meta { font-size:10px; }
body.p63-super-theme .breaking .wrap { min-height:32px; }
body.p63-super-theme .breaking .ticker-window { overflow-x:auto; scrollbar-width:thin; overscroll-behavior-x:contain; }
body.p63-super-theme .breaking .ticker-track { display:flex; width:max-content; min-width:100%; flex-wrap:nowrap; gap:24px; animation:none; transform:none; }
body.p63-super-theme .breaking .ticker-track a { display:inline-block; white-space:nowrap; flex:0 0 auto; margin:0; padding:5px 0; font-weight:600; }
@media(max-width:760px) {
 body.p63-super-theme .p63-super-home .home-secondary-grid .super-secondary-card.super-card--photo { grid-template-columns:82px minmax(0,1fr); gap:10px; }
}

body.p63-super-theme .p63-super-topic-shortcuts { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; }
body.p63-super-theme .p63-super-topic-shortcuts a { display:inline-flex; align-items:center; min-height:44px; padding:6px 10px; border:1px solid var(--p63-line); border-radius:6px; color:var(--p63-brand); background:var(--surface); font-size:12px; font-weight:750; text-decoration:none; }
body.p63-super-theme .p63-super-topic-shortcuts a:hover { border-color:var(--p63-brand); text-decoration:underline; }

/* Live Chrome comparison, 26 Nov 2026: reproduce original Home density.
 * Preserve the advertising owner's real creative, consent and delivery state. */
body.p63-super-theme .p63-super-home-nav-ad { width:min(970px,calc(100% - 36px)); margin-inline:auto; }
body.p63-super-theme .p63-super-home-nav-ad:empty { display:none; }
body.p63-super-theme .p63-super-home-nav-ad .p63-ad-slot--home_top { width:100%; max-width:970px; padding:0; margin:0 auto; box-sizing:border-box; }
body.p63-super-theme .p63-super-home-nav-ad .p63-ad-slot--home_top .p63-ad-label { margin:0; }
body.p63-super-theme .p63-super-home { padding-top:2px; }
body.p63-super-theme .p63-super-home .home-lead .super-hero-card .hero-copy h2 { font-size:clamp(27px,2.55vw,35px); line-height:1.08; letter-spacing:-.035em; margin:6px 0 8px; }
body.p63-super-theme .p63-super-home .home-lead .super-hero-card .visual { min-height:0; aspect-ratio:4/3; height:auto; align-self:start; border-radius:3px; }
body.p63-super-theme .p63-super-home .home-lead .p63-super-lead-action { margin-top:10px; }
body.p63-super-theme .p63-super-home .home-lead .p63-super-lead-monogram { display:inline-grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--p63-ink); color:#fff; font-weight:850; }
body.p63-super-theme .p63-super-home .story-grid .super-story-card { border:0; border-bottom:1px solid var(--p63-line); border-radius:0; box-shadow:none; background:transparent; }
body.p63-super-theme .p63-super-home .story-grid .super-story-card .story-body { padding:8px 0 10px; }
body.p63-super-theme .p63-super-home .story-grid .super-story-card .super-visual { border-radius:3px; }
body.p63-super-theme .p63-super-home .territorial-grid .super-story-card.super-card--photo { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1fr); gap:10px; align-items:start; padding-bottom:10px; }
body.p63-super-theme .p63-super-home .home-topic .story-grid { grid-template-columns:minmax(0,1fr); }
body.p63-super-theme .p63-super-home .home-topic .super-story-card.super-card--photo { display:grid; grid-template-columns:100px minmax(0,1fr); gap:10px; align-items:start; }
body.p63-super-theme .p63-super-home .politics-feature-grid .super-story-card.super-card--photo { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:12px; align-items:start; }
body.p63-super-theme .p63-super-home :is(.territorial-grid,.home-topic,.politics-feature-grid) .super-story-card .super-visual { aspect-ratio:4/3; min-height:0; }
body.p63-super-theme .p63-super-home :is(.territorial-grid,.home-topic,.politics-feature-grid) .super-story-card .story-body { padding:0 0 8px; min-width:0; }
body.p63-super-theme .p63-super-home .territorial-grid .super-story-card h3 { font-size:17px; }
body.p63-super-theme .p63-super-home .home-topic .super-story-card h3 { font-size:15px; }
body.p63-super-theme .p63-super-home :is(.territorial-grid,.home-topic) .super-story-card .story-body p { display:none; }
@media(max-width:1100px) and (min-width:761px) { body.p63-super-theme .p63-super-home .territorial-grid .super-story-card.super-card--photo { grid-template-columns:minmax(0,1fr); } }
@media(max-width:760px) {
 body.p63-super-theme .p63-super-home-nav-ad { width:min(320px,calc(100% - 24px)); }
 body.p63-super-theme .p63-super-home .home-lead .super-hero-card .hero-copy h2 { font-size:26px; }
 body.p63-super-theme .p63-super-home .home-lead .super-hero-card .visual { aspect-ratio:16/9; max-height:190px; width:100%; }
 body.p63-super-theme .p63-super-home .territorial-grid { grid-template-columns:minmax(0,1fr); }
 body.p63-super-theme .p63-super-home :is(.territorial-grid,.home-topic,.politics-feature-grid) .super-story-card.super-card--photo { grid-template-columns:94px minmax(0,1fr); gap:9px; }
 body.p63-super-theme .p63-super-home .territorial-grid .super-story-card h3 { font-size:16px; }
}
@media(max-width:360px) { body.p63-super-theme .p63-super-home .home-lead .super-hero-card .hero-copy h2 { font-size:24px; } }

body.p63-super-theme .p63-super-home .p63-super-latest-archive { display:flex; align-items:center; min-height:44px; padding:7px 0; border:0; font-weight:800; }

body.p63-super-theme .breaking .ticker-controls { flex:0 0 auto; }
body.p63-super-theme .breaking .ticker-controls button { border:1px solid var(--p63-line); border-radius:5px; width:32px; min-height:30px; background:var(--surface); color:var(--p63-ink); cursor:pointer; }
body.p63-super-theme .breaking .ticker-controls button[hidden] { display:none; }
@media(max-width:760px) { body.p63-super-theme .breaking .ticker-controls button { min-width:44px; min-height:44px; } }
