/* Student registration - the homepage (/), a course's page (/courses/{id}),
   instrument hire and the discount application, the basket, the sign-up
   (/join/*) and the checkout. Self-contained: no admin stylesheet is
   loaded on these pages, so nothing here needs to out-rank speedadmin.css.
   Colours are the York Music Education logo's own: navy, magenta, teal. */

:root {
  --rg-navy: #20245c;
  --rg-navy-2: #2d3278;
  --rg-navy-3: #151842;
  --rg-pink: #e62b78;
  --rg-pink-2: #c81f64;
  --rg-pink-50: #fdeef4;
  --rg-teal: #22c7b8;
  --rg-teal-2: #139c90;
  --rg-teal-50: #e7f8f6;
  --rg-ink: #171a3a;
  --rg-ink-2: #3d4166;
  --rg-muted: #6b6f8e;
  --rg-line: #e4e5ef;
  --rg-line-2: #d3d5e4;
  --rg-bg: #f6f6fb;
  --rg-card: #ffffff;
  --rg-danger: #c62839;
  --rg-danger-50: #fdeef0;
  --rg-success: #0f8a6c;
  --rg-radius: 18px;
  --rg-radius-sm: 12px;
  --rg-shadow-sm: 0 1px 2px rgba(23, 26, 58, .06);
  --rg-shadow: 0 1px 2px rgba(23, 26, 58, .05), 0 10px 30px -12px rgba(23, 26, 58, .16);
  --rg-shadow-lg: 0 2px 4px rgba(23, 26, 58, .04), 0 24px 48px -20px rgba(23, 26, 58, .28);
  --rg-ring: 0 0 0 4px rgba(34, 199, 184, .28);
  --rg-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --rg-display: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body.rg-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--rg-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--rg-ink);
  background: var(--rg-bg);
  -webkit-font-smoothing: antialiased;
}

/* resets at zero specificity, so any component class below wins over them */
:where(.rg-body) img { max-width: 100%; display: block; }
:where(.rg-body) a { color: inherit; }
:where(.rg-body) :is(h1, h2, h3) { margin: 0; line-height: 1.15; }
:where(.rg-body) p { margin: 0; }
:where(.rg-body) :is(button, input, select) { font: inherit; color: inherit; }

.rg-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.rg-main { flex: 1 0 auto; }
.rg-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.rg-skip {
  position: absolute; left: 16px; top: -48px; z-index: 50; padding: 10px 16px;
  border-radius: 10px; background: var(--rg-navy); color: #fff; text-decoration: none;
}
.rg-skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */

.rg-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(228, 229, 239, .8);
}
.rg-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.rg-brand { display: inline-flex; align-items: center; text-decoration: none; }
/* the logo file carries wide margins of its own: crop them off */
.rg-brand img { width: 132px; height: 56px; object-fit: cover; object-position: 50% 50%; }
.rg-brand-text { font-family: var(--rg-display); font-size: 22px; font-weight: 700; color: var(--rg-navy); }
.rg-nav { display: flex; align-items: center; gap: 6px; }
.rg-nav-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 15px;
  color: var(--rg-ink-2); text-decoration: none; transition: background .15s, color .15s;
}
.rg-nav-link:hover { background: var(--rg-bg); color: var(--rg-navy); }
.rg-nav-link.is-active { color: var(--rg-navy); }
.rg-nav form { margin: 0; }

/* --------------------------------------------------------------- buttons */

.rg-btn {
  --rg-btn-bg: var(--rg-navy);
  --rg-btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px; border: 1px solid transparent;
  background: var(--rg-btn-bg); color: var(--rg-btn-fg);
  font-weight: 700; font-size: 15.5px; letter-spacing: .005em; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(23, 26, 58, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.rg-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(32, 36, 92, .55); }
.rg-btn:active { transform: translateY(0); }
.rg-btn:focus-visible { outline: none; box-shadow: var(--rg-ring); }
.rg-btn[disabled], .rg-btn.is-busy { opacity: .7; cursor: progress; transform: none; }
.rg-btn-accent { --rg-btn-bg: var(--rg-pink); }
.rg-btn-accent:hover { box-shadow: 0 10px 24px -10px rgba(230, 43, 120, .7); }
.rg-btn-light {
  --rg-btn-bg: #fff; --rg-btn-fg: var(--rg-navy);
  border-color: var(--rg-line-2); box-shadow: var(--rg-shadow-sm);
}
.rg-btn-light:hover { box-shadow: 0 8px 18px -10px rgba(23, 26, 58, .35); }
.rg-btn-sm { min-height: 40px; padding: 8px 16px; border-radius: 12px; font-size: 14.5px; }
.rg-btn-block { width: 100%; }
.rg-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  color: var(--rg-navy); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px;
  text-decoration-color: rgba(230, 43, 120, .45); text-underline-offset: 3px; cursor: pointer;
}
.rg-link:hover { text-decoration-color: var(--rg-pink); }

