/* Clallam County Critical Areas resident guide. Light editorial theme. */

:root {
  --paper: #f3eee4;
  --paper-deep: #e9e1d2;
  --raised: #fbf7f0;
  --white: #fffdf8;
  --ink: #1b2420;
  --ink-soft: #3a4742;
  --muted: #4e5c56;
  --forest: #1c3b30;
  --forest-deep: #12261e;
  --moss: #2c684e;
  --moss-soft: #e4f0e9;
  --line: #ddd4c4;
  --line-strong: #cbbfaa;
  --cedar: #7d3b22;
  --gold: #f4e6c8;
  --gold-ink: #3d2e12;
  --shadow: 0 1px 0 rgba(28, 36, 32, 0.04);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --header: 7.4rem;
  --wrap: 1080px;
  --focus: 3px solid var(--forest);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 8% -10%, rgba(44, 104, 78, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f3eb 0%, var(--paper) 220px);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.stat-num,
.brand-name {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2.05rem, 4.5vw, 3.25rem);
  max-width: 12em;
  color: var(--forest-deep);
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  color: var(--forest-deep);
}

h3 {
  margin-bottom: 0.4rem;
  font-size: 1.28rem;
  color: var(--forest-deep);
}

p,
li,
td,
th,
caption {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: manual;
}

a {
  color: var(--forest);
  overflow-wrap: break-word;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--forest-deep);
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  transform: translateY(-140%);
  background: var(--forest);
  color: var(--white);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 1.5rem));
  margin-inline: auto;
}

.lede,
.section-intro {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.kicker {
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
}

.fine {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 238, 228, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  padding: 0.75rem 0 0.45rem;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 56px;
  height: 56px;
  max-width: none;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
}

.brand-name {
  font-size: 1.2rem;
  color: var(--forest-deep);
}

.nav {
  display: flex;
  gap: 0.35rem 1rem;
  min-width: 0;
  max-width: 100%;
  padding: 0 0 0.7rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--forest);
  border-bottom-color: var(--moss);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border: 1.5px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: #f6f1e6;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--forest);
}

.btn-secondary:hover {
  background: var(--moss-soft);
  color: var(--forest-deep);
}

.btn-small {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
}

.hero {
  padding: 2.2rem 0 1.4rem;
}

.hero h1 {
  max-width: 18em;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
}

.status-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  align-items: center;
  margin: 1.15rem 0 1.1rem;
  padding: 0;
}

.status-badge span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.status-badge .sep {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.15rem 0 0.7rem;
}

.independent {
  margin: 0;
  max-width: 62ch;
}

.status-card,
.panel,
.fix,
.letter,
.date-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.status-card {
  padding: 1.15rem 1.15rem 1rem;
  background:
    linear-gradient(180deg, rgba(244, 230, 200, 0.55), transparent 42%),
    var(--white);
}

.status-card h2 {
  font-size: 1.45rem;
}

.status-card p:last-child {
  margin-bottom: 0;
}

.section {
  padding: 2.6rem 0 2.8rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header);
}

.stat-pair {
  display: grid;
  gap: 0.75rem;
  margin: 1.3rem 0 1.5rem;
}

