/* DCSD Board Meeting Archive — SOURCE FILE, edit directly.
   HTML files in site/ are generated by build.py. */

:root {
  --color-text: #1a1a1a;
  --color-text-secondary: #666;
  --color-text-muted: #707070;
  --color-bg: #fff;
  --color-bg-hover: #f8f8f8;
  --color-border: #e5e5e5;
  --color-accent: #1979a7;
  --color-accent-hover: #136185;
  --color-accent-subtle: #edf6fa;
  --color-highlight: #b35c00;
  --color-link: var(--color-accent);
  --color-link-external: var(--color-accent);
  --font-stack: system-ui, -apple-system, sans-serif;
}

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

/* Skip link: hidden until focused via keyboard. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transform: translateY(-100%);
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-accent-hover);
  outline-offset: -2px;
}

/* Visually hidden but accessible to screen readers. */
.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;
}

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Typography */

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

header > p {
  color: var(--color-text-secondary);
  margin: 0 0 0.25rem;
}

header > p a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 2px;
}

header > p a:hover {
  color: var(--color-accent-hover);
  text-decoration-color: var(--color-accent-hover);
}

/* Year jump nav (index page) */

.year-nav,
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.year-nav a,
.section-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  background: var(--color-bg);
  transition: background-color 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.year-nav a:hover,
.year-nav a:focus-visible,
.section-nav a:hover,
.section-nav a:focus-visible {
  background: var(--color-accent-subtle);
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.year-nav .year-count,
.section-nav .section-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.year-nav a:hover .year-count,
.year-nav a:focus-visible .year-count,
.section-nav a:hover .section-count,
.section-nav a:focus-visible .section-count {
  color: var(--color-accent);
}

@media (max-width: 600px) {
  .year-nav,
  .section-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .year-nav a,
  .section-nav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* Year headings (index page) */

.year-heading,
.section-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin: 2rem 0 0;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--color-accent);
}

.year-heading:first-of-type,
.section-heading:first-of-type {
  margin-top: 0;
}

/* Meeting list (index page) */

.meeting-list,
.policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meeting-list li,
.policy-list > li {
  border-top: 1px solid var(--color-border);
}

.meeting-list li:last-child,
.policy-list > li:last-child {
  border-bottom: none;
}

.meeting-list a,
.policy-list a,
.policy-children a {
  display: block;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  transition: background-color 0.1s ease;
}

.meeting-list a:hover,
.policy-list a:hover,
.policy-children a:hover {
  background: var(--color-accent-subtle);
}

.meeting-list time {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0.125rem;
}

.meeting-title,
.policy-title {
  display: block;
  line-height: 1.4;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.meeting-list .meeting-meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.policy-code {
  display: inline-block;
  min-width: 5.5rem;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
}

.policy-children {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
}

.policy-children li {
  border-top: 1px solid var(--color-border);
}

.policy-children li:last-child {
  border-bottom: none;
}

.video-badge {
  color: var(--color-accent);
}

/* Site header */

.site-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.site-title {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.site-title:hover {
  color: var(--color-accent-hover);
}

.header-sep {
  color: var(--color-text-muted);
}

.header-current {
  color: var(--color-text-secondary);
}

/* Breadcrumb (detail pages) */

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb a:first-child::before {
  content: "\2190\00a0";
}

.breadcrumb .separator {
  color: var(--color-text-muted);
  margin: 0 0.25rem;
}

.breadcrumb a:hover {
  color: var(--color-accent-hover);
}

/* Meeting detail header */

header .meeting-meta {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0.25rem 0;
}

.meeting-alternates {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0;
}

.meeting-type,
.policy-type {
  color: var(--color-text-muted);
}

.simbli-link,
.video-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 2px;
}

.simbli-link:hover,
.video-link:hover {
  color: var(--color-accent-hover);
  text-decoration-color: var(--color-accent-hover);
}

header .meeting-videos {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0.25rem 0;
}

.doc-summary {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0 0;
}

/* Document filter (meeting pages) */

.doc-filter-wrap {
  margin: 1.5rem 0 0;
}

#doc-filter {
  font-family: var(--font-stack);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  width: 100%;
  color: var(--color-text);
  background: var(--color-bg);
}

#doc-filter:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -1px;
  border-color: var(--color-accent);
}

#doc-filter::placeholder {
  color: var(--color-text-muted);
}

/* Agenda outline (jump-to nav on large meeting pages) */

.agenda-outline {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-hover);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.agenda-outline .outline-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.agenda-outline ol {
  margin: 0;
  padding: 0 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.agenda-outline li {
  margin: 0.25rem 0;
}

.agenda-outline a {
  color: var(--color-accent);
  text-decoration: none;
}

.agenda-outline a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-hover);
  text-underline-offset: 2px;
}

/* Agenda sections (details/summary) */

main details {
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

main details:last-child {
  border-bottom: none;
}

main summary {
  cursor: pointer;
  font-weight: 500;
  line-height: 1.4;
  padding: 0.25rem 0;
  list-style-position: outside;
  overflow-wrap: anywhere;
  hyphens: auto;
}

main summary:hover {
  color: var(--color-accent);
}

.agenda-count {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--color-highlight);
}

/* Agenda item levels (indentation + hierarchy) */

.agenda-item.level-0 {
  margin-top: 1.5rem;
}

.agenda-item.level-0:first-child {
  margin-top: 0;
}

.agenda-item.level-1 {
  margin-left: 1.25rem;
  padding-left: 0.75rem;
}

