* {
    box-sizing: border-box;
}

:root {
    --bg: #f4f6f9;
    --panel: #ffffff;
    --ink: #172033;
    --muted: #657284;
    --line: #dde4ee;
    --brand: #0b766f;
    --brand-dark: #0a5f59;
    --accent: #bd2830;
    --gold: #b7791f;
    --blue: #1f5f99;
    --soft: #eef7f6;
    --surface: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
    --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.07);
    --portal-header-height: 96px;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, #ffffff 0, var(--bg) 220px);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

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

.site-topbar {
    background: #151b26;
    color: #d8dee8;
    font-size: 13px;
}

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar-inner,
.site-header-inner,
.site-nav ul {
    display: flex;
    align-items: center;
}

.topbar-inner {
    justify-content: space-between;
    min-height: 38px;
}

.topbar-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.topbar-links a:hover,
.site-nav a:hover,
.article-title a:hover {
    color: var(--brand);
}

.site-header {
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(160%) blur(10px);
}

.site-header-inner {
    justify-content: space-between;
    min-height: 96px;
    gap: 28px;
}

.mobile-nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
}

.mobile-nav-toggle span,
.mobile-nav-toggle::before,
.mobile-nav-toggle::after {
    content: "";
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
    display: block;
    transition: transform .18s ease, opacity .18s ease;
}

.mobile-nav-toggle {
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-toggle[aria-expanded="true"] span {
    opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"]::before {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"]::after {
    transform: translateY(-7px) rotate(-45deg);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-logo {
    height: 56px;
    width: auto;
    border-radius: 4px;
}

.brand-name {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0;
    color: #0f172a;
    line-height: 1.1;
}

.brand-tagline {
    color: var(--muted);
    margin-top: 4px;
    white-space: nowrap;
}

.search-form {
    display: flex;
    width: min(420px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-form input {
    flex: 1;
    border: 0;
    min-width: 0;
    padding: 13px 15px;
    font: inherit;
    outline: none;
}

.search-form button,
.btn,
.button {
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    padding: 11px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover,
.button:hover,
.search-form button:hover {
    background: linear-gradient(135deg, var(--brand-dark), #084b48);
    box-shadow: 0 10px 20px rgba(11,118,111,.18);
}

.btn-outline {
    background: #fff;
    color: var(--brand);
    border: 1px solid var(--brand);
}

.btn-outline:hover {
    background: var(--soft);
}

.site-nav {
    background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--blue));
    color: #fff;
    box-shadow: 0 8px 22px rgba(15,23,42,.08);
    position: relative;
    z-index: 30;
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 48px;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.site-nav a {
    display: block;
    padding: 14px 17px;
    white-space: nowrap;
    font-weight: 700;
}

.site-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.16);
}

.site-nav a:focus-visible,
.mobile-nav-toggle:focus-visible {
    outline: 3px solid rgba(31,95,153,.28);
    outline-offset: 3px;
}

.section {
    padding: 26px 0;
}

.portal-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
}

.home-hero-grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, .85fr);
    align-items: stretch;
}

.portal-grid-wide {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr 0.75fr;
    gap: 20px;
}

.hero-card,
.panel,
.news-card,
.console-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
    min-height: 390px;
    min-width: 0;
}

.hero-media-link {
    display: block;
    min-width: 0;
    min-height: 0;
    background: linear-gradient(135deg, #e8eef6, #f8fafc);
}

.hero-image {
    aspect-ratio: auto;
    background: linear-gradient(135deg, #e8eef6, #f8fafc);
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hero-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--muted);
    font-size: 13px;
    background: #f8fafc;
}

.kicker {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-title {
    margin: 6px 0 10px;
    font-size: 32px;
    line-height: 1.26;
    overflow-wrap: anywhere;
}

.hero-summary {
    color: var(--muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.panel {
    padding: 20px;
}

.home-rank-panel {
    display: grid;
    align-content: start;
}

.home-rank-panel .rank-list li {
    padding: 10px 0;
}

.panel,
.news-card,
.channel-board,
.brief-card,
.process-step,
.topic-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.news-card:hover,
.channel-board:hover,
.brief-card:hover,
.topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(15,23,42,.12);
    border-color: #cbd5e1;
}

.panel-title {
    margin: 0 0 16px;
    font-size: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
}

.panel-title::before,
.section-title::before,
.channel-board h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: var(--accent);
    margin-right: 0;
    vertical-align: middle;
    flex: 0 0 auto;
}

.panel-title a:last-child {
    margin-left: auto;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
}

.rank-list,
.article-list,
.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rank-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.rank-list li:last-child,
.article-list li:last-child {
    border-bottom: 0;
}

.rank-no {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
}

.rank-list li:nth-child(-n+3) .rank-no {
    background: var(--accent);
    color: #fff;
}

.article-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.article-meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.section-title {
    margin: 0 0 18px;
    font-size: 26px;
}

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

.section-head .section-title {
    margin: 0;
}

.section-desc {
    color: var(--muted);
    margin: 5px 0 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 18px;
}

.brief-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.brief-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    min-height: 104px;
    display: grid;
    align-content: center;
}

.brief-label {
    color: var(--muted);
    font-size: 13px;
}

.brief-value {
    margin-top: 4px;
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-dark);
}

.section-tight {
    padding-top: 0;
}

.home-focus-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.focus-card {
    min-height: 118px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.96)),
        radial-gradient(circle at 18% 18%, rgba(189,40,48,.12), transparent 30%),
        radial-gradient(circle at 86% 72%, rgba(11,118,111,.12), transparent 30%);
    box-shadow: var(--shadow-sm);
    display: grid;
    align-content: end;
    color: var(--text);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.focus-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(15,23,42,.12);
    border-color: #cbd5e1;
}

.focus-card span {
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.focus-card strong {
    font-size: 18px;
    line-height: 1.45;
    font-weight: 800;
}

.focus-card-strong {
    background:
        linear-gradient(135deg, rgba(21,63,71,.94), rgba(17,24,39,.96)),
        url("/images/portal-photo-1.jpg") center/cover;
    color: #fff;
    border-color: rgba(255,255,255,.18);
}

.focus-card-strong span {
    color: #f8d8d8;
}

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

.channel-board {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.channel-board h3 {
    margin: 0 0 12px;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
}

.channel-board .article-list li:first-child .article-title {
    font-size: 18px;
    font-weight: 800;
}

.channel-board .article-title,
.news-card .article-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-board .article-title {
    -webkit-line-clamp: 2;
}

.news-card .article-title {
    -webkit-line-clamp: 2;
}

.feature-band {
    background: linear-gradient(135deg, #111827, #153f47 52%, #1f2d42);
    color: #e5e7eb;
    padding: 40px 0;
    margin: 20px 0;
}

.feature-band .section-title,
.feature-band .footer-title {
    color: #fff;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.process-step {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255,255,255,0.06);
    min-height: 156px;
}

.process-no {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    margin-bottom: 10px;
}

.process-step h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 17px;
}

.process-step p {
    margin: 0;
    color: #cbd5e1;
}

.topic-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.topic-card {
    min-height: 180px;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    position: relative;
    background: #111827;
}

.topic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .78;
    position: absolute;
    inset: 0;
}

.topic-card div {
    position: relative;
    padding: 22px;
    max-width: 78%;
    text-shadow: 0 2px 14px rgba(0,0,0,.28);
}

.topic-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.news-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
}

.news-card-media {
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #e8eef6, #f8fafc);
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: linear-gradient(135deg, #e8eef6, #f8fafc);
    display: block;
    transition: transform .22s ease;
}

.news-card:hover img {
    transform: scale(1.035);
}

.news-card-body {
    padding: 17px;
    display: grid;
    gap: 8px;
    flex: 1;
    align-content: start;
    min-height: 190px;
}

.news-card .summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.is-fallback-image {
    object-position: center;
    filter: saturate(.96) contrast(1.03);
}

.article-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.article-title a,
.rank-list a,
.article-list a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.note-editor.note-frame {
    border-color: var(--line);
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.note-editor .note-toolbar {
    background: #f8fafc;
    border-bottom-color: var(--line);
    padding: 12px 12px 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.note-editor .note-toolbar > .note-btn-group {
    margin: 0 0 8px;
}

.note-editor .note-btn {
    min-width: 38px;
    min-height: 38px;
    border-radius: 10px;
    border-color: #d9e2ef;
    box-shadow: none;
}

.note-editor .note-btn:hover,
.note-editor .note-btn:focus {
    background: #eef7f6;
    border-color: #bfd7d4;
}

.note-editor .note-editing-area .note-editable {
    min-height: 280px;
    line-height: 1.75;
    padding: 18px 18px 22px;
    background: #ffffff;
    color: var(--ink);
}

.note-editor .note-editing-area .note-codable {
    min-height: 280px;
    background: #0f172a;
    color: #e5e7eb;
}

.note-editor .note-editing-area .note-editable img {
    max-width: 100%;
}

.note-editor.note-frame.fullscreen,
.note-editor.note-airframe.fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 10050 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.note-editor.note-frame.fullscreen .note-toolbar,
.note-editor.note-airframe.fullscreen .note-toolbar {
    background: #f8fafc !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 12px 16px 4px !important;
}

.note-editor.note-frame.fullscreen .note-editing-area,
.note-editor.note-airframe.fullscreen .note-editing-area {
    background: #ffffff !important;
}

.note-editor.note-frame.fullscreen .note-editing-area .note-editable,
.note-editor.note-airframe.fullscreen .note-editing-area .note-editable {
    min-height: calc(100vh - 132px) !important;
    background: #ffffff !important;
    color: var(--ink) !important;
}

.note-editor.note-frame.fullscreen .note-editing-area .note-codable,
.note-editor.note-airframe.fullscreen .note-editing-area .note-codable {
    min-height: calc(100vh - 132px) !important;
    background: #0f172a !important;
    color: #e5e7eb !important;
}

.note-editor.note-frame.fullscreen .note-statusbar,
.note-editor.note-airframe.fullscreen .note-statusbar {
    background: #f8fafc !important;
    border-top: 1px solid var(--line) !important;
}

.note-modal-content {
    width: min(760px, calc(100vw - 24px));
    margin: 32px auto;
    border: 1px solid #d7e0ec;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    overflow: hidden;
}

.note-modal-header {
    padding: 22px 28px 18px;
    border-bottom: 1px solid #e5edf6;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.note-modal-title {
    color: #233247;
    font-size: 18px;
    font-weight: 800;
}

.note-modal-body {
    padding: 22px 28px 14px;
}

.note-form-group {
    padding-bottom: 16px;
}

.note-form-label {
    margin-bottom: 8px;
    color: #25364d;
    font-size: 14px;
    font-weight: 800;
}

.note-input {
    min-height: 48px;
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

.note-modal-footer {
    padding: 0 28px 26px;
    text-align: left;
}

.note-modal-footer .note-btn {
    float: none;
}

.note-modal-footer .note-btn-primary {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff7f88, #ff6572);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.note-modal-footer .note-btn-primary:hover,
.note-modal-footer .note-btn-primary:focus {
    background: linear-gradient(135deg, #ff6f79, #f05261);
    color: #fff;
}

.note-modal .close {
    color: #90a0b5;
    font-size: 28px;
    opacity: 1;
}

.editor-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.editor-main-column,
.editor-side-column {
    min-width: 0;
}

.editor-side-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cover-uploader {
    background: linear-gradient(180deg, #fbfdff, #f6f9fc);
    border: 1px solid #dce6f1;
    border-radius: 16px;
    padding: 16px;
}

.cover-uploader-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.cover-uploader-head strong {
    font-size: 16px;
}

.cover-uploader-head span,
.helper-text {
    color: var(--muted);
    font-size: 13px;
}

.cover-uploader-grid {
    display: grid;
    gap: 14px;
}

.cover-preview-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px dashed #c7d5e6;
    background:
        linear-gradient(135deg, rgba(11,118,111,.08), rgba(31,95,153,.07)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.85) 0, rgba(255,255,255,.85) 12px, rgba(243,247,252,.88) 12px, rgba(243,247,252,.88) 24px);
    aspect-ratio: 16 / 10;
}

.cover-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    color: #506178;
    font-weight: 700;
}

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

.file-trigger {
    position: relative;
    overflow: hidden;
    display: inline-flex;
}

.file-trigger input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.cover-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 13px;
}

.cover-status.is-loading {
    color: var(--blue);
}

.cover-status.is-warning {
    color: #c2410c;
}

.cover-status.is-success {
    color: #047857;
}

.form-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.panel,
.news-card,
.channel-board,
.topic-card,
.brief-card,
.footer-grid > div {
    min-width: 0;
}

h1,
h2,
h3,
p,
li,
a {
    overflow-wrap: anywhere;
}

.summary {
    color: var(--muted);
    margin: 9px 0 0;
    font-size: 14px;
}

.portal-footer {
    margin-top: 34px;
    background: #151b26;
    color: #d1d5db;
    padding: 28px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 24px;
}

.footer-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 8px;
}

.console-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}

.console-sidebar {
    background: #111827;
    color: #e5e7eb;
    padding: 24px 18px;
}

.console-brand {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 28px;
}

.console-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 6px;
    color: #d1d5db;
    margin-bottom: 6px;
}

.console-nav a:hover,
.console-nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.console-main {
    padding: 28px;
    min-width: 0;
}

.console-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.console-header h1 {
    margin: 0;
    font-size: 28px;
}

.console-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
}

.stat-label {
    color: var(--muted);
    margin-top: 2px;
}

.console-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
}

.console-panel {
    padding: 20px;
}

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

.form-row {
    margin-bottom: 14px;
}

.form-row.full,
.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 11px;
    font: inherit;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(11,118,111,.18);
    border-color: var(--brand);
}

