:root {
    --bg: #eef2f6;
    --surface: #ffffff;
    --surface-alt: #f7f9fc;
    --surface-strong: #10151c;
    --text: #121821;
    --muted: #5b6878;
    --line: #d8e0ea;
    --line-strong: #c1ccd8;
    --brand: #b5121b;
    --brand-dark: #8d0e15;
    --accent: #0a66c2;
    --success: #117a43;
    --warning: #ffb347;
    --shadow: 0 24px 60px rgba(18, 24, 33, 0.08);
    --glass-surface: rgba(255, 255, 255, 0.92);
    --glass-surface-strong: rgba(255, 255, 255, 0.94);
    --ticker-duration: 10s;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

html[data-theme="dark"] {
    --bg: #0a0f15;
    --surface: #101826;
    --surface-alt: #0f1722;
    --surface-strong: #f3f6fb;
    --text: #e7edf6;
    --muted: #a8b4c6;
    --line: rgba(231, 237, 246, 0.14);
    --line-strong: rgba(231, 237, 246, 0.22);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    --glass-surface: rgba(16, 24, 38, 0.88);
    --glass-surface-strong: rgba(16, 24, 38, 0.92);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(181, 18, 27, 0.08), transparent 22%),
        linear-gradient(180deg, #f6f8fb 0%, #edf1f6 100%);
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at 20% 10%, rgba(181, 18, 27, 0.22), transparent 34%),
        radial-gradient(circle at 80% 10%, rgba(10, 102, 194, 0.18), transparent 34%),
        linear-gradient(180deg, #070b10 0%, #0b1018 100%);
}

body.home-page {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 14% 18%, rgba(181, 18, 27, 0.16), transparent 24%),
        radial-gradient(circle at 85% 10%, rgba(10, 102, 194, 0.12), transparent 20%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f8 48%, #e8edf4 100%);
}

html[data-theme="dark"] body.home-page {
    background:
        radial-gradient(circle at 18% 12%, rgba(181, 18, 27, 0.24), transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(10, 102, 194, 0.18), transparent 34%),
        linear-gradient(180deg, #070b10 0%, #0b1018 55%, #070b10 100%);
}

body.home-page::before,
body.home-page::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    filter: blur(18px);
}

body.home-page::before {
    top: 110px;
    left: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(181, 18, 27, 0.2), rgba(181, 18, 27, 0.04) 58%, transparent 72%);
    animation: driftGlowLeft 18s ease-in-out infinite alternate;
}

body.home-page::after {
    right: -110px;
    bottom: 80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(10, 102, 194, 0.18), rgba(10, 102, 194, 0.05) 60%, transparent 74%);
    animation: driftGlowRight 22s ease-in-out infinite alternate;
}

html[data-theme="dark"] body.home-page::before {
    background:
        radial-gradient(circle at 35% 35%, rgba(181, 18, 27, 0.22), rgba(181, 18, 27, 0.06) 58%, transparent 72%);
}

html[data-theme="dark"] body.home-page::after {
    background:
        radial-gradient(circle at 50% 50%, rgba(10, 102, 194, 0.2), rgba(10, 102, 194, 0.06) 60%, transparent 74%);
}

html[data-theme="dark"] .read-more,
html[data-theme="dark"] .search-form button,
html[data-theme="dark"] .comment-form button {
    color: #0f1722;
}
body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.site-header,
.page-shell,
.site-footer {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

body.home-page .site-header,
body.home-page .page-shell,
body.home-page .site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
}

/* Dark overlay behind the sidebar menu */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(6, 10, 17, 0.58);
    backdrop-filter: blur(3px);
}

/* Off-canvas sidebar navigation */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 70;
    width: min(320px, calc(100vw - 24px));
    height: 100vh;
    padding: 24px 18px;
    color: #f4f7fb;
    background:
        linear-gradient(180deg, rgba(9, 13, 22, 0.98), rgba(14, 18, 30, 0.98)),
        linear-gradient(135deg, rgba(181, 18, 27, 0.14), rgba(10, 102, 194, 0.16));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 28px 0 60px rgba(5, 8, 14, 0.34);
    transform: translateX(-102%);
    transition: transform 0.3s ease;
}

