/* PRNSE delivery scheduler ------------------------------------------------ */

:root {
  /* Palette shared with the rates_search project so the tools look like one
     system: a blue brand ramp on a cool grey ground, green for good news,
     amber for caution, red for loss. */
  --brand: #0b5fa4;
  --brand-dark: #084a82;
  --brand-tint: #e7effa;

  --ink: #0f2438;
  --muted: #5c7186;
  --muted-soft: #8496a8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --surface-alt: #eef2f7;
  --bg: #f4f6f9;
  --panel: #ffffff;

  --accent: #0e9f6e;
  --accent-dark: #0a7d55;
  --accent-tint: #e6f6ef;

  --caution: #a15c00;
  --caution-strong: #d99417;
  --caution-tint: #fff7e6;
  --caution-line: #f4d58a;

  --loss: #c0392b;
  --loss-dark: #98291d;
  --loss-tint: #fdecea;
  --loss-line: #f3c9c6;

  /* Names the rest of the stylesheet already uses, mapped onto the palette. */
  --navy-900: var(--ink);
  --navy-800: var(--brand-dark);
  --navy-700: var(--brand);
  --slate-600: var(--muted);
  --slate-500: var(--muted-soft);
  --slate-300: var(--line-strong);
  --slate-200: var(--line);
  --slate-100: var(--surface-alt);
  --paper: var(--bg);
  --white: var(--panel);

  --amber-600: var(--caution);
  --amber-500: var(--caution-strong);
  --amber-100: var(--caution-tint);

  --green-700: var(--accent-dark);
  --green-500: var(--accent);
  --green-100: var(--accent-tint);

  --red-700: var(--loss-dark);
  --red-500: var(--loss);
  --red-100: var(--loss-tint);

  --radius: 9px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 36, 56, 0.06);
  --shadow-md: 0 1px 2px rgba(15, 36, 56, 0.06), 0 8px 24px rgba(15, 36, 56, 0.06);
  --focus: 0 0 0 3px rgba(11, 95, 164, 0.28);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/*
 * Text a person typed breaks wherever it has to.
 *
 * A carrier's email address or company name can be one long run with nowhere
 * to wrap, and a single one of those makes the page wider than the phone it is
 * being read on -- which a mobile browser answers by zooming out until the
 * whole width fits, shrinking everything else with it. `anywhere` rather than
 * `break-word` because only `anywhere` also shrinks the element's minimum
 * width, which is what lets a flex or grid item give way.
 */
.email-status,
.form-error,
.field-error,
.confirm-details dd,
.summary-set,
.location-address,
.location-name,
.notice-list li,
.notice-scale,
.field-hint { overflow-wrap: anywhere; }

/*
 * The `hidden` attribute must win over a class that sets `display`.
 * Without this, a class rule like `display: flex` outranks the user agent's
 * `[hidden] { display: none }` and the element stays on the page — invisible
 * to the eye but still catching clicks.
 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--navy-900);
  background: var(--paper);
}

h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }

.shell { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy-900); color: var(--white);
  padding: 0.7rem 1.1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Header ------------------------------------------------------------------ */

.site-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.1rem 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  background: rgba(255, 255, 255, 0.16); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius); font-weight: 700; letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 1.08rem; }
.brand-text span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.82); }
.site-address { font-style: normal; font-size: 0.85rem; color: rgba(255, 255, 255, 0.82); text-align: right; }

.storage-warning {
  background: var(--amber-100);
  border-bottom: 1px solid #f0dcbc;
  color: var(--amber-600);
  font-size: 0.86rem;
  padding: 0.7rem 0;
}
.storage-warning strong { color: var(--red-700); }

/* Page intro + stepper ---------------------------------------------------- */

.page-intro { padding: 2.25rem 0 1.5rem; max-width: 62ch; }
.page-intro h1 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }

.stepper { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; }
.step {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: 999px; font-size: 0.86rem; color: var(--slate-500);
}
.step-num {
  display: grid; place-items: center; width: 24px; height: 24px;
  background: var(--slate-100); color: var(--slate-500);
  border-radius: 50%; font-size: 0.78rem; font-weight: 700;
}
.step.is-current { color: var(--navy-900); border-color: var(--navy-700); font-weight: 600; }
.step.is-current .step-num { background: var(--navy-800); color: var(--white); }
.step.is-done .step-num { background: var(--green-500); color: var(--white); }
.step.is-done { color: var(--green-700); border-color: var(--green-500); }

