/* E-101 Part B2 - the company holiday fill screen. The office-hours.css look,
   copied rule for rule (never linked: one writer per file).
   tokens.css rule 1: NO PER-SCREEN COLOUR - this file names tokens only.
   Rule 2: colour never carries meaning alone - a withdrawn holiday is struck
   through AND carries the word "Withdrawn" AND loses its withdraw control.
   Targets: --tap is the floor for anything tappable, --tap-primary for the
   one primary action on the screen (Add this holiday). */

/* The hidden attribute wins over every display rule below (the DVIR lesson,
   2026-09-25): a hidden control must never quietly appear. */
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: var(--sp-2);
  max-width: 760px;
  background: var(--c-bg);
  color: var(--c-text);
  font: var(--fw-body) var(--fs-body)/var(--lh-body) var(--font-ui);
}
h1 {
  font-size: var(--fs-head); font-weight: var(--fw-head); line-height: var(--lh-tight);
  margin: 0 0 var(--sp-2) 0; padding-bottom: var(--sp-1);
  border-bottom: var(--bw-rule) solid var(--c-rule);
}
h2, .label {
  font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase;
  letter-spacing: var(--ls-caps); color: var(--c-text-2); margin: var(--sp-3) 0 var(--sp-1) 0;
}
p { margin: 0 0 var(--sp-1) 0; }
.muted { color: var(--c-text-2); }
.big { font-size: var(--fs-head); font-weight: var(--fw-label); }
button, a.home {
  display: block; width: 100%; min-height: var(--tap); margin-bottom: var(--tap-gap);
  padding: 12px; font-family: var(--font-ui); font-size: var(--fs-label); font-weight: var(--fw-label);
  text-align: center; text-decoration: none; border: var(--bw) solid var(--c-border);
  border-radius: var(--radius); background: var(--c-bg); color: var(--c-text);
}
button.primary {
  min-height: var(--tap-primary); border-color: var(--c-accent);
  background: var(--c-accent); color: var(--c-on-accent); font-weight: var(--fw-head);
}
button:disabled { opacity: 0.55; }
.hol-nav { display: flex; gap: var(--tap-gap); margin-bottom: var(--sp-2); }
.hol-nav a.home { flex: 1 1 0; }
input {
  display: block; width: 100%; min-height: var(--tap); margin-bottom: var(--sp-2); padding: 12px;
  font-family: var(--font-ui); font-size: var(--fs-body); border: var(--bw) solid var(--c-border);
  border-radius: var(--radius); background: var(--c-bg); color: var(--c-text);
}
label { display: block; margin-bottom: var(--sp-1); font-size: var(--fs-label); font-weight: var(--fw-label); color: var(--c-text-2); }
.alert {
  padding: var(--sp-1); margin-bottom: var(--sp-2); background: var(--c-alert-bg);
  color: var(--c-alert-text); font-weight: var(--fw-label); border-radius: var(--radius);
}
section#hol-add, section#hol-list {
  margin-bottom: var(--sp-3); padding-bottom: var(--sp-2);
  border-bottom: var(--bw-rule) solid var(--c-rule);
}
.hol-row { padding: var(--sp-1) 0; border-top: 1px solid var(--c-border); }
.hol-row-line { font-weight: var(--fw-label); }
/* Withdrawn: struck through, the muted text colour, and the word. */
.hol-row.hol-withdrawn .hol-row-line { text-decoration: line-through; color: var(--c-text-2); font-weight: var(--fw-body); }
.hol-withdrawn-word {
  font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase;
  letter-spacing: var(--ls-caps); color: var(--c-text-2);
}
:focus-visible { outline: var(--bw-focus) solid var(--c-accent); outline-offset: 2px; }