.archive-page .sidebar-nav {
    width: min(280px, calc(100vw - 36px));
    padding: 20px 16px;
}

.sidebar-nav.is-open {
    transform: translateX(0);
}

.sidebar-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.sidebar-kicker {
    color: #8fb8ff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-nav-header h2 {
    margin-top: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1;
}

/* Shared control styling for the hamburger and close buttons */
.sidebar-close,
.hamburger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sidebar-close:hover,
.hamburger-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.sidebar-close {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.sidebar-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #f4f7fb;
}

.sidebar-close span:first-child {
    transform: rotate(45deg);
}

.sidebar-close span:last-child {
    transform: rotate(-45deg);
}

.sidebar-menu {
    display: grid;
    gap: 10px;
}

/* Sidebar links, including hover and active states */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: rgba(244, 247, 251, 0.82);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-link:hover {
    transform: translateX(4px);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.sidebar-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(181, 18, 27, 0.86), rgba(10, 102, 194, 0.78));
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(6, 10, 17, 0.28);
}

.sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.sidebar-icon svg {
    width: 100%;
    height: 100%;
}

.news-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.news-label {
    padding: 14px 18px;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.ticker-window {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: flex;
    gap: 48px;
    padding: 14px 22px;
    min-width: max-content;
    width: max-content;
    will-change: transform;
    animation-name: ticker-scroll;
    animation-duration: var(--ticker-duration, 10s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.ticker-item {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
}

.ticker-item strong {
    color: var(--brand);
}

.header-shell {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0 18px;
    position: relative;
}

.brand-link {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
}

.brand-kicker,
.mini-title {
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 0.95;
}

.archive-page .brand-name {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.brand-summary {
    max-width: 620px;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.65;
}

.archive-page .brand-summary {
    max-width: 500px;
    font-size: 0.98rem;
}

.header-search {
    flex: 1;
    max-width: 560px;
    margin-left: 18px;
}

.header-search .search-form {
    margin-top: 0;
    grid-template-columns: 1fr auto auto;
}

.header-search .search-form .search-clear {
    color: var(--text);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: none;
}

.header-search .search-form .search-clear:hover {
    background: var(--surface-alt);
}

mark.search-hit {
    padding: 0.08em 0.22em;
    border-radius: 0.4em;
    color: inherit;
    background: rgba(255, 214, 0, 0.35);
}

html[data-theme="dark"] mark.search-hit {
    background: rgba(255, 214, 0, 0.22);
}

/* Header controls on the right side of the page */
.header-tools {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.archive-page .header-tools {
    gap: 10px;
}

.archive-page .header-tools.archive-tools {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
}

.archive-page .archive-tools-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.archive-page .archive-tools-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-page .header-tools.archive-tools .home-return-link {
    width: auto;
    padding: 10px 14px;
    font-size: 0.92rem;
    line-height: 1.1;
}

.archive-page .header-tools.archive-tools .header-date {
    width: 100%;
    min-width: 0;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text);
    font-weight: 800;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle:hover {
    transform: translateY(-1px);
}

.theme-toggle:focus-visible {
    outline: 3px solid rgba(10, 102, 194, 0.3);
    outline-offset: 2px;
}

/* Hamburger icon animation between menu and close states */
.hamburger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hamburger-button:hover {
    background: var(--surface-alt);
}

.hamburger-button span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--surface-strong);
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.hamburger-button.is-active span:first-child {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-button.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-button.is-active span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.archive-page .hamburger-button {
    width: 48px;
    height: 48px;
}

.header-date {
    display: grid;
    gap: 6px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.archive-page .header-date {
    padding: 11px 14px;
}

.archive-page .header-date .mini-title {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.archive-page .header-date strong {
    font-size: 0.92rem;
}

/* Archive desk: keep both items inside the pill, with the value anchored to the bottom */
.archive-page .header-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    min-height: 64px;
}

.archive-page .header-date strong {
    margin-top: auto;
}

.subscribe-button,
.primary-button,
.search-form button,
.newsletter-form button,
.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.subscribe-button,
.primary-button,
.newsletter-form button {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 14px 28px rgba(181, 18, 27, 0.18);
}

.subscribe-button {
    padding: 14px 22px;
}

.subscribe-button:hover,
.primary-button:hover,
.search-form button:hover,
.newsletter-form button:hover,
.read-more:hover {
    transform: translateY(-2px);
}

.nav-shell {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    padding: 15px 0;
}

.main-nav a {
    position: relative;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--brand);
    transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.footer-links a:hover,
.ghost-link:hover {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    transform: scaleX(1);
}

.page-shell {
    padding: 28px 0 42px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.9fr);
    gap: 22px;
}

.hero-panel,
.side-brief,
.headline-bar,
.feed-column,
.sidebar-card,
.updates-section,
.newsletter-section,
.site-footer {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    min-height: 850px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(10, 14, 20, 0.28), rgba(10, 14, 20, 0.86)),
        url("./images/Ghana flag.jpg") center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 179, 71, 0.24), transparent 24%),
        linear-gradient(120deg, rgba(181, 18, 27, 0.18), transparent 44%);
}

.hero-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 28px;
    padding-top: 30px;
    color: #fff;
}

.hero-topline,
.hero-meta,
.hero-actions,
.section-head,
.footer-bottom,
.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-chip,
.mini-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(181, 18, 27, 0.08);
}

