@charset "UTF-8";
/* ==========================================================================
   Camp Far West Irrigation District  -  cfwid.css
   Heritage / early-20th-century theme to match the district emblem (est. 1924).
   Cream "paper", navy ink, Copperplate display type, classic serif body.
   Mobile-first, responsive, no framework dependencies.
   ========================================================================== */

@font-face {
  font-family: "Copperplate CFWID";
  src: url("../img/Copperplate Gothic Bold V2/Copperplate Gothic Bold V2.woff2") format("woff2"),
       url("../img/Copperplate Gothic Bold V2/Copperplate Gothic Bold V2.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:      #1c3266;   /* navy ink from the emblem */
  --ink-deep: #142648;
  --ink-soft: #41527e;
  --paper:    #f6efdd;   /* warm cream page */
  --paper-2:  #efe5cc;   /* panel cream */
  --paper-3:  #e7dabb;   /* deeper cream / rule */
  --rule:     #c8b487;   /* sepia-gold hairline */
  --gold:     #9a7b3f;   /* muted brass accent */
  --maroon:   #7c2f2a;   /* notices / postponed */
  --maroon-bg:#f3e3d6;
  --ink-text: #23304f;   /* body text - softened navy/charcoal */
  --muted:    #5d5a4e;
  --maxw:     960px;
  --display:  "Copperplate CFWID", "Copperplate", "Optima", "Trajan Pro", serif;
  --serif:    "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-text);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(28,50,102,.020) 0 1px, transparent 1px 26px);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--maroon); }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ----------------------------------------------------------- Masthead */
.site-header {
  background: var(--paper);
  text-align: center;
  padding: 2.2rem 1rem 1.6rem;
  border-bottom: 6px double var(--ink);
}
.site-header .crest { display: block; margin: 0 auto; width: 240px; max-width: 64vw; height: auto; }
.site-header .tagline {
  margin: 1rem auto 0; max-width: 600px;
  font-style: italic; font-size: 1.05rem; color: var(--ink-soft);
}
.rule-orn {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  margin: 1rem auto 0; max-width: 560px; color: var(--gold);
}
.rule-orn::before, .rule-orn::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--rule); }
.rule-orn span { font-size: 1rem; letter-spacing: .3em; }
.contact-bar {
  margin-top: 1rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.8rem;
  font-size: .82rem; letter-spacing: .04em; color: var(--muted);
  text-transform: uppercase;
}
.contact-bar strong { color: var(--ink); font-weight: 700; }