.agenda-item.level-2 {
  margin-left: 2.5rem;
  padding-left: 0.75rem;
}

.agenda-item.level-3 {
  margin-left: 3.75rem;
  padding-left: 0.75rem;
}

/* De-emphasize deeper levels with type size, not stripes */
.agenda-item.level-2 > summary {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.agenda-item.level-3 > summary {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* Structural headings: section dividers, not content.
   Heading level varies by agenda depth (h2 at level-0, h3 at level-1, etc.)
   to preserve outline hierarchy; styling is uniform. */
.agenda-item :is(h2, h3, h4, h5, h6) {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  padding: 0.25rem 0;
  color: var(--color-text-muted);
}

/* Top-level headings get the section-divider treatment */
.agenda-item.level-0 > h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Content-bearing items at level-1 get more visual weight */
.agenda-item.level-1 > summary {
  font-size: 1rem;
}

/* Agenda content fields */

.agenda-field {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0.375rem 0;
  padding-left: 0.5rem;
}

.field-label {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.agenda-docs {
  margin-top: 0.5rem;
  padding-left: 0.5rem;
}

/* Nested disclosure for non-essential fields (Financial Impact, Contacts,
   Implementation Date, Status, etc.) so they don't bury the document list. */
.agenda-details-secondary {
  margin-top: 0.5rem;
  padding-left: 0.5rem;
}

.agenda-details-secondary > summary {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  cursor: pointer;
  list-style: none;
  padding: 0.125rem 0;
}

.agenda-details-secondary > summary::-webkit-details-marker {
  display: none;
}

.agenda-details-secondary > summary::before {
  content: "\25B8";
  display: inline-block;
  width: 0.9em;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  transition: transform 0.15s ease;
}

.agenda-details-secondary[open] > summary::before {
  transform: rotate(90deg);
}

/* Document list */

.document-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.document-list li {
  padding: 0.375rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.document-list a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 2px;
}

.document-list a:hover {
  color: var(--color-accent-hover);
  text-decoration-color: var(--color-accent-hover);
}

.doc-aid {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Empty states */

.no-results {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 2rem 0;
}

.empty-state {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 2rem 0;
  padding: 1rem 0;
  max-width: 60ch;
}

.empty-state a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 2px;
}

.empty-state a:hover {
  color: var(--color-accent-hover);
  text-decoration-color: var(--color-accent-hover);
}

/* Footer */

footer {
  margin-top: 3rem;
  padding-top: 1rem;
}

footer p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Meeting search */

.meeting-search-wrap,
.policy-search-wrap {
  margin-bottom: 1.5rem;
}

.meeting-search-wrap input,
.policy-search-wrap input {
  font-family: var(--font-stack);
  font-size: 1.125rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  width: 100%;
  color: var(--color-text);
  background: var(--color-bg);
  box-sizing: border-box;
}

.meeting-search-wrap input:focus,
.policy-search-wrap input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -1px;
  border-color: var(--color-accent);
}

.meeting-search-wrap input::placeholder,
.policy-search-wrap input::placeholder {
  color: var(--color-text-muted);
}

/* Policy body content (rendered from Markdown) */

.policy-body :is(h2, h3, h4, h5, h6) {
  font-weight: 600;
  line-height: 1.3;
  margin: 1.75rem 0 0.5rem;
}

.policy-body :is(h2, h3, h4, h5, h6) strong {
  font-weight: inherit;
}

.policy-body h2 {
  font-size: 1.125rem;
}

.policy-body h3 {
  font-size: 1rem;
}

.policy-body :is(h4, h5, h6) {
  font-size: 0.9375rem;
}

.policy-body :is(h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}

.policy-body p {
  margin: 0 0 1rem;
}

.policy-body :is(ol, ul) {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.policy-body li {
  margin-bottom: 0.375rem;
  line-height: 1.5;
}

.legal-refs {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding-left: 1.25rem;
  line-height: 1.6;
}

.lexis-ref {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Document text pages */

.agenda-context {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-hover);
}

.agenda-context h2 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.agenda-context-title {
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.agenda-context .agenda-field {
  font-size: 0.8125rem;
}

.document-text {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-hover);
  margin: 1.5rem 0;
}

/* Read Text links on meeting pages */

.text-link {
  font-size: 0.75rem;
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 2px;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--color-accent-hover);
  text-decoration-color: var(--color-accent-hover);
}

/* Small screens */

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 1.25rem;
  }

  .meeting-list a {
    padding: 0.625rem 0.25rem;
  }

  .meeting-list .meeting-meta {
    font-size: 0.75rem;
  }

  .document-text {
    font-size: 0.8125rem;
    padding: 0.75rem;
  }

  .agenda-context {
    padding: 0.75rem;
  }

  .agenda-item.level-1 { margin-left: 0.75rem; }
  .agenda-item.level-2 { margin-left: 1.5rem; }
  .agenda-item.level-3 { margin-left: 2.25rem; }
}

/* Tablet */

@media (min-width: 601px) and (max-width: 900px) {
  .agenda-item.level-1 { margin-left: 1rem; }
  .agenda-item.level-2 { margin-left: 2rem; }
  .agenda-item.level-3 { margin-left: 3rem; }
}

/* Desktop */

@media (min-width: 1024px) {
  body {
    max-width: 880px;
  }

  .agenda-outline {
    position: sticky;
    top: 1rem;
    z-index: 1;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}