.chip-danger {
    color: #fff;
    background: rgba(181, 18, 27, 0.92);
}

.chip-accent {
    color: var(--success);
    background: rgba(17, 122, 67, 0.1);
}

.live-pill {
    color: #ffe1b8;
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-content h1 {
    max-width: 12ch;
    margin-top: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    line-height: 0.98;
}

.hero-content p {
    max-width: 60ch;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.hero-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.hero-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 28px;
}

.primary-button {
    padding: 14px 24px;
}

.home-return-link {
    padding: 14px 20px;
    white-space: nowrap;
}

.archive-page .home-return-link {
    padding: 12px 16px;
}

.ghost-link {
    color: #fff;
    font-weight: 700;
}

.hero-side {
    display: grid;
    gap: 18px;
}

.side-brief {
    border-radius: 24px;
    padding: 24px;
}

.side-brief h2 {
    margin-top: 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    line-height: 1.2;
}

.side-brief p,
.section-copy,
.article-summary,
.stack-item p,
.newsletter-copy p,
.footer-note,
.footer-copy,
.footer-contact p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.headline-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
    padding: 22px;
    border-radius: 24px;
}

.headline-bar article {
    padding-right: 18px;
    border-right: 1px solid var(--line);
}

.headline-bar article:last-child {
    padding-right: 0;
    border-right: none;
}

.headline-bar p {
    margin-top: 12px;
    line-height: 1.6;
}

.section-end-link {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.archive-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 15px 20px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--surface-strong), #243241);
    box-shadow: 0 14px 28px rgba(16, 21, 28, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(16, 21, 28, 0.24);
}

.archive-grid {
    grid-template-columns: repeat(3, 1fr);
}

.archive-hub {
    display: grid;
    gap: 22px;
}

.archive-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.archive-tab {
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 800;
    background: var(--surface);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.archive-tab:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    color: var(--text);
}

.archive-tab.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 16px 32px rgba(181, 18, 27, 0.2);
}

.archive-spotlight,
.archive-summary-bar {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-alt);
}

.archive-lead-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.2fr);
    gap: 20px;
    padding: 20px;
}

.archive-lead-card.is-empty {
    grid-template-columns: 1fr;
}

.archive-lead-media {
    min-height: 320px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(181, 18, 27, 0.12), rgba(10, 102, 194, 0.12));
}

.archive-lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-lead-body {
    display: grid;
    align-content: start;
    gap: 14px;
}

.archive-lead-body h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.08;
}

.archive-lead-body p {
    color: var(--muted);
    line-height: 1.7;
}

.archive-lead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.archive-summary-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
}