/* Layout ------------------------------------------------------------------ */

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 1.25rem; align-items: start; }
.layout-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.layout-side { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 1.25rem; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .layout-side { position: static; }
}

/* Cards ------------------------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.card-head h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.06rem; }
.step-badge {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none;
  background: var(--navy-800); color: var(--white);
  border-radius: 50%; font-size: 0.8rem; font-weight: 700;
}
.card-caption { color: var(--slate-500); font-size: 0.92rem; }

/* Delivery requirements --------------------------------------------------- */

.notice-card { border-left: 3px solid var(--caution-strong); background: var(--caution-tint); }
/* Sitting inside the details card rather than being one, it brings its own
   padding and edges instead of the card's. */
.notice-inline {
  margin: 1.25rem 0; padding: 1rem 1.15rem;
  border: 1px solid var(--caution-line); border-left-width: 3px;
  border-radius: var(--radius);
}
.notice-card h2 { font-size: 1rem; margin-bottom: 0.7rem; color: var(--caution); }
.notice-list { margin: 0; padding-left: 1.15rem; font-size: 0.92rem; color: var(--ink); }
.notice-list li + li { margin-top: 0.25rem; }
.notice-scale {
  margin-top: 0.8rem; padding: 0.7rem 0.9rem;
  background: var(--panel); border: 1px solid var(--caution-line); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--ink);
}
.notice-contact { margin-top: 0.8rem; font-size: 0.9rem; color: var(--ink); }
.notice-contact a { color: var(--brand-dark); font-weight: 700; white-space: nowrap; }

.callout-requirements { background: var(--brand-tint); border-left-color: var(--brand); }
.callout-requirements h3 { color: var(--brand-dark); }
.callout-requirements ul { margin: 0; padding-left: 1.15rem; font-size: 0.88rem; color: var(--ink); }
.callout-requirements li + li { margin-top: 0.3rem; }

/* Location picker --------------------------------------------------------- */

.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; }

.location-card {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem 1.1rem; text-align: left;
  background: var(--panel); border: 1.5px solid var(--line);
  border-radius: var(--radius); font: inherit; cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.08s ease;
}
.location-card:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.location-card:focus-visible { outline: none; box-shadow: var(--focus); }
.location-card.is-selected { background: var(--brand-tint); border-color: var(--brand); }

/*
 * The mark sits on a white plate of its own.
 *
 * The artwork is supplied on an opaque white ground, which is invisible on a
 * white card and a bare white rectangle on the tinted one a carrier has
 * selected. A little padding and a rounded corner turn that into something
 * deliberate, and it stays right if transparent artwork ever replaces it.
 */
.location-logo {
  max-width: 178px; max-height: 54px; width: auto; margin-bottom: 0.5rem;
  padding: 4px 6px; background: #ffffff; border-radius: 6px;
  object-fit: contain; object-position: left center;
}
.location-name { font-size: 1.02rem; font-weight: 650; color: var(--ink); }
.summary-logo {
  display: block; max-width: 158px; max-height: 48px; width: auto; margin-bottom: 0.5rem;
  padding: 4px 6px; background: #ffffff; border-radius: 6px;
  object-fit: contain; object-position: left center;
}
.location-address { font-size: 0.87rem; color: var(--muted); }
.location-capacity { margin-top: 0.2rem; font-size: 0.8rem; font-weight: 600; color: var(--accent-dark); }
.location-card.is-selected .location-capacity { color: var(--brand-dark); }

/* Calendar ---------------------------------------------------------------- */

.month-nav { display: flex; align-items: center; gap: 0.35rem; }
.month-label { min-width: 11ch; text-align: center; font-weight: 600; font-size: 0.95rem; }
.icon-button {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--slate-300);
  border-radius: var(--radius); color: var(--navy-800);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.icon-button:hover:not(:disabled) { background: var(--slate-100); border-color: var(--navy-700); }
.icon-button:disabled { opacity: 0.4; cursor: not-allowed; }
.icon-button:focus-visible { outline: none; box-shadow: var(--focus); }

.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.weekday-row {
  margin-bottom: 6px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-500); text-align: center;
}