/* ------------------------------------------------------------ status bar */

.rg-flash {
  display: flex; align-items: center; gap: 12px; margin: 20px 0 0; padding: 14px 18px;
  border-radius: 14px; background: var(--rg-teal-50); color: #0c5d56; font-weight: 600;
  border: 1px solid rgba(34, 199, 184, .35);
}
.rg-flash i { color: var(--rg-teal-2); }
.rg-flash-error { background: var(--rg-danger-50); color: var(--rg-danger); border-color: rgba(198, 40, 57, .25); }
.rg-flash-error i { color: var(--rg-danger); }

/* ------------------------------------------------------------------ hero */

.rg-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(140deg, var(--rg-navy-3) 0%, var(--rg-navy) 48%, var(--rg-navy-2) 100%);
  color: #fff;
}
/* the logo's three shapes, as soft light */
.rg-hero::before, .rg-hero::after, .rg-hero-glow {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55;
}
.rg-hero::before { width: 460px; height: 460px; right: -80px; top: -160px; background: var(--rg-pink); }
.rg-hero::after { width: 420px; height: 420px; right: 260px; bottom: -260px; background: var(--rg-teal); opacity: .42; }
.rg-hero-glow { width: 360px; height: 360px; left: -140px; top: 40px; background: #5b61d6; opacity: .35; }
/* a stave - five faint lines across the band */
.rg-hero-stave {
  position: absolute; inset: auto 0 44px 0; height: 64px; z-index: -1; opacity: .12;
  background: repeating-linear-gradient(to bottom, #fff 0 1px, transparent 1px 16px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.rg-hero-inner { padding: 72px 24px 88px; max-width: 1200px; margin: 0 auto; }
.rg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.rg-eyebrow .rg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rg-teal); box-shadow: 0 0 0 4px rgba(34, 199, 184, .25); }
.rg-hero h1 {
  margin-top: 22px; max-width: 760px;
  font-family: var(--rg-display); font-weight: 700; font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -.02em; line-height: 1.04;
}
.rg-hero h1 em { font-style: normal; color: #ff8fbd; }
.rg-hero-lead { margin-top: 18px; max-width: 620px; font-size: 18.5px; color: rgba(255, 255, 255, .8); }
.rg-search {
  position: relative; margin-top: 34px; max-width: 620px;
}
.rg-search i {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--rg-muted); font-size: 18px; pointer-events: none;
}
.rg-search input {
  width: 100%; height: 64px; padding: 0 22px 0 56px; border-radius: 18px; border: 0;
  background: #fff; color: var(--rg-ink); font-size: 17px; font-weight: 500;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55);
}
.rg-search input::placeholder { color: #9a9cb5; }
.rg-search input:focus { outline: none; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55), 0 0 0 4px rgba(34, 199, 184, .45); }
.rg-hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 28px; color: rgba(255, 255, 255, .78); font-size: 15px; }
.rg-hero-stats strong { color: #fff; font-size: 17px; margin-right: 4px; }

/* ------------------------------------------------------------ the listing */

.rg-listing { padding: 40px 0 88px; }
.rg-listing-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.rg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rg-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--rg-line-2); background: #fff; color: var(--rg-ink-2);
  font-weight: 600; font-size: 14.5px; cursor: pointer; transition: all .15s ease;
}
.rg-chip:hover { border-color: var(--rg-navy); color: var(--rg-navy); }
.rg-chip[aria-pressed="true"] { background: var(--rg-navy); border-color: var(--rg-navy); color: #fff; }
.rg-chip-count {
  display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: var(--rg-bg); color: var(--rg-muted); font-size: 12.5px; font-weight: 700;
}
.rg-chip[aria-pressed="true"] .rg-chip-count { background: rgba(255, 255, 255, .16); color: #fff; }
.rg-count { color: var(--rg-muted); font-size: 15px; font-weight: 500; }

.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 24px; }

.rg-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--rg-radius); background: var(--rg-card); border: 1px solid var(--rg-line);
  box-shadow: var(--rg-shadow-sm); text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rg-card:hover { transform: translateY(-4px); box-shadow: var(--rg-shadow-lg); border-color: transparent; }