.archive-summary-copy h3 {
    margin-top: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.archive-summary-copy p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.archive-summary-stat {
    min-width: 170px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    text-align: center;
    background: var(--surface);
}

.archive-summary-stat strong {
    display: block;
    margin-top: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.archive-empty-card {
    align-content: start;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 24px;
}

.feed-column,
.updates-section {
    border-radius: 24px;
    padding: 26px;
}

.section-head {
    align-items: flex-end;
}

.section-head h2,
.newsletter-copy h2 {
    margin-top: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.feed-grid,
.updates-grid {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.article-card {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-alt);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.article-card:hover,
.stack-item:hover,
.search-form input:focus,
.newsletter-form input:focus {
    border-color: var(--line-strong);
}

.article-card:hover,
.stack-item:hover {
    transform: translateY(-3px);
}

.article-thumb {
    min-height: 230px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(181, 18, 27, 0.12), rgba(10, 102, 194, 0.12));
}

.article-thumb img,
.update-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    display: flex;
    flex-direction: column;
}

.article-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.article-tag {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.article-tag-link {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.article-tag-link:hover {
    opacity: 0.75;
}

.article-time,
.article-location {
    color: var(--muted);
    font-size: 0.9rem;
}

.article-title {
    margin-top: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    line-height: 1.2;
}

.article-summary {
    flex: 1;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

/* Per-article actions: comment, like, and share */
.article-engagement {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.engagement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.engagement-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-weight: 700;
    background: var(--surface);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.engagement-button:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.engagement-button.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.comment-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.comment-list {
    display: grid;
    gap: 10px;
}

.comment-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-alt);
}

.comment-item strong {
    display: block;
    font-size: 0.9rem;
}

.comment-item p {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.6;
}

.comment-form {
    display: grid;
    gap: 10px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface);
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form textarea {
    min-height: 92px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.08);
}

.comment-form button {
    justify-self: start;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    background: var(--surface-strong);
    cursor: pointer;
}

.share-modal-open {
    overflow: hidden;
}

.share-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(7, 10, 16, 0.66);
    backdrop-filter: blur(6px);
}

.share-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100;
    width: min(680px, calc(100vw - 28px));
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    color: #f5f7fb;
    background:
        radial-gradient(circle at top right, rgba(11, 117, 214, 0.2), transparent 24%),
        radial-gradient(circle at top left, rgba(181, 18, 27, 0.26), transparent 28%),
        linear-gradient(180deg, #0d1320 0%, #121c2b 100%);
    box-shadow: 0 28px 90px rgba(7, 10, 16, 0.45);
    transform: translate(-50%, -50%);
}

.share-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.share-modal-close span {
    position: absolute;
    top: 21px;
    left: 12px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.share-modal-close span:first-child {
    transform: rotate(45deg);
}

.share-modal-close span:last-child {
    transform: rotate(-45deg);
}

.share-modal-kicker {
    color: #8fb8ff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.share-modal h2 {
    margin-top: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
}

.share-modal-copy {
    max-width: 46ch;
    margin-top: 14px;
    color: rgba(245, 247, 251, 0.76);
    line-height: 1.7;
}

.share-modal-preview {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
}

.share-modal-tag {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(181, 18, 27, 0.95), rgba(10, 102, 194, 0.88));
}

.share-modal-preview h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.25;
}

.share-modal-preview p {
    color: rgba(245, 247, 251, 0.78);
    line-height: 1.7;
}

.share-modal-field {
    display: inline-block;
    margin-top: 22px;
    margin-bottom: 10px;
    color: rgba(245, 247, 251, 0.82);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.share-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.share-link-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.share-copy-button {
    padding: 14px 18px;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 16px 34px rgba(181, 18, 27, 0.28);
    cursor: pointer;
}

.share-network-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.share-network {
    min-height: 58px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 18px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.share-network:hover,
.share-copy-button:hover,
.share-modal-close:hover {
    transform: translateY(-2px);
}

.share-network.whatsapp {
    background: linear-gradient(135deg, #1fb85c, #0c8d44);
    box-shadow: 0 18px 30px rgba(18, 146, 72, 0.24);
}

.share-network.facebook {
    background: linear-gradient(135deg, #1f6feb, #1b74e4);
    box-shadow: 0 18px 30px rgba(27, 116, 228, 0.22);
}

.share-network.x {
    background: linear-gradient(135deg, #0b0e13, #202938);
    box-shadow: 0 18px 30px rgba(7, 10, 16, 0.24);
}

.share-network.instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    box-shadow: 0 18px 30px rgba(221, 42, 123, 0.24);
}

.share-network.native {
    color: #0f1722;
    background: linear-gradient(135deg, #f7d58a, #ffd9a9);
    box-shadow: 0 18px 30px rgba(255, 179, 71, 0.22);
}

.share-modal-status {
    margin-top: 18px;
    color: #a6d3ff;
    line-height: 1.6;
}

.share-modal-status.is-error {
    color: #ffbdbd;
}

.read-more {
    padding: 11px 18px;
    color: #fff;
    background: var(--surface-strong);
}

.sidebar-column {
    display: none;
    gap: 18px;
    align-content: start;
}

.sidebar-card {
    border-radius: 22px;
    padding: 22px;
}

.sidebar-heading h3 {
    margin-top: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.2;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 18px;
}

.search-form input,
.newsletter-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.newsletter-form input:focus {
    box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.08);
}

.search-form button {
    padding: 14px 18px;
    color: #fff;
    background: var(--surface-strong);
}

.stack-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.stack-item {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-alt);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stack-item h4 {
    font-size: 1rem;
    line-height: 1.4;
}

.stack-meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    border-radius: 16px;
    color: #fff;
    font-weight: 700;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.facebook {
    background: #1b74e4;
}

.whatsapp {
    background: #25d366;
}

.x {
    background: #10151c;
}

.telegram {
    background: #2aabee;
}

.instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.updates-section {
    margin-top: 24px;
}

.updates-grid {
    grid-template-columns: repeat(3, 1fr);
}

.update-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-alt);
}

.update-visual {
    aspect-ratio: 4 / 5;
    min-height: 320px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(181, 18, 27, 0.12), rgba(10, 102, 194, 0.12));
}

.update-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    line-height: 1.25;
}

.update-card p {
    color: var(--muted);
    line-height: 1.65;
}

.newsletter-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 28px;
    border-radius: 24px;
}