.stat {
  padding: 1rem 1.05rem 0.95rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.stat-kicker {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-num {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  color: var(--forest);
}

.stat-draft .stat-num {
  color: var(--cedar);
}

.stat-note {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

.compare {
  overflow: auto;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.compare caption {
  caption-side: bottom;
  padding: 0.75rem 0.2rem 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.92rem;
}

.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  background: #f6f1e6;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare th[scope="row"] {
  width: 20%;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--forest-deep);
}

.chart {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.chart h3 {
  font-size: 1.35rem;
  max-width: 28ch;
}

.chart figcaption {
  margin: 0.85rem 0 0;
}

#status {
  scroll-margin-top: var(--header);
}

.bar-row {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  margin: 0.7rem 0;
}

.bar-name,
.bar-value {
  font-weight: 700;
  font-size: 0.95rem;
}

.bar-value {
  font-variant-numeric: tabular-nums;
  min-width: 4.6rem;
  text-align: right;
}

.track {
  height: 1.15rem;
  background: #efe6d6;
  border-radius: 999px;
  overflow: hidden;
}

.fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.fill-today {
  width: 56%;
  background: var(--moss);
}

.fill-draft {
  width: 95%;
  background: var(--forest);
}

.scale {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.scale-row {
  margin-bottom: 0.15rem;
}

.remainder {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.remainder div {
  padding: 0.75rem 0.8rem;
  background: var(--raised);
  border-radius: 10px;
}

.remainder strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 560;
  color: var(--forest-deep);
}


.impact-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.impact-card {
  padding: 1.15rem 1.15rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.impact-card p:last-child {
  margin-bottom: 0;
}

.cites {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.source-list {
  max-width: 75ch;
  margin: 0.4rem 0 1.4rem;
  padding-left: 1.15rem;
}

.source-list li {
  margin: 0.55rem 0;
}

.source-list li:last-child {
  margin-bottom: 0;
}

.callout {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--moss-soft);
  border-left: 4px solid var(--moss);
  border-radius: 0 10px 10px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.fix-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.fix {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem 1rem 0.95rem;
}

.fix-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.45rem;
  border-radius: 50%;
  background: var(--forest);
  color: #f6f1e6;
  font-size: 0.92rem;
  font-weight: 750;
}

.fix p:last-child {
  margin-bottom: 0;
}

.ask {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.98rem;
}

.ask span {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cedar);
}

.builder {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
}

.form-card,
.preview-col {
  min-width: 0;
}

.form-card {
  padding: 1rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 14px;
}

fieldset {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 0.5rem;
  font-weight: 750;
}

.choices {
  display: grid;
  gap: 0.5rem;
}

.choice {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  min-height: 48px;
  padding: 0.75rem;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}

.choice:has(input:checked) {
  background: var(--moss-soft);
  border-color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--forest);
  flex: 0 0 auto;
}

.choice strong {
  display: block;
  font-size: 1rem;
}

.choice small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.field span {
  font-weight: 700;
}

input:not([type="checkbox"]):not([type="radio"]),
select {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.hint {
  margin: -0.35rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.letter {
  overflow: hidden;
}

.letter-head {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: #f6f1e6;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.letter-head div {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0.4rem;
}

.letter-head dt {
  color: var(--muted);
  font-weight: 750;
}

.letter-head dd {
  margin: 0;
}

.letter-body {
  margin: 0;
  padding: 1rem;
  min-height: 8rem;
  white-space: pre-wrap;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
  background: var(--white);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.actions .btn {
  flex: 1 1 12rem;
}

#copy-status {
  min-height: 1.4rem;
  margin: 0.55rem 0 0;
  font-weight: 700;
  color: var(--moss);
}

.link-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.link-list a .link-name {
  min-width: 0;
}

.later-heading {
  margin-top: 1.6rem;
}

.link-list a .link-tag {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.steps {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.steps li + li {
  margin-top: 0.55rem;
}

.date-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.date-card {
  padding: 1rem 1rem 0.9rem;
}

.date-card.quiet {
  background: var(--raised);
}

.facts {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: grid;
  gap: 0.1rem;
}

.facts span {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.zoom-id {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.contact-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.contact-grid article {
  min-width: 0;
  padding: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-grid h3 {
  font-size: 1.15rem;
}

.contact-grid p {
  margin-bottom: 0.35rem;
}

.site-footer {
  background: var(--forest);
  color: #f3eee4;
  padding: 1.6rem 0 1.8rem;
}

.site-footer a {
  color: #fff;
}

.disclaimer {
  margin: 0 0 0.6rem;
  max-width: 70ch;
  font-size: 1.02rem;
}

.site-footer .fine {
  color: #d5e0d8;
  margin: 0;
}

.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;
}

@media (min-width: 720px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 3rem));
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
    align-items: start;
    gap: 1.5rem;
  }

  .stat-pair,
  .remainder,
  .date-grid,
  .contact-grid,
  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .choices {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .status-badge .sep {
    display: inline-flex;
  }

  .fix-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (min-width: 980px) {
  .builder {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
  }

  .preview-col {
    position: sticky;
    top: calc(var(--header) + 0.6rem);
  }

  .compare th[scope="row"] {
    width: 18%;
  }
}

@media (max-width: 719px) {
  :root {
    --header: 6.25rem;
  }

  .header-bar {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.4rem 0 0.15rem;
  }

  .header-bar .btn {
    display: none;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .brand-name {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  /* The home kicker is a long all-caps line; on a phone it
     crushes the wordmark against the nav. The logo already
     identifies the site, so drop the kicker here only. */
  body.home .brand-kicker {
    display: none;
  }

  /* Two short nav links plus the wordmark do not fit on one
     390px row. Put the links on the line below. */
  body.home .header-bar {
    flex-wrap: wrap;
  }
  body.home .header-links {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 0 0 0.4rem calc(48px + 0.65rem);
  }

  .nav {
    flex-wrap: nowrap;
    gap: 0 1.05rem;
    padding: 0 0 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .hero-actions .btn {
    flex: 1 1 0;
  }

  .compare {
    overflow: visible;
  }

  .compare table,
  .compare caption,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .compare thead {
    display: none;
  }

  .compare table {
    background: transparent;
    border: 0;
  }

  .compare caption {
    padding: 0 0 0.85rem;
  }

  .compare tr {
    margin-bottom: 0.75rem;
    padding: 0.85rem 0.9rem 0.35rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .compare th[scope="row"] {
    width: 100%;
    max-width: none;
    padding: 0 0 0.35rem;
    border: 0;
    font-size: 1.2rem;
    overflow-wrap: normal;
    word-break: normal;
  }

  .compare td {
    padding: 0.15rem 0 0.75rem;
    border: 0;
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .status-badge .sep,
  .scale-row {
    display: none;
  }

  .bar-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .track {
    grid-column: 1 / -1;
    order: 3;
  }

  .scale {
    display: none;
  }

  .link-list a .link-name,
  .source-list a,
  .cites a,
  .letter-head dd {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .actions,
  .skip {
    display: none;
  }

  body {
    background: #fff;
  }

  .section {
    break-inside: avoid;
  }

  a {
    text-decoration: none;
  }
}

/* Plain-language rewrite additions */
.plain p { margin: 0 0 0.8rem; max-width: 46rem; }
.plain .cites { font-size: 0.85rem; color: var(--muted); }
.tldr { margin: 0 0 1rem; padding-left: 1.2rem; max-width: 46rem; }
.tldr li { margin-bottom: 0.45rem; }
.status-card p { margin: 0 0 0.6rem; }
.changes table { font-size: 0.92rem; }
.changes thead th { text-align: left; padding: 0.7rem 0.75rem; background: var(--forest); color: var(--white); font-size: 0.85rem; }
.changes th[scope="row"] { width: 14%; font-size: 1rem; padding: 0.9rem 0.75rem; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.changes td[data-label="Proposed"] { background: var(--gold); color: var(--gold-ink); }
.changes td.cite { font-size: 0.8rem; color: var(--muted); width: 13%; }
.changes tbody tr:nth-child(even) th, .changes tbody tr:nth-child(even) td:not([data-label="Proposed"]) { background: var(--raised); }
.detail { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.3rem; margin: 0 0 1.2rem; }
.detail h3 { margin-top: 0; font-family: var(--serif); font-size: 1.45rem; color: var(--forest-deep); }
.detail h4 { margin: 1.1rem 0 0.35rem; font-size: 1.02rem; color: var(--forest); }
.detail p, .detail ul { max-width: 48rem; }
.detail li { margin-bottom: 0.4rem; }
.mini { margin: 0.8rem 0; }
.mini table { max-width: 40rem; font-size: 0.95rem; }
.mini thead th { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 2px solid var(--line-strong); }
.mini th[scope="row"] { width: 30%; font-size: 1rem; padding: 0.55rem 0.7rem; }
.mini td { padding: 0.55rem 0.7rem; }
.asks { background: var(--moss-soft); border-radius: 12px; padding: 0.8rem 1rem; margin: 0 0 1.2rem; max-width: 48rem; }
.asks summary { cursor: pointer; font-weight: 650; color: var(--forest-deep); }
.asks ol { margin: 0.6rem 0 0.4rem; padding-left: 1.3rem; }
@media (max-width: 719px) {
  .changes td.cite, .changes th[scope="row"] { width: 100%; }
  .changes tbody tr { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem; margin-bottom: 0.9rem; }
  .changes tbody tr:nth-child(even) th, .changes tbody tr:nth-child(even) td:not([data-label="Proposed"]) { background: transparent; }
  .changes td[data-label="Proposed"] { border-radius: 8px; padding: 0.5rem 0.6rem; }
  .mini th[scope="row"] { width: 100%; }
}

/* ===== Rollup: collapsible sections, table preview, checkbox letter builder ===== */
details[id], section[id] { scroll-margin-top: calc(var(--header) + 0.4rem); }

.fold { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 0.75rem; }
.fold > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.8rem; row-gap: 0.15rem; align-items: center; min-height: 48px; padding: 0.85rem 1rem; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker, .group > summary::-webkit-details-marker { display: none; }
.fold > summary::after, .group > summary::after { content: ""; width: 0.6rem; height: 0.6rem; border-right: 2.5px solid var(--forest); border-bottom: 2.5px solid var(--forest); transform: rotate(45deg); transition: transform 0.15s; margin-right: 0.2rem; }
.fold > summary::after { grid-column: 2; grid-row: 1 / span 2; }
.fold[open] > summary::after, .group[open] > summary::after { transform: rotate(-135deg); }
.fold > summary:focus-visible, .group > summary:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 12px; }
.fold-title { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; color: var(--forest-deep); }
.fold-top .fold-title { font-size: 1.45rem; }
.fold-teaser { grid-column: 1; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.35; }
.fold-body { padding: 0 1.1rem 1.1rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.fold-body h4 { margin: 1.1rem 0 0.35rem; font-size: 1.02rem; color: var(--forest); }
.fold-body p, .fold-body ul { max-width: 48rem; }
.fold-body li { margin-bottom: 0.4rem; }
#details > .wrap > .section-intro { margin-bottom: 0.6rem; }

.date-line { margin: 0 0 0.9rem; padding: 0.8rem 1rem; background: var(--gold); color: var(--gold-ink); border-radius: 12px; max-width: 52rem; }
.date-line a { color: inherit; font-weight: 700; }

/* Comparison topics: compact, individually collapsible */
.change-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.85rem; margin: 0 0 0.65rem; }
.change-toolbar .fine { margin: 0; }
.change-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); margin: 0 0 0.8rem; }
.change { border-bottom: 1px solid var(--line); }
.change:last-child { border-bottom: 0; }
.change > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.7rem; padding: 0.62rem 2.1rem 0.62rem 0.75rem; cursor: pointer; list-style: none; position: relative; }
.change > summary::-webkit-details-marker { display: none; }
.change > summary::after { content: ""; position: absolute; right: 0.85rem; top: 50%; width: 0.45rem; height: 0.45rem; margin-top: -0.3rem; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(45deg); }
.change[open] > summary::after { transform: rotate(-135deg); margin-top: -0.1rem; }
.change > summary:focus-visible { outline: var(--focus); outline-offset: -2px; }
.chg-topic { flex: 1 1 11rem; font-weight: 750; font-size: 0.95rem; line-height: 1.3; color: var(--forest-deep); }
.chg-teaser { flex: 2 1 14rem; font-size: 0.86rem; line-height: 1.35; color: var(--ink-soft); font-weight: 500; }
.chg-body { display: grid; gap: 0; padding: 0.85rem 0.8rem 0.95rem; font-size: 0.95rem; line-height: 1.5; border-top: 1px solid var(--line); background: var(--raised); }
.chg-cell + .chg-cell { margin-top: 0.9em; }
.chg-label { display: block; font-size: 0.95rem; font-weight: 700; font-family: var(--sans); letter-spacing: 0; text-transform: none; color: var(--forest); margin: 0 0 0.3em; line-height: 1.3; }
.chg-val { min-width: 0; overflow-wrap: anywhere; }
.chg-proposed { background: var(--gold); color: var(--gold-ink); border-radius: 8px; padding: 0.5rem 0.65rem 0.55rem; }
.chg-proposed .chg-label { color: var(--forest); }
.chg-source { font-size: 0.9rem; }
.chg-source a { overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .chg-body { grid-template-columns: 1.1fr 1.2fr 1.1fr 0.85fr; gap: 0.85rem; padding: 0.85rem 0.9rem 0.9rem; }
  .chg-cell + .chg-cell { margin-top: 0; }
  .chg-proposed { padding-bottom: 0.6rem; }
}

.fold-more { margin: 0.6rem 0 0.2rem; max-width: 46rem; }
.fold-more > summary { font-weight: 650; color: var(--forest); font-size: 0.95rem; padding: 0.55rem 0.85rem; min-height: 0; }
.tldr { margin: 0 0 0.7rem; }
.tldr li { margin-bottom: 0.28rem; }

.step { margin: 1.3rem 0 0.5rem; font-family: var(--serif); font-size: 1.15rem; color: var(--forest-deep); }
.step:first-child { margin-top: 0; }
.field textarea, textarea { width: 100%; min-height: 8rem; padding: 0.65rem 0.7rem; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.45; resize: vertical; }

.preset-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; max-width: 28rem; margin: 0 0 0.5rem; }
.preset { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 0.45rem 0.55rem; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--white); color: var(--forest-deep); font: inherit; font-size: 0.95rem; font-weight: 650; cursor: pointer; }
.preset:hover { border-color: var(--forest); }
.preset:focus-visible { outline: var(--focus); outline-offset: 2px; }
.preset[aria-pressed="true"] { background: var(--moss-soft); border-color: var(--forest); color: var(--forest-deep); box-shadow: inset 0 0 0 1px var(--forest); }
#clear-all { margin: 0 0 0.45rem; min-height: 32px; padding: 0.25rem 0.7rem; font-size: 0.85rem; width: auto; }

.group { background: var(--white); border: 1.5px solid var(--line-strong); border-radius: 12px; margin: 0 0 0.65rem; overflow: hidden; }
.group > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.65rem; min-height: 48px; padding: 0.55rem 0.8rem; cursor: pointer; list-style: none; font-weight: 750; }
.g-title { flex: 1 1 9rem; min-width: 0; margin-right: 0.35rem; font-family: var(--serif); font-size: 1.05rem; color: var(--forest-deep); }
.count { display: inline-block; flex: 0 0 auto; margin-left: 0.15rem; padding: 0.12rem 0.55rem; border-radius: 999px; background: var(--paper-deep); font-size: 0.75rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.count.has { background: var(--moss-soft); color: var(--moss); }
.group > summary::after { flex: 0 0 0.6rem; margin-left: 0.15rem; }
.group fieldset { margin: 0; padding: 0 0.7rem 0.7rem; border: 0; border-top: 1px solid var(--line); }
.g-desc { margin: 0.55rem 0 0.35rem; color: var(--ink-soft); font-size: 0.9rem; }
.group-actions { display: flex; gap: 0.4rem; margin: 0 0 0.55rem; }
.group-actions .btn { min-height: 32px; padding: 0.22rem 0.65rem; font-size: 0.85rem; width: auto; flex: 0 0 auto; }

.opt { display: block; margin: 0 0 0.5rem; padding: 0; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); }
.opt:last-child { margin-bottom: 0; }
.opt:has(input:checked) { background: var(--moss-soft); border-color: var(--forest); }
.opt-main { display: flex; align-items: flex-start; gap: 0.7rem; margin: 0; padding: 0.65rem 0.75rem 0.35rem; cursor: pointer; min-height: 44px; }
.opt input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  max-width: 22px;
  min-height: 22px !important;
  max-height: 22px;
  margin: 0.15rem 0 0;
  padding: 0;
  flex: 0 0 22px;
  border: 2px solid var(--forest);
  border-radius: 4px;
  background: #fff;
  display: inline-block;
  position: relative;
  cursor: pointer;
  vertical-align: top;
}
.opt input[type="checkbox"]:checked { background: var(--forest); }
.opt input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.opt input[type="checkbox"]:focus-visible { outline: var(--focus); outline-offset: 2px; }
.opt-text { display: flex; flex-direction: column; gap: 0.22rem; min-width: 0; flex: 1; }
.opt-label, .opt-text strong { display: block; font-size: 1rem; line-height: 1.3; }
.opt .why { display: block; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.4; }
.opt .sec { display: block; padding: 0 0.75rem 0.55rem 3.05rem; font-size: 0.82rem; color: var(--moss); overflow-wrap: anywhere; }

.sticky-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 1rem -1rem -1rem; padding: 0.7rem 1rem; background: var(--forest); color: var(--white); border-radius: 0 0 14px 14px; font-weight: 700; }
.sticky-bar .btn { background: var(--white); color: var(--forest-deep); border-color: var(--white); }

@media (min-width: 980px) {
  .sticky-bar { display: none; }
  .letter-body { max-height: calc(100vh - 17rem); overflow: auto; }
}

@media (max-width: 719px) {
  .fold-title { font-size: 1.15rem; }
  .fold-top .fold-title { font-size: 1.25rem; }
  .letter-body { min-height: 6.5rem; max-height: 11rem; overflow: auto; }
}

@media print {
  #expand-changes, #expand-details, #expand-days, .sticky-bar, .group-actions, .preset-row, #clear-all, .cal-toolbar { display: none; }
  details::details-content { content-visibility: visible; display: block; height: auto; }
  .fold > summary::after, .group > summary::after, .change > summary::after, .cal-day > summary::after { display: none; }
  .chg-body, .fold-body, .group fieldset, .cal-day .meeting-list { display: block !important; }
  .cal-day .meeting-list { display: grid !important; }
}


/* Phone compactness: collapsed full-page height */
@media (max-width: 719px) {
  .hero { padding: 1rem 0 0.7rem; }
  .hero h1 { font-size: 1.65rem; margin-bottom: 0.55rem; max-width: none; }
  .plain p { margin: 0 0 0.55rem; }
  .tldr { margin: 0 0 0.45rem; font-size: 0.95rem; line-height: 1.4; }
  .tldr li { margin-bottom: 0.18rem; }
  .hero-actions { margin: 0.7rem 0 0.45rem; }
  .status-card { padding: 0.75rem 0.85rem 0.7rem; }
  .status-card h2 { font-size: 1.2rem; margin-bottom: 0.3rem; }
  .status-card p { margin: 0 0 0.35rem; }
  .section { padding: 1.15rem 0 1.25rem; }
  .section-intro { margin-bottom: 0.55rem; }
  .date-line { margin: 0 0 0.55rem; padding: 0.55rem 0.75rem; }
  .fold > summary { min-height: 0; padding: 0.55rem 0.8rem; }
  .fold-title { font-size: 1.05rem; }
  .fold-top .fold-title { font-size: 1.15rem; }
  .fold-teaser { font-size: 0.84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .site-footer { padding-top: 1rem; padding-bottom: 1.1rem; }
  .field { margin-bottom: 0.55rem; }
  .field textarea, textarea { min-height: 5.5rem; }
  .step { margin: 0.9rem 0 0.4rem; font-size: 1.05rem; }

  /* One compact row per comparison topic */
  .change > summary { flex-wrap: nowrap; align-items: baseline; gap: 0.4rem; padding: 0.5rem 1.7rem 0.5rem 0.65rem; }
  .chg-topic { flex: 0 1 auto; max-width: 48%; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chg-teaser { flex: 1 1 0; min-width: 0; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .change-toolbar { margin-bottom: 0.4rem; }

  .about-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 0.6rem; margin-bottom: 0.35rem; }
  .about-fields .field { margin-bottom: 0; }
  #comment-form input:not([type="checkbox"]), #comment-form select { min-height: 42px; padding: 0.4rem 0.55rem; }
  .field textarea, textarea { min-height: 4.75rem; }
  .fold-teaser { -webkit-line-clamp: 1; }
  .fold > summary { padding: 0.42rem 0.7rem; }
  #details .section-intro { margin-bottom: 0.35rem; }
  .sticky-bar { margin-top: 0.7rem; padding: 0.5rem 0.85rem; }

  .tldr { font-size: 0.9rem; line-height: 1.35; }
  .hero-actions { margin: 0.55rem 0 0.35rem; }
  .hero-actions .btn { min-height: 42px; }
  .letter-head { padding: 0.55rem 0.75rem; font-size: 0.9rem; }
  .letter-body { min-height: 5.5rem; max-height: 9rem; }
  .group > summary { min-height: 42px; padding: 0.4rem 0.7rem; }
  .g-title { font-size: 0.98rem; }
  .date-line { font-size: 0.95rem; }
  .site-footer { padding-top: 0.75rem; padding-bottom: 0.85rem; font-size: 0.92rem; }
  #comment .section-intro { margin-bottom: 0.45rem; }
  .preview-col .actions { margin-top: 0.5rem; }
  .preview-col .actions .btn { min-height: 42px; }
}


/* ===== Site chrome and initiative landing ===== */
.header-links,
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem 1rem;
  flex: 0 0 auto;
}
.header-links a,
.all-init {
  color: var(--forest);
  font-weight: 650;
  text-decoration: none;
  font-size: 0.95rem;
}
.header-links a:hover,
.all-init:hover {
  color: var(--forest-deep);
  text-decoration: underline;
}

.home-hero {
  padding: 1.8rem 0 0.5rem;
}
.home-hero h1 {
  margin-bottom: 0.45rem;
  max-width: 12em;
}
.purpose {
  margin: 0;
  max-width: 36rem;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.initiative-list {
  display: grid;
  gap: 2.25rem;
  max-width: 42rem;
}
.initiative-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: 0 1px 2px rgba(28, 36, 32, 0.05), 0 6px 16px rgba(28, 36, 32, 0.06);
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem 0.8rem;
  margin-bottom: 0.55rem;
}
.card-title {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 1.4rem;
  color: var(--forest-deep);
}
.status-pill {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  flex: 0 0 auto;
}
.card-summary { margin: 0 0 0.7rem; }
.card-meta,
.card-next {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.05rem;
}
.more-soon {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42rem;
}
.about-site { max-width: 42rem; }
.about-site p { margin: 0 0 0.8rem; }
.update-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.update-list li {
  margin: 0;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.update-list li:first-child { padding-top: 0.2rem; }
.update-list li:last-child { border-bottom: 0; padding-bottom: 0.15rem; }

@media (max-width: 719px) {
  .home-hero { padding: 1rem 0 0.35rem; }
  .home-hero h1 { font-size: 1.85rem; }
  .purpose { font-size: 1.05rem; }
  .initiative-card { padding: 1.15rem 1rem 1.25rem; }
  .card-actions .btn { flex: 1 1 auto; min-height: 44px; }
  /* Keep "All initiatives" visible; the on-page nav still has Write a comment. */
  .header-actions .all-init { display: inline; }

  /* Four home links need the full row. The earlier indent under the
     wordmark left only ~2px of slack at 390px and wrapped beside the
     logo on slightly narrower phones. */
  body.home { --header: 7.35rem; }
  body.home .header-bar {
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
  }
  body.home .brand { flex: 1 1 auto; max-width: 100%; }
  body.home .header-links {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.35rem 0.7rem;
    padding: 0.05rem 0 0.4rem;
  }
  body.home .header-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.3rem 0;
    white-space: nowrap;
  }
}

@media (min-width: 720px) {
  .home-hero { padding-top: 2.4rem; }
}


/* ===== Public meetings calendar ===== */
.cal-updated { margin: 0.7rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.cal-stale {
  margin: 0.6rem 0 0; padding: 0.55rem 0.8rem; max-width: 36rem;
  background: var(--gold); color: var(--gold-ink); border-radius: 10px; font-size: 0.95rem; font-weight: 600;
}
.cal-section { padding-top: 1rem; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.55rem; }
.filter-btn {
  min-height: 44px; padding: 0.45rem 0.95rem;
  border: 1.5px solid var(--forest); border-radius: 999px;
  background: transparent; color: var(--forest);
  font: inherit; font-size: 0.95rem; font-weight: 700; line-height: 1.2; cursor: pointer;
}
.filter-btn:hover { background: var(--moss-soft); }
.filter-btn[aria-pressed="true"] { background: var(--forest); color: #f6f1e6; }
.filter-btn:focus-visible { outline: var(--focus); outline-offset: 2px; }
.filter-count { font-weight: 600; opacity: 0.8; font-size: 0.85em; }
.cal-toolbar { margin: 0 0 0.45rem; }
.cal-status { margin: 0 0 0.85rem; color: var(--ink-soft); font-size: 0.95rem; min-height: 1.4em; }
.cal-days { max-width: 46rem; }
.cal-month { margin: 0 0 1.35rem; }
.cal-month-title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  color: var(--forest-deep);
}
.cal-days,
.cal-month,
.cal-day-list,
.cal-day,
.cal-day .meeting-list,
.meeting,
.m-main,
.m-links,
.m-sub,
.m-title,
.m-noagenda {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.cal-day-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  margin: 0;
}
.cal-day { border-bottom: 1px solid var(--line); margin: 0; background: var(--white); }
.cal-day:last-child { border-bottom: 0; }
.cal-day > summary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  min-height: 44px;
  padding: 0.4rem 2.1rem 0.4rem 0.75rem;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.cal-day > summary::-webkit-details-marker { display: none; }
.cal-day > summary::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.3rem;
  border-right: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: rotate(45deg);
}
.cal-day[open] > summary::after { transform: rotate(-135deg); margin-top: -0.1rem; }
.cal-day > summary:focus-visible { outline: var(--focus); outline-offset: -2px; }
.cal-date-label {
  flex: 0 1 auto;
  font-weight: 750;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--forest-deep);
  white-space: nowrap;
}
.cal-today {
  color: var(--moss);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cal-day-teaser {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-day-chips .m-chip { vertical-align: middle; }
.cal-day .meeting-list {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.65rem 0.7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--raised);
}
.meeting {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  overflow-wrap: anywhere;
}
.meeting.is-cancelled { background: var(--paper); }
.meeting.is-cancelled .m-title { color: var(--muted); }
.meeting p { margin: 0; }
.m-time { font-size: 0.9rem; font-weight: 700; color: var(--forest); margin-bottom: 0.1rem !important; }
.m-title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; font-weight: 700; color: var(--forest-deep); }
.m-chips { margin-top: 0.3rem !important; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.m-chip {
  display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper);
  font-size: 0.78rem; font-weight: 700; line-height: 1.5; color: var(--ink-soft);
}
.m-clallam-county { background: #e4f0e9; border-color: #b5d3c3; color: #17402e; }
.m-port-angeles { background: #e5ecf4; border-color: #b9c9dc; color: #1c3550; }
.m-sequim { background: #f4e6c8; border-color: #e0cb9d; color: #3d2e12; }
.m-forks { background: #efe3f0; border-color: #d4bdd7; color: #46234b; }
.m-cancelled { background: #f7e3dc; border-color: #e3b9a9; color: #7d3b22; }
.m-sub, .m-title, .m-noagenda, .m-page {
  overflow-wrap: anywhere;
}
.m-sub { margin-top: 0.35rem !important; font-size: 0.9rem; color: var(--ink-soft); }
.m-links { margin-top: 0.5rem !important; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.65rem; }
.m-links .btn, .m-links a { max-width: 100%; }
.m-links .btn { min-height: 44px; }
.m-noagenda { font-size: 0.9rem; font-weight: 600; color: var(--cedar); }
.m-page { font-size: 0.9rem; font-weight: 650; }
.cal-empty { margin: 0 0 1rem; padding: 0.8rem 1rem; background: var(--white); border: 1px dashed var(--line-strong); border-radius: 12px; max-width: 46rem; }
.cal-note { margin: 1.2rem 0 0; max-width: 46rem; color: var(--muted); font-size: 0.95rem; }
.ics-links { margin: 0; font-size: 1rem; }
.src-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; max-width: 46rem; }
.src { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; }
.src p { margin: 0 0 0.35rem; font-size: 0.95rem; }
.src-name { margin: 0 0 0.35rem; font-size: 1.1rem; color: var(--forest-deep); }
.src-count { color: var(--ink-soft); }
.src-stale { color: var(--cedar); }
.calendar-callout { margin: 0.8rem 0 0; }
body.calendar-page .header-actions .all-init { display: inline; }

@media (min-width: 720px) {
  .meeting { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 0 1rem; padding: 0.7rem 0.9rem; }
  .m-time { margin: 0.15rem 0 0 !important; }
  .cal-date-label { font-size: 1.02rem; }
}
@media (max-width: 719px) {
  .filter-btn { flex: 1 1 auto; }
  .cal-day > summary { padding: 0.36rem 1.7rem 0.36rem 0.65rem; }
  .cal-date-label { font-size: 0.92rem; }
  .cal-day-teaser { font-size: 0.8rem; }
  .cal-day .meeting { padding: 0.45rem 0.55rem; }
  .cal-day .meeting-list { padding: 0.5rem 0.5rem 0.65rem; gap: 0.7rem; }
  .cal-day .m-links { margin-top: 0.35rem !important; }
  .cal-day .m-links .btn { flex: 0 1 auto; min-height: 38px; padding: 0.28rem 0.7rem; }
}
.cal-day[hidden], .cal-month[hidden], .meeting[hidden], .cal-empty[hidden], .cal-stale[hidden], .cal-today[hidden] { display: none !important; }

/* Guide headers: the Meetings link sits in the top bar on wide screens and at the end of the section nav on phones. */
@media (min-width: 720px) { .nav .nav-meetings { display: none; } }
@media (max-width: 719px) { .header-actions .all-init.meetings-link { display: none; } }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.contact-card { min-width: 0; }
.contact-card form[hidden] { display: none; }
.contact-card .field > span { font-weight: 700; }
.contact-card .field select, .contact-card .field input, .contact-card .field textarea { max-width: 100%; box-sizing: border-box; }
.req { color: var(--cedar); text-decoration: none; border: 0; cursor: help; }
.field-hint { font-style: normal; font-size: 0.88rem; color: var(--muted); }
.field-error { font-style: normal; font-size: 0.92rem; font-weight: 650; color: var(--cedar); }
.field-error[hidden] { display: none; }
[aria-invalid="true"] { border-color: var(--cedar) !important; box-shadow: inset 0 0 0 1px var(--cedar); }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile-wrap { margin: 0.4rem 0 1rem; min-height: 4.5rem; }
.turnstile-wrap .fine { margin: 0.35rem 0 0; }
.form-msg { margin: 0 0 1rem; padding: 0.8rem 0.95rem; border: 1.5px solid var(--line-strong); border-radius: 10px; font-weight: 600; background: var(--white); }
.form-msg-ok { background: var(--moss-soft); border-color: var(--forest); color: var(--forest-deep); }
.form-msg-error { background: #f8e9e2; border-color: var(--cedar); color: var(--cedar); }
.form-status[hidden] { display: none; }
.contact-aside h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.contact-points { margin: 0 0 1rem; padding-left: 1.15rem; display: grid; gap: 0.6rem; }
.contact-page .home-hero .purpose { max-width: 46rem; }
.footer-links { margin-top: 0.3rem; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; align-items: start; }
}


/* Legal note (guide letter builder and similar) */
.legal-note {
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.9rem;
  max-width: 46rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Contact form consent checkboxes */
.consent-list {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1rem;
}
.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  min-width: 0;
  padding: 0.65rem 0.7rem;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.consent:has(input:checked) {
  background: var(--moss-soft);
  border-color: var(--forest);
}
.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--forest);
  flex: 0 0 auto;
}
.consent span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
}
.consent-list .field-error { margin: 0; }

/* Used by the comment letter copy fallback instead of element.style, so a
   strict style-src CSP does not block it. */
.offscreen-copy {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
}

main.simple-page {
  padding: 2rem 0;
}

/* Data center guide: two-sided cases, verdicts, timeline */
.case-grid {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.2rem;
}
.case-card {
  min-width: 0;
  padding: 1.2rem 1.2rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(28, 36, 32, 0.05), 0 6px 16px rgba(28, 36, 32, 0.06);
}
.case-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--forest-deep);
}
.case-card ul {
  margin: 0;
  padding-left: 1.15rem;
}
.case-card li {
  margin-bottom: 0.65rem;
  overflow-wrap: anywhere;
}
.verdict {
  display: inline-block;
  font-weight: 700;
  color: var(--forest);
}
.study-list,
.comment-channels,
.timeline {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
  max-width: 48rem;
}
.study-list li,
.comment-channels li,
.timeline li {
  margin: 0;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.study-list li:first-child,
.comment-channels li:first-child,
.timeline li:first-child { padding-top: 0.2rem; }
.study-list li:last-child,
.comment-channels li:last-child,
.timeline li:last-child { border-bottom: 0; padding-bottom: 0.15rem; }
.topic-choices {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .case-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .topic-choices {
    grid-template-columns: 1fr 1fr;
  }
}
