.post-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 16px 28px;
}

.post-subheader {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    color: #64748b;
    margin-bottom: 12px;
}

.post-subheader a {
    color: #0369a1;
    text-decoration: none;
}

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

.post-subheader-current {
    color: #0f172a;
    font-weight: 600;
}

.post-title {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.2;
    color: #0f172a;
}

.post-lead {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.5;
    color: #334155;
}

.post-meta-line {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.82rem;
    color: #64748b;
}

.post-ad-slot {
    margin-top: 12px;
}

.post-content {
    padding: 0;
    overflow-wrap: anywhere;
}

.post-content > .article-content {
    max-width: 850px;
    margin: 0 auto;
}

.post-content p,
.post-content li {
    line-height: 1.72;
}

.post-content h2 {
    margin-top: 1.6rem;
}

.post-content h3 {
    margin-top: 1.2rem;
}

.post-tldr {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 14px 0;
}

.post-tldr-title {
    margin: 0 0 6px;
    font-weight: 700;
    color: #1d4ed8;
}

.post-callout {
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 14px 0;
}

.post-callout--info {
    border-color: #93c5fd;
    border-left-color: #2563eb;
    background: #eff6ff;
}

.post-callout--warning {
    border-color: #fcd34d;
    border-left-color: #d97706;
    background: #fffbeb;
}

.post-callout--tip {
    border-color: #86efac;
    border-left-color: #16a34a;
    background: #f0fdf4;
}

.post-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.92rem;
}

.post-table th,
.post-table td {
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    text-align: left;
}

.post-table--zebra tbody tr:nth-child(even) {
    background: #f8fafc;
}

.post-table--comparison th {
    background: #eff6ff;
    color: #0c4a6e;
}

.post-table--minimal th,
.post-table--minimal td {
    border-left: 0;
    border-right: 0;
}

.post-related {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.post-related h2 {
    margin: 0 0 10px;
}

.post-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.post-related-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    background: #f8fafc;
}

.post-related-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.post-related-card p {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #334155;
}

.post-read-more {
    display: inline-block;
    color: #0369a1;
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
}

.post-read-more:hover {
    text-decoration: underline;
}

.post-hub {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 16px 34px;
}

.post-hub-header {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 20px 20px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.35), transparent 45%),
        radial-gradient(circle at left bottom, rgba(167, 139, 250, 0.18), transparent 40%),
        rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.post-hub-header h1 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.2;
    color: #0f172a;
}

.post-hub-header p {
    margin: 0;
    max-width: 920px;
    color: #334155;
    line-height: 1.55;
}

.post-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.post-hub-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 220px;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.72)),
        rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.post-hub-card::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.17), transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 220ms ease;
}

.post-hub-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.42);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.post-hub-card:hover::before {
    opacity: 1;
}

.post-hub-card:focus-within {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 18px 34px rgba(15, 23, 42, 0.12);
}

.post-hub-card h3 {
    margin: 0 0 8px;
    font-size: 1.04rem;
    line-height: 1.35;
}

.post-hub-card h3 a {
    color: #0f172a;
    text-decoration: none;
}

.post-hub-card h3 a:hover {
    color: #0f4c81;
}

.post-hub-card p {
    margin: 0;
    color: #334155;
    line-height: 1.55;
    flex-grow: 1;
}

.post-hub-meta {
    font-size: 0.82rem;
    color: #475569;
    margin-bottom: 2px;
}

.post-hub-card .post-read-more {
    align-self: flex-start;
    margin-top: 4px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(100, 116, 139, 0.25);
    color: #0f4c81;
    text-decoration: none;
    font-size: 0.82rem;
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.post-hub-card .post-read-more:hover {
    background: rgba(14, 116, 144, 0.14);
    border-color: rgba(14, 116, 144, 0.45);
    color: #0c4a6e;
    text-decoration: none;
}

body.dark-mode .post-hub-header {
    border-color: rgba(100, 116, 139, 0.45);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.2), transparent 45%),
        radial-gradient(circle at left bottom, rgba(96, 165, 250, 0.12), transparent 40%),
        rgba(15, 23, 42, 0.75);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

body.dark-mode .post-hub-header h1 {
    color: #e2e8f0;
}

body.dark-mode .post-hub-header p {
    color: #cbd5e1;
}

body.dark-mode .post-hub-card {
    border-color: rgba(100, 116, 139, 0.42);
    background:
        linear-gradient(140deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.82)),
        rgba(15, 23, 42, 0.78);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.34);
}

body.dark-mode .post-hub-card h3 a {
    color: #e2e8f0;
}

body.dark-mode .post-hub-card h3 a:hover {
    color: #93c5fd;
}

body.dark-mode .post-hub-card p {
    color: #cbd5e1;
}

body.dark-mode .post-hub-meta {
    color: #94a3b8;
}

body.dark-mode .post-hub-card .post-read-more {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(125, 211, 252, 0.3);
}

body.dark-mode .post-hub-card .post-read-more:hover {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.24);
    border-color: rgba(125, 211, 252, 0.45);
}

@media (prefers-reduced-motion: reduce) {
    .post-hub-card {
        transition: none;
    }

    .post-hub-card::before {
        transition: none;
    }
}

@media (max-width: 720px) {
    .post-wrapper {
        padding: 10px 10px 22px;
    }
    .post-content {
        padding: 12px;
    }
    .post-hub {
        padding: 14px 10px 24px;
    }
    .post-hub-header {
        padding: 14px 14px 12px;
        border-radius: 14px;
    }
    .post-hub-grid {
        gap: 10px;
    }
    .post-hub-card {
        min-height: 0;
        border-radius: 12px;
    }
}