.day {
  position: relative; aspect-ratio: 1 / 1; min-height: 40px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); font: inherit; font-size: 0.95rem; font-weight: 600;
  color: var(--navy-900); cursor: pointer; padding: 0;
  transition: transform 0.08s ease, border-color 0.12s ease, background 0.12s ease;
}
.day .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-500); }
.day.is-limited .dot { background: var(--amber-500); }
.day:hover:not(:disabled) { border-color: var(--navy-700); transform: translateY(-1px); }
.day:focus-visible { outline: none; box-shadow: var(--focus); }

.day.is-open { background: var(--green-100); border-color: #bfe3d0; }
.day.is-limited { background: var(--amber-100); border-color: #f0dcbc; }
.day.is-full {
  background: var(--slate-100); color: var(--slate-500);
  cursor: not-allowed; text-decoration: line-through;
}
.day.is-closed { background: transparent; color: var(--slate-300); border-color: transparent; cursor: not-allowed; }
.day.is-empty { background: transparent; border-color: transparent; cursor: default; }
.day.is-today { box-shadow: inset 0 0 0 2px var(--slate-300); }
.day.is-selected {
  background: var(--navy-800); border-color: var(--navy-900); color: var(--white);
}
.day.is-selected .dot { background: #ffffff; }
.day.is-loading { opacity: 0.55; }

.legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; list-style: none; margin: 1.1rem 0 0; padding: 0.9rem 0 0; border-top: 1px solid var(--slate-200); font-size: 0.8rem; color: var(--slate-600); }
.legend li { display: flex; align-items: center; gap: 0.4rem; }
.swatch { width: 13px; height: 13px; border-radius: 4px; border: 1px solid var(--slate-200); }
.swatch-open { background: var(--green-100); border-color: #bfe3d0; }
.swatch-limited { background: var(--amber-100); border-color: #f0dcbc; }
.swatch-full { background: var(--slate-100); }
.swatch-closed { background: transparent; border-style: dashed; }

/* Slots ------------------------------------------------------------------- */

.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 0.75rem; }
.slot-grid:empty { display: none; }

.slot {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem;
  padding: 0.95rem 1rem; text-align: left;
  background: var(--white); border: 1.5px solid var(--slate-200);
  border-radius: var(--radius); font: inherit; cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.08s ease;
}
.slot:hover:not(:disabled) { border-color: var(--navy-700); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.slot:focus-visible { outline: none; box-shadow: var(--focus); }
.slot-time { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.slot-status { font-size: 0.83rem; font-weight: 600; color: var(--green-700); }
.slot-bar { display: flex; gap: 3px; margin-top: 0.15rem; }
.slot-pip { width: 20px; height: 5px; border-radius: 3px; background: var(--green-500); }
.slot-pip.is-taken { background: var(--slate-200); }

.slot.is-limited .slot-status { color: var(--amber-600); }
.slot.is-limited .slot-pip { background: var(--amber-500); }

.slot[disabled], .slot.is-unavailable {
  background: var(--slate-100); border-color: var(--slate-200);
  color: var(--slate-500); cursor: not-allowed;
}
.slot.is-unavailable .slot-time { text-decoration: line-through; }
.slot.is-unavailable .slot-status { color: var(--red-700); }
.slot.is-unavailable .slot-pip { background: var(--slate-300); }

.slot.is-selected {
  background: var(--navy-800); border-color: var(--navy-900); color: var(--white);
}
.slot.is-selected .slot-status { color: rgba(255, 255, 255, 0.85); }
.slot.is-selected .slot-pip { background: #ffffff; }
.slot.is-selected .slot-pip.is-taken { background: rgba(255, 255, 255, 0.28); }

.slots-empty {
  grid-column: 1 / -1; padding: 1.1rem; text-align: center;
  background: var(--slate-100); border-radius: var(--radius);
  color: var(--slate-600); font-size: 0.92rem;
}

/* Forms ------------------------------------------------------------------- */

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .field-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label { font-size: 0.87rem; font-weight: 600; color: var(--navy-800); }
.req { color: var(--red-500); }
.hint-inline { font-weight: 400; color: var(--slate-500); }

.field input, .field textarea {
  width: 100%; padding: 0.62rem 0.75rem;
  font: inherit; font-size: 0.95rem; color: var(--navy-900);
  background: var(--white); border: 1px solid var(--slate-300);
  border-radius: var(--radius); transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: var(--focus); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red-500); }

.code-input { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; font-size: 1.05rem; }

/* Segmented control ------------------------------------------------------
 *
 * A small set of choices shown side by side rather than folded into a select.
 * Two or three options are worth reading at a glance, and a dropdown hides the
 * alternatives behind a tap while saying nothing about how many there are.
 *
 * Drives both radio inputs (the booking form, which must work without script)
 * and buttons (the admin location switch).
 */
.segmented {
  display: flex; gap: 3px; padding: 3px; min-width: 0;
  background: var(--slate-100); border: 1px solid var(--slate-300);
  border-radius: var(--radius);
}
.segmented input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmented label,
.segmented button {
  flex: 1; padding: 0.5rem 0.9rem; min-width: 0; text-align: center;
  border: 0; border-radius: calc(var(--radius) - 3px); background: none;
  font: inherit; font-size: 0.88rem; font-weight: 650; color: var(--slate-600);
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background 0.12s ease, color 0.12s ease;
}
.segmented label:hover, .segmented button:hover:not([aria-checked="true"]) { color: var(--navy-800); }
.segmented input[type="radio"]:checked + label,
.segmented button[aria-checked="true"] {
  background: var(--white); color: var(--brand-dark); box-shadow: var(--shadow-sm);
}
/* The input is invisible, so the ring has to be drawn on its label. */
.segmented input[type="radio"]:focus-visible + label,
.segmented button:focus-visible { outline: none; box-shadow: var(--focus); }

/* A group of controls needs a label that is not tied to one input. */
.field-legend { font-size: 0.87rem; font-weight: 600; color: var(--navy-800); }

.field-error { min-height: 0; font-size: 0.8rem; color: var(--red-700); }
.field-error:empty { display: none; }

.form-error {
  margin-top: 1rem; padding: 0.75rem 0.9rem;
  background: var(--red-100); border: 1px solid #f3c9c6; border-left: 3px solid var(--red-500);
  border-radius: var(--radius); color: var(--red-700); font-size: 0.9rem;
}

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.form-note { font-size: 0.82rem; color: var(--slate-500); flex: 1 1 220px; }

/* Buttons ----------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.68rem 1.35rem; font: inherit; font-size: 0.95rem; font-weight: 650;
  border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}
/* Some buttons are anchors -- a sign-in link, a subscribe link -- and an
   underline makes them read as body copy rather than as the control they are. */
a.button { text-decoration: none; }
.button:focus-visible { outline: none; box-shadow: var(--focus); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: 0.55; cursor: not-allowed; }

.button-primary { background: var(--navy-800); color: var(--white); }
.button-primary:hover:not(:disabled) { background: var(--navy-700); }

.button-ghost { background: var(--white); color: var(--navy-800); border-color: var(--slate-300); }
.button-ghost:hover:not(:disabled) { background: var(--slate-100); border-color: var(--navy-700); }

.button-danger { background: var(--red-700); color: var(--white); }
.button-danger:hover:not(:disabled) { background: var(--red-500); }

.button-danger-ghost { background: var(--white); color: var(--red-700); border-color: #f3c9c6; }
.button-danger-ghost:hover:not(:disabled) { background: var(--red-100); }

/* Summary rail ------------------------------------------------------------ */

.summary-card h2, .manage-card h2 { font-size: 1rem; margin-bottom: 0.9rem; }
.summary { margin: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.summary div { display: flex; flex-direction: column; gap: 0.15rem; }
.summary dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-500); }
.summary dd { margin: 0; font-size: 0.92rem; }
.summary-pending { color: var(--slate-500); font-style: italic; }
.summary-set { font-weight: 650; color: var(--navy-900); font-style: normal; }

.summary-foot { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--slate-200); }
.summary-foot h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-500); margin-bottom: 0.4rem; }
.summary-foot p { font-size: 0.87rem; color: var(--slate-600); }
.muted { color: var(--slate-500); font-size: 0.82rem; margin-top: 0.5rem; }

.manage-card p { font-size: 0.88rem; color: var(--slate-600); margin-bottom: 0.9rem; }
.manage-card .button { width: 100%; }

/* Confirmation ------------------------------------------------------------ */

.confirmation-card, .manage-lookup { max-width: 720px; margin: 2.25rem auto; padding: 2rem; }
.confirmation-card { text-align: center; }
.confirm-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700);
  border: 2px solid var(--green-500); border-radius: 50%; font-size: 1.7rem; font-weight: 700;
}
.confirmation-card h1 { font-size: 1.6rem; }
.confirm-lede { margin-top: 0.5rem; color: var(--slate-600); }

