@charset "utf-8";

/* =====================================================================
   Rezoning Case Information — intro documents, then one accordion per case
   grouped into Planning Commission, County Council and Completed sections.
   Rendered by Views/Partials/PlanningAndZoning/_Rezonings.cshtml and
   filtered by js/modules/rezonings.js. Every colour is a county token, so
   the component follows the section palette. All text pairings are
   >= 4.5:1 against their backgrounds.

   NOTE: controls/control.css sets `* { display: flex }` sitewide, so flex
   containers need no display declaration here — only elements that must
   NOT be flex (grid / block / inline / none) declare one.
   ===================================================================== */

.rz-app {
  --rz-gap: 1.25rem;
  --rz-radius: 10px;
  --rz-line: 1px solid var(--gray-lt);
  flex-direction: column;
}

/* `hidden` won't hide under the global *{display:flex} (author beats UA),
   so restore it explicitly within our widget. */
.rz-app [hidden] { display: none !important; }

/* ---------- Page heading ---------- */
/* general-page.css supplies the decorative bar via `.intro h2:before`; the
   column direction keeps it above the words rather than beside them, and its
   1.5rem top margin is dropped - the .intro card already pads 3rem. */
.rz-app .rz-heading::before { margin-top: 0; }

.rz-app .rz-heading {
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 1.5rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--contrast);
  text-align: left;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* visually hidden, still read by assistive tech */
.rz-app .rz-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Intro: copy beside the page-level documents ---------- */
.rz-intro {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
  gap: 2.5rem 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.rz-intro-copy {
  flex-direction: column;
  max-width: 62ch;
}

.rz-intro-copy p {
  display: block;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.rz-intro-copy p:last-child { margin-bottom: 0; }

/* block-list/block-container.css adds `.block p + p { margin-top: 2rem }`
   sitewide, and it outspecifies the rule above, so consecutive paragraphs were
   sitting 48px apart instead of the 1rem this module asks for. */
.rz-app .rz-intro-copy p + p { margin-top: 0; }

.rz-intro-docs {
  flex-direction: column;
  gap: 0.75rem;
}

.rz-app .rz-intro-docs h3 {
  display: block;
  margin: 0;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-dark);
}

/* control-main.css gives every .general-page ul a blue left rule, an indent
   and a bullet pseudo-element, at (0,2,2) specificity — these selectors carry
   the page class too so the plain list wins without !important. */
.general-page .rz-app .rz-intro-docs ul,
.rz-app .rz-intro-docs ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
  max-width: none;
  font-size: 1rem;
}

.general-page .rz-app .rz-intro-docs li,
.rz-app .rz-intro-docs li {
  display: block;
  margin: 0 0 0.6rem;
  padding: 0;
  line-height: 1.4;
  position: static;
}

.general-page .rz-app .rz-intro-docs li::before,
.rz-app .rz-intro-docs li::before,
.rz-app .rz-intro-docs li::marker {
  content: none;
  display: none;
}

.rz-app .rz-intro-docs a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-6);
  font-weight: 600;
  line-height: 1.4;
}

.rz-app .rz-intro-docs a:hover span { text-decoration: underline; }

.rz-intro-docs a svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.15em;
  color: var(--gray-dark);
}

.rz-intro-docs a span { display: block; }

/* ---------- Finder toolbar ---------- */
.rz-finder {
  flex-direction: column;
  background: var(--lightest);
  border: var(--rz-line);
  border-radius: var(--rz-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 1rem;
  z-index: 5;
  box-shadow: var(--dropshadow-sm);
}

.rz-search {
  align-items: center;
  gap: 0.6rem;
  background: var(--lightest);
  border: 2px solid var(--darkest);
  border-radius: var(--circle);
  padding: 0.55rem 1.1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rz-search:focus-within {
  border-color: var(--color-6);
  box-shadow: 0 0 0 4px rgba(1, 124, 164, 0.15);
}

.rz-search .rz-search-icon,
.rz-search > svg {
  width: 22px;
  height: 22px;
  color: var(--color-6);
  flex: 0 0 auto;
}

.rz-app .rz-search input {
  display: block;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--contrast);
  padding: 0.15rem 0;
  min-width: 0;
}

.rz-app .rz-search input::placeholder {
  color: var(--gray-med);
}

.rz-app button.rz-clear {
  flex: 0 0 auto;
  border: 0;
  background: var(--gray-off-white);
  color: var(--gray-med);
  width: 26px;
  height: 26px;
  border-radius: var(--circle);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  visibility: hidden;
}

.rz-app button.rz-clear:hover {
  background: var(--gray-lt);
  color: var(--gray-dark);
}

.rz-app button.rz-clear.is-visible {
  visibility: visible;
}

.rz-clear svg {
  width: 15px;
  height: 15px;
}

/* ---------- Case sections ---------- */
#rzSections {
  flex-direction: column;
  gap: 2.5rem;
}

