/* /talk/ and /talk/manage/ (src/p-talk.mjs, web/js/talk.js): the booking card and its picker. Light first, with dark as its
   equal through the site's tokens; the fields, errors, busy state and done panel are the site's own (base.css). */
.page-talk [hidden], .page-talk-manage [hidden] { display: none !important; }
.tk-nowrap { white-space: nowrap; }
.tk-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--heading); font: 600 1rem/1.3 var(--font-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tk-link:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------ the hero -- */
/* The promise beside the booking card, on the site's line drawing of Toronto, as behind the other page titles. */
.tk-hero { position: relative; isolation: isolate; overflow: clip; padding-block: var(--s5) var(--s7); background: var(--paper); }
.tk-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--hero-lines);
  -webkit-mask: url(/assets/lines-toronto.svg) 70% 30% / cover no-repeat, linear-gradient(90deg, #000 10%, transparent 70%), linear-gradient(180deg, #000 40%, transparent);
  -webkit-mask-composite: source-in, source-in;
  mask: url(/assets/lines-toronto.svg) 70% 30% / cover no-repeat, linear-gradient(90deg, #000 10%, transparent 70%), linear-gradient(180deg, #000 40%, transparent);
  mask-composite: intersect, intersect; }
.tk-hero__grid { display: grid; gap: var(--s5); }
.tk-hero__intro { display: grid; gap: var(--s3); align-content: start; }
.tk-hero .crumbs ol { font-size: 0.85rem; }
.tk-hero h1 { margin: 0; font: 700 clamp(2.05rem, 1.25rem + 4vw, 3.6rem)/1.04 var(--font-display); letter-spacing: -0.02em; color: var(--heading); text-wrap: balance; }
.tk-hero__sub { margin: 0; max-width: 34rem; }
.tk-next { list-style: none; counter-reset: tk; margin: var(--s2) 0 0; padding: 0; display: grid; gap: 14px; max-width: 32rem; }
.tk-next li { counter-increment: tk; position: relative; padding-left: 46px; color: var(--ink-soft); line-height: 1.5; }
.tk-next li::before { content: counter(tk); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-1), var(--gold-mid)); color: #16262c; font: 700 0.95rem/1 var(--font-display); }
.tk-next strong { display: block; color: var(--heading); font: 700 1.02rem/1.35 var(--font-display); }
.tk-hero__call { margin: var(--s2) 0 0; color: var(--ink); font-weight: 600; }
.tk-hero__call a { color: var(--heading); text-underline-offset: 3px; }
.tk-hero__hours { margin: 0; color: var(--ink-soft); max-width: 34rem; line-height: 1.5; }
@media (min-width: 960px) {
  .tk-hero { padding-block: var(--s7) var(--s8); }
  .tk-hero__grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: var(--s5) var(--s8); align-items: start; }
  .tk-hero__intro { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ------------------------------------------------------------ the card -- */
.tk-card { scroll-margin-top: calc(var(--header-h) + 16px); padding: clamp(20px, 4vw, 36px); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--e2); }
/* The hub's call types (src/p-talk.mjs types()): two links at the top of the card, the page's own one pressed. */
.tk-types { margin: 0 0 var(--s3); }
.tk-types ul { list-style: none; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--teal-subtle); }
.tk-types__a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 14px; border-radius: 999px; color: var(--heading); font: 600 0.95rem/1.2 var(--font-text); text-align: center; text-decoration: none; }
.tk-types__a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tk-types__a[aria-current="page"] { background: var(--heading); color: var(--paper); box-shadow: var(--e1); font-weight: 700; }   /* as a picked day or time */
.tk-types__a[aria-current="page"]:hover { text-decoration: none; }
.tk-types__a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.tk-nojs { margin: 0; color: var(--ink); line-height: 1.55; }
.tk-nojs a, .tk-pick__none a, .tk-pick__fail a { color: var(--heading); font-weight: 600; }
.tk-step { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 700 1.2rem/1.25 var(--font-display); color: var(--heading); letter-spacing: -0.01em; }
.tk-step:not(:first-child) { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.tk-step__n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-subtle); color: var(--heading); font: 700 0.92rem/1 var(--font-display); }
.tk-form .field + .field { margin-top: 16px; }
.tk-form .field.is-invalid { padding-left: 14px; }

/* Phone or Google Meet: two large chips, each with its picture. */
.tk-how .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tk-how__choice span { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: var(--r-md); font: 600 1rem/1.2 var(--font-text); color: var(--ink); background: var(--paper); }
.tk-how__ico { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; color: var(--accent-ink); }

/* The chosen chip, day or time, in every group: the heading's colour, as the site's other forms show it. */
.page-talk .choice input:checked + span, .tk-day input:checked + span, .tk-slot input:checked + span,
:root[data-theme="dark"] .page-talk .choice input:checked + span { background: var(--heading); border-color: var(--heading); color: var(--paper); }
.page-talk .choice input:checked + span .tk-how__ico { color: inherit; }
@media (hover: hover) and (pointer: fine) {
  .tk-how__choice input:not(:checked):hover + span, .tk-day input:not(:checked):not(:disabled):hover + span, .tk-slot input:not(:checked):hover + span { border-color: var(--heading); background: var(--paper-2); }
}
.tk-day input:focus-visible + span, .tk-slot input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
@media (forced-colors: active) { .tk-day input:checked + span, .tk-slot input:checked + span, .page-talk .choice input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; } }