.code-block {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  margin: 1.5rem auto; padding: 1.1rem 1.5rem; max-width: 340px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); border-radius: var(--radius-lg);
}
.code-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.75); }
.code-block strong { font-size: 2rem; font-weight: 800; letter-spacing: 0.2em; color: var(--white); font-variant-numeric: tabular-nums; }

.field-hint { font-size: 0.8rem; color: var(--slate-500); }

.email-status {
  margin: 0 auto 1.25rem; padding: 0.7rem 1rem; max-width: 460px;
  border-radius: var(--radius); font-size: 0.88rem; text-align: center;
}
.email-status.is-sent { background: var(--green-100); color: var(--green-700); border: 1px solid #bfe3d0; }
.email-status.is-failed { background: var(--amber-100); color: var(--amber-600); border: 1px solid #f0dcbc; }

.confirm-details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem; margin: 1.5rem 0; padding: 1.2rem;
  background: var(--slate-100); border-radius: var(--radius); text-align: left;
}
.confirm-details div { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.confirm-details dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-500); }
.confirm-details dd { margin: 0; font-size: 0.94rem; font-weight: 600; overflow-wrap: break-word; }

.callout { text-align: left; padding: 1.1rem 1.2rem; background: var(--amber-100); border-left: 3px solid var(--amber-500); border-radius: var(--radius); }
.callout h3 { font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--amber-600); }
.callout ul { margin: 0; padding-left: 1.15rem; font-size: 0.88rem; color: var(--slate-600); }
.callout li + li { margin-top: 0.3rem; }

