/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* Base and Theme */
:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --ink: #172033;
    --muted: #647084;
    --line: #dfe5ef;
    --primary: #0f766e;
    --primary-dark: #134e4a;
    --accent: #f59e0b;
    --accent-soft: #fff7df;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.75;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

a:hover,
a:focus-visible {
    color: var(--primary-dark);
    outline: none;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--accent);
}

/* Header and Navigation
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.navbar {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    width: 128px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--radius);
    color: #344054;
    font-size: 0.94rem;
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links .active {
    color: var(--primary-dark);
    background: #e7f5f2;
}

.nav-cta {
    color: #ffffff !important;
    background: var(--primary);
}

.nav-cta:hover,
.nav-cta:focus-visible {
    color: #ffffff !important;
    background: var(--primary-dark) !important;
} */

/* Article Hero */
.article-hero {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(9, 33, 40, 0.93), rgba(9, 33, 40, 0.68)), var(--hero-image) center / cover no-repeat;
}

.article-hero-inner {
    display: grid;
    min-height: 490px;
    align-items: center;
    padding: 72px 0 88px;
}

.article-hero-content {
    max-width: 820px;
}

.article-hero .eyebrow {
    color: #f8d36f;
}

.article-hero h1 {
    margin: 0;
    font-size: clamp(2.25rem, 6vw, 5rem);
    line-height: 1.02;
}

.article-hero p {
    max-width: 680px;
    margin: 22px 0 0;
    color: #d8e4e6;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Layout */
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    padding: 74px 0;
}

.article-card,
.sidebar-card,
.cta-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.article-card {
    overflow: hidden;
}

.article-cover {
    aspect-ratio: 16 / 8;
    background: #dfe7ea;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.article-body {
    padding: clamp(24px, 5vw, 54px);
}

.article-body h2,
.article-body h3 {
    margin: 38px 0 14px;
    color: var(--ink);
    line-height: 1.22;
}

.article-body h2 {
    font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.article-body h3 {
    font-size: clamp(1.28rem, 2vw, 1.55rem);
}

.article-body p {
    margin: 0 0 18px;
    color: #3f4b5f;
    font-size: 1.02rem;
}

.article-body ul,
.article-body ol {
    display: grid;
    gap: 12px;
    margin: 18px 0 26px;
    padding-left: 22px;
}

.article-body li {
    color: #3f4b5f;
}

.article-body strong {
    color: var(--ink);
}

.lead {
    color: #2b384c !important;
    font-size: 1.15rem !important;
    font-weight: 500;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.info-box {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f9fbfd;
}

.info-box h3 {
    margin-top: 0;
    font-size: 1.08rem;
}

.check-list {
    padding-left: 0 !important;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: inset 0 0 0 3px #d7f4ef;
}

.note {
    margin: 30px 0;
    padding: 22px;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent-soft);
}

.note p:last-child {
    margin-bottom: 0;
}

/* Sidebar */
.sidebar {
    display: grid;
    align-content: start;
    gap: 22px;
}

.sidebar-card {
    padding: 24px;
}

.sidebar-card h2 {
    margin: 0 0 18px;
    font-size: 1.18rem;
    line-height: 1.25;
}

.toc-list,
.related-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc-list a,
.related-list a {
    display: block;
    padding: 11px 12px;
    border-radius: var(--radius);
    color: #304056;
    background: #f7f9fc;
    font-weight: 700;
}

.toc-list a:hover,
.toc-list a:focus-visible,
.related-list a:hover,
.related-list a:focus-visible {
    color: var(--primary-dark);
    background: #e7f5f2;
}

.cta-panel {
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(140deg, var(--primary), var(--primary-dark));
}

.cta-panel h2,
.cta-panel p {
    color: #ffffff;
}

.cta-panel h2 {
    margin: 0 0 10px;
    font-size: 1.28rem;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 11px 18px;
    border-radius: var(--radius);
    color: #103233;
    background: #ffffff;
    font-weight: 800;
}

.button:hover,
.button:focus-visible {
    color: #103233;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

/* Footer */
.site-footer {
    padding: 34px 0;
    color: #c6d4d6;
    background: #0b262b;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: #c6d4d6;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 980px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

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

    .cta-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .brand img {
        width: 112px;
    }

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

    .nav-links a {
        width: 100%;
        justify-content: center;
    }

    .article-hero-inner {
        min-height: auto;
        padding: 56px 0 68px;
    }

    .page-layout {
        padding: 52px 0;
    }

    .article-cover {
        aspect-ratio: 16 / 11;
    }

    .info-grid,
    .sidebar {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 440px) {
    .nav-links {
        grid-template-columns: 1fr;
    }

    .article-meta {
        display: grid;
    }

    .article-body,
    .sidebar-card,
    .cta-panel {
        padding: 20px;
    }

    .button {
        width: 100%;
    }
}