.rg-card:focus-visible { outline: none; box-shadow: var(--rg-ring), var(--rg-shadow); }
.rg-card-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: linear-gradient(135deg, var(--rg-navy), var(--rg-navy-2)); }
.rg-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rg-card:hover .rg-card-media img { transform: scale(1.05); }
.rg-card-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(21, 24, 66, .45), transparent);
}
.rg-card-noimg { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .5); font-size: 44px; }
.rg-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
.rg-card-media .rg-tag { position: absolute; left: 14px; top: 14px; z-index: 1; background: rgba(255, 255, 255, .94); color: var(--rg-navy); box-shadow: var(--rg-shadow-sm); }
.rg-tag-pink { background: var(--rg-pink-50); color: var(--rg-pink-2); }
.rg-tag-teal { background: var(--rg-teal-50); color: var(--rg-teal-2); }
.rg-tag-navy { background: #eceefa; color: var(--rg-navy); }
.rg-card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.rg-card-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rg-pink); }
.rg-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--rg-ink); }
.rg-card-text {
  color: var(--rg-muted); font-size: 14.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rg-card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 10px; color: var(--rg-ink-2); font-size: 13.5px; font-weight: 600; }
.rg-card-meta span { display: inline-flex; align-items: center; gap: 7px; }
.rg-card-meta i { color: var(--rg-teal-2); }
.rg-card-foot {
  display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 14px;
  border-top: 1px solid var(--rg-line); font-weight: 700; font-size: 14.5px; color: var(--rg-navy);
}
.rg-card-foot .rg-arrow {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--rg-bg); transition: background .2s, color .2s, transform .2s;
}
.rg-card:hover .rg-arrow { background: var(--rg-pink); color: #fff; transform: translateX(3px); }
.rg-card-foot.is-closed { color: var(--rg-muted); }

.rg-empty {
  display: grid; place-items: center; gap: 10px; padding: 64px 24px; border-radius: var(--rg-radius);
  border: 2px dashed var(--rg-line-2); background: #fff; text-align: center; color: var(--rg-muted);
}
.rg-empty i { font-size: 34px; color: var(--rg-line-2); }
.rg-empty strong { color: var(--rg-ink); font-size: 18px; }

/* ---------------------------------------------------------- course page */

.rg-page { padding: 32px 0 88px; }
.rg-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--rg-ink-2);
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.rg-back:hover { color: var(--rg-navy); }
.rg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 32px; align-items: start; }
.rg-layout-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }

.rg-panel {
  background: var(--rg-card); border: 1px solid var(--rg-line); border-radius: 22px; box-shadow: var(--rg-shadow);
}
.rg-course-hero { overflow: hidden; }
.rg-course-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--rg-navy), var(--rg-navy-2)); }
.rg-course-media img { width: 100%; height: 100%; object-fit: cover; }
.rg-course-body { padding: 28px 30px 32px; }
.rg-course-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-course-body h1 { margin-top: 16px; font-family: var(--rg-display); font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; color: var(--rg-navy); }
.rg-course-text { margin-top: 14px; color: var(--rg-ink-2); font-size: 17px; white-space: pre-line; }
.rg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 26px; }
.rg-fact { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--rg-bg); }
.rg-fact i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--rg-pink); box-shadow: var(--rg-shadow-sm); }
.rg-fact small { display: block; color: var(--rg-muted); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.rg-fact span { font-weight: 700; color: var(--rg-ink); }

.rg-steps { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rg-line); }
.rg-steps h2 { font-size: 17px; font-weight: 800; }
.rg-steps ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: rg-step; }
.rg-steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--rg-ink-2); counter-increment: rg-step; }
.rg-steps li::before {
  content: counter(rg-step); display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--rg-navy); color: #fff; font-weight: 800; font-size: 14px;
}
.rg-steps li strong { display: block; color: var(--rg-ink); }

.rg-form-panel { position: sticky; top: 96px; padding: 26px; }
.rg-form-panel > h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.rg-form-panel > p { margin-top: 6px; color: var(--rg-muted); font-size: 15px; }
.rg-section { margin-top: 24px; }
.rg-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rg-num {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--rg-pink-50); color: var(--rg-pink-2); font-weight: 800; font-size: 14px;
}
.rg-section-head h3 { font-size: 16.5px; font-weight: 800; }
.rg-section-head p { color: var(--rg-muted); font-size: 13.5px; }

