/* ==========================================================================
   Book + Contact (Phase 3 demo, RD18, 15 Oct 2026). Loads after site.css + academy.css.
   Forms: 16px inputs (no iOS zoom), 48px controls, labels always visible, choices as pills.
   ========================================================================== */
.hdr-nav a[aria-current="page"] { color: var(--saffron-lt); }

.bk-hero { padding: clamp(32px, 5vw, 72px) 0 clamp(20px, 3vw, 40px); }
.bk-hero .wrap { display: grid; gap: 14px; }
.bk-hero h1 { font-size: calc(var(--ds) * clamp(44px, 5vw + 18px, 92px)); color: var(--cream); max-width: 12em; }
.bk-body { padding-bottom: var(--sec); }

/* ---------- Book: choices + panel + talk ---------- */
.bk-grid { display: grid; gap: 20px; }
.bk-tabs { display: grid; gap: 8px; }
.bk-tab {
  --c: var(--saffron);
  display: grid; gap: 2px; padding: 14px 16px; min-height: 44px;
  border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 12px;
  background: var(--espresso-2); color: inherit; text-decoration: none;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.bk-tab .label { color: color-mix(in oklab, var(--c) 50%, var(--cream)); }
.bk-tab-title { font-size: 18px; font-weight: 500; color: var(--cream); }
.bk-tab-text { display: none; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.bk-tab:hover { border-color: color-mix(in oklab, var(--c) 60%, transparent); border-left-color: var(--c); }
.bk-tab[aria-current="true"] { background: color-mix(in oklab, var(--c) 16%, var(--espresso-2)); border-color: var(--c); }
@media (min-width: 600px) and (max-width: 1023px) { .bk-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .bk-grid { grid-template-columns: 300px minmax(0, 640px) minmax(0, 1fr); gap: 40px; align-items: start; }
  .bk-tabs { position: sticky; top: calc(var(--hdr) + 24px); }
  .bk-tab { padding: 18px 20px; }
  .bk-tab-text { display: block; }
}

.bk-panel { --c: var(--saffron); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line-strong); border-top: 3px solid var(--c); border-radius: var(--radius); background: var(--espresso-2); }
.bk-panel[hidden] { display: none; }
.bk-h { font-size: calc(var(--ds) * clamp(28px, 1.4vw + 20px, 40px)); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: 1.1; color: var(--cream); margin-bottom: 20px; }
.bk-h:focus { outline: none; }
.bk-form { display: grid; gap: 22px; }
.bk-form[hidden] { display: none; }
.bk-field { display: grid; gap: 8px; margin: 0; min-width: 0; }
.bk-field[hidden] { display: none; }
.bk-field label, .bk-choice legend { font-weight: 500; color: var(--cream); font-size: 16px; padding: 0; }
.bk-choice { border: 0; padding: 0; }
.bk-choice legend { margin-bottom: 8px; }
.bk-opt { font-weight: 400; color: var(--ink-muted); font-size: 14px; margin-left: 6px; }
.bk-hint { font-size: 15px; color: var(--ink-muted); line-height: 1.45; margin-top: -2px; }
.bk-hint a { color: var(--saffron-lt); }
.bk-form input[type="text"], .bk-form input[type="email"], .bk-form select, .bk-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 16px/1.4 var(--f-sans); color: var(--ink);
  background: var(--espresso); border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color .3s var(--ease);
}
.bk-form textarea { resize: vertical; min-height: 96px; }
.bk-form select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.bk-form select option, .bk-form select optgroup { background: var(--espresso-2); color: var(--ink); }
.bk-form input::placeholder, .bk-form textarea::placeholder { color: color-mix(in oklab, var(--ink-muted) 75%, transparent); }
.bk-form input:focus-visible, .bk-form select:focus-visible, .bk-form textarea:focus-visible { outline: 2px solid var(--saffron); outline-offset: 1px; border-color: var(--saffron); }
.bk-form :user-invalid { border-color: #E07A5F; }

.bk-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-pill { position: relative; display: inline-flex; cursor: pointer; }
.bk-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk-pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft); font-size: 15px;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.bk-pill:hover span { border-color: var(--cream); }
.bk-pill input:checked + span { background: var(--cream); border-color: var(--cream); color: var(--espresso); }
.bk-pill input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 2px; }
.bk-pill.is-off { cursor: not-allowed; opacity: .45; }

