/* Newcastle Liquor Accord. Palette from the Accord's Mailchimp emails. */

:root {
  --accent: #2baadf;      /* decoration only: fails contrast as text on white */
  --link: #0b6e99;        /* accent darkened for text, 5.7:1 on white */
  --dark: #362828;
  --text: #2b2222;
  --muted: #5c4f4f;
  --bg: #ffffff;
  --surface: #f5f8fa;
  --border: #d9e1e6;
  --focus: #0b6e99;
  --radius: 6px;
  --max: 46rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  color: var(--link);
  z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 4px solid var(--accent);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-logo { display: block; line-height: 0; }
.site-logo img { display: block; height: 72px; width: auto; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--link); }

/* Content */
main { padding: 2rem 0 3rem; }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 0.5rem; }
.lede { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }

.section { padding: 0.5rem 0 1.25rem; }
.section + .section { border-top: 1px solid var(--border); }
.section h2 { font-size: 1.5rem; margin: 1.25rem 0 0.5rem; }
.section h3 { font-size: 1.15rem; margin: 1.25rem 0 0.4rem; }
.section ul:not([class]) { padding-left: 1.25rem; }
.section ul:not([class]) li { margin: 0.2rem 0; }
.intro { padding-bottom: 0.5rem; }

.notices { list-style: none; margin: 0; padding: 0; }
.notices li {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  margin: 0 0 0.6rem;
}
.notices p { margin: 0; }
.notice-title { font-weight: 600; }
.notice-summary { color: var(--muted); margin-top: 0.2rem !important; }

.toolkit-group h3 { margin-top: 1.5rem; }
.meeting-summary { margin: 0.5rem 0; }
.file-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding: 0 0.35rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  vertical-align: 0.1em;
}

.next-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.next-card .facts { margin: 0; }

.fallback {
  padding: 1rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

/* Accordions (native details/summary) */
details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: "";
  flex: none;
  width: 0.55em;
  height: 0.55em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin-right: 0.15rem;
}
details[open] > summary::before { transform: rotate(45deg); }

.year { border-top: 1px solid var(--border); }
.year:last-child { border-bottom: 1px solid var(--border); }
.year > summary { padding: 0.9rem 0.25rem; color: var(--dark); }
.year > summary h3 { display: inline; font-size: 1.4rem; margin: 0; }
.year .count { color: var(--muted); font-size: 0.95rem; }
.year-body { padding: 0 0 1.25rem; }

.meeting {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 0.75rem;
}
.meeting > summary {
  padding: 0.8rem 1rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--radius);
}
.meeting > summary:hover { background: #eaf1f5; }
.meeting-body { padding: 0 1rem 1rem 2.1rem; }
.meeting-body h4 { margin: 1rem 0 0.25rem; font-size: 1rem; }

.status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.status-held { color: var(--muted); }
.status-scheduled { color: #fff; background: var(--link); border-color: var(--link); }
.status-cancelled { color: #9b1c1c; }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15rem 1rem;
  margin: 0 0 0.5rem;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.minutes { margin: 0.5rem 0; font-weight: 600; }

.resources { list-style: none; margin: 0; padding: 0; }
.resource { padding: 0.6rem 0; border-top: 1px solid var(--border); }
.resource:first-child { border-top: 0; }
.resource p { margin: 0; }
.resource-title { font-weight: 600; }
.resource-summary { color: var(--muted); margin-top: 0.2rem !important; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-right: 0.5rem;
}

.calendar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin: 0.75rem 0 0.25rem;
}
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--link);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.button:hover { background: var(--dark); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { margin: 0.25rem 0; }

@media (max-width: 30rem) {
  h1 { font-size: 1.65rem; }
  .site-logo img { height: 56px; }
  .meeting-body { padding-left: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  details > summary::before { transition: none; }
}
