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

:root {
    --orange: #ff9900;
    --orange-dark: #d97706;
    --orange-soft: #fff5df;
    --navy: #172234;
    --ink: #151b26;
    --muted: #5e6878;
    --line: #e4e8ee;
    --surface: #ffffff;
    --canvas: #f6f7f9;
    --radius: 14px;
    --shadow: 0 14px 38px rgba(24, 34, 52, .08);
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: "Poppins", system-ui, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.container { width: min(100% - 36px, var(--container)); margin-inline: auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 2000; padding: 10px 16px; background: var(--navy); color: white; }
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky; top: 0; z-index: 1000; height: 72px;
    background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 800 25px/1 "Montserrat", sans-serif; letter-spacing: -.8px; }
.brand span { color: var(--orange); }
.main-navigation { margin-left: auto; }
.main-navigation ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { color: #364152; font-size: 14px; font-weight: 500; }
.main-navigation a:hover, .main-navigation a:focus-visible { color: var(--orange-dark); }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 8px 12px; }
.header-ai-link, .button { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 600; transition: .18s ease; }
.header-ai-link { padding: 10px 18px; background: var(--orange); color: #191919; }
.header-ai-link:hover { background: #eca000; transform: translateY(-1px); }

.home-hero { padding: 86px 0 72px; background: linear-gradient(145deg, #fff 0%, #fffaf0 62%, #fff1d1 100%); border-bottom: 1px solid #f2e4c6; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); align-items: center; gap: 74px; }
.eyebrow { display: inline-block; color: var(--orange-dark); font: 700 12px/1.4 "Montserrat", sans-serif; letter-spacing: 1.2px; text-transform: uppercase; }
.home-hero h1, .archive-hero h1, .content-card h1 { font-family: "Montserrat", sans-serif; letter-spacing: -2.3px; color: var(--navy); }
.home-hero h1 { max-width: 760px; margin: 14px 0 22px; font-size: clamp(43px, 6vw, 72px); line-height: 1.04; }
.home-hero h1 span { color: var(--orange-dark); }
.home-hero p { max-width: 690px; margin: 0 0 30px; color: var(--muted); font-size: 18px; }
.hero-search { display: flex; max-width: 710px; padding: 6px; background: white; border: 1px solid #d6dce4; border-radius: 12px; box-shadow: 0 14px 34px rgba(23, 34, 52, .1); }
.hero-search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 153, 0, .15); }
.hero-search input { min-width: 0; flex: 1; padding: 14px 16px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.hero-search button { min-width: 112px; padding: 12px 20px; border: 0; border-radius: 8px; background: var(--orange); color: #171717; font-weight: 700; cursor: pointer; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button { padding: 12px 20px; border: 1px solid transparent; }
.button-primary { background: var(--orange); color: #171717; }
.button-primary:hover { background: #eca000; transform: translateY(-1px); }
.button-secondary { background: white; border-color: #ced5de; }
.button-secondary:hover { background: #f7f8fa; }
.hero-panel { position: relative; padding: 28px; color: white; background: var(--navy); border-radius: 18px; box-shadow: 20px 24px 0 var(--orange-soft); }
.hero-panel-label { color: #ffc35a; font: 700 12px/1 "Montserrat", sans-serif; letter-spacing: 1.2px; text-transform: uppercase; }
.hero-panel ol { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: route; }
.hero-panel li { counter-increment: route; display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.hero-panel li::before { content: counter(route); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--orange); color: #1b1b1b; font-weight: 800; }
.hero-panel strong, .hero-panel span { display: block; }
.hero-panel span { color: #b9c1ce; font-size: 13px; }

.section { padding-top: 72px; padding-bottom: 72px; }
.section-muted { background: #edf0f4; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-title h2 { margin: 6px 0 0; color: var(--navy); font: 700 clamp(28px, 4vw, 39px)/1.15 "Montserrat", sans-serif; letter-spacing: -1.1px; }
.section-title > a { color: var(--orange-dark); font-weight: 600; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.category-card { min-height: 132px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 16px rgba(24,34,52,.03); }
.category-card:hover { transform: translateY(-3px); border-color: #f0b343; box-shadow: var(--shadow); }
.category-card span { display: block; min-height: 42px; color: var(--navy); font-weight: 600; line-height: 1.35; }
.category-card strong { display: inline-block; margin-top: 14px; color: var(--orange-dark); font: 700 20px/1 "Montserrat", sans-serif; }
.category-card small { margin-left: 4px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.resource-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(24,34,52,.04); }
.resource-card:hover { border-color: #efbd61; box-shadow: var(--shadow); }
.resource-type { color: var(--orange-dark); font: 700 11px/1 "Montserrat", sans-serif; letter-spacing: .9px; text-transform: uppercase; }
.resource-card h2, .resource-card h3 { margin: 12px 0 10px; color: var(--navy); font: 700 19px/1.38 "Montserrat", sans-serif; letter-spacing: -.35px; overflow-wrap: anywhere; }
.resource-card h2 a:hover, .resource-card h3 a:hover { color: var(--orange-dark); }
.resource-card p { flex: 1; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.card-link { color: var(--orange-dark); font-weight: 600; font-size: 14px; }

.archive-hero { padding: 70px 0 56px; background: linear-gradient(140deg, #fff, #fff5df); border-bottom: 1px solid #f0dfbe; }
.archive-hero h1 { max-width: 900px; margin: 12px 0; font-size: clamp(38px, 6vw, 60px); line-height: 1.08; }
.archive-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; }
.search-page-form { margin-top: 28px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 38px; }
.pagination a { padding: 9px 14px; background: white; border: 1px solid var(--line); border-radius: 8px; color: var(--orange-dark); font-weight: 600; }
.pagination span { color: var(--muted); }
.empty-state { padding: 28px; color: var(--muted); background: white; border: 1px dashed #c9d0da; border-radius: var(--radius); }

.page-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 28px; padding-top: 48px; padding-bottom: 72px; }
.content-card { min-width: 0; padding: clamp(24px, 4vw, 50px); background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 28px rgba(24,34,52,.05); }
.content-card h1 { margin: 12px 0 10px; font-size: clamp(32px, 5vw, 54px); line-height: 1.12; overflow-wrap: anywhere; }
.content-meta { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.featured-image { width: 100%; max-height: 530px; margin: 28px 0; object-fit: cover; border-radius: 12px; }
.article-content { color: #293241; font-size: 16px; overflow-wrap: anywhere; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2, .article-content h3, .article-content h4 { margin: 1.8em 0 .65em; color: var(--navy); font-family: "Montserrat", sans-serif; line-height: 1.25; }
.article-content h2 { font-size: 28px; }
.article-content h3 { font-size: 22px; }
.article-content a { color: #a85600; text-decoration: underline; text-underline-offset: 3px; }
.article-content ul, .article-content ol { padding-left: 24px; }
.article-content blockquote { margin: 24px 0; padding: 16px 20px; background: var(--orange-soft); border-left: 4px solid var(--orange); }
.article-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-content th, .article-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.article-content pre { max-width: 100%; overflow-x: auto; padding: 16px; color: #f6f7f9; background: var(--navy); border-radius: 10px; }
.article-content iframe { max-width: 100%; }
.media-unavailable {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    margin: 22px 0;
    padding: 20px;
    color: #465264;
    background: #f7f8fa;
    border: 1px dashed #b8c1cd;
    border-radius: 12px;
}
.media-unavailable__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #7a4b00;
    background: var(--orange-soft);
    border-radius: 11px;
    font-size: 27px;
}
.media-unavailable__copy strong,
.media-unavailable__copy span { display: block; }
.media-unavailable__copy strong { color: var(--navy); font-family: "Montserrat", sans-serif; }
.media-unavailable__copy span { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.answers { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }
.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading-row h2 { margin: 0; color: var(--navy); font: 700 27px/1.2 "Montserrat", sans-serif; }
.answer-badge { padding: 6px 10px; color: #6d4b00; background: #fff4d9; border-radius: 999px; font-size: 11px; font-weight: 600; }
.answer-card { padding: 24px 0; border-top: 1px solid var(--line); }
.answer-author { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.answer-author .avatar { display: grid; place-items: center; width: 40px; height: 40px; color: #1b1b1b; background: var(--orange); border-radius: 10px; font: 800 18px/1 "Montserrat", sans-serif; }
.answer-author strong, .answer-author span { display: block; }
.answer-author span { color: var(--muted); font-size: 12px; }
.content-sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.ai-card { padding: 26px; color: white; background: var(--navy); border-radius: 15px; box-shadow: var(--shadow); }
.ai-mark { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; background: var(--orange); color: #1c1c1c; border-radius: 12px; font-size: 24px; }
.ai-card h2 { margin: 0 0 10px; color: white; font: 700 23px/1.25 "Montserrat", sans-serif; }
.ai-card p { margin: 0 0 20px; color: #c7ced9; font-size: 14px; }
.ai-card .button { width: 100%; }
.sidebar-search { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.sidebar-search label { display: block; margin-bottom: 8px; color: var(--navy); font-size: 13px; font-weight: 600; }
.sidebar-search div { display: flex; border: 1px solid #ced5df; border-radius: 8px; overflow: hidden; }
.sidebar-search input { min-width: 0; flex: 1; padding: 10px 11px; border: 0; outline: 0; }
.sidebar-search button { width: 42px; border: 0; background: var(--orange); cursor: pointer; }
.search-status { margin-bottom: 24px; color: var(--muted); }

.site-footer { padding: 54px 0 20px; color: #cbd2dd; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 60px; }
.brand-footer { color: white; }
.site-footer p { max-width: 480px; color: #aab4c3; font-size: 14px; }
.site-footer h2 { margin: 0 0 14px; color: white; font: 700 14px/1.2 "Montserrat", sans-serif; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; }
.site-footer a:hover { color: #ffc35a; }
.footer-bottom { margin-top: 42px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #8995a6; font-size: 12px; }

@media (max-width: 1050px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-grid { grid-template-columns: 1fr .7fr; gap: 40px; }
    .page-shell { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 820px) {
    .site-header { height: auto; min-height: 66px; }
    .header-inner { min-height: 66px; flex-wrap: wrap; gap: 12px; padding-block: 10px; }
    .main-navigation { order: 3; width: 100%; }
    .menu-toggle { display: block; margin-left: auto; }
    .main-navigation ul { display: none; padding: 12px 0 6px; border-top: 1px solid var(--line); }
    .main-navigation.is-open ul { display: grid; gap: 12px; }
    .header-ai-link { margin-left: auto; }
    .hero-grid, .page-shell { grid-template-columns: 1fr; }
    .hero-panel { max-width: 600px; }
    .content-sidebar { position: static; grid-template-columns: 1fr 1fr; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
    .container { width: min(100% - 24px, var(--container)); }
    .home-hero { padding: 58px 0 50px; }
    .home-hero h1 { letter-spacing: -1.6px; }
    .hero-search { display: grid; }
    .hero-search button { width: 100%; }
    .card-grid, .category-grid, .content-sidebar, .footer-grid { grid-template-columns: 1fr; }
    .category-card { min-height: 112px; }
    .content-card { padding: 24px 19px; border-radius: 12px; }
    .content-card h1 { letter-spacing: -1.2px; }
    .section-heading-row { align-items: flex-start; flex-direction: column; }
    .section-title { align-items: flex-start; flex-direction: column; }
    .pagination { flex-wrap: wrap; }
}
