:root {
  --ink: #1a1a1a; --muted: #6b6b6b; --line: #e8e4de;
  --accent: #b7410e; --accent-soft: #f4e8df; --bg: #faf8f5; --card: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--accent); }
main { max-width: 880px; margin: 0 auto; padding: 0 20px 60px; }

.site-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 10px; max-width: 880px; margin: 0 auto; padding: 18px 20px; }
.site-header .brand { color: var(--ink); text-decoration: none; font-size: 18px; }
.site-header nav { display: flex; gap: 18px; align-items: center; }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.site-header nav a.cta { color: #fff; background: var(--accent); padding: 7px 14px; border-radius: 6px; font-weight: 600; }

.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(26px, 4.5vw, 40px); line-height: 1.15; margin: 0 0 10px; }
.hero-note { color: var(--accent); }
.hero-footnote { color: var(--muted); font-size: 13px; }

.filters { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin: 18px 0; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-row input[type=search], .filter-row input[type=email] { flex: 1 1 220px; }
input, button { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
button { cursor: pointer; background: var(--ink); color: #fff; border: 0; font-weight: 600; }
button.primary { background: var(--accent); }
details { margin-top: 10px; }
summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; font-size: 13.5px; background: #fff; cursor: pointer; }
.chip:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.chip input { accent-color: var(--accent); margin: 0; }

.result-count { color: var(--muted); font-size: 14px; }
.pub { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 10px; }
.pub h2 { font-size: 16.5px; margin: 6px 0; font-weight: 600; }
.pub h2 a { color: var(--ink); text-decoration: none; }
.pub h2 a:hover { color: var(--accent); }
.pub-meta { font-size: 13px; color: var(--muted); }
.deadline { color: var(--accent); font-weight: 600; }
.badge { display: inline-block; border-radius: 5px; padding: 1px 8px; font-size: 12px; }
.badge.canton { background: var(--ink); color: #fff; margin-right: 4px; }
.badge.cat { background: var(--accent-soft); color: #7a3d10; margin-right: 4px; }
a.badge { text-decoration: none; }
a.badge:hover { outline: 1.5px solid var(--accent); }
.chip-actions { margin-top: 8px; font-size: 13px; color: var(--muted); }
.date-label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.muni-link { color: inherit; }
.related { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 12px; }
.related h2 { font-size: 18px; }
.related-item { margin: 6px 0; }
.linklike { background: none; border: none; color: var(--accent); cursor: pointer;
  padding: 0; font-size: 13px; text-decoration: underline; }
.pager { display: flex; gap: 16px; justify-content: center; padding: 18px 0; color: var(--muted); }

.subscribe { background: var(--accent-soft); border-radius: 12px; padding: 22px 24px; margin-top: 34px; }
.subscribe h2 { margin-top: 0; }
.hp { position: absolute; left: -9999px; height: 1px; width: 1px; }
.subscribe button { margin-top: 12px; }

.detail h1 { font-size: clamp(20px, 3.5vw, 28px); line-height: 1.3; }
.detail-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 20px 0; }
.detail-grid dt { color: var(--muted); font-size: 14px; }
.detail-grid dd { margin: 0; }
.official-links { display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-block; background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 7px; text-decoration: none; font-weight: 600; }
.button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.note { color: var(--muted); font-size: 13px; }
.breadcrumb { font-size: 14px; }
.full-description { background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 16px; }
.map-wrap { margin: 22px 0 6px; }
.map-wrap iframe { width: 100%; height: 340px; border: 1px solid var(--line); border-radius: 10px; }

.prose h1 { font-size: clamp(24px, 4vw, 32px); }
.prose table { border-collapse: collapse; width: 100%; max-width: 460px; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 7px 10px 7px 0; }
.message { text-align: center; padding: 60px 0; }

.site-footer { max-width: 880px; margin: 0 auto; padding: 22px 20px 40px; color: var(--muted);
  font-size: 13px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .detail-grid { grid-template-columns: 1fr; gap: 0 } .detail-grid dt { margin-top: 8px } }
