:root {
    --bg: #f3f6f8;
    --surface: #ffffff;
    --surface-soft: #eef3f6;
    --surface-tint: #f7fafb;
    --text: #172026;
    --muted: #66737d;
    --line: #d8e1e7;
    --line-strong: #bdcbd4;
    --primary: #106b7a;
    --primary-2: #2f5f9f;
    --accent: #c34a36;
    --accent-soft: #fff0eb;
    --radius: 8px;
    --radius-lg: 8px;
    --shadow-sm: 0 6px 18px rgba(28, 45, 57, 0.06);
    --shadow-md: 0 16px 42px rgba(28, 45, 57, 0.11);
    --shadow-lg: 0 26px 70px rgba(28, 45, 57, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(243, 246, 248, 0) 260px),
        var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

body {
    min-width: 320px;
}

a {
    color: var(--primary-2);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 18px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(216, 225, 231, 0.9);
    box-shadow: 0 4px 20px rgba(28, 45, 57, 0.05);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
}

.brand-icon-only img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: block;
    padding: 7px;
    background: #10242b;
    box-shadow: 0 8px 24px rgba(16, 36, 43, 0.18);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
}

.main-nav a {
    color: #4d5a63;
    font-weight: 700;
    padding: 9px 10px;
    border-radius: var(--radius);
}

.main-nav a:hover {
    background: #eef5f7;
    color: var(--primary);
}

.header-search {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: 2px;
}

.header-search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-search-icon {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    box-shadow: var(--shadow-sm);
}

.header-search-icon:hover {
    border-color: var(--line-strong);
    background: #f8fbfc;
}

.header-search-pop {
    display: none;
    position: absolute;
    right: 44px;
    top: 0;
    z-index: 60;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.header-search-wrap.is-open .header-search-pop {
    display: inline-flex;
}

.header-search-input,
.search-input {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--text);
    background: #fff;
}

.header-search-input {
    height: 38px;
    width: min(260px, 34vw);
    padding: 8px 11px;
    font-size: 13px;
}

.header-search-input:focus,
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 107, 122, 0.13);
}

.header-search-btn,
.btn {
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.header-search-btn {
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
}

.section {
    padding: 34px 0;
}

.section-soft {
    background: #eaf0f3;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.section-title {
    margin: 0;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.12;
    font-weight: 900;
    color: #142027;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.lede {
    margin: 0;
    color: #eaf5f6;
    line-height: 1.72;
    font-size: 17px;
    max-width: 660px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 64px 0 54px;
    background:
        linear-gradient(120deg, rgba(12, 38, 44, 0.94), rgba(16, 107, 122, 0.86)),
        url("/assets/img/og-preview.jpg") center / cover;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 86px;
    background: linear-gradient(180deg, rgba(243, 246, 248, 0), var(--bg));
    pointer-events: none;
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 26px;
    align-items: stretch;
}

.home-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.02;
    font-weight: 950;
}

.hero-actions,
.search-panel,
.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 18px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stat-card {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    padding: 18px;
    backdrop-filter: blur(10px);
}

.stat-card strong {
    display: block;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1;
}

.stat-card span {
    font-size: 12px;
    opacity: 0.9;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-card,
.card,
.list-item,
.side-card,
.article-main,
.qa-card,
.related-cluster,
.policy-dialog,
.gate-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.feature-card {
    display: block;
    padding: clamp(20px, 3vw, 30px);
    box-shadow: var(--shadow-md);
    margin-bottom: 18px;
    border-left: 5px solid var(--accent);
}

.feature-card:hover,
.card:hover,
.list-item:hover,
.related-item:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-label,
.badge,
.feature-meta span,
.mini-meta span,
.tag,
.keyword-tag,
.article-meta-row span {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius);
    font-weight: 800;
}

.feature-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: #943220;
    border: 1px solid #ffd5c9;
    padding: 6px 10px;
    margin-bottom: 12px;
}

.feature-card h3 {
    margin: 0 0 10px;
    color: #132027;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.12;
}

.feature-card p,
.article-tease p,
.related-item p,
.side-card p,
.side-card li {
    color: #50606a;
    line-height: 1.65;
}

.feature-card p {
    margin: 0 0 16px;
    font-size: 16px;
}