.rz-section {
  flex-direction: column;
  gap: 1rem;
}

/* general-page.css centres and uppercases content headings; the section
   headings here are left-aligned with their own scale. */
.rz-app .rz-section-title {
  flex-direction: row;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  text-align: left;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--color-8);
}

/* The heading is plain inline flow rather than a grid: a grid column can't
   shrink to a wrapped title's longest line, so on narrow screens a two-line
   title pushed the count pill to the far edge and squeezed it onto two
   lines. Inline, the pill always trails the last word, one line or two. */
.rz-app .rz-section-title {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--contrast);
  padding-bottom: 0.6rem;
}

/* general-page.css decorates every `.intro h2` with a bar. A section heading
   is not a page title, so it opts out and the title and count share one row. */
.rz-app .rz-section-title::before {
  content: none;
}

/* control.css sets *{display:flex} sitewide; put both spans back in line */
.rz-app .rz-section-title > span {
  display: inline;
}

.rz-app .rz-section-title > .rz-section-count {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
  margin-left: 0.5rem;
  line-height: 1.2;
}

.rz-section-count {
  background: var(--blue-2);
  color: var(--color-8);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--circle);
  padding: 0.2rem 0.75rem;
}

/* ---------- Street / project accordion ---------- */
.rz-accordion {
  flex-direction: column;
  gap: 0.85rem;
}

/* each group is a native <details> so open/close needs no JS */
details.rz-grp {
  flex-direction: column;
  border: 1px solid var(--gray-lt);
  border-radius: var(--rz-radius);
  background: var(--lightest);
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

details.rz-grp[open] {
  box-shadow: var(--float-close);
  border-color: var(--blue-3);
}

summary.rz-grp-head {
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.35rem;
  cursor: pointer;
  background: transparent;
  list-style: none;
  user-select: none;
  transition: background 0.12s ease;
}

summary.rz-grp-head::-webkit-details-marker { display: none; }
summary.rz-grp-head::marker { content: ""; }

summary.rz-grp-head:hover { background: var(--blue-1); }

/* Keyboard focus. details.rz-grp clips its overflow to keep the header corners
   rounded, which would cut off an outward ring, so this one is drawn inset.
   --color-6 on --blue-1 is 4.38:1 (3.66:1 while hovered) — both clear the 3:1
   minimum for a focus indicator. */
summary.rz-grp-head:focus-visible {
  outline: 3px solid var(--color-6);
  outline-offset: -3px;
}

details.rz-grp[open] summary.rz-grp-head {
  background: var(--blue-1);
  border-bottom: 1px solid var(--blue-2);
}

details.rz-grp[open] summary.rz-grp-head:hover { background: var(--blue-2); }

/* street / project name plus case number line — takes the row */
.rz-grp-heading {
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

/* title row: name plus the optional status pill, wrapping on narrow screens */
.rz-grp-titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  min-width: 0;
}

.rz-grp-title {
  display: block;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-7);
  line-height: 1.3;
}

/* "Case 2026-07-016 · District 6" under the title */
.rz-grp-sub {
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-dark);
}

/* nowrap: on phones the case number and the agreement tag wrap as whole
   parts instead of breaking "2026-10-" / "099" at the hyphen */
.rz-grp-sub > span {
  display: block;
  white-space: nowrap;
}

.rz-grp-sub > span + span::before {
  content: "·";
  margin-right: 0.75rem;
  color: var(--gray-med);
}

/* decision status pill ("Approved", "Deferred"...) beside the title, sized like
   the section count pill. All five fills keep white text at or above 4.5:1. */