.newsletter-copy {
    max-width: 680px;
}

.newsletter-form {
    display: flex;
    flex: 1 1 360px;
    gap: 12px;
    max-width: 460px;
}

.newsletter-form button {
    padding: 14px 20px;
    white-space: nowrap;
}

.site-footer {
    margin-bottom: 36px;
    border-radius: 24px;
    padding: 26px;
}

.footer-main {
    align-items: flex-start;
}

.footer-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-contact {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-alt);
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
    transform: translateY(-1px);
    border-color: rgba(181, 18, 27, 0.5);
}

.footer-links svg {
    width: 18px;
    height: 18px;
}

.footer-copy {
    margin-top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes ticker-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes driftGlowLeft {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(56px, 24px, 0) scale(1.08);
    }
}

@keyframes driftGlowRight {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(-48px, -28px, 0) scale(1.06);
    }
}

@media (max-width: 620px) {
    body.home-page::before {
        top: 90px;
        left: -150px;
        width: 260px;
        height: 260px;
    }

    body.home-page::after {
        right: -150px;
        bottom: 50px;
        width: 240px;
        height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-page::before,
    body.home-page::after {
        animation: none;
    }
}

@media (max-width: 1100px) {
    /* Collapse multi-column sections earlier for tablet-sized screens */
    .hero-layout,
    .main-grid,
    .updates-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 460px;
    }
}

