:root {
    --ink: #101828;
    --muted: #667085;
    --brand: #1d4ed8;
    --accent: #f97316;
    --bg: #f7f7f5;
    --card: #ffffff;
    --line: #e4e7ec;
    --shadow: 0 12px 26px rgba(16, 24, 40, 0.08);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Source Sans 3', sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.6;
}

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

.container {
    width: min(1160px, 90vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(90deg, #0b4aa6, #0c62d6);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: white;
    color: #0b4aa6;
    color: white;
    font-size: 14px;
    letter-spacing: 1px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    background: white;
    padding: 4px;
}

.brand-text {
    font-size: 22px;
    font-weight: 700;
}

.brand-tag {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 22px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.menu-toggle {
    display: none;
}

.menu-toggle {
    width: 44px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: #fff;
}

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.nav a:hover {
    color: #fff;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    font-size: 14px;
    opacity: 0.95;
}

.nav-icon-image {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
}

.cta {
    background: var(--brand);
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}

.cta.ghost {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.hero-minimal {
    padding: 60px 0 30px;
}

.hero-minimal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: end;
}

.hero-minimal h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    margin: 10px 0 12px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
}

.subtitle {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 18px;
}

.search-bar {
    display: flex;
    gap: 10px;
    background: white;
    border-radius: 999px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.search-bar.minimal {
    box-shadow: none;
    border-radius: 14px;
}

.search-bar.wide {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #d0d5dd;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 16px;
    outline: none;
}

.search-bar button {
    border: none;
    background: var(--accent);
    color: white;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.hero-slab {
    padding: 28px 0 18px;
    background: linear-gradient(180deg, #eaf2ff, #f7f7f5);
    border-bottom: 1px solid var(--line);
}

.hero-search {
    padding: 10px 0 12px;
    display: grid;
    gap: 14px;
}

.hero-title h1,
.hero-title p {
    display: none;
}

.updates-bar {
    background: var(--updates-bg, #fff3e7);
    border-bottom: 1px solid #f5d9c1;
}

.updates-track {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
}

.updates-label {
    font-weight: 700;
    color: var(--updates-label-text, var(--accent));
    background: var(--updates-label-bg, #fff7ed);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    font-size: 14px;
}

.updates-marquee {
    overflow: hidden;
    position: relative;
    flex: 1;
}

.updates-items {
    display: inline-flex;
    gap: 24px;
    white-space: nowrap;
    animation: marquee 24s linear infinite;
}

.updates-items a {
    color: var(--updates-item-text, #7c2d12);
    font-weight: 600;
    font-size: var(--updates-font-size, 17px);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.board {
    padding: 26px 0 18px;
}

.board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--board-title-bg, #0b4aa6);
    color: var(--board-title-color, #ffffff);
    margin-bottom: 14px;
}

.board-header h2 {
    color: inherit;
    font-size: 20px;
    margin: 0;
}

.board-header .link {
    color: inherit;
}

.board-tabs,
.tab-pill {
    display: none;
}

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

.board-col {
    background: var(--board-column-bg, white);
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 12px;
    box-shadow: var(--shadow);
}

.board-col-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    background: var(--board-column-title-bg, transparent);
}

.board-col-body {
    display: grid;
    gap: 10px;
}

.board-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    background: var(--board-card-bg, #f8fafc);
}

.board-card-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
    align-items: start;
}

.board-card .dot {
    margin-top: 6px;
}

.board-card-content {
    min-width: 0;
}

.board-card-actions {
    padding-left: 22px;
}

.board-card-actions .btn.tiny {
    display: inline-flex;
    justify-self: start;
    max-width: 100%;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    align-items: stretch;
    gap: 12px;
    padding: 18px 0 8px;
}

.category-card {
    min-height: 118px;
    color: white;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.category-card h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.category-card p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.category-arrow {
    font-size: 18px;
}

.dual-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    padding: 12px 0 22px;
}

.dual-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.dual-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -16px -16px 12px;
    padding: 12px 16px;
    border-radius: 16px 16px 0 0;
    background: var(--dual-title-bg, #0b4aa6);
    color: var(--dual-title-color, #ffffff);
}

.dual-head h3 {
    color: inherit;
    font-size: var(--dual-title-size, 24px);
    margin: 0;
}

.dual-list {
    display: grid;
    gap: 10px;
    flex: 1;
}

.dual-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: #f8fafc;
}

.dual-item small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.dual-item a {
    font-size: 17px;
    font-weight: 700;
}

.banner-slider-shell {
    padding: 18px 0 10px;
}

.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    background: #dbeafe;
}

.banner-slider-track {
    position: relative;
    height: clamp(280px, 38vw, 440px);
}

.banner-slide {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.banner-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.banner-slide-media {
    height: 100%;
}

.banner-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.banner-slide-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    gap: 12px;
    padding: 36px;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.78));
}

.banner-slide-overlay h2,
.banner-slide-overlay p {
    margin: 0;
    max-width: 640px;
}

.banner-slide-overlay h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}

.banner-slide-overlay p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
}

.banner-slide-overlay .btn {
    width: fit-content;
    background: #fff;
    color: #0f172a;
}

.banner-slider-dots {
    position: absolute;
    right: 24px;
    bottom: 22px;
    display: flex;
    gap: 8px;
}

.banner-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.banner-slider-dot.is-active {
    background: #fff;
    transform: scale(1.15);
}

.image-strip-section,
.image-grid-section {
    padding: 12px 0 24px;
}

.image-strip-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 280px);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.image-strip-card,
.home-image-grid-card {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-strip-card {
    scroll-snap-align: start;
}

.image-strip-card img,
.home-image-grid-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.image-strip-card img {
    height: 160px;
}

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

.home-image-grid-card img {
    height: 156px;
}

.quick-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 12px;
}

.quick-pill {
    color: white;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.board-card a {
    font-weight: 600;
    font-size: 14px;
}

.board-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.split-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding: 10px 0 20px;
}

.panel {
    border-radius: 16px;
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 110px;
    box-shadow: var(--shadow);
}

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

.panel.blue {
    background: linear-gradient(135deg, #1d4ed8, #60a5fa);
}

.panel.green {
    background: linear-gradient(135deg, #15803d, #34d399);
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding-bottom: 30px;
}

.tile {
    border-radius: 16px;
    padding: 20px;
    color: white;
    min-height: 140px;
    display: grid;
    gap: 8px;
    box-shadow: var(--shadow);
}

.tile h4 {
    font-size: 16px;
}

.highlight-board {
    padding: 10px 0 26px;
}

.highlight-head {
    display: grid;
    justify-items: center;
    margin-bottom: 18px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow);
}

.highlight-post-link {
    display: flex;
    align-items: flex-start;
    padding: 14px 18px;
    min-height: 132px;
    background: var(--highlight-bg, #dbeafe);
    color: var(--highlight-text, #0f172a);
    font-weight: 700;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.38;
    text-wrap: balance;
}

.highlight-post-link:hover {
    filter: brightness(1.04);
}

.highlight-empty,
.highlight-empty-board {
    display: grid;
    place-items: center;
    min-height: 132px;
    padding: 14px 16px;
    background: #e2e8f0;
    font-size: 14px;
    color: #475569;
}

.category-section {
    padding: 20px 0;
}

.category-hero-shell {
    background: linear-gradient(180deg, #ecf3ff, #f7f7f5);
    border-bottom: 1px solid var(--line);
}

.category-hero {
    padding: 34px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
}

.category-hero h1 {
    margin: 12px 0 10px;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(30px, 4vw, 42px);
}

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

.search-page-bar {
    margin-bottom: 24px;
}

.search-post-image img,
.search-post-image .thumb-fallback {
    height: 180px;
    min-height: 180px;
}

.search-empty-state {
    padding: 36px 24px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: #f8fafc;
    color: var(--muted);
    text-align: center;
    font-size: 16px;
}

.category-hero-stats {
    min-width: 160px;
    padding: 18px 20px;
    background: white;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    text-align: center;
}

.category-hero-stats strong {
    font-size: 32px;
    line-height: 1;
}

.category-intro,
.prose-card {
    background: white;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

.category-section-head {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--heading-bg);
    color: var(--heading-text);
    margin-bottom: 18px;
}

.category-section-head h2,
.category-section-head span {
    color: inherit;
}

.category-post-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), minmax(220px, 1fr));
    gap: 16px;
}

.category-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.category-post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.category-post-image .thumb-fallback {
    width: 100%;
    height: 220px;
    min-height: 220px;
    object-fit: cover;
}

.category-post-body {
    padding: 16px;
    display: grid;
    gap: 10px;
}

.category-post-body h4 {
    margin: 0;
    font-size: 15px;
}

.category-post-body p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-stack-list,
.category-compact-list,
.detail-section-list {
    display: grid;
    gap: 18px;
}

.category-stack-card,
.category-compact-card,
.detail-section-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.category-stack-card {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    overflow: hidden;
}

.category-stack-image img,
.category-stack-image .thumb-fallback {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.category-stack-body,
.detail-section-body {
    padding: 20px;
}

.category-stack-body h3,
.category-compact-copy h3,
.detail-section-head h2 {
    margin: 0 0 10px;
}

.category-compact-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 18px 20px;
}

.category-compact-copy p {
    margin: 0;
    color: var(--muted);
}

.category-compact-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
    min-width: 140px;
}

.detail-section-head {
    background: var(--heading-bg);
    color: var(--heading-text);
    padding: 16px 20px;
    border-radius: 18px 18px 0 0;
}

.detail-section-head h2 {
    color: inherit;
}

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

.content-main {
    display: grid;
    gap: 20px;
}

.content-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 92px;
}

