/* WMCHealth Portraits: brand styles (WMC Brand Guidelines 2023). Light theme, brand on white. */
:root {
  --navy: #002855;        /* PMS 295 */
  --sky: #9CB6D2;         /* PMS 644 */
  --blue: #0980BC;        /* PMS 640 accent: buttons, open slots */
  --blue-deep: #06689a;
  --yellow: #FED141;      /* PMS 122, sparingly */
  --purple: #8A75D1;      /* PMS 2101, reserved */
  --backdrop: #f3f6fa;
  --paper: #ffffff;
  --ink: #1b2430;
  --ink-soft: #55657a;
  --rule: #cfdae6;
  --wash: #e6eef7;        /* sky tint */
  --wash-strong: #d3e3f3;
  --taken: #c3ccd6;
  --warn: #9a3b12; --warn-wash: #fbeee6;
  --ok: #1f6b3a; --ok-wash: #e3f2e7;
  --radius-frame: 4px; --radius-panel: 12px;
  --font: Frutiger, "Frutiger LT Std", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-accent: Sabon, "Sabon LT Std", Garamond, "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--backdrop); color: var(--ink); font: 400 17px/1.5 var(--font); font-variant-numeric: tabular-nums; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 64px; }

/* Masthead: network logo with clear space (the guidelines ask for the orb height around it) */
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0 18px; border-bottom: 2px solid var(--sky); margin-bottom: 26px; }
.masthead .brand img { display: block; height: 52px; width: auto; }
.masthead nav a, .masthead > a { font-size: 15px; color: var(--navy); }
.masthead .program { font-weight: 700; color: var(--navy); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 180px; gap: 20px; align-items: center; margin-bottom: 22px; }
.eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
h1 { font-size: clamp(34px, 7vw, 50px); line-height: 1.05; margin: 0 0 10px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.lede { color: var(--ink-soft); margin: 0; max-width: 32em; font-family: var(--font-accent); font-style: italic; font-size: 20px; line-height: 1.4; }
.hero-art { position: relative; height: 170px; }
.hero-art .stripes { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(5, 1fr); gap: 8px; align-content: center; }
.hero-art .stripes i { display: block; height: 100%; border-radius: 999px; }
.hero-art .stripes i:nth-child(1) { background: var(--sky); width: 70%; justify-self: end; }
.hero-art .stripes i:nth-child(2) { background: var(--navy); width: 100%; }
.hero-art .stripes i:nth-child(3) { background: var(--blue); width: 85%; justify-self: end; }
.hero-art .stripes i:nth-child(4) { background: var(--navy); width: 100%; }
.hero-art .stripes i:nth-child(5) { background: var(--yellow); width: 55%; justify-self: end; }
@media (max-width: 560px) { .hero { grid-template-columns: 1fr; } .hero-art { height: 110px; } }

/* What to expect */
.expect { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.expect li { background: var(--paper); border-top: 4px solid var(--sky); border-radius: 8px; padding: 12px 12px 14px; font-size: 14px; color: var(--ink-soft); display: flex; gap: 10px; }
.expect li b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; display: grid; place-items: center; }
.expect li strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 2px; }
@media (max-width: 680px) { .expect { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .expect { grid-template-columns: 1fr; } }

/* Steps */
.step { background: var(--paper); border-radius: var(--radius-panel); padding: 20px; margin-bottom: 14px; border: 1px solid var(--rule); }
.step[hidden] { display: none; }
.step-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.step-num { font-weight: 700; color: #fff; background: var(--blue); border-radius: 50%; width: 26px; height: 26px; display: inline-grid; place-items: center; font-size: 14px; flex: none; transform: translateY(2px); }
.step h2 { font-size: 20px; margin: 0; font-weight: 700; color: var(--navy); }
.step-summary { margin-left: auto; color: var(--ink-soft); font-size: 15px; text-align: right; }
.step.done .step-body { display: none; }
.step.done .step-num { background: var(--navy); }
.change { background: none; border: 0; color: var(--blue); font: inherit; font-size: 15px; cursor: pointer; padding: 0; text-decoration: underline; }

/* Site and day cards */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choice { text-align: left; font: inherit; color: inherit; background: var(--paper); border: 1.5px solid var(--rule); border-radius: 10px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.choice:hover { border-color: var(--blue); box-shadow: 0 0 0 3px var(--wash); }
.choice strong { display: block; font-weight: 700; color: var(--navy); }
.choice span { color: var(--ink-soft); font-size: 14px; }
.choice .site-logo { display: block; height: 30px; width: auto; max-width: 100%; object-fit: contain; object-position: left; margin-bottom: 6px; }
.choice[disabled] { cursor: not-allowed; opacity: 0.55; }
.choice[disabled]:hover { border-color: var(--rule); box-shadow: none; }
.where { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.where img { height: 28px; width: auto; }

/* The contact sheet: one row per hour, frames across */
.sheet { display: grid; gap: 6px; }
.hour { display: grid; grid-template-columns: 52px repeat(var(--cols, 4), 1fr); gap: 6px; align-items: stretch; }
.hour-label { font-size: 14px; color: var(--ink-soft); padding-top: 12px; }
.frame { font: inherit; font-size: 15px; font-weight: 700; min-height: 46px; border-radius: var(--radius-frame); border: 1.5px solid var(--navy); background: var(--paper); color: var(--navy); cursor: pointer; padding: 4px 2px; }
.frame:hover { background: var(--wash); border-color: var(--blue); }
.frame.selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.frame.taken, .frame.closed { cursor: not-allowed; color: var(--ink-soft); border-color: transparent; font-weight: 400; background: repeating-linear-gradient(135deg, var(--taken) 0 2px, transparent 2px 7px), var(--backdrop); }
.frame.held { cursor: not-allowed; border: 1.5px dashed var(--ink-soft); background: transparent; color: var(--ink-soft); font-weight: 400; }
.frame.unavailable { cursor: not-allowed; border-color: transparent; background: var(--backdrop); color: var(--ink-soft); font-weight: 400; }
.frame.gap { visibility: hidden; }
.frame small { display: block; font-size: 11px; font-weight: 400; }
@media (max-width: 460px) { .hour { grid-template-columns: repeat(3, 1fr); } .hour-label { grid-column: 1 / -1; padding-top: 6px; } .frame.gap { display: none; } }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--ink-soft); margin-top: 14px; }
.legend i { display: inline-block; width: 18px; height: 14px; vertical-align: -2px; margin-right: 6px; border-radius: 2px; }
.legend .l-open { border: 1.5px solid var(--navy); }
.legend .l-held { border: 1.5px dashed var(--ink-soft); }
.legend .l-taken { background: repeating-linear-gradient(135deg, var(--taken) 0 2px, transparent 2px 6px); }
.legend .l-unav { background: var(--backdrop); border: 1px solid var(--rule); }

.hold-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--wash); border-left: 4px solid var(--yellow); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 15px; color: var(--navy); }
.hold-bar b { font-variant-numeric: tabular-nums; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--navy); }
label .opt { font-weight: 400; color: var(--ink-soft); }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=password], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 6px; padding: 10px 12px; }
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--wash); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.hint { font-size: 14px; color: var(--ink-soft); margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn { font: inherit; font-weight: 700; border-radius: 8px; padding: 12px 22px; cursor: pointer; border: 1.5px solid var(--blue); background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.btn.quiet { background: transparent; color: var(--blue); }
.btn.quiet:hover { background: var(--wash); }
.btn.danger { background: transparent; color: var(--warn); border-color: var(--warn); }
.btn.danger:hover { background: var(--warn-wash); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.notice { border-radius: 8px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px; }
.notice.warn { background: var(--warn-wash); color: var(--warn); }
.notice.ok { background: var(--ok-wash); color: var(--ok); }
.notice[hidden] { display: none; }

.confirm { background: var(--paper); border-radius: var(--radius-panel); padding: 24px 20px; border-top: 6px solid var(--blue); }
.confirm h2 { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.01em; color: var(--navy); }
.confirm dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 18px 0; }
.confirm dt { color: var(--ink-soft); }
.confirm dd { margin: 0; font-weight: 700; }
.code { font-size: 22px; letter-spacing: 0.08em; color: var(--navy); }

.empty { color: var(--ink-soft); margin: 0; }
.wear { margin-top: 28px; color: var(--ink-soft); font-size: 15px; background: var(--paper); border-radius: var(--radius-panel); padding: 18px 20px; border-left: 5px solid var(--sky); }
.wear h2 { color: var(--navy); font-size: 17px; margin: 0 0 6px; }
.foot { margin-top: 36px; font-size: 14px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.foot img { height: 24px; opacity: 0.85; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
@media (prefers-reduced-motion: no-preference) { .frame.selected { transition: background-color 120ms ease; } }
a.btn { display: inline-block; text-decoration: none; }
.step.done { padding-bottom: 14px; }
.step.done .step-head { margin-bottom: 0; }

/* Finals page: previews from SmugMug's CDN, portrait-shaped frames */
.finals-actions { margin: 18px 0 4px; }
.finals { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 18px; }
.final { margin: 0; background: var(--paper); border-radius: var(--radius-panel); overflow: hidden; border-top: 6px solid var(--blue); display: flex; flex-direction: column; }
.final img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: var(--wash); }
.final figcaption { display: grid; gap: 2px; padding: 12px 14px 14px; }
.final-name { font-weight: 700; color: var(--navy); font-size: 15px; overflow-wrap: anywhere; }
.final-meta { color: var(--ink-soft); font-size: 14px; }
.final .btn { justify-self: start; margin-top: 8px; padding: 8px 16px; text-decoration: none; }
.finals-note { color: var(--ink-soft); font-size: 15px; margin-top: 22px; }
.notice.retake { background: var(--wash); color: var(--ink); border-left: 4px solid var(--yellow); }
.notice.retake p { margin: 0 0 10px; }
.notice.retake .field { margin: 0; }

/* Proofs: tap to pick */
.proofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; padding-bottom: 90px; }
.proof { position: relative; margin: 0; padding: 0; border: 3px solid transparent; border-radius: var(--radius-panel); background: var(--paper); overflow: hidden; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.proof img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: var(--wash); }
.proof .proof-num { display: block; padding: 8px 10px; font-size: 14px; color: var(--ink-soft); }
.proof[aria-pressed="true"] { border-color: var(--blue); }
.proof[aria-pressed="true"] .proof-num { color: var(--navy); font-weight: 700; }
.proof .tick { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,40,85,.35); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.proof[aria-pressed="true"] .tick { background: var(--blue); }
.proof[disabled] { cursor: default; }
.proof-zoom { position: absolute; left: 10px; top: 10px; font-size: 13px; background: rgba(255,255,255,.9); color: var(--navy); border-radius: 6px; padding: 3px 8px; text-decoration: none; }
.pick-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 2px solid var(--sky); padding: 12px 16px; display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; z-index: 5; }
.pick-bar[hidden] { display: none; }
.pick-bar .count { font-weight: 700; color: var(--navy); }
.proofs.done { padding-bottom: 0; }
@media (max-width: 480px) { .finals, .proofs { grid-template-columns: 1fr 1fr; gap: 12px; } .final .btn { padding: 7px 12px; } }

/* "You already have a session" panel on the booking form */
.notice.existing p { margin: 6px 0; }
.notice.existing .btn { margin-top: 6px; }
.notice.existing .sent { font-weight: 700; color: var(--ok); }

/* Wall board (admin Calendar tab and the TV link board.html). Dark navy for a large TV. */
.board-wrap { --b-bg: #001a38; --b-card: #0b2c52; --b-day: #123a68; --b-rule: rgba(156,182,210,.22);
              --b-ink: #e6edf5; --b-soft: #a9bcd3; --b-time: #9CB6D2; --b-open: #8fd4a3; --b-today: #FED141;
              background: var(--b-bg); color: var(--b-ink); border-radius: 14px; padding: 20px; }
.board-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.board-bar h2 { margin: 0 auto 0 0; font-size: 26px; color: var(--b-ink); }
.board-bar .mini { background: transparent; color: var(--b-soft); border-color: var(--b-rule); }
.board-bar .mini:hover { color: var(--b-ink); border-color: var(--b-soft); }
.board { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(220px, 1fr)); gap: 14px; }
.bcol { background: var(--b-card); border-radius: 12px; border-top: 6px solid var(--b-time); padding: 14px; min-height: 160px; }
.bcol.today { border-top-color: var(--b-today); box-shadow: 0 0 0 2px var(--b-today) inset; }
.bcol > h3 { margin: 0 0 12px; font-size: 24px; color: var(--b-ink); line-height: 1.1; }
.bcol > h3 small { display: block; font-size: 15px; font-weight: 400; color: var(--b-soft); margin-top: 3px; }
.bcol.today > h3 small { color: var(--b-today); }
.bcol .none, .board .none { color: var(--b-soft); font-size: 17px; }
.bday { border-radius: 8px; background: var(--b-day); padding: 12px; margin-bottom: 10px; cursor: pointer; }
.bday .site { font-size: 21px; font-weight: 700; color: var(--b-ink); }
.bday .meta { font-size: 15px; color: var(--b-soft); line-height: 1.35; margin-bottom: 8px; }
.bday .meta span { display: block; }
.bday ol { list-style: none; margin: 0; padding: 0; }
.bday li { display: flex; gap: 10px; align-items: baseline; font-size: 19px; padding: 5px 0; border-top: 1px solid var(--b-rule); }
.bday li b { flex: 0 0 auto; min-width: 5.6em; font-variant-numeric: tabular-nums; color: var(--b-time); font-weight: 700; }
.bday li span { overflow-wrap: anywhere; }
.bday li.done, .bday li.done b { color: var(--b-soft); }
.bday .open { font-size: 15px; color: var(--b-open); font-weight: 700; margin-top: 8px; }
/* Full screen on the TV: everything scales with the screen */
body.tv .board-wrap { border-radius: 0; padding: 2.2vw; min-height: 100vh; }
body.tv .board-wrap .board-bar h2 { font-size: 2.4vw; }
body.tv .board-wrap .board-bar .mini { font-size: 1vw; opacity: .55; }
body.tv .board-wrap .board { gap: 1.1vw; }
body.tv .board-wrap .bcol { padding: 1.1vw; }
body.tv .board-wrap .bcol > h3 { font-size: 2vw; }
body.tv .board-wrap .bcol > h3 small { font-size: 1.15vw; }
body.tv .board-wrap .bday .site { font-size: 1.7vw; }
body.tv .board-wrap .bday .meta, body.tv .board-wrap .bday .open { font-size: 1.15vw; }
body.tv .board-wrap .bday li { font-size: 1.55vw; }
@media (max-width: 800px) { .board { grid-template-columns: 1fr; } }

