/* DCSD Board Meeting Archive
   Minimal, content-first styles for a public document archive. */

:root {
  --color-text: #1a1a1a;
  --color-text-secondary: #666;
  --color-text-muted: #999;
  --color-bg: #fff;
  --color-bg-hover: #f8f8f8;
  --color-border: #e5e5e5;
  --color-link: #1a1a1a;
  --color-link-external: #555;
  --font-stack: system-ui, -apple-system, sans-serif;
}

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

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-link-external);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 2px;
}

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

/* Meeting list (index page) */

.meeting-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

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

.meeting-list li:last-child {
  border-bottom: 1px solid var(--color-border);
}

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

.meeting-list a:hover {
  background: var(--color-bg-hover);
}

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

.meeting-title {
  display: block;
  line-height: 1.4;
}

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

/* Breadcrumb (detail pages) */

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

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

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

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

/* Meeting detail header */

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

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

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

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

.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: none;
  border-color: var(--color-text-secondary);
}

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

/* Agenda sections (details/summary) */

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

main details:last-of-type {
  border-bottom: 1px solid var(--color-border);
}

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

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

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

/* 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 {
  text-decoration-color: var(--color-text);
}

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

/* Footer */

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

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

/* Meeting search */

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

.meeting-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 {
  outline: none;
  border-color: var(--color-text-secondary);
}

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

/* 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 {
    padding: 0 0.25rem 0.625rem;
  }
}
