:root {
    --purple: #7a00ff;
    --purple-dark: #4b00a8;
    --header: #23211d;
    --nav: #34322f;
    --orange: #ff8a18;
    --red: #a30f24;
    --red-bright: #f12b2f;
    --ink: #171717;
    --muted: #5f5f5f;
    --line: #e5e2de;
    --paper: #fff;
    --soft: #f7f5f2;
    --focus: #ffd55e;
    --shell: 1040px;
    --reading: 820px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.72;
    overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--purple-dark); text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.utility-bar { min-height: 30px; display: flex; align-items: center; color: #fff; background: var(--purple); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.utility-bar .shell { display: flex; gap: 8px; align-items: center; }
.brand-bar { background: var(--header); color: #fff; }
.brand-row { min-height: 92px; display: flex; align-items: center; gap: 26px; }
.brand { color: #fff; text-decoration: none; font-weight: 950; font-size: 47px; letter-spacing: -.08em; line-height: 1; }
.brand span { color: var(--orange); }
.brand:hover { color: #fff; }
.brand-note { color: #d8d3cb; font-size: 14px; font-weight: 650; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 20px; border: 0; border-radius: 5px; background: var(--orange); color: #1c1208; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease; }
.button:hover { color: #130b04; background: #ffad51; transform: translateY(-2px); }
.header-cta { margin-left: auto; }
.menu-toggle { display: none; min-width: 56px; min-height: 48px; padding: 5px; border: 1px solid #67625b; background: transparent; color: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 23px; height: 2px; margin: 0 auto; background: currentColor; content: ""; }
.menu-icon::before { transform: translateY(-7px); }
.menu-icon::after { transform: translateY(5px); }
.category-bar { background: var(--nav); }
.primary-menu { display: flex; min-height: 52px; margin: 0; padding: 0; align-items: center; list-style: none; }
.primary-menu a { display: flex; min-height: 52px; padding: 0 24px; align-items: center; color: #fff; font-weight: 800; text-decoration: none; border-bottom: 3px solid transparent; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: #fff; border-bottom-color: var(--orange); background: #282623; }
.mobile-menu-cta { display: none; }

.site-main { min-height: 55vh; }
.page-shell { width: min(calc(100% - 40px), var(--reading)); margin: 0 auto; padding: 52px 0 74px; }
.page-title { padding-bottom: 28px; border-bottom: 5px solid var(--red-bright); }
.eyebrow, .updated { margin: 0 0 10px; color: var(--purple-dark); font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.13; text-wrap: balance; }
h1 { margin: 0; color: var(--red); font-size: clamp(38px, 6vw, 62px); letter-spacing: -.045em; }
h2 { margin: 56px 0 18px; color: var(--red); font-size: clamp(29px, 4vw, 39px); letter-spacing: -.025em; scroll-margin-top: 24px; }
h3 { margin: 34px 0 12px; font-size: clamp(21px, 3vw, 26px); }
p { margin: 0 0 1.25em; }
.lede { margin-top: 24px; color: #383838; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.62; }
.article-content > section { margin-top: 44px; }
.article-content section + section { padding-top: 8px; }
.article-content ul, .article-content ol { margin: 0 0 1.5em; padding-left: 1.3em; }
.article-content li { margin: .55em 0; }
.article-figure { width: calc(100% + 120px); margin: 34px -60px; }
.article-figure img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 9px; background: #150f27; box-shadow: 0 16px 42px rgba(25, 16, 22, .17); }
.article-figure.portrait { width: min(520px, 100%); margin-inline: auto; }
.article-figure.portrait img { max-height: 680px; }
.article-figure figcaption { padding: 9px 4px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.content-link { font-weight: 800; }

.table-scroll { margin: 28px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--header); color: #fff; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--soft); }
.steps { margin: 28px 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; min-height: 66px; margin: 0 0 18px; padding: 4px 0 4px 74px; counter-increment: steps; }
.steps li::before { position: absolute; left: 0; top: 0; display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--purple); color: #fff; content: counter(steps); font-weight: 950; }
.steps strong { display: block; color: var(--red); }
.note { margin: 30px 0; padding: 22px 24px; border-left: 5px solid var(--orange); background: #fff5e8; }
.editorial-note { margin-top: 46px; padding: 22px 24px; border: 1px solid var(--line); background: var(--soft); font-size: 15px; }
.cta-block { margin-top: 48px; padding: 30px; background: var(--header); color: #fff; border-radius: 8px; }
.cta-block h2 { margin-top: 0; color: #fff; }
.cta-block p:last-child { margin-bottom: 0; }

.faq-list { display: grid; gap: 13px; }
.faq-list details { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.faq-list summary { min-height: 54px; padding: 15px 52px 15px 18px; cursor: pointer; color: #2d2324; font-weight: 850; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: 18px; content: "+"; color: var(--purple); font-size: 25px; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 16px; }
.faq-answer p:last-child { margin-bottom: 0; }

.editorial-form { margin-top: 30px; padding: 28px; border: 1px solid var(--line); background: var(--soft); }
.editorial-form label { display: block; margin-bottom: 18px; font-weight: 800; }
.editorial-form input, .editorial-form textarea { width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid #aaa39b; border-radius: 4px; background: #fff; color: #111; font: inherit; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-help { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.form-status { padding: 15px; border-left: 5px solid var(--purple); background: #f1e9ff; }
.form-status.error { border-color: var(--red); background: #fff0f1; }
.trap { position: absolute; left: -9999px; }

.site-footer { background: var(--header); color: #ebe8e2; }
.footer-grid { display: grid; grid-template-columns: 1.65fr .7fr .8fr; gap: 52px; padding-block: 52px 34px; }
.footer-brand .brand { display: inline-block; margin-bottom: 18px; }
.footer-brand p { max-width: 520px; color: #c8c4bd; }
.site-footer h2 { margin: 8px 0 15px; color: #fff; font-size: 17px; text-transform: uppercase; letter-spacing: .07em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #fff; }
.footer-bottom { padding-block: 24px 34px; border-top: 1px solid #4b4843; color: #c8c4bd; font-size: 13px; }
.footer-bottom p { margin-bottom: 7px; }
.error-page { min-height: 55vh; }

@media (max-width: 940px) {
    .article-figure { width: 100%; margin-inline: 0; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .shell, .page-shell { width: min(calc(100% - 30px), var(--shell)); }
    .utility-bar { min-height: 28px; font-size: 11px; }
    .utility-bar span { display: none; }
    .brand-row { min-height: 76px; gap: 13px; }
    .brand { font-size: 40px; }
    .brand-note, .header-cta { display: none; }
    .menu-toggle { display: block; margin-left: auto; }
    .category-bar { display: none; border-top: 1px solid #4f4b46; }
    .category-bar.is-open { display: block; }
    .category-bar .shell { padding-block: 13px 18px; }
    .primary-menu { display: grid; grid-template-columns: 1fr; gap: 5px; }
    .primary-menu a { min-height: 48px; padding: 8px 15px; border: 1px solid #55514c; }
    .mobile-menu-cta { display: flex; min-height: 48px; margin-top: 8px; align-items: center; justify-content: center; background: var(--orange); color: #1a1007; font-weight: 900; text-decoration: none; }
    .page-shell { padding: 38px 0 54px; }
    .page-title { padding-bottom: 22px; }
    h2 { margin-top: 42px; }
    .article-content > section { margin-top: 32px; }
    .article-figure { margin-block: 26px; }
    .article-figure img { max-height: 520px; }
    .table-scroll { margin-inline: -1px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .editorial-form { padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 40px; }
}

@media (max-width: 390px) {
    .utility-bar .shell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    h1 { font-size: 37px; }
    h2 { font-size: 29px; }
    .cta-block { padding: 22px; }
    .steps li { padding-left: 62px; }
    .steps li::before { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
