﻿@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Roboto:wght@400;500;700;900&display=swap');

:root {
    --bg: #ebebeb;
    --text: #111827;
    --muted: #6b7280;
    --brand: #1e4fd9;
    --dark: #0f172a;
    --card: #ffffff;
    --border: #e5e7eb;
    --heading-lg: #313131;
    --heading-md: #777777;
    --layout-max: 1440px;
    --layout-gutter-desktop: 32px;
    --layout-gutter-tablet: 24px;
    --layout-gutter-mobile: 16px;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

h1, h2 {
    color: var(--heading-lg);
}

h3, h4, h5, h6 {
    color: var(--heading-md);
}

input, button, select, textarea {
    font-family: var(--font-body);
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.top-bar {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    padding-inline: var(--layout-gutter-desktop);
    max-width: var(--layout-max);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: clamp(180px, 21vw, 280px);
    height: 56px;
    object-fit: cover;
    object-position: center;
}

.logo-circle {
    width: 46px;
    height: 46px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-family: var(--font-heading);
}

.brand-text .brand-name {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.brand-text .brand-tag {
    font-size: 14px;
    color: var(--muted);
}

.search-bar {
    display: flex;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
}

.search-bar button {
    width: 44px;
    border: none;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
}

.social-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.social {
    width: 32px;
    height: 32px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.menu-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--dark);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 10px;
    padding-inline: var(--layout-gutter-desktop);
    max-width: var(--layout-max);
    margin: 0 auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-body);
}

.nav-item {
    position: relative;
    padding: 6px 0;
}

.dropdown {
    position: absolute;
    top: 30px;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: none;
    min-width: 160px;
    z-index: 10;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 6px 12px;
    font-weight: 500;
    font-family: var(--font-body);
}

.nav-date {
    font-size: 14px;
    color: var(--muted);
    font-family: var(--font-body);
}

.page {
    padding: 24px 0 60px;
    padding-inline: var(--layout-gutter-desktop);
    max-width: var(--layout-max);
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 20px;
}

.hero-left {
    display: grid;
    gap: 22px;
}

.hero-right {
    display: grid;
    gap: 22px;
}

.hero-right-top,
.hero-right-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hero-main {
    min-height: 380px;
}

.hero-card {
    position: relative;
    display: block;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.feature-card {
    position: relative;
    display: block;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.hero-tile {
    aspect-ratio: 16 / 9;
}

.hero-tile .feature-card {
    height: 100%;
}

.hero-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
}

.hero-content {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
}

.hero-content h3 {
    font-family: var(--font-heading);
    font-size: 23px;
    margin: 12px 0 8px;
}

.badge {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 4px 10px;
    font-size: 13px;
    text-transform: uppercase;
    border-radius: 3px;
}

.badge.small {
    font-size: 12px;
    padding: 3px 8px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.meta {
    font-size: 14px;
    color: #e5e7eb;
}

.feature-content {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
}

.feature-content h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.trend-widget {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 6px;
}

.widget-title {
    font-weight: 700;
    margin-bottom: 12px;
}

.trend-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trend-widget li {
    padding: 8px 0;
    border-top: 1px solid var(--border);
}

.trend-widget li:first-child { border-top: none; }

.trend-widget a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
}

.compact-cards {
    display: grid;
    gap: 12px;
}

.compact-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
}

.compact-card img {
    width: 70px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.compact-title {
    font-size: 14px;
    font-weight: 600;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    text-decoration: none;
    color: var(--text);
}

.mini-card img {
    width: 90px;
    height: 70px;
    border-radius: 4px;
    object-fit: cover;
}

.mini-title {
    font-size: 14px;
    font-weight: 600;
}

.ad-banner {
    margin: 28px auto;
    background: var(--card);
    border: 1px dashed #cbd5f5;
    border-radius: 6px;
    height: 90px;
    display: grid;
    place-items: center;
}

.ad-banner img,
.ad-banner iframe {
    max-height: 90px;
    max-width: 100%;
    border: none;
}

.ad-embed {
    width: 100%;
    height: 90px;
    border: none;
}

.ad-placeholder {
    font-size: 14px;
    color: var(--muted);
}

.section-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.section-label {
    background: var(--dark);
    color: #fff;
    padding: 6px 14px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 14px;
}

.section-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
}

.section-tabs span.active {
    color: var(--text);
    font-weight: 600;
}

.section-tabs .arrows {
    display: flex;
    gap: 8px;
}

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

.section-card {
    text-decoration: none;
    color: var(--text);
}

.section-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

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

.section-title {
    font-weight: 600;
    margin: 10px 0 4px;
    font-size: 14px;
}

.category-header {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.page-link {
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: #fff;
    text-decoration: none;
    color: var(--text);
    border-radius: 4px;
}

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

.post-detail {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

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

.post-body {
    padding: 24px;
}

.post-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.post-body h1 {
    font-family: var(--font-heading);
    margin-top: 0;
}

.post-excerpt {
    font-size: 16px;
    color: var(--muted);
}

.post-content img { max-width: 100%; }

.video-embed iframe {
    width: 100%;
    height: 360px;
}

.post-gallery {
    margin: 28px 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.post-gallery-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.post-gallery-head h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 24px;
}

.post-gallery-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.post-gallery-launch {
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

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

.post-gallery-item {
    margin: 0;
    grid-column: span 4;
    border-radius: 10px;
    overflow: hidden;
    background: #e5e7eb;
    border: 1px solid #dbe1ea;
}

.post-gallery-item.is-featured {
    grid-column: span 12;
}

.post-gallery-trigger {
    display: block;
    width: 100%;
    border: none;
    margin: 0;
    padding: 0;
    position: relative;
    cursor: pointer;
    background: transparent;
}

.post-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 220ms ease;
}

.post-gallery-item.is-featured img {
    min-height: 420px;
}

.post-gallery-trigger:hover img,
.post-gallery-trigger:focus-visible img {
    transform: scale(1.02);
}

.post-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    background: linear-gradient(180deg, rgba(10, 15, 33, 0.14), rgba(10, 15, 33, 0.58));
    opacity: 0.96;
}

.post-gallery-count {
    align-self: flex-start;
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(15, 23, 42, 0.75);
    padding: 4px 7px;
    border-radius: 999px;
}

.post-gallery-overlay-caption {
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
}

.post-gallery-item figcaption {
    padding: 8px 10px;
    font-size: 14px;
    color: #334155;
    background: #fff;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox-shell {
    width: min(1260px, 96vw);
    max-height: 92vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
}

.gallery-lightbox-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.gallery-lightbox-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-lightbox-control,
.gallery-lightbox-close {
    border: 1px solid rgba(226, 232, 240, 0.35);
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    border-radius: 6px;
    padding: 7px 11px;
    cursor: pointer;
    font-weight: 600;
}

.gallery-lightbox-control {
    min-width: 44px;
}

.gallery-lightbox-stage {
    min-height: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.gallery-lightbox-figure {
    margin: 0;
    display: grid;
    gap: 10px;
    justify-items: center;
    min-height: 0;
}

.gallery-lightbox-viewport {
    width: min(1120px, 86vw);
    height: min(72vh, 860px);
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.45);
    touch-action: none;
}

.gallery-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.5);
    background: #111827;
    transform: translate(0, 0) scale(1);
    transform-origin: center center;
    transition: transform 120ms ease-out;
    user-select: none;
}

.gallery-lightbox-caption {
    color: #e2e8f0;
    text-align: center;
    font-size: 14px;
    min-height: 1.2em;
    max-width: 90ch;
}

.gallery-lightbox-nav {
    border: 1px solid rgba(226, 232, 240, 0.35);
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.gallery-lightbox-nav.prev {
    justify-self: start;
}

.gallery-lightbox-nav.next {
    justify-self: end;
}

.gallery-lightbox-counter {
    color: #e2e8f0;
    font-size: 15px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.25);
    border-radius: 999px;
    padding: 6px 10px;
}

.gallery-lightbox-filmstrip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 96px;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px 2px;
}

.gallery-lightbox-thumb {
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.35);
    padding: 0;
    margin: 0;
    cursor: pointer;
    overflow: hidden;
}

.gallery-lightbox-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;
}

.gallery-lightbox-thumb.is-active {
    outline: 2px solid #60a5fa;
    outline-offset: 1px;
}

.gallery-lightbox-thumb-index {
    display: block;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #cbd5e1;
    text-align: center;
    padding: 2px 0 3px;
}

.gallery-lightbox-image.is-zoomed {
    cursor: grab;
}

.gallery-lightbox-image.is-panning {
    cursor: grabbing;
}

body.gallery-lightbox-open {
    overflow: hidden;
}

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

.btn {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
}

.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 20px 0;
    padding-inline: var(--layout-gutter-desktop);
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .top-bar,
    .nav-row,
    .page,
    .site-footer { padding-inline: var(--layout-gutter-tablet); }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-right-top,
    .hero-right-bottom { grid-template-columns: 1fr; }
    .hero-tile { min-height: 220px; }
    .feature-card { height: 100%; }
    .mini-grid { grid-template-columns: 1fr; }
    .section-grid { grid-template-columns: repeat(2, 1fr); }
    .post-gallery-item { grid-column: span 6; }
    .post-gallery-item.is-featured { grid-column: span 12; }
    .post-gallery-item.is-featured img { min-height: 340px; }
}

@media (max-width: 768px) {
    .top-bar,
    .nav-row,
    .page,
    .site-footer { padding-inline: var(--layout-gutter-mobile); }

    .top-bar { grid-template-columns: 1fr; }
    .search-bar { order: 3; }
    .nav-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .main-nav ul { flex-wrap: wrap; display: none; flex-direction: column; gap: 10px; }
    .main-nav.open ul { display: flex; }
    .mini-grid { grid-template-columns: 1fr; }
    .section-grid { grid-template-columns: 1fr; }
    .hero-main { min-height: 280px; }
    .post-gallery { padding: 14px; }
    .post-gallery-head { flex-direction: column; align-items: flex-start; }
    .post-gallery-item { grid-column: span 12; }
    .post-gallery-item img { min-height: 220px; }
    .post-gallery-item.is-featured img { min-height: 260px; }
    .gallery-lightbox { padding: 10px; }
    .gallery-lightbox-shell { width: 100%; max-height: 94vh; }
    .gallery-lightbox-top { align-items: flex-start; flex-direction: column; }
    .gallery-lightbox-controls { flex-wrap: wrap; }
    .gallery-lightbox-stage { grid-template-columns: 1fr; }
    .gallery-lightbox-nav.prev,
    .gallery-lightbox-nav.next {
        justify-self: start;
    }
    .gallery-lightbox-viewport { width: 100%; height: min(62vh, 520px); }
    .gallery-lightbox-filmstrip { grid-auto-columns: 84px; }
    .gallery-lightbox-thumb img { height: 60px; }
}

