.civic {
  --civic-ink: #173e36;
  --civic-paper: #fffdf7;
  --civic-line: #afc0b3;
  --civic-pale: #e7eee2;
  --civic-green: #164c41;
  color: var(--civic-ink);
  padding: 0 0 3rem;
}
.civic-anchor { display: block; scroll-margin-top: 7rem; }
.civic [hidden] { display: none !important; }
.civic h1, .civic h2 { font-family: CatalogSerif, Bookman, Georgia, serif; }
.civic h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin: 0 0 .6rem; }
.civic h2 { font-size: clamp(1.65rem, 4vw, 2.15rem); margin: 0 0 .65rem; }
.civic h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.civic p { margin: 0 0 .75rem; }
.civic-intro { max-width: 47rem; padding: .75rem 0 1rem; }
.civic-urgent { font-size: .92rem; font-weight: 600; }
.civic-card {
  background: var(--civic-paper);
  border: 1px solid var(--civic-line);
  border-radius: .7rem;
  padding: clamp(1rem, 4vw, 2rem);
  margin: 0 0 1.2rem;
}
.civic-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 1rem 0;
}
.civic-card label[for] { display: block; font-weight: 600; }
.civic-draft-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.civic input:not([type=radio], [type=checkbox]), .civic select, .civic textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .55rem .65rem;
  margin: .3rem 0 .8rem;
  border: 1px solid #6f897e;
  border-radius: .25rem;
  background: #fff;
  color: inherit;
  font: inherit;
}
.civic textarea { resize: vertical; }
.civic input[type=radio], .civic input[type=checkbox] { accent-color: var(--civic-green); }
.civic :focus-visible, .civic-entry h3:focus-visible {
  outline: 3px solid #96550d;
  outline-offset: 3px;
}
.civic-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}
.civic-paths legend { padding: 0 0 .45rem; font-weight: 600; }
.civic-paths label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .65rem;
  border: 1px solid var(--civic-line);
  border-radius: .35rem;
  cursor: pointer;
}
.civic-paths input { margin: .35rem 0 0; flex: none; }
.civic-paths small { display: block; line-height: 1.4; font-size: .9rem; }
.civic-paths label:has(:checked) { background: var(--civic-pale); border-color: var(--civic-green); }
.civic-result { background: var(--civic-pale); border-left: 4px solid var(--civic-green); padding: 1rem; }
.civic-result ul { margin: 0 0 .55rem; padding-left: 1.2rem; }
.civic-result li + li { margin-top: .35rem; }
.civic-result p:last-child { margin-bottom: 0; }
.civic-small { font-size: .88rem; color: #425e52; }
.civic-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .65rem 0; }
.civic button {
  min-height: 44px;
  border: 1px solid var(--civic-green);
  border-radius: .3rem;
  padding: .5rem .75rem;
  background: var(--civic-green);
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.civic .civic-secondary { background: transparent; color: var(--civic-green); }
.civic button:hover:not(:disabled) { box-shadow: inset 0 0 0 1px currentColor; }
.civic button:disabled { opacity: .55; cursor: default; }
.civic-draft-meta button { margin-bottom: .8rem; }
.civic-status { font-weight: 600; }
.civic-status:empty { margin: 0; }
.civic-save { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.civic #civic-replace, .civic #civic-clear-confirm { border: 1px solid var(--civic-line); padding: .75rem; margin-bottom: .75rem; }
.civic summary { cursor: pointer; font-weight: 600; }
.civic-entry { border-top: 1px solid var(--civic-line); padding: 1rem 0; overflow-wrap: anywhere; }
.civic-entry details { margin: .65rem 0; }
.civic-entry ol { padding-left: 1.35rem; }
.civic-entry li { margin-bottom: .65rem; }
.civic-entry .civic-event-evidence { display: block; font-size: .9rem; }
.civic-entry .civic-message-copy { white-space: pre-wrap; }
.civic-followup { max-width: 20rem; }
.ask-main { width: min(58rem, calc(100% - 34px)); padding-top: 2rem; margin: auto; }
.ask-header .site-header nav { gap: clamp(.5rem, 3vw, 1.2rem); }
.ask-header .site-header nav a { display: inline; }
@media (max-width: 690px) {
  .civic-fields { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 420px) {
  .civic-paths { grid-template-columns: 1fr; }
  .ask-header .header-inner { gap: .7rem; }
  .ask-header .brand { width: min(165px, 52%); }
}
@media print {
  .civic-lesson, .civic [data-civic-tools] { display: none !important; }
}