.bk-submit { display: grid; gap: 10px; justify-items: start; padding-top: 4px; }
.bk-submit .btn { width: 100%; }
@media (min-width: 600px) { .bk-submit .btn { width: auto; } }
.bk-small { font-size: 14px; color: var(--ink-muted); line-height: 1.45; }

.bk-done { display: grid; gap: 14px; }
.bk-done[hidden] { display: none; }
.bk-done:focus { outline: none; }
.bk-done .label { color: color-mix(in oklab, var(--c) 50%, var(--cream)); }
.bk-done-title { font-size: 21px; font-weight: 500; color: var(--cream); line-height: 1.35; }
.bk-done-msg { white-space: pre-line; padding: 14px 16px; border-radius: 12px 12px 12px 4px; background: color-mix(in oklab, var(--t-green) 22%, var(--espresso)); color: var(--ink); font-size: 15px; line-height: 1.5; max-width: 36em; }

.bk-talk { display: grid; gap: 8px; align-content: start; padding-top: 4px; }
.bk-channel { display: grid; gap: 2px; padding: 12px 0; min-height: 44px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.bk-channel span { font-size: 14px; color: var(--ink-muted); }
.bk-channel b { font-weight: 500; color: var(--cream); overflow-wrap: anywhere; }
.bk-channel:hover b { color: var(--saffron-lt); }
@media (min-width: 1024px) { .bk-talk { position: sticky; top: calc(var(--hdr) + 24px); } }

/* ---------- Contact ---------- */
.ct-grid { display: grid; gap: 32px; }
.ct-col { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1024px) { .ct-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.ct-channels { border-top: 1px solid var(--line); }
.ct-channel {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.ct-channel .label { grid-column: 1; }
.ct-channel b { grid-column: 1; font-size: calc(var(--ds) * clamp(26px, 1.4vw + 18px, 36px)); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: 1.15; color: var(--cream); overflow-wrap: anywhere; }
.ct-sub { grid-column: 1; color: var(--ink-muted); font-size: 15px; }
.ct-go { grid-column: 2; grid-row: 1 / 4; font-size: 22px; color: var(--saffron); transition: transform .4s var(--ease); }
.ct-channel:hover b { color: var(--saffron-lt); }
.ct-channel:hover .ct-go { transform: translateX(4px); }
.ct-where { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.ct-where-title { font-size: 20px; font-weight: 500; color: var(--cream); }
.ct-where p:not(.label):not(.ct-where-title) { color: var(--ink-soft); }
.ct-placeholder { margin-top: 6px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--ink-muted); font-size: 15px; line-height: 1.45; }
.ct-placeholder b { color: var(--ink-soft); font-weight: 500; }
.ct-book { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--saffron); color: var(--espresso); text-decoration: none; }
.ct-book .label { color: var(--espresso); }
.ct-book b { grid-column: 1; font-size: 19px; font-weight: 500; }
.ct-book .ct-go { color: var(--espresso); grid-row: 1 / 3; }
.ct-book:hover { background: var(--saffron-lt); }

/* 29 Oct 2026: drawn icons on the Contact channels and the three Book options. */
.ch-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--cream); flex: none; --acc: var(--saffron); }
.ch-ic .ic { width: 28px; height: 28px; }
.ct-channel.has-ic { grid-template-columns: 52px 1fr auto; column-gap: 16px; align-items: center; }
.ct-channel.has-ic > .ch-ic { grid-column: 1; grid-row: 1 / span 3; }
.ct-channel.has-ic > :not(.ch-ic):not(.ct-go) { grid-column: 2; }
.ct-channel.has-ic > .ct-go { grid-column: 3; grid-row: 1 / span 3; }
.ct-where .ch-ic { margin-bottom: 10px; }
.bk-tab .bk-tab-ic { display: block; color: var(--cream); --acc: var(--c); margin-bottom: 6px; }
.bk-tab .bk-tab-ic .ic { width: 30px; height: 30px; }
