/*
  Recruit site engine: styles (mockup, round 2).

  Everything here is scoped under `.rs`, the class kit.js puts on the element it draws into.
  The look is driven by CSS variables that kit.js sets on that element from the settings object,
  so two sites with different settings can sit on one page.

  Rules this file keeps:
  - No vw, vh or position: fixed. The site must work inside any box (a phone, a wide column,
    a thumbnail shrunk with transform: scale).
  - No backdrop-filter. "Glass" is a see-through color with a thin light edge.
  - Phone layout by default. `@container rs (min-width: 640px)` is the computer layout.
*/

/* ---------- Fonts (all files sit beside this one) ---------- */
@font-face { font-family: "Aspekta"; src: url("./AspektaVF.woff2") format("woff2"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "Anton"; src: url("./fonts/Anton.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Bebas Neue"; src: url("./fonts/BebasNeue.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Big Shoulders Display"; src: url("./fonts/BigShouldersDisplay.woff2") format("woff2"); font-weight: 400 900; font-display: block; }
@font-face { font-family: "Graduate"; src: url("./fonts/Graduate.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Alfa Slab One"; src: url("./fonts/AlfaSlabOne.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Archivo Black"; src: url("./fonts/ArchivoBlack.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Unbounded"; src: url("./fonts/Unbounded.woff2") format("woff2"); font-weight: 400 900; font-display: block; }
@font-face { font-family: "Bagel Fat One"; src: url("./fonts/BagelFatOne.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Bungee"; src: url("./fonts/Bungee.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Fraunces"; src: url("./fonts/Fraunces.woff2") format("woff2"); font-weight: 400 900; font-display: block; }
@font-face { font-family: "DM Serif Display"; src: url("./fonts/DMSerifDisplay.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Permanent Marker"; src: url("./fonts/PermanentMarker.woff2") format("woff2"); font-weight: 400; font-display: block; }

/* ---------- The box ---------- */
.rs {
  position: relative;
  overflow: hidden;
  container: rs / inline-size;
  isolation: isolate;
  background: var(--rs-ground);
  color: var(--rs-text);
  font-family: var(--rs-body-font), sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.rs *, .rs *::before, .rs *::after { box-sizing: border-box; }
/* :where() keeps these resets weak, so any class below can set its own color. */
:where(.rs) button { font: inherit; color: inherit; cursor: pointer; }
:where(.rs) img { max-width: none; }

/* The page scrolls inside this, so sheets can sit still on top of it. */
.rs-scroll { position: absolute; inset: 0; overflow: hidden auto; scrollbar-width: none; overscroll-behavior: contain; }
.rs-scroll::-webkit-scrollbar { display: none; }

/* A thumbnail: nothing clicks, nothing scrolls. */
.rs.rs-static, .rs.rs-static * { pointer-events: none; }
.rs.rs-static .rs-scroll { overflow: hidden; }

/* ---------- The ground photo: on top, fading into the ground color ---------- */
.rs-photo { position: absolute; top: 0; left: 0; right: 0; height: var(--rs-photo-h); overflow: hidden; pointer-events: none; }
.rs-photo img, .rs-photo video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--rs-photo-pos);
  transform: scale(var(--rs-photo-zoom, 1)); transform-origin: var(--rs-photo-pos); }
.rs-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      transparent 0%,
      color-mix(in srgb, var(--rs-ground) 18%, transparent) 30%,
      color-mix(in srgb, var(--rs-ground) 62%, transparent) 62%,
      color-mix(in srgb, var(--rs-ground) 92%, transparent) 86%,
      var(--rs-ground) 100%),
    rgba(0, 0, 0, var(--rs-dim));
}

/* ---------- The column ---------- */
.rs-col { position: relative; display: flex; flex-direction: column; min-height: 100%; max-width: 520px; margin: 0 auto; padding: 0 20px 24px; }

.rs-share {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--rs-text);
}
.rs-share::before { content: ""; position: absolute; inset: -4px; }           /* a 48px tap target */
.rs-has-photo .rs-share { background: rgba(0, 0, 0, .32); color: #fff; }
.rs-share svg { width: 20px; height: 20px; }

/* ---------- Header: picture, name, line, facts, icons ---------- */
.rs-head { padding-bottom: 22px; text-align: center; }
.rs-hero { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-top: 60px; }
.rs-has-photo .rs-hero { min-height: calc(var(--rs-photo-h) - 18px); }
/* "Under": the photo is a band across the top that melts into the solid ground; the name sits below it. */
.rs-photo-under .rs-hero { min-height: 0; padding-top: calc(var(--rs-photo-h) - 26px); }
.rs-photo-under .rs-name { text-shadow: none; }
.rs-photo-under .rs-photo {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .14) 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .14) 88%, transparent 100%);
}
.rs-photo-under .rs-photo::after { background: rgba(0, 0, 0, var(--rs-dim)); }
.rs-align-left .rs-head { text-align: left; }
.rs-align-left .rs-hero { align-items: flex-start; }

.rs-portrait { display: block; flex: none; object-fit: cover; margin-bottom: 18px; background: #D9D9DE; }
.rs-portrait.is-circle { border-radius: 50%; }
.rs-portrait.is-square { border-radius: 24%; }
.rs-portrait.is-small { width: 76px; height: 76px; }
.rs-portrait.is-medium { width: 108px; height: 108px; }
.rs-portrait.is-large { width: 148px; height: 148px; }
.rs-portrait.has-ring { outline: 3px solid var(--rs-accent); outline-offset: 3px; }

/* The cut-out stands on the name and melts into the ground at the bottom. */
.rs-portrait.is-cutout {
  height: auto; margin-bottom: -14px; background: none; object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.rs-portrait.is-cutout.is-small { width: 54%; }
.rs-portrait.is-cutout.is-medium { width: 72%; }
.rs-portrait.is-cutout.is-large { width: 92%; }

/* kit.js sets the font size so the name always fits the width. */
.rs-name {
  position: relative; z-index: 1; width: 100%; margin: 0;
  font-family: var(--rs-name-font), var(--rs-body-font), sans-serif;
  font-weight: var(--rs-name-weight); font-size: 40px;
  line-height: var(--rs-name-line); letter-spacing: var(--rs-name-track);
  color: var(--rs-name-color);
}
.rs-name.is-upper { text-transform: uppercase; }
.rs-name-row { display: block; }
.rs-name-word { display: inline-block; white-space: nowrap; }
.rs-name.can-wrap .rs-name-word { white-space: normal; }
.rs-has-photo .rs-name { text-shadow: 0 2px 22px rgba(0, 0, 0, .32); }

.rs-tagline { margin: 16px 0 0; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; text-wrap: balance; }
.rs-sentence { display: inline-block; max-width: 100%; }
.rs-facts { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--rs-sub); }
.rs-hero + .rs-facts { margin-top: 14px; }

.rs-icons { display: flex; justify-content: center; gap: 8px; margin: 14px -12px 0; }
.rs-align-left .rs-icons { justify-content: flex-start; margin-left: -5px; }
.rs-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 0; padding: 0; background: none; }
.rs-icon .rs-brand { font-size: 38px; }

/* A brand circle: filled in the network's color, white mark. Size it with font-size (1em = the circle). */
.rs-brand { display: inline-grid; place-items: center; flex: none; width: 1em; height: 1em; border-radius: 50%; color: #fff; }
.rs-brand svg { display: block; width: .46em; height: .46em; }
.rs-brand.is-x { background: #000; }
.rs-brand.is-x svg { width: .4em; height: .4em; }
.rs-brand.is-instagram { background: radial-gradient(circle at 30% 107%, #FDD86A 0%, #F58529 22%, #DD2A7B 55%, #8134AF 80%, #515BD4 100%); }
.rs-brand.is-hudl { background: #FF6300; }
.rs-brand.is-hudl svg { width: .6em; height: .6em; }
.rs-brand.is-youtube { background: #FF0000; }
.rs-brand.is-youtube svg { width: .52em; height: .52em; }
/* On a ground where one circle would melt in (black X on a dark page, YouTube on red), every circle gets a thin light ring. */
.rs-icons-ring .rs-icon .rs-brand { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .92); }

/* The Hudl mark: white on Hudl orange, in a circle, so it reads as Hudl at any size. */
.rs-hudl { display: inline-grid; place-items: center; flex: none; width: 1.45em; height: 1.45em; margin-right: .4em; border-radius: 50%; background: #FF6300; color: #fff; vertical-align: -.38em; }
.rs-hudl svg { width: 80%; height: 80%; fill: currentColor; stroke: none; }
.rs-row-detail .rs-hudl { margin-right: 6px; }

/* ---------- Blocks ---------- */
.rs-blocks { display: flex; flex-direction: column; gap: 12px; }
.rs-label { margin: 8px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--rs-sub); text-align: center; }
.rs-align-left .rs-label { text-align: left; }

/* Link rows: every one is drawn the same. Shape and style come from settings.buttons. */
.rs-row {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 58px; padding: 8px 22px;
  border: 0; border-radius: var(--rs-radius);
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em; text-align: left;
  transition: transform .15s ease;
}
.rs-row:active { transform: scale(.985); }
.rs-btn-filled .rs-row { background: var(--rs-btn); color: var(--rs-btn-text); }
.rs-btn-outline .rs-row { background: transparent; color: var(--rs-text); box-shadow: inset 0 0 0 1.5px var(--rs-btn); }
.rs-btn-glass .rs-row { background: var(--rs-card); color: var(--rs-card-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rs-card-text) 16%, transparent); }
.rs-row-detail { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; white-space: nowrap; opacity: .68; }
.rs-row-detail.is-crests { opacity: 1; }
.rs-row-detail svg { width: 14px; height: 14px; }
/* Centered labels (the classic link-in-bio button): the detail sits on the right, out of the way. */
.rs-rows-center .rs-row { justify-content: center; text-align: center; }
.rs-rows-center .rs-row { padding-left: 52px; padding-right: 52px; }
.rs-rows-center .rs-row-detail { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); }
.rs-rows-center .rs-row-detail.is-text,
.rs-rows-center .rs-row-detail.is-crests,
.rs-rows-center .rs-row-detail.is-mark > span:not(.rs-dotmark) { display: none; }

/* A real crest. On a dark ground it gets a thin white edge cut around the artwork so it still reads. */
.rs-crest { display: inline-block; width: 22px; height: 22px; object-fit: contain; vertical-align: -5px; }
.rs-edge {
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
}
.rs-school { white-space: nowrap; }
.rs-school b { font-weight: 700; }

.rs-dotmark { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: hsl(145 73% 40%); }

/* Film: a plain dark tile. It never shows a made-up frame of his film. */
.rs-film {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; overflow: hidden;
  border: 0; border-radius: var(--rs-tile-radius); background: #101013; color: #fff; text-align: left;
}
.rs-dark .rs-film, .rs-dark .rs-film-small { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.rs-film-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.9); }
/* His real film, looping muted: shown as it is, with a shade at the bottom so the title reads. */
.rs-film-photo.is-video { filter: none; }
.rs-film.has-video::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); pointer-events: none; }
.rs-film.has-video .rs-film-mark { display: none; }
.rs-film.has-video .rs-film-meta, .rs-film.has-video .rs-film-live { z-index: 1; }
.rs-film-mark { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); color: var(--rs-play); }
.rs-film-mark svg { display: block; width: 54px; height: 54px; fill: currentColor; }
.rs-film .rs-pause, .rs-film-small .rs-pause { display: none; }
.is-playing > .rs-film-mark .rs-play, .is-playing > .rs-play { display: none; }
.is-playing > .rs-film-mark .rs-pause, .is-playing > .rs-pause { display: block; }
.rs-film-meta { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.rs-film-meta b { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.rs-film-meta i { font-style: normal; font-size: 13px; opacity: .72; }
.rs-film-live { display: none; position: absolute; left: 18px; right: 18px; bottom: 16px; font-size: 13px; opacity: .85; }
.rs-film-bar { display: block; height: 3px; margin-bottom: 10px; border-radius: 2px; background: rgba(255, 255, 255, .24); overflow: hidden; }
.rs-film-bar i { display: block; width: 100%; height: 100%; background: var(--rs-play); transform-origin: left; transform: scaleX(0); }
.rs-film.is-playing .rs-film-meta { bottom: 52px; }
.rs-film.is-playing .rs-film-live { display: block; }
.is-playing .rs-film-bar i { animation: rs-film-run 24s linear forwards; }
@keyframes rs-film-run { to { transform: scaleX(1); } }

/* Film right on the page: his film, playing muted, under his name. */
.rs-filmtop { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 0; border-radius: var(--rs-tile-radius); background: #0B0B0D; color: #fff; cursor: pointer; }
.rs-filmtop video, .rs-filmtop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-filmtop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.rs-filmtop-cap { position: absolute; z-index: 1; left: 12px; bottom: 10px; display: flex; align-items: center; font-size: 13px; font-weight: 600; }
.rs-dark .rs-filmtop { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }

/* Timeline: a thin line with dots, newest on top. */
.rs-tl { list-style: none; margin: 0; padding: 0; text-align: left; }
.rs-tl-item { display: grid; grid-template-columns: 50px 16px 1fr; column-gap: 12px; align-items: center; min-height: 50px; }
.rs-tl-date { font-size: 12.5px; font-weight: 600; color: var(--rs-sub); text-align: right; white-space: nowrap; }
.rs-tl-rail { position: relative; align-self: stretch; }
.rs-tl-rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: color-mix(in srgb, var(--rs-text) 22%, transparent); }
.rs-tl-item:first-child .rs-tl-rail::before { top: 50%; }
.rs-tl-item:last-child .rs-tl-rail::before { bottom: 50%; }
.rs-tl-rail i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--rs-text); }
.rs-tl-item.is-next .rs-tl-rail i { background: var(--rs-ground, transparent); box-shadow: inset 0 0 0 2px var(--rs-text); }
.rs-tl-main { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--rs-text); }
.rs-tl-main .rs-crest { width: 24px; height: 24px; flex: none; }
.rs-tl-main b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.rs-tl-main small { display: block; font-size: 12px; color: var(--rs-sub); }
.rs-tl-all { display: block; margin: 4px 0 0 78px; padding: 6px 0; border: 0; background: none; color: var(--rs-text); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Contact, coaches only: masked until a college coach proves his school email. */
.rs-co { border-radius: var(--rs-tile-radius); background: var(--rs-card); color: var(--rs-card-text); overflow: hidden; text-align: left; }
.rs-co-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.rs-co-row + .rs-co-row { border-top: 1px solid color-mix(in srgb, var(--rs-card-text) 10%, transparent); }
.rs-co-k b { display: block; font-size: 14px; font-weight: 600; }
.rs-co-k small { display: block; font-size: 12px; opacity: .62; }
.rs-co-v { font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-co-v.is-masked { opacity: .5; letter-spacing: .04em; }
.rs-co-chip { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: color-mix(in srgb, var(--rs-card-text) 10%, transparent); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.rs-co-foot { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 12px 16px; border: 0; border-top: 1px solid color-mix(in srgb, var(--rs-card-text) 10%, transparent); background: none; color: inherit; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.rs-co-foot svg { width: 14px; height: 14px; flex: none; }
.rs-co-foot b { font-weight: 700; }
.rs-co-foot.is-open { cursor: default; font-weight: 600; }

/* My videos: tall cards in a sideways row. */
.rs-vids { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 0 2px; }
.rs-vids::-webkit-scrollbar { display: none; }
.rs-vid { position: relative; flex: none; width: 112px; aspect-ratio: 9 / 16; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: #0B0B0D; color: #fff; text-align: left; cursor: pointer; }
.rs-vid video, .rs-vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-vid::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.rs-vid-cap { position: absolute; z-index: 1; left: 9px; right: 9px; bottom: 8px; }
.rs-vid-cap b { display: block; font-size: 12px; font-weight: 600; line-height: 1.2; }
.rs-vid-cap i { display: block; font-style: normal; font-size: 11px; opacity: .75; }
.rs-vid.is-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--rs-card); color: var(--rs-card-text); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rs-card-text) 22%, transparent); text-align: center; }
.rs-vid.is-add::after { display: none; }
.rs-vid.is-add b { font-size: 12px; font-weight: 600; padding: 0 10px; }
.rs-vid-plus { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1; background: var(--rs-card-text); color: var(--rs-ground, #fff); }

/* From my X: a post he linked, drawn like an embedded post. */
.rs-xpost { border-radius: var(--rs-tile-radius); background: #fff; color: #0F1419; padding: 14px 16px; text-align: left; box-shadow: inset 0 0 0 1px rgba(15, 20, 25, .1); }
.rs-xpost + .rs-xpost { margin-top: 10px; }
.rs-xpost-top { display: flex; align-items: center; gap: 10px; }
.rs-xpost-face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.rs-xpost-top span { flex: 1; min-width: 0; }
.rs-xpost-top b { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; }
.rs-xpost-top i { display: block; font-style: normal; font-size: 12.5px; color: #536471; }
.rs-xlogo { width: 18px; height: 18px; flex: none; }
.rs-xpost-text { margin: 10px 0 0; font-size: 14px; line-height: 1.4; }
.rs-xpost-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 10px; border-radius: 12px; }
.rs-xpost-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12.5px; color: #536471; }
.rs-xpost-foot button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: #0F1419; cursor: pointer; }

.rs-film-more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.rs-film-small {
  position: relative; display: flex; align-items: flex-start; gap: 10px; min-height: 76px; padding: 14px 14px 16px; overflow: hidden;
  border: 0; border-radius: calc(var(--rs-tile-radius) * .7); background: #101013; color: #fff; text-align: left;
}
.rs-film-small > svg { flex: none; width: 14px; height: 14px; margin-top: 3px; fill: var(--rs-play); }
.rs-film-small b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.rs-film-small i { display: block; margin-top: 3px; font-style: normal; font-size: 12px; opacity: .7; }
.rs-film-small .rs-film-bar { display: none; position: absolute; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 0; }
.rs-film-small.is-playing .rs-film-bar { display: block; }

/* Offers as big crests, right on the page. */
.rs-crest-row { display: flex; justify-content: center; gap: 4px; }
.rs-crest-btn { flex: 1 1 0; max-width: 76px; height: 64px; display: grid; place-items: center; padding: 0; border: 0; background: none; }
.rs-crest-btn img { width: 46px; height: 46px; object-fit: contain; }

/* NIL: partners, shop. */
.rs-group { border-radius: var(--rs-tile-radius); background: var(--rs-card); color: var(--rs-card-text); overflow: hidden; }
.rs-group-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.rs-group-row + .rs-group-row { border-top: 1px solid color-mix(in srgb, var(--rs-card-text) 12%, transparent); }
.rs-group-row b { font-size: 16px; font-weight: 600; }
.rs-group-row span { font-size: 14px; opacity: .68; white-space: nowrap; }
/* Schools I'm talking to: crest, school, one grey word. */
.rs-sch-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 18px; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.rs-sch-row + .rs-sch-row { border-top: 1px solid color-mix(in srgb, var(--rs-card-text) 12%, transparent); }
.rs-sch-row .rs-crest { width: 28px; height: 28px; margin: 0; }
.rs-sch-row b { flex: 1; font-size: 16px; font-weight: 600; }
.rs-sch-row span { font-size: 14px; opacity: .62; white-space: nowrap; }

.rs-shop { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-shop-tile { display: block; padding: 0 0 14px; border: 0; border-radius: var(--rs-tile-radius); background: var(--rs-card); color: var(--rs-card-text); overflow: hidden; text-align: center; }
.rs-shop-art {
  display: grid; place-items: center; aspect-ratio: 1 / .82; margin-bottom: 12px;
  background: var(--rs-accent); color: var(--rs-accent-text);
  font-family: var(--rs-name-font), var(--rs-body-font), sans-serif; font-weight: var(--rs-name-weight);
  font-size: 34px; line-height: 1; letter-spacing: var(--rs-name-track); text-transform: uppercase; white-space: nowrap;
}
.rs-shop-name { display: block; font-size: 14.5px; font-weight: 600; }
.rs-shop-price { display: block; margin-top: 2px; font-size: 13px; opacity: .68; }

.rs-text { margin: 6px 4px; font-size: 16px; line-height: 1.45; text-align: center; }
.rs-align-left .rs-text { text-align: left; }

.rs-foot { display: flex; justify-content: center; gap: 4px; margin-top: auto; padding-top: 28px; }
.rs-foot button { min-height: 44px; padding: 0 10px; border: 0; background: none; font-size: 12.5px; color: var(--rs-sub); }

/* ---------- Sheets: open inside the box, over the page ---------- */
.rs-sheets { position: absolute; inset: 0; z-index: 20; pointer-events: none; visibility: hidden; transition: visibility 0s .34s; }
.rs-sheets.is-open { pointer-events: auto; visibility: visible; transition-delay: 0s; }
.rs-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .46); opacity: 0; transition: opacity .25s ease; }
.rs-sheets.is-open .rs-scrim { opacity: 1; }
.rs-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 90%;
  display: flex; flex-direction: column;
  border-radius: 26px 26px 0 0; background: var(--rs-sheet); color: var(--rs-sheet-text);
  transform: translateY(103%); transition: transform .34s cubic-bezier(.2, .8, .2, 1);
}
.rs-sheets.is-open .rs-sheet { transform: none; }
.rs-sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 20px 8px; }
.rs-sheet-title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.rs-close { position: relative; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--rs-sheet-fill); }
.rs-close::before { content: ""; position: absolute; inset: -7px; }
.rs-close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }
.rs-sheet-body { overflow: hidden auto; padding: 8px 20px 26px; scrollbar-width: none; }
.rs-sheet-body::-webkit-scrollbar { display: none; }