.rg-places { display: grid; gap: 12px; }
.rg-place { border: 1.5px solid var(--rg-line); border-radius: 16px; padding: 14px; transition: border-color .15s, background .15s; }
.rg-place.is-active { border-color: var(--rg-navy); background: #fafaff; }
.rg-place-name { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--rg-ink); }
.rg-place-name i { color: var(--rg-teal-2); }
.rg-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rg-option { position: relative; }
.rg-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rg-option span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  border: 1.5px solid var(--rg-line-2); background: #fff; font-weight: 600; font-size: 14.5px; color: var(--rg-ink-2);
  transition: all .15s ease;
}
.rg-option span::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--rg-line-2); background: #fff; transition: all .15s ease;
}
.rg-option input:hover + span { border-color: var(--rg-navy); }
.rg-option input:checked + span { border-color: var(--rg-navy); background: var(--rg-navy); color: #fff; }
.rg-option input:checked + span::before { border-color: #fff; background: var(--rg-pink); box-shadow: inset 0 0 0 3px var(--rg-navy); }
.rg-option input:focus-visible + span { box-shadow: var(--rg-ring); }

.rg-times-empty { padding: 16px; border-radius: 14px; background: var(--rg-bg); color: var(--rg-muted); font-size: 14.5px; }
.rg-times-group + .rg-times-group { margin-top: 14px; }
.rg-times-venue { margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--rg-muted); }
.rg-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rg-slot { position: relative; }
.rg-slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.rg-slot-card {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--rg-line-2); background: #fff; transition: all .15s ease;
}
.rg-slot-card strong { font-size: 15px; font-weight: 800; color: var(--rg-ink); }
.rg-slot-card small { color: var(--rg-muted); font-size: 13.5px; font-weight: 600; }
.rg-slot-rank {
  position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; border: 2px solid var(--rg-line-2); background: #fff; color: #fff; font-size: 12px; font-weight: 800;
  transition: all .15s ease;
}
.rg-slot input:hover ~ .rg-slot-card { border-color: var(--rg-navy); }
.rg-slot input:checked ~ .rg-slot-card { border-color: var(--rg-teal-2); background: var(--rg-teal-50); }
.rg-slot input:checked ~ .rg-slot-rank { border-color: var(--rg-teal-2); background: var(--rg-teal-2); }
.rg-slot input:checked ~ .rg-slot-rank:empty::before { content: "\2713"; }
.rg-slot input:focus-visible ~ .rg-slot-card { box-shadow: var(--rg-ring); }
.rg-slot input:disabled { cursor: not-allowed; }
.rg-slot input:disabled ~ .rg-slot-card { opacity: .5; }

.rg-custom { margin-top: 12px; border-radius: 14px; border: 1.5px dashed var(--rg-line-2); background: #fff; }
.rg-custom[open] { border-style: solid; }
.rg-custom summary {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 14.5px; color: var(--rg-navy);
}
.rg-custom summary::-webkit-details-marker { display: none; }
.rg-custom summary i { color: var(--rg-pink); }
.rg-custom-body { display: grid; gap: 10px; padding: 0 14px 14px; }
.rg-custom-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.rg-custom-hint { color: var(--rg-muted); font-size: 13px; }

.rg-help { margin-top: 10px; color: var(--rg-muted); font-size: 13.5px; }
.rg-submit { margin-top: 26px; }
.rg-submit-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: var(--rg-muted); font-size: 13.5px; text-align: center; }
.rg-closed { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--rg-bg); color: var(--rg-ink-2); }
.rg-closed strong { display: block; color: var(--rg-ink); margin-bottom: 4px; }

/* ------------------------------------------------------------- fields */

.rg-field { display: grid; gap: 6px; }
.rg-field + .rg-field { margin-top: 14px; }
.rg-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rg-row + .rg-field, .rg-field + .rg-row, .rg-row + .rg-row { margin-top: 14px; }
/* side by side in a row: the stacked-field gap does not apply */
.rg-row > .rg-field + .rg-field { margin-top: 0; }
.rg-label { font-weight: 700; font-size: 14.5px; color: var(--rg-ink); }
.rg-label small { color: var(--rg-muted); font-weight: 500; }
.rg-input, .rg-select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--rg-line-2);
  background: #fff; font-size: 15.5px; transition: border-color .15s, box-shadow .15s;
}
.rg-select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6f8e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.rg-custom .rg-input, .rg-custom .rg-select { height: 44px; font-size: 14.5px; }
.rg-input:hover, .rg-select:hover { border-color: #b9bcd3; }
.rg-input:focus, .rg-select:focus { outline: none; border-color: var(--rg-teal-2); box-shadow: var(--rg-ring); }
/* closed fields (e.g. an empty "suggest a day" row at the max). Same weight as
   .rg-custom .rg-input and :hover but later, so it wins; before .has-error, so
   an error border still shows. background-color only: the select keeps its arrow */
.rg-input:disabled, .rg-select:disabled { opacity: .5; cursor: not-allowed; background-color: var(--rg-bg); border-color: var(--rg-line-2); }
.rg-input-code { height: 60px; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .5em; padding-left: calc(14px + .5em); }
.has-error .rg-input, .has-error .rg-select, .rg-input.has-error, .rg-select.has-error { border-color: var(--rg-danger); }
.rg-error { display: flex; align-items: center; gap: 6px; color: var(--rg-danger); font-size: 13.5px; font-weight: 600; }
.rg-error::before { content: "\f06a"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px; }

.rg-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14.5px; color: var(--rg-ink-2); }
.rg-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rg-navy); cursor: pointer; }

