/* IBEW Local 601 — Attendance Roster
   Palette from ibew601.org (navy / teal). Copper is the trade's own metal and
   is used in exactly one place: the check-in stamp. No red anywhere. */
:root {
  --navy: #00425e;
  --navy-deep: #022b3f;
  --teal: #0094b2;
  --teal-ink: #006f86;
  --copper: #b2652b;
  --copper-ink: #8a4a1b;
  --ink: #122633;
  --ink-soft: #4c5f6b;
  --line: #d6e0e6;
  --paper: #eef3f6;
  --card: #ffffff;
  --amber-bg: #fff4dd;
  --amber-ink: #8a5a00;
  --amber-line: #e8c989;
  --green: #1d7a4b;
  --green-bg: #e3f3ea;
  --focus: #0094b2;
  --radius: 10px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- masthead ----------------------------------------------------------- */
.mast {
  background: var(--navy);
  color: #fff;
  padding: 26px 16px 78px;
  position: relative;
  overflow: hidden;
}
.mast::before {
  /* conduit stripe: teal with a copper end, along the top edge */
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--teal) 0 72%, var(--copper) 72% 100%);
}
.mast .num {
  /* the local's number, set large and quiet, the way it is painted on the hall and the trucks */
  position: absolute; right: -6px; top: -14px;
  font-family: var(--font-display); font-weight: 700; font-size: 150px; line-height: .8; letter-spacing: -.03em;
  color: var(--teal); opacity: .13; pointer-events: none; user-select: none;
}
.mast-inner { max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 14px; position: relative; }
.mast img { width: 56px; height: 56px; border-radius: 50%; background: #fff; flex: none; }
.mast .local { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: .02em; opacity: .9; }
.mast h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 9.2vw, 38px);
  line-height: 1;
  letter-spacing: .01em;
}

/* ---- page frame --------------------------------------------------------- */
.page { position: relative; z-index: 1; max-width: 520px; margin: -56px auto 48px; padding: 0 16px; }
.sheet {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px -18px rgba(2,43,63,.35);
  padding: 20px 18px 22px;
}
.sheet + .sheet { margin-top: 14px; }
.sheet h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}
.muted { color: var(--ink-soft); }
.small { font-size: 15px; }

/* ---- meeting status ----------------------------------------------------- */
.meeting { display: flex; flex-direction: column; gap: 6px; }
.meeting-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: var(--green-bg); color: var(--green);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.closed { background: var(--paper); color: var(--ink-soft); }
.status.closed::before { opacity: .5; }

/* ---- form --------------------------------------------------------------- */
.field { margin-top: 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 5px; }
.field input, .field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0,148,178,.18); }
.field .hint { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 360px) { .grid2 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 60px;
  margin-top: 18px;
  border: 0; border-radius: 10px;
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: .02em;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--navy-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--line); font-size: 20px; height: 50px; }
.btn.secondary:hover { background: var(--paper); }
.linkish { background: none; border: 0; padding: 0; color: var(--teal-ink); text-decoration: underline; cursor: pointer; font-size: 15px; }

/* ---- notices ------------------------------------------------------------ */
.notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--amber-line);
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: 15.5px;
}
.notice.info { border-color: var(--line); background: var(--paper); color: var(--ink); }
.notice.testing { margin: 0 0 14px; font-weight: 600; }
.notice .help-link { color: inherit; font-weight: 600; }
.guide-link { color: var(--teal-ink); font-weight: 600; }

/* ---- locating ----------------------------------------------------------- */
.locating { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--ink-soft); }
.locating .ring {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 3px solid var(--line); border-top-color: var(--teal);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- the roster line + stamp ------------------------------------------- */
.roster-line {
  position: relative;
  margin-top: 8px;
  padding: 18px 16px 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, var(--paper) 31px 32px);
}
.roster-line .name {
  font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: .005em;
}
.roster-line .detail { margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; }
.stamp {
  position: absolute; right: 10px; top: -14px;
  transform: rotate(-6deg);
  padding: 6px 12px 5px;
  border: 3px solid var(--copper);
  border-radius: 6px;
  color: var(--copper-ink);
  background: rgba(255,255,255,.85);
  font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.05; letter-spacing: .06em; text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1.5px #fff, inset 0 0 0 2.5px var(--copper);
  animation: stamp-in .32s cubic-bezier(.2,1.4,.4,1) both;
}
.stamp small { display: block; font-size: 13px; letter-spacing: .08em; font-weight: 600; margin-top: 1px; }
@keyframes stamp-in {
  from { transform: rotate(-6deg) scale(1.6); opacity: 0; }
  to   { transform: rotate(-6deg) scale(1);   opacity: 1; }
}
.after { margin-top: 16px; font-size: 15.5px; }

/* ---- footer ------------------------------------------------------------- */
.foot { max-width: 520px; margin: 0 auto; padding: 0 16px 32px; color: var(--ink-soft); font-size: 13.5px; }
.foot a { color: inherit; }
.hidden { display: none !important; }