@container rs (min-width: 640px) {
  .rs-sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; width: 440px; max-height: 86%;
    border-radius: 26px; opacity: 0; transform: translate(-50%, -47%);
    transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
  }
  .rs-sheets.is-open .rs-sheet { opacity: 1; transform: translate(-50%, -50%); }
}

/* Things inside sheets */
.rs-lead { margin: 4px 0 18px; font-size: 17px; line-height: 1.45; }
.rs-quiet { margin: 14px 0 0; font-size: 13.5px; color: var(--rs-sheet-sub); }
.rs-sub { color: var(--rs-sheet-sub); }
.rs-h { margin: 22px 0 2px; font-size: 13.5px; font-weight: 600; color: var(--rs-sheet-sub); }
.rs-h:first-child { margin-top: 6px; }

.rs-li { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 0; border-bottom: 1px solid var(--rs-sheet-line); }
.rs-li:last-child, .rs-li:last-of-type { border-bottom: 0; }
.rs-li .rs-crest { flex: none; width: 30px; height: 30px; vertical-align: 0; }
.rs-li-main { flex: 1; min-width: 0; }
.rs-li-main b { display: block; font-size: 16px; font-weight: 600; }
.rs-li-main span { display: block; font-size: 13.5px; color: var(--rs-sheet-sub); }
.rs-li-side { flex: none; font-size: 13.5px; color: var(--rs-sheet-sub); white-space: nowrap; }

