/* Civic publishing layer. Keep this last: shared portal polish lives here;
   document rendering and its safety controls remain in their own components. */
:root {
  --navy: #173f34;
  --navy-deep: #103327;
  --blue: #285e4b;
  --ink: #26332f;
  --muted: #5b6862;
  --paper: #f5f4f0;
  --line: #dedfd8;
  --shadow-soft: none;
  --shadow-raised: none;
  color: var(--ink);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

body { background: var(--paper); }
h1, h2, h3 { letter-spacing: -.025em; }
.page .content { max-width: 1560px; }
.topbar { background: #fff; border-bottom-color: var(--line); }
.topbar-title { color: var(--muted); }
.breadcrumb { margin-bottom: 18px; color: var(--muted); line-height: 1.5; }
.breadcrumb a { color: #315b49; text-underline-offset: .18em; }
.eyebrow { letter-spacing: .055em; font-weight: 650; }
.footer { color: var(--muted); font-size: .75rem; }

button, .button, input, select, textarea { border-radius: 6px; }
button, .button, summary { min-height: 44px; }
button, .button { box-shadow: none; }
button:hover, .button:hover { box-shadow: none; }
button:active:not(:disabled), .button:active { transform: none; }
button.primary, .button.primary { background: #176143; border-color: #176143; box-shadow: none; }
button.primary:hover, .button.primary:hover { background: #114b34; border-color: #114b34; }
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #16704b;
  outline-offset: 3px;
}
.sidebar nav a { min-height: 44px; }
.sidebar-foot a { display: inline-flex; align-items: center; min-height: 44px; }

.panel, .entity-priorities, .document-pane, .schedule-document-panel,
.binder-work-step, .binder-history, .binder-reading-copy,
.binder-publish-summary, .binder-preview-ready, .access-details {
  border-radius: 8px;
  box-shadow: none;
}
.binder-county-card { border-radius: 10px; box-shadow: none; }
.binder-county-card:hover { transform: none; box-shadow: none; }
.county-card-picture img { transition: none; }
.county-card-picture:hover img { transform: none; }
.county-card-picture h3 { font-weight: 650; }
.county-card-content { padding: 18px 20px; }
.county-card-time { font-size: .875rem; color: #536158; }
.binder-hearing-date { font-size: 1rem; line-height: 1.45; }
.binder-edition-summary p { font-size: .8125rem; }
.regional-hero, .county-hero { border-radius: 10px; box-shadow: none; }
.binder-home-foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* County introductions retain photography. Category steps put the directory first. */
.county-landing.is-category .county-hero {
  min-height: 0;
  margin-bottom: 24px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}
.county-landing.is-category .county-hero::after,
.county-landing.is-category .county-hero-image,
.county-landing.is-category .county-hero .hero-credit,
.county-landing.is-category .county-hero-hearing { display: none; }
.county-landing.is-category .county-hero-content { padding: 2px 0 0; max-width: none; }
.county-landing.is-category .county-hero .eyebrow { color: #315b49; }
.county-landing.is-category .county-hero h1 {
  color: #233c31;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 10px;
}
.county-landing.is-category .county-hero-content > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 16px;
}
.county-landing.is-category .county-hero .actions { margin: 0; }
.county-landing.is-category .county-hero .button.primary {
  color: #315b49;
  background: #fff;
  border-color: #c5cec5;
}
.county-landing.is-category .county-hero .button.primary:hover { background: #edf2ed; }
.county-folders .folder-search input { min-height: 44px; }

/* Compact directory rows retain the existing alphabetical order and actions. */
.entity-grid.folder-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.entity-grid.folder-grid .entity-folder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  padding: 14px 18px;
  margin: 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.entity-grid.folder-grid .entity-folder:first-child { border-top: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.entity-grid.folder-grid .entity-folder:last-child { border-radius: 0 0 8px 8px; }
.entity-grid.folder-grid .entity-folder:only-child { border-radius: 8px; }
.entity-grid.folder-grid .entity-folder > .folder-mark { display: none; }
.entity-grid.folder-grid .entity-folder > h2 {
  min-height: 0;
  margin: 0;
  color: #253e32;
  font-size: 1.0625rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.entity-grid.folder-grid .entity-folder .button {
  min-height: 44px;
  padding: 9px 14px;
  font-size: .875rem;
  color: #28583e;
  background: #fff;
  border-color: #c5cec5;
}
.entity-grid.folder-grid .entity-folder .button:hover { background: #edf2ed; border-color: #94ac9c; }

/* Staff control dimensions change without altering grouping, guards or visibility. */
.admin-row button, .admin-row .button,
.admin-entity-row .admin-entity-actions button,
.admin-entity-row .admin-entity-actions .button,
.binder-order .actions button { min-height: 44px; }
.admin-row button, .admin-row .button { line-height: 1.4; }
.admin-row .actions { gap: 8px; }
.admin-tabs button { min-height: 44px; }
.priority-amount, .priority-editor-total output { font-variant-numeric: tabular-nums; }

/* Public hearing details have their own hierarchy rather than staff-card density. */
.public-hearing-schedule { padding: 24px; }
.public-hearing-schedule > h2 { font-size: 1.4rem; }
.public-hearing-schedule > p { max-width: 70ch; color: var(--muted); }
.public-hearing-schedule .admin-list { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.public-hearing-schedule .public-hearing-row {
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  gap: 16px 24px;
}
.public-hearing-schedule .public-hearing-row:last-child { border-bottom: 0; }
.public-hearing-schedule .public-hearing-row h3 { font-size: 1.125rem; margin-bottom: 8px; }
.public-hearing-schedule .public-hearing-row p { font-size: 1rem; line-height: 1.65; color: #415449; }
.public-hearing-schedule > .button { margin: 12px 10px 0 0; }

.help-panel h1, .laptop-setup h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.2; }
.help-panel p, .help-panel .plain-steps, .laptop-setup p, .laptop-setup .plain-steps { max-width: 76ch; }
.laptop-setup > .button { margin-top: 8px; }
.laptop-setup > h2 { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.laptop-setup > .actions { gap: 12px; margin-top: 18px; }
.laptop-setup > .actions .button { white-space: normal; text-align: left; }
.empty { border-radius: 8px; box-shadow: none; }

@media (max-width: 850px) {
  .sidebar nav a { min-height: 44px; font-size: .8125rem; }
  .sidebar-foot a { font-size: .8125rem; }
  .page .content { padding: 22px 20px; }
}
@media (max-width: 600px) {
  .page .content { padding: 18px 16px; }
  .entity-grid.folder-grid .entity-folder { gap: 10px 14px; padding: 13px 14px; }
  .entity-grid.folder-grid .entity-folder > h2 { font-size: 1rem; }
  .entity-grid.folder-grid .entity-folder .button { font-size: .8125rem; padding-inline: 10px; }
  .county-landing.is-category .county-hero-content { padding: 0; }
  .county-landing.is-category .county-hero .actions { align-items: flex-start; }
  .public-hearing-schedule { padding: 20px 18px; }
  .public-hearing-schedule .public-hearing-row { display: block; padding-block: 18px; }
  .public-hearing-schedule .public-hearing-row > .button { margin-top: 14px; }
  .laptop-setup { padding: 22px 20px; }
}
@media (max-width: 390px) {
  .entity-grid.folder-grid .entity-folder { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .entity-grid.folder-grid .entity-folder .button { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .binder-county-card, .county-card-picture img, button, .button { transition: none; }
}
@media print {
  body { background: #fff; color: #000; }
  .entity-grid.folder-grid .entity-folder { break-inside: avoid; }
  .public-hearing-schedule .public-hearing-row { break-inside: avoid; }
}


/* Paired organization materials are the default; expansion is always deliberate. */
.entity-materials.split-documents { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.entity-materials.split-documents > .entity-material-group { min-width: 0; }
.entity-materials.split-documents > .entity-material-group > h2 { min-height: 1.5em; margin: 0 0 16px; font-size: 1.25rem; }
.entity-materials.split-documents .portal-pptx-pane > .document-toolbar { min-height: 64px; padding: 12px; }
.entity-materials.split-documents .portal-pptx-pane .pptx-viewer-stage { min-height: 0; }
.entity-materials.split-documents .portal-pptx-pane .pptx-frame-host > iframe { height: 100%; min-height: 0; max-height: none; block-size: 100%; min-block-size: 0; max-block-size: none; }
.entity-materials.split-documents .pdf-fallback-choice { min-width: 0; max-width: 100%; }
.entity-materials.split-documents select.pdf-fallback-choice { width: 100%; overflow: hidden; text-overflow: ellipsis; }
.entity-materials.split-documents.is-expanded { grid-template-columns: 1fr; }
@media (max-width: 960px) {
  .entity-materials.split-documents { grid-template-columns: 1fr; }
  .entity-materials.split-documents > .entity-material-group > h2 { min-height: 0; }
}