/* ---------- 2026 Visual Refresh (layout preserved) ---------- */
:root {
    --bg: #eef2f7;
    --text: #111b2d;
    --muted: #5f6a7e;
    --brand: #0d4ed8;
    --brand-strong: #0a3ca8;
    --dark: #0f172a;
    --card: #ffffff;
    --border: #d8e0ec;
    --surface: #f9fbff;
    --shadow-soft: 0 10px 30px rgba(12, 25, 47, 0.08);
}

body {
    font-family: var(--font-heading);
    color: var(--text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(circle at 6% -10%, rgba(13, 78, 216, 0.1), transparent 38%),
        radial-gradient(circle at 92% 0%, rgba(13, 78, 216, 0.06), transparent 34%),
        linear-gradient(180deg, #f7f9fc 0%, var(--bg) 48%, #edf1f6 100%);
}

.site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.12);
    position: relative;
    z-index: 100;
}

.top-bar {
    gap: 22px;
    padding-top: 20px;
    padding-bottom: 16px;
}

.brand {
    text-decoration: none;
    color: inherit;
    min-width: 0;
    transition: opacity 160ms ease, transform 160ms ease;
}

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

.brand:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.logo-circle {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #0d4ed8, #0a3ca8);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 7px 16px rgba(13, 78, 216, 0.27);
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.brand-text .brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 30px;
    line-height: 0.95;
    letter-spacing: -0.01em;
}

.brand-text .brand-tag {
    margin-top: 2px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #607089;
}

.search-bar {
    border-radius: 4px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 3px 10px rgba(30, 54, 92, 0.06);
    transition: box-shadow 180ms ease, border-color 180ms ease;
}

.search-bar:focus-within {
    border-color: #95b2e8;
    box-shadow: 0 0 0 2px rgba(13, 78, 216, 0.15), 0 8px 18px rgba(30, 54, 92, 0.08);
}

.search-bar input {
    font-family: inherit;
    font-size: 15px;
    color: #13203a;
}

.search-bar input::placeholder {
    color: #7b879c;
}

.search-bar button {
    background: linear-gradient(180deg, var(--brand), var(--brand-strong));
    transition: filter 150ms ease;
}

.search-bar button:hover {
    filter: brightness(1.08);
}

.social-row {
    gap: 9px;
}