.rg-req { color: var(--rg-pink); font-weight: 800; }
.rg-textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; font: inherit; font-size: 15.5px; color: inherit; }

/* "None, or details": two choices; the box for the details shows only while
   "Give details" is chosen */
.rg-options-inline { margin-top: 0; }
.rg-field[data-rg-none-details]:not(:has(input[value="details"]:checked)) .rg-details { display: none; }
.rg-field.has-error .rg-option span { border-color: var(--rg-danger); }
/* a required field "Continue" found unanswered (the script's mark) */
.rg-field.is-missing .rg-input, .rg-field.is-missing .rg-select, .rg-field.is-missing .rg-option span { border-color: var(--rg-danger); }
.rg-field.is-missing .rg-label { color: var(--rg-danger); }

/* a label with an info button, and the explanation it opens: a pop-up in the
   top layer (the popover attribute), centred over a dimmed page */
.rg-label-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rg-info {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--rg-teal-2); font-size: 16px; cursor: pointer; transition: color .15s;
}
.rg-info:hover { color: var(--rg-navy); }
.rg-info:focus-visible { outline: none; box-shadow: var(--rg-ring); }
.rg-pop {
  inset: 0; margin: auto; width: min(440px, calc(100vw - 32px)); padding: 26px; border: 1px solid var(--rg-line);
  border-radius: var(--rg-radius); background: #fff; color: var(--rg-ink-2); box-shadow: var(--rg-shadow-lg);
}
.rg-pop::backdrop { background: rgba(23, 26, 58, .4); }
.rg-pop h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--rg-ink); }
.rg-pop p { margin-top: 10px; font-size: 15px; line-height: 1.55; }
.rg-pop .rg-btn { margin-top: 20px; }
/* a browser without pop-ups: the explanation is a note under the label */
@supports not selector(:popover-open) {
  .rg-info, .rg-pop h3, .rg-pop .rg-btn { display: none; }
  .rg-pop { width: auto; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
  .rg-pop p { margin-top: 0; font-size: 13.5px; color: var(--rg-muted); }
}
/* a fieldset's questions, two to a line; a tick box or a long answer takes the line */
.rg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; align-items: start; }
.rg-form-grid > .rg-field { margin-top: 0; }
.rg-form-grid > .rg-field-wide { grid-column: 1 / -1; }
/* a field is its head (the label and its explanation) and its body (the
   input and its error). Two fields on a line share those two rows, so their
   inputs line up when one label takes two lines, error or not; the shorter
   label sits down against its input. A browser without subgrid stacks them
   as before. */
.rg-field-head, .rg-field-body { display: grid; gap: 6px; align-content: start; min-width: 0; }
@supports (grid-template-rows: subgrid) {
  .rg-form-grid > .rg-field:not(.rg-field-wide) { grid-row: span 2; grid-template-rows: subgrid; }
  .rg-form-grid > .rg-field:not(.rg-field-wide) > .rg-field-head { align-content: end; }
}

.rg-terms { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--rg-bg); }
.rg-terms h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.rg-terms-text { max-height: 160px; overflow: auto; margin-bottom: 12px; padding-right: 6px; color: var(--rg-ink-2); font-size: 14px; }
.rg-terms-text p + p { margin-top: 8px; }
/* the Settings editor's own headings, kept to the size of the text around them */
.rg-terms-text :is(h1, h2, h3, h4) { margin: 0 0 6px; font-size: 15px; font-weight: 800; line-height: 1.3; }
.rg-terms .rg-error { margin-top: 8px; }
.rg-terms.has-error { box-shadow: inset 0 0 0 1.5px rgba(198, 40, 57, .45); }

/* ------------------------------------------------------------- sign-up */

.rg-summary { padding: 24px; }
.rg-summary-label { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rg-pink); }
.rg-summary-title { margin-top: 10px; font-family: var(--rg-display); font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--rg-navy); }
.rg-times-list { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.rg-times-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.rg-times-list b {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--rg-teal-50); color: var(--rg-teal-2); font-size: 12.5px;
}
.rg-summary-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rg-line); display: flex; align-items: center; gap: 10px; color: var(--rg-muted); font-size: 14px; }
.rg-summary-foot i { color: var(--rg-teal-2); }

