* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fdfbf7;
    color: #1a1a2e;
    font-family: 'Inter', sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #d4af37;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

a:hover {
    color: #b8941e;
}

h1,
h2,
h3,
h4 {
    color: #0c2340;
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
}

p,
ul,
ol {
    margin-bottom: 18px;
}

ul,
ol {
    padding-left: 22px;
}

li {
    margin-bottom: 8px;
}

.container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
    width: 100%;
}

.post-header {
    background: linear-gradient(135deg, #0c2340 0%, #1a1a2e 100%);
    color: #fff;
    padding: 58px 0 42px;
}

.breadcrumb {
    color: #8892b0;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.post-tag {
    background: rgba(212, 175, 55, 0.14);
    border-radius: 999px;
    color: #d4af37;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding: 4px 14px;
}

.post-header h1 {
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: 14px;
}

.post-dek {
    color: #d9e0ef;
    font-size: 1.08rem;
    margin-bottom: 18px;
    max-width: 760px;
}

.post-meta {
    color: #a9b3c9;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
}

.post-hero {
    margin-top: -28px;
}

.post-hero img {
    background: #efe7d7;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(12, 35, 64, 0.16);
    width: 100%;
}

.post-utility {
    padding-top: 28px;
}

.post-utility--compact {
    align-items: center;
    display: flex;
}

.article-layout {
    align-items: start;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    padding-bottom: 28px;
    padding-top: 26px;
}

.article-share-rail {
    position: sticky;
    top: 108px;
}

.feature-card {
    background: linear-gradient(180deg, #fff, #fbf8f2);
    border: 1px solid rgba(12, 35, 64, 0.08);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(12, 35, 64, 0.06);
    padding: 24px;
}

.back-link {
    align-items: center;
    color: #36506f;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    margin-bottom: 16px;
}

.back-link svg {
    fill: currentColor;
    height: 18px;
    width: 18px;
}

.share-card {
    height: 100%;
}

.share-card .share-headline,
.related-section h2 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.share-card p {
    color: #53657d;
    margin-bottom: 0;
}

.share-card--rail {
    background: linear-gradient(180deg, #fff, #f8f4ea);
    border-color: rgba(212, 175, 55, 0.24);
    position: relative;
}

.share-card--rail::before {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.7), rgba(128, 0, 32, 0.18));
    border-radius: 999px 999px 12px 12px;
    content: '';
    height: 3px;
    inset: 0 20px auto;
    position: absolute;
    width: auto;
}

.share-card--rail>* {
    position: relative;
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.share-card--rail .share-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
}

.share-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(12, 35, 64, 0.1);
    border-radius: 16px;
    color: #0c2340;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 52px;
    padding: 0;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.share-card--rail .share-button {
    width: 100%;
}

.share-button:hover,
.share-button.is-copied {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.22);
    box-shadow: 0 10px 22px rgba(12, 35, 64, 0.08);
    color: #b8941e;
    transform: translateY(-1px);
}

.share-button:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.5);
    outline-offset: 2px;
}

.share-button svg {
    fill: currentColor;
    height: 18px;
    width: 18px;
}