.feature-meta,
.mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-meta span,
.mini-meta span {
    background: #f1f6f8;
    border: 1px solid var(--line);
    color: #52626c;
    padding: 5px 9px;
    font-size: 11px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.rich-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
    display: block;
    min-height: 210px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card .meta {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card h3 {
    margin: 0;
    color: var(--text);
    font-size: 19px;
    line-height: 1.3;
}

.article-tease p {
    margin: 11px 0 0;
    font-size: 14px;
}

.mini-meta {
    margin-top: 13px;
}

.badge {
    padding: 8px 12px;
    background: #e8f4f6;
    border: 1px solid #cae1e6;
    color: var(--primary);
    font-size: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    font-size: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn.secondary {
    background: #fff;
    color: var(--primary);
}

.btn:hover {
    color: #fff;
    background: #0d5864;
    box-shadow: 0 10px 24px rgba(16, 107, 122, 0.18);
    transform: translateY(-1px);
}

.btn.secondary:hover {
    color: var(--primary);
    background: #eef7f8;
}

.pagination {
    margin-top: 22px;
}

.search-panel {
    margin-top: 14px;
}

.search-input {
    flex: 1 1 280px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
}

select.search-input {
    cursor: pointer;
}

.simple-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.list-item .num,
.related-item .num {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: #e8f4f6;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag,
.keyword-tag {
    padding: 8px 11px;
    border: 1px solid #d6cde8;
    background: #f4f0fb;
    color: #59427b;
    font-size: 12px;
}

.tag:hover,
.keyword-tag:hover {
    background: #ebe3f8;
    color: #49346e;
}

.article-hero {
    padding: 42px 0 34px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(17, 32, 38, 0.96), rgba(26, 74, 84, 0.93)),
        url("/assets/img/og-preview.jpg") center / cover;
}

.article-hero .eyebrow {
    color: #ffd2c7;
}

.article-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.08;
    font-weight: 950;
}

.hero-summary,
.hero-support {
    max-width: 780px;
    line-height: 1.75;
}

.hero-summary {
    margin: 16px 0 0;
    color: #dbecef;
    font-size: 17px;
}

.hero-support {
    margin: 10px 0 0;
    color: #bfd4da;
    font-size: 15px;
}

.article-meta-row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.article-meta-row span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #edf7f8;
    padding: 7px 11px;
    font-size: 12px;
}

.article-shell {
    padding: 24px 0 34px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(260px, 0.9fr);
    gap: 20px;
    align-items: start;
    max-width: 1150px;
    margin: 0 auto;
}

.article-main {
    padding: clamp(18px, 3vw, 30px);
    box-shadow: var(--shadow-sm);
}

.article-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 12px;
}

.side-card {
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.side-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #142027;
}

.side-card p,
.side-card li {
    font-size: 13px;
}

.side-card ul {
    margin: 0;
    padding-left: 18px;
}

.editorial-note {
    margin: 8px 0 18px;
    background: #f3f8f6;
    border: 1px solid #cde2d8;
    border-left: 4px solid #4c9a73;
    border-radius: var(--radius);
    padding: 13px 14px;
    color: #2d6249;
    font-size: 14px;
    line-height: 1.65;
}

.article-content {
    color: #27343b;
    line-height: 1.86;
    font-size: 17px;
}

.prose-modern p,
.prose-modern ul,
.prose-modern ol,
.prose-modern blockquote,
.prose-modern table {
    margin: 0 0 18px;
}

.prose-modern h2 {
    margin: 34px 0 14px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.18;
    color: #142027;
}

.prose-modern h3 {
    margin: 24px 0 12px;
    font-size: 21px;
    line-height: 1.25;
    color: #142027;
}

.prose-modern ul,
.prose-modern ol {
    padding-left: 22px;
}

.prose-modern li {
    margin-bottom: 8px;
}

.prose-modern table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    font-size: 14px;
}

.prose-modern table td,
.prose-modern table th {
    border: 1px solid var(--line);
    padding: 10px;
    text-align: left;
}

.prose-modern table th {
    background: var(--surface-soft);
}

.prose-modern blockquote {
    border-left: 4px solid var(--accent);
    background: #fff8f5;
    padding: 12px 14px;
    color: #60433b;
}

.inline-internal-link,
.inline-external-link {
    font-weight: 800;
    text-decoration: none;
}

.inline-internal-link {
    color: var(--primary-2);
    border-bottom: 2px solid rgba(47, 95, 159, 0.24);
}

.inline-external-link {
    color: var(--primary);
    border-bottom: 1px dashed rgba(16, 107, 122, 0.55);
}

.inline-internal-link:hover,
.inline-external-link:hover {
    border-bottom-color: currentColor;
}

.alt-section,
.journal-section,
.tag-section,
.image-gallery-section,
.keywords-section {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.alt-section h2,
.journal-section h2,
.tag-section h2,
.image-gallery-section h2,
.keywords-section h2,
.qa-thread h2 {
    margin: 0 0 14px;
    font-size: 24px;
    color: #142027;
}

.qa-thread {
    margin-top: 30px;
}

.qa-question {
    margin: 0 0 14px;
    background: #f6f9fb;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    color: var(--text);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-weight: 800;
}

.qa-card {
    padding: 17px;
    box-shadow: var(--shadow-sm);
}

.qa-card + .qa-card {
    margin-top: 14px;
}

.qa-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.qa-card-head strong {
    font-size: 15px;
}

.qa-card-head span {
    color: var(--muted);
    font-size: 12px;
}

.related-cluster {
    margin-top: 28px;
    padding: 20px;
    background: #f7fafb;
    border-color: var(--line);
}

.related-cluster h2 {
    display: grid;
    gap: 5px;
    margin: 0 0 15px;
}

.related-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.related-kicker::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.related-title-main {
    color: #142027;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 950;
    line-height: 1.05;
}

.related-grid {
    display: grid;
    gap: 12px;
}

.related-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.related-item h3 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.35;
}

