/* Public editorial design. Scoped separately from admin and advert controls. */
:root {
    --editorial-ink: #20242b;
    --editorial-muted: #626872;
    --editorial-line: #e3e5e8;
}
body {
    color: var(--editorial-ink);
}
.utility {
    background: #f6f7f8;
    color: var(--editorial-muted);
}
.masthead {
    padding-top: 40px;
    padding-bottom: 32px;
    display: block;
}
.masthead h1 {
    font-size: clamp(29px, 3.4vw, 46px);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.035em;
    max-width: none;
}
.masthead h1 span {
    color: var(--editorial-ink);
}
.lead-grid {
    gap: 40px;
    align-items: start;
}
.lead-story {
    background: white;
}
.lead-copy {
    padding: 22px 0 0;
}
.lead-image {
    border-radius: 8px;
    aspect-ratio: 1.75;
}
.lead-copy h2 {
    font-size: clamp(25px, 2.5vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.025em;
}
.lead-copy > p {
    color: var(--editorial-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
}
.category-label {
    color: #a91519;
    font-size: 11px;
    letter-spacing: 0.07em;
}
.post-meta,
.read-time {
    font-size: 12px;
    color: var(--editorial-muted);
}
.featured-heading {
    border-bottom: 2px solid var(--editorial-ink);
    padding-bottom: 16px;
}
.featured-heading h2 {
    font-size: 20px;
    font-weight: 600;
}
.featured article {
    padding: 22px 0;
    border-color: var(--editorial-line);
}
.featured h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.015em;
}
.featured .category-label {
    font-size: 10px;
}
.section {
    padding-top: 48px;
    padding-bottom: 48px;
}
.section-heading h2 {
    font-size: 28px;
    letter-spacing: -0.025em;
}
.cards-grid {
    gap: 28px;
}
.card-image {
    border-radius: 6px;
    overflow: hidden;
}
.card h3 {
    line-height: 1.4;
}
.category-section {
    background: white !important;
    border-top: 1px solid var(--editorial-line);
    padding: 48px 0;
}
.category-section .eyebrow {
    display: none;
}
.category-section .section-heading p {
    color: var(--editorial-muted);
    font-size: 14px;
}
.category-section .section-heading h2 {
    margin-top: 0;
}
.article-hero {
    background: #f6f7f8 !important;
    padding-top: 28px;
    padding-bottom: 44px;
}
.article-hero h1 {
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.035em;
}
.article-deck {
    font-size: 17px;
    line-height: 1.65;
    color: var(--editorial-muted);
}
.article-hero figure img {
    border-radius: 7px;
    object-fit: contain;
    background: white;
}
.breadcrumbs {
    color: var(--editorial-muted);
    font-size: 12px;
}
.article-hero figcaption {
    font-size: 11px;
    line-height: 1.5;
}
.article-body {
    font-size: 17px;
    line-height: 1.85;
}
.article-body h2 {
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: -0.025em;
}
.contents {
    background: white;
    border-color: var(--editorial-line);
}
.article-share {
    background: #f7f8fa;
    border-color: var(--editorial-line);
    border-radius: 10px;
}
.share-heading {
    border: 0;
    padding-left: 0;
}
.share-heading p:empty {
    display: none;
}
.article-share h2 {
    font-size: 21px;
}
.editorial-resources {
    background: #f5f6f8;
    border: 1px solid var(--editorial-line);
    border-radius: 10px;
    padding: 36px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 28px;
    margin-bottom: 60px;
}
.editorial-resources h2 {
    font-size: 30px;
    margin: 8px 0 12px;
}
.editorial-resources p {
    color: var(--editorial-muted);
    font-size: 15px;
}
.resource-links {
    display: grid;
    gap: 0;
}
.resource-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #dadde2;
    font-weight: 500;
    font-size: 15px;
}
.resource-links a:last-child {
    border-bottom: 0;
}
.resource-links svg {
    width: 18px;
    height: 18px;
}
a:focus-visible,
button:focus-visible {
    outline: 3px solid #2366c5;
    outline-offset: 4px;
}
.card h3 a:hover,
.featured h3 a:hover,
.lead-copy h2 a:hover {
    color: #a91519;
}
@media (max-width: 760px) {
    .masthead {
        padding-top: 28px;
        padding-bottom: 24px;
    }
    .masthead h1 {
        font-size: 30px;
        max-width: 330px;
    }
    .lead-grid {
        gap: 32px;
    }
    .featured article {
        padding: 18px 0;
    }
    .section,
    .category-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    .section-heading h2 {
        font-size: 24px;
    }
    .cards-grid {
        gap: 26px;
    }
    .article-hero {
        padding-top: 22px;
        padding-bottom: 28px;
    }
    .article-hero h1 {
        font-size: 32px;
    }
    .article-deck {
        font-size: 16px;
    }
    .editorial-resources {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 16px;
        margin-bottom: 36px;
    }
    .editorial-resources h2 {
        font-size: 26px;
    }
    .article-body {
        font-size: 16px;
    }
    .article-body h2 {
        font-size: 25px;
    }
}