.sidebar-detail-list {
    gap: 16px;
}

.post-shell {
    display: grid;
    gap: 14px;
}

.post-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
}

.post-breadcrumbs a:hover {
    color: var(--brand);
}

.text-block-card {
    background: linear-gradient(180deg, var(--block-card, #e8f0ff), #ffffff 110px);
}

.sidebar-text-block .detail-section-body {
    padding: 18px;
}

.post-overview-card {
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.75), transparent 28%),
        linear-gradient(180deg, #ffffff, #f9fbff);
}

.post-overview-head {
    padding: 24px 24px 20px;
}

.post-overview-head h1 {
    margin: 14px 0 10px;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.12;
}

.post-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.post-meta-strip span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #dbe5f1;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.post-overview-media img,
.post-thumb-fallback {
    width: 100%;
    min-height: 320px;
    max-height: 440px;
    object-fit: cover;
    border-radius: 0 0 var(--radius) var(--radius);
}

.post-thumb-fallback {
    height: 320px;
    font-size: 36px;
}

.post-sidebar-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.post-sidebar-card h3,
.post-sidebar-card p {
    margin: 0;
}

.post-sidebar-label {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f0ff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.post-sidebar-cta {
    background: linear-gradient(180deg, #eff6ff, #ffffff);
    border-color: #cfe0ff;
}

.post-sidebar-category {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.post-sidebar-link {
    justify-content: center;
}

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

.sidebar-tag-list span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
}

.detail-section-body > :first-child {
    margin-top: 0;
}

.detail-section-body > :last-child {
    margin-bottom: 0;
}

.tile.blue {
    background: linear-gradient(135deg, #0f4c81, #3b82f6);
}

.tile.teal {
    background: linear-gradient(135deg, #0f766e, #22d3ee);
}

.tile.orange {
    background: linear-gradient(135deg, #ea580c, #fb923c);
}

.magazine-grid,
.feature-card,
.feature-media img,
.feature-body,
.feature-empty,
.magazine-sidebar,
.sidebar-card,
.sidebar-card ul,
.chip-list,
.chip,
.ad-card img {
    display: none;
}

.section {
    padding: 30px 0 40px;
}

.section.alt {
    background: #f2f4f7;
    border-radius: 24px;
    margin: 30px auto;
}

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

.section-head h2 {
    font-size: 20px;
    margin: 0;
}

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

.card-grid.magazine {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.post-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.post-card.minimal {
    border: 1px solid var(--line);
    box-shadow: none;
}

.post-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.thumb-fallback {
    height: 150px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 22px;
    font-weight: 700;
}

.post-body {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.badge {
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.btn {
    border: none;
    background: var(--brand);
    color: white;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn.small {
    padding: 8px 14px;
    font-size: 14px;
}

.btn.tiny {
    padding: 6px 12px;
    font-size: 13px;
}

.btn.primary {
    background: var(--ink);
}

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

.category-sections,
.panel-head,
.panel-body,
.panel-item {
    display: none;
}

.ad-block {
    padding: 20px 0;
}

.ad-banner {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ad-banner img {
    width: 100%;
    display: block;
}

.ad-placeholder {
    padding: 22px;
    border-radius: var(--radius);
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    text-align: center;
    color: var(--muted);
}

.newsletter-card {
    background: white;
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.newsletter-form input {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-size: 14px;
    min-width: 220px;
}

.site-footer {
    padding: 40px 0 20px;
    margin-top: 40px;
    background: white;
}

.footer-marquee-shell {
    margin-top: 22px;
    padding: 10px 14px;
    border-radius: 18px;
    background: var(--footer-marquee-bg, #0f172a);
}

.footer-marquee-track {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-marquee-label {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 700;
    color: var(--footer-marquee-label-text, #fff);
    background: var(--footer-marquee-label-bg, #1d4ed8);
    border-radius: 999px;
    padding: 7px 12px;
}

.footer-marquee-items {
    flex: 1;
    overflow: hidden;
}

.footer-marquee-list {
    display: inline-flex;
    gap: 24px;
    white-space: nowrap;
    animation: marquee 28s linear infinite;
}

.footer-marquee-list a,
.footer-marquee-list span {
    color: var(--footer-marquee-item-text, #e2e8f0);
    font-weight: 600;
}

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

.footer-grid h4,
.footer-grid h5 {
    margin-top: 0;
}

.footer-grid a {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

.footer-bottom {
    text-align: center;
    color: var(--muted);
    margin-top: 20px;
}

.public-pagination {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.public-pagination-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.page-link.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.page-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.post-meta {
    color: var(--muted);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.post-tags span {
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.post-content {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    line-height: 1.7;
    border: 1px solid rgba(228, 231, 236, 0.9);
}

.post-video-card {
    margin-top: 16px;
}

.video-embed-shell {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
}

.video-embed-shell iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.post-content ul,
.post-content ol,
.detail-section-body ul,
.detail-section-body ol {
    padding-left: 22px;
}

.post-content table,
.detail-section-body table {
    width: 100%;
    margin: 22px 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #d8e2f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.post-content th,
.post-content td,
.detail-section-body th,
.detail-section-body td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid #d8e2f0;
    border-bottom: 1px solid #d8e2f0;
}

.post-content th,
.detail-section-body th {
    background: linear-gradient(180deg, #eef4ff, #e4eeff);
    color: #0f172a;
    font-weight: 700;
}

.post-content tr:last-child td,
.detail-section-body tr:last-child td {
    border-bottom: none;
}

.post-content tr > *:last-child,
.detail-section-body tr > *:last-child {
    border-right: none;
}

.post-content tbody tr:nth-child(even),
.detail-section-body tbody tr:nth-child(even) {
    background: #f8fbff;
}

.post-content li,
.detail-section-body li {
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .nav-wrap {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0;
        padding: 14px 0;
    }
    .brand-text {
        font-size: 20px;
    }
    .menu-toggle {
        display: block;
        grid-column: 2;
        grid-row: 1;
    }
    .nav {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        gap: 2px;
        margin-top: 14px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 14px;
        background: rgba(3, 30, 78, 0.28);
    }
    .nav.is-open {
        display: grid;
    }
    .nav a {
        width: 100%;
        padding: 10px 12px;
        border-radius: 9px;
    }
    .nav a:hover {
        background: rgba(255, 255, 255, 0.12);
    }
    .board-grid,
    .tile-grid {
        grid-template-columns: 1fr;
    }
    .split-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .highlight-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .category-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .highlight-post-link,
    .highlight-empty,
    .highlight-empty-board {
        min-height: 120px;
        font-size: 18px;
    }
    .top-actions {
        display: none;
    }
    .category-hero,
    .category-compact-card,
    .category-stack-card {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
    .content-layout {
        grid-template-columns: 1fr;
    }
    .category-post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .content-sidebar {
        position: static;
    }
    .banner-slide-overlay {
        padding: 24px;
    }
    .banner-slider-track {
        height: 260px;
    }
    .search-bar {
        border-radius: 18px;
    }
    .search-bar button {
        flex: 0 0 auto;
    }
    .home-image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .post-meta-strip {
        gap: 8px;
    }
    .category-compact-actions {
        justify-items: start;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .split-panels {
        gap: 8px;
        padding: 8px 0 14px;
    }
    .panel {
        min-width: 0;
        min-height: 92px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    .panel h3 {
        margin: 0;
        overflow-wrap: anywhere;
        font-size: 14px;
        line-height: 1.3;
    }
    .panel p {
        margin: 5px 0 0;
        font-size: 11px;
        line-height: 1.35;
    }
    .panel .btn,
    .panel a {
        width: 100%;
        justify-content: center;
        max-width: 100%;
        padding: 6px 8px;
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }
    .updates-track {
        gap: 8px;
        padding: 7px 0;
    }
    .updates-label {
        flex: 0 0 auto;
        padding: 5px 9px;
        font-size: 12px;
    }
    .updates-items {
        gap: 16px;
    }
    .updates-items a {
        font-size: 13px;
    }
    .board {
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .board-header {
        margin-bottom: 10px;
    }
    .board-header h2 {
        font-size: 20px;
    }
    .board-grid {
        gap: 8px;
    }
    .board-col {
        min-width: 0;
        padding: 8px;
        border-radius: 10px;
    }
    .board-col-title {
        margin-bottom: 7px;
        overflow-wrap: anywhere;
        font-size: 12px;
        line-height: 1.35;
    }
    .board-col-body {
        gap: 7px;
    }
    .board-card {
        gap: 7px;
        padding: 8px;
        border-radius: 9px;
    }
    .board-card-main {
        gap: 5px;
        grid-template-columns: 6px minmax(0, 1fr);
    }
    .board-card .dot {
        width: 6px;
        height: 6px;
        margin-top: 5px;
    }
    .board-card-content a {
        display: block;
        overflow-wrap: anywhere;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.35;
    }
    .board-card-content small {
        display: block;
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.3;
    }
    .board-card-actions {
        padding-left: 0;
    }
    .board-card-actions .btn.tiny {
        width: 100%;
        justify-content: center;
        padding: 6px 4px;
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }
    .highlight-board {
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .highlight-head {
        justify-items: start;
        margin-bottom: 10px;
    }
    .highlight-head h2 {
        font-size: 20px;
    }
    .highlight-grid {
        border-radius: 10px;
    }
    .category-post-grid {
        gap: 8px;
    }
    .category-post-card {
        min-width: 0;
        border-radius: 10px;
    }
    .category-post-image img,
    .category-post-image .thumb-fallback {
        height: 88px;
        min-height: 88px;
    }
    .category-post-body {
        gap: 6px;
        padding: 9px;
        min-width: 0;
    }
    .category-post-body h4 {
        overflow-wrap: anywhere;
        font-size: 12px;
        line-height: 1.35;
    }
    .category-post-body p {
        display: none;
    }
    .category-post-body .btn.small {
        width: 100%;
        justify-content: center;
        padding: 7px 5px;
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }
    .search-bar {
        gap: 6px;
        padding: 6px;
    }
    .search-bar input {
        min-width: 0;
        padding: 9px 10px;
        font-size: 14px;
    }
    .search-bar button {
        padding: 9px 14px;
        font-size: 14px;
    }
    .highlight-post-link {
        min-width: 0;
        min-height: 92px;
        padding: 8px;
        overflow-wrap: anywhere;
        font-size: 13px;
        line-height: 1.3;
    }
    .container {
        width: min(1160px, 92vw);
    }
    .brand-logo,
    .brand-mark {
        width: 38px;
        height: 38px;
    }
    .brand-text {
        font-size: clamp(17px, 5.3vw, 21px);
        white-space: nowrap;
    }
    .category-post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .category-cards {
        grid-template-columns: 1fr !important;
    }
    .board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .image-strip-track {
        grid-auto-columns: minmax(180px, 82vw);
    }
    .footer-marquee-track {
        flex-direction: column;
        align-items: stretch;
    }
}