.social {
    border-radius: 4px;
    border: 1px solid #d7e0ee;
    background: #f3f6fc;
    color: #163b81;
    transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.social:hover {
    border-color: #b9c9e6;
    background: #e8effb;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border-radius: 4px;
    background: #0f1f3b;
    border: 1px solid #1f3357;
    transition: transform 140ms ease, filter 140ms ease;
}

.menu-toggle:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.nav-row {
    padding-bottom: 12px;
    border-top: 1px solid #edf2f8;
}

.main-nav ul {
    gap: 20px;
}

.main-nav a {
    position: relative;
    font-size: 14px;
    letter-spacing: 0.015em;
    color: #1a2844;
    font-weight: 700;
    font-family: var(--font-body);
    transition: color 150ms ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 150ms ease;
}

.main-nav a:hover {
    color: #0b3b9f;
}

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

.dropdown {
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}

.dropdown li a {
    font-size: 14px;
    letter-spacing: 0.01em;
    font-family: var(--font-body);
}

.nav-date {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #72809a;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.page {
    padding-top: 28px;
    padding-bottom: 64px;
}

.hero-grid,
.hero-left,
.hero-right,
.hero-right-top,
.hero-right-bottom {
    gap: 18px;
}

.hero-card,
.feature-card {
    border-radius: 8px;
    border: 1px solid rgba(17, 36, 68, 0.12);
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-card:hover,
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(12, 25, 47, 0.14);
}

.overlay {
    background: linear-gradient(180deg, rgba(6, 13, 29, 0.12), rgba(6, 13, 29, 0.78));
}

.hero-content h3,
.feature-content h3,
.post-body h1,
.post-gallery-head h2 {
    font-family: var(--font-heading);
}

.hero-content h3 {
    margin-top: 10px;
    margin-bottom: 7px;
    line-height: 1.08;
    letter-spacing: -0.012em;
    text-wrap: balance;
}

.feature-content h3 {
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.badge {
    border-radius: 3px;
    background: linear-gradient(180deg, var(--brand), var(--brand-strong));
    letter-spacing: 0.05em;
}

.meta {
    color: #dae4f5;
    font-size: 13px;
}

.mini-card,
.compact-card,
.trend-widget,
.section-block,
.post-detail,
.category-header {
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

.mini-card,
.compact-card,
.trend-widget,
.section-block,
.post-detail,
.section-thumb,
.ad-banner {
    border-radius: 6px;
}

.mini-card,
.compact-card {
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.mini-card:hover,
.compact-card:hover {
    transform: translateY(-2px);
    border-color: #c4d2e9;
    box-shadow: 0 12px 24px rgba(12, 25, 47, 0.11);
}

.compact-title,
.mini-title,
.section-title {
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.trend-widget {
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}

.widget-title {
    font-size: 20px;
    line-height: 1.05;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.trend-widget ul {
    counter-reset: trending-list;
}

.trend-widget li {
    counter-increment: trending-list;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
}

.trend-widget li::before {
    content: counter(trending-list, decimal-leading-zero);
    color: #8ca0bf;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.trend-widget a {
    font-size: 14px;
    line-height: 1.35;
}

.trend-widget a:hover {
    color: #0d4ed8;
}

.section-block {
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.section-header {
    margin-bottom: 18px;
}

.section-label {
    background: #12213b;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.section-tabs {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-tabs span {
    cursor: pointer;
    transition: color 130ms ease;
}

.section-tabs span:hover {
    color: #0d4ed8;
}

.section-thumb {
    border: 1px solid #d4ddea;
}

.section-thumb img,
.mini-card img,
.compact-card img,
.post-hero img,
.post-gallery-item img {
    filter: saturate(1.05) contrast(1.02);
}

.section-card {
    transition: transform 150ms ease;
}

.section-card:hover {
    transform: translateY(-2px);
}

.ad-banner {
    border: 1px dashed #c2cfe5;
    background:
        linear-gradient(90deg, rgba(13, 78, 216, 0.08), rgba(13, 78, 216, 0.02)),
        #fff;
}

.ad-placeholder {
    color: #5f6f8c;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 13px;
}

.post-detail {
    border-radius: 8px;
}

.post-body h1 {
    font-size: clamp(34px, 3vw, 44px);
    line-height: 1.03;
    letter-spacing: -0.015em;
}

.post-excerpt {
    color: #5f6b80;
}

.post-gallery {
    border-radius: 8px;
    border-color: #d4ddeb;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.post-gallery-item {
    border-radius: 8px;
}

.post-gallery-item figcaption {
    color: #3a4a63;
}

.site-footer {
    border-top-color: #d6dfec;
    color: #71809a;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(247, 250, 255, 0.9));
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(13, 78, 216, 0.7);
    outline-offset: 2px;
}

@keyframes tt-fade-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-card,
    .feature-card,
    .trend-widget,
    .mini-card,
    .compact-card,
    .section-block {
        animation: tt-fade-rise 420ms ease both;
    }

    .hero-right-top .hero-tile:nth-child(2) .feature-card {
        animation-delay: 70ms;
    }

    .hero-right-bottom .trend-widget {
        animation-delay: 80ms;
    }

    .hero-right-bottom .compact-card:nth-child(2) {
        animation-delay: 120ms;
    }
}

@media (max-width: 1024px) {
    .brand-text .brand-name {
        font-size: 26px;
    }

    .site-header::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(11, 22, 41, 0.34);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 180ms ease, visibility 180ms ease;
        z-index: 90;
    }

    .site-header.nav-open::after {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .top-bar {
        position: relative;
        z-index: 100;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav-row {
        position: absolute;
        top: 100%;
        left: var(--layout-gutter-tablet);
        right: var(--layout-gutter-tablet);
        margin: 8px 0 0;
        padding: 12px 14px;
        max-width: none;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.24);
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
        z-index: 95;
    }

    .site-header.nav-open .nav-row {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav .nav-item {
        padding: 0;
    }

    .main-nav a {
        display: block;
        padding: 11px 0;
        border-bottom: 1px solid #e6edf7;
        font-family: var(--font-body);
    }

    .main-nav .nav-item:last-child > a {
        border-bottom: none;
    }

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

    .dropdown {
        position: static;
        display: block;
        border: 0;
        background: transparent;
        box-shadow: none;
        padding: 0 0 6px 12px;
        min-width: 0;
    }

    .dropdown li a {
        padding: 8px 0;
        border: 0;
        color: #33435f;
        font-size: 13px;
    }

    .nav-date {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e6edf7;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .top-bar {
        gap: 14px;
        padding-top: 14px;
    }

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

    .search-bar {
        order: 3;
    }

    .nav-row {
        left: var(--layout-gutter-mobile);
        right: var(--layout-gutter-mobile);
    }
}

/* ---------- Reference Magazine Style (matching provided direction) ---------- */
:root {
    --layout-max: 1440px;
    --layout-gutter-desktop: 32px;
    --layout-gutter-tablet: 24px;
    --layout-gutter-mobile: 16px;
    --bg: #ebebeb;
    --card: #ffffff;
    --border: #d8d8d8;
    --text: #1b1f26;
    --muted: #7a808b;
    --brand: #2f57d8;
}

body {
    background: var(--bg);
    font-family: var(--font-heading);
    color: var(--text);
}

body.is-post-detail {
    background: #ffffff;
}

body.is-category-page,
body.is-search-page {
    background: #ffffff;
}

body.is-post-detail .page.page-post-detail {
    background: transparent;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #dbdbdb;
    box-shadow: none;
    transition: box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.top-bar {
    grid-template-columns: clamp(180px, 17vw, 260px) minmax(240px, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    gap: 10px;
}

.brand:hover {
    transform: none;
}

.brand-logo {
    width: min(100%, clamp(210px, 21vw, 320px));
    height: 64px;
}

.logo-circle {
    width: 42px;
    height: 42px;
    border-radius: 2px;
    font-size: 16px;
    box-shadow: none;
}

.brand-text .brand-name {
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 0.82;
    letter-spacing: -0.035em;
    font-weight: 700;
}

.brand-text .brand-tag {
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 0.09em;
}

.search-bar {
    border-radius: 0;
    box-shadow: none;
    border-color: #dcdcdc;
    width: 50%;
    justify-self: center;
}

.search-bar:focus-within {
    box-shadow: 0 0 0 1px rgba(47, 87, 216, 0.35);
}

.search-bar input {
    font-size: 14px;
}

.search-bar button {
    width: 42px;
    border-radius: 0;
}

.social-row {
    gap: 8px;
}

.top-bar .social {
    width: 34px;
    height: 34px;
    border-radius: 2px;
    border: 1px solid transparent;
    color: #ffffff;
    font-size: 16px;
    display: grid;
    place-items: center;
    text-decoration: none;
    transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
    box-shadow: 0 2px 6px rgba(10, 18, 34, 0.12);
}

.top-bar .social:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 5px 10px rgba(10, 18, 34, 0.16);
}

.top-bar .social[aria-label="Facebook"] {
    background: #1877f2;
}

.top-bar .social[aria-label="X"] {
    background: #21a9e8;
}

.top-bar .social[aria-label="Instagram"] {
    background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
}

.top-bar .social[aria-label="YouTube"] {
    background: #ff0000;
}

.top-bar .social[aria-label="TikTok"] {
    background: #0f172a;
}

.menu-toggle {
    width: 28px;
    height: 28px;
    border-radius: 0;
    transform: none !important;
}

.nav-row {
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 1px solid #efefef;
}

.main-nav ul {
    gap: 20px;
}

.main-nav a {
    font-size: 14px;
    color: #1f232a;
    letter-spacing: 0.01em;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.main-nav a::after {
    bottom: -9px;
    height: 1px;
}

.nav-date {
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0.02em;
    font-family: var(--font-body);
}

@media (min-width: 1025px) {
    .site-header .top-bar,
    .site-header .nav-row,
    .site-header .brand-logo,
    .site-header .main-nav,
    .site-header .main-nav ul,
    .site-header .main-nav a,
    .site-header .search-bar,
    .site-header .social-row,
    .site-header .nav-date {
        transition: all 180ms ease;
    }

    .site-header.is-sticky {
        border-bottom-color: #c6d1e2;
        box-shadow: 0 10px 24px rgba(14, 28, 48, 0.14);
        background: rgba(255, 255, 255, 0.985);
    }

    .site-header.is-sticky .top-bar {
        position: absolute;
        top: 50%;
        left: max(var(--layout-gutter-desktop), calc((100vw - var(--layout-max)) / 2 + var(--layout-gutter-desktop)));
        transform: translateY(-50%);
        display: block;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        pointer-events: none;
        z-index: 4;
    }

    .site-header.is-sticky .brand {
        display: inline-flex;
        align-items: center;
        pointer-events: auto;
    }

    .site-header.is-sticky .brand-logo {
        width: clamp(178px, 15.5vw, 240px);
        height: 50px;
    }

    .site-header.is-sticky .search-bar,
    .site-header.is-sticky .social-row {
        display: none;
    }

    .site-header.is-sticky .nav-row {
        padding-top: 14px;
        padding-bottom: 14px;
        border-top: 0;
        min-height: 78px;
    }

    .site-header.is-sticky .main-nav {
        margin-left: clamp(198px, 19vw, 286px);
    }

    .site-header.is-sticky .main-nav ul {
        gap: 18px;
        align-items: center;
    }

    .site-header.is-sticky .main-nav a {
        font-size: 14px;
        line-height: 1.2;
    }

    .site-header.is-sticky .nav-date {
        display: none;
    }
}

.page {
    padding-top: 20px;
    padding-bottom: 30px;
}

.hero-grid {
    gap: 16px;
}

.hero-left,
.hero-right,
.hero-right-top,
.hero-right-bottom,
.mini-grid,
.compact-cards {
    gap: 14px;
}

.hero-main {
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.hero-right-top .hero-tile {
    aspect-ratio: 6 / 5;
}

.hero-carousel {
    position: relative;
    height: 100%;
}

.hero-carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 760ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
    touch-action: pan-y;
}

.hero-carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
}

.hero-carousel-slide .overlay {
    transition: opacity 320ms ease;
    transform: translateY(0);
    will-change: opacity, transform;
}

.hero-carousel-slide .hero-content {
    transition: opacity 320ms ease, transform 320ms ease;
    will-change: opacity, transform;
}

.hero-carousel-slide .hero-content .badge,
.hero-carousel-slide .hero-content h3,
.hero-carousel-slide .hero-content .meta {
    opacity: 1;
    transform: translateY(0);
    will-change: opacity, transform;
}

.hero-carousel-slide.is-content-exit .overlay,
.hero-carousel-slide.is-content-hidden .overlay {
    opacity: 0;
    transform: translateY(14px);
}

.hero-carousel-slide.is-content-exit .hero-content {
    opacity: 0;
    transform: translateY(16px);
}

.hero-carousel-slide.is-content-hidden .hero-content {
    opacity: 0;
    transform: translateY(18px);
}

.hero-carousel-slide.is-content-hidden .hero-content .badge,
.hero-carousel-slide.is-content-hidden .hero-content h3,
.hero-carousel-slide.is-content-hidden .hero-content .meta {
    opacity: 0;
    transform: translateY(18px);
}

.hero-carousel-slide.is-content-enter .overlay {
    animation: heroOverlayReveal 380ms ease 120ms both;
}

.hero-carousel-slide.is-content-enter .hero-content {
    opacity: 0;
    transform: translateY(16px);
    animation: heroPanelReveal 380ms cubic-bezier(0.22, 0.61, 0.36, 1) 180ms both;
}

.hero-carousel-slide.is-content-enter .hero-content .badge,
.hero-carousel-slide.is-content-enter .hero-content h3,
.hero-carousel-slide.is-content-enter .hero-content .meta {
    opacity: 0;
    transform: translateY(18px);
    animation-fill-mode: both;
}

.hero-carousel-slide.is-content-enter .hero-content .badge {
    animation: heroTextReveal 480ms cubic-bezier(0.22, 0.61, 0.36, 1) 310ms both;
}

.hero-carousel-slide.is-content-enter .hero-content h3 {
    animation: heroTextReveal 600ms cubic-bezier(0.22, 0.61, 0.36, 1) 390ms both;
}

.hero-carousel-slide.is-content-enter .hero-content .meta {
    animation: heroTextReveal 540ms cubic-bezier(0.22, 0.61, 0.36, 1) 460ms both;
}

.hero-carousel-slide.is-initial-enter .overlay,
.hero-carousel-slide.is-initial-enter .hero-content,
.hero-carousel-slide.is-initial-enter .hero-content .badge,
.hero-carousel-slide.is-initial-enter .hero-content h3,
.hero-carousel-slide.is-initial-enter .hero-content .meta {
    opacity: 0;
}

.hero-carousel-slide.is-initial-enter .overlay {
    transform: translateY(14px);
    animation: heroOverlayReveal 380ms ease 2000ms both;
}

.hero-carousel-slide.is-initial-enter .hero-content {
    transform: translateY(16px);
    animation: heroPanelReveal 380ms cubic-bezier(0.22, 0.61, 0.36, 1) 2060ms both;
}

.hero-carousel-slide.is-initial-enter .hero-content .badge {
    transform: translateY(18px);
    animation: heroTextReveal 480ms cubic-bezier(0.22, 0.61, 0.36, 1) 2190ms both;
}

.hero-carousel-slide.is-initial-enter .hero-content h3 {
    transform: translateY(18px);
    animation: heroTextReveal 600ms cubic-bezier(0.22, 0.61, 0.36, 1) 2270ms both;
}

.hero-carousel-slide.is-initial-enter .hero-content .meta {
    transform: translateY(18px);
    animation: heroTextReveal 540ms cubic-bezier(0.22, 0.61, 0.36, 1) 2340ms both;
}

@keyframes heroOverlayReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroTextReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroPanelReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    z-index: 6;
    pointer-events: none;
}

.hero-carousel-btn {
    width: 34px;
    height: 52px;
    border: 0;
    border-radius: 0;
    background: rgba(244, 247, 252, 0.92);
    color: #1f2a44;
    display: grid;
    place-items: center;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 160ms ease, background 160ms ease, transform 160ms ease;
}

.hero-carousel-btn.is-prev {
    transform: translateX(-6px);
}

.hero-carousel-btn.is-next {
    transform: translateX(6px);
}

.hero-main:hover .hero-carousel-btn,
.hero-main:focus-within .hero-carousel-btn {
    opacity: 1;
    transform: translateX(0);
}

.hero-carousel-btn:hover {
    background: #ffffff;
}

.hero-carousel-btn:focus-visible {
    opacity: 1;
    outline: 2px solid var(--brand);
    outline-offset: 1px;
    transform: translateX(0);
}

.hero-carousel-dots {
    position: absolute;
    right: 12px;
    bottom: 8px;
    display: flex;
    gap: 6px;
    z-index: 6;
}

.hero-carousel-dots {
    display: none;
}

.hero-carousel-dot {
    width: 14px;
    height: 3px;
    border: 0;
    border-radius: 0;
    background: rgba(212, 220, 234, 0.72);
    padding: 0;
    cursor: pointer;
}

.hero-carousel-dot.is-active {
    background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel-track {
        transition-duration: 0ms !important;
    }

    .hero-carousel-slide .overlay,
    .hero-carousel-slide .hero-content,
    .hero-carousel-slide .hero-content .badge,
    .hero-carousel-slide .hero-content h3,
    .hero-carousel-slide .hero-content .meta,
    .hero-carousel-slide.is-content-enter .overlay,
    .hero-carousel-slide.is-content-enter .hero-content,
    .hero-carousel-slide.is-content-enter .hero-content .badge,
    .hero-carousel-slide.is-content-enter .hero-content h3,
    .hero-carousel-slide.is-content-enter .hero-content .meta,
    .hero-carousel-slide.is-initial-enter .overlay,
    .hero-carousel-slide.is-initial-enter .hero-content,
    .hero-carousel-slide.is-initial-enter .hero-content .badge,
    .hero-carousel-slide.is-initial-enter .hero-content h3,
    .hero-carousel-slide.is-initial-enter .hero-content .meta {
        transition: none !important;
        animation: none !important;
    }
}

.hero-card,
.feature-card {
    border-radius: 0;
    border: 1px solid var(--border);
    box-shadow: none;
    transform: none !important;
    animation: none !important;
}

.overlay {
    background: linear-gradient(180deg, rgba(5, 7, 14, 0.1), rgba(5, 7, 14, 0.75));
}

.hero-card .overlay {
    background: linear-gradient(180deg, rgba(5, 7, 14, 0.08), rgba(5, 7, 14, 0.75));
}

.feature-card .overlay {
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.06), rgba(12, 16, 29, 0.42));
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(54, 71, 162, 0) 44%, rgba(68, 86, 182, 0.38) 76%, rgba(77, 95, 194, 0.56) 100%);
    pointer-events: none;
    z-index: 2;
}

.feature-content {
    left: 14px;
    right: 14px;
    bottom: 12px;
    max-width: 86%;
    z-index: 3;
}

.hero-content {
    --hero-title-line-height: 1.4;
    --hero-title-lines: 2;
    left: 80px;
    right: 80px;
    bottom: 34px;
    padding: 20px 20px 22px;
    background: rgba(6, 8, 14, 0.58);
    text-align: center;
}

.hero-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(20px, 1.45vw, 24px);
    color: #e9e8e8;
    line-height: var(--hero-title-line-height);
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 12px 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--hero-title-lines);
    max-height: calc(1em * var(--hero-title-line-height) * var(--hero-title-lines));
}

.hero-content .badge {
    background: transparent;
    border: 0;
    padding: 0;
    color: #ffffff;
    box-shadow: none;
    margin-bottom: 4px;
}

.hero-content .meta {
    display: block;
    margin-top: 2px;
    line-height: 1.35;
}

.feature-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(13px, 0.9vw, 16px);
    color: #e9e8e8;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 600;
    margin: 0 0 6px;
    text-wrap: balance;
}

.badge {
    border-radius: 0;
    font-size: 12px;
    padding: 3px 8px;
}

.meta {
    color: #dce2ee;
    font-size: 13px;
}

.trend-widget,
.mini-card,
.compact-card,
.section-card,
.section-block,
.category-header,
.post-detail,
.ad-banner {
    border-radius: 0;
    box-shadow: none;
}

.trend-widget,
.mini-card,
.compact-card,
.section-block,
.post-detail,
.category-header {
    border: 1px solid var(--border);
    background: #fff;
}

.trend-widget {
    padding: 14px 14px 10px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 3px solid #222834;
    position: relative;
}

.widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 46px;
    height: 3px;
    background: var(--brand);
}

.trend-widget li {
    border-top: 1px solid #e9e9e9;
    padding: 7px 0;
}

.trend-widget li:first-child {
    border-top: 0;
    padding-top: 2px;
}

.trend-widget li::before {
    display: none;
}

.trend-widget a {
    display: block;
    font-size: 15px;
    line-height: 1.32;
    color: #1b2230;
    text-decoration: none;
}

.trend-widget a:visited {
    color: #1b2230;
}

.trend-widget a:hover {
    color: #1e4fd9;
}

.mini-card,
.compact-card {
    border-color: var(--border);
    padding: 12px;
    transform: none !important;
    animation: none !important;
}

.mini-card {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
}

.mini-card img {
    width: 108px;
    height: 82px;
    border-radius: 0;
}

.mini-content {
    min-width: 0;
}

.compact-card img {
    width: 108px;
    height: 82px;
    border-radius: 0;
}

.mini-title,
.compact-title,
.section-title,
.mag-list-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.01em;
}

