/* Candidate pages (October 19, 2026). Phone first: one column, large tap targets, then a centered card on a
   wider screen. Brand pass (Jake, October 19, 2026): the company logo in a white header and the brand blue
   (#054fb8, from "Color for Logo as of 2025") for buttons, headings, and the chosen day; open days and times in a
   light tint of the same blue. */
:root {
  --brand: #054fb8;
  --brand-light: #e6eefa;
  --open-bg: #e6eefa;
  --open-line: #b3c8ec;
  --open-press: #cfddf5;
  --ink: #222;
  --muted: #5f6368;
  --line: #d9d9d9;
  --ok: #006100;
  --ok-bg: #e2efda;
  --bad: #C00000;
  --bad-bg: #f8d7da;
  --bg: #f5f6f8;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.4; color: var(--ink); background: var(--bg); }
[hidden] { display: none !important; }

.top { background: #fff; color: var(--ink); padding: 10px 16px; border-bottom: 3px solid var(--brand); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.logo { display: block; height: 52px; width: auto; }
.lang { display: flex; border: 1px solid var(--brand); border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.lang button { font: inherit; font-size: 14px; background: #fff; color: var(--brand); border: 0; padding: 8px 12px; min-height: 40px; cursor: pointer; }
.lang button.on { background: var(--brand); color: #fff; font-weight: bold; }

main { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: 22px; color: var(--brand); margin: 4px 0 8px; }
h2 { font-size: 17px; color: var(--brand); margin: 0; }
p { margin: 8px 0; }
.sub { color: var(--muted); font-size: 15px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-top: 14px; }
.when { font-size: 19px; font-weight: bold; color: var(--brand); }
.where { color: var(--muted); margin-top: 4px; }

/* Calendar (October 19, 2026): only the weeks with open days, every one on one screen; Monday to Friday unless the
   window has a weekend opening. The first day shown in each month carries a small month label. */
.cal { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 14px; }
.cal-title { font-size: 17px; font-weight: bold; color: var(--brand); text-align: center; margin-bottom: 8px; }
.cal-grid { display: grid; gap: 6px; }
.cal-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.cal-grid.cols-7 { grid-template-columns: repeat(7, 1fr); }
.cal-dow { text-align: center; font-size: 13px; font-weight: bold; color: var(--muted); padding: 2px 0 4px; }
.cal-day { font: inherit; font-size: 17px; min-height: 52px; padding: 2px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: #b0b0b0; cursor: default;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.cal-mon { font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .5px; }
.cal-day.open { background: var(--open-bg); border-color: var(--open-line); color: var(--ink); font-weight: bold; cursor: pointer; }
.cal-day.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cal-day.today .cal-num { text-decoration: underline; text-underline-offset: 3px; }
.day { margin-top: 18px; }
.day h2 { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.times button { font: inherit; font-weight: bold; min-height: 48px; padding: 8px 4px; border-radius: 8px; border: 1px solid var(--open-line); background: var(--open-bg); color: var(--ink); cursor: pointer; }
.times button:active { background: var(--open-press); }

form { margin: 0; }
.field { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.field label { font-size: 14px; font-weight: bold; color: #333; }
.field .help { font-size: 13px; color: var(--muted); }
input { font: inherit; font-size: 17px; padding: 12px; min-height: 48px; border: 1px solid #aaa; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
input.code { letter-spacing: 6px; font-size: 22px; text-align: center; max-width: 180px; }

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.btn { font: inherit; font-weight: bold; min-height: 50px; padding: 12px 16px; border-radius: 8px; cursor: pointer; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.btn.primary { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.btn.secondary { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid var(--bad); }
.btn:disabled { opacity: .55; cursor: default; }
.linkish { font: inherit; background: none; border: 0; padding: 8px 0; color: var(--brand); text-decoration: underline; cursor: pointer; font-size: 15px; }

.problem { background: var(--bad-bg); color: var(--bad); border-radius: 8px; padding: 12px; margin-top: 14px; }
.good { background: var(--ok-bg); color: var(--ok); border-radius: 8px; padding: 12px; margin-top: 14px; font-weight: bold; }
.notice { background: var(--brand-light); border-radius: 8px; padding: 12px; margin-top: 14px; }
.loading { color: var(--muted); margin-top: 24px; }
a.tel { color: var(--brand); font-weight: bold; }

@media (min-width: 600px) {
  main { padding-top: 28px; }
  .times { grid-template-columns: repeat(4, 1fr); }
  .actions { flex-direction: row; }
  .actions .btn { flex: 1; }
}