.confirmation-card .form-actions { justify-content: center; }

/* Manage ------------------------------------------------------------------ */

.manage-lookup h1 { font-size: 1.5rem; }
.manage-lookup > p { margin-top: 0.5rem; color: var(--slate-600); }
.lookup-row { display: flex; gap: 0.75rem; align-items: flex-end; margin-top: 1.25rem; flex-wrap: wrap; }
.lookup-row .field { flex: 1 1 220px; }
.rule { border: none; border-top: 1px solid var(--slate-200); margin: 1.5rem 0; }
.lookup-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lookup-head h2 { font-size: 1.1rem; }

.status-pill {
  padding: 0.25rem 0.75rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.status-booked { background: var(--green-100); color: var(--green-700); }
.status-cancelled { background: var(--red-100); color: var(--red-700); }

/* Footer + toast ---------------------------------------------------------- */

/* Same gradient as the header, so the page is bracketed by one colour. */
.site-footer {
  margin-top: 3rem; padding: 1.75rem 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: rgba(255, 255, 255, 0.82); font-size: 0.87rem;
}
.site-footer .muted { color: rgba(255, 255, 255, 0.62); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

.staff-link {
  flex: none; padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.26); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff; text-decoration: none; font-size: 0.85rem; font-weight: 600;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.staff-link:hover { background: rgba(255, 255, 255, 0.26); border-color: rgba(255, 255, 255, 0.45); }
.staff-link:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  z-index: 50; max-width: min(440px, calc(100% - 2rem));
  padding: 0.8rem 1.2rem; background: var(--ink); color: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-md); font-size: 0.9rem;
}
.toast.is-error { background: var(--red-700); }

@media (max-width: 480px) {
  .shell { width: min(1140px, 100% - 1.5rem); }
  .card { padding: 1rem; }
  .weekday-row, .calendar-grid { gap: 4px; }
  .weekday-row { font-size: 0.65rem; letter-spacing: 0.02em; }
  .day { min-height: 34px; font-size: 0.88rem; }
  .confirmation-card, .manage-lookup { padding: 1.25rem; margin: 1.25rem auto; }
  .code-block strong { font-size: 1.6rem; letter-spacing: 0.15em; }
  .form-actions .button { width: 100%; }
  .lookup-row .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