.rs-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rs-tile { padding: 16px 6px 12px; border: 1px solid var(--rs-sheet-line); border-radius: 14px; text-align: center; }
.rs-tile b { display: block; font-size: 25px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rs-tile span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--rs-sheet-sub); }

.rs-field-label { display: block; margin: 14px 0 6px; font-size: 13.5px; font-weight: 600; }
.rs-field {
  display: block; width: 100%; height: 50px; padding: 0 14px;
  border: 1px solid var(--rs-sheet-edge); border-radius: 12px; background: var(--rs-sheet-fill); color: inherit;
  font: inherit; font-size: 16px; outline: none;
}
.rs-field:focus { border-color: var(--rs-sheet-text); }
.rs-field::placeholder { color: var(--rs-sheet-sub); opacity: .8; }
textarea.rs-field { height: 84px; padding: 12px 14px; resize: none; line-height: 1.4; }
.rs-code { font-size: 22px; font-weight: 600; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.rs-error { min-height: 20px; margin: 6px 0 0; font-size: 13.5px; color: #D93025; }
.rs-dark .rs-error { color: #FF8A80; }
.rs-found { display: flex; align-items: center; gap: 8px; min-height: 30px; margin: 10px 0 0; font-size: 15px; opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; }
.rs-found.is-on { opacity: 1; transform: none; }
.rs-found .rs-crest { width: 24px; height: 24px; vertical-align: -6px; }

/* The one main action of a sheet step: the page's text color, filled. */
.rs-primary { display: block; width: 100%; height: 50px; margin-top: 16px; border: 0; border-radius: 12px; background: var(--rs-sheet-text); color: var(--rs-sheet); font-size: 15.5px; font-weight: 600; }
.rs-secondary { display: block; width: 100%; height: 50px; margin-top: 16px; border: 1px solid var(--rs-sheet-edge); border-radius: 12px; background: none; font-size: 15.5px; font-weight: 600; }
.rs-textlink { display: block; min-height: 44px; margin: 4px auto 0; padding: 0 8px; border: 0; background: none; font-size: 13.5px; color: var(--rs-sheet-sub); text-decoration: underline; text-underline-offset: 3px; }

.rs-open-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; font-size: 17px; }
.rs-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; margin-top: 8px; padding: 0 16px; border: 1px solid var(--rs-sheet-edge); border-radius: 12px; background: none; font-size: 15.5px; font-weight: 500; text-align: left; }
.rs-choice::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--rs-sheet-sub); }
.rs-choice.is-on { border-color: var(--rs-sheet-text); box-shadow: inset 0 0 0 1px var(--rs-sheet-text); }
.rs-choice.is-on::before { border: 5.5px solid var(--rs-sheet-text); }