@media (max-width: 820px) {
    /* Stack larger layout groups once horizontal space gets tight */
    .header-shell,
    .newsletter-section,
    .footer-main,
    .footer-bottom,
    .section-head,
    .hero-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-tools {
        width: 100%;
        justify-content: space-between;
    }

    .header-search {
        width: 100%;
        max-width: none;
        margin-left: 0;
    }

    .headline-bar {
        grid-template-columns: 1fr;
    }

    .headline-bar article {
        padding-right: 0;
        padding-bottom: 14px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .headline-bar article:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .article-card {
        grid-template-columns: 1fr;
    }

    .article-thumb {
        min-height: 220px;
    }

    .hero-content {
        position: relative;
        inset: auto;
        padding-top: 140px;
    }

    .hero-panel {
        min-height: auto;
    }

    .hero-actions,
    .article-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .updates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    /* Mobile-specific header and spacing adjustments */
    .site-header,
    .page-shell,
    .site-footer {
        width: min(100% - 18px, 1280px);
    }

    .news-header {
        order: 2;
        grid-template-columns: 1fr;
        margin-top: 8px;
        border-radius: 24px;
    }

    .news-label {
        text-align: center;
    }

    .header-shell {
        order: 1;
        display: flex;
        flex-direction: column;
        padding: 12px 0 8px;
    }

    .header-tools {
        display: flex;
        align-items: center;
        width: fit-content;
        max-width: min(92vw, 320px);
        order: -1;
        justify-content: space-between;
        margin-top: 0;
        margin-bottom: 14px;
        gap: 10px;
        margin-left: auto;
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--glass-surface);
        box-shadow: var(--shadow);
    }

    .header-date {
        flex: 0 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
    }

    .header-date .mini-title,
    .header-date strong {
        white-space: nowrap;
    }

    .header-date .mini-title {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }

    .header-date strong {
        font-size: 0.92rem;
        line-height: 1.1;
    }

    .hamburger-button {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .theme-toggle {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .archive-page .header-tools {
        max-width: min(88vw, 290px);
        padding: 7px 9px;
    }

    .archive-page .header-date {
        padding: 9px 10px;
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
        min-height: 56px;
    }

    .archive-page .header-date .mini-title,
    .archive-page .header-date strong {
        white-space: nowrap;
    }

    .archive-page .home-return-link {
        padding: 10px 12px;
    }

    .archive-page .sidebar-nav {
        width: min(260px, calc(100vw - 44px));
    }

    .nav-shell {
        order: 3;
        margin-top: 10px;
        overflow-x: auto;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--glass-surface-strong);
        box-shadow: var(--shadow);
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .nav-shell::-webkit-scrollbar {
        display: none;
    }

    .main-nav {
        flex-wrap: nowrap;
        gap: 8px;
        min-width: max-content;
        padding: 10px;
    }

    .main-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 9px 12px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--surface);
        white-space: nowrap;
        font-size: 0.86rem;
        line-height: 1.2;
    }

    .main-nav a::after {
        display: none;
    }

    .brand-name {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .archive-page .brand-name {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }

    .brand-summary {
        font-size: 0.98rem;
        margin-top: 12px;
    }

    .archive-page .brand-summary {
        font-size: 0.9rem;
    }

    .page-shell {
        padding-top: 18px;
    }

    .hero-layout,
    .main-grid,
    .hero-side,
    .sidebar-column,
    .updates-grid {
        gap: 16px;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .side-brief,
    .feed-column,
    .sidebar-card,
    .updates-section,
    .newsletter-section,
    .site-footer {
        border-radius: 20px;
    }

    .hero-content {
        padding: 72px 20px 20px;
    }

    .hero-content h1 {
        max-width: none;
        font-size: clamp(2.2rem, 9vw, 3.4rem);
    }

    .hero-content p,
    .section-copy,
    .article-summary,
    .stack-item p,
    .newsletter-copy p {
        line-height: 1.6;
    }

    .headline-bar,
    .feed-column,
    .updates-section,
    .newsletter-section,
    .site-footer {
        padding: 20px;
    }

    .article-card,
    .update-card,
    .stack-item {
        padding: 16px;
    }

    .article-title {
        font-size: 1.35rem;
    }

    .section-head h2,
    .newsletter-copy h2 {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }

    .search-form,
    .social-grid,
    .comment-form,
    .share-network-grid,
    .share-link-row {
        grid-template-columns: 1fr;
    }

    .share-copy-button,
    .share-network {
        width: 100%;
    }

    .section-end-link {
        justify-content: stretch;
    }

    .archive-link {
        width: 100%;
        min-width: 0;
    }

    .archive-lead-card {
        grid-template-columns: 1fr;
    }

    .archive-summary-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: none;
    }

    .updates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    /* Final small-phone tightening for controls and buttons */
    .subscribe-button,
    .header-date {
        width: 100%;
    }

    .header-tools {
        max-width: min(94vw, 270px);
        align-items: center;
        flex-direction: row;
        padding: 7px 9px;
    }

    .hamburger-button {
        width: 44px;
        height: 44px;
    }

    .archive-page .header-tools {
        max-width: min(92vw, 250px);
    }

    .archive-page .sidebar-nav {
        width: min(240px, calc(100vw - 34px));
    }

    .archive-page .brand-name {
        font-size: 1.35rem;
    }

    .main-nav {
        gap: 6px;
        padding: 8px;
    }

    .main-nav a {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .news-label {
        padding: 10px 12px;
        font-size: 0.72rem;
    }

    .ticker-track {
        gap: 28px;
        padding: 10px 12px;
    }

    .hero-meta {
        font-size: 0.86rem;
    }

    .primary-button,
    .subscribe-button,
    .read-more,
    .engagement-button,
    .search-form button,
    .newsletter-form button,
    .comment-form button {
        width: 100%;
    }
}

/* Mobile-first fallback layer: keep the base layout phone-safe, then scale up */
.site-header,
.page-shell,
.site-footer {
    width: min(100% - 18px, 1280px);
}

.news-header {
    grid-template-columns: auto 1fr;
    margin-top: 8px;
    border-radius: 999px;
}

.news-label {
    padding: 12px 14px;
    font-size: 0.76rem;
    text-align: left;
}

.ticker-track {
    gap: 34px;
    padding: 12px 16px;
    animation-play-state: running;
}

.ticker-item {
    font-size: 0.86rem;
}

.header-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 8px;
}

.header-tools {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-content: space-between;
    margin-top: 0;
    margin-bottom: 14px;
    margin-left: 0;
    gap: 12px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--glass-surface);
    box-shadow: var(--shadow);
}