.mini-content .meta,
.compact-card .meta,
.section-card .meta,
.mag-meta {
    color: var(--muted);
    font-size: 13px;
}

.ad-banner {
    height: 92px;
    max-width: 728px; 
    border: 1px solid var(--border);
    background: #fff;
}

.ad-banner.compact {
    max-width: 560px;
    margin-top: 20px;
    margin-bottom: 18px;
}

.ad-placeholder {
    font-size: 15px;
    color: #646d7c;
    text-transform: none;
}

.section-block {
    margin-top: 6px;
    border: none;
    background: transparent;
    padding: 0;
}

.section-header {
    border-bottom: 2px solid #2c2f36;
    padding-bottom: 0;
    margin-bottom: 12px;
}

.section-label,
.mag-section-label {
    position: relative;
    display: inline-block;
    background: #20252d;
    color: #fff;
    padding: 7px 12px 6px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 700;
    border-radius: 0;
}

.section-label::after,
.mag-section-label::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 14px solid #20252d;
}

.section-tabs,
.mag-section-tabs {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: #8a909c;
    gap: 10px;
}

.section-tabs a,
.mag-section-tabs a,
.section-tabs span,
.mag-section-tabs span {
    text-decoration: none;
    color: #8a909c;
    flex: 0 0 auto;
}

.section-tabs a.active,
.mag-section-tabs a.active,
.section-tabs span.active,
.mag-section-tabs span.active {
    color: #2a2e35;
    font-weight: 600;
}

.section-tabs a:hover,
.mag-section-tabs a:hover {
    color: #2a2e35;
}

body.is-home-page .section-tabs .arrows {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 4px;
}

body.is-home-page .section-tabs .section-arrow {
    border: 0;
    background: transparent;
    color: #8a909c;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

body.is-home-page .section-tabs .section-arrow:hover {
    color: #2a2e35;
}

body.is-home-page .section-tabs .section-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

body.is-home-page .is-section-loading [data-section-content] {
    opacity: 0.65;
    pointer-events: none;
}

body.is-home-page .section-empty-note {
    border: 1px dashed #d2dceb;
    background: #f9fbff;
    color: #5f6d88;
    padding: 18px;
    font-size: 14px;
}

body.is-home-page .section-grid .section-empty-note,
body.is-home-page .money-grid .section-empty-note,
body.is-home-page .tech-grid .section-empty-note {
    grid-column: 1 / -1;
}

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

.section-card {
    border: 1px solid var(--border);
    background: #fff;
    padding: 0;
    transform: none !important;
}

.section-thumb {
    border: 0;
    border-radius: 0;
}

.section-thumb img {
    height: 216px;
    padding: 2px;
    border-radius: 0;
    filter: none;
}

.section-title {
    margin: 16px 14px 10px;
}

.section-card .meta {
    margin: 0 14px 12px;
}

.money-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.money-stack {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(0, auto);
    gap: 0;
    border: 1px solid var(--border);
    background: #fff;
}

.money-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    text-decoration: none;
    color: inherit;
    border: 0;
    background: transparent;
    padding: 12px;
    min-height: 80px;
}

.money-stack .money-card + .money-card {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.money-grid .compact-card img {
    width: 108px;
    height: 82px;
    object-fit: cover;
    display: block;
}

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

.money-card-title {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.26;
    font-weight: 600;
    letter-spacing: -0.01em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.money-card .meta {
    color: var(--muted);
    font-size: 12px;
}

.money-card.is-placeholder {
    cursor: default;
    border-style: dashed;
    opacity: 0.85;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.tech-grid > * {
    min-width: 0;
}

.tech-lead-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    background: #fff;
}

.tech-lead-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.tech-lead-body {
    padding: 8px 9px 10px;
}

.tech-lead-body h3 {
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-size: 15px;
    line-height: 1.24;
    letter-spacing: -0.01em;
    font-weight: 600;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tech-lead-body .meta {
    color: var(--muted);
    font-size: 13px;
}

.tech-stack {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-content: start;
}

.tech-mini-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    background: #fff;
    padding: 12px;
    min-height: 80px;
}


.tech-mini-body {
    min-width: 0;
}

.tech-mini-title {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.26;
    font-weight: 600;
    letter-spacing: -0.01em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tech-mini-card .meta {
    color: var(--muted);
    font-size: 12px;
}

.tech-mini-card.is-placeholder,
.tech-lead-card.is-placeholder {
    cursor: default;
    border-style: dashed;
    opacity: 0.85;
}

.mag-section {
    margin-top: 18px;
}

.mag-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #2c2f36;
    padding-bottom: 0;
    margin-bottom: 10px;
}

.mag-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mag-lead-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    background: #fff;
}

.mag-lead-thumb img {
    width: 100%;
    height: 235px;
    object-fit: cover;
    display: block;
}

.mag-lead-body {
    padding: 9px 10px 11px;
}

.mag-lead-body h3 {
    margin: 0 0 6px;
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -0.015em;
    font-weight: 600;
}

.mag-lead-body p {
    margin: 7px 0 0;
    color: #535d6d;
    font-size: 14px;
    line-height: 1.42;
}

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

.mag-list-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    background: #fff;
    min-height: 74px;
}

.mag-list-card img {
    width: 92px;
    height: 72px;
    object-fit: cover;
    display: block;
}

.mag-list-body {
    padding: 8px 8px 7px 0;
    min-width: 0;
}

.mag-list-title {
    margin-bottom: 2px;
}

.post-body h1,
.post-gallery-head h2 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.site-footer {
    margin-top: 18px;
    background: #11141a;
    border-top: none;
    color: #9198a5;
    padding-top: 24px;
    padding-bottom: 24px;
}

body.is-home-page {
    --home-card-gap: 16px;
}

body.is-home-page .hero-grid,
body.is-home-page .hero-left,
body.is-home-page .hero-right,
body.is-home-page .hero-right-top,
body.is-home-page .hero-right-bottom,
body.is-home-page .mini-grid,
body.is-home-page .compact-cards,
body.is-home-page .section-grid,
body.is-home-page .tech-grid,
body.is-home-page .tech-stack,
body.is-home-page .mag-section-grid,
body.is-home-page .mag-list-grid {
    gap: var(--home-card-gap);
}

body.is-home-page .section-header,
body.is-home-page .mag-section-head {
    margin-bottom: var(--home-card-gap);
}

body.is-home-page .section-block,
body.is-home-page .mag-section,
body.is-home-page .site-footer {
    margin-top: 48px;
}

/* Style 3 (Tech) only: tighten right-column mini-card vertical spacing to match reference */
@media (min-width: 1025px) {
    body.is-home-page .section-block-tech .tech-stack {
        gap: 0;
        grid-template-rows: none;
        grid-auto-rows: minmax(0, auto);
        border: 1px solid var(--border);
        background: #fff;
    }

    body.is-home-page .section-block-tech .tech-stack .tech-mini-card {
        border: 0;
        background: transparent;
    }

    body.is-home-page .section-block-tech .tech-stack .tech-mini-card + .tech-mini-card {
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }
}

body.is-home-page .ad-banner {
    margin-top: 46px;
    margin-bottom: var(--home-card-gap);
    margin-left: auto;
    margin-right: auto;
}