.rg-account { padding: 30px; }
.rg-progress { display: flex; gap: 8px; margin-bottom: 22px; }
.rg-progress span { flex: 1; height: 5px; border-radius: 999px; background: var(--rg-line); }
.rg-progress span.is-done { background: var(--rg-teal); }
.rg-progress span.is-current { background: var(--rg-navy); }
.rg-account h1 { font-family: var(--rg-display); font-size: 30px; font-weight: 700; letter-spacing: -.01em; color: var(--rg-navy); }
.rg-account-lead { margin-top: 8px; color: var(--rg-muted); font-size: 15.5px; }
.rg-account form { margin-top: 22px; }
.rg-email-line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px;
  padding: 12px 14px; border-radius: 12px; background: var(--rg-bg); font-weight: 600;
}
.rg-email-line form { margin: 0; }
.rg-field.rg-field-gap { margin-top: 20px; }
.rg-verified { color: var(--rg-teal-2); }
.rg-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; color: var(--rg-muted); font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rg-divider::before, .rg-divider::after { content: ""; flex: 1; height: 1px; background: var(--rg-line); }
.rg-login-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--rg-bg); }
.rg-login-box p { color: var(--rg-ink-2); font-weight: 600; }
.rg-resend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; color: var(--rg-muted); font-size: 14.5px; }
.rg-resend form { margin: 0; }

.rg-avatar {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--rg-pink-50); color: var(--rg-pink-2); font-weight: 800;
}
.rg-avatar-new { background: var(--rg-teal-50); color: var(--rg-teal-2); }

/* ------------------------------------------------------ instrument hire */

/* the hire page's band: the homepage's, shorter */
.rg-hero-sm .rg-hero-inner { padding: 52px 24px 60px; }
.rg-hero-sm h1 { font-size: clamp(34px, 4.4vw, 52px); }
.rg-listing-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--rg-ink); }

/* -------------------------------------------------- an application form */

.rg-page-title { margin-bottom: 22px; font-family: var(--rg-display); font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.02em; color: var(--rg-navy); }
.rg-layout-form { grid-template-columns: 380px minmax(0, 1fr); }
.rg-app-intro { position: sticky; top: 96px; overflow: hidden; }
.rg-app-media { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--rg-navy), var(--rg-navy-2)); }
.rg-app-media img { width: 100%; height: 100%; object-fit: cover; }
.rg-app-icon {
  display: grid; place-items: center; height: 168px; color: #fff; font-size: 56px;
  background: linear-gradient(135deg, var(--rg-navy-3), var(--rg-navy) 55%, var(--rg-pink-2) 140%);
}
.rg-app-intro-body { padding: 24px 26px 28px; }
.rg-app-intro-body h1 { margin-top: 10px; font-family: var(--rg-display); font-size: 30px; font-weight: 700; letter-spacing: -.01em; color: var(--rg-navy); }
.rg-app-points { display: grid; gap: 10px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rg-line); list-style: none; }
.rg-app-points li { display: flex; align-items: flex-start; gap: 10px; color: var(--rg-ink-2); font-size: 14.5px; font-weight: 600; }
.rg-app-points i { margin-top: 3px; color: var(--rg-teal-2); }
.rg-app-form { padding: 30px; }
.rg-app-form > .rg-flash { margin: 0 0 24px; }
.rg-form-section + .rg-form-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--rg-line); }
.rg-form-section > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }

/* a signed-in family: who the application is for - the student's fields only
   for "A new student" - and the account's details in place of the guardian's */
.rg-app-for { margin-bottom: 18px; }
.rg-app-for .rg-help { margin-top: 2px; }
.rg-form-section:has([data-rg-for-student]):not(:has(input[name="for_student"][value="new"]:checked)) [data-rg-student-fields] { display: none; }
.rg-form-section:not(:has(input[name="for_student"]:not([value="new"]):checked)) [data-rg-for-known] { display: none; }
.rg-app-payer { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: var(--rg-radius-sm); background: var(--rg-bg); }
.rg-app-payer > i { flex: none; margin-top: 2px; font-size: 24px; color: var(--rg-navy); }
.rg-app-payer > div { display: grid; gap: 2px; min-width: 0; }
.rg-app-payer strong { font-size: 16px; color: var(--rg-ink); }
.rg-app-payer span { font-size: 14.5px; color: var(--rg-ink-2); overflow-wrap: anywhere; }

/* ------------------------------------------------- basket and checkout */

.rg-basket-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  font-weight: 700; font-size: 15px; color: var(--rg-navy); text-decoration: none; transition: background .15s;
}
.rg-basket-link:hover, .rg-basket-link.is-active { background: var(--rg-bg); }
.rg-basket-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--rg-pink); color: #fff; font-size: 12.5px; font-weight: 800;
}
.rg-nav-link.is-active { background: var(--rg-bg); }

.rg-layout-basket, .rg-layout-checkout { grid-template-columns: minmax(0, 1fr) 360px; }
.rg-stack { display: grid; gap: 20px; min-width: 0; }
.rg-narrow { max-width: 620px; margin: 0 auto; }
.rg-refused-title { font-family: var(--rg-display); font-size: 26px; font-weight: 700; color: var(--rg-navy); }