.archive-page .header-tools {
    max-width: none;
    padding: 8px;
}

    .archive-page .header-tools {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .archive-page .header-tools.archive-tools {
        grid-template-columns: 1fr;
        align-items: start;
    }

.header-date {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
}

.archive-page .header-date {
    padding: 12px 12px;
    gap: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-height: 64px;
}

.archive-page .header-date strong {
    line-height: 1.15;
    margin-top: auto;
}

.archive-page .home-return-link {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
}

.archive-page .hamburger-button {
    justify-self: start;
}

.header-date .mini-title,
.header-date strong {
    white-space: nowrap;
}

.header-date strong {
    font-size: clamp(0.86rem, 3.2vw, 0.98rem);
}

.hamburger-button {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.nav-shell {
    margin-top: 10px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--glass-surface-strong);
    box-shadow: var(--shadow);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-shell::-webkit-scrollbar {
    display: none;
}

.main-nav {
    flex-wrap: nowrap;
    gap: 8px;
    min-width: max-content;
    padding: 10px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    white-space: nowrap;
    font-size: 0.86rem;
    line-height: 1.2;
}

.main-nav a::after {
    display: none;
}

.brand-name {
    font-size: clamp(2rem, 12vw, 3rem);
}

.archive-page .brand-name {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
}

.brand-summary {
    font-size: 0.98rem;
    margin-top: 12px;
}

.archive-page .brand-summary {
    font-size: 0.9rem;
}

.page-shell {
    padding-top: 18px;
}

.hero-layout,
.main-grid,
.hero-side,
.sidebar-column,
.updates-grid,
.archive-grid,
.headline-bar,
.article-card {
    grid-template-columns: 1fr;
}

.hero-layout,
.main-grid,
.hero-side,
.sidebar-column,
.updates-grid {
    gap: 16px;
}

.hero-panel,
.side-brief,
.feed-column,
.sidebar-card,
.updates-section,
.newsletter-section,
.site-footer {
    border-radius: 20px;
}

.hero-panel {
    min-height: auto;
}

.hero-content {
    position: relative;
    inset: auto;
    padding: 72px 20px 20px;
}

.hero-content h1 {
    max-width: none;
    font-size: clamp(2.2rem, 9vw, 3.4rem);
}

.headline-bar,
.feed-column,
.updates-section,
.newsletter-section,
.site-footer,
.article-card,
.update-card,
.stack-item {
    padding: 20px;
}

.headline-bar article {
    padding-right: 0;
    padding-bottom: 14px;
    border-right: none;
    border-bottom: 1px solid var(--line);
}

.headline-bar article:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.article-thumb {
    min-height: 220px;
}

.section-head,
.hero-topline,
.hero-actions,
.article-footer,
.newsletter-section,
.footer-main,
.footer-bottom {
    align-items: flex-start;
    flex-direction: column;
}

.footer-bottom {
    align-items: center;
    text-align: center;
}

.footer-links {
    justify-content: center;
}

.section-end-link {
    justify-content: stretch;
}

.archive-link {
    width: 100%;
    min-width: 0;
}

.search-form,
.social-grid,
.comment-form {
    grid-template-columns: 1fr;
}

.newsletter-form {
    flex-direction: column;
    max-width: none;
}

@media (min-width: 621px) {
    .site-header,
    .page-shell,
    .site-footer {
        width: min(1280px, calc(100% - 32px));
    }

    .news-header {
        grid-template-columns: auto 1fr;
        margin-top: 0;
        border-radius: 999px;
    }

    .news-label {
        text-align: left;
    }

    .header-shell {
        flex-direction: row;
        align-items: flex-end;
        padding: 26px 0 18px;
    }

    .header-tools {
        width: auto;
        max-width: none;
        min-width: auto;
        margin-bottom: 0;
        gap: 18px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .archive-page .header-tools {
        max-width: none;
        padding: 0;
        display: flex;
        grid-template-columns: none;
    }

    .archive-page .header-tools.archive-tools {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .header-date {
        flex: 0 1 auto;
        display: grid;
        gap: 6px;
        padding: 14px 18px;
        border-radius: var(--radius-md);
    }

    .archive-page .header-date {
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 6px;
        min-height: 76px;
        min-width: 172px;
    }

    .archive-page .header-date .mini-title,
    .archive-page .header-date strong {
        white-space: nowrap;
    }

    .archive-page .header-date strong {
        margin-top: auto;
    }

    .hamburger-button {
        width: 54px;
        height: 54px;
    }

    .archive-page .hamburger-button {
        width: 48px;
        height: 48px;
    }

    .nav-shell {
        margin-top: 0;
        overflow: visible;
        border: 0;
        border-top: 1px solid var(--line);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 18px 24px;
        min-width: 0;
        padding: 15px 0;
    }

    .main-nav a {
        display: inline-block;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        font-size: 0.95rem;
        line-height: normal;
    }

    .main-nav a::after {
        display: block;
    }

    .brand-name {
        font-size: clamp(2.3rem, 4vw, 4rem);
    }

    .archive-page .brand-name {
        font-size: clamp(1.8rem, 3vw, 2.8rem);
    }

    .brand-summary,
    .archive-page .brand-summary {
        font-size: 1rem;
    }

    .headline-bar {
        gap: 18px;
        padding: 22px;
    }

    .article-card {
        grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
        gap: 18px;
        padding: 18px;
    }

    .newsletter-form {
        flex-direction: row;
    }
}

@media (min-width: 821px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.9fr);
        gap: 22px;
    }

    .headline-bar {
        grid-template-columns: repeat(3, 1fr);
    }

    .headline-bar article {
        padding-right: 18px;
        padding-bottom: 0;
        border-right: 1px solid var(--line);
        border-bottom: none;
    }

    .headline-bar article:last-child {
        padding-right: 0;
        border-right: none;
    }

    .updates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1101px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 420px) {
    .header-tools,
    .archive-page .header-tools {
        width: 100%;
        max-width: none;
        padding: 7px;
        gap: 8px;
    }

    .archive-page .header-tools {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .archive-page .header-date {
        padding: 8px 9px;
        min-height: 58px;
    }

    .header-date {
        padding: 9px 10px;
        gap: 6px;
    }

    .header-date .mini-title {
        font-size: 0.68rem;
        letter-spacing: 0.07em;
    }

    .header-date strong {
        font-size: 0.82rem;
    }
}
 