/* Footer: public navigation, isolated from the main site and admin styles. */
.editorial-footer {
    margin-top: 48px;
    background: #171c24;
    color: #f5f6f8;
    border-top: 3px solid #b70101;
    padding: 52px 0 0;
}
.ef-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ffffff20;
}
.ef-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
}
.ef-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 7px;
}
.ef-blog {
    font-size: 18px;
    font-weight: 400;
    color: #b8c1ce;
    border-left: 1px solid #ffffff35;
    margin-left: 12px;
    padding-left: 12px;
}
.ef-brand-block p {
    margin: 18px 0 0;
    font-size: 15px;
    line-height: 1.75;
    color: #b8c1ce;
}
.ef-start {
    max-width: 400px;
}
.ef-start h2 {
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.ef-start p {
    margin: 0;
    color: #b8c1ce;
    font-size: 14px;
    line-height: 1.7;
}
.ef-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
}
.ef-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    border-radius: 6px;
    background: #fff;
    color: #20242b;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 18px;
    text-decoration: none;
}
.ef-primary:hover {
    background: #e9edf2;
    color: #20242b;
}
.ef-login {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.ef-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px;
    padding-top: 36px;
    padding-bottom: 40px;
}
.ef-links h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #fff;
}
.ef-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.ef-links li {
    margin: 0;
}
.ef-links a {
    color: #b8c1ce;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}
.ef-links a:hover,
.ef-bottom a:hover,
.ef-login:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.ef-bottom {
    border-top: 1px solid #ffffff20;
    padding-top: 22px;
    padding-bottom: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: #9faaba;
    font-size: 12px;
    line-height: 1.6;
}
.ef-bottom > div {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.ef-bottom a {
    color: #b8c1ce;
    text-decoration: none;
}
.editorial-footer a:focus-visible {
    outline-color: #fff;
}
.ef-brand:hover {
    color: #fff;
    text-decoration: none;
}
@media (max-width: 760px) {
    .editorial-footer {
        padding-top: 32px;
        margin-top: 32px;
    }
    .ef-top {
        flex-direction: column;
        gap: 28px;
        padding-bottom: 30px;
    }
    .ef-start {
        width: 100%;
        max-width: none;
    }
    .ef-brand {
        font-size: 23px;
    }
    .ef-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .ef-links ul {
        gap: 6px;
    }
    .ef-links a {
        display: inline-block;
        padding: 5px 0;
    }
    .ef-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .ef-bottom > div {
        gap: 18px;
    }
    .ef-actions {
        margin-top: 16px;
    }
}

/* Single-row header, with navigation moved into the menu on smaller screens. */
:root {
    --header: 76px;
}
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: none;
}
.header-inner {
    gap: 24px;
}
.site-header .brand {
    gap: 12px;
    flex-shrink: 0;
}
.site-header .brand img {
    width: 132px;
    height: 32px;
}
.site-header .brand > span {
    font-size: 19px;
    font-weight: 500;
    border-color: #dfe2e7;
    padding-left: 14px;
}
.desktop-nav {
    gap: 20px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.desktop-nav > a,
.desktop-nav summary {
    padding: 12px 0;
    position: relative;
}
.desktop-nav > a[aria-current]:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 2px;
    background: #b70101;
    border-radius: 2px;
}
.desktop-nav > a:hover,
.desktop-nav summary:hover {
    color: #b70101;
}
.header-actions {
    gap: 12px;
    margin-left: 10px;
}
.header-login {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.header-actions .icon-button {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}
.header-actions .icon-button:hover {
    background: #f3f5f7;
}
.header-cta {
    padding: 10px 15px;
    border-radius: 6px;
    white-space: nowrap;
}
.smb-nav-panel {
    top: calc(100% + 10px);
    min-width: 270px;
    border: 1px solid #e2e5e9;
    border-radius: 12px;
    box-shadow: 0 16px 44px #18212f14;
    padding: 12px;
}
.smb-nav-panel a {
    border-radius: 6px;
    padding: 11px 12px;
    font-size: 14px;
}
.smb-nav-overview span {
    font-size: 12px;
    line-height: 1.6;
}
.smb-nav-group summary svg {
    width: 14px;
    height: 14px;
}
@media (max-width: 1100px) {
    :root {
        --header: 64px;
    }
    .site-header .desktop-nav,
    .header-login,
    .site-header .header-cta {
        display: none;
    }
    .site-header .mobile-toggle {
        display: grid;
    }
    .header-actions {
        margin-left: auto;
        gap: 8px;
    }
    .header-inner {
        height: 64px;
    }
    .site-header .brand img {
        width: 122px;
        height: 30px;
    }
    .site-header .brand > span {
        font-size: 18px;
    }
    .mobile-nav:not([hidden]) {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100dvh - 64px);
        overflow: auto;
        padding: 20px max(20px, calc((100vw - 720px) / 2)) 28px;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 20px 35px #17203318;
    }
    .mobile-nav > a {
        display: block;
        padding: 14px 10px;
        border-bottom: 1px solid #f0f1f3;
        font-size: 15px;
        font-weight: 500;
    }
    .mobile-menu-search {
        display: flex;
        align-items: center;
        gap: 10px;
        border: 1px solid #dce1e8;
        border-radius: 9px;
        padding: 10px 12px;
        margin-bottom: 15px;
        background: #f8f9fb;
    }
    .mobile-menu-search svg {
        width: 18px;
        height: 18px;
    }
    .mobile-menu-search input {
        min-width: 0;
        width: 100%;
        border: 0;
        outline-offset: 2px;
        background: transparent;
        font-size: 14px;
    }
    .mobile-menu-search button {
        border: 0;
        background: transparent;
        color: #a90000;
        font-weight: 600;
    }
    .mobile-menu-account {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding-top: 22px;
        margin-top: 12px;
        border-top: 1px solid #e5e7eb;
    }
    .mobile-menu-account a {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 44px;
        border-radius: 6px;
        font-size: 14px;
    }
    .mobile-login {
        background: #f3f5f7;
        color: #222936;
        border: 1px solid #dce1e8;
    }
    body.menu-open {
        overflow: hidden;
    }
    .mobile-toggle[aria-expanded="true"] svg {
        display: none;
    }
    .mobile-toggle[aria-expanded="true"]:after {
        content: "×";
        font-size: 30px;
        font-weight: 400;
        line-height: 1;
    }
}
@media (max-width: 380px) {
    .site-header .brand img {
        width: 108px;
    }
    .site-header .brand {
        gap: 9px;
    }
    .site-header .brand > span {
        padding-left: 10px;
    }
    .header-actions {
        gap: 3px;
    }
}

/* The title link covers its card while category links stay independently usable. */
.lead-story,
.post-card,
.featured article {
    position: relative;
}
.article-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 6px;
}
.article-card-link:focus-visible::after {
    outline: 2px solid #bd0000;
    outline-offset: 4px;
}
.lead-story .category-label,
.post-card .category-label {
    position: relative;
    z-index: 2;
}
.lead-story:has(.article-card-link:hover) h2,
.post-card:has(.article-card-link:hover) h3,
.featured article:has(.article-card-link:hover) h3 {
    color: #b60000;
}
#main > .lead-grid:first-of-type {
    margin-top: 32px;
}
@media (max-width: 600px) {
    #main > .lead-grid:first-of-type {
        margin-top: 20px;
    }
}
/* Keep long code lines scrollable without showing a scrollbar. */
.article-body pre {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.article-body pre::-webkit-scrollbar {
    display: none;
}

.article-code {
    margin: 28px 0;
    overflow: hidden;
    border: 1px solid #303945;
    border-radius: 12px;
    background: #171d24;
}
.article-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
    border-bottom: 1px solid #303945;
    background: #202832;
    color: #c5cfdb;
    font:
        500 12px/1.4 Arial,
        sans-serif;
}
.article-code-header .code-copy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #465363;
    border-radius: 6px;
    background: transparent;
    color: #e8edf2;
    font: inherit;
    cursor: pointer;
}
.code-copy:hover {
    background: #344152;
}
.code-copy:focus-visible {
    outline: 2px solid #9dc6ff;
    outline-offset: 3px;
}
.article-body .article-code pre {
    margin: 0;
    padding: 20px;
    border-radius: 0;
    font:
        13px/1.65 Consolas,
        "Liberation Mono",
        Menlo,
        monospace;
    tab-size: 2;
}
.article-body .article-code pre code {
    font: inherit;
    white-space: pre;
    padding: 0;
    background: none;
    color: inherit;
}
@media (max-width: 600px) {
    .article-body .article-code pre {
        padding: 16px;
        font-size: 12px;
    }
    .article-code-header {
        padding: 8px 14px;
    }
}