/* ----------------------------------------------------------- Nav */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
}
.site-nav ul { margin: 0 auto; padding: 0; max-width: var(--maxw); list-style: none; display: flex; flex-wrap: wrap; justify-content: center; }
.site-nav a {
  display: block; color: var(--paper); text-decoration: none;
  font-family: var(--display); font-size: .82rem; letter-spacing: .12em;
  padding: .85rem 1.2rem; border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.site-nav a:hover, .site-nav a:focus { color: #fff; border-bottom-color: var(--gold); background: var(--ink-deep); }

/* ----------------------------------------------------------- Layout */
main { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1rem 0; }

.card {
  background: var(--paper-2);
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 4px var(--paper-2), inset 0 0 0 5px rgba(28,50,102,.35);
  padding: 1.7rem 1.8rem;
  margin-bottom: 2rem;
}
.card > h2 {
  margin: 0 auto 1.3rem; text-align: center;
  font-family: var(--display); font-weight: 700;
  font-size: 1.15rem; letter-spacing: .14em; color: var(--ink);
  padding-bottom: .7rem; border-bottom: 4px double var(--ink);
  max-width: 80%;
}
.card > .section-note { margin: -.6rem 0 1.2rem; text-align: center; font-style: italic; color: var(--muted); font-size: .95rem; }

/* ----------------------------------------------------------- Agendas */
.agenda-list { display: grid; gap: 0; }
.agenda-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem;
  padding: 1rem .4rem;
  border-bottom: 1px solid var(--paper-3);
}
.agenda-row:last-child { border-bottom: 0; }
.agenda-row .date {
  font-family: var(--serif); font-weight: 700; font-size: 1.08rem;
  color: var(--ink); min-width: 8rem; font-variant-numeric: tabular-nums;
}
.agenda-row .grow { flex: 1 1 auto; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem;
  font-family: var(--display); font-size: .74rem; letter-spacing: .1em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-deep); color: #fff; }
.badge {
  font-family: var(--display); font-size: .64rem; letter-spacing: .1em;
  padding: .22rem .55rem; color: var(--maroon); border: 1px solid var(--maroon);
  background: var(--maroon-bg);
}

/* ----------------------------------------------------------- Notices */
.notice-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.notice {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.2rem; background: var(--paper); border: 1px solid var(--rule);
}
.notice.alert { background: var(--maroon-bg); border-color: var(--maroon); }
.notice .ico { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; color: var(--ink); }
.notice.alert .ico { color: var(--maroon); }
.notice h3 { margin: 0 0 .25rem; font-family: var(--display); font-size: .9rem; letter-spacing: .08em; color: var(--ink); }
.notice.alert h3 { color: var(--maroon); }
.notice p { margin: 0; font-size: .95rem; }

/* ----------------------------------------------------------- Admin */
.admin-intro { text-align: center; font-style: italic; color: var(--muted); margin: 0 0 1.2rem; }
.passcode {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .7rem;
  background: var(--paper); border: 1px solid var(--rule);
  padding: .9rem 1.1rem; margin-bottom: 1.2rem;
}
.passcode label { font-family: var(--display); font-size: .78rem; letter-spacing: .1em; color: var(--ink); }
.passcode input {
  flex: 0 1 220px; min-width: 150px;
  padding: .55rem .7rem; font-family: var(--serif); font-size: 1rem;
  border: 1px solid var(--ink); background: #fffdf6; color: var(--ink);
}
.admin-links { display: grid; gap: .6rem; grid-template-columns: 1fr; }
.admin-links a {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem 1.1rem; text-decoration: none;
  background: var(--paper); border: 1px solid var(--rule); color: var(--ink-text);
  font-size: 1rem;
}
.admin-links a:hover { border-color: var(--ink); background: #fffdf6; color: var(--ink); }
.admin-links .ico { color: var(--gold); font-size: 1.15rem; }

/* ----------------------------------------------------------- Live feed */
.feed-frame { width: 100%; height: 460px; border: 1px solid var(--ink); background: #fffdf6; }
.feed-actions { margin-top: .9rem; text-align: center; font-style: italic; font-size: .92rem; }

/* ----------------------------------------------------------- Footer */
.site-footer {
  background: var(--ink); color: var(--paper);
  margin-top: 2.4rem; padding: 2rem 1rem; text-align: center;
  border-top: 3px solid var(--gold);
}
.site-footer .rows { max-width: var(--maxw); margin: 0 auto; }
.site-footer .est { font-family: var(--display); letter-spacing: .18em; font-size: .8rem; color: var(--gold); display: block; margin-bottom: .8rem; }
.site-footer strong { color: #fff; font-family: var(--display); letter-spacing: .08em; font-weight: 700; font-size: .95rem; }
.site-footer p { margin: .3rem 0; font-size: .9rem; color: #d9cfb4; }
.site-footer a { color: #e4d9bd; }

/* ----------------------------------------------------------- Weir page */
.weir-wrap { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1rem; }
.weir-wrap .card { text-align: center; }
.back-link { display: inline-block; margin-bottom: 1.2rem; font-family: var(--display); font-size: .78rem; letter-spacing: .1em; text-decoration: none; }

/* ----------------------------------------------------------- Responsive */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .card { padding: 1.3rem 1.1rem; }
  .card > h2 { max-width: 100%; font-size: 1.02rem; }
  .agenda-row .date { min-width: 100%; }
  .agenda-row .btn { flex: 1 1 auto; justify-content: center; }
  .site-nav a { padding: .7rem .8rem; font-size: .72rem; letter-spacing: .08em; }
  .feed-frame { height: 420px; }
  .site-header .crest { width: 200px; }
}

/* ----------------------------------------------------------- Meeting archive & weekly reports (added 2026-06) */
.section-note.announce { color: var(--maroon); }
.next-meeting { border: 1px solid var(--gold); background: var(--paper-2); border-radius: 4px; padding: .6rem .9rem; margin-bottom: 1rem; }
.next-meeting .tag { display:inline-block; font-family: var(--display); font-size:.68rem; letter-spacing:.12em; color: var(--gold); text-transform:uppercase; margin-bottom:.25rem; }
details.archive { border: 1px solid var(--rule); background: var(--paper-2); border-radius: 4px; margin-top: .4rem; }
details.archive > summary { cursor: pointer; list-style: none; padding: .7rem 1rem; font-family: var(--display); font-size: .8rem; letter-spacing: .08em; color: var(--ink); }
details.archive > summary::-webkit-details-marker { display:none; }
details.archive > summary::after { content: " \25BC"; font-size:.6rem; color: var(--gold); }
details.archive[open] > summary::after { content: " \25B2"; }
.scroll-archive { max-height: 360px; overflow-y: auto; padding: .3rem 1rem 1rem; border-top: 1px solid var(--rule); }
.scroll-archive .agenda-row { border-bottom: 1px dotted var(--rule); }
/* Daily reports accumulate fast (one per day) — cap the reports archive so it
   shows ~4 rows then scrolls, keeping it from running down the page. */
#reports .scroll-archive { max-height: 240px; }
.btn.btn-disabled { opacity: .4; pointer-events: none; }
/* ----------------------------------------------------------- South Sutter use report table (added 2026-06) */
.use-table-wrap { overflow-x: auto; }
table.use-table { width: 100%; border-collapse: collapse; font-family: var(--serif); margin: .4rem 0 1rem; }
table.use-table th, table.use-table td { padding: .5rem .7rem; border-bottom: 1px solid var(--rule); text-align: center; }
table.use-table thead th { font-family: var(--display); font-size: .72rem; letter-spacing: .06em; color: var(--ink); text-transform: uppercase; border-bottom: 2px solid var(--gold); }
table.use-table td.num, table.use-table th.num { text-align: center; font-variant-numeric: tabular-nums; }
table.use-table tbody tr:last-child { font-weight: 700; background: var(--paper-2); }
table.use-table .unit { font-family: var(--serif); font-weight: 400; font-size: .68rem; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* ---- Accessibility: visible keyboard focus indicator (WCAG 2.4.7) ---- */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.site-nav a:focus-visible { outline-color: var(--gold); outline-offset: -3px; }
.btn:focus-visible, .admin-links a:focus-visible { outline-color: var(--ink); }
