/* SE1 heritage, 2026. Loaded after Source and SE1 article styles.
   Historical palette: se1.css / se1extra.css. No changes to Source bundles. */
:root {
    --se1-yellow: #ffff99;
    --se1-red: #852121;
    --se1-editorial: #b52121;
    --se1-blue: #003366;
    --se1-ink: #202020;
    --se1-panel: #fffde0;
    --se1-topic-bg: #f5f7fa;
    --se1-topic-border: #d2d9e0;
    --se1-geo-bg: #ffffe3;
    --se1-geo-border: #dedb9a;
    --se1-geo-ink: #514b18;
    --se1-sans: 'Radio Canada', Inter, Arial, sans-serif;
    --se1-serif: Newsreader, Georgia, 'Times New Roman', serif;
}
/* Source determines light text from the configured site background. */
:root.has-light-text {
    --se1-blue: #c4d9ef;
    --se1-editorial: #f5aaa2;
    --se1-panel: #343426;
    --se1-topic-bg: #252f3a;
    --se1-topic-border: #536779;
    --se1-geo-bg: #393823;
    --se1-geo-border: #77744b;
    --se1-geo-ink: #ffffba;
}
body.se1-heritage {
    --font-sans: var(--se1-sans);
    --font-serif: var(--se1-serif);
    --font-serif-alt: var(--se1-serif);
    --gh-font-heading: var(--se1-sans);
    --gh-font-body: var(--se1-serif);
    --factor: 1;
    font-family: var(--se1-sans);
}
/* Explicit approved typography, regardless of the stored Source font choices. */
body.se1-heritage :is(.is-title, .gh-content h2, .gh-content h3, .gh-card-title) {
    font-family: var(--se1-sans);
    font-weight: 700;
    letter-spacing: -.015em;
}
body.se1-heritage :is(.is-body, .gh-card-excerpt, .gh-article-excerpt) {
    font-family: var(--se1-serif);
    letter-spacing: 0;
}
body.se1-heritage :is(.gh-navigation, .gh-footer, .gh-button, .gh-form, .gh-form-input, .gh-card-meta, .gh-card-tag, .gh-article-tag, .gh-article-meta, .se1-article-footer) {
    font-family: var(--se1-sans);
}
/* Yellow masthead: preserve Source's three navigation arrangements and JS. */
#gh-navigation.gh-navigation {
    background: var(--se1-yellow);
    color: var(--se1-ink);
    --color-darker-gray: #202020;
    --color-secondary-text: #545454;
    --color-border: #d8d48a;
    border-bottom: 4px solid var(--se1-red);
    font-weight: 650;
    height: 80px;
}
#gh-navigation .gh-navigation-logo {color: var(--se1-ink);}
#gh-navigation .gh-navigation-actions {background: var(--se1-yellow);}
#gh-navigation .gh-navigation-members .gh-button,
.gh-footer .gh-form .gh-button, .gh-cta .gh-form .gh-button {
    background: var(--se1-red); color: #fff; border-radius: 4px;
}
#gh-navigation .gh-navigation-menu {color: #fff; background: var(--se1-red); border-radius: 4px;}
#gh-navigation .nav > li > a {padding: 7px 9px; border-radius: 3px;}
#gh-navigation .nav > li > a:is(:hover,:focus-visible),
#gh-navigation .nav > .nav-current > a {background: var(--se1-yellow); color: #202020; opacity: 1;}
#gh-navigation .gh-dropdown {background: var(--se1-red); border: 1px solid var(--se1-yellow);}
#gh-navigation .gh-dropdown li a {color: #fff !important;}
#gh-navigation .gh-dropdown li a:is(:hover,:focus-visible) {background: var(--se1-yellow); color: #202020 !important; opacity: 1;}
#gh-navigation .gh-more-toggle {color: #fff;}
#gh-navigation :focus-visible {outline: 2px solid currentColor; outline-offset: 3px;}
@media (min-width: 768px) {
    #gh-navigation .nav {gap: clamp(4px, 1vw, 16px);}
    #gh-navigation:not(.is-stacked) .gh-navigation-menu {padding: 4px 10px; min-width: 0;}
    #gh-navigation.is-stacked {height: auto; border-bottom: 0; background: linear-gradient(to bottom, var(--se1-yellow) 80px, var(--se1-red) 80px);}
    #gh-navigation.is-stacked .gh-navigation-menu {height: 48px; border-radius: 0;}
    #gh-navigation.is-stacked .gh-navigation-menu::before, #gh-navigation.is-stacked .gh-navigation-menu::after {display: none;}
}
@media (max-width: 767px) {
    #gh-navigation.gh-navigation {height: 64px;}
    #gh-navigation.is-open {height: 100%;}
    #gh-navigation.is-open .gh-navigation-menu {padding: 20px 12px; align-self: start; width: 100%;}
    #gh-navigation .nav > li > a {min-height: 44px;}
}
/* Headlines and editorial hierarchy. Preserve classic photo-header contrast. */
.se1-heritage :is(.gh-card-title, .gh-article-title, .gh-container-title, .gh-about-title, .gh-featured-title, .gh-cta-title, .gh-content h2, .gh-content h3) {color: var(--se1-blue);}
.se1-heritage .gh-header.is-classic:not(.has-image) .gh-header-title {color: var(--se1-blue);}
.se1-heritage .gh-header.is-classic.has-image .gh-header-title {color: #fff;}
.se1-heritage :is(.gh-card-tag, .gh-article-tag, .se1-footer-label) {color: var(--se1-editorial); font-weight: 700;}
.se1-heritage .gh-container-title {border-top: 3px solid var(--se1-red); border-bottom: 1px solid var(--color-border); padding: 9px 0; font-size: 1.65rem; text-transform: none; letter-spacing: 0; font-weight: 700;}
.se1-heritage .gh-card-title-link:hover .gh-card-title {text-decoration: underline; text-underline-offset: 3px;}
.se1-heritage .gh-card-image {border-radius: 3px; overflow: hidden;}
/* Compact news density; preserve chosen feed/header layouts and card order. */
body.se1-heritage.home-template {--grid-gap: clamp(18px, 2vw, 28px);}
.se1-heritage.home-template :is(.gh-container, .gh-featured, .gh-cta) {margin-top: 32px;}
.se1-heritage.home-template .gh-header {margin-top: 24px;}
.se1-heritage.home-template .gh-header.is-classic.has-image {margin-top: 0;}
.se1-heritage.home-template .gh-card-title {line-height: 1.2; font-size: clamp(1.8rem, 1.5vw, 2.2rem);}
.se1-heritage.home-template :is(.gh-header.is-magazine .gh-header-inner > .gh-card, .gh-header.is-highlight .gh-header-left) .gh-card-title {font-size: clamp(2.6rem, 2.7vw, 3.4rem); line-height: 1.12;}
.se1-heritage.home-template .gh-featured-feed .gh-card-title {font-size: 1.8rem;}
.se1-heritage.home-template .gh-card-excerpt {font-size: 1.8rem; line-height: 1.36;}
.se1-heritage .gh-card-meta {font-size: 1.3rem;}
.se1-heritage.home-template .gh-container .gh-card-meta:not(:empty) {margin-top: 8px;}
.se1-heritage .gh-cta-inner {background: var(--se1-panel); border-top: 3px solid var(--se1-red); padding: clamp(24px, 3vw, 40px); gap: 20px;}
/* Article typography and native share control. */
body.se1-heritage .gh-article-title {font-size: clamp(3.2rem, 3.5vw, 4.8rem); line-height: 1.12;}
.se1-heritage .gh-article-header {margin-top: clamp(28px, 3vw, 48px); margin-bottom: 32px;}
.se1-heritage .gh-article-excerpt {font-size: clamp(1.9rem, 2vw, 2.2rem); line-height: 1.45;}
.se1-heritage .gh-article-meta {font-size: 1.4rem;}
.se1-heritage .gh-meta-share {padding-bottom: 16px; border-bottom: 1px solid var(--color-border);}
.se1-heritage .gh-content {--content-width: 720px; font-size: clamp(1.9rem, 1.8vw, 2.1rem); line-height: 1.65; letter-spacing: 0;}
.se1-heritage .gh-content > :is(p, ul, ol, blockquote) a:not(.kg-btn):not(.kg-bookmark-container) {color: var(--se1-blue); text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: .06em;}
.se1-heritage .gh-content > :is(p, ul, ol, blockquote) a:hover {color: var(--se1-editorial);}
/* Topic groups follow the same classification as the emoji script. */
.se1-heritage .gh-content > .se1-article-footer {font-family: var(--se1-sans); border-top: 2px solid var(--se1-red); border-bottom: 1px solid var(--color-border);}
.se1-heritage .se1-topic-list a {background: var(--se1-topic-bg); border-color: var(--se1-topic-border); color: var(--se1-blue); border-radius: 4px; font-weight: 550; text-decoration: none;}
.se1-heritage .se1-topic-list a[data-topic-kind="geographic"] {background: var(--se1-geo-bg); border-color: var(--se1-geo-border); color: var(--se1-geo-ink);}
.se1-heritage .se1-topic-list a:hover {border-color: var(--se1-editorial); text-decoration: underline;}
.se1-heritage .se1-topic-list a:focus-visible {outline-color: var(--se1-blue);}
/* Footer: deliberately a light brand surface even on dark pages, for the existing logo. */
.se1-heritage .gh-footer {background: var(--se1-yellow); color: var(--se1-ink); --color-darker-gray: #202020; --color-secondary-text: #545454; --color-border: #d8d48a; --color-lighter-gray: #ffffe3; margin-top: 64px; padding-top: 32px; border-top: 4px solid var(--se1-red);}
.se1-heritage .gh-footer-signup {margin-bottom: 40px;}
.se1-heritage .gh-footer-signup-header {color: #003366;}
.se1-heritage .gh-footer-signup .gh-form {margin-top: 24px; background: #fff; color: #202020; border-radius: 4px;}
.se1-heritage .gh-footer .gh-form-input {color: #202020;}
.se1-heritage .gh-footer .gh-form-input::placeholder {color: #545454;}
.se1-heritage .gh-footer-bar {margin-bottom: 0; padding-block: 24px; border-top: 1px solid #d8d48a;}
/* Existing legacy archive template, scoped to its distinctive list. */
.se1-heritage .post-archive {list-style: none; padding: 0; max-width: 850px; margin: 20px auto;}
.se1-heritage .post-archive-item {border-bottom: 1px solid var(--color-border); padding: 9px 0;}
.se1-heritage .post-archive-item a {color: var(--se1-blue); font-weight: 600;}
.se1-heritage .post-archive-item time {display: inline-block; min-width: 64px; color: #fff; background: var(--se1-red); padding: 2px 5px; border-radius: 2px; font-size: 1.2rem; margin-right: 7px; text-align: center;}
@media print {
    .se1-heritage :is(#gh-navigation, .gh-footer, .gh-button-share, .se1-article-footer, .gh-comments, .gh-cta, .gh-container) {display: none !important;}
    .se1-heritage :is(.gh-article, .gh-content, .gh-article-title, .gh-article-tag, .gh-article-meta) {color: #000 !important; background: #fff !important;}
    body.se1-heritage {background: #fff !important; color: #000 !important;}
    .post-template.se1-heritage .gh-article::after {content: 'Published by SE1 News — www.se1.news'; display: block; margin: 24px auto; text-align: center; font-size: 10pt;}
}