/* Month view */
.month { display: grid; grid-template-columns: repeat(var(--mcols, 5), minmax(0, 1fr)); gap: 8px; }
.mhead { font-size: 15px; font-weight: 700; color: var(--b-soft); text-transform: uppercase; letter-spacing: .06em; padding: 0 4px 2px; }
.mcell { position: relative; background: var(--b-card); border-radius: 10px; padding: 8px; min-height: 120px; max-height: 260px; overflow: hidden; }
.mcell.out { background: transparent; }
.mcell.past { opacity: .45; }
.mcell.today { box-shadow: 0 0 0 3px var(--b-today) inset; }
.mdate { position: absolute; top: 6px; right: 10px; font-size: 15px; font-weight: 700; color: var(--b-soft); }
.mcell.today .mdate { color: var(--b-today); }
.mday { background: var(--b-day); border-radius: 7px; padding: 5px 8px; margin: 18px 0 6px; }
.mday + .mday { margin-top: 0; }
.mday.clickable { cursor: pointer; }
.mday .site { font-size: 15px; font-weight: 700; color: var(--b-ink); line-height: 1.25; }
.mday .site .who { font-weight: 400; color: var(--b-soft); }
.mday ol { list-style: none; margin: 2px 0 0; padding: 0; }
.mday li { display: flex; gap: 8px; font-size: 14px; line-height: 1.25; padding: 1px 0; }
.mday li b { color: var(--b-time); min-width: 2.9em; font-variant-numeric: tabular-nums; }
.mday li.done, .mday li.done b { color: var(--b-soft); }
.mday .count { font-size: 12px; color: var(--b-soft); margin-top: 3px; line-height: 1.25; }
.mday .count .open { color: var(--b-open); font-weight: 700; }
body.tv .month { gap: .5vw; }
body.tv .mhead { font-size: .85vw; }
body.tv .mcell { padding: .45vw; min-height: 0; max-height: none; }
body.tv .mdate { font-size: .85vw; top: .35vw; right: .55vw; }
body.tv .mday { padding: .3vw .45vw; margin-top: 1.25vw; margin-bottom: .3vw; }
body.tv .mday + .mday { margin-top: 0; }
body.tv .mday .site { font-size: .85vw; }
body.tv .mday .count { font-size: .62vw; margin-top: .15vw; }
body.tv .mday li { font-size: .72vw; padding: 0; }
/* On the TV the month fills the screen height: rows share what's left under the title */
body.tv .board-wrap.monthly { display: flex; flex-direction: column; height: 100vh; box-sizing: border-box; }
body.tv .board-wrap.monthly .board { display: block; flex: 1; min-height: 0; position: relative; }
body.tv .board-wrap.monthly .month { position: absolute; inset: 0; grid-template-rows: auto; grid-auto-rows: minmax(0, 1fr); }