.rg-items { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.rg-item { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.rg-items > .rg-panel.rg-item { padding: 20px 22px; }
.rg-item-icon {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px;
  background: #eceefa; color: var(--rg-navy); font-size: 18px;
}
.rg-item-icon-instrumentHire { background: var(--rg-teal-50); color: var(--rg-teal-2); }
.rg-item-icon-financialAid { background: var(--rg-pink-50); color: var(--rg-pink-2); }
.rg-item-text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.rg-item-type { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rg-pink); }
.rg-item-name { font-size: 17.5px; font-weight: 800; letter-spacing: -.01em; color: var(--rg-ink); overflow-wrap: anywhere; }
.rg-item-name span { font-weight: 600; color: var(--rg-ink-2); }
.rg-item-sub { display: flex; align-items: baseline; gap: 8px; color: var(--rg-muted); font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.rg-item-sub i { flex: none; width: 14px; text-align: center; font-size: 12.5px; color: var(--rg-teal-2); }
.rg-item-remove { flex: none; margin: 0; }
.rg-icon-btn {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 12px;
  border: 1px solid var(--rg-line-2); background: #fff; color: var(--rg-muted); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.rg-icon-btn:hover { color: var(--rg-danger); border-color: rgba(198, 40, 57, .4); background: var(--rg-danger-50); }
.rg-icon-btn:focus-visible { outline: none; box-shadow: var(--rg-ring); }

/* the sign-up's "in your basket" list: the same items, lighter */
.rg-items-compact { gap: 0; margin-top: 16px; }
.rg-items-compact > .rg-item { padding: 14px 0; border-top: 1px solid var(--rg-line); }
.rg-items-compact .rg-item-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
.rg-items-compact .rg-item-name { font-size: 16px; }

.rg-empty-lg { padding: 72px 24px; }
.rg-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }

.rg-order { position: sticky; top: 96px; padding: 24px; }
.rg-order > h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.rg-order-note { margin-top: 8px; color: var(--rg-muted); font-size: 14.5px; }
.rg-order > .rg-btn { margin-top: 20px; }
.rg-order-list { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.rg-order-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 11px 0;
  border-top: 1px solid var(--rg-line); font-weight: 700; font-size: 15px; overflow-wrap: anywhere;
}
.rg-order-list li span { flex: none; color: var(--rg-muted); font-size: 13px; font-weight: 600; }
.rg-order-list-lg li { font-size: 16px; }
.rg-order-more {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--rg-line); font-size: 14.5px;
}
.rg-order-more > span { color: var(--rg-muted); font-weight: 600; }
.rg-order-small { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; color: var(--rg-muted); font-size: 13.5px; }
.rg-order-small i { flex: none; color: var(--rg-teal-2); }

.rg-co-section { padding: 26px 28px 28px; }
/* a section with an error in it: its edge only - .has-error is one field's
   own mark and would paint every input in the section */
.rg-co-section.is-invalid { border-color: rgba(198, 40, 57, .4); }
.rg-co-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.rg-co-head > div { flex: 1; min-width: 0; }
.rg-co-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.rg-co-head .rg-num { margin-top: -2px; }
.rg-co-head .rg-avatar { margin-top: -8px; }
.rg-co-for { margin-top: 4px; color: var(--rg-muted); font-size: 14.5px; overflow-wrap: anywhere; }
.rg-co-copy { flex: none; margin-top: 2px; font-size: 14px; }
.rg-layout-checkout .rg-flash { margin: 0 0 20px; }
[data-rg-checkout] > .rg-flash { margin: 0 0 20px; }

/* one row per item: what it is, then who it is for */
.rg-items-assign { gap: 0; }
.rg-items-assign > .rg-item { padding: 16px 0; border-top: 1px solid var(--rg-line); }
.rg-items-assign > .rg-item:first-child { padding-top: 0; border-top: 0; }
.rg-item-assign {
  display: grid; grid-template-columns: 240px 40px; gap: 6px 10px; align-items: center; flex: none;
}
.rg-item-assign .rg-select { height: 44px; font-size: 15px; font-weight: 600; }
.rg-item-assign .rg-icon-btn { height: 44px; }
.rg-item-assign .rg-error { grid-column: 1 / -1; }
/* the panels that fold, as live's checkout has them: <details>, so they work
   without the script. Closed, a panel is its header; the header says where
   the panel stands */
.rg-fold > summary { list-style: none; cursor: pointer; margin-bottom: 0; border-radius: 12px; }
.rg-fold > summary::-webkit-details-marker { display: none; }
.rg-fold[open] > summary { margin-bottom: 20px; }
.rg-fold > summary:focus-visible { outline: none; box-shadow: var(--rg-ring); }
.rg-fold > summary:hover h2 { color: var(--rg-navy-2); }
.rg-fold-arrow { flex: none; align-self: center; color: var(--rg-muted); transition: transform .2s ease; }
.rg-fold[open] > summary .rg-fold-arrow { transform: rotate(180deg); }
.rg-fold-state {
  flex: none; align-self: center; padding: 4px 11px; border-radius: 999px;
  background: var(--rg-pink-50); color: var(--rg-pink-2); font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.rg-fold-state.is-done { background: var(--rg-teal-50); color: var(--rg-teal-2); }
.rg-fold-next { display: flex; justify-content: flex-end; margin-top: 18px; }
.rg-fold-next:empty { display: none; }
.rg-fold .rg-terms-text { max-height: 340px; }
/* where the form ends: what happens next, and the button that sends it */
.rg-co-finish { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 22px; padding-bottom: 22px; }
.rg-co-finish p { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 220px; color: var(--rg-ink-2); font-size: 14.5px; font-weight: 600; }
.rg-co-finish p i { flex: none; color: var(--rg-teal-2); }
.rg-co-copy-line { margin: 0 0 14px; }
.rg-co-add { margin-top: 18px; }
.rg-co-add-panel { margin-top: 16px; padding: 18px; border-radius: 16px; background: var(--rg-bg); }
.rg-co-add-panel h3 { margin-bottom: 12px; font-size: 16px; font-weight: 800; }
.rg-co-add-panel .rg-error { margin-top: 10px; }
.rg-co-add-actions { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.rg-co-section .rg-terms:first-of-type { margin-top: 0; }

/* ------------------------------------------------------------------ done */

.rg-done { max-width: 680px; margin: 0 auto; padding: 44px 40px; text-align: center; }
.rg-done-badge {
  position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto; border-radius: 50%;
  background: linear-gradient(135deg, var(--rg-teal), var(--rg-teal-2)); color: #fff; font-size: 40px;
  box-shadow: 0 16px 34px -14px rgba(19, 156, 144, .8); animation: rg-pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.rg-done-badge::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(34, 199, 184, .35);
  animation: rg-ring 1.6s ease-out .3s both;
}
.rg-done h1 { margin-top: 24px; font-family: var(--rg-display); font-size: clamp(30px, 4vw, 40px); font-weight: 700; color: var(--rg-navy); }
.rg-done-lead { margin-top: 12px; font-size: 17.5px; color: var(--rg-ink-2); }
.rg-done-lead strong { color: var(--rg-ink); }
.rg-done-card { margin-top: 26px; padding: 20px; border-radius: 18px; background: var(--rg-bg); text-align: left; }
.rg-done-card h2 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rg-muted); }
.rg-done-card .rg-times-list { margin-top: 12px; }
.rg-next { display: grid; gap: 12px; margin-top: 18px; text-align: left; }
.rg-next div { display: flex; gap: 12px; align-items: flex-start; color: var(--rg-ink-2); }
.rg-next i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--rg-pink-50); color: var(--rg-pink-2); }
.rg-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

