/* Prime plc look: one brand blue on white, blue type, thin blue rules,
   square cards, pill buttons with a circled arrow, Prime logo tile hanging from the top edge.
   --primary / --accent can still be overridden per event via theme in the event JSON. */
:root {
  --primary: #2935d5;
  --accent: #1b2496;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: var(--primary);
  --muted: #4c5399;
  --line: color-mix(in srgb, var(--primary) 30%, #fff);
  --rule: var(--primary);
  --tint: color-mix(in srgb, var(--primary) 6%, #fff);
  --danger: #b0262b;
  --radius: 0;
  font-family: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; background: var(--bg); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
::selection { background: var(--primary); color: #fff; }

/* Header: logo tab hangs from the top edge, big light headline beside it */
.site-header { background: var(--bg); color: var(--primary); padding: 0 0 28px; }
.header-inner { display: flex; gap: 32px; align-items: center; border-bottom: 1px solid var(--rule); padding: 0 0 28px; width: calc(100% - 32px); max-width: 888px; }
.logo { display: block; flex: none; width: 128px; height: auto; aspect-ratio: auto 282.9 / 354.2; }
.logo[hidden] { display: none; }
.site-header:not(.ready) .header-inner > * { visibility: hidden; }
/* Event name: small bold capitals; venue: muted line underneath */
.eyebrow { margin: 0 0 12px; line-height: 1.3; }
.eyebrow span { display: block; }
.eyebrow span:first-child { font-size: clamp(13px, 1.5vw, 15px); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.eyebrow span + span { font-size: clamp(15px, 1.8vw, 18px); color: var(--muted); }
/* Big letters carry more built-in left space than small ones; pull the heading back
   so its first letter lines up with the event name and venue above it. */
.site-header h1 { margin-left: -0.06em; }h1 { margin: 0; font-size: clamp(30px, 5.2vw, 52px); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }

main.wrap { padding-top: 4px; padding-bottom: 48px; }
.intro { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.4; margin: 0 0 28px; max-width: 68ch; }
.intro span { display: block; text-wrap: balance; }
.banner { background: var(--tint); border: 1px solid var(--line); color: var(--primary); padding: 10px 14px; margin-bottom: 20px; font-size: 14px; }
.alert { background: #fdeceb; border: 1px solid #f0b9b6; color: var(--danger); padding: 10px 14px; margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; margin-top: 0; }

/* Steps: open sections divided by blue rules, like Prime's page sections */
.step { background: transparent; border-top: 1px solid var(--rule); padding: 22px 0 26px; }
.step.done { padding-top: 14px; padding-bottom: 14px; }
/* The first step follows the intro directly: no extra rule there. */
#app > .step:first-child:not(.confirmed):not(.cancel-step) { border-top: 0; padding-top: 4px; }
/* The number box lines up with the heading's first line, even when the heading wraps. */
.step-head { --h2: clamp(20px, 2.6vw, 26px); display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.step.done .step-head { align-items: center; }
.step.active .step-head { margin-bottom: 18px; }
.step-head h2 { margin: 0; font-size: var(--h2); line-height: 1.25; padding-top: max(0px, calc((30px - 1.25 * var(--h2)) / 2)); font-weight: 400; letter-spacing: -.01em; flex: 1 1 0; min-width: 0; outline: none; }
.step.active .step-num { margin-top: max(0px, calc((1.25 * var(--h2) - 30px) / 2)); }
.step.done .step-head h2 { font-size: 15px; color: var(--muted); flex: 0 1 auto; }
.step-summary { font-weight: 600; flex: 1 1 auto; }
.step-num { width: 30px; height: 30px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex: none; }
.step.done .step-num { background: #fff; color: var(--primary); border: 1px solid var(--primary); }

.grid { display: grid; gap: 12px; }
.topics { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.days, .people { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.slots { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }

.card, .slot { font: inherit; text-align: left; background: var(--surface); color: var(--primary); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; min-height: 48px; transition: border-color .12s, background-color .12s, color .12s; }
.card:hover:not(:disabled), .slot:hover:not(:disabled) { border-color: var(--primary); background: var(--tint); }
.slot:hover:not(:disabled) { background: var(--primary); color: #fff; }
.card:focus-visible, .slot:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.card:disabled, .slot:disabled { cursor: not-allowed; opacity: .45; background: #fff; }
.card-title { display: block; font-weight: 600; font-size: 17px; }
.card.internal { border-style: dashed; border-color: var(--primary); }
.card-sub { display: block; font-size: 14px; color: var(--muted); }
/* Person cards: photo and name top-aligned so every card lines up, whatever the job title length */
.person { display: flex; align-items: flex-start; gap: 16px; }
.person .avatar { width: 64px; height: 64px; border-radius: 50%; }
.person .avatar.photo { object-fit: cover; object-position: center 20%; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.person:hover:not(:disabled) .avatar.photo { box-shadow: 0 0 0 1px var(--primary); }
.person > span:last-child { padding-top: 6px; min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.person .card-sub { margin-top: auto; padding-top: 4px; }
.card-role { display: block; font-size: 14px; line-height: 1.35; margin: 2px 0 4px; }
.avatar { width: 42px; height: 42px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.avatar.any { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.slot { text-align: center; padding: 10px 6px; font-weight: 600; }
.slot:disabled { text-decoration: line-through; font-weight: 400; }

.link-btn { background: none; border: 0; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: 14px; padding: 6px; min-height: 44px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fields .wide { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
label .muted { font-weight: 400; font-size: 13px; }
input, textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: #10204d; min-height: 46px; }
input:hover, textarea:hover { border-color: var(--primary); }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; margin: 18px 0; }
.check input { min-height: 0; width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.check a, .site-footer a { color: var(--primary); text-underline-offset: 3px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts-box { margin-top: 16px; min-height: 65px; }
.verified { margin: 16px 0 0; color: var(--accent); font-weight: 600; }

/* Pill buttons with a circled arrow, as on primeplc.com */
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font: inherit; font-weight: 500; border-radius: 999px; padding: 6px 7px 6px 20px; min-height: 48px; cursor: pointer; text-decoration: none; transition: background-color .12s, color .12s; }
.primary::after, .secondary::after { content: "\2192"; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-size: 17px; line-height: 1; flex: none; }
.primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.primary::after { background: #fff; color: var(--primary); }
.primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.primary:disabled { opacity: .6; cursor: progress; }
.secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.secondary::after { background: var(--primary); color: #fff; }
.secondary:hover { background: var(--tint); }

.confirmed { border-top: 4px solid var(--primary); }
.confirmed h2 { margin-top: 0; font-size: clamp(26px, 3.6vw, 36px); font-weight: 400; letter-spacing: -.01em; color: var(--primary); }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 18px 0 24px; }
.summary dt, .summary dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); padding-right: 20px; }
.summary dd { margin: 0; font-weight: 600; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Cancel */
.cancel-step { border-top: 4px solid var(--primary); }
.cancel-step h2 { margin-top: 0; font-size: clamp(26px, 3.6vw, 36px); font-weight: 400; letter-spacing: -.01em; }
.cancel-step p { max-width: 60ch; }
.form-actions { margin-top: 22px; }
.cancel-note { margin: 20px 0 0; }
.cancel-note .link-btn { padding-left: 0; color: var(--muted); }
.cancel-note .link-btn:hover { color: var(--primary); }

.site-footer { font-size: 14px; }
.site-footer p { border-top: 1px solid var(--rule); padding: 18px 0 36px; margin: 0; }
.site-footer p:empty { padding-bottom: 24px; }

@media (max-width: 600px) {
  /* Phones: event name and venue sit beside the logo tile, centred on it; the big heading
     runs full width underneath, so it lines up with the tile's left edge and the page below. */
  .header-inner { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; align-items: center; padding-bottom: 22px; }
  .header-inner > div { display: contents; }
  .logo { width: 72px; grid-column: 1; grid-row: 1; }
  .eyebrow { grid-column: 2; grid-row: 1; margin: 0; }
  .eyebrow span:first-child { font-size: 12px; letter-spacing: .08em; margin-bottom: 4px; text-wrap: balance; }
  .eyebrow span + span { font-size: 15px; line-height: 1.3; }
  .site-header h1 { grid-column: 1 / -1; grid-row: 2; margin-top: 20px; font-size: 34px; line-height: 1.08; text-wrap: balance; }
  .site-header { padding-bottom: 24px; }
  .intro { font-size: 18px; }
  .intro span { text-wrap: pretty; }
  .fields { grid-template-columns: 1fr; }
}