body.is-home-page .ad-banner.compact {
    margin-top: 46px;
    margin-bottom: var(--home-card-gap);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .top-bar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "menu brand search";
        align-items: center;
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .menu-toggle {
        grid-area: menu;
        display: grid;
        place-items: center;
        justify-self: start;
        width: 42px;
        height: 42px;
        font-size: 24px;
        background: transparent;
        border: 0;
        color: #172031;
    }

    .brand {
        grid-area: brand;
        justify-self: center;
        min-width: 0;
    }

    .brand-logo {
        width: clamp(166px, 30vw, 220px);
        height: auto;
        max-height: 54px;
        object-fit: contain;
        object-position: center;
    }

    .social-row {
        display: none;
    }

    .search-bar {
        grid-area: search;
        justify-self: end;
        order: 0;
        width: 42px;
        min-width: 42px;
        max-width: 42px;
        border-radius: 0;
        overflow: hidden;
        transition: width 180ms ease, box-shadow 160ms ease;
    }

    .search-bar input {
        width: 0;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        border: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .search-bar button {
        width: 42px;
        flex: 0 0 42px;
        background: transparent;
        color: #172031;
        border: 0;
        font-size: 21px;
    }

    .search-bar.is-active {
        width: min(340px, calc(100vw - (var(--layout-gutter-tablet) * 2) - 120px));
    }

    .search-bar.is-active input {
        width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding-left: 12px;
        padding-right: 12px;
    }

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

    .hero-right-top .hero-tile {
        aspect-ratio: 16 / 9;
    }

    .hero-carousel-nav {
        display: none;
    }

    .hero-content h3 {
        font-size: 21px;
    }

    .feature-content h3,
    .mag-lead-body h3 {
        font-size: 18px;
    }

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

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

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

    .tech-lead-card {
        grid-column: 1 / -1;
    }

    .mag-section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --layout-gutter-mobile: 10px;
    }

    .top-bar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "menu brand search";
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 10px;
    }

    .brand {
        grid-area: brand;
        min-width: 0;
        justify-self: center;
    }

    .social-row {
        display: none;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        font-size: 25px;
        background: transparent;
        border: 0;
        color: #172031;
    }

    .brand-logo {
        width: clamp(160px, 52vw, 210px);
        height: auto;
        max-height: 52px;
        object-fit: contain;
        object-position: center;
    }

    .search-bar {
        width: 40px;
        min-width: 40px;
        max-width: 40px;
    }

    .search-bar button {
        width: 42px;
        flex: 0 0 42px;
        background: transparent;
        color: #172031;
        border: 0;
        font-size: 22px;
    }

    .search-bar.is-active {
        width: min(252px, calc(100vw - (var(--layout-gutter-mobile) * 2) - 112px));
    }

    .search-bar.is-active input {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-main {
        min-height: 300px;
    }

    body.is-home-page .hero-main {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    body.is-home-page .hero-carousel,
    body.is-home-page .hero-carousel-track,
    body.is-home-page .hero-carousel-slide,
    body.is-home-page .hero-card {
        height: 100%;
    }

    .hero-content {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 10px;
    }

    .hero-content h3 {
        font-size: 18px;
    }

    .feature-content h3,
    .mag-lead-body h3 {
        font-size: 15px;
    }

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

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

    .money-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .section-block-money .money-card.compact-card img {
        width: 88px;
        height: 66px;
    }

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

    .tech-lead-card {
        grid-column: auto;
    }

    .tech-mini-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .section-block-tech .tech-mini-card.compact-card img {
        width: 88px;
        height: 66px;
    }

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

/* ---------- Post Detail Editorial Layout ---------- */
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
    gap: 24px;
    align-items: start;
}

.post-article-shell {
    border: 0;
    background: transparent;
    padding: 0 0 24px;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #7a8598;
    margin-bottom: 12px;
}

.post-breadcrumb a {
    color: #596781;
    text-decoration: none;
}

.post-breadcrumb a:hover {
    color: #0d4ed8;
}

.post-head {
    margin-bottom: 14px;
}

.post-kicker {
    font-size: 13px;
    color: #2b3e63;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 8px;
    font-weight: 700;
}

.post-head h1 {
    font-family: var(--font-heading);
    font-size: clamp(33px, 3vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.post-excerpt {
    margin: 0 0 10px;
    color: #4e596c;
    font-size: 22px;
    line-height: 1.32;
}

.post-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 13px;
    margin-bottom: 12px;
    color: #6b7485;
    font-size: 14px;
}

.post-meta-line span {
    position: relative;
}

.post-meta-line span:not(:first-child)::before {
    content: ".";
    position: absolute;
    left: -8px;
    top: 0;
}

.post-share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.post-share-row.is-bottom {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e8edf4;
}

.post-share-label {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #d7deeb;
    font-size: 13px;
    text-transform: uppercase;
    color: #344056;
    font-weight: 700;
}

.post-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #fff;
    background: #1f55d8;
    border: 1px solid #1f55d8;
    font-size: 13px;
    padding: 6px 10px;
}

.post-share-btn:hover {
    filter: brightness(1.08);
}

.post-share-btn.is-facebook {
    background: #325aa8;
    border-color: #325aa8;
}

.post-share-btn.is-twitter {
    background: #4d84d1;
    border-color: #4d84d1;
}

.post-share-btn.is-pinterest {
    background: #c53b3f;
    border-color: #c53b3f;
}

.post-share-btn.is-email {
    background: #5578d6;
    border-color: #5578d6;
}

.post-engagement-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.post-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d5dce9;
    background: #ffffff;
    color: #22314d;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .14s ease;
}

.post-like-btn:hover {
    border-color: #f4b4c7;
    color: #b62052;
    transform: translateY(-1px);
}

.post-like-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.post-like-btn.is-liked {
    border-color: #f7bfd0;
    background: #fff1f5;
    color: #b7144d;
}

.post-like-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    line-height: 1;
}

.post-like-btn.is-liked .post-like-count {
    background: #ffdbe7;
    color: #9f1239;
}

.post-like-feedback {
    min-height: 18px;
    font-size: 12px;
    color: #5b6678;
}

.post-like-feedback.is-error {
    color: #b91c1c;
}

.post-like-feedback.is-success {
    color: #0f766e;
}

.post-lead-media {
    margin-bottom: 18px;
}

.post-lead-media img {
    width: 100%;
    max-height: 610px;
    object-fit: cover;
    display: block;
}

.post-lead-media video {
    width: 100%;
    display: block;
    max-height: 610px;
    background: #080d17;
}

.post-lead-media .video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #080d17;
}

.post-lead-media .video-embed iframe {
    width: 100%;
    height: 100%;
}

.post-toc {
    margin: 0 0 20px;
    border: 1px solid #dbe2ee;
    background: #fff;
}

.post-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #e7edf7;
}

.post-toc-toggle {
    width: 22px;
    height: 22px;
    border: 1px solid #cfd8e8;
    background: #fff;
    color: #5f6c82;
    font-size: 14px;
    line-height: 1;
    cursor: default;
    padding: 0;
}

.post-toc h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1;
    font-family: var(--font-heading);
}

.post-toc ol {
    margin: 0;
    padding: 8px 14px 12px 22px;
}

.post-toc li {
    margin: 8px 0;
}

.post-toc li.is-sub {
    margin-left: 14px;
    list-style-type: lower-alpha;
}

.post-toc a {
    color: #2b4e93;
    text-decoration: none;
    font-size: 15px;
}

.post-toc a:hover {
    text-decoration: underline;
}

.post-reading-shell {
    display: block;
}

.post-reading-shell.has-toc {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.post-reading-shell.has-toc .post-toc {
    position: sticky;
    top: 88px;
}

.post-content-wrap {
    min-width: 0;
}

.post-content-wrap::after {
    content: "";
    display: block;
    clear: both;
}

.post-content {
    color: #202734;
}

.post-content > p {
    margin: 0 0 15px;
    font-size: 17px;
    line-height: 1.75;
}

.post-content > p:first-of-type:first-letter {
    float: left;
    font-size: 58px;
    line-height: 0.9;
    margin-right: 8px;
    margin-top: 5px;
    font-family: var(--font-heading);
    color: #405ec6;
}

.post-content h2,
.post-content h3 {
    font-family: var(--font-heading);
    margin: 22px 0 12px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #121b2c;
}

.post-content h2 {
    font-size: 35px;
}

.post-content h3 {
    font-size: 27px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 16px 22px;
    padding: 0;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.post-content blockquote {
    margin: 20px 0;
    padding: 14px 16px;
    border-left: 4px solid #4355a1;
    background: #f4f7ff;
    font-size: 20px;
    line-height: 1.55;
    color: #353d50;
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 22px 0 8px;
}

.post-content figure {
    margin: 18px 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 14px;
    color: #7a8598;
    margin-top: 5px;
}

.post-inline-related {
    border: 1px solid #dde4f0;
    background: #f8faff;
    float: right;
    width: min(320px, 46%);
    margin: 4px 0 14px 18px;
    padding: 12px 14px;
}

.post-inline-related h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.post-inline-related ul {
    margin: 0;
    padding-left: 18px;
}

.post-inline-related li {
    margin: 6px 0;
}

.post-inline-related a {
    color: #3554a8;
    text-decoration: none;
    font-size: 14px;
}

.post-inline-related a:hover {
    text-decoration: underline;
}

.post-tags {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.post-tags a {
    display: inline-block;
    text-decoration: none;
    border: 1px solid #d3dcea;
    color: #6f7b91;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 7px;
}

.post-tags a:hover {
    color: #23459a;
    border-color: #b8c8e3;
}

.post-author-box {
    margin-top: 16px;
    border: 1px solid #e0e7f1;
    background: #fff;
    padding: 14px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
}

.post-author-icon {
    width: 56px;
    height: 56px;
    border: 1px solid #d2dbe8;
    display: grid;
    place-items: center;
    color: #243150;
    font-size: 22px;
}

.post-author-box h3 {
    margin: 0 0 5px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-author-box p {
    margin: 0;
    color: #5d687a;
    font-size: 15px;
    line-height: 1.5;
}

.post-neighbors {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e7edf7;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.post-neighbors > div {
    display: grid;
    gap: 5px;
}

.post-neighbors span {
    font-size: 13px;
    text-transform: lowercase;
    color: #8893a7;
}

.post-neighbors a,
.post-neighbors strong {
    text-decoration: none;
    color: #1a2438;
    font-size: 18px;
    line-height: 1.3;
    font-family: var(--font-heading);
}

.post-neighbors a:hover {
    color: #1e4fd9;
}

.post-related-grid {
    margin-top: 20px;
}

.post-related-grid h2,
.post-comment-box h2 {
    margin: 0 0 12px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.post-related-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.post-related-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid #d8e0ec;
    background: #fff;
    display: block;
}

.post-related-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.post-related-title {
    padding: 8px 8px 3px;
    font-size: 15px;
    line-height: 1.35;
    color: #1a2438;
    min-height: 46px;
}

.post-related-meta {
    font-size: 13px;
    color: #7a8598;
    padding: 0 8px 8px;
}

.post-comment-box {
    margin-top: 22px;
    border-top: 1px solid #e5ebf6;
    padding-top: 18px;
}

.post-comment-box textarea,
.post-comment-box input {
    width: 100%;
    border: 1px solid #d7dfec;
    background: #fff;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 15px;
}

.post-comment-box textarea {
    min-height: 110px;
    resize: vertical;
    margin-bottom: 10px;
}

.post-comment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.post-comment-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5f6b80;
}

.post-comment-box button {
    margin-top: 10px;
    border: 0;
    background: #20252d;
    color: #fff;
    padding: 9px 18px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

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

.post-side-widget {
    background: #fff;
    padding: 10px;
    position: relative;
}

.post-side-widget::before {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    top: 20px;
    border-top: 2px solid #2c2f36;
    pointer-events: none;
}

.post-widget-label {
    display: inline-block;
    position: relative;
    background: #20252d;
    color: #fff;
    padding: 7px 10px 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
    margin-bottom: 10px;
}

.post-widget-label::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 12px solid #20252d;
}

.post-follow-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-follow-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e7edf7;
    padding: 8px 0;
    font-size: 14px;
}

.post-follow-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.post-follow-list li span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2a3448;
}

.post-follow-list li a {
    color: #6d788b;
    text-decoration: none;
    font-size: 13px;
}

.post-follow-list li a:hover {
    color: #1e4fd9;
}

.post-side-ad {
    border: 1px dashed #c6d2e8;
    min-height: 250px;
    display: grid;
    place-items: center;
    background: #f6f9ff;
    color: #324055;
    padding: 16px;
    text-align: center;
}

.post-side-ad.placeholder span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #77839b;
}

.post-side-ad img {
    width: 100%;
    height: auto;
    display: block;
}

.post-side-recent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.post-side-recent-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid #dce3ef;
    background: #fff;
}