/* After something is sent: left-aligned, a plain green check inline, one useful line. */
.rs-receipt { display: flex; align-items: center; gap: 10px; margin: 6px 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.rs-receipt svg { flex: none; width: 22px; height: 22px; fill: none; stroke: hsl(145 73% 40%); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Share */
.rs-qr { width: 190px; margin: 6px auto 16px; padding: 16px; border-radius: 18px; background: #fff; }
.rs-qr img { display: block; width: 100%; height: auto; }
.rs-address { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; text-align: center; }

/* Shop item, bigger */
.rs-shop-big { border-radius: 18px; overflow: hidden; }
.rs-shop-big .rs-shop-art { margin: 0; font-size: 72px; }

/* ---------- Toast and the autoplay dot ---------- */
.rs-toast {
  position: absolute; left: 50%; top: 18px; z-index: 30; padding: 11px 16px; border-radius: 12px;
  background: #111114; color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, -14px); transition: opacity .2s ease, transform .2s ease;
}
.rs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.rs-dark .rs-toast { background: #fff; color: #111114; }

.rs-dot {
  position: absolute; left: 50%; top: 60%; z-index: 40; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  background: rgba(255, 255, 255, .4); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .25);
  pointer-events: none; opacity: 0;
  transition: left .65s cubic-bezier(.3, .7, .2, 1), top .65s cubic-bezier(.3, .7, .2, 1), transform .14s ease, opacity .3s ease;
}
.rs-dot.is-on { opacity: 1; }
.rs-dot.is-tap { transform: scale(.68); }

@media (prefers-reduced-motion: reduce) {
  .rs *, .rs *::before, .rs *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
