:root {
    color-scheme: light;
    --ink: #121520;
    --green: #184a2e;
    --dark-green: #0d3820;
    --muted: #555b56;
    --paper: #ffffff;
    --hero: #f7f4ed;
    --mint: #eef4e8;
    --rule: #d9d8d1;
    --serif: "Source Serif 4", Georgia, serif;
    --sans: "Source Sans 3", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--sans); }
h1, h2 { margin: 0; line-height: 1.08; color: var(--ink); font-family: var(--serif); letter-spacing: -.027em; }
h1 { font-size: clamp(36px, 5.25vw, 66px); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.25vw, 34px); font-weight: 700; }
p { margin: 0; }
a { color: var(--green); text-underline-offset: 4px; }
button, textarea, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid #558960;
    outline-offset: 4px;
}
.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.masthead { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); padding-inline: 24px; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font: 700 clamp(23px, 3vw, 32px)/1 var(--serif); text-decoration: none; white-space: nowrap; }
.brand-icon, .icon { display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; width: 21px; height: 21px; vertical-align: middle; flex: none; }
.brand-icon { width: 30px; height: 30px; }
.masthead nav { display: flex; align-items: center; gap: clamp(20px, 4.2vw, 52px); }
.masthead nav a { text-decoration: none; color: var(--ink); font-weight: 550; }
.masthead nav a:hover, .catalog-title:hover { color: var(--green); text-decoration: underline; }
.hero { padding: clamp(27px, 4vw, 50px) clamp(22px, 5.5vw, 64px); background: var(--hero); border-radius: 14px; margin-top: 33px; }
.hero h1 { margin-bottom: 29px; }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.search-box { min-width: 0; display: flex; position: relative; color: var(--muted); }
.search-box .icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; pointer-events: none; }
.search-box input { width: 100%; min-width: 0; border: 1px solid #9a9b94; border-radius: 8px; padding: 12px 13px 12px 49px; color: var(--ink); background: var(--paper); min-height: 55px; }
.search-box input::placeholder, textarea::placeholder { color: #5d605d; opacity: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--green); border-radius: 8px; padding: 10px 24px; color: #fff; background: var(--green); font-weight: 700; text-decoration: none; cursor: pointer; }
.search-form .button { min-width: 152px; }
.button:hover { background: var(--dark-green); }
.tabs { display: flex; gap: 10px; border-bottom: 1px solid var(--rule); margin-top: 13px; }
.tabs a { color: var(--ink); border-bottom: 4px solid transparent; text-decoration: none; padding: 11px 25px; font-size: 18px; font-weight: 650; }
.tabs a[aria-current] { border-color: var(--green); color: var(--green); }
.tabs a:hover { color: var(--green); }
.category-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); padding: 25px 0; border-bottom: 1px solid var(--rule); }
.category-row a { padding: 0 25px; text-decoration: none; }
.category-row a + a { border-left: 1px solid var(--rule); }
.category-row strong { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.15; margin-bottom: 5px; }
.category-row a:hover strong { text-decoration: underline; }
.category-row span { display: block; color: var(--ink); font-size: 16px; line-height: 1.45; }
.results { padding: 24px 5px 0; }
.results h2 { margin-bottom: 13px; }
.cards { margin: 0; padding: 0; list-style: none; }
.catalog-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; justify-content: space-between; align-items: center; gap: 10px 24px; border-bottom: 1px solid var(--rule); padding: 11px 9px; }
.catalog-title { color: var(--ink); font-weight: 720; text-decoration: none; }
.catalog-category { display: block; color: var(--green); line-height: 1.3; }
.row-action { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; text-decoration: none; white-space: nowrap; }
.row-action:hover { text-decoration: underline; }
.pagination { display: flex; gap: 10px; margin-top: 22px; }
.pagination a { padding: 5px 14px; border: 1px solid var(--rule); border-radius: 5px; text-decoration: none; }
.pagination a[aria-current] { background: var(--mint); border-color: var(--green); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; margin: 22px 0 35px; font-size: 15px; }
.breadcrumb .icon { width: 15px; height: 15px; color: var(--green); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-header { border-bottom: 1px solid var(--rule); padding-bottom: 26px; }
.detail-header h1 { max-width: 950px; text-wrap: pretty; }
.detail-header p { max-width: 760px; font-size: 21px; line-height: 1.45; margin-top: 19px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(275px, 1fr); gap: clamp(25px, 6vw, 70px); padding-block: 32px; align-items: start; }
.steps { margin: 24px 0 0 9px; padding-left: 22px; list-style: none; border-left: 3px solid #d5e5cf; }
.steps li { margin: 0 0 17px; position: relative; }
.steps li::before { content: ""; position: absolute; top: .5em; left: -29px; width: 11px; height: 11px; background: var(--green); border-radius: 50%; }
.steps li:last-child { margin-bottom: 0; }
.resource-panel { background: var(--mint); border-radius: 12px; padding: 23px clamp(17px, 3vw, 30px); display: grid; gap: 12px; }
.resource-panel h2 { font-size: clamp(24px, 2.7vw, 30px); margin-bottom: 4px; }
.resource-label { margin-top: -7px; font-size: 14px; color: var(--muted); }
.source-link { font-size: 16px; overflow-wrap: anywhere; display: block; }
.related { padding-top: 5px; }
.assistant-hero h1 { margin-bottom: 20px; }
.assistant-form label { display: inline-block; margin-bottom: 7px; font-weight: 650; }
.assistant-form textarea { display: block; width: 100%; resize: vertical; min-height: 96px; border: 1px solid #9a9b94; border-radius: 8px; padding: 12px 16px; background: #fff; color: var(--ink); }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.form-actions small, .model-note { color: var(--muted); }
.model-note { margin: 20px 5px 0; font-size: 15px; }
.answer { padding: 26px 5px 0; }
.answer p { max-width: 780px; margin-top: 12px; }
.answer .follow-up { font-weight: 650; }
.cited { margin-top: 14px; border-top: 1px solid var(--rule); }
.citation { font-size: 15px; }
.citation .icon { width: 17px; height: 17px; }
.question-list { display: grid; justify-items: start; gap: 10px; }
.question-example { display: flex; gap: 9px; align-items: center; text-align: left; color: var(--green); padding: 8px 13px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; cursor: pointer; }
.question-example:hover { background: var(--mint); }
.footer { display: flex; align-items: baseline; gap: 12px 22px; flex-wrap: wrap; border-top: 1px solid var(--rule); margin-top: 55px; padding: 16px 5px 32px; }
.footer .brand { font-size: 20px; }
.footer p { font-size: 14px; color: var(--muted); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 12px; left: 12px; background: #fff; padding: 8px; z-index: 2; }
@media (max-width: 680px) {
    .shell { width: calc(100% - 32px); }
    .masthead { height: 66px; padding: 0; gap: 12px; }
    .masthead nav { gap: 13px; font-size: 15px; }
    .brand-icon { width: 23px; height: 23px; }
    .hero { margin-top: 21px; }
    .hero h1 { margin-bottom: 18px; }
    .search-form .button { min-width: 0; padding-inline: 14px; }
    .category-row a { padding-inline: 12px; }
    .category-row strong { font-size: 21px; }
    .category-row span { font-size: 14px; }
    .detail-grid { grid-template-columns: 1fr; }
    .resource-panel { order: -1; }
    .detail-header p { font-size: 18px; }
    .catalog-row { padding-inline: 0; gap: 11px; }
    .row-action { font-size: 14px; }
    .row-action .icon { width: 16px; height: 16px; }
}
@media (max-width: 385px) {
    .brand-icon { display: none; }
    .search-form { grid-template-columns: 1fr; }
    .search-form .button { justify-self: start; }
    .catalog-row { grid-template-columns: 1fr; }
    .row-action { justify-self: start; }
}