.post-side-recent-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.post-side-recent-card .title {
    font-size: 13px;
    line-height: 1.36;
    padding: 6px 7px 3px;
    color: #1c263a;
}

.post-side-recent-card .meta {
    font-size: 11px;
    color: #7d889c;
    padding: 0 7px 7px;
}

.post-side-trending {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-side-trending li {
    border-top: 1px solid #e7edf7;
    padding: 7px 0;
}

.post-side-trending li:first-child {
    border-top: 0;
    padding-top: 0;
}

.post-side-trending a {
    text-decoration: none;
    color: #1b2438;
    font-size: 15px;
    line-height: 1.38;
}

.post-side-trending a:hover {
    color: #1e4fd9;
}

.post-social-feed {
    border: 1px solid #dde4f0;
    background: #f9fbff;
    padding: 9px;
}

.post-social-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 6px 8px;
    margin-bottom: 8px;
    color: #263048;
}

.post-social-head i {
    grid-row: span 2;
    font-size: 19px;
    color: #3658a9;
}

.post-social-head strong {
    font-size: 15px;
    line-height: 1.2;
}

.post-social-head span {
    font-size: 12px;
    color: #7e8aa0;
}

.post-social-card p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.45;
    color: #3d4960;
}

.post-social-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    border: 1px solid #dce4f1;
}

.post-side-pick {
    position: relative;
    display: block;
    color: #fff;
    text-decoration: none;
    border: 1px solid #dce3ef;
}

.post-side-pick img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.post-side-pick .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 22, 0.06), rgba(8, 12, 22, 0.72));
}

.post-side-pick .title {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    font-size: 18px;
    line-height: 1.25;
    font-family: var(--font-heading);
}

.post-side-newsletter p {
    margin: 0 0 9px;
    font-size: 14px;
    color: #5f6b80;
    line-height: 1.45;
}

.post-side-newsletter input {
    width: 100%;
    border: 1px solid #d4ddea;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-family: inherit;
    font-size: 14px;
}

.post-side-newsletter button {
    width: 100%;
    border: 0;
    padding: 9px 11px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #20252d;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .post-layout {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    }
}

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

    .post-reading-shell.has-toc {
        grid-template-columns: 1fr;
    }

    .post-reading-shell.has-toc .post-toc {
        position: static;
    }

    .post-side-recent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .post-head h1 {
        font-size: clamp(30px, 4.8vw, 44px);
    }

    .post-content h2 {
        font-size: 30px;
    }

    .post-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .post-side-widget {
        padding: 12px;
    }

    .post-head h1 {
        font-size: clamp(27px, 8vw, 36px);
    }

    .post-excerpt {
        font-size: 18px;
    }

    .post-content > p {
        font-size: 15px;
        line-height: 1.7;
    }

    .post-inline-related {
        float: none;
        width: 100%;
        margin: 0 0 14px;
    }

    .post-content h2 {
        font-size: 26px;
    }

    .post-content h3 {
        font-size: 21px;
    }

    .post-content > p:first-of-type:first-letter {
        font-size: 48px;
        margin-top: 3px;
    }

    .post-neighbors,
    .post-comment-grid {
        grid-template-columns: 1fr;
    }

    .post-related-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-side-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-share-btn span {
        display: none;
    }
}

/* ---------- Post Parity Pass ---------- */
.post-layout {
    grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
    gap: 18px;
}

.post-article-shell {
    border: 0;
    background: transparent;
    padding: 0 0 22px;
}

.post-breadcrumb {
    font-size: 12px;
    color: #97a1b2;
    margin-bottom: 10px;
}

.post-head h1 {
    font-size: clamp(29px, 2.78vw, 40px);
    line-height: 1.11;
    margin-bottom: 8px;
}

.post-excerpt {
    font-size: 20px;
    font-weight: 700;
    color: #777777;
    line-height: 1.8;
}

.post-meta-line {
    font-size: 13px;
    margin-bottom: 10px;
    color: #828da1;
}

.post-share-row {
    gap: 6px;
}

.post-share-label {
    padding: 5px 9px;
    font-size: 12px;
}

.post-share-btn {
    font-size: 12px;
    padding: 5px 9px;
}

.post-lead-media {
    margin-bottom: 52px;
}

.post-lead-media img,
.post-lead-media video {
    max-height: 520px;
}

.post-reading-shell.has-toc {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 14px;
}

.post-reading-shell.has-toc .post-toc {
    top: 74px;
}

.post-toc-head {
    padding: 9px 11px;
}

.post-toc h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.post-toc ol {
    padding: 7px 11px 9px 20px;
}

.post-toc li {
    margin: 6px 0;
}

.post-toc a {
    font-size: 14px;
    color: #2d3d57;
    line-height: 1.38;
}

.post-content > p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.post-content h2 {
    font-size: 40px;
    line-height: 1.13;
    margin: 24px 0 10px;
}

.post-content h3 {
    font-size: 20px;
    line-height: 1.18;
    margin: 20px 0 9px;
}

.post-content blockquote {
    font-size: 14px;
    line-height: 1.65;
    font-style: italic;
    color: #606a7d;
    background: #f6f8fc;
}

.post-content figure {
    margin: 14px 0 12px;
}

.post-content figcaption {
    font-size: 13px;
    color: #8b96aa;
}

.post-inline-related {
    width: min(340px, 46%);
    margin: 4px 0 12px 16px;
    border-color: #dbe3ef;
    background: #fafcff;
}

.post-inline-related h2 {
    font-family: var(--font-heading);
    font-size: 27px;
    margin-bottom: 7px;
}

.post-inline-related a {
    font-size: 16px;
}

.post-inline-ad {
    clear: both;
    margin: 14px 0 12px;
    border: 1px dashed #c5d1e6;
    background: #fff;
    min-height: 90px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.post-inline-ad .ad-image,
.post-inline-ad .ad-embed {
    display: block;
    width: 80%;
    margin-inline: auto;
}

.post-inline-ad .ad-image img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.post-inline-ad .ad-embed {
    width: 80%;
    height: 90px;
    border: 0;
    margin-inline: auto;
}

.post-inline-ad-placeholder {
    font-size: 14px;
    color: #626f86;
    letter-spacing: 0.03em;
}

.post-tags a {
    padding: 3px 6px;
    font-size: 11px;
}

.post-author-box {
    padding: 11px 12px;
}

.post-author-box h3 {
    font-size: 15px;
}

.post-author-box p {
    font-size: 14px;
}

.post-neighbors a,
.post-neighbors strong {
    font-size: 14px;
    line-height: 1.32;
}

.post-related-grid h2,
.post-comment-box h2 {
    font-size: 37px;
    letter-spacing: 0;
}

.post-related-items {
    gap: 8px;
}

.post-related-card img {
    height: 120px;
}

.post-related-title {
    font-size: 14px;
    min-height: 42px;
}

.post-comment-box textarea,
.post-comment-box input {
    font-size: 14px;
}

.post-comment-box button {
    padding: 7px 14px;
    font-size: 12px;
}

.post-sidebar {
    gap: 14px;
}

.post-widget-label {
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    padding: 5px 9px 4px;
    font-size: 12px;
}

.post-widget-label::after {
    border-top-width: 13px;
    border-bottom-width: 13px;
    right: -10px;
    border-left-width: 10px;
}

.post-follow-list li {
    font-size: 14px;
    line-height: 1.35;
    padding: 7px 0;
}

.post-follow-list li a {
    font-size: 12px;
}

.post-side-ad {
    min-height: 210px;
}

.post-side-recent-grid {
    gap: 6px;
}

.post-side-recent-card .title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.post-side-recent-card .meta {
    font-size: 11px;
}

.post-side-trending a {
    font-size: 14px;
    line-height: 1.44;
}

.post-social-head strong {
    font-size: 14px;
}

.post-social-card p {
    font-size: 13px;
}

.post-social-card img {
    height: 105px;
}

.post-side-pick img {
    height: 130px;
}

.post-side-pick .title {
    font-size: 14px;
}

.post-side-newsletter p {
    font-size: 13px;
}

.post-side-newsletter input {
    font-size: 13px;
    padding: 7px 8px;
}

.post-side-newsletter button {
    font-size: 12px;
    padding: 8px 9px;
}

/* ---------- Rich Footer ---------- */
.site-footer {
    margin-top: 26px;
    padding: 0;
    background: #0c1018;
    color: #9da7b8;
    text-align: left;
    border-top: 0;
}

.footer-newsbar {
    border-bottom: 1px solid #1a2130;
    background: #0d131e;
}

.footer-newsbar-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 16px var(--layout-gutter-desktop);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 18px;
    align-items: center;
}