.related-item p {
    margin: 7px 0 0;
    font-size: 14px;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.image-gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    cursor: zoom-in;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    appearance: none;
    box-shadow: var(--shadow-sm);
}

.image-gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    display: block;
    background: #edf2f5;
}

.site-footer {
    margin-top: 24px;
    background: #172026;
    border-top: 1px solid #23333c;
}

.footer-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #b7c2c8;
    font-size: 14px;
}

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: inline-flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d7e2e7;
    padding: 7px 9px;
    border-radius: var(--radius);
}

.footer-links a:hover {
    background: #24343d;
    color: #fff;
}

.policy-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
}

.policy-modal[aria-hidden="false"] {
    display: block;
}

.policy-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 31, 38, 0.58);
    backdrop-filter: blur(6px);
}

.policy-dialog {
    position: relative;
    width: min(620px, calc(100% - 24px));
    margin: 7vh auto 0;
    box-shadow: var(--shadow-lg);
    padding: 20px 20px 16px;
}

.policy-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

.policy-dialog h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.policy-body {
    color: #50606a;
    font-size: 15px;
    line-height: 1.7;
}

.policy-body p {
    margin: 0 0 10px;
}

.modal-open {
    overflow: hidden;
}

.gate-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.gate-box {
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.security-modal {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: grid;
    place-items: center;
    padding: 18px;
}

.security-modal[aria-hidden="false"] {
    display: grid;
}

.security-modal[aria-hidden="true"] {
    display: none;
}

.security-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 26, 32, 0.68);
    backdrop-filter: blur(8px);
}

.security-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(450px, 100%);
    border-radius: var(--radius);
    background: #13262d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    padding: 28px 24px 24px;
    text-align: center;
}

.security-modal-dialog h2 {
    margin: 0 0 10px;
    color: #f3fbfc;
    font-size: clamp(30px, 3vw, 36px);
    line-height: 1.08;
}

.security-modal-dialog p {
    margin: 0 auto 20px;
    max-width: 360px;
    color: #bfd4da;
    font-size: 18px;
    line-height: 1.45;
}

.security-icon-badge {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-size: 28px;
    box-shadow: 0 0 0 6px rgba(195, 74, 54, 0.2);
}

.security-cta {
    width: min(320px, 100%);
    min-height: 50px;
    border-radius: var(--radius);
    background: var(--primary);
    box-shadow: 0 14px 30px rgba(16, 107, 122, 0.24);
}

.ad-slot {
    width: 100%;
    margin: 16px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.ad-300 {
    max-width: 300px;
}

.ad-728 {
    max-width: 728px;
}

.ad-mixed {
    grid-column: 1 / -1;
}

.ad-after-p3 {
    max-width: 300px;
}

.ad-under-title,
.ad-mid,
.ad-under-article {
    max-width: 728px;
}

.ad-sticky {
    position: fixed;
    left: 50%;
    bottom: 8px;
    z-index: 9999;
    width: calc(100% - 16px);
    max-width: 728px;
    margin: 0;
    transform: translateX(-50%);
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(13, 26, 32, 0.9);
}

.image-viewer-inner {
    position: relative;
    width: min(980px, 98vw);
    max-height: 96vh;
    overflow: auto;
    background: #101b21;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    padding: 12px;
}

.viewer-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: var(--radius);
    background: #24343d;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.viewer-toolbar {
    margin: 10px 0 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.viewer-toolbar button {
    border: 1px solid #3d515c;
    background: #17262e;
    color: #e6eef2;
    border-radius: var(--radius);
    padding: 7px 12px;
    cursor: pointer;
    font-weight: 800;
}

#viewer-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.15s ease;
}

@media (min-width: 900px) {
    .image-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1020px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-side {
        position: static;
    }
}