@keyframes rg-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rg-ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* ------------------------------------------------------------- footer */

.rg-footer { margin-top: auto; border-top: 1px solid var(--rg-line); background: #fff; }
.rg-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; color: var(--rg-muted); font-size: 14px; }
.rg-footer a { color: var(--rg-ink-2); font-weight: 600; text-decoration: none; }
.rg-footer a:hover { color: var(--rg-navy); }

/* ------------------------------------------------ script-only behaviour */

/* with the script, only the chosen place's times show */
.rg-js [data-rg-times-for]:not(.is-active) { display: none; }
.rg-js [data-rg-times-venue] { display: none; }
.rg-js [data-rg-times-none]:not(.is-active) { display: none; }
.rg-js [data-rg-custom-row].is-hidden { display: none; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ narrow */

@media (max-width: 980px) {
  .rg-layout, .rg-layout-even, .rg-layout-form, .rg-layout-basket, .rg-layout-checkout { grid-template-columns: 1fr; }
  .rg-form-panel, .rg-app-intro, .rg-order { position: static; }
  /* the menu's words give way to its icons */
  .rg-nav-link span, .rg-basket-link > span:not(.rg-basket-count) { display: none; }
}
@media (max-width: 560px) {
  .rg-container { padding: 0 16px; }
  .rg-hero-inner { padding: 48px 16px 64px; }
  .rg-brand img { width: 110px; height: 46px; }
  .rg-slots, .rg-row, .rg-form-grid { grid-template-columns: 1fr; }
  .rg-item { flex-wrap: wrap; }
  .rg-item-assign { grid-template-columns: minmax(0, 1fr) 40px; width: 100%; }
  .rg-custom-row { grid-template-columns: 1fr 1fr; }
  .rg-custom-row .rg-select { grid-column: 1 / -1; }
  .rg-account, .rg-summary, .rg-form-panel { padding: 20px; }
  .rg-done { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
