/* Client app: Ivory classic, rounded (chosen 27 Nov). 17px text, navy on ivory,
   dark next-class card, pill buttons. Dates, times and numbers in Inter. */
:root {
  --navy: #122a4b;
  --gold: #b98945;
  --ivory: #f7f3ea;
  --paper: #fffdf8;
  --line: #ddd2be;
  --muted: #4f5b6e;
  --card-muted: #d5dce6;
  --dir: #e2c595;
  --later: #8c8574;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--navy); font: 17px/1.4 Inter, system-ui, -apple-system, sans-serif; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
a { color: var(--navy); }
h1, h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; margin: 4px 0 0; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
.small { font-size: 14px; }
.c-muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 10px; }

.c-head { display: flex; align-items: center; padding: 10px 16px; border-bottom: 2px solid var(--gold); background: var(--ivory); }
.c-head img { height: 64px; width: auto; margin: -6px 0 -6px -10px; }
.c-main { max-width: 560px; margin: 0 auto; padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 12px; }

.next-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 6px; background: var(--navy); color: var(--ivory); }
.nc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--card-muted); }
.nc-top a { color: var(--dir); font-size: 15px; }
.nc-when { font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nc-where { color: var(--card-muted); }
.nc-line { height: 1px; background: var(--gold); margin: 6px 0 2px; }
.nc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nc-k { color: var(--card-muted); font-size: 15px; }
.nc-v { font-size: 28px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }

.news { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); }
.news.hi { border: 2px solid var(--navy); }

.c-btn {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border: 0; border-radius: 26px;
  background: var(--navy); color: var(--ivory); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; width: 100%;
}
.c-btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.c-btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-h { font-size: 13px; color: var(--muted); }
.cal-d { height: 36px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-variant-numeric: tabular-nums; margin: 0 auto; width: 36px; box-sizing: border-box; }
.cal-d.mine { border-radius: 18px; background: var(--navy); color: var(--ivory); font-weight: 700; }
.cal-d.later { border-radius: 18px; border: 2px dashed var(--later); color: var(--muted); }
.cal-d.cancelled { color: var(--later); text-decoration: line-through; }
.cal-d.end { border: 2px solid var(--navy); border-radius: 0; font-weight: 700; }
.cal-d.mine.end { border-radius: 0; }
.cal-d.today { text-decoration: underline; text-underline-offset: 4px; }
.cal-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.cal-key span { display: flex; align-items: center; gap: 6px; }
.cal-key i { display: inline-block; }
.k-mine { width: 14px; height: 14px; border-radius: 7px; background: var(--navy); }
.k-end { width: 11px; height: 11px; border: 2px solid var(--navy); }
.k-later { width: 11px; height: 11px; border-radius: 7px; border: 2px dashed var(--later); }

.c-nav {
  position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ivory);
}
.c-nav a { min-height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 26px; text-decoration: none; font-size: 15px; }
.c-nav a.on { background: var(--navy); color: var(--ivory); font-weight: 600; }

.c-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.c-flash { margin: 0; padding: 10px 14px; border-radius: 6px; }
.c-flash.ok { background: #e4ece3; color: #2f5a3a; }
.c-flash.err { background: #f5dcd6; color: #8a2f1f; }

.c-list { list-style: none; margin: 0; padding: 0; }
.c-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.c-list li:first-child { border-top: 0; }
.c-list li.struck > span:first-child { text-decoration: line-through; color: var(--later); }
.tick { color: #2f5a3a; font-weight: 600; }
.due { color: #8a2f1f; font-weight: 600; }
.row-between { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }

label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
input, select, textarea { min-height: 48px; padding: 10px 16px; border: 1px solid #8c8574; border-radius: 24px; background: var(--paper); color: var(--navy); font: inherit; font-weight: 400; }
textarea { border-radius: 16px; min-height: 90px; }
input[type='radio'], input[type='checkbox'] { min-height: 0; width: 22px; height: 22px; accent-color: var(--navy); padding: 0; }
input.pin { font-size: 28px; letter-spacing: 12px; text-align: center; font-variant-numeric: tabular-nums; }
fieldset { margin: 0; }
fieldset.q { display: flex; flex-direction: column; gap: 8px; }
fieldset.q legend { font-weight: 600; padding: 0; float: left; width: 100%; margin-bottom: 8px; }
.yn { display: flex; gap: 20px; clear: both; }
.yn label, label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
label.check { align-items: flex-start; }
.c-inv { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }

/* Trial page (chosen: Ivory classic, rounded; About first) */
.t-hero { height: 200px; border-radius: 6px; background: #e3daca; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.t-hero img { height: 180px; width: auto; }
.t-h1 { font-size: 36px; line-height: 1.15; }
.t-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.t-points li { display: flex; gap: 10px; }
.t-points li::before { content: ''; flex: 0 0 8px; height: 8px; margin-top: 9px; border-radius: 4px; background: var(--gold); }
.t-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.t-chip { flex: 0 0 auto; min-width: 76px; min-height: 64px; padding: 6px 10px; border: 1px solid #8c8574; border-radius: 26px; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-size: 15px; line-height: 1.25; font-weight: 400; cursor: pointer; scroll-snap-align: start; font-variant-numeric: tabular-nums; }
.t-chip input, .t-seg input { position: absolute; opacity: 0; pointer-events: none; }
.t-chip:has(input:checked) { background: var(--navy); color: var(--ivory); border-color: var(--navy); font-weight: 700; }
.t-chip:has(input:focus-visible), .t-seg label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
fieldset { border: 0; padding: 0; }
fieldset legend { font-size: 15px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.t-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.t-seg label { min-height: 52px; flex-direction: row; align-items: center; justify-content: center; border: 1px solid #8c8574; border-radius: 26px; background: var(--paper); font-weight: 400; cursor: pointer; }
.t-seg label:has(input:checked) { background: var(--navy); color: var(--ivory); border-color: var(--navy); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.t-when { font-size: 26px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