.rz-grp-titleline .rz-status {
  flex: 0 0 auto;
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: var(--circle);
  background: var(--gray-dark);
  color: var(--lightest);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.rz-grp-titleline .rz-status-approved  { background: #1e7a3c; }
.rz-grp-titleline .rz-status-denied    { background: #a32424; }
.rz-grp-titleline .rz-status-deferred  { background: var(--color-6); }
.rz-grp-titleline .rz-status-tabled    { background: var(--color-7); }
.rz-grp-titleline .rz-status-withdrawn { background: var(--gray-dark); }

/* count pill on the right */
.rz-grp-count {
  flex: 0 0 auto;
  align-items: center;
  background: var(--color-6);
  color: var(--lightest);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--circle);
  padding: 0.25rem 0.8rem;
  white-space: nowrap;
  /* control.css sets *{display:flex} sitewide, so the space between the
     number and its unit is dropped as inter-item whitespace. */
  gap: 0.3rem;
}

/* say what the number counts - it read as a bare "3" before */
.rz-grp-count-unit {
  font-weight: 400;
  letter-spacing: 0.02em;
}

.rz-grp-chevron {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--color-6);
  transition: transform 0.18s ease;
}

details.rz-grp[open] .rz-grp-chevron { transform: rotate(180deg); }

.rz-grp-panel {
  flex-direction: column;
  padding: 1rem 1.1rem 1.1rem;
}

/* ---------- Case facts ---------- */
.rz-facts {
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--gray-off-white);
  border-radius: var(--rz-radius);
}

/* Four fixed columns per row: a blank optional fact keeps an empty cell
   (.rz-fact-empty) so the facts after it keep their columns. */
.rz-app .rz-facts-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}

/* a <dl> per fact, which the site's div-flex default doesn't reach; .rz-app
   outranks the site's dl:not(.org-chart dl) { margin: 1rem 0 } */
.rz-app .rz-fact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  margin: 0;
}

.rz-app .rz-facts dt {
  display: block;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-dark);
}

/* block, not flex, so "old zoning -> new zoning" flows as one line of text */
.rz-app .rz-facts dd {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--contrast);
}

.rz-facts dd span { display: inline; }

/* block lines would otherwise take the site's * { line-height: 1 } */
.rz-app .rz-facts dd .rz-reading-date,
.rz-app .rz-facts dd .rz-reading-outcome {
  display: block;
  line-height: 1.35;
}

.rz-app .rz-facts dd { overflow-wrap: anywhere; }

.rz-zoning-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 0.3rem;
  vertical-align: -2px;
  color: var(--gray-med);
}

.rz-nodocs {
  display: block;
  margin: 0;
  color: var(--gray-med);
  font-style: italic;
}

/* ---------- Document cards ---------- */
.rz-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: var(--rz-gap);
}

.rz-app a.rz-card {
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  text-decoration: none;
  background: var(--lightest);
  border: var(--rz-line);
  border-radius: var(--rz-radius);
  padding: 0.9rem 1rem;
  color: var(--contrast);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.rz-app a.rz-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--float-close);
  border-color: var(--blue-3);
}

.rz-app a.rz-card:focus-visible {
  outline: 3px solid var(--color-6);
  outline-offset: 2px;
}

.rz-card-badge {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--lightest);
}

/* three-letter badges need to shrink to fit the same square */
.rz-card-badge.is-wide { font-size: 0.78rem; }

/* "Other" documents have no initials; a file icon fills the square instead */
.rz-card-badge svg {
  width: 22px;
  height: 22px;
}

/* type badges — county blue family, all keeping AA contrast with white text */
.rz-badge-COVER     { background: var(--color-6); }
.rz-badge-AERIAL    { background: var(--color-7); }
.rz-badge-VICINITY  { background: var(--color-7); }
.rz-badge-ZONING    { background: var(--blue-8); }
.rz-badge-FLU       { background: var(--blue-8); }
.rz-badge-OTHER     { background: var(--gray-dark); }

.rz-card-text {
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.rz-card-title {
  display: block;            /* wraps as text, not as a flex row */
  min-width: 0;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--color-7);
}

.rz-card-kind {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-med);
}

.rz-card-meta {
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  color: var(--gray-med);
}