@media (max-width: 840px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .main-nav a {
        padding: 8px 9px;
    }

    .header-search {
        width: 100%;
    }

    .header-search-input {
        width: 100%;
    }

    .header-search-pop {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 84px;
        width: auto;
        padding: 6px;
        border: 1px solid var(--line);
    }

    .home-hero {
        padding: 46px 0 40px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        min-height: 104px;
        padding: 14px;
    }

    .section-head,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-inner {
        justify-content: center;
        padding: 16px 0;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 14px;
    }

    .hero-stats,
    .card-grid,
    .rich-grid {
        grid-template-columns: 1fr;
    }

    .search-panel .btn,
    .search-input {
        width: 100%;
        flex-basis: 100%;
    }

    .article-main {
        padding: 16px;
    }

    .related-cluster {
        padding: 15px;
    }

    .related-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ad-under-title,
    .ad-mid,
    .ad-under-article,
    .ad-sticky {
        max-width: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Distinct editorial refresh: same markup, stronger visual direction. */
:root {
    --bg: #edf1f5;
    --surface: #ffffff;
    --surface-soft: #e5ebf0;
    --surface-tint: #f8fafc;
    --text: #111820;
    --muted: #65727f;
    --line: #ccd7df;
    --line-strong: #9fb0bd;
    --primary: #173b57;
    --primary-2: #1f6f8b;
    --accent: #d45138;
    --accent-soft: #fff1ec;
    --radius: 4px;
    --radius-lg: 4px;
    --shadow-sm: 0 2px 0 rgba(17, 24, 32, 0.06), 0 12px 28px rgba(34, 49, 63, 0.06);
    --shadow-md: 0 2px 0 rgba(17, 24, 32, 0.08), 0 22px 48px rgba(34, 49, 63, 0.12);
    --shadow-lg: 0 2px 0 rgba(17, 24, 32, 0.1), 0 34px 80px rgba(34, 49, 63, 0.2);
}

body {
    background:
        linear-gradient(90deg, rgba(23, 59, 87, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(23, 59, 87, 0.045) 1px, transparent 1px),
        #edf1f5;
    background-size: 34px 34px;
}

.site-header {
    background: #111820;
    border-bottom: 4px solid var(--accent);
    box-shadow: 0 14px 35px rgba(17, 24, 32, 0.2);
}

.header-inner {
    min-height: 76px;
}

.brand-icon-only img {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.main-nav a {
    color: #d6e1e8;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.header-search-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: none;
}

.header-search-pop {
    border: 1px solid var(--line-strong);
}

.home-hero,
.article-hero {
    background:
        linear-gradient(90deg, rgba(17, 24, 32, 0.94), rgba(23, 59, 87, 0.84) 58%, rgba(212, 81, 56, 0.72)),
        url("/assets/img/og-preview.jpg") center / cover;
}

.home-hero {
    padding: 74px 0 64px;
}

.home-hero::before,
.article-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.45;
    pointer-events: none;
}

.article-hero {
    position: relative;
    overflow: hidden;
    padding: 52px 0 44px;
}

.home-hero-grid,
.article-hero .container {
    position: relative;
    z-index: 1;
}

.home-hero h1,
.article-hero h1 {
    max-width: 980px;
    text-transform: uppercase;
    letter-spacing: 0;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.home-hero h1 {
    font-size: clamp(42px, 6vw, 82px);
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    background: var(--accent);
    color: #ffffff;
    border-radius: var(--radius);
}

.article-hero .eyebrow {
    color: #ffffff;
}

.search-panel {
    padding: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.section .search-panel {
    background: #ffffff;
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.hero-stats {
    gap: 14px;
}

.stat-card {
    background: #ffffff;
    color: var(--text);
    border: 0;
    border-top: 5px solid var(--accent);
    box-shadow: 12px 12px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: none;
}

.stat-card span {
    color: var(--muted);
    opacity: 1;
}

.section {
    padding: 42px 0;
}

.section-head {
    padding-bottom: 13px;
    border-bottom: 3px solid #111820;
}

.section-title {
    text-transform: uppercase;
    letter-spacing: 0;
}

.badge {
    background: #111820;
    border-color: #111820;
    color: #ffffff;
}

.feature-card {
    position: relative;
    display: grid;
    gap: 8px;
    border: 0;
    border-left: 10px solid var(--accent);
    box-shadow: 14px 14px 0 rgba(17, 24, 32, 0.08);
}

.feature-card::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 18px;
    width: 62px;
    height: 62px;
    border: 10px solid rgba(212, 81, 56, 0.12);
    border-radius: 999px;
}

.feature-card h3,
.card h3,
.related-item h3 {
    text-transform: uppercase;
}

.feature-label,
.feature-meta span,
.mini-meta span,
.article-meta-row span {
    border-radius: 999px;
}

.card-grid {
    gap: 18px;
}

.card {
    border: 0;
    border-top: 5px solid var(--primary-2);
    box-shadow: 0 1px 0 rgba(17, 24, 32, 0.09), 0 16px 34px rgba(34, 49, 63, 0.08);
}

.card:nth-child(3n + 1) {
    border-top-color: var(--accent);
}

.card:nth-child(3n + 2) {
    border-top-color: #6b5a9a;
}

.card .meta {
    color: var(--accent);
}

.btn,
.header-search-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 6px 0 rgba(105, 39, 27, 0.25);
}

.btn:hover,
.header-search-btn:hover {
    background: #b9432e;
    border-color: #b9432e;
}

.btn.secondary {
    background: #ffffff;
    border-color: #111820;
    color: #111820;
    box-shadow: 0 6px 0 rgba(17, 24, 32, 0.16);
}

.btn.secondary:hover {
    background: #f4f6f8;
    color: #111820;
}

.list-item {
    border: 0;
    border-left: 6px solid var(--primary-2);
    box-shadow: var(--shadow-sm);
}

.list-item:nth-child(4n + 2) {
    border-left-color: var(--accent);
}

.list-item:nth-child(4n + 3) {
    border-left-color: #6b5a9a;
}

.list-item .num,
.related-item .num {
    background: #111820;
    color: #ffffff;
    border-radius: var(--radius);
}

.tag,
.keyword-tag {
    background: #ffffff;
    border: 1px solid var(--line-strong);
    color: #27343b;
    box-shadow: 0 3px 0 rgba(17, 24, 32, 0.08);
}

.tag:hover,
.keyword-tag:hover {
    background: var(--accent-soft);
    border-color: #efb4a7;
    color: #8a321f;
}

.article-shell {
    padding-top: 30px;
}

.article-main {
    border: 0;
    box-shadow: 16px 16px 0 rgba(17, 24, 32, 0.07), 0 20px 50px rgba(34, 49, 63, 0.08);
}

.article-content {
    font-size: 18px;
    line-height: 1.9;
}

.prose-modern h2 {
    padding-left: 14px;
    border-left: 6px solid var(--accent);
    text-transform: uppercase;
}

.prose-modern blockquote {
    border-left-color: #111820;
    background: #f3f6f8;
}

.side-card {
    border: 0;
    border-top: 5px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.side-card:nth-child(2) {
    border-top-color: var(--accent);
}

.side-card:nth-child(3) {
    border-top-color: #6b5a9a;
}

.editorial-note {
    background: #111820;
    border: 0;
    border-left: 7px solid var(--accent);
    color: #e8f0f4;
}

.qa-card {
    border: 0;
    border-top: 5px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.qa-question {
    background: #edf1f5;
    border: 0;
    border-left: 6px solid var(--primary-2);
}

.related-cluster {
    background: #111820;
    border: 0;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.related-title-main,
.related-cluster h2 {
    color: #ffffff;
}

.related-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.related-item h3,
.related-item p {
    color: #eef5f7;
}

.related-item .mini-meta span {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.image-gallery-item {
    border: 0;
    box-shadow: 8px 8px 0 rgba(17, 24, 32, 0.09);
}

.site-footer {
    border-top: 4px solid var(--accent);
}

@media (max-width: 720px) {
    .site-header {
        position: relative;
    }

    .main-nav a {
        background: rgba(255, 255, 255, 0.06);
    }

    .home-hero {
        padding: 48px 0 42px;
    }

    .stat-card,
    .feature-card,
    .article-main,
    .image-gallery-item {
        box-shadow: var(--shadow-sm);
    }
}

/* Calm reader-friendly theme: softer, cooler, and easier on visitors. */
:root {
    --bg: #f5f8f8;
    --surface: #ffffff;
    --surface-soft: #eef6f4;
    --surface-tint: #f9fcfb;
    --text: #1f2d2f;
    --muted: #6d7d7f;
    --line: #d9e7e4;
    --line-strong: #b9d0ca;
    --primary: #2f746d;
    --primary-2: #377a8d;
    --accent: #c98b5f;
    --accent-soft: #fff6ed;
    --radius: 10px;
    --radius-lg: 12px;
    --shadow-sm: 0 10px 26px rgba(49, 91, 88, 0.07);
    --shadow-md: 0 18px 44px rgba(49, 91, 88, 0.1);
    --shadow-lg: 0 28px 70px rgba(49, 91, 88, 0.16);
}

body {
    background:
        linear-gradient(180deg, #f8fbfb 0%, #f5f8f8 280px),
        var(--bg);
    color: var(--text);
}

.site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(49, 91, 88, 0.06);
}

.header-inner {
    min-height: 72px;
}

.brand-icon-only img {
    width: 40px;
    height: 40px;
    background: #eef7f5;
    border: 1px solid #d9e7e4;
    box-shadow: 0 8px 22px rgba(47, 116, 109, 0.1);
}

.main-nav a {
    color: #526466;
    background: transparent;
    border: 0;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 999px;
}

.main-nav a:hover {
    background: #edf7f4;
    color: var(--primary);
}

.header-search-icon {
    background: #f8fcfb;
    border-color: var(--line);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.home-hero,
.article-hero {
    background:
        linear-gradient(115deg, rgba(31, 70, 67, 0.9), rgba(55, 122, 141, 0.66)),
        url("/assets/img/og-preview.jpg") center / cover;
}

.home-hero {
    padding: 66px 0 56px;
}

.home-hero::before,
.article-hero::before {
    display: none;
}

.home-hero::after {
    background: linear-gradient(180deg, rgba(245, 248, 248, 0), var(--bg));
}

.home-hero h1,
.article-hero h1 {
    text-transform: none;
    text-shadow: 0 8px 30px rgba(19, 45, 43, 0.22);
}

.home-hero h1 {
    font-size: clamp(38px, 5vw, 66px);
}

.eyebrow {
    padding: 0;
    background: transparent;
    color: #d9b28f;
    border-radius: 0;
}

.article-hero .eyebrow {
    color: #f0c9a6;
}

.lede,
.hero-summary {
    color: #edf8f6;
}

.hero-support {
    color: #d7e8e7;
}

.search-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(20, 54, 52, 0.14);
    backdrop-filter: blur(10px);
}

.section .search-panel {
    background: #ffffff;
    border-color: var(--line);
}

.search-input,
.header-search-input {
    border-color: var(--line);
    border-radius: var(--radius);
    background: #fbfefd;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-top: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 38px rgba(20, 54, 52, 0.12);
}

.stat-card strong {
    color: var(--primary);
}

.section-head {
    border-bottom: 1px solid var(--line);
}

.section-title,
.feature-card h3,
.card h3,
.related-item h3,
.prose-modern h2,
.prose-modern h3,
.side-card h3,
.alt-section h2,
.journal-section h2,
.tag-section h2,
.image-gallery-section h2,
.keywords-section h2,
.qa-thread h2 {
    color: #223335;
    text-transform: none;
}

.badge {
    background: #eaf6f3;
    border-color: #cbe3de;
    color: var(--primary);
}

.feature-card {
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.feature-card::after {
    display: none;
}

.feature-label {
    background: var(--accent-soft);
    border-color: #f0d7c3;
    color: #99643e;
    border-radius: 999px;
}

.card {
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card:nth-child(3n + 1),
.card:nth-child(3n + 2) {
    border-top: 0;
}

.card .meta {
    color: var(--primary);
}

.feature-card:hover,
.card:hover,
.list-item:hover,
.related-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn,
.header-search-btn {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 999px;
    box-shadow: none;
}

.btn:hover,
.header-search-btn:hover {
    background: #285f5a;
    border-color: #285f5a;
}

.btn.secondary {
    background: #ffffff;
    border-color: var(--line-strong);
    color: var(--primary);
    box-shadow: none;
}

.btn.secondary:hover {
    background: #f0f8f6;
    color: var(--primary);
}

.list-item {
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.list-item:nth-child(4n + 2),
.list-item:nth-child(4n + 3) {
    border-left: 0;
}

.list-item .num,
.related-item .num {
    background: #e8f5f2;
    color: var(--primary);
    border-radius: 999px;
}

.tag,
.keyword-tag {
    background: #ffffff;
    border-color: var(--line);
    color: #526466;
    box-shadow: none;
    border-radius: 999px;
}

.tag:hover,
.keyword-tag:hover {
    background: #edf7f4;
    border-color: #cbe3de;
    color: var(--primary);
}

.article-main {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.article-content {
    color: #2c3d40;
    font-size: 17px;
    line-height: 1.9;
}

.prose-modern h2 {
    padding-left: 0;
    border-left: 0;
}

.prose-modern blockquote {
    border-left-color: var(--primary);
    background: #f1f8f6;
    color: #365452;
}

.editorial-note {
    background: #f2faf7;
    border: 1px solid #cce5dd;
    border-left: 4px solid var(--primary);
    color: #315f58;
}

.side-card {
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.side-card:nth-child(2),
.side-card:nth-child(3) {
    border-top: 0;
}

.qa-card {
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.qa-question {
    background: #f4faf8;
    border-left: 4px solid var(--primary);
}

.related-cluster {
    background: #f0f7f5;
    border: 1px solid #d4e7e2;
    color: var(--text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.related-title-main,
.related-cluster h2,
.related-item h3,
.related-item p {
    color: #223335;
}

.related-kicker {
    color: var(--primary);
}

.related-kicker::before {
    background: var(--primary);
}

.related-item {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.related-item .mini-meta span {
    background: #edf7f4;
    border-color: #cbe3de;
    color: var(--primary);
}

.image-gallery-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.site-footer {
    background: #f8fbfb;
    border-top: 1px solid var(--line);
}

.footer-inner {
    color: #6d7d7f;
}

.footer-links a {
    color: #526466;
    border-radius: 999px;
}

.footer-links a:hover {
    background: #edf7f4;
    color: var(--primary);
}

.security-modal-dialog {
    background: #ffffff;
    border: 1px solid var(--line);
}

.security-modal-dialog h2 {
    color: var(--text);
}

.security-modal-dialog p {
    color: var(--muted);
}

.security-icon-badge {
    background: #e8f5f2;
    color: var(--primary);
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(47, 116, 109, 0.1);
}

@media (max-width: 720px) {
    .site-header {
        position: sticky;
    }

    .main-nav a {
        background: #f4faf8;
    }

    .home-hero {
        padding: 46px 0 40px;
    }
}

/* Minimal one-column layout: clean, light, responsive, same PHP structure. */
:root {
    --bg: #f7f9f8;
    --surface: #ffffff;
    --surface-soft: #f1f5f3;
    --surface-tint: #fbfdfc;
    --text: #1f2927;
    --muted: #6f7d79;
    --line: #e0e8e5;
    --line-strong: #c8d6d1;
    --primary: #3c8075;
    --primary-2: #36758a;
    --accent: #a9784d;
    --accent-soft: #fbf3ea;
    --radius: 8px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(31, 41, 39, 0.04);
    --shadow-md: 0 8px 24px rgba(31, 41, 39, 0.06);
    --shadow-lg: 0 18px 48px rgba(31, 41, 39, 0.12);
}

html,
body {
    background: var(--bg);
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
}

.container {
    max-width: 900px;
    padding: 0 20px;
}

.site-header {
    position: sticky;
    background: rgba(247, 249, 248, 0.95);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 64px;
    gap: 14px;
}

.brand-icon-only img {
    width: 34px;
    height: 34px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: none;
}

.main-nav {
    gap: 2px;
    font-size: 13px;
}

.main-nav a {
    padding: 8px 9px;
    color: #5d6c68;
    border-radius: var(--radius);
    font-weight: 600;
}

.main-nav a:hover {
    background: #edf4f1;
    color: var(--primary);
}

.home-hero,
.article-hero {
    background: transparent;
    color: var(--text);
    padding: 42px 0 18px;
}

.home-hero::after,
.home-hero::before,
.article-hero::before {
    display: none;
}

.home-hero-grid,
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 900px;
}

.home-hero h1,
.article-hero h1 {
    max-width: 820px;
    margin-bottom: 12px;
    color: var(--text);
    font-size: clamp(34px, 7vw, 56px);
    line-height: 1.06;
    font-weight: 800;
    text-transform: none;
    text-shadow: none;
}

.eyebrow {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.lede,
.hero-summary,
.hero-support {
    max-width: 760px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.search-panel {
    max-width: 760px;
    margin-top: 18px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.search-input {
    min-height: 44px;
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
}

.header-search-icon,
.header-search-btn,
.btn {
    min-height: 42px;
    border-radius: var(--radius);
    box-shadow: none;
}

.header-search-icon {
    width: 36px;
    height: 36px;
    min-height: 36px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--primary);
}

.btn,
.header-search-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
}

.btn:hover,
.header-search-btn:hover {
    background: #326d63;
    border-color: #326d63;
    transform: none;
    box-shadow: none;
}

.btn.secondary {
    background: #ffffff;
    border-color: var(--line-strong);
    color: var(--primary);
}

.hero-actions {
    margin-top: 12px;
}

.hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.stat-card {
    min-height: auto;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
}

.stat-card strong {
    font-size: 22px;
    color: var(--text);
}

.stat-card span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.04em;
}

.section,
.article-shell {
    padding: 24px 0;
}

.section-head {
    margin-bottom: 14px;
    padding-bottom: 0;
    border-bottom: 0;
}

.section-title {
    color: var(--text);
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 750;
    text-transform: none;
}

.badge {
    background: #eef6f3;
    border: 1px solid #d7e8e2;
    color: var(--primary);
    border-radius: var(--radius);
}

.feature-card,
.card,
.list-item,
.article-main,
.side-card,
.qa-card,
.related-cluster,
.related-item,
.image-gallery-item,
.policy-dialog,
.gate-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
    background: #ffffff;
}

.feature-card {
    margin-bottom: 12px;
    padding: 18px;
    display: block;
}

.feature-card:hover,
.card:hover,
.list-item:hover,
.related-item:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
    transform: none;
}

.feature-label {
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--primary);
    border-radius: 0;
}

.feature-card h3 {
    font-size: clamp(24px, 4vw, 34px);
}

.feature-card h3,
.card h3,
.related-item h3 {
    color: var(--text);
    text-transform: none;
}

.feature-card p,
.article-tease p,
.related-item p,
.side-card p,
.side-card li {
    color: var(--muted);
}

.feature-meta span,
.mini-meta span,
.article-meta-row span,
.tag,
.keyword-tag {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: #5f706b;
    border-radius: var(--radius);
    box-shadow: none;
}

.card-grid,
.rich-grid,
.related-grid,
.simple-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.card {
    min-height: auto;
    padding: 16px;
}

.card .meta {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.list-item {
    align-items: flex-start;
    padding: 13px 14px;
}

.list-item .num,
.related-item .num {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    background: var(--surface-soft);
    color: var(--primary);
    border-radius: var(--radius);
}

.article-hero .container {
    position: static;
}

.article-meta-row span {
    padding: 6px 9px;
}

.article-main {
    padding: 22px;
}

.article-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.side-card {
    padding: 14px;
}

.editorial-note {
    background: #f3faf7;
    border: 1px solid #d6e9e2;
    color: #416963;
}

.article-content {
    color: #2c3836;
    font-size: 17px;
    line-height: 1.85;
}

.prose-modern h2 {
    margin-top: 30px;
    padding-left: 0;
    border-left: 0;
    font-size: clamp(23px, 4vw, 30px);
    font-weight: 750;
}

.prose-modern h3 {
    font-size: 20px;
    font-weight: 700;
}

.prose-modern blockquote {
    background: #f4f8f6;
    border-left: 3px solid var(--primary);
}

.qa-question {
    background: #f5faf8;
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary);
}

.related-cluster {
    padding: 16px;
    background: #f4f8f6;
}

.related-title-main {
    color: var(--text);
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 750;
}

.related-item {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 13px;
}

.image-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
    margin-top: 18px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-inner {
    min-height: 64px;
}

.footer-links a {
    color: #5d6c68;
}

@media (max-width: 760px) {
    .container {
        padding: 0 16px;
    }

    .site-header {
        position: sticky;
    }

    .header-inner {
        min-height: auto;
        padding: 12px 0;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 4px;
    }

    .main-nav a {
        background: #ffffff;
        border: 1px solid var(--line);
        padding: 7px 8px;
    }

    .home-hero,
    .article-hero {
        padding: 30px 0 12px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-panel {
        display: grid;
        grid-template-columns: 1fr;
    }

    .search-input,
    .search-panel .btn {
        width: 100%;
    }

    .article-main {
        padding: 16px;
    }

    .image-gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .related-item {
        grid-template-columns: 1fr;
    }
}

/* Mobile ad behavior:
   - Keep original ad size (300/728), no auto scaling
   - Allow clipping on narrow viewport
   - 300 ads centered */
@media (max-width: 768px) {
    .ad-slot {
        width: 100%;
        overflow: hidden;
        line-height: 0;
    }

    .ad-slot iframe {
        max-width: none !important;
    }

    .ad-300,
    .ad-after-p3,
    .ad-box-top,
    .ad-box-mid,
    .ad-box-bottom {
        width: 300px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .ad-300 iframe,
    .ad-after-p3 iframe,
    .ad-box-top iframe,
    .ad-box-mid iframe,
    .ad-box-bottom iframe {
        width: 300px !important;
        min-width: 300px !important;
        height: 250px !important;
    }

    .ad-728,
    .ad-under-title,
    .ad-mid,
    .ad-under-article,
    .ad-sticky {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .ad-728 iframe,
    .ad-under-title iframe,
    .ad-mid iframe,
    .ad-under-article iframe,
    .ad-sticky iframe {
        width: 728px !important;
        min-width: 728px !important;
        height: 90px !important;
    }
}

/* Article-first responsive refinement (review-style reading flow) */
@media (max-width: 980px) {
    .container {
        max-width: 760px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 80;
    }

    .header-inner {
        min-height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .section,
    .article-shell {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .home-hero,
    .article-hero {
        padding-top: 24px;
        padding-bottom: 10px;
    }

    .home-hero h1,
    .article-hero h1 {
        font-size: clamp(30px, 7.8vw, 44px);
        line-height: 1.14;
        letter-spacing: 0;
    }

    .lede,
    .hero-summary,
    .hero-support {
        font-size: 15px;
        line-height: 1.72;
    }

    .article-layout {
        display: block;
    }

    .article-main {
        border-radius: 8px;
        padding: 16px;
    }

    .article-side {
        margin-top: 12px;
        display: grid;
        gap: 10px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.9;
    }

    .prose-modern h2 {
        font-size: clamp(21px, 5vw, 28px);
        line-height: 1.3;
        margin-top: 24px;
        margin-bottom: 10px;
    }

    .prose-modern h3 {
        font-size: 19px;
        line-height: 1.35;
        margin-top: 18px;
        margin-bottom: 8px;
    }

    .prose-modern p,
    .prose-modern ul,
    .prose-modern ol,
    .prose-modern blockquote,
    .prose-modern table {
        margin-bottom: 14px;
    }

    .card-grid,
    .rich-grid,
    .related-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card,
    .feature-card,
    .related-item,
    .list-item,
    .qa-card,
    .side-card {
        padding: 14px;
    }

    .search-panel {
        gap: 8px;
    }

    .search-input {
        flex: 1 1 100%;
        width: 100%;
    }

    .search-panel .btn {
        width: 100%;
    }

    .footer-inner {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .main-nav a {
        font-size: 12px;
        padding: 7px 8px;
    }

    .article-main {
        padding: 14px;
    }

    .article-meta-row {
        gap: 6px;
    }

    .article-meta-row span,
    .mini-meta span,
    .feature-meta span,
    .keyword-tag,
    .tag {
        font-size: 11px;
        padding: 6px 8px;
    }
}
