* {
    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;
    }
}
