:root {
    --sn-navy: #071b31;
    --sn-navy-2: #0d2a46;
    --sn-teal: #138f8b;
    --sn-teal-dark: #0c706d;
    --sn-orange: #d77b1f;
    --sn-blue: #2e6dd8;
    --sn-purple: #7a45b8;
    --sn-green: #6b8818;
    --sn-text: #17243a;
    --sn-muted: #667287;
    --sn-border: #dfe5ec;
    --sn-surface: #ffffff;
    --sn-soft: #f6f8fa;
    --sn-warm: #fbf6ee;
    --sn-shadow: 0 16px 42px rgba(7, 27, 49, 0.08);
    --sn-shadow-sm: 0 8px 24px rgba(7, 27, 49, 0.07);
    --sn-radius: 18px;
    --sn-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #fff;
    color: var(--sn-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sn-teal-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
figure { margin: 0; }
svg { display: block; }
::selection { background: rgba(19, 143, 139, .18); color: var(--sn-navy); }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .6em;
    color: var(--sn-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.13;
}
p { margin: 0 0 1.25em; }

.sn-container { width: min(calc(100% - 40px), var(--sn-container)); margin-inline: auto; }
.sn-icon { width: 22px; height: 22px; flex: 0 0 auto; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
    top: 12px; left: 12px; z-index: 999999;
    width: auto; height: auto; padding: 10px 14px; margin: 0;
    clip: auto; background: #fff; border-radius: 6px; box-shadow: var(--sn-shadow);
}
.skip-link { color: var(--sn-navy); font-weight: 700; }

/* Header */
.site-header { position: relative; z-index: 100; background: rgba(255,255,255,.98); }
.utility-bar { border-bottom: 1px solid var(--sn-border); color: #47556b; font-size: 12px; }
.utility-bar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.utility-bar__left, .utility-bar__right { display: flex; align-items: center; gap: 16px; }
.utility-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sn-teal); }
.utility-bar__right > a { color: #425067; font-weight: 600; }
.utility-bar__right > a:hover { color: var(--sn-teal); }
.utility-social { display: grid; place-items: center; width: 26px; height: 26px; }
.utility-social .sn-icon { width: 15px; height: 15px; }
.main-header { position: relative; border-bottom: 1px solid rgba(223,229,236,.9); background: rgba(255,255,255,.96); backdrop-filter: blur(18px); }
.admin-bar .main-header.is-sticky { top: 32px; }
.main-header.is-sticky { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 10px 34px rgba(7,27,49,.09); animation: headerSlide .28s ease; }
@keyframes headerSlide { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.main-header__inner { min-height: 92px; display: grid; grid-template-columns: minmax(200px, 270px) 1fr auto; align-items: center; gap: 30px; }
.branding-wrap { min-width: 0; }
.site-brand { display: inline-flex; flex-direction: column; gap: 2px; color: var(--sn-navy); }
.site-brand__name { font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 2.5vw, 34px); line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.site-brand__name span { color: var(--sn-teal); }
.site-brand__tagline { color: var(--sn-muted); font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 64px; width: auto; }
.primary-navigation { justify-self: center; }
.primary-menu { list-style: none; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 31px); padding: 0; margin: 0; }
.primary-menu > li { position: relative; }
.primary-menu > li > a { display: block; padding: 36px 0 32px; color: #17243a; font-size: 12px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.primary-menu > li > a::after { content: ""; position: absolute; left: 50%; bottom: 24px; width: 0; height: 2px; transform: translateX(-50%); background: var(--sn-teal); transition: width .2s ease; }
.primary-menu > li.current-menu-item > a::after, .primary-menu > li:hover > a::after { width: 24px; }
.primary-menu .sub-menu { position: absolute; top: calc(100% - 15px); left: -20px; z-index: 20; min-width: 230px; list-style: none; padding: 10px; margin: 0; background: #fff; border: 1px solid var(--sn-border); border-radius: 12px; box-shadow: var(--sn-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.primary-menu .sub-menu a:hover { background: var(--sn-soft); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-toggle, .mobile-menu-toggle { display: grid; place-items: center; border: 1px solid var(--sn-border); background: #fff; color: var(--sn-navy); border-radius: 50%; transition: .2s ease; }
.search-toggle { width: 42px; height: 42px; }
.search-toggle:hover, .mobile-menu-toggle:hover { color: var(--sn-teal); border-color: var(--sn-teal); }
.mobile-menu-toggle { display: none; width: 44px; height: 44px; }
.menu-icon-close { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .menu-icon-close { display: block; }
.header-search { position: absolute; left: 0; right: 0; top: 100%; padding: 18px 0; background: #fff; border-bottom: 1px solid var(--sn-border); box-shadow: var(--sn-shadow-sm); }
.header-search .search-form { max-width: 720px; margin: 0 auto; }

/* Buttons and forms */
.sn-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border: 0; border-radius: 5px 14px 5px 14px; font-size: 13px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.sn-button:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 22px rgba(7,27,49,.15); }
.sn-button .sn-icon { width: 17px; height: 17px; }
.sn-button--dark { color: #fff; background: var(--sn-navy); }
.sn-button--dark:hover { background: var(--sn-teal-dark); }
.sn-button--accent { color: #fff; background: var(--sn-teal); }
.sn-button--accent:hover { background: var(--sn-teal-dark); }
.sn-button--compact { min-height: 42px; padding: 10px 17px; }
.search-form { position: relative; display: flex; width: 100%; }
.search-form label { width: 100%; }
.search-field { width: 100%; height: 50px; padding: 0 54px 0 16px; border: 1px solid var(--sn-border); border-radius: 8px; background: #fff; color: var(--sn-text); outline: none; }
.search-field:focus { border-color: var(--sn-teal); box-shadow: 0 0 0 3px rgba(19,143,139,.12); }
.search-submit { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 7px; background: var(--sn-navy); color: #fff; }
.search-submit .sn-icon { width: 19px; height: 19px; }

/* General sections */
.section-space--top { padding-top: 32px; }
.content-section { padding: 25px 0; }
.cut-card { overflow: hidden; border-radius: 6px 26px 6px 26px; }
.panel-card { border: 1px solid var(--sn-border); border-radius: var(--sn-radius); background: #fff; box-shadow: 0 9px 28px rgba(7,27,49,.04); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding-bottom: 9px; border-bottom: 1px solid var(--sn-border); }
.section-heading > div { display: flex; align-items: center; gap: 9px; }
.section-heading h2 { margin: 0; font-size: clamp(22px, 2vw, 27px); }
.section-heading > a { display: inline-flex; align-items: center; gap: 6px; color: #4e5d73; font-size: 12px; font-weight: 800; }
.section-heading > a:hover { color: var(--sn-teal); }
.section-heading > a .sn-icon { width: 16px; height: 16px; }
.section-heading--inside { padding: 16px 18px 12px; margin: 0; }
.section-heading--inside h2 { font-size: 22px; }
.section-kicker { color: var(--sn-orange); font-size: 18px; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--sn-teal); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.category-label { display: inline-flex; width: fit-content; margin-bottom: 15px; padding: 6px 10px; border-radius: 3px 9px 3px 9px; background: var(--sn-teal); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.category-label:hover { color: #fff; filter: brightness(.94); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #7a8595; font-size: 11px; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .65; }
.empty-state { padding: 46px; border: 1px dashed #c7d1dc; background: var(--sn-soft); text-align: center; }
.empty-state h1, .empty-state h2 { font-size: clamp(29px, 4vw, 45px); }
.empty-state .search-form { max-width: 560px; margin: 26px auto 0; }

/* Hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(320px, .9fr); gap: 14px; }
.hero-main { position: relative; min-height: 510px; display: flex; align-items: center; background: linear-gradient(90deg, rgba(251,253,255,.98) 2%, rgba(251,253,255,.93) 44%, rgba(251,253,255,.05) 76%), var(--hero-image) center/cover no-repeat; border: 1px solid var(--sn-border); }
.hero-main::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 42px; background: #fff; clip-path: polygon(0 100%, 0 70%, 16% 70%, 21% 0, 27% 70%, 100% 70%, 100% 100%); opacity: .96; }
.hero-main__content { position: relative; z-index: 1; max-width: 570px; padding: clamp(36px, 5vw, 68px); }
.hero-main h1 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 64px); }
.hero-main h1 a:hover { color: var(--sn-navy); }
.hero-main p { max-width: 510px; color: #5d6b7e; font-size: 16px; }
.hero-main .post-meta { margin-top: 18px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.hero-side-card { min-height: 248px; display: flex; align-items: flex-end; padding: 28px; background-position: center; background-size: cover; color: #fff; }
.hero-side-card h2 { max-width: 360px; margin-bottom: 14px; color: #fff; font-size: clamp(23px, 2.4vw, 31px); }
.hero-side-card h2 a:hover { color: #fff; opacity: .84; }
.hero-side-card .post-meta { color: rgba(255,255,255,.82); }
.hero-side-card:nth-child(2) .category-label { background: var(--sn-blue); }
.category-ribbon { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 20px; padding: 18px 14px; border: 1px solid var(--sn-border); border-radius: 16px; background: #fff; box-shadow: var(--sn-shadow-sm); }
.category-ribbon__item { min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; padding: 12px 20px; color: var(--sn-navy); text-align: center; font-size: 12px; font-weight: 800; line-height: 1.35; border-right: 1px solid var(--sn-border); }
.category-ribbon__item:last-child { border-right: 0; }
.category-ribbon__item:hover { color: var(--category-accent); transform: translateY(-2px); }
.category-ribbon__icon { display: grid; place-items: center; color: var(--category-accent); }
.category-ribbon__icon .sn-icon { width: 36px; height: 36px; }

/* Cards */
.card-grid { display: grid; gap: 18px; }
.card-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-card { min-width: 0; }
.story-card__media { display: block; overflow: hidden; border-radius: 5px 16px 5px 16px; aspect-ratio: 1.45 / 1; background: var(--sn-soft); }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.story-card:hover .story-card__media img { transform: scale(1.045); }
.story-card__content { padding-top: 12px; }
.story-card__category { display: inline-block; margin-bottom: 6px; color: var(--sn-teal); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.story-card__title { margin-bottom: 8px; font-family: Inter, ui-sans-serif, sans-serif; font-size: 16px; line-height: 1.35; letter-spacing: -.01em; }
.story-card__title a:hover { color: var(--sn-teal-dark); }
.story-card p { margin-bottom: 10px; color: var(--sn-muted); font-size: 13px; line-height: 1.55; }
.story-card--compact .story-card__title { font-size: 14px; }
.story-card--compact .story-card__media { aspect-ratio: 1.6 / 1; }
.category-section:nth-of-type(odd) { background: linear-gradient(180deg, rgba(246,248,250,.74), rgba(255,255,255,0)); }
.category-heading { border-bottom-color: color-mix(in srgb, var(--category-accent) 30%, var(--sn-border)); }
.category-heading h2, .category-heading__icon { color: var(--category-accent); }
.category-heading__icon .sn-icon { width: 25px; height: 25px; }
.category-card-grid .story-card__category { color: var(--category-accent); }

/* Editor and popular */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .7fr); gap: 20px; align-items: start; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .8fr); gap: 16px; padding: 16px; }
.editor-feature { min-height: 500px; display: flex; align-items: flex-end; padding: 30px; background-position: center; background-size: cover; color: #fff; }
.editor-feature > div { max-width: 520px; }
.editor-feature h2 { color: #fff; font-size: clamp(31px, 3.2vw, 46px); }
.editor-feature h2 a:hover { color: #fff; opacity: .9; }
.editor-feature p { color: rgba(255,255,255,.83); font-size: 14px; }
.editor-feature .post-meta { margin-top: 16px; color: rgba(255,255,255,.76); }
.editor-list { display: grid; align-content: start; }
.mini-story { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--sn-border); }
.mini-story:first-child { padding-top: 0; }
.mini-story:last-child { border-bottom: 0; }
.mini-story__image { overflow: hidden; border-radius: 4px 10px 4px 10px; aspect-ratio: 1 / .8; }
.mini-story__image img { width: 100%; height: 100%; object-fit: cover; }
.mini-story h3 { margin: 0 0 9px; font-family: Inter, ui-sans-serif, sans-serif; font-size: 13px; line-height: 1.35; }
.popular-list { list-style: none; padding: 6px 18px 15px; margin: 0; counter-reset: popular; }
.popular-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--sn-border); }
.popular-list li:last-child { border-bottom: 0; }
.popular-rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 7px; background: var(--sn-teal); color: #fff; font-size: 12px; font-weight: 900; }
.popular-list h3 { margin: 0 0 5px; font-family: Inter, ui-sans-serif, sans-serif; font-size: 13px; line-height: 1.35; }
.popular-list li div > span { color: var(--sn-muted); font-size: 10px; }

/* Newsletter */
.newsletter-section { padding: 35px 0 44px; }
.newsletter-box { display: grid; grid-template-columns: auto 1fr minmax(360px, .95fr); align-items: center; gap: 24px; padding: 25px 34px; border: 1px solid #eadfce; background: linear-gradient(105deg, #fffaf3, #fbf5ec 48%, #fff); }
.newsletter-visual { display: grid; place-items: center; width: 72px; height: 64px; color: var(--sn-teal); background: #fff; border-radius: 6px 20px 6px 20px; box-shadow: var(--sn-shadow-sm); }
.newsletter-visual .sn-icon { width: 34px; height: 34px; }
.newsletter-copy h2 { margin-bottom: 5px; font-size: clamp(25px, 3vw, 36px); }
.newsletter-copy p { margin: 0; color: var(--sn-muted); }
.newsletter-form { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter-form input[type="email"] { min-width: 0; height: 48px; padding: 0 15px; border: 1px solid var(--sn-border); border-radius: 7px; background: #fff; outline: none; }
.newsletter-form input[type="email"]:focus { border-color: var(--sn-teal); box-shadow: 0 0 0 3px rgba(19,143,139,.1); }
.form-status { grid-column: 1 / -1; font-size: 12px; }
.form-status--success { color: #16704c; }
.form-status--error { color: #ad2f2f; }

/* Footer */
.site-footer { padding-top: 44px; border-top: 1px solid var(--sn-border); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .75fr 1.1fr 1fr; gap: 40px; padding-bottom: 38px; }
.footer-brand p, .footer-column p { color: var(--sn-muted); font-size: 13px; }
.footer-brand .site-brand { margin-bottom: 18px; }
.footer-title { margin-bottom: 17px; font-family: Inter, ui-sans-serif, sans-serif; font-size: 15px; letter-spacing: -.01em; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 9px; }
.footer-menu a { color: #526075; font-size: 12px; font-weight: 600; }
.footer-menu a:hover { color: var(--sn-teal); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--sn-border); border-radius: 50%; color: #56647a; }
.social-links a:hover { color: #fff; background: var(--sn-teal); border-color: var(--sn-teal); }
.social-links .sn-icon { width: 16px; height: 16px; }
.newsletter-form--compact { grid-template-columns: 1fr; }
.newsletter-form--compact .sn-button { width: fit-content; min-height: 40px; padding: 9px 16px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid var(--sn-border); color: #7a8595; font-size: 11px; }
.footer-bottom p { margin: 0; }

/* Archive, search and page */
.archive-main, .page-main, .single-main, .error-main { padding: 34px 0 60px; }
.content-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; align-items: start; }
.content-column { min-width: 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: #7a8595; font-size: 11px; }
.breadcrumbs a { color: var(--sn-teal-dark); font-weight: 700; }
.archive-header { margin-bottom: 26px; padding: 28px 32px; background: linear-gradient(120deg, #f5f9fa, #fff); border: 1px solid var(--sn-border); }
.archive-header:not(.cut-card) { padding-left: 0; padding-right: 0; border: 0; background: transparent; }
.archive-header h1 { margin-bottom: 10px; font-size: clamp(38px, 5vw, 62px); }
.archive-header p, .archive-description { max-width: 760px; color: var(--sn-muted); }
.archive-description p:last-child { margin-bottom: 0; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
.archive-grid .story-card__title { font-size: 19px; }
.archive-grid .story-card__media { aspect-ratio: 1.62 / 1; }
.navigation.pagination { margin-top: 38px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--sn-border); border-radius: 5px 11px 5px 11px; color: var(--sn-navy); font-size: 13px; font-weight: 800; }
.page-numbers.current, .page-numbers:hover { color: #fff; background: var(--sn-teal); border-color: var(--sn-teal); }
.site-sidebar { position: sticky; top: 118px; display: grid; gap: 20px; }
.widget { padding: 22px; border: 1px solid var(--sn-border); border-radius: 8px 20px 8px 20px; background: #fff; box-shadow: 0 8px 24px rgba(7,27,49,.04); }
.widget-title { margin-bottom: 17px; padding-bottom: 10px; border-bottom: 1px solid var(--sn-border); font-family: Inter, ui-sans-serif, sans-serif; font-size: 17px; }
.widget ul { padding-left: 18px; }
.widget li { margin-bottom: 8px; }
.sidebar-category-list { list-style: none; padding: 0 !important; margin: 0; }
.sidebar-category-list li { margin: 0; border-bottom: 1px solid var(--sn-border); }
.sidebar-category-list li:last-child { border-bottom: 0; }
.sidebar-category-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; color: #46546a; font-size: 13px; font-weight: 700; }
.sidebar-category-list small { color: #8791a0; }
.page-shell { max-width: 960px; }
.page-header { padding: clamp(35px, 6vw, 68px); margin-bottom: 28px; background: linear-gradient(120deg, #f3f8f8, #fff); border: 1px solid var(--sn-border); }
.page-header h1 { margin-bottom: 12px; font-size: clamp(42px, 7vw, 72px); }
.page-header p { max-width: 680px; color: var(--sn-muted); font-size: 18px; }
.page-featured { margin-bottom: 30px; }
.page-featured img { width: 100%; }
.page-content { max-width: 820px; margin: 0 auto; }

/* Single article */
.article-header-wrap { max-width: 1040px; }
.article-header { max-width: 900px; margin: 15px auto 30px; text-align: center; }
.article-header .category-label { margin-inline: auto; }
.article-header h1 { margin-bottom: 20px; font-size: clamp(43px, 7vw, 76px); }
.article-deck { max-width: 760px; margin: 0 auto 24px; color: #5f6d80; font-family: Georgia, "Times New Roman", serif; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; }
.article-byline { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.article-byline img { border-radius: 50%; }
.article-byline strong { display: block; margin-bottom: 2px; color: var(--sn-navy); font-size: 13px; }
.article-hero { aspect-ratio: 1.75 / 1; background: var(--sn-soft); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { margin-top: 38px; }
.article-content { max-width: 790px; font-family: Georgia, "Times New Roman", serif; color: #243147; font-size: 19px; line-height: 1.85; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2 { margin-top: 1.5em; font-size: 36px; }
.article-content h3 { margin-top: 1.4em; font-size: 28px; }
.article-content h4 { margin-top: 1.3em; font-size: 23px; }
.article-content a { color: var(--sn-teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { margin: 30px 0; padding: 24px 28px; border-left: 4px solid var(--sn-teal); background: #f5f9f9; color: var(--sn-navy); font-size: 23px; line-height: 1.55; }
.article-content img { border-radius: 6px 20px 6px 20px; }
.article-content table { width: 100%; border-collapse: collapse; font-family: Inter, ui-sans-serif, sans-serif; font-size: 14px; }
.article-content th, .article-content td { padding: 12px; border: 1px solid var(--sn-border); text-align: left; }
.article-content th { background: var(--sn-soft); }
.article-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--sn-border); font-family: Inter, ui-sans-serif, sans-serif; font-size: 12px; }
.article-tags a { padding: 6px 10px; border: 1px solid var(--sn-border); border-radius: 20px; text-decoration: none; }
.author-box { display: grid; grid-template-columns: 80px 1fr; gap: 20px; margin-top: 32px; padding: 24px; border: 1px solid var(--sn-border); background: var(--sn-soft); font-family: Inter, ui-sans-serif, sans-serif; }
.author-box img { border-radius: 50%; }
.author-box h2 { margin: 0 0 6px; font-size: 24px; }
.author-box p { margin: 0; color: var(--sn-muted); font-size: 14px; line-height: 1.6; }
.post-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; font-family: Inter, ui-sans-serif, sans-serif; }
.post-navigation a { padding: 18px; border: 1px solid var(--sn-border); border-radius: 6px 16px 6px 16px; text-decoration: none; }
.post-navigation a:last-child { text-align: right; }
.post-navigation span { display: block; margin-bottom: 4px; color: var(--sn-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-navigation strong { font-size: 13px; line-height: 1.4; }
.related-section { margin-top: 40px; padding-top: 40px; background: var(--sn-soft); }
.comments-wrap { max-width: 850px; margin-top: 40px; }
.comments-area { padding: 28px; }
.comments-title { font-size: 28px; }
.comment-list { padding-left: 22px; }
.comment-list li { margin-bottom: 22px; }
.comment-body { padding-bottom: 20px; border-bottom: 1px solid var(--sn-border); }
.comment-form label { display: block; font-size: 13px; font-weight: 700; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--sn-border); border-radius: 7px; }
.comment-form .submit { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 5px 14px 5px 14px; background: var(--sn-navy); color: #fff; font-weight: 800; }

/* 404 */
.error-card { max-width: 760px; margin: 45px auto; padding: clamp(40px, 7vw, 80px); border: 1px solid var(--sn-border); background: linear-gradient(130deg, #f4f9f9, #fff); text-align: center; }
.error-code { display: block; color: var(--sn-teal); font-family: Georgia, "Times New Roman", serif; font-size: clamp(90px, 15vw, 160px); font-weight: 700; line-height: .8; opacity: .18; }
.error-card h1 { margin-top: -10px; font-size: clamp(35px, 5vw, 54px); }
.error-card p { color: var(--sn-muted); }
.error-card .search-form { max-width: 540px; margin: 24px auto 16px; }

/* Blocks */
.alignwide { width: min(1100px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-caption, .gallery-caption { color: var(--sn-muted); font-size: 13px; }
.sticky { position: relative; }
.bypostauthor { position: relative; }

/* Responsive */
@media (max-width: 1180px) {
    .main-header__inner { grid-template-columns: minmax(180px, 240px) 1fr auto; gap: 18px; }
    .primary-menu { gap: 17px; }
    .primary-menu > li > a { font-size: 11px; }
    .card-grid--five { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .card-grid--five > :nth-child(5) { display: none; }
    .footer-grid { grid-template-columns: 1.2fr .8fr 1fr; }
    .footer-newsletter { grid-column: 1 / -1; }
    .footer-newsletter .newsletter-form--compact { max-width: 500px; grid-template-columns: 1fr auto; }
}

@media (max-width: 980px) {
    .utility-bar__right > a:not(.utility-social) { display: none; }
    .main-header__inner { min-height: 78px; grid-template-columns: 1fr auto auto; }
    .mobile-menu-toggle { display: grid; order: 3; }
    .primary-navigation { position: fixed; top: 0; right: 0; z-index: 120; width: min(390px, 88vw); height: 100dvh; padding: 100px 28px 32px; background: #fff; box-shadow: -20px 0 50px rgba(7,27,49,.14); transform: translateX(105%); transition: transform .3s ease; overflow-y: auto; }
    .primary-navigation.is-open { transform: translateX(0); }
    .primary-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .primary-menu > li { border-bottom: 1px solid var(--sn-border); }
    .primary-menu > li > a { padding: 16px 0; font-size: 13px; }
    .primary-menu > li > a::after { display: none; }
    .primary-menu .sub-menu { position: static; min-width: 0; padding: 0 0 10px 14px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .header-actions { justify-self: end; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { min-height: 480px; }
    .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .category-ribbon { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
    .category-ribbon__item { scroll-snap-align: start; }
    .editor-layout { grid-template-columns: 1fr; }
    .popular-panel { position: static; }
    .newsletter-box { grid-template-columns: auto 1fr; }
    .newsletter-box .newsletter-form { grid-column: 1 / -1; }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .site-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-content { max-width: none; }
}

@media (max-width: 760px) {
    .sn-container { width: min(calc(100% - 28px), var(--sn-container)); }
    .utility-bar__inner { min-height: 34px; }
    .utility-bar__left span:first-child + .utility-dot, .utility-bar__left span:nth-child(3) { display: none; }
    .utility-bar__right { gap: 8px; }
    .main-header__inner { min-height: 70px; grid-template-columns: 1fr auto; }
    .header-actions { display: none; }
    .site-brand__name { font-size: 28px; }
    .site-brand__tagline { font-size: 9px; }
    .section-space--top { padding-top: 16px; }
    .hero-main { min-height: 520px; align-items: flex-end; background: linear-gradient(0deg, rgba(248,251,253,.99) 4%, rgba(248,251,253,.90) 55%, rgba(248,251,253,.04) 88%), var(--hero-image) center top/cover no-repeat; }
    .hero-main__content { max-width: none; padding: 28px 24px 48px; }
    .hero-main h1 { font-size: 38px; }
    .hero-main p { font-size: 14px; }
    .hero-side { grid-template-columns: 1fr; }
    .hero-side-card { min-height: 235px; }
    .category-ribbon { margin-top: 14px; padding: 10px; }
    .category-ribbon__item { min-height: 90px; padding: 10px 14px; }
    .content-section { padding: 20px 0; }
    .section-heading { align-items: flex-start; }
    .section-heading h2 { font-size: 24px; }
    .section-heading > a { margin-top: 5px; }
    .card-grid--five, .card-grid--three, .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 14px; }
    .card-grid--five > :nth-child(5) { display: block; }
    .story-card__title, .archive-grid .story-card__title { font-size: 15px; }
    .story-card p { display: none; }
    .story-card .post-meta span:nth-of-type(n+2), .story-card .meta-dot { display: none; }
    .editor-grid { grid-template-columns: 1fr; }
    .editor-feature { min-height: 430px; }
    .editor-list { grid-template-columns: 1fr; }
    .newsletter-box { grid-template-columns: 1fr; padding: 25px; text-align: center; }
    .newsletter-visual { margin-inline: auto; }
    .newsletter-form { grid-template-columns: 1fr; }
    .newsletter-form .sn-button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand, .footer-newsletter { grid-column: 1 / -1; }
    .footer-newsletter .newsletter-form--compact { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .archive-main, .page-main, .single-main, .error-main { padding-top: 22px; }
    .archive-header { padding: 24px; }
    .archive-header h1 { font-size: 40px; }
    .site-sidebar { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 42px; }
    .article-hero { aspect-ratio: 1.25 / 1; }
    .article-layout { margin-top: 25px; }
    .article-content { font-size: 18px; line-height: 1.75; }
    .article-content h2 { font-size: 30px; }
    .post-navigation { grid-template-columns: 1fr; }
    .post-navigation a:last-child { text-align: left; }
}

@media (max-width: 480px) {
    .utility-bar__right .utility-social:nth-of-type(n+3) { display: none; }
    .hero-main { min-height: 500px; }
    .hero-main h1 { font-size: 34px; }
    .hero-main__content { padding: 22px 20px 45px; }
    .sn-button { min-height: 43px; padding: 10px 16px; }
    .hero-side-card { padding: 22px; }
    .hero-side-card h2 { font-size: 25px; }
    .card-grid--five, .card-grid--three, .archive-grid { grid-template-columns: 1fr; }
    .story-card__media, .story-card--compact .story-card__media { aspect-ratio: 1.7 / 1; }
    .story-card--compact .story-card__title { font-size: 17px; }
    .section-heading h2 { font-size: 22px; }
    .editor-feature { min-height: 460px; padding: 23px; }
    .editor-feature h2 { font-size: 33px; }
    .mini-story { grid-template-columns: 100px 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand, .footer-newsletter { grid-column: auto; }
    .page-header { padding: 31px 24px; }
    .page-header h1 { font-size: 43px; }
    .article-header h1 { font-size: 36px; }
    .article-deck { font-size: 18px; }
    .article-byline { align-items: flex-start; }
    .author-box { grid-template-columns: 1fr; text-align: center; }
    .author-box img { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