.rz-card-meta svg {
  width: 18px;
  height: 18px;
  color: var(--color-6);
}

/* Highlighted search hits. The global *{display:flex} would make each <mark>
   a block-level flex box and break it onto its own line, so it opts back in
   to inline. */
.rz-app mark {
  display: inline;
}

.rz-grp-title mark {
  background: var(--blue-2);
  color: var(--color-8);
  border-radius: 3px;
  padding: 0 2px;
}

.rz-card-title mark {
  background: var(--blue-2);
  color: var(--color-8);
  border-radius: 3px;
  padding: 0 1px;
}

/* ---------- Empty state ---------- */
.rz-empty {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-med);
}

.rz-empty p { max-width: 42ch; line-height: 1.5; }

.rz-empty svg {
  width: 40px;
  height: 40px;
  color: var(--blue-3);
  margin-bottom: 0.75rem;
}

/* general-page.css centres and uppercases content headings — the widget's own
   headings are left-aligned sentence case, so those rules are reset here. */
.rz-app .rz-empty h3 {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--gray-dark);
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- Help / contact callout ---------- */
.rz-help {
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.75rem;
  border-radius: var(--rz-radius);
  background: linear-gradient(130deg, var(--color-7) 0%, var(--color-8) 100%);
  color: var(--lightest);
}

.rz-help-body {
  flex-direction: column;
}

.rz-help-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: var(--circle);
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
}

.rz-help-icon svg {
  width: 26px;
  height: 26px;
  color: var(--lightest);
}

.rz-app .rz-help h3 {
  display: block;
  margin: 0 0 0.4rem;
  color: var(--lightest);
  font-size: 1.3rem;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

.rz-help p {
  margin: 0 0 1rem;
  line-height: 1.55;
  color: var(--blue-1);
  max-width: 62ch;
}

/* phone and email inside the copy — white on the gradient like the heading */
.rz-app .rz-help p a {
  color: var(--lightest);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.rz-app .rz-help p a:hover { text-decoration-thickness: 2px; }

.rz-help-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rz-app a.rz-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--circle);
  transition: transform 0.12s ease, background 0.12s ease;
}

.rz-app a.rz-btn svg {
  width: 17px;
  height: 17px;
}

.rz-btn-solid {
  background: var(--lightest);
  color: var(--color-7);
}

.rz-btn-solid:hover {
  transform: translateY(-1px);
}

.rz-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--lightest);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

/* 0.22 alpha lightened the panel enough to drop white label text to 4.50:1
   against the gradient's light end; 0.20 holds 4.71:1 with the same lift. */
.rz-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* The site's body font renders a bare <strong> barely heavier than the copy. */
.rz-app .rz-intro-copy strong { font-weight: 700; }

.rz-app .rz-notice .rz-disclaimer {
  display: inline;
  font-style: italic;
}

/* ---------- Notice box between the intro and the search ---------- */
/* Same gray notice box the Parks and Recreation page uses for its side panel. */
.rz-notice {
  flex-direction: column;
  max-width: 62ch;
  margin: -1rem 0 1.5rem;
  padding: 1rem;
  border-radius: 0.25rem;
  background: var(--compare);
}

.rz-notice p {
  display: block;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.rz-app .rz-notice p + p { margin-top: 0; }

.rz-app .rz-notice p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media screen and (max-width: 980px) {
  .rz-finder {
    position: static;
  }

  .rz-intro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  /* Columns no longer line up across cases, so drop the row boundaries and
     the placeholders and let every visible fact flow through one grid;
     per-row grids would leave a half-empty line after each odd row. */
  .rz-app .rz-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
  }

  .rz-app .rz-facts-row { display: contents; }

  .rz-fact-empty { display: none; }
}

@media screen and (max-width: 520px) {
  .rz-grp-title { font-size: 1rem; }

  .rz-app .rz-section-title { font-size: 1.3rem; }

  .rz-facts { padding: 0.9rem 1rem; }

  .rz-app .rz-facts { grid-template-columns: 1fr; }

  summary.rz-grp-head { padding: 0.85rem 1rem; }

  .rz-grp-panel { padding: 1rem; }

  .rz-help {
    flex-direction: column;
    gap: 1rem;
  }
}