/* Article sharing */
.article-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 20px 0;
    background: transparent;
    border: solid #dce1e7;
    border-width: 1px 0;
    border-radius: 0;
}
.article-share h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.015em; }
.article-share .share-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.share-actions button[data-share] {
    width: 44px;
    min-height: 44px;
    padding: 0;
    background: #f4f6f8;
    border: 1px solid transparent;
    border-radius: 50%;
}
.share-actions button[data-share]:hover { border-color: #98a5b4; background: white; }
.share-actions button img { width: 19px; height: 19px; margin: 0; border-radius: 0; }

/* Put the creative and offer on one surface across advert placements. */
aside.smb-advert {
    background: linear-gradient(115deg, #ffffff80, transparent), var(--advert-background, #edf3fa);
    border: 1px solid #d5e0ed;
    border-radius: 18px;
    padding: clamp(16px, 2.2vw, 28px);
    gap: clamp(16px, 2.6vw, 32px);
}
.smb-advert[data-ad-color="mint"] { --advert-background: #dcefe3; }
.smb-advert[data-ad-color="lavender"] { --advert-background: #e9e2f6; }
.smb-advert[data-ad-color="sand"] { --advert-background: #f3e9cc; }
.smb-advert[data-ad-color="apricot"] { --advert-background: #f8e3ce; }

.smb-advert .smb-ad-label {
    color: #495d72;
    background: white;
    border-color: #ced9e6;
    font-size: .72rem;
    font-weight: 600;
}
.smb-advert .smb-advert-copy h2 { line-height: 1.16; text-wrap: pretty; margin-block: .65em .35em; }
.smb-advert .smb-advert-copy p { line-height: 1.5; color: #41556a; }
.smb-advert .button { background: #164db7; color: white; border-radius: 999px; }
.smb-advert .button:hover { background: #103d92; }
.smb-advert .smb-advert-media { border-radius: 10px; }

.site-header { box-shadow: 0 3px 15px rgb(25 38 55 / 5%); }
.site-header .brand > span { font-weight: 650; letter-spacing: -.035em; }
.site-header .header-cta { border-radius: 999px; }
.desktop-nav > a[aria-current]:after { left: 20%; right: 20%; height: 3px; }
.desktop-nav summary:hover, .desktop-nav > a:hover { text-decoration: none; }
.post-card h3, .featured article h3 { letter-spacing: -.025em; text-wrap: pretty; }
.post-card .card-image { border-radius: 12px; overflow: hidden; }

:root {
    --default-font: "DM Sans", system-ui, sans-serif;
}
.article-hero h1, .post-card h3, .featured article h3 {
    font-family: "Source Serif 4", Georgia, serif;
    letter-spacing: -.025em;
}

.smb-advert {
    position: relative;
    isolation: isolate;
}
.smb-advert .smb-advert-copy, .smb-advert .button {
    position: static;
}
.smb-advert .button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 18px;
}
.smb-advert:has(.button:focus-visible) {
    outline: 3px solid #164db7;
    outline-offset: 3px;
}
.smb-advert .smb-ad-sound { z-index: 2; }
