:root {
  --ink: #16201c;
  --muted: #667069;
  --paper: #f6f5ef;
  --card: #fffef9;
  --line: #dfdfd6;
  --green: #164c3b;
  --green-2: #29705a;
  --gold: #b98734;
  --red: #9b3e36;
  --shadow: 0 18px 45px rgba(20, 43, 34, .08);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.65 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; }
.hero { color: #fff; background: radial-gradient(circle at 80% 0%, #3e7d65 0, transparent 35%), linear-gradient(135deg, #0e3026, #174e3d 60%, #103a2e); border-bottom: 5px solid var(--gold); }
.hero-inner { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 72px 0 62px; }
.brand-row { display: flex; align-items: center; gap: 18px; margin: 0 0 24px; }
.brand-logo { width: 88px; height: 88px; flex: 0 0 auto; object-fit: contain; border-radius: 50%; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.eyebrow { margin: 0; color: #e3c78f; font-weight: 700; letter-spacing: .1em; line-height: 1.65; }
.eyebrow span { color: #d8e6df; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
h1 { max-width: 800px; margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(38px, 7vw, 70px); line-height: 1.08; letter-spacing: -.04em; }
.hero-copy { max-width: 800px; margin: 22px 0; font-size: 19px; color: #e4eee9; }
.hero-note { display: inline-block; padding: 9px 14px; color: #f1e3c5; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 13px; }
main { width: min(1180px, calc(100% - 40px)); margin: auto; }
.source-help { margin: 0 0 22px; padding: 13px 16px; color: #4e4b3f; background: #fff8e8; border: 1px solid #e2ce9d; border-radius: 11px; font-size: 13px; }
.source-help strong { margin-right: 5px; color: #714d12; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); margin: -25px 0 30px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.summary div { padding: 22px 26px; border-right: 1px solid var(--line); }
.summary div:last-child { border: 0; }
.summary strong, .summary span { display: block; }
.summary strong { color: var(--green); font: 700 28px/1.2 Georgia, serif; }
.summary span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.filters { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 14px; padding: 22px; background: #ecebe3; border-radius: 16px; }
.filters label > span { display: block; margin-bottom: 6px; color: #536058; font-size: 12px; font-weight: 700; }
input, select, button { width: 100%; min-height: 44px; border: 1px solid #cdcec5; border-radius: 9px; background: #fff; color: var(--ink); padding: 0 12px; font: inherit; }
input:focus, select:focus { outline: 2px solid #76a793; border-color: transparent; }
.history-toggle { align-self: end; display: flex; align-items: center; min-height: 44px; padding: 0 10px; background: #fff; border: 1px solid #cdcec5; border-radius: 9px; }
.history-toggle input { width: 18px; min-height: 18px; margin-right: 9px; accent-color: var(--green); }
.history-toggle > span { margin: 0 !important; font-size: 14px !important; }
button { align-self: end; cursor: pointer; color: #fff; background: var(--green); border-color: var(--green); font-weight: 700; }
.results-head { display: flex; justify-content: space-between; align-items: end; margin: 38px 0 18px; }
.results-head h2 { margin: 0; font: 700 30px/1.2 Georgia, "Noto Serif SC", serif; }
.results-head p { margin: 5px 0 0; color: var(--muted); }
.results-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.tool-button { width: auto; min-height: 36px; padding: 0 11px; color: var(--green); background: transparent; border-color: #9eb5aa; font-size: 12px; }
.legend { color: var(--muted); font-size: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; margin: 0 5px 0 12px; border-radius: 50%; }
.dot.current { background: var(--green-2); }.dot.warning { background: var(--gold); }.dot.history { background: #888; }
.results { display: grid; gap: 20px; }
.policy-card { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--green-2); border-radius: 15px; padding: 26px; box-shadow: 0 8px 26px rgba(24, 39, 32, .04); }
.policy-card.warning { border-left-color: var(--gold); }.policy-card.history { border-left-color: #888; filter: saturate(.75); }
.card-top { display: flex; justify-content: space-between; gap: 20px; }
.location { color: var(--green-2); font-size: 13px; font-weight: 800; letter-spacing: .05em; }
h3 { margin: 5px 0 3px; font: 700 24px/1.35 Georgia, "Noto Serif SC", serif; }
.doc-number { margin: 0; color: var(--muted); font-size: 13px; }
.status { height: fit-content; white-space: nowrap; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status.current { color: var(--green); background: #dcebe5; }.status.warning { color: #704c0f; background: #f5e6c7; }.status.history { color: #555; background: #e4e4df; }
.meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 22px 0; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.meta-grid div { padding: 13px 14px; background: #faf9f4; }
.meta-grid span, .meta-grid strong { display: block; }
.meta-grid span { color: var(--muted); font-size: 11px; }.meta-grid strong { margin-top: 3px; font-size: 13px; }
.notice { margin: -7px 0 18px; padding: 10px 13px; color: #6b4b18; background: #f8ecd6; border-radius: 8px; font-size: 13px; }
.notice.change { margin-top: 0; color: #782b22; background: #f9e5e1; border: 1px solid #e8b3aa; }
.notice.administrative { margin-top: 0; color: #234f67; background: #eaf4f8; border: 1px solid #a9cedd; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tags span, .mini-tags i { padding: 3px 9px; color: #355d4d; background: #e8f0ec; border-radius: 999px; font-size: 11px; font-style: normal; }
.award-list { border-top: 1px solid var(--line); }
.award-item { border-bottom: 1px solid var(--line); }
.award-item summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; cursor: pointer; font-weight: 800; }
.locality-alert { margin: 0 0 12px; padding: 10px 13px; color: #704c0f; background: #fff3d9; border: 1px solid #e6c783; border-radius: 8px; font-size: 13px; }
.locality-alert.strong { color: #762f29; background: #fff0ed; border-color: #d99b93; font-weight: 700; }
.mini-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.award-item dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 16px; background: var(--line); border: 1px solid var(--line); }
.award-item dl div { padding: 11px 13px; background: #fff; }
.award-item dl div.important { background: #fff8ec; }
dt { color: var(--muted); font-size: 11px; font-weight: 700; } dd { margin: 3px 0 0; font-size: 13px; }
.overlap { margin-top: 20px; padding: 16px 18px; background: #f0f1eb; border-radius: 10px; }
.overlap h4 { margin: 0 0 7px; }.overlap p { margin: 4px 0; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.source-missing { color: #9a3412; font-size: .86rem; padding: 8px 10px; border: 1px dashed #fdba74; border-radius: 8px; background: #fff7ed; }
.coverage-notes { margin: 0 auto 22px; padding: 20px; border: 1px solid #bfdbfe; border-radius: 14px; background: #eff6ff; }
.coverage-notes h2 { margin: 0 0 6px; font-size: 1.1rem; }
.coverage-intro { margin: 0 0 14px; color: #475569; font-size: .9rem; }
.coverage-grid { display: grid; gap: 10px; }
.coverage-grid article { padding: 12px; border: 1px solid #dbeafe; border-radius: 10px; background: #fff; }
.coverage-grid article > div { display: flex; align-items: baseline; gap: 8px; }
.coverage-grid article > div span { color: #64748b; font-size: .78rem; }
.coverage-grid article p { margin: 7px 0 0; color: #334155; font-size: .88rem; line-height: 1.55; }
.coverage-status { display: inline-block; margin-top: 7px; color: #1d4ed8; font-size: .82rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; color: #fff; background: var(--green); border-radius: 8px; text-decoration: none; font-weight: 800; font-size: 13px; }
.actions button.button { width: auto; cursor: pointer; }
.button.secondary { color: var(--green); background: transparent; border: 1px solid var(--green); }
.history-copy, .empty { color: var(--muted); }
.empty { padding: 60px 20px; text-align: center; background: #fff; border: 1px dashed #bbb; border-radius: 12px; }
footer { margin-top: 60px; padding: 30px 20px; color: #cfd8d3; background: #132b22; text-align: center; font-size: 12px; }

@media (max-width: 860px) {
  .summary { grid-template-columns: 1fr 1fr; }.summary div:nth-child(2) { border-right: 0; }.summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filters { grid-template-columns: 1fr 1fr; }.search-field { grid-column: 1 / -1; }
  .meta-grid { grid-template-columns: 1fr 1fr; }.award-item dl { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-inner, main { width: min(100% - 24px, 1180px); }.hero-inner { padding: 50px 0; }
  .brand-row { gap: 13px; margin-bottom: 20px; }.brand-logo { width: 68px; height: 68px; }.eyebrow { font-size: 12px; }
  .filters { grid-template-columns: 1fr; }.search-field { grid-column: auto; }
  .results-head, .card-top { align-items: flex-start; flex-direction: column; }.results-tools { justify-content: flex-start; }.legend { display: none; }
  .tool-button { flex: 1 1 100%; }
  .meta-grid { grid-template-columns: 1fr; }.policy-card { padding: 20px 16px; }.actions { flex-direction: column; }.actions button.button { width: 100%; }
}