/* ------------------------------------------------------------ the picker -- */
.tk-pick { display: grid; gap: 14px; }
.tk-tz { display: grid; gap: 6px; }
.tk-tz label { font: 600 0.95rem/1.3 var(--font-text); color: var(--ink); }
.tk-tz select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--field-line); border-radius: var(--r-md); background: var(--paper); color: var(--ink); font-size: 1rem; }
.tk-tz select:focus { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-color: var(--heading); }
.tk-tz__note { margin: 0; color: var(--ink-soft); }
@media (min-width: 640px) {
  .tk-tz { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; }
  .tk-tz__note { grid-column: 2; }
}
.tk-week { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin-top: 4px; }
.tk-week__label { margin: 0; text-align: center; font: 700 1.02rem/1.3 var(--font-display); color: var(--heading); }
.tk-week__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--field-line); border-radius: 50%; background: var(--paper); color: var(--heading); cursor: pointer; }
.tk-week__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tk-week__btn:disabled { opacity: 0.35; cursor: default; }
.tk-week__btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .tk-week__btn:not(:disabled):hover { border-color: var(--heading); background: var(--paper-2); } }

/* The week's seven days, each with how many times it has open. */
.tk-days__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tk-day, .tk-slot { position: relative; display: block; }
.tk-day input, .tk-slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tk-day input:disabled { cursor: default; }
.tk-day span { display: grid; justify-items: center; gap: 1px; min-height: 76px; padding: 8px 2px; border: 1px solid var(--field-line); border-radius: var(--r-md); background: var(--paper); color: var(--ink); text-align: center; }
.tk-day__w, .tk-day__m { font-size: 0.78rem; line-height: 1.2; color: inherit; opacity: 0.8; }
.tk-day__d { font: 700 1.25rem/1.15 var(--font-display); }
.tk-day__n { font-style: normal; font-size: 0.72rem; line-height: 1.2; margin-top: 2px; }
.tk-day input:disabled + span { border-style: dashed; background: transparent; color: var(--ink-soft); opacity: 0.6; }
/* On a phone the count is read out but not shown: an open day is the solid chip, a day with none the dashed one. */
@media (max-width: 559px) {
  .tk-day span { min-height: 64px; }
  .tk-day__n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

/* That day's times, with Toronto time under each when the visitor's zone is another. */
.tk-times legend { margin-bottom: 8px; }
.tk-times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.tk-times__grid:empty { display: none; }
.tk-slot span { display: grid; place-content: center; justify-items: center; gap: 2px; min-height: 52px; padding: 8px 6px; border: 1px solid var(--field-line); border-radius: var(--r-md); background: var(--paper); color: var(--ink); text-align: center; }
.tk-slot b { font: 600 1rem/1.2 var(--font-text); }
.tk-slot small { font-size: 0.78rem; line-height: 1.2; opacity: 0.82; }
.tk-pick__state, .tk-pick__none, .tk-pick__fail { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.tk-pick__state:empty { display: none; }
.tk-pick__none, .tk-pick__fail { padding: 14px 16px; border-radius: var(--r-md); background: var(--paper-2); color: var(--ink); }
.tk-pick__fail .tk-link { min-height: 0; display: inline; }

/* The chosen time in words above the button, and the promise. */
.tk-summary { margin: 22px 0 0; padding: 12px 14px; border-left: 4px solid var(--gold-mid); border-radius: var(--r-sm); background: var(--paper-2); color: var(--heading); font-weight: 600; line-height: 1.45; }
.tk-promise { margin: 18px 0 0; line-height: 1.5; }
.tk-promise a { color: var(--heading); }
.tk-send { margin-top: 16px; }

/* ------------------------------------------------------------ the thanks -- */
.tk-done { gap: 12px; }
.tk-done p { line-height: 1.55; }
.tk-done__when strong { color: var(--heading); }
.tk-done__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 6px; }
/* The calendar button keeps its own dark text on gold (base.css .form-done a would make it the heading colour). */
.tk-done__acts .btn { text-decoration: none; }
.tk-done__acts .btn--primary { color: #282f32; }

/* ------------------------------------------------------------ questions -- */
.tk-faq__wrap .faq { max-width: 880px; }
.tk-faq .hsec__lede a { color: var(--heading); font-weight: 600; }

/* ------------------------------------------------------------ manage -- */
/* One calm card on the grey ground, as /unsubscribe/ has it. */
.tkm { padding-block: clamp(24px, 6vw, 72px) clamp(44px, 8vw, 96px); background: linear-gradient(var(--paper), var(--paper-2) 96px, var(--paper-2) calc(100% - 96px), var(--paper)); }
.tkm__wrap { max-width: calc(44rem + 2 * var(--gut)); }
.tkm__card { padding: clamp(22px, 5vw, 44px); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--e2); display: grid; gap: 16px; }
.tkm h1 { margin: 0; font: 700 clamp(2rem, 1.3rem + 2.4vw, 2.7rem)/1.08 var(--font-display); letter-spacing: -0.03em; color: var(--heading); }
.tkm h1:focus { outline: none; }
.tkm__lede, .tkm__nojs { margin: 0; color: var(--ink); }
.tkm__lede a, .tkm__help a, .tkm__nojs a { color: var(--heading); font-weight: 600; }
.tkm__call { display: grid; gap: 6px; padding: 16px 18px; border-left: 4px solid var(--gold-mid); border-radius: var(--r-sm); background: var(--paper-2); }
.tkm__when { margin: 0; font: 700 1.15rem/1.4 var(--font-display); color: var(--heading); }
.tkm__how { margin: 0; color: var(--ink); }
.tkm__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 10px; }
.tkm__h2 { margin: 6px 0 12px; font: 700 1.3rem/1.25 var(--font-display); color: var(--heading); }
.tkm__h2:focus { outline: none; }
.tkm__confirm p { margin: 0; color: var(--ink); }
.tkm__help { margin: 4px 0 0; }
.tkm__help a { white-space: nowrap; }
@media (max-width: 479px) { .tkm__acts .btn { width: 100%; } }
