@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

/* Pine Grove is inspired by Pantone 19-5406 TPG; web tints are adjusted for readable UI contrast. */
:root{--ink:#192f27;--muted:#475f53;--line:#cedbd0;--paper:#f1f5ed;--white:#fffeFB;--teal:#1b5342;--teal-dark:#133f33;--mint:#e7f1e9;--gold:#a18458;--red:#a63a38;--shadow:0 12px 36px rgba(25,47,39,.07);--focus:#24765b}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px;line-height:1.5}
button,input,select,textarea{font:inherit}
a{color:inherit;text-decoration:none}
.topbar{height:68px;padding:0 max(32px,calc((100vw - 1180px)/2));background:var(--white);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.brand{display:inline-flex;align-items:center;gap:10px;font-weight:700;letter-spacing:-.25px;font-size:14px}
.brand-mark{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:var(--ink);color:#fff;font-family:'Instrument Serif',serif;font-size:20px}
.top-actions{display:flex;align-items:center;gap:28px;color:#64777d;font-size:12px}
.language-switch{display:inline-flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:10px;white-space:nowrap}.language-switch button{border:0;border-radius:999px;background:transparent;padding:4px 7px;color:#64777d;font:inherit;cursor:pointer}.language-switch button.selected{background:var(--mint);color:var(--teal-dark);font-weight:700}.language-switch button:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.top-actions a:hover,.back-link:hover,.official-link a:hover{color:var(--teal)}
.admin-link{font-weight:600;color:var(--ink)!important}.top-actions form{margin:0}.link-button{background:transparent;border:0;color:inherit;padding:0;cursor:pointer}
main{width:min(1180px,calc(100% - 48px));margin:0 auto}
.intro{display:flex;align-items:flex-end;justify-content:space-between;padding:62px 8px 38px;gap:40px}
.eyebrow{margin:0 0 16px;color:var(--teal);font-weight:700;letter-spacing:1.6px;font-size:10px}
.intro h1{font-family:'Instrument Serif',serif;font-weight:400;font-size:clamp(40px,5vw,58px);line-height:.98;letter-spacing:-1px;margin:0;color:#182f39}
.intro h1 span{color:var(--teal)}
.intro-subtitle{color:#728087;font-size:14px;margin:18px 0 0}
.archive-card{width:310px;min-width:270px;border:1px solid #dce7e3;background:linear-gradient(135deg,#f1faf7,#eaf4f0);border-radius:14px;padding:19px 22px;color:var(--ink);box-shadow:0 7px 22px rgba(30,58,63,.035)}
.archive-card-label{color:var(--teal);font-size:9px;font-weight:700;letter-spacing:1.4px}.archive-count{font-size:34px;font-weight:600;letter-spacing:-1.3px;margin-top:4px}.archive-caption{font-size:11px;color:#778982;margin-top:-4px}.archive-meta{display:flex;align-items:center;gap:9px;border-top:1px solid #d8e6e1;margin-top:15px;padding-top:12px;color:#647b76;font-size:10px}.meta-dot{width:3px;height:3px;border-radius:50%;background:#a7b8b1}.archive-semantic{border-top:1px solid #d8e6e1;margin-top:12px;padding-top:10px}.archive-semantic-heading{display:flex;align-items:center;justify-content:space-between;color:#647b76;font-size:10px}.archive-semantic-heading strong{color:var(--teal);font-size:11px}.archive-semantic-meter{height:4px;margin-top:7px;background:#dbe7e2;border-radius:4px;overflow:hidden}.archive-semantic-meter span{display:block;min-width:2px;height:100%;background:var(--teal);border-radius:inherit}.archive-semantic-count,.archive-semantic-note{font-size:9px;color:#788b85;margin-top:6px}.archive-semantic-note{margin-top:2px}
.workbench{background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;min-height:440px}
.tabs{display:flex;gap:26px;padding:0 30px;border-bottom:1px solid var(--line);height:57px;align-items:stretch}
.tab{background:none;border:0;border-bottom:2px solid transparent;padding:0 2px;display:flex;align-items:center;gap:9px;color:#859298;cursor:pointer;font-size:12px;font-weight:600}.tab.active{border-color:var(--teal);color:var(--ink)}.tab-icon{font-size:19px;font-weight:400;color:#70958e}.panel{display:none;padding:27px 30px 32px}.panel.active{display:block}
.search-input-wrap{height:51px;border:1px solid #dce5e4;border-radius:8px;display:flex;align-items:center;padding:0 14px;gap:11px;background:#fff;transition:border-color .18s,box-shadow .18s}.search-input-wrap:focus-within,textarea:focus,input:focus,select:focus{outline:none;border-color:#75a89e;box-shadow:0 0 0 3px rgba(14,115,104,.09)}.search-glass{font-size:23px;color:var(--teal);line-height:1}.search-input-wrap input{border:0;outline:0;box-shadow:none!important;flex:1;font-size:13px;color:var(--ink);min-width:0}.search-input-wrap input::placeholder,textarea::placeholder{color:#a4afb1}.search-input-wrap kbd{border:1px solid #e5ebea;border-radius:4px;padding:3px 6px;font-size:9px;color:#96a1a4;background:#fbfcfc}
.filters,.ask-options{display:grid;grid-template-columns:1.35fr 1fr .82fr .82fr auto auto;gap:12px;align-items:end;margin-top:18px}.filters label,.ask-options label,.admin-form>label,.admin-fields label{display:flex;flex-direction:column;gap:6px;min-width:0}.filters label span,.ask-options label span,.admin-form>label span,.admin-fields label span{font-size:10px;color:#697b80;font-weight:600}.filters input,.filters select,.ask-options input,.ask-options select,.admin-form input,.admin-form select,.login-card input{height:37px;width:100%;border:1px solid #e1e8e7;border-radius:6px;background:#fff;padding:0 10px;color:#495e65;font-size:11px;min-width:0}.filters input::placeholder,.ask-options input::placeholder,.admin-form input::placeholder{color:#a9b3b5}.button{border:0;border-radius:6px;min-height:38px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:15px;font-size:11px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .15s,transform .15s}.button:hover{transform:translateY(-1px)}.button.primary{background:var(--teal);color:white}.button.primary:hover{background:var(--teal-dark)}.search-button{min-width:105px}.mode-toggle{height:37px;display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-start;gap:7px!important;padding:0 9px;border:1px solid #e1e8e7;border-radius:6px;background:#fff;color:#697b80;cursor:pointer;white-space:nowrap}.mode-toggle input{appearance:auto;width:14px!important;height:14px!important;margin:0;accent-color:var(--teal);box-shadow:none!important}.mode-toggle span{font-size:10px;color:#697b80;font-weight:600}
.results-heading{display:flex;align-items:end;justify-content:space-between;margin:39px 0 13px}.results-heading h2,.section-heading h2{font-family:'Instrument Serif',serif;font-size:22px;font-weight:400;margin:0;color:var(--ink)}.results-heading p,.section-heading p{margin:3px 0 0;color:#8b999b;font-size:10px}.result-count{font-size:10px;color:#7a888c}
.results-list{border-top:1px solid #edf0f0}.empty-state{text-align:center;padding:52px 20px 60px;color:#89979a}.empty-icon{display:grid;place-items:center;margin:0 auto 12px;width:38px;height:38px;border-radius:50%;background:#eef5f2;color:var(--teal);font-size:22px}.empty-state h3{font-size:12px;font-weight:600;color:#506268;margin:0 0 5px}.empty-state p{font-size:10px;margin:0;color:#8c999c}
.result-card{padding:19px 0;border-bottom:1px solid #edf0f0;display:flex;justify-content:space-between;gap:22px}.result-card-main{min-width:0;flex:1}.result-meta{display:flex;align-items:center;gap:10px;color:#869396;font-size:9px}.type-badge{background:#eaf3f0;color:#28766b;font-size:9px;font-weight:600;padding:3px 7px;border-radius:3px}.type-badge.budget_reply{background:#f7f0df;color:#997530}.type-badge.committee_reply{background:#edf0f7;color:#5e688d}.result-card h3{font-size:13px;font-weight:600;letter-spacing:-.15px;margin:8px 0 6px}.result-excerpt{font-size:11px;line-height:1.65;color:#69797e;margin:0;max-width:850px;white-space:pre-line}.result-details{display:flex;flex-wrap:wrap;gap:6px 17px;margin-top:12px;font-size:9px;color:#7c898c}.result-details b{color:#52656a;font-weight:600;margin-right:4px}.reference{font-family:ui-monospace,monospace;color:#687982}.source-link{align-self:center;color:var(--teal);font-size:10px;font-weight:600;white-space:nowrap}.source-link:hover{color:var(--teal-dark)}
.ask-form{padding-bottom:23px;border-bottom:1px solid #edf0f0}.field-title{display:block;font-family:'Instrument Serif',serif;font-size:22px;margin-bottom:13px}.ask-form textarea{display:block;width:100%;resize:vertical;border:1px solid #dce5e4;border-radius:8px;min-height:94px;padding:13px 14px;font-size:12px;line-height:1.6;color:var(--ink)}.ask-options{grid-template-columns:1.25fr 1fr .82fr .82fr auto;margin-top:13px}.ask-button{min-width:185px}.privacy-note{font-size:9px;color:#89979a;margin:16px 0 0;display:flex;align-items:center;gap:7px}.privacy-note span{color:#66978d;font-size:13px}.answer-area{padding-top:23px}.answer-copy{white-space:pre-wrap;font-size:13px;line-height:1.8;color:#324a52;border-left:2px solid #80afa4;padding:4px 0 4px 17px;margin-bottom:22px}.citations-heading{display:flex;align-items:baseline;justify-content:space-between;margin:16px 0 9px}.citations-heading h3{font-family:'Instrument Serif',serif;font-size:18px;font-weight:400;margin:0}.citations-heading span{color:#89979a;font-size:9px}.citation-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.citation-card{display:flex;gap:10px;align-items:center;border:1px solid #e6eceb;border-radius:7px;padding:11px 12px;transition:background .15s,border-color .15s}.citation-card:hover{background:#f7fbf9;border-color:#bfdbd2}.citation-number{color:var(--teal);font:italic 14px 'Instrument Serif',serif;min-width:26px}.citation-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.citation-copy strong{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.citation-copy>span{font-size:9px;color:#829194}.citation-arrow{margin-left:auto;color:#72968e;font-size:12px}.loading-state{display:flex;align-items:center;justify-content:center;gap:10px;padding:35px;color:#708187;font-size:11px}.spinner{width:15px;height:15px;border:2px solid #d9e8e4;border-top-color:var(--teal);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
footer{display:flex;justify-content:space-between;color:#9aa6a8;font-size:9px;padding:17px 9px 32px}
.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}
.login-body{min-height:100vh;display:grid;place-items:center;padding:22px}.login-card{width:min(410px,100%);background:white;border:1px solid var(--line);border-radius:12px;padding:32px;box-shadow:var(--shadow)}.login-card .brand{margin-bottom:40px}.login-card .eyebrow{margin-bottom:5px}.login-card h1,.admin-title h1{font-family:'Instrument Serif',serif;font-size:36px;font-weight:400;margin:0}.login-card>p:not(.eyebrow){font-size:11px;color:#7a898d;margin:5px 0 23px}.login-card form{display:grid;gap:9px}.login-card form label{font-size:10px;font-weight:600;color:#617479}.login-card input{height:42px;font-size:12px}.login-card .button{margin-top:6px;height:42px}.back-link{display:block;margin-top:21px;font-size:10px;color:#77878b}
.admin-main{padding:38px 0 55px;max-width:1020px}.admin-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 26px}.admin-title .eyebrow{margin:0 0 4px}.secure-pill{display:flex;align-items:center;flex:0 0 auto;gap:7px;padding:7px 10px;border:1px solid #dcebe5;border-radius:20px;color:#63857b;font-size:9px;white-space:nowrap}.secure-dot,.status-dot{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#c0ccca}.secure-dot,.status-dot.ready{background:#389577}.admin-section{background:white;border:1px solid var(--line);border-radius:11px;margin-bottom:16px;padding:22px 25px;box-shadow:0 5px 18px rgba(30,58,63,.025)}.section-heading{margin-bottom:17px}.section-heading h2{font-size:21px}.admin-form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.provider-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.provider-card{border:1px solid #e4eae9;border-radius:8px;padding:11px 13px;cursor:pointer;display:block;min-width:0}.provider-card.chosen{border-color:#74aa9e;background:#f5faf8}.provider-top{display:flex;align-items:center;gap:8px}.provider-top input{appearance:none;width:14px;height:14px;border-radius:50%;padding:0;border:1px solid #b6c3c2;margin:0}.provider-top input:checked{border:4px solid var(--teal)}.provider-top strong{font-size:11px}.status-dot{margin-left:auto}.provider-url{display:block;color:#75888d;font:9px ui-monospace,monospace;margin:7px 0 1px 22px;overflow-wrap:anywhere}.provider-state{display:block;color:#869497;font-size:9px;margin-left:22px}.admin-fields{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin-fields small{font-weight:400;color:#9aa6a8;margin-left:5px}.admin-fields input{height:38px}.form-footer{grid-column:1/-1;border-top:1px solid #edf0f0;margin-top:4px;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:15px;color:#899699;font-size:9px}.form-footer .button{height:37px}.import-form{grid-template-columns:1fr 1fr}.import-form .wide{grid-column:1/-1}.import-form input,.import-form select{height:38px}.source-section{padding-bottom:8px}.source-row{border-top:1px solid #edf0f0;padding:12px 0;display:grid;grid-template-columns:1fr auto auto;gap:20px;align-items:center}.source-row>div{display:flex;flex-direction:column;gap:3px}.source-row strong{font-size:10px}.source-row div span{font-size:9px;color:#879598}.source-row code{font-size:8px;color:#829399;background:#f5f8f7;border-radius:4px;padding:5px 7px}.source-check{font-size:9px;color:#43846f}.official-link{border-top:1px solid #edf0f0;padding:12px 0;display:flex;justify-content:space-between;align-items:center}.official-link a{font-size:10px;color:var(--teal);font-weight:600}.official-link span{font-size:9px;color:#89979a}.notice{padding:10px 12px;border-radius:6px;font-size:10px;margin:0 0 15px}.notice.success{background:#edf7f2;color:#267058;border:1px solid #d7ede2}.notice.error{background:#fcf0ef;color:var(--red);border:1px solid #f2d9d7}.notice.info{background:#f1f7f6;color:#486c68;border:1px solid #dcebe7}
@media(max-width:820px){.intro{padding-top:45px}.archive-card{width:240px;min-width:220px}.filters,.ask-options{grid-template-columns:1fr 1fr}.filters .search-button,.ask-options .ask-button{grid-column:1/-1}.filters label:nth-child(3),.filters label:nth-child(4){grid-row:auto}.citation-list{grid-template-columns:1fr}.source-row{grid-template-columns:1fr auto}.source-row code{grid-column:1/-1;grid-row:2}.source-check{grid-column:2;grid-row:1}.top-actions{gap:15px}}
@media(max-width:560px){.topbar{height:59px;padding:0 16px}.top-actions>a:first-child,.top-actions>a[data-open-about]{display:none}.top-actions{gap:10px;font-size:11px}.language-switch{font-size:9px}.language-switch button{padding:4px 6px}main{width:calc(100% - 28px)}.intro{padding:34px 2px 25px;align-items:stretch;flex-direction:column;gap:20px}.intro h1{font-size:45px}.intro-subtitle{font-size:12px}.archive-card{width:100%;min-width:0;padding:14px 17px}.archive-count{font-size:28px}.archive-meta{margin-top:10px;padding-top:9px}.tabs{padding:0 16px;gap:19px;height:52px}.panel{padding:19px 16px 22px}.search-input-wrap{height:46px;padding:0 10px}.search-input-wrap kbd{display:none}.filters,.ask-options{grid-template-columns:1fr 1fr;gap:10px}.filters label:first-child,.ask-options label:first-child{grid-column:1/-1}.filters .search-button,.ask-options .ask-button{grid-column:1/-1}.results-heading{margin-top:30px}.result-card{align-items:flex-start;flex-direction:column;gap:10px}.source-link{align-self:flex-start}.result-details{gap:6px 12px}.admin-main{padding-top:26px}.admin-title{align-items:flex-start;gap:14px;flex-direction:column}.admin-section{padding:17px 15px}.provider-grid,.admin-fields,.import-form{grid-template-columns:1fr}.provider-grid,.admin-fields,.import-form .wide,.form-footer.wide{grid-column:1}.admin-fields{grid-column:auto}.import-form .wide{grid-column:auto}.form-footer{align-items:flex-start;flex-direction:column}.form-footer .button{width:100%}.source-row{grid-template-columns:1fr}.source-check{grid-column:1;grid-row:auto}.source-row code{grid-column:1;grid-row:auto}.official-link{align-items:flex-start;flex-direction:column;gap:6px}.login-card{padding:24px}.login-card .brand{margin-bottom:30px}footer{padding:14px 3px 24px}}
.archive-semantic-breakdown{margin-top:8px;border-top:1px solid #d8e6e1;padding-top:7px}.archive-semantic-breakdown summary{font-size:9px;color:var(--teal);font-weight:600;cursor:pointer;list-style:none}.archive-semantic-breakdown summary::-webkit-details-marker{display:none}.archive-semantic-breakdown summary:after{content:"+";float:right;font-size:12px}.archive-semantic-breakdown[open] summary:after{content:"−"}.archive-semantic-breakdown-note{font-size:9px;line-height:1.45;color:#788b85;margin-top:7px}.archive-semantic-slice-list{max-height:245px;overflow:auto;margin-top:7px;padding-right:3px}.archive-semantic-slice{padding:6px 0;border-top:1px solid #e6eeeb}.archive-semantic-slice-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:8px;color:#647b76}.archive-semantic-slice-heading strong{font-size:8px;white-space:nowrap}.archive-semantic-slice .archive-semantic-meter{margin-top:4px;height:3px}.archive-semantic-slice-meta{display:flex;justify-content:space-between;gap:8px;font-size:8px;color:#788b85;margin-top:3px}

/* Keep mobile date fields together and give the keyword toggle its own row. */
@media(max-width:560px){
  .filters,.ask-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filters label:first-child,.ask-options label:first-child,
  .filters label:nth-child(2),.ask-options label:nth-child(2){grid-column:1/-1}
  .filters label:nth-child(3),.ask-options label:nth-child(3){grid-column:1}
  .filters label:nth-child(4),.ask-options label:nth-child(4){grid-column:2}
  .filters label>span,.ask-options label>span{font-size:12px}
  .filters input,.filters select,.ask-options input,.ask-options select{height:44px;font-size:12px}
  .filters .mode-toggle,.ask-options .mode-toggle{grid-column:1/-1;height:auto;min-height:44px;padding:8px 12px;white-space:normal}
  .filters .mode-toggle span,.ask-options .mode-toggle span{font-size:12px;line-height:1.35}
  .filters .search-button,.ask-options .ask-button{min-height:44px}
}
@media(max-width:380px){
  .filters label:nth-child(3),.filters label:nth-child(4),
  .ask-options label:nth-child(3),.ask-options label:nth-child(4){grid-column:1/-1}
}

/* Header texture stays behind the masthead and fades away before its controls. */
.topbar{position:relative;isolation:isolate;overflow:hidden;background-color:var(--white)}
.topbar::before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background-image:linear-gradient(90deg,#fffeFB 0%,rgba(255,254,251,.96) 22%,rgba(255,254,251,.40) 38%,rgba(255,254,251,.08) 50%,rgba(255,254,251,.40) 62%,rgba(255,254,251,.96) 78%,#fffeFB 100%),radial-gradient(circle,rgba(27,83,66,.12) .7px,transparent .9px);background-size:100% 100%,6px 6px;mask-image:radial-gradient(ellipse 38% 155% at 50% 50%,#000 0%,transparent 100%)}
.brand{position:relative;z-index:1;gap:11px}
.brand-mark{background:var(--teal);font-family:'DM Sans',sans-serif;font-size:15px;font-weight:700}
.brand-name{display:flex;flex-direction:column;line-height:1.12;gap:3px}
.login-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:28px}.login-card-head .brand{margin-bottom:0}.login-card-head .language-switch{flex-shrink:0}
.brand-name strong{font-size:14px;letter-spacing:0;color:var(--ink)}
.brand-name small{font-size:9px;font-weight:500;letter-spacing:.4px;color:var(--muted)}
.top-actions{position:relative;z-index:1}
.intro h1{color:var(--ink)}
.intro h1 span,.eyebrow,.search-glass,.source-link,.official-link a{color:var(--teal)}
.privacy-note{align-items:flex-start;font-size:10px;line-height:1.55;color:var(--muted)}
.privacy-note span{flex:0 0 auto}
.privacy-note a{color:var(--teal);text-decoration:underline;text-underline-offset:2px}
.footer-credit a{color:var(--teal);text-decoration:underline;text-underline-offset:2px}
.button.primary{background:var(--teal)}
.button.primary:hover{background:var(--teal-dark)}
.archive-semantic-heading strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.search-input-wrap:focus-within,textarea:focus,input:focus,select:focus{border-color:var(--focus);box-shadow:0 0 0 3px rgba(36,118,91,.12)}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

.answer-area{padding-top:20px}
.evidence-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,.9fr);gap:16px;align-items:start}
.answer-card,.sources-rail,.evidence-empty{min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.answer-card{padding:23px 26px;box-shadow:0 5px 18px rgba(25,47,39,.035)}
.answer-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:15px;border-bottom:1px solid #e7eee7}
.answer-label{display:block;color:var(--teal);font-size:9px;font-weight:700;letter-spacing:1.3px}
.answer-header h3,.evidence-empty h3{font-family:'Instrument Serif',serif;color:var(--ink);font-weight:400;font-size:22px;line-height:1.2;margin:5px 0 0}
.evidence-count{flex:0 0 auto;border:1px solid var(--line);border-radius:20px;padding:5px 9px;color:var(--muted);font-size:10px}
.answer-copy{border:0;padding:18px 0 8px;margin:0;color:#2d493c;font-size:14px;line-height:1.8;white-space:normal;overflow-wrap:anywhere}
.answer-copy>:first-child{margin-top:0}
.answer-copy>:last-child{margin-bottom:0}
.answer-copy p{margin:0 0 13px}
.answer-copy h4,.answer-copy h5{color:var(--ink);font-weight:650;line-height:1.4;margin:20px 0 8px}
.answer-copy h4{font-size:16px}
.answer-copy h5{font-size:14px}
.answer-copy ul,.answer-copy ol{padding-left:23px;margin:8px 0 14px}
.answer-copy li{padding-left:3px;margin:5px 0}
.answer-copy li>ul,.answer-copy li>ol{margin:5px 0}
.answer-copy ul ul{list-style-type:circle}
.answer-copy ul ul ul{list-style-type:square}
.answer-copy ol ol{list-style-type:lower-alpha}
.answer-copy blockquote{margin:12px 0;padding:9px 14px;border-left:3px solid #9bbda8;background:#f4f7f0;color:#475f53}
.answer-copy blockquote p{margin:0}
.answer-copy code{padding:2px 5px;border-radius:4px;background:#edf2ea;color:#285341;font:12px ui-monospace,SFMono-Regular,Consolas,monospace}
.answer-copy pre{overflow:auto;padding:12px 14px;border:1px solid var(--line);border-radius:7px;background:#f7f8f3}
.answer-copy pre code{padding:0;background:transparent}
.answer-copy hr{border:0;border-top:1px solid var(--line);margin:18px 0}
.answer-table-wrap{max-width:100%;overflow:auto;margin:12px 0;border:1px solid var(--line);border-radius:7px}
.answer-table-wrap table{width:100%;border-collapse:collapse;font-size:12px}
.answer-table-wrap th,.answer-table-wrap td{text-align:left;vertical-align:top;padding:8px 10px;border-bottom:1px solid #e7eee7}
.answer-table-wrap th{background:#edf3eb;color:var(--ink);font-weight:650}
.answer-note{border-top:1px solid #e7eee7;padding-top:12px;margin:13px 0 0;color:#617568;font-size:10px;line-height:1.55}
.answer-truncated{color:#7b5a25;font-size:11px}
.inline-citation{display:inline-grid;place-items:center;vertical-align:super;min-width:18px;height:18px;margin:0 2px;border:1px solid #b8cfc0;border-radius:5px;background:var(--mint);color:#174c3a;font-size:9px;font-weight:700;line-height:1;text-decoration:none}
.inline-citation:hover,.inline-citation:focus{background:#d6e8dc;color:#123d2f}
.unverified-citation{color:#8a5b23;background:#fbf3df;border-radius:3px;padding:1px 3px;font-size:.85em}
.sources-rail{padding:17px 16px}
.citations-heading{margin:0 0 10px}
.citations-heading h3{font-family:'DM Sans',sans-serif;font-size:13px;font-weight:700;color:var(--ink)}
.citations-heading span{font-size:9px;color:var(--muted)}
.citation-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;margin-top:8px;padding:11px;border:1px solid #d5e1d5;border-radius:7px;background:#f7f8f3;scroll-margin-top:16px}
.citation-card:target,.citation-card:focus{border-color:#72a58a;background:#eef4ea;outline:2px solid #72a58a;outline-offset:1px}
.citation-number{display:grid;place-items:center;min-width:22px;height:22px;border-radius:6px;background:#e1eee3;color:#1b5342;font:700 10px 'DM Sans',sans-serif}
.citation-copy{display:flex;min-width:0;flex-direction:column;gap:5px}
.citation-copy strong{font-size:11px;line-height:1.45;color:var(--ink);white-space:normal;overflow-wrap:anywhere}
.citation-copy>span{font-size:10px;line-height:1.45;color:var(--muted)}
.source-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:2px}
.source-actions a{color:var(--teal);font-size:10px;font-weight:650;text-decoration:underline;text-underline-offset:2px}
.source-return{color:#5f7666!important}
.no-sources{font-size:11px;color:var(--muted)}
.evidence-empty{padding:22px 24px;background:#f6f8f2}
.evidence-empty>div{margin-top:9px;color:var(--muted);font-size:13px;line-height:1.7}
.evidence-empty>div p{margin:6px 0}
.evidence-empty>p{font-size:11px;color:var(--muted)}

.about-dialog{width:min(820px,calc(100% - 28px));max-height:min(84vh,820px);overflow:hidden;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);box-shadow:0 24px 90px rgba(18,43,33,.25)}
.about-dialog::backdrop{background:rgba(19,42,33,.4);backdrop-filter:blur(2px)}
.about-dialog-head{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 26px 17px;border-bottom:1px solid var(--line);background:var(--white)}
.about-dialog-head .eyebrow{margin:0 0 4px}
.about-dialog-head h2{margin:0;font:400 27px 'Instrument Serif',serif}
.dialog-close{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);font-size:21px;line-height:1;cursor:pointer}
.about-content{max-height:calc(84vh - 100px);padding:4px 26px 26px;overflow:auto}
.about-content section{padding:14px 0;border-bottom:1px solid #e7eee7}
.about-content section:last-child{border-bottom:0}
.about-content h3{margin:0 0 7px;font-size:13px;color:var(--teal)}
.about-content p{margin:5px 0 9px;color:var(--muted);font-size:11px;line-height:1.7}
.about-content a{color:var(--teal);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}

@media(max-width:820px){.evidence-grid{grid-template-columns:1fr}.sources-rail{order:2}.answer-card{padding:20px}}
@media(max-width:720px){.topbar::before{display:none}}
@media(max-width:560px){.topbar{padding:0 16px}.brand-name strong{font-size:13px}.brand-name small{font-size:8px}.top-actions{gap:12px;font-size:10px}.top-actions>a:first-child{display:none}.footer-credit{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 5px}.answer-card{padding:17px 15px}.answer-header h3{font-size:20px}.answer-copy{font-size:13px;line-height:1.75}.sources-rail{padding:14px 12px}.about-dialog-head{padding:17px 17px 13px}.about-content{padding:0 17px 20px}.evidence-grid{gap:12px}.evidence-empty{padding:18px}}
.brand-mark{width:32px;height:32px;display:block;flex:0 0 auto;object-fit:cover}
.query-fields{border:0;margin:0;padding:0;min-width:0}.query-fields:disabled{opacity:.62}.access-notice{margin:16px 22px 0;padding:12px 15px;border:1px solid #cbded6;border-radius:7px;background:#f2f7f3;color:#425d55;font-size:12px;line-height:1.6}.access-notice a{color:#145342;font-weight:700;margin-left:5px;text-decoration:underline;text-underline-offset:3px}

.agency-picker{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0}
.agency-picker .agency-label{display:flex;min-width:0}
.agency-input-wrap,.reply-type-control{
  --dropdown-end-width:36px;
  --dropdown-chevron-size:7px;
  position:relative;
  min-width:0;
}
.agency-input-wrap>input[type="text"],.reply-type-control>select{
  display:block;
  padding-inline-end:var(--dropdown-end-width);
}
.reply-type-control>select{appearance:none}
.agency-toggle{
  position:absolute;
  inset-block:0;
  inset-inline-end:0;
  width:var(--dropdown-end-width);
  padding:0;
  border:0;
  border-radius:6px;
  background:transparent;
  cursor:pointer;
}
.agency-toggle:focus-visible{outline-offset:-3px}
.agency-toggle::before,.reply-type-control::after{
  content:"";
  position:absolute;
  inset-block-start:50%;
  inset-inline-end:calc((var(--dropdown-end-width) - var(--dropdown-chevron-size)) / 2);
  width:var(--dropdown-chevron-size);
  height:var(--dropdown-chevron-size);
  border:solid #495e65;
  border-width:0 1px 1px 0;
  transform:translateY(calc(-50% - 1px)) rotate(45deg);
  pointer-events:none;
}
.agency-listbox{position:absolute;z-index:40;top:calc(100% + 5px);left:0;right:0;max-height:270px;overflow:auto;margin:0;padding:5px;border:1px solid #cbded6;border-radius:8px;background:#fff;box-shadow:0 12px 26px rgba(25,47,39,.16);list-style:none}
.agency-option{display:flex;flex-direction:column;gap:1px;padding:8px 10px;border-radius:5px;color:var(--ink);font-size:11px;cursor:pointer}
.agency-option small{color:#75888d;font-size:9px}
.agency-option:hover,.agency-option.active{background:#edf5ef}
.agency-listbox-note,.agency-listbox-empty{padding:7px 9px;color:#75888d;font-size:9px;line-height:1.45}
.agency-listbox-note{border-bottom:1px solid #edf0f0;margin-bottom:3px}
.agency-feedback{position:absolute;z-index:41;top:calc(100% + 4px);left:0;right:0;margin:0;padding:5px 8px;border:1px solid #e2eae5;border-radius:5px;background:#fff;color:#71827c;font-size:9px;line-height:1.35;box-shadow:0 5px 12px rgba(25,47,39,.08)}
.agency-feedback:empty{display:none}
.user-email{display:flex;align-items:baseline;gap:4px;max-width:260px;color:#718087;font-size:10px;white-space:nowrap}
.user-email[hidden]{display:none}
.user-email strong{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--ink);font-size:10px;font-weight:600}
@media(max-width:560px){.filters .agency-picker,.ask-options .agency-picker{grid-column:1/-1}.user-email{max-width:90px;gap:0;font-size:9px}.user-email>span{display:none}.user-email strong{max-width:90px;font-size:9px}.agency-feedback{font-size:10px}}
@media(max-width:420px){.topbar{height:auto;min-height:59px;align-items:flex-start;padding:8px 14px;gap:8px}.top-actions{flex:1 1 180px;min-width:0;justify-content:flex-end;flex-wrap:wrap;gap:5px 8px}.user-email{order:4;flex:0 0 100%;max-width:100%;justify-content:flex-end;white-space:normal;overflow-wrap:anywhere}.user-email>span{display:inline}.user-email strong{max-width:none;overflow:visible;overflow-wrap:anywhere;text-overflow:clip}}
.access-notice button{color:#145342;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.quota-panel{margin:16px 22px 0;padding:14px 16px;border:1px solid #d5e5dc;border-radius:9px;background:#f2f8f4;color:#254c3d}
.quota-panel[hidden]{display:none}
.quota-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;font-size:12px}
.quota-heading strong{color:#145342;font-size:13px}.quota-heading span,.quota-caption{color:#6b8178;font-size:11px}
.quota-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:11px}
.quota-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 11px;border:1px solid #dce9e1;border-radius:6px;background:#fff;font-size:12px}
.quota-item strong{color:#145342;font-size:14px;white-space:nowrap}.quota-caption{margin:7px 0 0}
@media(max-width:560px){.quota-panel{margin:14px 16px 0;padding:12px}.quota-items{gap:7px}.quota-item{padding:8px;font-size:11px}}

/* Date-scope controls: named grid areas avoid positional drift as filters change. */
.filters,.ask-options{grid-template-columns:minmax(180px,1.35fr) minmax(135px,1fr) minmax(150px,1fr) auto auto;align-items:end}
.filter-agency{grid-column:1;grid-row:1}
.filter-reply-type{grid-column:2;grid-row:1}
.filter-period{grid-column:3;grid-row:1}
.filter-mode{grid-column:4;grid-row:1}
.filter-submit{grid-column:5;grid-row:1}
.custom-date-filters{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.custom-date-filters[hidden]{display:none}
.date-filter-hint{margin:8px 0 0;color:#89979a;font-size:9px;line-height:1.45}
.date-scope{margin:4px 0 0;color:#6d807e;font-size:9px;line-height:1.5}
.button.secondary{border:1px solid #cbded6;background:#f6faf7;color:var(--teal);margin-top:8px}
.button.secondary:hover{background:#edf5ef}
@media(max-width:820px){
  .filters,.ask-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filter-agency{grid-column:1/-1;grid-row:auto}
  .filter-reply-type{grid-column:1;grid-row:auto}
  .filter-period{grid-column:2;grid-row:auto}
  .filter-mode{grid-column:1/-1;grid-row:auto}
  .filter-submit{grid-column:1/-1;grid-row:auto}
  .custom-date-filters{grid-column:1/-1}
}
@media(max-width:560px){
  .filters,.ask-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filters .filter-agency,.ask-options .filter-agency{grid-column:1/-1}
  .filters .filter-reply-type,.ask-options .filter-reply-type{grid-column:1/-1}
  .filters .filter-period,.ask-options .filter-period{grid-column:1/-1}
  .filters .custom-date-filters,.ask-options .custom-date-filters{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}
  .filters .filter-mode,.ask-options .filter-mode,.filters .filter-submit,.ask-options .filter-submit{grid-column:1/-1}
  .date-filter-hint{font-size:10px}
  .date-scope{font-size:10px}
}
@media(max-width:380px){.custom-date-filters{grid-template-columns:1fr!important}}

.legal-main{width:min(930px,calc(100% - 40px));margin:0 auto;padding:44px 0 58px}
.legal-main>.eyebrow{margin-bottom:8px}
.legal-main>h1{margin:0;color:var(--ink);font:400 clamp(32px,5vw,46px)/1.1 'Instrument Serif',serif}
.legal-lead{margin:12px 0 26px;color:var(--muted);font-size:15px}
.legal-page .legal-content{max-height:none;padding:0;overflow:visible}
.legal-page .legal-content section{padding:20px 0;border-bottom:1px solid #e1e9e1;scroll-margin-top:20px}
.legal-section-title{margin:10px 0 0;color:var(--teal);font:400 26px/1.2 'Instrument Serif',serif;scroll-margin-top:20px}
.legal-page .legal-content h3{font-size:15px}
.legal-page .legal-content p{font-size:13px;line-height:1.75}
.legal-version{margin:20px 0 0;color:#87958e;font-size:10px}
.legal-accept-form{margin-top:28px;padding:20px;border:1px solid var(--line);border-radius:10px;background:#f4f7f1}
.legal-accept-label{display:flex;align-items:flex-start;gap:11px;color:var(--ink);font-size:14px;line-height:1.6;font-weight:600;cursor:pointer}
.legal-accept-label input{width:19px;height:19px;flex:0 0 auto;margin:2px 0 0;accent-color:var(--teal)}
.legal-consent-clerk-note{margin:12px 0;color:var(--muted);font-size:11px;line-height:1.6}
.legal-accept-button{min-width:190px;margin-top:8px}
.legal-form-error{margin:0 0 12px;color:var(--red);font-weight:600}
.legal-page footer{width:min(930px,calc(100% - 40px));margin:0 auto}
.legal-page footer a{color:var(--teal);text-decoration:underline;text-underline-offset:2px}
@media(max-width:560px){.legal-main{width:calc(100% - 30px);padding:28px 0 40px}.legal-page .legal-content p{font-size:12px}.legal-accept-form{padding:16px}.legal-page footer{width:calc(100% - 30px);gap:12px;flex-wrap:wrap}}

.archive-topbar .brand-name { white-space: nowrap; }
.header-account-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.archive-topbar .header-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 7px;
  background: var(--teal);
  color: white;
  font-weight: 700;
}
.archive-topbar .header-signin:hover { background: var(--teal-dark); color: white; }
.header-account-actions > [hidden] { display: none; }
.header-account-actions > :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.access-notice p { margin: 0; }
@media (max-width: 820px) {
  .archive-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0 10px;
    height: auto;
    min-height: 64px;
    padding: 8px 14px;
    align-items: center;
  }
  .archive-topbar .top-actions { display: contents; }
  .archive-topbar .official-databases-link { display: none; }
  .archive-topbar .brand { gap: 8px; }
  .archive-topbar .language-switch { font-size: 11px; }
  .archive-topbar .language-switch button { min-height: 36px; padding-inline: 7px; }
  .archive-topbar .header-signin { min-height: 44px; }
  .header-account-actions { gap: 8px; font-size: 12px; }
  .header-account-actions > .admin-link:not([hidden]) { padding-block: 12px; }
  .archive-topbar .user-email:not([hidden]) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-end;
    max-width: none;
    padding-top: 3px;
    gap: 5px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .archive-topbar .user-email > span { display: inline; }
  .archive-topbar .user-email strong { max-width: none; overflow-wrap: anywhere; }
}
@media (max-width: 380px) {
  .archive-topbar { padding-inline: 10px; column-gap: 7px; }
  .archive-topbar .brand-name small { display: none; }
}