.footer-newsbar-inner p {
    margin: 0;
    font-size: 14px;
    color: #c0c8d6;
}

.footer-newsbar-form {
    display: grid;
    grid-template-columns: 180px 180px auto;
    gap: 10px;
}

.footer-newsbar-form input {
    border: 1px solid #2b3345;
    background: #0a101a;
    color: #d5dce8;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 14px;
}

.footer-newsbar-form button {
    border: 0;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 14px;
    cursor: pointer;
}

[data-newsletter-form] button[disabled] {
    opacity: 0.68;
    cursor: not-allowed;
}

.newsletter-feedback {
    margin-top: 8px;
}

.newsletter-honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.newsletter-honeypot-field input {
    margin: 0;
}

.newsletter-captcha {
    grid-column: 1 / -1;
    margin: 4px 0 2px;
}

.post-side-newsletter .newsletter-captcha {
    margin-top: 6px;
}

.footer-newsbar-form .newsletter-feedback {
    grid-column: 1 / -1;
    margin-top: 0;
}

.footer-newsbar-form .site-flash,
.post-side-newsletter .site-flash {
    margin-bottom: 0;
}

.footer-main {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 22px var(--layout-gutter-desktop) 20px;
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 1fr 1fr;
    gap: 22px;
}

.footer-col {
    min-width: 0;
}

.footer-logo {
    width: min(190px, 100%);
    height: auto;
    display: block;
    margin-bottom: 10px;
    filter: brightness(1.05);
}

.footer-col-brand p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #9ea8ba;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-socials a {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    text-decoration: none;
    background: #1a2232;
    border: 1px solid #2b364c;
    color: #d4dceb;
    font-size: 13px;
}

.footer-heading {
    display: inline-block;
    position: relative;
    margin: 0 0 12px;
    background: #151d2a;
    color: #fff;
    padding: 7px 10px 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.footer-heading::after {
    content: "";
    position: absolute;
    right: -11px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 11px solid #151d2a;
}

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

.footer-links-grid a,
.footer-latest-links a {
    text-decoration: none;
    color: #a8b3c5;
    font-size: 15px;
    line-height: 1.4;
}

.footer-links-grid a:hover,
.footer-latest-links a:hover,
.footer-post-item:hover span {
    color: #ffffff;
}

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

.footer-post-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.footer-post-item img {
    width: 64px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #2f3a4f;
}

.footer-post-item span {
    color: #a8b3c5;
    font-size: 14px;
    line-height: 1.35;
}

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

.footer-bottom {
    border-top: 1px solid #1a2130;
    background: #090d15;
}

.footer-bottom-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 10px var(--layout-gutter-desktop);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #77829a;
}

.footer-bottom-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-bottom-inner nav a {
    text-decoration: none;
    color: #8e99ac;
}

.footer-bottom-inner nav a:hover {
    color: #ffffff;
}

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

    .post-reading-shell.has-toc {
        grid-template-columns: 1fr;
    }

    .post-reading-shell.has-toc .post-toc {
        position: static;
    }

    .footer-newsbar-inner {
        padding-inline: var(--layout-gutter-tablet);
        grid-template-columns: 1fr;
    }

    .footer-newsbar-form {
        grid-template-columns: 1fr 1fr auto;
    }

    .footer-main {
        padding-inline: var(--layout-gutter-tablet);
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom-inner {
        padding-inline: var(--layout-gutter-tablet);
    }
}

@media (max-width: 768px) {
    .post-head h1 {
        font-size: clamp(27px, 7.2vw, 36px);
    }

    .post-like-btn {
        width: 100%;
        justify-content: center;
    }

    .post-like-feedback {
        width: 100%;
    }

    .post-inline-related {
        float: none;
        width: 100%;
        margin: 0 0 14px;
    }

    .post-inline-ad .ad-image img,
    .post-inline-ad .ad-embed {
        height: 82px;
    }

    .post-inline-ad .ad-image,
    .post-inline-ad .ad-embed {
        width: 100%;
    }

    .post-related-grid h2,
    .post-comment-box h2 {
        font-size: 29px;
    }

    .footer-newsbar-inner {
        padding-inline: var(--layout-gutter-mobile);
    }

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

    .footer-main {
        padding-inline: var(--layout-gutter-mobile);
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-bottom-inner {
        padding-inline: var(--layout-gutter-mobile);
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Functional Additions (Forms, Cookies, Comments, Inline Media) ---------- */
body.is-home-page {
    background: #ebebeb;
}

body.is-category-page,
body.is-search-page,
body.is-post-detail,
body.is-content-page {
    background: #ffffff;
}

.site-flash {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.4;
}

.site-flash.site-flash-success {
    background: #ecfdf3;
    border-color: #b7f1cd;
    color: #166534;
}

.site-flash.site-flash-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.content-page {
    background: #fff;
    border: 1px solid #e3e8f2;
    padding: 20px;
}

.content-page-head h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 3.3vw, 52px);
    line-height: 1.08;
}

.content-page-head p {
    margin: 0 0 16px;
    color: #5d6a80;
    font-size: 18px;
    line-height: 1.5;
}

.content-page-body p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.75;
    color: #253146;
}

.contact-form-card {
    border: 1px solid #dee6f3;
    background: #fafdff;
    padding: 16px;
}

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

.contact-form-grid label {
    margin: 0;
    font-size: 13px;
    color: #4b5871;
}

.contact-form-grid .is-full {
    grid-column: 1 / -1;
}

.contact-form-grid input,
.contact-form-grid textarea {
    margin-top: 6px;
    margin-bottom: 0;
    border: 1px solid #d4deec;
    padding: 10px;
    width: 100%;
    font-size: 14px;
}

.contact-submit-btn {
    margin-top: 12px;
    border: 0;
    background: #1f4fd7;
    color: #fff;
    padding: 10px 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.cookie-consent {
    position: fixed;
    inset: auto 16px 16px auto;
    z-index: 1600;
    width: min(430px, calc(100vw - 24px));
    pointer-events: none;
}

.cookie-consent:not([hidden]) {
    pointer-events: auto;
}

.cookie-consent-panel {
    position: relative;
    border-radius: 8px;
    border: 1px solid #5f82bd;
    background: linear-gradient(148deg, #3f6fb6 0%, #2d5aa5 48%, #1f478d 100%);
    box-shadow: 0 16px 36px rgba(12, 30, 66, 0.36);
    padding: 14px 14px 12px;
    transform-origin: right bottom;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
}

.cookie-consent:not([hidden]):not(.is-closing) .cookie-consent-panel {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.cookie-consent.is-visible .cookie-consent-panel {
    animation: cookie-panel-enter 220ms ease-out forwards;
}

.cookie-consent.is-closing .cookie-consent-panel {
    animation: cookie-panel-exit 180ms ease-in forwards;
}

.cookie-consent-panel::before {
    content: none;
}

.cookie-consent-panel::after {
    content: none;
}

.cookie-consent-orb {
    display: none;
}

.cookie-consent-orb-one {
    display: none;
}

.cookie-consent-orb-two {
    display: none;
}

.cookie-consent-head,
.cookie-consent-pills,
.cookie-consent-actions,
.cookie-consent-footer {
    position: relative;
}

.cookie-consent-head {
    padding-right: 26px;
}

.cookie-consent-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(214, 230, 255, 0.45);
    background: rgba(227, 240, 255, 0.14);
    color: #e8f2ff;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.cookie-consent-close:hover {
    background: rgba(227, 240, 255, 0.26);
    border-color: rgba(227, 240, 255, 0.62);
    color: #ffffff;
}

.cookie-consent-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(212, 230, 255, 0.5);
    background: rgba(231, 242, 255, 0.18);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #e8f1ff;
}

.cookie-consent-kicker i {
    font-size: 11px;
    color: #d7e8ff;
}

.cookie-consent-panel h3 {
    margin: 8px 0 6px;
    font-size: 35px;
    line-height: 0.98;
    letter-spacing: -0.01em;
    color: #f4f8ff;
}

.cookie-consent-panel p {
    margin: 0 0 10px;
    color: #deebff;
    font-size: 14px;
    line-height: 1.45;
}

.cookie-consent-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.cookie-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.cookie-pill.is-essential {
    background: rgba(239, 247, 255, 0.2);
    border: 1px solid rgba(216, 231, 255, 0.5);
    color: #f1f7ff;
}

.cookie-pill.is-optional {
    background: rgba(226, 240, 255, 0.14);
    border: 1px solid rgba(196, 220, 255, 0.46);
    color: #d8e9ff;
}

.cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.cookie-btn {
    border: 1px solid #d4dce8;
    border-radius: 4px;
    min-height: 36px;
    background: #fff;
    color: #1f2b3b;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.cookie-btn:hover {
    background: #f7f9fc;
    border-color: #c4cfdd;
}

.cookie-btn:active {
    background: #eef2f8;
}

.cookie-btn:focus-visible,
.cookie-consent-link:focus-visible {
    outline: 2px solid #1f4fd7;
    outline-offset: 2px;
}

.cookie-btn.cookie-btn-secondary {
    border-color: rgba(219, 232, 255, 0.45);
    background: rgba(232, 243, 255, 0.12);
    color: #eef5ff;
}

.cookie-btn.cookie-btn-secondary:hover {
    border-color: rgba(236, 246, 255, 0.6);
    background: rgba(232, 243, 255, 0.24);
    color: #ffffff;
}

.cookie-btn.cookie-btn-secondary:active {
    background: rgba(219, 236, 255, 0.28);
}

.cookie-btn.cookie-btn-primary {
    border-color: #ffffff;
    background: #ffffff;
    color: #1f4fd7;
}

.cookie-btn.cookie-btn-primary:hover {
    background: #edf4ff;
    border-color: #edf4ff;
}

.cookie-consent-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(214, 230, 255, 0.34);
    padding-top: 8px;
}