textarea {
    min-height: 180px;
    resize: vertical;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table th,
.data-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-pending {
    background: #fff7ed;
    color: #c2410c;
}

.badge-published,
.badge-paid {
    background: #ecfdf5;
    color: #047857;
}

.badge-rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.badge-none {
    background: #f1f5f9;
    color: #475569;
}

.notice {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 8px;
    padding: 13px 15px;
    margin-bottom: 16px;
}

.notice.warning {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

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

.actions .btn,
.actions .btn-outline {
    white-space: nowrap;
}

/* Public portal polish layer */
main {
    background:
        linear-gradient(180deg, rgba(255,255,255,.66), rgba(244,246,249,.3) 42%, rgba(238,243,248,.64));
}

.section {
    position: relative;
}

.section + .section {
    padding-top: 12px;
}

.hero-card,
.panel,
.news-card,
.channel-board,
.topic-card,
.focus-card {
    border-radius: 16px;
}

.hero-card,
.panel,
.news-card,
.channel-board {
    border-color: #d7e1ec;
    box-shadow: 0 18px 50px rgba(15,23,42,.08);
}

.hero-card {
    min-height: 420px;
    background:
        linear-gradient(90deg, #fff 0%, #fff 56%, #f8fbff 100%);
}

.hero-media-link {
    position: relative;
    overflow: hidden;
}

.hero-media-link::after,
.news-card-media::after,
.category-card-media::after,
.result-image::after,
.article-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0) 62%, rgba(15,23,42,.16)),
        linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,0));
    pointer-events: none;
}

.hero-content {
    position: relative;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.98)),
        repeating-linear-gradient(135deg, rgba(11,118,111,.045) 0 1px, transparent 1px 16px);
}

.hero-content::before {
    content: "";
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--brand));
    position: absolute;
    top: 34px;
    left: 34px;
}

.hero-content .kicker {
    margin-top: 18px;
}

.hero-title {
    font-size: clamp(26px, 2.45vw, 36px);
}

.hero-title a {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-summary,
.summary,
.section-desc,
.result-content p,
.category-card p {
    color: #5f6d81;
}

.panel,
.channel-board {
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,251,255,.96));
}

.panel-title,
.section-title,
.main-content h2,
.sidebar-widget h2,
.search-results h2,
.filters h2 {
    letter-spacing: 0;
}

.panel-title {
    min-height: 36px;
}

.article-list li,
.rank-list li {
    border-radius: 10px;
    padding-left: 8px;
    padding-right: 8px;
    transition: background .18s ease, transform .18s ease;
}

.article-list li:hover,
.rank-list li:hover {
    background: #f8fafc;
    transform: translateX(2px);
}

.rank-list li {
    align-items: start;
}

.rank-no {
    border-radius: 8px;
}

.news-grid {
    gap: 20px;
}

.news-card {
    border-color: #dbe4ef;
    overflow: hidden;
}

.news-card-media {
    position: relative;
}

.category-card-media,
.result-image,
.article-thumb {
    position: relative;
    overflow: hidden;
}

.news-card-body {
    padding: 18px;
    min-height: 176px;
}

.news-card .article-title,
.result-content h3,
.category-card h3 {
    letter-spacing: 0;
}

.news-card .summary {
    -webkit-line-clamp: 4;
}

.channel-board {
    position: relative;
    overflow: hidden;
}

.channel-board::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--brand), var(--blue));
}

.channel-board h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.focus-card {
    overflow: hidden;
}

.topic-card {
    min-height: 220px;
    box-shadow: 0 18px 45px rgba(15,23,42,.12);
}

.topic-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15,23,42,.78), rgba(15,23,42,.24) 58%, rgba(15,23,42,.08)),
        linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.28));
    pointer-events: none;
}

.topic-card div {
    z-index: 1;
}

.category-hero,
.search-hero,
.guide-hero,
.page-hero {
    position: relative;
    overflow: hidden;
}

.category-hero::after,
.search-hero::after,
.guide-hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 62%, rgba(255,255,255,.1) 62% 63%, transparent 63% 100%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 1px, transparent 1px 18px);
    pointer-events: none;
}

.category-hero .wrap,
.search-hero .wrap,
.guide-hero .wrap,
.page-hero .wrap {
    position: relative;
    z-index: 1;
}

.page-nav,
.page-content,
.guide-card,
.main-content,
.sidebar-widget,
.search-results,
.filters {
    border-radius: 16px !important;
    border-color: #d7e1ec !important;
    box-shadow: 0 16px 44px rgba(15,23,42,.08) !important;
}

.brand-ribbon {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(220px, .75fr));
    gap: 16px;
}

.brand-ribbon-main,
.brand-ribbon-item,
.index-tile,
.portal-banner {
    border: 1px solid #d7e1ec;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(15,23,42,.08);
}

.brand-ribbon-main,
.brand-ribbon-item {
    min-height: 146px;
    padding: 22px;
    display: grid;
    align-content: end;
    overflow: hidden;
    position: relative;
}

.brand-ribbon-main {
    color: #fff;
    background:
        linear-gradient(105deg, rgba(15,23,42,.86), rgba(11,118,111,.78), rgba(31,95,153,.62)),
        url("/images/portal-photo-1.jpg") center/cover;
}

.brand-ribbon-item {
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.96)),
        repeating-linear-gradient(135deg, rgba(31,95,153,.06) 0 1px, transparent 1px 16px);
}

.brand-ribbon-main::after,
.brand-ribbon-item::after,
.portal-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0 58%, rgba(255,255,255,.12) 58% 59%, transparent 59% 100%);
    pointer-events: none;
}

.brand-ribbon span,
.showcase-card span,
.index-tile span,
.portal-banner span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.brand-ribbon-main span,
.portal-banner span {
    color: #f8d8d8;
}

.brand-ribbon strong,
.index-tile strong,
.portal-banner strong {
    display: block;
    margin-top: 8px;
    font-size: 19px;
    line-height: 1.45;
}

.brand-ribbon-main strong {
    max-width: 680px;
    font-size: 24px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(220px, .75fr));
    gap: 18px;
}

.showcase-card {
    min-height: 260px;
    border: 1px solid #d7e1ec;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(15,23,42,.08);
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.showcase-card-large {
    min-height: 330px;
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: .86;
    transition: transform .22s ease, opacity .22s ease;
}

.showcase-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15,23,42,.05), rgba(15,23,42,.78)),
        linear-gradient(90deg, rgba(15,23,42,.62), rgba(15,23,42,.12));
    pointer-events: none;
}

.showcase-card:hover img {
    transform: scale(1.04);
    opacity: .94;
}

.showcase-card div {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 1;
}

.showcase-card strong {
    display: block;
    margin-top: 8px;
    font-size: 21px;
    line-height: 1.42;
}

.showcase-card-large strong {
    max-width: 540px;
    font-size: 28px;
}

.home-index-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.index-tile {
    min-height: 136px;
    padding: 20px;
    background:
        linear-gradient(180deg, #fff, #f8fbff),
        radial-gradient(circle at top right, rgba(11,118,111,.1), transparent 32%);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.index-tile:hover,
.brand-ribbon-main:hover,
.brand-ribbon-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(15,23,42,.12);
    border-color: #c7d4e5;
}

.portal-banner {
    min-height: 154px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #fff;
    background:
        linear-gradient(105deg, rgba(21,63,71,.94), rgba(11,118,111,.88), rgba(31,95,153,.8)),
        url("/images/portal-photo-5.jpg") center/cover;
    position: relative;
    overflow: hidden;
}

.portal-banner > * {
    position: relative;
    z-index: 1;
}

.portal-banner strong {
    max-width: 720px;
    font-size: 26px;
}

.portal-banner .btn {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 14px 34px rgba(0,0,0,.16);
    flex: 0 0 auto;
}

.visual-gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(220px, .85fr));
    grid-auto-rows: minmax(190px, auto);
    gap: 18px;
}

.visual-gallery-card {
    min-height: 190px;
    border: 1px solid #d7e1ec;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(15,23,42,.08);
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111827;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.visual-gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(15,23,42,.14);
    border-color: #c7d4e5;
}

.visual-gallery-card-wide {
    grid-row: span 2;
    min-height: 398px;
}

.visual-gallery-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .9;
    transition: transform .22s ease, opacity .22s ease;
}

.visual-gallery-card:hover img {
    transform: scale(1.035);
    opacity: .96;
}

.visual-gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15,23,42,.06), rgba(15,23,42,.78)),
        linear-gradient(90deg, rgba(15,23,42,.55), rgba(15,23,42,.08));
    pointer-events: none;
}

.visual-gallery-card div {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 1;
}

.visual-gallery-card span {
    color: #f8d8d8;
    font-size: 13px;
    font-weight: 800;
}

.visual-gallery-card strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    line-height: 1.42;
    text-shadow: 0 8px 28px rgba(0,0,0,.28);
}

.visual-gallery-card-wide strong {
    max-width: 560px;
    font-size: 28px;
}

.ad-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ad-showcase-card {
    min-height: 218px;
    border: 1px solid #d7e1ec;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(15,23,42,.08);
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111827;
    isolation: isolate;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ad-showcase-card-wide,
.ad-showcase-card:nth-child(2) {
    grid-column: span 2;
    min-height: 272px;
}

.ad-showcase-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .92;
    transition: transform .22s ease, opacity .22s ease;
}

.ad-showcase-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15,23,42,.03), rgba(15,23,42,.74)),
        linear-gradient(90deg, rgba(15,23,42,.68), rgba(15,23,42,.12));
    pointer-events: none;
}

.ad-showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(15,23,42,.14);
    border-color: #c7d4e5;
}

.ad-showcase-card:hover img {
    transform: scale(1.035);
    opacity: .98;
}

.ad-showcase-card div {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    text-shadow: 0 8px 28px rgba(0,0,0,.32);
}

.ad-showcase-card span,
.subscribe-band span {
    color: #f8d8d8;
    font-size: 13px;
    font-weight: 900;
}

.ad-showcase-card strong,
.subscribe-band strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    line-height: 1.42;
    text-wrap: balance;
}

.ad-showcase-card-wide strong,
.ad-showcase-card:nth-child(2) strong {
    max-width: 600px;
    font-size: 26px;
}

.ad-showcase-card:not(.ad-showcase-card-wide):not(:nth-child(2)) strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.subscribe-band {
    min-height: 166px;
    border: 1px solid #d7e1ec;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(15,23,42,.08);
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
    gap: 14px 28px;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(105deg, rgba(17,24,39,.94), rgba(11,118,111,.9), rgba(31,95,153,.78)),
        url("/images/portal-photo-3.jpg") center/cover;
    position: relative;
    overflow: hidden;
}

.subscribe-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0 58%, rgba(255,255,255,.12) 58% 59%, transparent 59% 100%);
    pointer-events: none;
}

.subscribe-band > * {
    position: relative;
    z-index: 1;
}

.subscribe-band strong {
    max-width: 720px;
    font-size: 27px;
}

.email-subscription {
    display: flex;
    gap: 10px;
}

.email-subscription input {
    min-width: 0;
    flex: 1;
}

.subscribe-band .email-subscription input {
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.96);
    min-height: 48px;
}

.subscribe-band .email-subscription button {
    flex: 0 0 auto;
    min-height: 48px;
    min-width: 92px;
}

.subscribe-result {
    min-height: 20px;
    color: #64748b;
    font-size: 13px;
}

.subscribe-band .subscribe-result {
    grid-column: 2;
    color: rgba(255,255,255,.86);
}

.portal-footer {
    position: relative;
    overflow: hidden;
}

.portal-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--brand), var(--blue));
}

.portal-footer a {
    color: #e5e7eb;
    display: inline-block;
    margin: 2px 0;
    text-decoration: none;
}

.portal-footer a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.subscribe-result.is-success {
    color: #047857;
}

.subscribe-result.is-error {
    color: #b91c1c;
}

.subscribe-result.is-loading {
    color: #1d4ed8;
}

.subscribe-band .subscribe-result.is-success,
.subscribe-band .subscribe-result.is-error,
.subscribe-band .subscribe-result.is-loading {
    color: #fff;
}

.ad-container img {
    width: 100%;
    aspect-ratio: 120 / 62;
    object-fit: cover;
    border-radius: 16px;
}

.category-card-media,
.result-image,
.news-card-media {
    isolation: isolate;
}

.category-card-media img,
.result-image img,
.news-card img {
    object-position: center;
}

.category-card h3,
.result-content h3,
.news-card .article-title,
.article-list .article-title,
.rank-list a {
    text-wrap: pretty;
}

