/* Register pages (/learn/register, /learn/register/confirmed, /learn/october-2026).
   Loads after learn.css; register-page overrides live here, not in learn.css. */
.hri-register { background: #11100C; }
/* Elements register.js toggles with [hidden] have their own display rules. */
.hri-register [hidden] { display: none !important; }
.hri-register .register-wrap { padding-top: 36px; padding-bottom: 48px; }
.hri-register h1 { max-width: 16ch; }
.hri-register .lede { font-size: 20px; line-height: 1.45; margin: 12px 0 0; max-width: 36ch; }
.hri-register .when { color: #D9D2C0; margin-top: 10px; max-width: none; }
/* UI-10: the date, each time zone and "Microsoft Teams" never break inside; a line breaks only
   between them, after the "·" or "/" that ends each piece. */
.hri-register .when-part { white-space: nowrap; }
.register-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: start; margin-top: 28px; }
.register-card, .register-aside { min-width: 0; }
.register-card { background: var(--hri-cream); color: var(--hri-ink); padding: clamp(22px, 3vw, 36px); }
.register-card h2, .register-aside h2 { font-family: var(--hri-font-display); font-weight: 500; }
.register-card h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 8px; }
.register-card p, .register-card legend, .register-card label { color: var(--hri-ink); }
.register-card .fine, .register-card .hint { color: var(--hri-muted); font-size: 14px; line-height: 1.5; margin: 8px 0 0; }
.register-card .hint a, .register-aside a { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
/* Hover on the cream card: learn.css's a:hover gold (#C9A227) is 2.4:1 on cream, and body.hri-learn
   sets --hri-gold-text to the dark-surface gold (3.7:1 here), so the card switches the text tokens
   back to their light-surface values (#8A6614, 5.2:1). Links on the dark page keep the bright gold. */
.register-card { --hri-gold-text: var(--hri-gold-on-light); --hri-quiet-text: var(--hri-quiet-on-light); }
.register-card a:not(.button):hover { color: var(--hri-gold-text); }
/* N6: text links are at least 44px tall. */
.hri-register main a:not(.button):not(.skip) { display: inline-flex; align-items: center; min-height: 44px; }
/* UI-10: a link inside a sentence (the save error's "open the class details") stays in the line;
   the padding keeps its tap area about 44px tall without a line of its own. F4-SITE-4: the same
   for "Get the monthly newsletter" in the closed notes, so their lines stay evenly spaced. */
.hri-register main .form-status a:not(.button):not(.skip),
.hri-register main .form-notice a:not(.button):not(.skip),
.hri-register main .ended-soon a:not(.button):not(.skip),
.hri-register main .ended-note p a:not(.button):not(.skip) { display: inline; min-height: 0; padding: 12px 0; }
.field { margin-top: 16px; }
.register-card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.register-card .opt { font-weight: 500; color: var(--hri-muted); }
.register-card input[type="text"],
.register-card input[type="email"],
.register-card input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--hri-quiet);
  background: #fff;
  color: var(--hri-ink);
  font: 16px/1.4 var(--hri-font-ui);
  border-radius: 0;
}
/* H3: inline email errors. #A1251B is 7.4:1 on the cream card. */
.register-card input[aria-invalid="true"] { border: 2px solid #A1251B; padding: 11px 13px; }
/* UI-12: learn.css draws focus rings in the bright gold (2.4:1 on the cream card). Fields and
   focused messages on the card use the light-surface gold (#8A6614: 5.2:1 on cream, 4.6:1 on the
   invitation panel); links and buttons already do (site.css, --hri-gold-text). */
.register-card :focus-visible { outline-color: var(--hri-gold-on-light); }
.register-card .field-error { margin: 6px 0 0; color: #A1251B; font-size: 14px; font-weight: 600; line-height: 1.4; }
.register-card .form-notice { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid #A1251B; background: #FBEFEA; color: var(--hri-ink); font-weight: 600; }
.register-card .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin-top: 18px; }
.register-card .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.register-card .check + .hint { margin-top: 4px; padding-left: 30px; }
.register-card button[type="submit"] {
  width: 100%;
  margin-top: 22px;
  min-height: 48px;
  border: 0;
  background: var(--hri-gold-bright);
  color: var(--hri-ink);
  font: 600 15px var(--hri-font-ui);
  cursor: pointer;
}
.register-card button[type="submit"]:disabled { opacity: 0.7; cursor: wait; }
.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: #755610;
  font: 600 14px var(--hri-font-ui);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  cursor: pointer;
}
/* H6: "Use the details from your invitation" and the reclaim prompt. */
.register-card .invite { margin-top: 16px; padding: 14px 16px; background: #F4EFE3; border-left: 3px solid var(--hri-gold-bright); }
.register-card .invite-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--hri-ink);
  background: transparent;
  color: var(--hri-ink);
  font: 600 14px/1.3 var(--hri-font-ui);
  text-align: left;
  cursor: pointer;
}
.register-card .invite-button:hover { background: #EAE3D3; }
.register-card .invite-button:disabled,
.register-card .invite-button[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.register-card .invite-status { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
/* UI-2: an empty live region stays rendered (screen readers announce what is added to it later),
   it just takes no room. */
.register-card .invite-status:empty { margin: 0; }
.register-card .invite-button + .invite-status:empty + .text-link { margin-top: 4px; }
.register-card .reclaim .field { margin-top: 10px; }
.register-card .reclaim .invite-button { margin-top: 10px; }
/* N6: colleagues collapse into a disclosure. */
.register-card details.colleagues { margin-top: 22px; padding: 0; border-top: 1px solid #E7E2D6; border-bottom: 1px solid #E7E2D6; }
.register-card details.colleagues[open] { padding-bottom: 16px; }
.register-card details.colleagues > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 0;
  font-family: var(--hri-font-display);
  font-size: 22px;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}
.register-card details.colleagues > summary::-webkit-details-marker { display: none; }
.register-card details.colleagues > summary::before {
  content: "+";
  content: "+" / ""; /* UI-12: decorative, not read aloud (browsers without alt text keep the line above) */
  flex: none;
  width: 24px;
  font: 600 20px/1 var(--hri-font-ui);
  text-align: center;
  color: #755610;
}
.register-card details.colleagues[open] > summary::before { content: "\2212"; content: "\2212" / ""; }
.register-card details.colleagues > summary .opt { font: 500 14px var(--hri-font-ui); }
.register-card details.colleagues > .hint { margin-top: 0; }
.register-card #full-link { padding: 4px 0; border-bottom: 0; }
.register-card #full-link > summary { padding: 10px 0; }
.register-card #full-join { display: block; padding: 10px 0; overflow-wrap: anywhere; word-break: break-all; }
.register-aside { border: 1px solid #514A39; padding: clamp(20px, 3vw, 28px); }
.register-aside h2 { font-size: 28px; margin: 0 0 8px; }
.register-aside p { margin: 6px 0; }
/* N3: the plate fits the QR (the SVG's own size is 490px) and centres it. */
.qr-plate { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; max-width: 100%; margin-top: 8px; padding: 12px; background: #fff; }
.qr-plate img { display: block; width: 180px; max-width: 100%; height: auto; }
.logistics { display: grid; gap: 12px; margin: 18px 0; }
.logistics div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; border-top: 1px solid #E7E2D6; padding-top: 10px; }
.logistics dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hri-muted); }
.logistics dd { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.register-card .button.ghost { color: var(--hri-ink); border-color: var(--hri-ink); background: transparent; }
.register-actions, .ended-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.register-actions .button, .ended-actions .button { text-align: center; }
.register-actions .pending-note { display: flex; align-items: center; min-height: 48px; margin: 0; padding: 10px 16px; background: #F4EFE3; border-left: 3px solid var(--hri-gold-bright); font-weight: 600; }
/* M11: a class that has ended. */
.ended-note { margin: 14px 0 6px; padding: 14px 16px; background: #F4EFE3; border-left: 3px solid var(--hri-gold-bright); }
.ended-note p { margin: 0; }
.ended-note p + p { margin-top: 8px; }
.ended-note .ended-actions { margin-top: 12px; }
.register-ended > p { margin: 8px 0 0; }
/* R11: what a no-JS post's 303 shows. The handler adds #hri-error-<code> (register) or
   #registered (confirmation); the notice for it shows with :target. register.js marks <main>
   with .has-js and shows its own notices, so these never double up with them. */
.hri-register .target-notice { display: none; }
.hri-register main:not(.has-js) .target-notice:target { display: block; }
/* S7 (F4-UI-2): with JS, register.js shows the next-class notice itself (the same words as without). */
.hri-register main.has-js .target-notice.is-shown { display: block; }
.hri-register main:not(.has-js):has(#registered:target) #confirmed-eyebrow { display: none; }
/* The eyebrow sits under the site header: keep the page at the top instead of scrolling to it,
   and draw no focus ring around the words (the browser focuses a fragment's target). */
.hri-register #registered { scroll-margin-top: 100vh; }
.hri-register #registered:focus { outline: none; }
/* A closed class: only the notice (with its link to the next class, or "Next dates coming soon") is
   left of the form. S7: on the next open class's page (data-closed="earlier") the form stays. */
.hri-register main:not(.has-js) #register-form:has(#hri-error-event_closed[data-closed="this"]:target) > :not(.target-notices) { display: none; }
body.hri-register:has(main:not(.has-js) #hri-error-event_closed[data-closed="this"]:target) #register-bar { display: none; }
.register-card .target-notices .ended-note { margin: 14px 0 0; }
.register-card .target-notices .ended-note .button { margin-top: 4px; }
.form-status { margin-top: 12px; }
/* UI-2: rendered while empty, so updates are announced; F4-SITE-1: and it adds no gap above Register. */
.form-status:empty { margin: 0; }
.form-status.is-error { color: #A1251B; font-weight: 600; }
.form-status.is-error a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* M2: the sticky bar's Register is a real submit button. */
.hri-register .mobilebar button.button { font-family: var(--hri-font-ui); font-weight: 600; cursor: pointer; }
.hri-register .mobilebar button.button:disabled { opacity: 0.7; cursor: wait; }
@media (max-width: 800px) {
  .register-grid { grid-template-columns: 1fr; }
  .logistics div { grid-template-columns: 1fr; gap: 4px; }
  .hri-register h1 { font-size: 40px; }
}
@media (max-width: 640px) {
  /* UI-11: keyboard focus never lands under the sticky bar (zoomed desktops included). */
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .register-wrap { padding-top: 24px; padding-bottom: 96px; }
  .register-card, .register-aside { padding: 20px; }
  .register-actions .button, .ended-actions .button, .register-actions .pending-note { flex: 1 1 100%; }
  /* Nothing sits under the bar: 69px bar plus the home-indicator inset. */
  body.hri-register { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
/* Spam trap (contract 1): keep the honeypot field out of sight for people.
   Bots that fill it are dropped server-side (api/_lib/submit.mjs). */
.hri-honeypot { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* October 2026: class agenda ("What we'll cover") and the Google / Outlook / Apple calendar links. */
.agenda-card h2 { margin-bottom: 14px; }
.agenda-block { padding: 14px 0 12px; border-top: 1px solid var(--hri-line, #D9D2C0); }
.agenda-block:first-child { border-top: 0; padding-top: 0; }
.agenda-block .agenda-time { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--hri-gold-text); }
.agenda-block h3 { margin: 0 0 8px; font-family: var(--hri-font-display); font-size: 19px; font-weight: 500; line-height: 1.3; }
.agenda-block ul { margin: 0; padding-left: 20px; }
.agenda-block li { margin: 0 0 6px; line-height: 1.5; }
.calendar-links { margin: 4px 0 16px; line-height: 1.6; }
.calendar-links a { font-weight: 600; }