.cookie-consent-link {
    color: #f2f7ff;
    font-weight: 600;
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cookie-consent-link:hover {
    text-decoration: underline;
}

.cookie-consent-note {
    color: #cddfff;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cookie-settings-trigger {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1580;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #1f4fd7;
    background: #1f4fd7;
    color: #fff;
    border-radius: 4px;
    padding: 8px 11px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 34, 72, 0.3);
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.cookie-settings-trigger:hover {
    background: #1845c2;
    border-color: #1845c2;
    transform: translateY(-1px);
}

@keyframes cookie-panel-enter {
    0% {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes cookie-panel-exit {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, 8px, 0);
    }
}

.post-comments-list {
    margin-top: 18px;
    border-top: 1px solid #e5ebf5;
    padding-top: 14px;
}

.post-comments-list h2 {
    margin: 0 0 12px;
    font-size: 33px;
    line-height: 1.08;
    color: #202938;
}

.post-comments-empty {
    margin: 0 0 12px;
    color: #67748c;
    font-size: 15px;
}

.post-comment-item {
    border: 1px solid #e1e8f3;
    background: #fbfdff;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.post-comment-item header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
}

.post-comment-item header strong {
    font-size: 15px;
    color: #1f293d;
}

.post-comment-item header span {
    font-size: 12px;
    color: #7a8599;
}

.post-comment-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #2c364b;
}

.post-content img.tt-img-size-sm { width: min(34%, 260px); }
.post-content img.tt-img-size-md { width: min(52%, 420px); }
.post-content img.tt-img-size-lg { width: min(68%, 620px); }
.post-content img.tt-img-size-full { width: 100%; max-width: 100%; }

.post-content img.tt-img-align-left {
    float: left;
    margin: 6px 18px 12px 0;
}

.post-content img.tt-img-align-center {
    float: none;
    display: block;
    margin: 10px auto 12px;
}

.post-content img.tt-img-align-right {
    float: right;
    margin: 6px 0 12px 18px;
}

@media (max-width: 1024px) {
    .cookie-consent {
        inset: auto 12px 12px auto;
        width: min(420px, calc(100vw - 24px));
    }
}

@media (max-width: 768px) {
    .content-page {
        padding: 14px;
    }

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

    .cookie-consent {
        inset: auto 10px 10px 10px;
        width: auto;
        max-width: none;
    }

    .cookie-consent-actions {
        grid-template-columns: 1fr;
    }

    .cookie-consent-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-panel h3 {
        font-size: 24px;
    }

    .cookie-settings-trigger {
        right: 10px;
        bottom: 10px;
        font-size: 10px;
        padding: 7px 10px;
    }

    .post-content img.tt-img-align-left,
    .post-content img.tt-img-align-right,
    .post-content img.tt-img-size-sm,
    .post-content img.tt-img-size-md,
    .post-content img.tt-img-size-lg {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 10px 0 12px;
    }

    body.is-home-page {
        overflow-x: hidden;
    }

    body.is-home-page .page {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow-x: hidden;
    }

    body.is-home-page .hero-grid,
    body.is-home-page .hero-left,
    body.is-home-page .hero-right,
    body.is-home-page .hero-right-top,
    body.is-home-page .hero-right-bottom,
    body.is-home-page .mini-grid,
    body.is-home-page .compact-cards {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.is-home-page .hero-grid,
    body.is-home-page .hero-right-top,
    body.is-home-page .hero-right-bottom,
    body.is-home-page .mini-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.is-home-page .hero-grid > *,
    body.is-home-page .hero-left > *,
    body.is-home-page .hero-right > *,
    body.is-home-page .hero-right-top > *,
    body.is-home-page .hero-right-bottom > *,
    body.is-home-page .mini-grid > * {
        min-width: 0;
    }

    body.is-home-page .hero-main,
    body.is-home-page .hero-carousel,
    body.is-home-page .mini-card,
    body.is-home-page .compact-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.is-home-page .hero-right-top {
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow: hidden;
    }

    body.is-home-page .hero-right-top .hero-tile,
    body.is-home-page .hero-right-top .feature-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    body.is-home-page .hero-right-top .hero-tile {
        aspect-ratio: auto;
        min-height: 200px;
    }

    body.is-home-page .hero-right-top .feature-content {
        left: 12px;
        right: 12px;
        max-width: none;
        width: auto;
    }

    body.is-home-page .hero-right-top .feature-content h3,
    body.is-home-page .hero-right-top .feature-content .meta {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    body.is-home-page .section-header,
    body.is-home-page .mag-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    body.is-home-page .section-tabs,
    body.is-home-page .mag-section-tabs {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.is-home-page .mini-card,
    body.is-home-page .compact-card,
    body.is-home-page .section-card,
    body.is-home-page .mag-list-card,
    body.is-home-page .mag-lead-card,
    body.is-home-page .mini-content,
    body.is-home-page .mag-list-body,
    body.is-home-page .compact-card > div {
        min-width: 0;
    }

    body.is-home-page .mini-title,
    body.is-home-page .compact-title,
    body.is-home-page .section-title,
    body.is-home-page .mag-list-title {
        overflow-wrap: anywhere;
    }
}

/* ---------- Category Page Magazine Layout ---------- */
.page-category {
    padding-top: 22px;
}

.page-category .category-page-shell {
    display: grid;
    gap: 16px;
}

.page-category .category-page-head {
    background: #fff;
    border: 1px solid #dce3ef;
    padding: 22px 20px;
    text-align: center;
}

.page-category .category-page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: #8a93a6;
    font-size: 13px;
}

.page-category .category-page-breadcrumb a {
    text-decoration: none;
    color: #8a93a6;
}

.page-category .category-page-breadcrumb a:hover {
    color: #1e4fd9;
}

.page-category .category-page-head h1 {
    margin: 0;
    font-size: clamp(30px, 3.3vw, 44px);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #1b2438;
}

.page-category .category-page-head h1 span {
    color: #1e4fd9;
}

.page-category .category-page-tabs {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-category .category-page-tabs a {
    text-decoration: none;
    border: 1px solid #d8e1ee;
    padding: 5px 9px;
    font-size: 12px;
    color: #5d6980;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.page-category .category-page-tabs a.active,
.page-category .category-page-tabs a:hover {
    border-color: #1e4fd9;
    color: #1e4fd9;
}

.page-category .category-page-top-ad {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-category .category-page-top-ad .ad-image,
.page-category .category-page-top-ad .ad-embed,
.page-category .category-page-top-ad-placeholder {
    width: min(100%, 728px);
}

.page-category .category-page-top-ad > img,
.page-category .category-page-top-ad > iframe {
    width: min(100%, 728px);
    height: 90px;
    display: block;
    object-fit: cover;
    border: 1px solid #dce3ef;
    background: #fff;
}

.page-category .category-page-top-ad .ad-image {
    display: block;
    height: 90px;
    overflow: hidden;
    border: 1px solid #dce3ef;
    background: #fff;
}

.page-category .category-page-top-ad .ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-category .category-page-top-ad .ad-embed {
    height: 90px;
    border: 1px solid #dce3ef;
    background: #fff;
}

.page-category .category-page-top-ad-placeholder {
    min-height: 90px;
    display: grid;
    place-items: center;
    border: 1px dashed #c6d2e7;
    background: #f7faff;
    color: #5f6f8c;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-category .category-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 324px;
    gap: 16px;
    align-items: start;
}

.page-category .category-page-main {
    display: grid;
    gap: 10px;
}

.page-category .category-featured-row {
    margin-bottom: 0;
}

.page-category .category-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.page-category .category-featured-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: #fff;
    min-height: 290px;
    border: 1px solid #dce3ef;
    overflow: hidden;
    background: #0f182d;
}

.page-category .category-featured-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-category .category-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 15, 30, 0.12), rgba(8, 15, 30, 0.82));
}

.page-category .category-featured-body {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 1;
}

.page-category .category-featured-body h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.page-category .category-featured-body .meta {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.page-category .category-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.page-category .category-feed-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid #dce3ef;
    background: #fff;
    color: inherit;
}

.page-category .category-feed-card img {
    width: 100%;
    height: 188px;
    object-fit: cover;
    display: block;
}

.page-category .category-feed-body {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.page-category .category-feed-body h3 {
    margin: 0 0 6px;
    font-size: 34px;
    line-height: 1.12;
    color: #1d283c;
    letter-spacing: -0.01em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-category .category-feed-body .meta {
    color: #6f7a8f;
    font-size: 12px;
    margin-bottom: 6px;
}

.page-category .category-feed-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.46;
    color: #4f5a70;
    margin-top: auto;
}

.page-category .category-feed-empty {
    border: 1px dashed #d0daeb;
    background: #f8fbff;
    color: #55627b;
    padding: 20px;
    text-align: center;
}

.page-category .category-page-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.page-category .category-page-link,
.page-category .category-page-nav {
    min-width: 28px;
    height: 28px;
    border: 1px solid #d5deec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #4c5871;
    background: #fff;
    font-size: 13px;
}

.page-category .category-page-link:hover,
.page-category .category-page-nav:hover {
    border-color: #1e4fd9;
    color: #1e4fd9;
}

.page-category .category-page-link.active {
    border-color: #1e4fd9;
    background: #1e4fd9;
    color: #fff;
}

.page-category .category-page-ellipsis {
    color: #8b95a9;
    font-size: 13px;
    padding: 0 2px;
}

.page-category .category-page-sidebar {
    display: grid;
    gap: 14px;
}

.page-category .category-page-sidebar .post-side-ad {
    min-height: 250px;
}

.page-category .category-page-sidebar .post-side-ad .ad-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-category .category-page-sidebar .post-side-ad .ad-embed {
    width: 100%;
    height: 250px;
    border: 0;
}

@media (max-width: 1280px) {
    .page-category .category-page-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 1100px) {
    .page-category .category-featured-body h2 {
        font-size: 27px;
    }

    .page-category .category-feed-body h3 {
        font-size: 28px;
    }
}

@media (max-width: 1024px) {
    .page-category .category-page-layout {
        grid-template-columns: 1fr;
    }

    .page-category .category-featured-grid,
    .page-category .category-feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .page-category .category-page-head {
        padding: 16px 14px;
    }

    .page-category .category-page-head h1 {
        font-size: clamp(25px, 8vw, 34px);
    }

    .page-category .category-featured-grid,
    .page-category .category-feed-grid {
        grid-template-columns: 1fr;
    }

    .page-category .category-featured-card {
        min-height: 240px;
    }

    .page-category .category-featured-body h2 {
        font-size: 25px;
    }

    .page-category .category-feed-body h3 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-panel,
    .cookie-consent-panel::after,
    .cookie-consent-orb-one,
    .cookie-consent-orb-two,
    .cookie-btn,
    .cookie-settings-trigger {
        animation: none !important;
        transition: none !important;
    }
}