@media (max-width: 980px) {
    .site-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: hidden;
        padding: 4px 0;
    }

    .portal-grid,
    .home-hero-grid,
    .portal-grid-wide,
    .console-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-image {
        aspect-ratio: 16 / 8;
        height: auto;
    }

    .hero-media-link {
        min-height: 0;
    }

    .news-grid,
    .brief-grid,
    .home-focus-grid,
    .home-index-grid,
    .process-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-ribbon,
    .showcase-grid,
    .visual-gallery-grid,
    .ad-showcase-grid {
        grid-template-columns: 1fr 1fr;
    }

    .brand-ribbon-main,
    .showcase-card-large,
    .visual-gallery-card-wide,
    .ad-showcase-card-wide,
    .ad-showcase-card:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .subscribe-band {
        grid-template-columns: 1fr;
    }

    .subscribe-band .subscribe-result {
        grid-column: 1;
    }

    .console-shell {
        grid-template-columns: 1fr;
    }

    .console-sidebar {
        position: static;
        padding: 16px;
    }

    .console-nav {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .console-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .editor-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .site-topbar {
        display: none;
    }

    .site-header-inner {
        min-height: 0;
        padding: 14px 0;
        gap: 12px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .brand-block {
        align-items: center;
        min-width: 0;
    }

    .brand-logo {
        height: 46px;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-tagline {
        white-space: normal;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .search-form {
        grid-column: 1 / -1;
        width: 100%;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        background: rgba(255,255,255,.98);
        color: var(--text);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 36px rgba(15,23,42,.12);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition: max-height .22s ease, opacity .18s ease, transform .18s ease;
    }

    body.portal-nav-open .site-nav {
        max-height: 72vh;
        opacity: 1;
        transform: translateY(0);
        overflow-y: auto;
    }

    .site-nav ul {
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        overflow-x: hidden;
        padding: 12px 0 14px;
    }

    .site-nav a {
        padding: 12px 13px;
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #dbe4ef;
        border-radius: 8px;
        background: #f8fafc;
        color: #172033;
        text-align: center;
        white-space: normal;
        line-height: 1.25;
    }

    .site-nav a:hover {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
    }
}

@media (max-width: 680px) {
    .site-header-inner,
    .topbar-inner,
    .console-header {
        align-items: stretch;
        flex-direction: column;
    }

    .wrap {
        width: min(100% - 22px, 1180px);
    }

    .site-topbar {
        display: none;
    }

    .topbar-links {
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .site-header-inner {
        min-height: 0;
        padding: 14px 0;
        gap: 12px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .brand-block {
        align-items: center;
        min-width: 0;
    }

    .brand-logo {
        height: 46px;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-tagline {
        white-space: normal;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .search-form {
        grid-column: 1 / -1;
        width: 100%;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        background: rgba(255,255,255,.98);
        color: var(--text);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 36px rgba(15,23,42,.12);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition: max-height .22s ease, opacity .18s ease, transform .18s ease;
    }

    body.portal-nav-open .site-nav {
        max-height: 72vh;
        opacity: 1;
        transform: translateY(0);
        overflow-y: auto;
    }

    .site-nav ul {
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        overflow-x: hidden;
        padding: 12px 0 14px;
    }

    .site-nav a {
        padding: 12px 13px;
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #dbe4ef;
        border-radius: 8px;
        background: #f8fafc;
        color: #172033;
        text-align: center;
        white-space: normal;
        line-height: 1.25;
    }

    .site-nav a:hover {
        color: #fff;
        background: var(--brand);
        border-color: var(--brand);
    }

    .hero-image {
        aspect-ratio: 16 / 10;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-title {
        font-size: 23px;
    }

    .hero-summary {
        -webkit-line-clamp: 3;
    }

    .section {
        padding: 18px 0;
    }

    .section-head {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .section-head .btn,
    .section-head .btn-outline {
        width: 100%;
    }

    .news-grid,
    .brief-grid,
    .home-focus-grid,
    .home-index-grid,
    .channel-grid,
    .process-grid,
    .topic-strip,
    .stats-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .brand-ribbon,
    .showcase-grid,
    .visual-gallery-grid,
    .ad-showcase-grid {
        grid-template-columns: 1fr;
    }

    .brand-ribbon-main,
    .brand-ribbon-item,
    .index-tile,
    .portal-banner,
    .subscribe-band {
        min-height: 120px;
    }

    .showcase-card,
    .showcase-card-large,
    .visual-gallery-card,
    .visual-gallery-card-wide,
    .ad-showcase-card,
    .ad-showcase-card-wide {
        min-height: 240px;
    }

    .ad-showcase-card:nth-child(2) {
        min-height: 240px;
    }

    .portal-banner,
    .subscribe-band {
        align-items: stretch;
    }

    .portal-banner .btn,
    .email-subscription button {
        width: 100%;
    }

    .email-subscription {
        flex-direction: column;
    }

    .subscribe-band {
        padding: 20px;
    }

    .subscribe-band strong {
        font-size: 22px;
    }

    .brand-ribbon-main strong,
    .portal-banner strong,
    .showcase-card-large strong,
    .visual-gallery-card-wide strong {
        font-size: 22px;
    }

    .console-main {
        padding: 18px;
    }

    .console-panel {
        padding: 16px;
    }

    .console-brand {
        margin-bottom: 12px;
    }

    .actions .btn,
    .actions .btn-outline,
    .form-actions-row .btn,
    .form-actions-row .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .panel,
    .news-card,
    .channel-board,
    .brief-card,
    .topic-card,
    .stat-box {
        box-shadow: var(--shadow-sm);
    }

    .news-card img {
        aspect-ratio: 16 / 9;
    }

    .rank-list li,
    .article-list li {
        padding: 10px 0;
    }

    .brief-card {
        min-height: 88px;
    }

    .footer-grid {
        gap: 16px;
    }

    .topic-card div {
        max-width: 100%;
    }

    .note-modal-content {
        width: calc(100vw - 16px);
        margin: 8px auto;
        border-radius: 16px;
    }

    .note-modal-header,
    .note-modal-body,
    .note-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .note-editor .note-toolbar {
        padding: 10px 8px 2px;
        gap: 6px;
    }

    .note-editor .note-btn {
        min-width: 34px;
        min-height: 34px;
        padding: 5px 8px;
    }

    .cover-uploader {
        padding: 14px;
    }

    .cover-uploader-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 360px) {
    body {
        font-size: 14px;
    }

    .site-nav ul {
        grid-template-columns: 1fr;
    }

    .brand-name {
        font-size: 22px;
    }

    .hero-title,
    .topic-card h3 {
        font-size: 21px;
    }

    .section-title {
        font-size: 23px;
    }

    .panel-title {
        font-size: 18px;
    }

    .panel,
    .console-panel,
    .channel-board,
    .news-card-body {
        padding: 14px;
    }

    .search-form button {
        padding-left: 13px;
        padding-right: 13px;
    }

    .hero-content {
        padding: 16px;
    }

    .console-main {
        padding: 12px;
    }

    .console-nav a {
        padding: 10px 12px;
    }

    .note-editor .note-toolbar {
        gap: 4px;
        padding: 8px 6px 2px;
    }

    .note-editor .note-btn {
        min-width: 32px;
        min-height: 32px;
        padding: 4px 7px;
    }
}

/* Public portal polish layer */
:root {
    --text: var(--ink);
    --card-radius: 16px;
    --soft-line: #d7e1ec;
}

.site-header {
    position: relative;
    z-index: 32;
}

.site-nav {
    position: sticky;
    top: 0;
}

.portal-nav-backdrop {
    display: none;
}

.site-nav a {
    position: relative;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 7px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    transform: translateY(-1px);
    background: rgba(255,255,255,.17);
}

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

.section {
    padding: 30px 0;
}

.section + .section {
    padding-top: 18px;
}

.section-head {
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(215,225,236,.72);
}

.section-title,
.panel-title,
.channel-board h3,
.main-content h2,
.sidebar-widget h2,
.search-results h2,
.filters h2,
.side-card h2 {
    color: #101827;
    font-weight: 900;
    text-wrap: balance;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-title::before,
.panel-title::before,
.channel-board h3::before,
.main-content h2::before,
.sidebar-widget h2::before,
.search-results h2::before,
.filters h2::before,
.side-card h2::before {
    box-shadow: 0 0 0 5px rgba(189,40,48,.08);
}

.section-desc,
.summary,
.hero-summary,
.category-card p,
.result-content p {
    max-width: 760px;
}

.hero-card {
    grid-template-columns: minmax(0, 1.36fr) minmax(310px, .78fr);
    min-height: 450px;
}

.hero-content {
    padding: clamp(26px, 3.1vw, 42px);
}

.hero-title {
    max-width: 600px;
}

.hero-summary {
    font-size: 16px;
    line-height: 1.82;
}

.hero-meta-row {
    margin-top: 20px;
}

.hero-pill,
.article-meta span,
.result-meta span {
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    background: rgba(248,250,252,.92);
    padding: 4px 9px;
    line-height: 1.35;
}

.home-rank-panel {
    min-height: 450px;
}

.rank-list a,
.article-list a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-list li,
.article-list li {
    min-height: 56px;
}

.home-focus-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.focus-card,
.index-tile {
    position: relative;
}

.focus-card::after,
.index-tile::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    height: 1px;
    background: linear-gradient(90deg, rgba(189,40,48,.34), transparent);
    pointer-events: none;
}

.brand-ribbon-item,
.index-tile {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,251,255,.96)),
        linear-gradient(135deg, rgba(189,40,48,.08), transparent 36%),
        linear-gradient(315deg, rgba(11,118,111,.08), transparent 34%);
}

.showcase-card,
.visual-gallery-card,
.topic-card,
.portal-banner {
    isolation: isolate;
}

.showcase-card::after,
.visual-gallery-card::after,
.topic-card::after {
    background:
        linear-gradient(180deg, rgba(15,23,42,.04), rgba(15,23,42,.76)),
        linear-gradient(90deg, rgba(15,23,42,.64), rgba(15,23,42,.1));
}

.showcase-card strong,
.visual-gallery-card strong,
.topic-card h3,
.topic-card p {
    text-wrap: balance;
}

.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: 20px;
}

.news-card {
    min-height: 386px;
    border-color: #d8e2ee !important;
}

.news-card-media {
    min-height: 0;
    background:
        linear-gradient(135deg, rgba(232,238,246,.9), rgba(248,250,252,.88)),
        repeating-linear-gradient(135deg, rgba(11,118,111,.06) 0 12px, rgba(189,40,48,.04) 12px 24px);
}

.news-card img {
    aspect-ratio: 16 / 9.4;
    object-fit: cover;
}

.news-card-body {
    min-height: 188px;
    align-content: start;
    display: grid;
    gap: 8px;
}

.news-card .article-title {
    font-size: 18px;
    line-height: 1.45;
    min-height: 52px;
}

.news-card .summary {
    -webkit-line-clamp: 3;
    line-height: 1.72;
}

.channel-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.channel-board {
    min-height: 310px;
}

.category-card,
.result-item {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.category-card:hover,
.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(15,23,42,.11) !important;
    border-color: #c7d4e5 !important;
}

.category-card a {
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.category-card-body {
    min-width: 0;
}

.category-card-media,
.result-image {
    background:
        linear-gradient(135deg, #e8eef6, #f8fafc),
        repeating-linear-gradient(135deg, rgba(11,118,111,.07) 0 12px, rgba(189,40,48,.05) 12px 24px);
}

.category-card-media img,
.result-image img {
    height: 100% !important;
    min-height: 154px;
    object-fit: cover;
}

.category-card h3,
.result-content h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card p,
.result-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-item {
    grid-template-columns: minmax(190px, 235px) minmax(0, 1fr) !important;
    align-items: stretch;
}

.filters,
.search-results,
.main-content,
.sidebar-widget,
.article-main,
.side-card {
    border-radius: var(--card-radius) !important;
}

.article-cover {
    aspect-ratio: 16 / 7.5 !important;
}

.article-headline {
    max-width: 820px;
    text-wrap: balance;
}

.article-summary {
    line-height: 1.78;
}

.article-body {
    overflow-wrap: anywhere;
}

.article-body > *:first-child {
    margin-top: 0;
}

.article-body figure {
    margin: 24px 0;
}

.article-body img {
    background:
        linear-gradient(135deg, #e8eef6, #f8fafc),
        repeating-linear-gradient(135deg, rgba(11,118,111,.07) 0 12px, rgba(189,40,48,.05) 12px 24px) !important;
}

@media (max-width: 980px) {
    .site-nav {
        position: relative;
        top: auto;
    }

    .hero-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-image {
        aspect-ratio: 16 / 8.5;
    }

    .home-rank-panel {
        min-height: 0;
    }

    .category-card a,
    .result-item {
        grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 90;
    }

    body.portal-nav-open {
        overflow: hidden;
    }

    .portal-nav-backdrop {
        position: fixed;
        inset: var(--portal-header-height) 0 0;
        z-index: 68;
        display: block;
        border: 0;
        padding: 0;
        background: rgba(15,23,42,.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease;
    }

    body.portal-nav-open .portal-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav {
        position: fixed !important;
        left: 12px;
        right: 12px;
        top: calc(var(--portal-header-height) + 10px) !important;
        z-index: 75;
        border: 1px solid rgba(215,225,236,.92);
        border-radius: 16px;
        box-shadow: 0 24px 70px rgba(15,23,42,.22);
        pointer-events: none;
    }

    body.portal-nav-open .site-nav {
        max-height: calc(100svh - var(--portal-header-height) - 26px);
        pointer-events: auto;
    }

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

    .site-nav a:hover,
    .site-nav a.is-active {
        transform: none;
        background: var(--brand);
        color: #fff;
        border-color: var(--brand);
    }
}

@media (max-width: 680px) {
    .section {
        padding: 20px 0;
    }

    .section + .section {
        padding-top: 8px;
    }

    .hero-image {
        aspect-ratio: 16 / 10.5;
    }

    .hero-summary {
        font-size: 15px;
        line-height: 1.74;
    }

    .home-focus-grid,
    .news-grid,
    .channel-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        min-height: 0;
    }

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

    .news-card .article-title {
        min-height: 0;
        font-size: 17px;
    }

    .category-card a,
    .result-item {
        grid-template-columns: 1fr !important;
    }

    .category-card-media img,
    .result-image img {
        min-height: 190px;
    }

    .article-cover {
        aspect-ratio: 16 / 10 !important;
    }

    .article-headline {
        font-size: 24px !important;
        line-height: 1.28 !important;
    }

    .article-summary {
        font-size: 15px !important;
        padding: 13px 14px !important;
    }

    .article-body {
        font-size: 16px !important;
        line-height: 1.86 !important;
    }
}

@media (max-width: 420px) {
    .wrap {
        width: min(100% - 18px, 1180px);
    }

    .brand-name {
        font-size: 22px;
    }

    .brand-logo {
        height: 42px;
    }

    .search-form input {
        padding: 11px 12px;
    }

    .search-form button {
        min-width: 72px;
    }

    .hero-title {
        font-size: 22px;
    }

    .showcase-card,
    .visual-gallery-card,
    .topic-card {
        min-height: 220px;
    }

    .site-nav {
        left: 8px;
        right: 8px;
        border-radius: 14px;
    }

    .site-nav ul {
        grid-template-columns: 1fr;
        max-height: calc(100svh - var(--portal-header-height) - 50px);
        overflow-y: auto;
    }
}

/* Public entry link */
.portal-entry-link {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(11,118,111,.28);
    border-radius: 999px;
    background:
        linear-gradient(180deg, #ffffff, #f5fbfa);
    color: var(--brand-dark);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(11,118,111,.1);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
    white-space: nowrap;
}

.portal-entry-link:hover {
    transform: translateY(-1px);
    border-color: rgba(11,118,111,.52);
    background: linear-gradient(180deg, #f7fffd, #eaf7f5);
    box-shadow: 0 14px 30px rgba(11,118,111,.16);
}

.portal-entry-link:focus-visible {
    outline: 3px solid rgba(11,118,111,.22);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .site-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .mobile-nav-toggle {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .search-form {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .portal-entry-link {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        min-height: 40px;
        border-radius: 10px;
    }
}

/* Category and article page systems */
.category-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(16,33,47,.92), rgba(11,118,111,.88) 58%, rgba(31,95,153,.84)),
        url('/images/portal-photo-5.jpg') center/cover;
    color: #fff;
    padding: 42px 0 40px;
}

.category-hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(15,23,42,.22), transparent);
    z-index: -1;
}

.category-hero .wrap {
    position: relative;
    z-index: 1;
}

.category-hero h1 {
    margin: 0;
    font-size: clamp(30px, 3.1vw, 40px);
    line-height: 1.2;
    text-wrap: balance;
}

.category-hero p {
    margin: 10px 0 0;
    color: #e5f3ff;
    max-width: 720px;
}

.subcategory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.subcategory-tag {
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(255,255,255,.09);
}

.category-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    gap: 24px;
    align-items: start;
}

.main-content,
.sidebar-widget,
.ad-container {
    background: #fff;
    border: 1px solid #dde4ee;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15,23,42,.08);
}

.main-content {
    padding: 24px;
}

.main-content h2,
.sidebar-widget h2 {
    margin: 0 0 16px;
    font-size: 22px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
}

.main-content h2::before,
.sidebar-widget h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: #bd2830;
    margin-right: 9px;
    vertical-align: -3px;
}

.category-card-list {
    display: grid;
    gap: 18px;
}

.category-card {
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
    border-color: #c7d4e5;
}

.category-card a {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 20px;
    padding: 15px;
    color: inherit;
}

.category-card-media {
    min-height: 162px;
    border-radius: 12px;
    overflow: hidden;
    background: #e8eef6;
}

.category-card-media img {
    width: 100%;
    height: 100%;
    min-height: 162px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform .28s ease;
}

.category-card:hover .category-card-media img {
    transform: scale(1.035);
}

.category-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card h3 {
    margin: 0 0 9px;
    font-size: 22px;
    line-height: 1.38;
    color: #142033;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.category-card p {
    margin: 0 0 12px;
    color: #657284;
    line-height: 1.78;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.category-card .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: #76849a;
}

.sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 72px;
}

.sidebar-widget {
    padding: 18px;
}

.popular-articles,
.related-content,
.latest-posts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.popular-articles li,
.related-content li,
.latest-posts li {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 11px;
}

.popular-articles li:last-child,
.related-content li:last-child,
.latest-posts li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.popular-articles a,
.related-content a,
.latest-posts a {
    display: grid;
    gap: 8px;
    color: inherit;
}

.popular-articles h3,
.related-content h3,
.latest-posts h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.ad-container {
    overflow: hidden;
    padding: 0;
}

.ad-container img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a,
.filter-option {
    border: 1px solid #dde4ee;
    border-radius: 999px;
    padding: 6px 10px;
    background: #f8fafc;
    color: #334155;
}

button.filter-option {
    font: inherit;
    cursor: pointer;
    text-align: center;
}

button.filter-option:focus-visible {
    outline: 3px solid rgba(11,118,111,.2);
    outline-offset: 2px;
}

.email-subscription {
    display: flex;
    gap: 8px;
}

.email-subscription input {
    min-width: 0;
    flex: 1;
}

.subscribe-result {
    margin-top: 10px;
    color: #475569;
    font-size: 13px;
    min-height: 18px;
}

.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.page-link {
    display: inline-flex;
    min-width: 38px;
    justify-content: center;
    padding: 8px 11px;
    border: 1px solid #dde4ee;
    border-radius: 6px;
    background: #fff;
}

.page-item.active .page-link {
    background: #0b766f;
    color: #fff;
    border-color: #0b766f;
}

.page-item.disabled .page-link {
    color: #94a3b8;
    background: #f8fafc;
}

.article-shell {
    display: grid;
    grid-template-columns: minmax(0, 820px) minmax(280px, 330px);
    gap: 26px;
    align-items: start;
    justify-content: center;
}

.article-main {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.article-cover {
    width: 100%;
    aspect-ratio: 16 / 7.4;
    object-fit: cover;
    background: linear-gradient(135deg, #e8eef6, #f8fafc);
    display: block;
}

.article-pad {
    padding: clamp(22px, 3vw, 36px);
}

.breadcrumb {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumb a {
    color: #0b766f;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #084b48;
}

.article-headline {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.22;
    max-width: 760px;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    margin: 16px 0 22px;
}

.article-byline span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
}

.article-summary {
    background: linear-gradient(135deg, #f8fafc, #eef7f6);
    border: 1px solid #dbe8ee;
    border-left: 4px solid var(--brand);
    padding: 16px 18px;
    color: #334155;
    border-radius: 10px;
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.85;
}

.article-body {
    color: #1f2937;
    font-size: 18px;
    line-height: 1.95;
    max-width: 760px;
    margin: 0 auto;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    border-radius: 12px;
    background: #e8eef6;
    display: block;
    box-shadow: 0 14px 34px rgba(15,23,42,.08);
}

.article-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.article-body iframe,
.article-body video {
    max-width: 100%;
}

.article-body p {
    margin: 0 0 1.08em;
}

.article-body h2,
.article-body h3 {
    margin: 1.55em 0 .62em;
    line-height: 1.35;
    color: #102033;
}

.article-body blockquote {
    margin: 22px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--accent);
    background: #fff7f7;
    border-radius: 10px;
    color: #334155;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 760px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.article-tag {
    border: 1px solid var(--line);
    background: #f8fafc;
    border-radius: 999px;
    padding: 6px 12px;
    color: #475569;
    font-size: 13px;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.article-tag:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.article-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 74px;
}

.side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 18px;
    overflow: hidden;
}

.side-card h2 {
    margin: 0 0 14px;
    font-size: 19px;
    padding-bottom: 11px;
    border-bottom: 2px solid #edf2f7;
}

.side-card h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    margin-right: 9px;
    border-radius: 999px;
    background: var(--accent);
    vertical-align: -3px;
}

.side-card .article-list {
    display: grid;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-card .article-list li {
    padding-bottom: 12px;
    border-bottom: 1px solid #e5edf6;
}

.side-card .article-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.side-card .article-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-weight: 800;
    line-height: 1.45;
}

.side-card .article-meta {
    margin-top: 5px;
    color: #7b8798;
    font-size: 13px;
}

.editor-pick {
    background: #0f172a;
    color: #e5e7eb;
}

.editor-pick h2 {
    color: #fff;
    border-color: rgba(255,255,255,.14);
}

.editor-pick p {
    color: #cbd5e1;
    margin: 0 0 14px;
}

@media (max-width: 980px) {
    .category-content,
    .article-shell {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .article-side {
        position: static;
    }

    .article-cover {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 680px) {
    .category-hero {
        padding: 30px 0;
    }

    .main-content,
    .sidebar-widget {
        padding: 16px;
    }

    .category-card a {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }

    .category-card h3 {
        font-size: 19px;
    }

    .category-card-media,
    .category-card-media img {
        min-height: 190px;
    }

    .email-subscription {
        flex-direction: column;
    }

    .email-subscription button {
        width: 100%;
    }

    .article-shell {
        gap: 16px;
    }

    .article-pad,
    .side-card {
        padding: 18px;
    }

    .article-byline span {
        width: 100%;
        border-radius: 10px;
    }
}

.public-topbar {
    background: #fff;
    border-bottom: 1px solid #e5edf6;
}

.public-nav {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.public-nav .brand {
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
}

.public-nav .nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.public-nav .nav-links a {
    color: #475569;
    font-weight: 800;
}

.unsubscribe-page {
    min-height: calc(100vh - 66px);
    display: grid;
    place-items: center;
    padding: clamp(32px, 7vw, 92px) 16px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(180, 83, 9, .07)),
        #f7fafc;
}

.unsubscribe-card {
    width: min(620px, 100%);
    background: #fff;
    border: 1px solid #dbe6f1;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
    padding: clamp(24px, 5vw, 46px);
}

.unsubscribe-card .eyebrow {
    display: inline-flex;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 900;
}

.unsubscribe-card h1 {
    margin: 18px 0 12px;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.12;
}

.unsubscribe-card p {
    color: #475569;
    line-height: 1.8;
}

.unsubscribe-email {
    display: inline-flex;
    max-width: 100%;
    overflow-wrap: anywhere;
    border-radius: 10px;
    background: #f1f5f9;
    padding: 8px 12px;
    color: #0f172a !important;
    font-weight: 800;
}

.unsubscribe-card form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

@media (max-width: 560px) {
    .public-nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .unsubscribe-card .btn {
        width: 100%;
    }
}

/* Cross-page responsive finish pass */
.site-header,
.site-nav,
.panel,
.main-content,
.sidebar-widget,
.side-card,
.news-card,
.category-card,
.result-item,
.ad-showcase-card,
.showcase-card,
.visual-gallery-card,
.topic-card,
.portal-banner,
.subscribe-band {
    -webkit-font-smoothing: antialiased;
}

.site-header {
    box-shadow: 0 1px 0 rgba(226, 232, 240, .72);
}

.site-header-inner {
    min-width: 0;
}

.brand-block,
.search-form,
.portal-entry-link,
.site-nav a {
    min-width: 0;
}

.search-form input,
.email-subscription input {
    font-size: 16px;
}

.site-nav {
    z-index: 86;
}

.site-nav ul {
    gap: 4px;
}

.site-nav a {
    min-height: 44px;
    overflow-wrap: anywhere;
}

.section-head {
    gap: 18px;
}

.section-desc {
    line-height: 1.75;
}

.hero-card,
.panel,
.news-card,
.category-card,
.result-item,
.main-content,
.sidebar-widget,
.side-card,
.ad-showcase-card,
.showcase-card,
.visual-gallery-card,
.topic-card,
.portal-banner,
.subscribe-band {
    border-color: #d8e2ee;
}

.hero-card,
.news-card,
.category-card,
.result-item,
.ad-showcase-card,
.showcase-card,
.visual-gallery-card,
.topic-card {
    transform: translateZ(0);
}

.hero-media-link,
.news-card-media,
.category-card-media,
.result-image,
.showcase-card,
.visual-gallery-card,
.ad-showcase-card,
.topic-card {
    background:
        linear-gradient(135deg, #e8eef6, #f8fafc),
        repeating-linear-gradient(135deg, rgba(11,118,111,.07) 0 12px, rgba(189,40,48,.05) 12px 24px);
}

.hero-title,
.news-card .article-title,
.category-card h3,
.result-content h3,
.article-headline,
.side-card .article-title a,
.rank-list a,
.article-list .article-title a {
    overflow-wrap: anywhere;
    word-break: normal;
}

.home-hero-grid {
    align-items: stretch;
}

.hero-card {
    overflow: hidden;
}

.hero-media-link {
    min-height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.home-rank-panel .rank-list {
    display: grid;
    gap: 2px;
}

.home-rank-panel .rank-list li {
    border-radius: 10px;
    padding: 10px 8px;
}

.home-rank-panel .rank-list li:hover {
    background: #f8fafc;
}

.news-grid,
.category-card-list,
.channel-grid,
.ad-showcase-grid,
.visual-gallery-grid,
.showcase-grid {
    align-items: stretch;
}

.news-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.news-card-media {
    display: block;
    aspect-ratio: 16 / 9.2;
    overflow: hidden;
}

.news-card img {
    width: 100%;
    height: 100%;
}

.news-card-body {
    display: grid;
    grid-template-rows: auto auto 1fr;
}

.category-card a,
.result-item,
.article-shell,
.category-content,
.search-results-content,
.article-main,
.main-content,
.search-results,
.category-card-body,
.result-content {
    min-width: 0;
}

.category-card-media,
.result-image {
    min-width: 0;
}

.article-meta span,
.result-meta span,
.hero-pill,
.article-byline span {
    max-width: 100%;
}

.ad-showcase-card span,
.visual-gallery-card span,
.showcase-card span,
.topic-card span {
    letter-spacing: 0;
}

.ad-showcase-card strong,
.visual-gallery-card strong,
.showcase-card strong,
.topic-card h3,
.portal-banner strong,
.subscribe-band strong {
    max-width: min(100%, 680px);
}

.subscribe-band .email-subscription,
.subscribe-band .subscribe-result {
    min-width: 0;
}

.subscribe-band .subscribe-result {
    overflow-wrap: anywhere;
}

.article-body {
    overflow-wrap: break-word;
}

.article-body table {
    width: 100%;
}

.portal-footer {
    margin-top: 18px;
}

@media (min-width: 981px) {
    .site-header-inner {
        display: grid;
        grid-template-columns: minmax(260px, .9fr) minmax(300px, 420px) auto;
        align-items: center;
    }

    .brand-block {
        justify-self: start;
    }

    .search-form {
        justify-self: center;
    }

    .portal-entry-link {
        justify-self: end;
    }

    .home-hero-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(320px, .7fr);
    }
}

@media (max-width: 980px) {
    .hero-image {
        min-height: 0;
    }

    .home-rank-panel .rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 14px;
    }

    .home-rank-panel .rank-list li {
        min-height: 64px;
    }

    .category-content,
    .article-shell {
        gap: 18px;
    }

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

    .sidebar .ad-container,
    .sidebar .sidebar-widget:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 95;
    }

    .site-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .brand-block {
        gap: 10px;
    }

    .mobile-nav-toggle {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .site-nav {
        overscroll-behavior: contain;
    }

    body.portal-nav-open .site-nav {
        max-height: calc(100svh - var(--portal-header-height) - 24px);
    }
}

@media (max-width: 680px) {
    body {
        background: #f6f8fb;
    }

    .wrap {
        width: min(100% - 20px, 1180px);
    }

    .site-header-inner {
        padding: 12px 0;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        object-fit: cover;
    }

    .brand-name {
        line-height: 1.12;
    }

    .search-form {
        border-radius: 10px;
    }

    .search-form input {
        padding: 12px;
    }

    .search-form button {
        min-width: 78px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .portal-entry-link {
        border-radius: 10px;
    }

    .site-nav {
        left: 10px !important;
        right: 10px !important;
        top: calc(var(--portal-header-height) + 8px) !important;
        border-radius: 14px;
    }

    .site-nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .site-nav a {
        min-height: 44px;
        padding: 10px 8px;
        font-size: 14px;
    }

    .hero-content {
        padding: 18px;
    }

    .hero-title {
        font-size: 22px;
        line-height: 1.28;
    }

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

    .home-rank-panel .rank-list {
        grid-template-columns: 1fr;
    }

    .section-title {
        line-height: 1.25;
    }

    .news-card-media,
    .category-card-media,
    .result-image {
        aspect-ratio: 16 / 10;
    }

    .category-card-media img,
    .result-image img {
        min-height: 0;
    }

    .ad-showcase-card,
    .showcase-card,
    .visual-gallery-card,
    .topic-card {
        min-height: 230px;
    }

    .ad-showcase-card div,
    .showcase-card div,
    .visual-gallery-card div {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .ad-showcase-card strong,
    .showcase-card strong,
    .visual-gallery-card strong,
    .topic-card h3 {
        font-size: 19px;
    }

    .portal-banner,
    .subscribe-band {
        padding: 18px;
        border-radius: 14px;
    }

    .subscribe-band .email-subscription {
        gap: 8px;
    }

    .article-pad,
    .main-content,
    .sidebar-widget,
    .side-card {
        padding: 16px;
    }

    .sidebar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sidebar .ad-container,
    .sidebar .sidebar-widget:last-child {
        grid-column: auto;
    }

    .sidebar-widget h2 {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .popular-articles,
    .related-content,
    .latest-posts {
        gap: 9px;
    }

    .popular-articles li,
    .related-content li,
    .latest-posts li {
        padding-bottom: 9px;
    }

    .tag-cloud a {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .wrap {
        width: min(100% - 16px, 1180px);
    }

    .brand-name {
        font-size: 21px;
    }

    .brand-tagline {
        display: none;
    }

    .site-nav ul {
        grid-template-columns: 1fr;
    }

    .hero-title,
    .article-headline {
        font-size: 21px !important;
    }

    .news-card-body,
    .category-card a,
    .result-item {
        padding: 12px;
    }

    .ad-showcase-card,
    .showcase-card,
    .visual-gallery-card,
    .topic-card {
        min-height: 210px;
    }

    .portal-banner strong,
    .subscribe-band strong {
        font-size: 20px;
        line-height: 1.36;
    }
}

/* Article reading finish pass */
.article-shell {
    grid-template-columns: minmax(0, 850px) minmax(280px, 320px);
}

.article-main {
    isolation: isolate;
}

.article-cover {
    max-height: 520px;
}

.article-body {
    text-align: left;
    text-wrap: pretty;
}

.article-body > :where(p, ul, ol, blockquote, table, figure, h2, h3, h4) {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.article-body p:empty {
    display: none;
}

.article-body ul,
.article-body ol {
    padding-left: 1.55em;
    margin-top: 0;
    margin-bottom: 1.1em;
}

.article-body li + li {
    margin-top: .42em;
}

.article-body a {
    color: #0b766f;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-body figure {
    width: 100%;
}

.article-body figure img {
    margin-bottom: 8px;
}

.article-body figcaption {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.article-body img {
    width: auto;
    max-height: 720px;
}

.article-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 12px;
    background: #e8eef6;
}

.article-tags {
    align-items: center;
}

.side-card .article-list li {
    display: grid;
    gap: 5px;
    padding: 12px 6px;
    border-radius: 10px;
}

.side-card .article-list li:hover {
    background: #f8fafc;
}

@media (max-width: 980px) {
    .article-shell {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .article-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .article-side .editor-pick {
        grid-column: 1 / -1;
    }

    .article-cover {
        aspect-ratio: 16 / 8.8;
        max-height: none;
    }
}

@media (max-width: 680px) {
    .article-shell {
        gap: 12px;
    }

    .article-main,
    .side-card {
        border-radius: 14px;
    }

    .article-cover {
        aspect-ratio: 16 / 10.5;
    }

    .article-pad {
        padding: 16px;
    }

    .breadcrumb {
        gap: 6px;
        margin-bottom: 12px;
        font-size: 13px;
    }

    .article-headline {
        font-size: 24px;
        line-height: 1.3;
    }

    .article-byline {
        gap: 7px;
        margin: 13px 0 18px;
    }

    .article-summary {
        margin-bottom: 18px;
        padding: 14px;
        font-size: 15px;
        line-height: 1.78;
    }

    .article-body {
        font-size: 16.5px;
        line-height: 1.9;
    }

    .article-body p {
        margin-bottom: 1em;
    }

    .article-body h2 {
        font-size: 21px;
    }

    .article-body h3 {
        font-size: 19px;
    }

    .article-body img {
        margin: 18px auto;
        border-radius: 10px;
        box-shadow: 0 10px 24px rgba(15,23,42,.08);
    }

    .article-body table {
        margin: 16px 0;
        font-size: 14px;
    }

    .article-tags {
        margin-top: 22px;
        padding-top: 16px;
    }

    .article-side {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .article-side .editor-pick {
        grid-column: auto;
    }

    .side-card h2 {
        font-size: 18px;
    }

    .side-card .article-title a {
        -webkit-line-clamp: 3;
    }

    .editor-pick .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .article-pad,
    .side-card {
        padding: 14px;
    }

    .article-cover {
        aspect-ratio: 4 / 3;
    }

    .article-body {
        font-size: 16px;
        line-height: 1.86;
    }

    .article-tag {
        flex: 1 1 auto;
        text-align: center;
    }

    .side-card .article-list li {
        padding: 10px 0;
    }
}

/* Homepage density refinement */
.hero-content {
    gap: 13px;
}

.hero-summary {
    -webkit-line-clamp: 6;
}

.hero-brief-block {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #dfe9f3;
}

.hero-brief-label {
    margin-bottom: 9px;
    color: #0b766f;
    font-size: 13px;
    font-weight: 800;
}

.hero-brief-list {
    display: grid;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-brief-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid #dfe8f1;
    border-radius: 10px;
    background: rgba(255,255,255,.72);
}

.hero-brief-list a {
    color: #142033;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-brief-list span {
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.home-news-panel,
.home-editor-panel {
    display: flex;
    flex-direction: column;
}

.home-editor-panel > .summary {
    margin-bottom: 12px;
    line-height: 1.75;
}

.home-filled-list {
    flex: 1 1 auto;
    display: grid;
    align-content: start;
    gap: 6px;
}

.home-filled-list li {
    min-height: 0;
    padding: 10px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
}

.home-filled-list li.is-featured {
    display: grid;
    gap: 6px;
    margin: 0 0 2px;
    padding: 13px 14px;
    border-color: #dce7f1;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 10px 26px rgba(15,23,42,.045);
}

.home-filled-list .article-title a {
    font-weight: 800;
}

.home-filled-list .mini-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-panel .home-filled-list {
    gap: 7px;
}

.home-editor-panel .home-filled-list {
    gap: 8px;
}

.home-editor-panel .home-filled-list li:not(.is-featured) {
    padding-top: 12px;
    padding-bottom: 12px;
}

@media (max-width: 980px) {
    .hero-brief-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-brief-list li {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 680px) {
    .hero-summary {
        -webkit-line-clamp: 4;
    }

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

    .hero-brief-list li {
        padding: 10px 12px;
    }

    .home-filled-list li.is-featured {
        padding: 12px;
    }

    .home-editor-panel > .summary {
        margin-bottom: 8px;
    }

    .site-header-inner,
    .search-form,
    .hero-card,
    .home-news-panel,
    .home-editor-panel {
        max-width: 100%;
        min-width: 0;
    }

    .search-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 72px;
        overflow: hidden;
    }

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

    .search-form button {
        width: 72px;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-title,
    .hero-title a,
    .hero-summary {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .portal-banner {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        justify-content: stretch;
        gap: 16px;
    }

    .portal-banner .btn {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        height: auto;
        align-self: stretch;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .search-form {
        grid-template-columns: minmax(0, 1fr) 64px;
    }

    .search-form button {
        width: 64px;
        font-size: 14px;
    }
}

/* Article image containment and content-cover preference finish pass */
.article-body img {
    display: block !important;
    width: auto !important;
    max-width: min(100%, 760px) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    clear: both;
}

.article-body p > img,
.article-body figure img {
    max-width: 100% !important;
}

.article-cover {
    object-position: center center;
}

@media (max-width: 680px) {
    .article-body img {
        max-width: 100% !important;
    }
}

@media (max-width: 980px) {
    .article-shell {
        grid-template-columns: minmax(0, 1fr) !important;
        justify-content: stretch;
    }

    .article-main,
    .article-side,
    .article-pad,
    .article-body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* Public display refinement pass: portal density, image states, and responsive polish */
body {
    background:
        linear-gradient(180deg, #f7fafc 0, #eef3f8 42%, #f7fafc 100%);
}

body .site-header {
    backdrop-filter: saturate(1.08) blur(10px);
}

body .brand-block {
    gap: 14px;
}

body .brand-name {
    line-height: 1.05;
}

body .brand-subtitle {
    margin-top: 6px;
}

body .site-nav {
    box-shadow: 0 12px 28px rgba(8, 45, 58, .12);
}

body .site-nav ul {
    justify-content: flex-start;
}

body .site-nav a {
    border-radius: 0;
    white-space: nowrap;
}

body .home-hero-grid {
    grid-template-columns: minmax(0, 2.05fr) minmax(320px, .95fr);
    align-items: start;
    gap: 24px;
}

body .hero-card {
    grid-template-columns: minmax(0, 1.42fr) minmax(330px, .9fr);
    min-height: clamp(500px, 42vw, 660px);
    border-color: #d7e2ee;
    box-shadow: 0 24px 60px rgba(15, 35, 56, .11);
}

body .hero-media-link {
    min-height: clamp(500px, 42vw, 660px);
    background: #dfe8f1;
}

body .hero-image {
    height: 100%;
    object-fit: cover;
    object-position: 50% 44%;
}

body .hero-image.media-wide {
    object-position: 50% 50%;
}

body .hero-image.media-balanced {
    object-position: 50% 42%;
}

body .hero-image.media-portrait {
    object-position: 50% 34%;
}

body .hero-content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4.2vw, 58px);
}

body .hero-title {
    font-size: clamp(28px, 2.55vw, 40px);
    line-height: 1.16;
    text-wrap: balance;
}

body .hero-summary {
    margin-top: 18px;
    font-size: clamp(17px, 1.25vw, 20px);
    line-height: 1.92;
}

body .section {
    padding-block: clamp(30px, 4vw, 58px);
}

body .section-tight {
    padding-block: clamp(20px, 3vw, 40px);
}

body .section-head {
    align-items: end;
    border-bottom: 1px solid #dce5ef;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

body .section-title,
body .main-content > h2,
body .sidebar-widget h2,
body .search-results h2,
body .filters h2,
body .side-card h2 {
    letter-spacing: 0;
    text-wrap: balance;
}

body .news-card,
body .category-card,
body .result-item,
body .side-card,
body .sidebar-widget,
body .main-content,
body .search-results,
body .filters,
body .article-main {
    border-color: #d8e3ee !important;
    box-shadow: 0 18px 44px rgba(15, 35, 56, .075) !important;
}

body .category-card.has-real-image,
body .result-item.has-real-image {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,252,255,.98));
}

body .category-card.is-visual-fallback,
body .result-item.is-visual-fallback {
    background:
        linear-gradient(135deg, rgba(250,252,255,.96), rgba(242,247,252,.98));
}

body .category-card.is-visual-fallback h3,
body .result-item.is-visual-fallback h3 {
    font-size: clamp(18px, 1.25vw, 20px);
}

body .news-card-media,
body .category-card-media,
body .result-image,
body .article-thumb {
    border: 1px solid rgba(216, 227, 238, .82);
}

body .category-card-media img,
body .result-image img,
body .news-card-media img {
    filter: saturate(1.02) contrast(1.01);
}

body img.is-fallback-image {
    filter: saturate(.9) contrast(.98);
}

body .article-shell {
    gap: clamp(22px, 2.8vw, 34px);
}

body .article-cover {
    aspect-ratio: 16 / 7.6 !important;
    max-height: 540px;
}

body .article-pad {
    padding: clamp(24px, 3.5vw, 44px);
}

body .article-headline {
    max-width: 860px;
    text-wrap: balance;
}

body .article-summary {
    max-width: 820px;
}

body .article-body {
    font-size: 18.5px;
    line-height: 1.96;
}

body .article-body img {
    margin-top: 24px !important;
    margin-bottom: 14px !important;
}

body .portal-footer {
    border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 1180px) {
    body .home-hero-grid,
    body .hero-card {
        grid-template-columns: minmax(0, 1fr);
    }

    body .hero-media-link {
        min-height: clamp(300px, 48vw, 520px);
    }

    body .hero-card {
        min-height: 0;
    }
}

@media (max-width: 900px) {
    body .site-nav {
        border: 1px solid #d8e3ee;
        box-shadow: 0 24px 60px rgba(15, 35, 56, .18);
    }

    body.portal-nav-open .site-nav {
        display: block;
    }
}

@media (max-width: 680px) {
    body .section {
        padding-block: 22px;
    }

    body .hero-media-link {
        min-height: 270px;
    }

    body .hero-content {
        padding: 22px;
    }

    body .hero-title {
        font-size: 29px;
    }

    body .category-card-media,
    body .result-image,
    body .news-card-media {
        aspect-ratio: 16 / 10.5;
    }

    body .article-cover {
        aspect-ratio: 4 / 3 !important;
        max-height: none;
    }

    body .article-pad {
        padding: 16px;
    }

    body .article-body {
        font-size: 16.5px;
        line-height: 1.88;
    }
}

/* Public visual density pass: reduce large blank rhythm and make mobile search result-first */
@media (min-width: 1181px) {
    body .hero-card {
        min-height: clamp(410px, 30vw, 500px);
    }

    body .hero-media-link {
        min-height: clamp(410px, 30vw, 500px);
    }

    body .hero-content {
        padding: clamp(28px, 3.3vw, 46px);
    }

    body .hero-title {
        font-size: clamp(28px, 2.45vw, 38px);
        line-height: 1.18;
    }

    body .hero-title a {
        -webkit-line-clamp: 3;
    }

    body .hero-summary {
        font-size: clamp(15px, 1vw, 17px);
        line-height: 1.78;
        -webkit-line-clamp: 3;
    }

    body .home-rank-panel {
        min-height: 0;
    }

    body .home-rank-panel .rank-list li {
        padding-block: 8px;
    }
}

body .hero-brief-block {
    margin-top: clamp(18px, 2vw, 28px);
}

body .section + .section.section-tight {
    padding-top: clamp(18px, 2.8vw, 34px);
}

body #channels.section {
    padding-bottom: clamp(16px, 2vw, 28px);
}

body .home-focus-grid,
body .brand-ribbon,
body .ad-showcase-grid,
body .portal-grid,
body .showcase-grid,
body .visual-gallery-grid {
    min-width: 0;
}

body .home-rank-panel {
    align-self: start;
    height: auto !important;
    min-height: 0 !important;
}

body .home-rank-panel .rank-list {
    align-self: start;
    gap: 0;
}

body .home-rank-panel .rank-list li {
    padding-block: 8px;
}

body .home-rank-panel .rank-list a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
}

body .home-rank-panel .article-meta {
    margin-top: 3px;
    font-size: 12.5px;
}

/* Hero visual fit pass: prevent portrait lead images or long headlines from stretching the first viewport */
@media (min-width: 1181px) {
    body .home-hero-grid {
        align-items: start !important;
        grid-template-columns: minmax(0, 2.12fr) minmax(310px, .88fr);
    }

    body .hero-card {
        grid-template-columns: minmax(0, 1.28fr) minmax(360px, 1fr);
        height: clamp(430px, 31vw, 500px);
        min-height: 0 !important;
    }

    body .hero-media-link {
        height: 100%;
        min-height: 0 !important;
    }

    body .hero-image {
        height: 100%;
        min-height: 0 !important;
    }

    body .hero-content {
        min-height: 0;
        overflow: hidden;
        padding: clamp(26px, 2.85vw, 40px);
    }

    body .hero-title {
        font-size: clamp(25px, 1.8vw, 31px);
        line-height: 1.2;
        margin-bottom: 12px;
    }

    body .hero-title a {
        -webkit-line-clamp: 3;
    }

    body .hero-summary {
        margin-top: 14px;
        font-size: clamp(15px, .96vw, 16.5px);
        line-height: 1.72;
    }

    body .hero-meta-row {
        margin-top: 14px;
    }

    body .hero-brief-block {
        margin-top: 18px;
    }

    body .home-rank-panel {
        align-self: start !important;
        height: auto !important;
        max-height: none !important;
    }
}

@media (max-width: 680px) {
    body .home-hero-grid {
        gap: 16px;
    }

    body .hero-media-link {
        min-height: 236px;
    }

    body .hero-title {
        font-size: 26px;
        line-height: 1.18;
    }

    body .hero-title a {
        -webkit-line-clamp: 3;
    }

    body .hero-summary {
        -webkit-line-clamp: 4;
    }

    body .hero-brief-block {
        margin-top: 14px;
    }

body .search-results-content {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
    }

    body .search-results {
        order: 1;
    }

    body .filters {
        order: 2;
    }
}

/* Homepage resource deck: keep partner resource cards compact, readable and photo-led */
body.home-page .resource-section {
    padding-top: clamp(18px, 2vw, 28px);
    padding-bottom: clamp(18px, 2.2vw, 30px);
}

body.home-page .resource-section .section-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dbe6f1;
}

body.home-page .resource-section .section-desc {
    max-width: 780px;
}

body.home-page .ad-showcase-grid {
    gap: clamp(12px, 1.15vw, 16px);
}

body.home-page .ad-showcase-card {
    min-height: 188px;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15,23,42,.09);
}

body.home-page .ad-showcase-card-wide,
body.home-page .ad-showcase-card:nth-child(2) {
    min-height: 246px;
}

body.home-page .ad-showcase-card::before {
    content: "精选入口";
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    color: #0b766f;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

body.home-page .ad-showcase-card::after {
    background:
        linear-gradient(180deg, rgba(15,23,42,.02) 0%, rgba(15,23,42,.42) 48%, rgba(15,23,42,.84) 100%),
        linear-gradient(90deg, rgba(15,23,42,.62), rgba(15,23,42,.08));
}

body.home-page .ad-showcase-card div {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 10px 12px 11px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15,23,42,.48), rgba(15,23,42,.16));
    backdrop-filter: blur(6px);
}

body.home-page .ad-showcase-card span {
    color: #f7e2e2;
    font-size: 12px;
}

body.home-page .ad-showcase-card strong {
    margin-top: 6px;
    font-size: clamp(17px, 1.2vw, 20px);
    line-height: 1.34;
}

body.home-page .ad-showcase-card-wide strong,
body.home-page .ad-showcase-card:nth-child(2) strong {
    max-width: 620px;
    font-size: clamp(20px, 1.65vw, 25px);
}

@media (max-width: 680px) {
    body.home-page .resource-section {
        padding-top: 16px;
        padding-bottom: 18px;
    }

    body.home-page .resource-section .section-head {
        margin-bottom: 12px;
    }

    body.home-page .ad-showcase-grid {
        gap: 12px;
    }

    body.home-page .ad-showcase-card,
    body.home-page .ad-showcase-card-wide,
    body.home-page .ad-showcase-card:nth-child(2) {
        min-height: 184px !important;
    }

    body.home-page .ad-showcase-card::before {
        top: 12px;
        left: 12px;
    }

    body.home-page .ad-showcase-card div {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 9px 10px 10px;
    }

    body.home-page .ad-showcase-card strong,
    body.home-page .ad-showcase-card-wide strong,
    body.home-page .ad-showcase-card:nth-child(2) strong {
        font-size: 18px;
        line-height: 1.34;
    }
}

/* Homepage news/editors density pass: balance the two middle columns and reduce long blank rhythm */
body.home-page .home-news-grid {
    grid-template-columns: minmax(0, 1.62fr) minmax(340px, .88fr) !important;
    gap: clamp(16px, 1.35vw, 20px) !important;
    align-items: stretch !important;
}

body.home-page .home-news-panel,
body.home-page .home-editor-panel {
    height: 100%;
    border-radius: 14px;
    padding: clamp(18px, 1.7vw, 22px);
}

body.home-page .home-filled-list {
    gap: 7px !important;
}

body.home-page .home-filled-list li {
    gap: 4px !important;
    padding: 10px 12px !important;
    border-radius: 11px !important;
}

body.home-page .home-filled-list li.is-featured {
    padding: 12px 13px !important;
}

body.home-page .home-filled-list li:not(.is-featured) {
    min-height: 56px;
}

body.home-page .home-filled-list .article-title a {
    line-height: 1.36;
}

body.home-page .home-filled-list li:not(.is-featured) .article-title a {
    font-size: clamp(15px, .96vw, 17px);
}

body.home-page .home-filled-list .mini-summary {
    font-size: 13.5px;
    line-height: 1.62;
}

body.home-page .home-editor-panel > .summary {
    margin: 0 0 9px !important;
    padding: 10px 12px;
    border: 1px solid #dfe8f1;
    border-radius: 11px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    line-height: 1.65;
}

body.home-page .home-editor-panel .home-filled-list li:not(.is-featured) {
    min-height: 58px;
}

body.home-page .home-editor-panel .home-filled-list li:not(.is-featured) .article-title a {
    font-size: 15px;
    -webkit-line-clamp: 2;
}

@media (max-width: 980px) {
    body.home-page .home-news-grid {
        grid-template-columns: 1fr !important;
    }

    body.home-page .home-news-panel,
    body.home-page .home-editor-panel {
        height: auto;
    }
}

@media (max-width: 680px) {
    body.home-page .home-filled-list {
        gap: 7px !important;
    }

    body.home-page .home-filled-list li,
    body.home-page .home-filled-list li.is-featured {
        padding: 10px 11px !important;
    }

    body.home-page .home-filled-list li:not(.is-featured),
    body.home-page .home-editor-panel .home-filled-list li:not(.is-featured) {
        min-height: 64px;
    }

    body.home-page .home-filled-list .mini-summary {
        -webkit-line-clamp: 2;
    }
}

/* Listing card fit pass: keep category and search rows visually even across image ratios */
body .category-card a,
body .result-item {
    align-items: stretch !important;
    gap: clamp(14px, 1.4vw, 20px) !important;
}

body .category-card a {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) !important;
    padding: 14px !important;
}

body .result-item {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) !important;
    padding: 14px !important;
}

body .category-card-media,
body .result-image {
    align-self: stretch;
    aspect-ratio: 16 / 10 !important;
    height: clamp(154px, 12vw, 188px) !important;
    min-height: 0 !important;
    border-radius: 12px;
}

body .category-card-media img,
body .result-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: cover;
}

body .category-card-body,
body .result-content {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    gap: 8px;
    min-height: clamp(154px, 12vw, 188px);
}

body .category-card h3,
body .result-content h3 {
    margin: 0 !important;
    font-size: clamp(19px, 1.35vw, 22px) !important;
    line-height: 1.36 !important;
    -webkit-line-clamp: 2;
}

body .category-card p,
body .result-content p {
    margin: 0 !important;
    line-height: 1.7 !important;
    -webkit-line-clamp: 2;
}

body .category-card .article-meta,
body .result-meta {
    align-self: end;
    gap: 6px 8px !important;
    line-height: 1.35;
}

body .category-card .article-meta span,
body .result-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    max-width: 100%;
    padding: 4px 10px;
    border: 1px solid #dce5ef;
    border-radius: 999px;
    background: #f8fbff;
    color: #607086;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    body .category-card a,
    body .result-item {
        grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) !important;
    }

    body .category-card-media,
    body .result-image,
    body .category-card-body,
    body .result-content {
        min-height: 150px;
    }
}

@media (max-width: 680px) {
    body .category-card a,
    body .result-item {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    body .category-card-media,
    body .result-image {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 10.5 !important;
    }

    body .category-card-body,
    body .result-content {
        min-height: 0;
    }

    body .category-card p,
    body .result-content p {
        -webkit-line-clamp: 3;
    }
}

/* Article detail image fit pass: text stays readable while large external images fill the content lane */
body .article-body {
    max-width: 100% !important;
    color: #2f3b4d;
}

body .article-body,
body .article-body * {
    box-sizing: border-box;
}

body .article-body > :where(p, ul, ol, blockquote, table, figure, h2, h3, h4) {
    max-width: min(100%, 760px) !important;
}

body .article-body p {
    color: #344256 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 auto 1.12em !important;
}

body .article-body p:has(> img),
body .article-body figure {
    max-width: 100% !important;
    margin: clamp(22px, 2.6vw, 34px) auto !important;
    text-align: center !important;
    text-indent: 0 !important;
}

body .article-body p:has(> img) + p {
    margin-top: .35em !important;
}

body .article-body img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    border: 1px solid rgba(216, 227, 238, .9);
    border-radius: 14px !important;
    box-shadow: 0 18px 42px rgba(15, 35, 56, .1);
    object-fit: contain !important;
}

body .article-body p > img,
body .article-body figure img {
    max-width: 100% !important;
}

body .article-body .is-fallback-image {
    object-fit: cover !important;
    aspect-ratio: 16 / 10;
    width: 100% !important;
}

body .article-body figcaption,
body .article-body p:has(> img) + p[style*="text-align: center"] {
    color: #66758a !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    text-indent: 0 !important;
}

@media (max-width: 680px) {
    body .article-body > :where(p, ul, ol, blockquote, table, figure, h2, h3, h4),
    body .article-body p:has(> img),
    body .article-body figure {
        max-width: 100% !important;
    }

    body .article-body img {
        border-radius: 10px !important;
        box-shadow: 0 10px 24px rgba(15, 35, 56, .08);
    }
}

/* Article side rail fit pass: keep recommendations useful without overwhelming the reading lane */
body .article-side {
    align-self: start;
    gap: 14px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

body .article-side::-webkit-scrollbar {
    width: 6px;
}

body .article-side::-webkit-scrollbar-thumb {
    background: rgba(96, 112, 134, .26);
    border-radius: 999px;
}

body .side-card {
    padding: 16px !important;
}

body .side-card h2 {
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    font-size: 18px !important;
    line-height: 1.25;
}

body .side-card .article-list {
    gap: 0 !important;
}

body .side-card .article-list li {
    padding: 9px 4px !important;
    border-radius: 8px;
}

body .side-card .article-title a {
    -webkit-line-clamp: 2 !important;
    line-height: 1.42 !important;
    font-size: 15px;
}

body .side-card .article-meta {
    margin-top: 4px !important;
    font-size: 12.5px !important;
}

body .article-side .editor-pick {
    padding: 16px !important;
}

body .article-side .editor-pick p {
    margin-bottom: 12px;
    line-height: 1.65;
}

@media (max-width: 980px) {
    body .article-side {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

/* Mobile public header fit pass: compact brand, search, media entry, and menu controls */
@media (max-width: 680px) {
    body .site-header {
        position: sticky;
        top: 0;
        z-index: 96;
        border-bottom-color: rgba(216, 227, 238, .95);
        box-shadow: 0 10px 30px rgba(15, 35, 56, .08);
    }

    body .site-header-inner {
        grid-template-columns: minmax(0, 1fr) 86px 44px;
        grid-template-areas:
            "brand brand menu"
            "search entry entry";
        gap: 10px;
        align-items: center;
        padding: 10px 0;
    }

    body .brand-block {
        grid-area: brand;
        gap: 10px;
        overflow: hidden;
    }

    body .brand-logo {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        object-fit: contain;
    }

    body .brand-name {
        font-size: clamp(21px, 6vw, 24px);
        line-height: 1.08;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body .brand-tagline {
        font-size: 12.5px;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    body .mobile-nav-toggle {
        grid-area: menu;
        width: 44px;
        height: 44px;
        justify-self: end;
        border-radius: 12px;
    }

    body .search-form {
        grid-area: search;
        grid-template-columns: minmax(0, 1fr) 62px;
        width: 100%;
        border-radius: 12px;
    }

    body .search-form input {
        min-height: 44px;
        padding: 10px 12px;
    }

    body .search-form button {
        width: 62px;
        min-width: 0;
        min-height: 44px;
        padding: 0;
        border-radius: 0;
    }

    body .portal-entry-link {
        grid-area: entry;
        width: 100%;
        min-height: 44px;
        padding: 0 10px;
        border-radius: 12px;
        font-size: 14px;
    }

    body .site-nav {
        left: 10px !important;
        right: 10px !important;
        top: calc(var(--portal-header-height) + 8px) !important;
        border-radius: 16px;
    }

    body .site-nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        padding: 10px;
    }

    body .site-nav a {
        min-height: 46px;
        padding: 10px 8px;
        border-radius: 12px;
        font-size: 14px;
        line-height: 1.25;
    }
}

@media (max-width: 380px) {
    body .site-header-inner {
        grid-template-columns: minmax(0, 1fr) 44px;
        grid-template-areas:
            "brand menu"
            "search search"
            "entry entry";
    }

    body .brand-tagline {
        display: none;
    }

    body .portal-entry-link {
        min-height: 40px;
    }

    body .site-nav ul {
        grid-template-columns: 1fr !important;
    }
}

/* Homepage balance pass: keep the first viewport compact and remove stretched blank columns */
@media (min-width: 1181px) {
    body .home-hero-grid {
        grid-template-columns: minmax(0, 2.22fr) minmax(285px, .78fr) !important;
        gap: 22px !important;
    }

    body .hero-card {
        grid-template-columns: minmax(0, 1.26fr) minmax(380px, .9fr) !important;
        height: clamp(405px, 28vw, 462px) !important;
    }

    body .hero-content {
        padding: clamp(24px, 2.55vw, 36px) clamp(26px, 3vw, 42px) !important;
        justify-content: center !important;
    }

    body .hero-content::before {
        top: clamp(24px, 2vw, 30px) !important;
        left: clamp(26px, 3vw, 42px) !important;
    }

    body .hero-content .kicker {
        margin-top: 0 !important;
        padding-top: 20px !important;
        line-height: 1.2;
    }

    body .hero-title {
        font-size: clamp(22px, 1.58vw, 28px) !important;
        line-height: 1.22 !important;
        margin: 9px 0 10px !important;
    }

    body .hero-title a {
        -webkit-line-clamp: 3 !important;
    }

    body .hero-summary {
        margin-top: 10px !important;
        font-size: clamp(14px, .92vw, 16px) !important;
        line-height: 1.68 !important;
        -webkit-line-clamp: 3 !important;
    }

    body .hero-meta-row {
        margin-top: 12px !important;
        gap: 8px;
    }

    body .hero-pill {
        padding: 4px 9px;
        font-size: 12.5px;
    }

    body .hero-brief-block {
        margin-top: 14px !important;
        padding-top: 12px;
    }

    body .hero-brief-list {
        gap: 7px;
    }

    body .hero-brief-list li {
        min-height: 34px;
        padding: 7px 9px;
    }

    body .home-rank-panel {
        max-height: 462px !important;
        overflow: hidden;
        padding: 18px !important;
    }

    body .home-rank-panel .panel-title {
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }

    body .home-rank-panel .rank-list li {
        padding: 9px 4px !important;
    }

    body .home-rank-panel .rank-list a {
        line-height: 1.42 !important;
    }
}

body .home-news-grid {
    align-items: start !important;
}

body .home-news-panel,
body .home-editor-panel {
    align-self: start !important;
}

body .home-filled-list {
    gap: 9px !important;
}

body .home-filled-list li {
    display: grid !important;
    gap: 5px;
    padding: 12px 14px !important;
    border-color: #dfe8f1 !important;
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    box-shadow: 0 8px 22px rgba(15, 35, 56, .045);
}

body .home-filled-list li:not(.is-featured) {
    min-height: 66px;
    align-content: center;
}

body .home-filled-list li.is-featured {
    padding: 14px 15px !important;
    box-shadow: 0 12px 28px rgba(15, 35, 56, .06);
}

body .home-filled-list .article-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.42;
}

body .home-filled-list li:not(.is-featured) .article-title a {
    font-size: clamp(16px, 1vw, 18px);
}

body .home-filled-list .article-meta {
    margin-top: 0 !important;
    font-size: 12.5px;
}

body .home-editor-panel > .summary {
    margin-bottom: 10px !important;
}

@media (max-width: 680px) {
    body .hero-content .kicker {
        margin-top: 0 !important;
        padding-top: 16px !important;
    }

    body .hero-content::before {
        top: 18px !important;
        left: 22px !important;
    }

    body .hero-title {
        font-size: 24px !important;
        line-height: 1.22 !important;
    }

    body .home-filled-list li {
        padding: 11px 12px !important;
    }
}

/* Homepage long-page card rhythm pass: keep latest cards even and prevent cramped summaries */
body .news-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: clamp(16px, 1.45vw, 22px) !important;
}

body .news-card {
    height: 100%;
    min-height: 0 !important;
}

body .news-card-media {
    aspect-ratio: 16 / 9 !important;
}

body .news-card img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover;
}

body .news-card-body {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 8px !important;
    min-height: 174px !important;
    padding: 15px 16px 16px !important;
}

body .news-card .article-title {
    margin: 0 !important;
}

body .news-card .article-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: clamp(17px, 1.1vw, 19px) !important;
    line-height: 1.36 !important;
}

body .news-card .article-meta {
    font-size: 12.5px !important;
    line-height: 1.35;
}

body .news-card .summary {
    align-self: start;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.72 !important;
    -webkit-line-clamp: 3 !important;
}

@media (max-width: 1180px) {
    body .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 520px) {
    body .news-grid {
        grid-template-columns: 1fr !important;
    }

    body .news-card-body {
        min-height: 0 !important;
    }
}

/* Homepage latest release grid: denser cards with fixed text rhythm across devices */
body.home-page .latest-section {
    padding-top: clamp(22px, 2.5vw, 36px) !important;
}

body.home-page .latest-section .section-head {
    margin-bottom: 14px;
}

body.home-page .latest-section .news-grid {
    gap: clamp(14px, 1.25vw, 18px) !important;
}

body.home-page .latest-section .news-card {
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 35, 56, .075);
}

body.home-page .latest-section .news-card-media {
    aspect-ratio: 16 / 8.6 !important;
}

body.home-page .latest-section .news-card-body {
    min-height: 154px !important;
    padding: 13px 14px 14px !important;
    gap: 7px !important;
}

body.home-page .latest-section .news-card .article-title a {
    font-size: clamp(16px, 1vw, 18px) !important;
    line-height: 1.35 !important;
}

body.home-page .latest-section .news-card .summary {
    font-size: 13.5px !important;
    line-height: 1.62 !important;
    -webkit-line-clamp: 2 !important;
}

@media (max-width: 520px) {
    body.home-page .latest-section .news-card-media {
        aspect-ratio: 16 / 7.6 !important;
    }

    body.home-page .latest-section .news-card-body {
        min-height: 128px !important;
        padding: 12px 13px 13px !important;
        gap: 6px !important;
    }

    body.home-page .latest-section .news-card .article-title a {
        font-size: 17px !important;
        line-height: 1.34 !important;
    }

    body.home-page .latest-section .news-card .summary {
        font-size: 13.5px !important;
        line-height: 1.58 !important;
    }
}

/* Homepage brand/visual entrances: tighter editorial tiles and shorter mobile flow */
body.home-page .brand-showcase-section {
    padding-bottom: clamp(12px, 1.6vw, 22px) !important;
}

body.home-page .visual-entry-section {
    padding-top: clamp(10px, 1.4vw, 18px) !important;
}

body.home-page .brand-showcase-section .section-head {
    margin-bottom: 14px;
}

body.home-page .showcase-grid {
    gap: clamp(14px, 1.25vw, 18px);
}

body.home-page .showcase-card {
    min-height: 238px;
    border-radius: 14px;
}

body.home-page .showcase-card-large {
    min-height: 300px;
}

body.home-page .showcase-card div,
body.home-page .visual-gallery-card div {
    left: 18px;
    right: 18px;
    bottom: 18px;
}

body.home-page .showcase-card strong {
    font-size: clamp(18px, 1.35vw, 22px);
    line-height: 1.34;
}

body.home-page .showcase-card-large strong {
    max-width: 520px;
    font-size: clamp(24px, 1.95vw, 29px);
}

body.home-page .visual-gallery-grid {
    grid-auto-rows: minmax(166px, auto);
    gap: clamp(14px, 1.25vw, 18px);
}

body.home-page .visual-gallery-card {
    min-height: 166px;
    border-radius: 14px;
}

body.home-page .visual-gallery-card-wide {
    min-height: 350px;
}

body.home-page .visual-gallery-card strong {
    font-size: clamp(17px, 1.18vw, 20px);
    line-height: 1.34;
}

body.home-page .visual-gallery-card-wide strong {
    max-width: 520px;
    font-size: clamp(23px, 1.8vw, 28px);
}

@media (max-width: 680px) {
    body.home-page .brand-showcase-section {
        padding-bottom: 10px !important;
    }

    body.home-page .visual-entry-section {
        padding-top: 8px !important;
    }

    body.home-page .brand-showcase-section .showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.home-page .brand-showcase-section .showcase-card-large {
        grid-column: 1 / -1;
        min-height: 186px !important;
    }

    body.home-page .brand-showcase-section .showcase-card:not(.showcase-card-large) {
        min-height: 154px !important;
    }

    body.home-page .showcase-card div,
    body.home-page .visual-gallery-card div {
        left: 13px;
        right: 13px;
        bottom: 13px;
    }

    body.home-page .showcase-card span,
    body.home-page .visual-gallery-card span {
        font-size: 12px;
    }

    body.home-page .showcase-card strong,
    body.home-page .showcase-card-large strong {
        font-size: 17px;
        line-height: 1.3;
    }

    body.home-page .visual-entry-section .visual-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.home-page .visual-entry-section .visual-gallery-card-wide {
        grid-column: 1 / -1;
        min-height: 186px !important;
    }

    body.home-page .visual-entry-section .visual-gallery-card:not(.visual-gallery-card-wide) {
        min-height: 150px !important;
    }

    body.home-page .visual-gallery-card strong,
    body.home-page .visual-gallery-card-wide strong {
        font-size: 16px;
        line-height: 1.32;
    }
}

/* Homepage compact editorial pass: tighter rhythm and a cleaner lead-story text block */
body.home-page main {
    background:
        linear-gradient(180deg, rgba(248, 251, 255, .72), rgba(245, 249, 253, .96) 44%, rgba(241, 247, 252, 1));
}

body.home-page #channels.section {
    padding-top: clamp(22px, 2.2vw, 34px) !important;
    padding-bottom: clamp(12px, 1.5vw, 22px) !important;
}

body.home-page .section {
    padding-block: clamp(22px, 2.8vw, 42px) !important;
}

body.home-page .section-tight {
    padding-block: clamp(12px, 1.8vw, 24px) !important;
}

body.home-page #channels + .section-tight {
    padding-top: 8px !important;
}

body.home-page .topic-strip {
    gap: clamp(12px, 1.4vw, 18px) !important;
}

body.home-page .topic-card {
    min-height: 178px !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 34px rgba(15, 35, 56, .08) !important;
}

body.home-page .topic-card div {
    padding: clamp(18px, 2vw, 24px) !important;
    max-width: 86% !important;
}

body.home-page .topic-card h3 {
    margin-bottom: 8px !important;
    font-size: clamp(22px, 2vw, 28px) !important;
    line-height: 1.22 !important;
}

body.home-page .portal-banner {
    min-height: 128px !important;
    padding: clamp(20px, 2.2vw, 26px) !important;
    border-radius: 16px !important;
}

body.home-page .portal-banner strong {
    max-width: 760px !important;
    font-size: clamp(22px, 2vw, 26px) !important;
    line-height: 1.34 !important;
}

body.home-page .portal-banner .btn {
    min-width: 126px !important;
    min-height: 46px !important;
}

body.home-page .subscribe-band {
    min-height: 136px !important;
    padding: clamp(20px, 2.2vw, 26px) !important;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 500px) !important;
    border-radius: 16px !important;
}

body.home-page .subscribe-band strong {
    max-width: 720px !important;
    font-size: clamp(22px, 2vw, 26px) !important;
    line-height: 1.34 !important;
}

body.home-page .subscribe-band .email-subscription {
    width: 100% !important;
    max-width: 500px !important;
    justify-self: end !important;
}

body.home-page .feature-band {
    margin: 8px 0 0 !important;
    padding: 30px 0 32px !important;
}

body.home-page .feature-band .section-head {
    margin-bottom: 16px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .16) !important;
}

body.home-page .feature-band .section-desc {
    max-width: 680px !important;
    color: rgba(226, 232, 240, .74) !important;
}

body.home-page .process-grid {
    gap: 12px !important;
}

body.home-page .process-step {
    min-height: 118px !important;
    padding: 15px !important;
    border-radius: 12px !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    align-content: start !important;
}

body.home-page .process-no {
    grid-row: 1 / span 2 !important;
    margin: 0 !important;
}

body.home-page .process-step h3 {
    margin: 0 0 5px !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
}

body.home-page .process-step p {
    font-size: 13px !important;
    line-height: 1.55 !important;
}

body.home-page .portal-footer {
    margin-top: 0 !important;
    padding: 24px 0 !important;
}

body.home-page .footer-grid {
    gap: 20px !important;
}

@media (max-width: 680px) {
    body.home-page .topic-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.home-page .topic-card {
        min-height: 150px !important;
    }

    body.home-page .topic-card div {
        padding: 16px !important;
        max-width: 100% !important;
    }

    body.home-page .topic-card h3 {
        font-size: 20px !important;
    }

    body.home-page .topic-card p {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    body.home-page .portal-banner {
        min-height: 152px !important;
        padding: 18px !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }

    body.home-page .portal-banner strong {
        font-size: 22px !important;
    }

    body.home-page .portal-banner .btn {
        width: 100% !important;
        min-height: 44px !important;
    }

    body.home-page .subscribe-band {
        min-height: 0 !important;
        padding: 18px !important;
        grid-template-columns: 1fr !important;
        gap: 13px !important;
    }

    body.home-page .subscribe-band strong {
        font-size: 22px !important;
    }

    body.home-page .subscribe-band .email-subscription {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 78px !important;
        gap: 8px !important;
        max-width: none !important;
        justify-self: stretch !important;
    }

    body.home-page .subscribe-band .email-subscription input,
    body.home-page .subscribe-band .email-subscription button {
        min-height: 44px !important;
    }

    body.home-page .subscribe-band .email-subscription button {
        width: auto !important;
        min-width: 0 !important;
        padding-inline: 12px !important;
    }

    body.home-page .subscribe-band .subscribe-result {
        min-height: 16px !important;
    }

    body.home-page .feature-band {
        padding: 24px 0 !important;
    }

    body.home-page .feature-band .section-head {
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
        gap: 6px !important;
    }

    body.home-page .feature-band .section-desc {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    body.home-page .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.home-page .process-step {
        min-height: 128px !important;
        padding: 13px !important;
        display: block !important;
    }

    body.home-page .process-no {
        width: 28px !important;
        height: 28px !important;
        margin-bottom: 8px !important;
        font-size: 13px !important;
    }

    body.home-page .process-step h3 {
        font-size: 16px !important;
    }

    body.home-page .portal-footer {
        padding: 22px 0 !important;
    }

    body.home-page .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px 18px !important;
    }

    body.home-page .footer-grid > div:first-child {
        grid-column: 1 / -1 !important;
    }

    body.home-page .footer-grid > div {
        font-size: 13px !important;
        line-height: 1.75 !important;
    }
}

body.home-page .home-hero-grid {
    gap: clamp(16px, 1.6vw, 22px) !important;
}

body.home-page .hero-card,
body.home-page .home-rank-panel,
body.home-page .focus-card,
body.home-page .brand-ribbon-item,
body.home-page .brand-ribbon-main {
    box-shadow: 0 14px 34px rgba(15, 35, 56, .07) !important;
}

body.home-page .hero-content {
    justify-content: flex-start !important;
    align-content: start !important;
    gap: 0;
    min-width: 0;
}

body.home-page .hero-content::before {
    display: none !important;
}

body.home-page .hero-content .kicker {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #bd2630;
    font-size: 13px;
    line-height: 1;
}

body.home-page .hero-content .kicker::before {
    content: "";
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #bd2630, #0b766f);
    flex: 0 0 auto;
}

body.home-page .hero-title {
    margin: 0 0 10px !important;
    max-width: 100%;
    text-wrap: auto;
}

body.home-page .hero-title a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
}

body.home-page .hero-summary {
    margin: 0 0 12px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    min-height: calc(1.62em * 2);
    max-height: calc(1.62em * 3);
    max-width: 27em;
    color: #59687b;
    overflow: hidden !important;
}

body.home-page .hero-meta-row {
    margin-top: 0 !important;
    padding-top: 4px;
}

body.home-page .hero-brief-block {
    margin-top: auto !important;
    padding-top: 12px !important;
}

body.home-page .hero-brief-label {
    margin-bottom: 8px;
}

body.home-page .home-focus-grid {
    gap: clamp(14px, 1.45vw, 18px) !important;
}

body.home-page .focus-card {
    min-height: 118px !important;
    padding: 20px 22px !important;
}

body.home-page .brand-ribbon {
    gap: clamp(14px, 1.5vw, 20px) !important;
}

body.home-page .brand-ribbon-main,
body.home-page .brand-ribbon-item {
    min-height: 118px !important;
}

@media (min-width: 1181px) {
    body.home-page .hero-card {
        grid-template-columns: minmax(0, 1.42fr) minmax(360px, .82fr) !important;
        height: clamp(400px, 26.5vw, 438px) !important;
    }

    body.home-page .hero-media-link {
        height: 100% !important;
    }

    body.home-page .hero-content {
        padding: clamp(22px, 2.1vw, 30px) clamp(24px, 2.45vw, 34px) !important;
    }

    body.home-page .hero-title {
        font-size: clamp(22px, 1.48vw, 27px) !important;
        line-height: 1.2 !important;
    }

    body.home-page .hero-summary {
        font-size: 14.5px !important;
        line-height: 1.66 !important;
        -webkit-line-clamp: 2 !important;
        min-height: calc(1.66em * 2);
        max-height: calc(1.66em * 2);
    }

    body.home-page .home-rank-panel {
        max-height: 438px !important;
        padding: 18px 18px 16px !important;
    }
}

@media (max-width: 680px) {
    body.home-page #channels.section {
        padding-top: 16px !important;
    }

    body.home-page .hero-content .kicker {
        margin-bottom: 10px !important;
    }

    body.home-page .hero-title {
        max-width: none;
    }

    body.home-page .hero-summary {
        -webkit-line-clamp: 3 !important;
    }
}

/* Mobile homepage containment pass: prevent header/lead story horizontal clipping */
@media (max-width: 680px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body .wrap {
        width: min(100% - 20px, 1180px) !important;
        max-width: calc(100% - 20px) !important;
    }

    body .site-header-inner {
        grid-template-columns: minmax(0, 1fr) 44px !important;
        grid-template-areas:
            "brand menu"
            "search search"
            "entry entry" !important;
        gap: 10px !important;
    }

    body .brand-block,
    body .search-form,
    body .portal-entry-link {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body .search-form {
        grid-template-columns: minmax(0, 1fr) 62px !important;
        width: 100% !important;
    }

    body .portal-entry-link {
        justify-self: stretch !important;
        width: 100% !important;
    }

    body.home-page .home-hero-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    body.home-page .hero-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    body.home-page .hero-media-link {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 10 !important;
    }

    body.home-page .hero-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body.home-page .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 18px 20px 20px !important;
        overflow: visible !important;
    }

    body.home-page .hero-title {
        max-width: 100% !important;
        font-size: clamp(21px, 5.4vw, 25px) !important;
        line-height: 1.22 !important;
        margin-bottom: 10px !important;
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        line-break: anywhere;
    }

    body.home-page .hero-title a {
        -webkit-line-clamp: 3 !important;
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        line-break: anywhere;
    }

    body.home-page .hero-summary {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;
        min-height: 0 !important;
        max-height: none !important;
        max-width: 100% !important;
        font-size: 15px !important;
        line-height: 1.7 !important;
        margin-bottom: 14px !important;
    }

    body.home-page .hero-meta-row {
        gap: 8px !important;
        padding-top: 0 !important;
    }

    body.home-page .hero-brief-block {
        margin-top: 14px !important;
        padding-top: 12px !important;
    }

    body.home-page .hero-brief-list {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.home-page .home-rank-panel {
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
    }
}

@media (max-width: 420px) {
    body .wrap {
        width: min(100% - 18px, 1180px) !important;
        max-width: calc(100% - 18px) !important;
    }

    body .brand-logo {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }

    body .brand-name {
        font-size: 21px !important;
        line-height: 1.1 !important;
    }

    body .brand-tagline {
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    body .search-form {
        grid-template-columns: minmax(0, 1fr) 58px !important;
    }

    body .search-form input {
        font-size: 14px !important;
        min-width: 0 !important;
    }

    body .search-form button {
        width: 58px !important;
        font-size: 14px !important;
        padding-inline: 0 !important;
    }

    body.home-page .hero-content {
        padding: 16px 18px 18px !important;
    }

    body.home-page .hero-title {
        font-size: clamp(20px, 5.2vw, 23px) !important;
        line-height: 1.24 !important;
    }
}

/* Article ultra-tall image pass: keep infographic WebP readable without breaking the page rhythm */
body .article-cover.media-portrait,
body .article-cover.media-ultra-tall {
    background:
        linear-gradient(135deg, rgba(232, 242, 250, .92), rgba(248, 251, 252, .98)),
        repeating-linear-gradient(135deg, rgba(11, 118, 111, .06) 0 12px, rgba(189, 40, 48, .04) 12px 24px) !important;
    object-position: center top !important;
}

body .article-cover.media-ultra-tall {
    aspect-ratio: 16 / 10.5 !important;
    max-height: 470px !important;
    object-fit: cover !important;
}

body .article-body p:has(> img.media-ultra-tall),
body .article-body figure:has(img.media-ultra-tall) {
    max-width: min(100%, 720px) !important;
    margin-block: clamp(18px, 2.2vw, 28px) !important;
}

body .article-body img.media-ultra-tall {
    width: min(100%, 680px) !important;
    max-width: 100% !important;
    height: auto !important;
    margin-inline: auto !important;
    object-fit: contain !important;
    object-position: center top !important;
    border: 1px solid rgba(198, 215, 230, .95) !important;
    box-shadow: 0 18px 38px rgba(15, 35, 56, .12) !important;
}

@media (max-width: 680px) {
    body .article-cover.media-ultra-tall {
        aspect-ratio: 16 / 11.2 !important;
        max-height: 285px !important;
    }

    body .article-body p:has(> img.media-ultra-tall),
    body .article-body figure:has(img.media-ultra-tall) {
        max-width: 100% !important;
    }

    body .article-body img.media-ultra-tall {
        width: 100% !important;
        border-radius: 10px !important;
        box-shadow: 0 10px 24px rgba(15, 35, 56, .09) !important;
    }
}

/* Article title polish: prefer semantic Chinese breaks and a steadier headline rhythm */
body .article-headline {
    max-width: min(100%, 740px) !important;
    margin-bottom: clamp(14px, 1.8vw, 18px) !important;
    font-size: clamp(30px, 2.85vw, 36px) !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
    text-wrap: balance !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    line-break: strict !important;
}

body .article-byline {
    margin-top: 0 !important;
    margin-bottom: clamp(18px, 2.2vw, 24px) !important;
}

@media (max-width: 680px) {
    body .article-headline {
        max-width: 100% !important;
        font-size: clamp(23px, 6.1vw, 27px) !important;
        line-height: 1.24 !important;
        margin-bottom: 13px !important;
    }
}

@media (max-width: 420px) {
    body .article-headline {
        font-size: clamp(21px, 6vw, 24px) !important;
        line-height: 1.26 !important;
    }
}

/* Homepage lead polish: fuller first viewport without loose headline/sidebar rhythm */
@media (min-width: 1181px) {
    body.home-page #channels.section {
        padding-top: clamp(24px, 2.5vw, 36px) !important;
        padding-bottom: 10px !important;
    }

    body.home-page .home-hero-grid {
        grid-template-columns: minmax(0, 2.25fr) minmax(300px, .75fr) !important;
        gap: clamp(18px, 1.7vw, 24px) !important;
        align-items: stretch !important;
    }

    body.home-page .hero-card {
        grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr) !important;
        height: clamp(432px, 29.5vw, 452px) !important;
    }

    body.home-page .hero-content {
        padding: clamp(24px, 2.25vw, 32px) clamp(26px, 2.6vw, 38px) !important;
    }

    body.home-page .hero-title {
        max-width: 11.5em !important;
        font-size: clamp(25px, 1.62vw, 30px) !important;
        line-height: 1.16 !important;
        letter-spacing: 0 !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        text-wrap: balance !important;
    }

    body.home-page .hero-summary {
        max-width: 30em !important;
        font-size: 15px !important;
        line-height: 1.68 !important;
        -webkit-line-clamp: 2 !important;
    }

    body.home-page .hero-brief-block {
        margin-top: auto !important;
        padding-top: 11px !important;
    }

    body.home-page .hero-brief-list {
        gap: 7px !important;
    }

    body.home-page .hero-brief-list li {
        padding: 7px 9px !important;
    }

    body.home-page .home-rank-panel {
        align-self: stretch !important;
        max-height: 452px !important;
        padding: 17px 18px 15px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body.home-page .home-rank-panel .rank-list {
        display: grid !important;
        grid-template-rows: repeat(5, minmax(0, 1fr)) !important;
        flex: 1 1 auto !important;
    }

    body.home-page .home-rank-panel .rank-list li {
        min-height: 0 !important;
        padding-block: 8px !important;
    }
}

@media (max-width: 680px) {
    body.home-page .hero-title,
    body.home-page .hero-title a {
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        line-break: strict !important;
    }

    body.home-page .hero-brief-list li:nth-child(n+3) {
        display: none !important;
    }
}

@media (min-width: 1181px) {
    body.home-page .hero-title {
        max-width: 100% !important;
        font-size: clamp(23px, 1.45vw, 27px) !important;
        line-height: 1.18 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        text-wrap: pretty !important;
    }

    body.home-page .hero-title a {
        -webkit-line-clamp: 4 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }
}