.share-button__label {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.post-article {
    max-width: 840px;
    padding-bottom: 0;
    padding-top: 0;
}

.post-article h2 {
    font-size: 1.7rem;
    margin: 40px 0 14px;
}

.post-article h3 {
    font-size: 1.2rem;
    margin: 28px 0 10px;
}

.post-article a {
    color: #b8941e;
    text-decoration: underline;
    text-decoration-color: rgba(184, 148, 30, 0.35);
    text-underline-offset: 3px;
    transition: color 180ms ease, text-decoration-color 180ms ease;
}

.post-article a:hover {
    color: #d4af37;
    text-decoration-color: #d4af37;
}

.post-article strong {
    color: #0c2340;
}

.toc {
    background: linear-gradient(180deg, #fffdf8, #f7efe2);
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(12, 35, 64, 0.08);
    margin-bottom: 28px;
    padding: 20px;
}

.toc-title {
    color: #8f6b16;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.toc ul {
    counter-reset: guide-steps;
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li {
    counter-increment: guide-steps;
    margin-bottom: 0;
}

.toc a {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(12, 35, 64, 0.08);
    border-radius: 16px;
    color: #0c2340;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr;
    font-weight: 700;
    padding: 12px 14px;
    text-decoration: none;
}

.toc a::before {
    align-items: center;
    background: linear-gradient(135deg, #d4af37, #b8941e);
    border-radius: 999px;
    color: #0c2340;
    content: counter(guide-steps, decimal-leading-zero);
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.faq a {
    text-decoration: none;
}

.toc a:hover {
    border-color: rgba(212, 175, 55, 0.24);
    box-shadow: 0 10px 20px rgba(12, 35, 64, 0.06);
    color: #800020;
    transform: translateY(-1px);
}

.info-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(128, 0, 32, 0.04));
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 18px;
    margin: 24px 0;
    padding: 18px 20px;
}

.info-box h4,
.info-box .info-title {
    color: #800020;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 6px;
}

.faq {
    margin-top: 40px;
}

.faq h2 {
    margin-bottom: 16px;
}

.faq details {
    background: #fff;
    border: 1px solid #e7e3d8;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(12, 35, 64, 0.04);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.faq summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-weight: 700;
    gap: 16px;
    justify-content: space-between;
    list-style: none;
    padding: 16px 18px;
}

.faq summary::after {
    align-items: center;
    background: rgba(212, 175, 55, 0.14);
    border-radius: 999px;
    color: #b8941e;
    content: '+';
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.35rem;
    height: 32px;
    justify-content: center;
    line-height: 1;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
    width: 32px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq details[open] {
    border-color: rgba(212, 175, 55, 0.32);
    box-shadow: 0 16px 28px rgba(12, 35, 64, 0.08);
}

.faq details[open] summary::after {
    background: rgba(212, 175, 55, 0.22);
    color: #800020;
    transform: rotate(45deg);
}

.faq p {
    color: #4a5568;
    padding: 0 18px 18px;
}

.related-section {
    padding-bottom: 22px;
}

.section-kicker {
    color: #b8941e;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.related-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.related-card {
    background: #fff;
    border: 1px solid rgba(12, 35, 64, 0.08);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(12, 35, 64, 0.06);
    overflow: hidden;
}

.related-card__image {
    aspect-ratio: 16 / 9;
    background: #f1eadc;
    display: block;
    overflow: hidden;
}

.related-card__image img {
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
    width: 100%;
}

.related-card:hover .related-card__image img {
    transform: scale(1.06);
}

.related-card__body {
    padding: 18px;
}

.related-card__tag {
    background: rgba(212, 175, 55, 0.12);
    border-radius: 999px;
    color: #b8941e;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 10px;
    padding: 4px 10px;
}

.related-card__body h3 {
    font-size: 1.12rem;
    margin: 0 0 8px;
}

.related-card__body h3 a {
    color: #0c2340;
}

.related-card__body p {
    color: #53657d;
    font-size: 0.92rem;
}

.related-card__meta {
    color: #718096;
    display: flex;
    font-size: 0.78rem;
    gap: 14px;
}

.post-cta {
    margin: 10px auto 42px;
    max-width: 840px;
}

.post-cta-inner {
    background: linear-gradient(135deg, #0c2340, #1a1a2e);
    border-radius: 24px;
    color: #fff;
    padding: 34px 30px;
    text-align: center;
}

.post-cta-inner h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.post-cta-inner p {
    color: #c8d3ea;
    margin-bottom: 16px;
}

.btn {
    background: #d4af37;
    border-radius: 10px;
    color: #0c2340;
    display: inline-block;
    font-weight: 800;
    padding: 12px 24px;
}

.btn:hover {
    background: #b8941e;
    color: #0c2340;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {

    .article-layout,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-layout {
        gap: 24px;
    }

    .article-share-rail {
        order: -1;
        position: static;
    }

    .share-card--rail::before {
        inset: 0 18px auto 18px;
    }

    .share-card--rail .share-actions {
        grid-template-columns: repeat(auto-fit, minmax(48px, 56px));
    }
}

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 2rem;
    }

    .article-layout {
        gap: 20px;
        padding-top: 20px;
    }

    .share-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(48px, 56px));
    }

    .share-button {
        justify-content: center;
    }

    .share-card--rail .share-button {
        width: 100%;
    }

    .toc a {
        align-items: start;
    }
}