/* Retina Academy Program — front end
   Night sky + gold, hall colours from the printed Program at a Glance. */

:where(.rap-root) {
  --ink: #141b3d;
  --ink-2: #333a5a;
  --ink-soft: #e8e9ef;
  --gold: #f2a51a;
  --gold-deep: #ae7613;
  --gold-soft: #fdf0d6;
  --paper: #faf7f1;
  --card: #ffffff;
  --line: #e8e2d4;
  --muted: #676b82;
  --live: #e5484d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 27, 61, .06), 0 6px 18px rgba(20, 27, 61, .07);
  --shadow-lg: 0 18px 50px rgba(10, 14, 40, .28);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "DM Sans", system-ui, sans-serif;
  --hero-img: none;
}
.rap-root .hc-x, .rap-root .hc-wide { --c: var(--ink); --c-soft: #eeeff4; --c-mid: #c9cbd8; --c-ink: var(--ink); }

/* Break out of narrow theme content columns so six halls fit side by side. */
.rap-root[data-rap-root] { width: min(1380px, calc(100vw - 32px)) !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; position: relative; left: 50%; transform: translateX(-50%); }
@media (max-width: 760px) { .rap-root[data-rap-root] { width: 100vw !important; } }
.rap-app.is-preview { width: auto; }

/* ---------- reset inside the app (themes style buttons, links and headings heavily) */
.rap-app { font-family: var(--font); color: var(--ink); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; text-align: left; }
.rap-app *, .rap-app *::before, .rap-app *::after { box-sizing: border-box; }
.rap-app button, .rap-app a { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; text-transform: none; letter-spacing: normal; text-decoration: none; box-shadow: none; cursor: pointer; line-height: inherit; min-height: 0; width: auto; border-radius: 0; text-shadow: none; }
.rap-app button:focus-visible, .rap-app a:focus-visible, .rap-app input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.rap-app h1, .rap-app h2, .rap-app h3, .rap-app h4, .rap-app rap-p, .rap-app ol, .rap-app ul { margin: 0; padding: 0; font-family: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.rap-app ol, .rap-app ul { list-style: none; }
.rap-app svg { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.rap-app input { font: inherit; color: var(--ink); }
.rap-loading, .rap-app .rap-empty { padding: 48px 20px; text-align: center; color: var(--muted); font-family: var(--font); }
.rap-app .rap-empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); margin: 8px 0; }

.rap-root .rap-app :where(rap-b, b, em, small, h2, h3, h4), .rap-root .rap-layer :where(rap-b, b, em, small, h2, h3, h4) { color: inherit; }

/* The plugin uses its own <rap-b> (bold) and <rap-p> (paragraph) tags so a theme's "strong { color … !important }"
   or "p { color … !important }" can't make text disappear on the dark header or breaks. */
rap-b { font-weight: 700; }
rap-p { display: block; }

/* ---------- hero */
.rap-app .rap-hero {
  position: relative; overflow: hidden; color: #fff; border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(8, 11, 38, .35) 0%, rgba(8, 11, 38, .15) 45%, rgba(20, 14, 30, .55) 100%), var(--hero-img) center 30% / cover no-repeat, #141b3d;
  padding: 18px clamp(16px, 4vw, 40px) 74px;
}
.rap-app .rap-hero.no-image { background: radial-gradient(120% 140% at 80% 120%, #e9771a 0%, #6b2c6e 38%, #141b3d 72%); }
.rap-app .rap-hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.rap-app .rap-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #ffe2a6; }
.rap-app .rap-brand svg { color: var(--gold); }
.rap-app .rap-pill-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-weight: 600; font-size: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s; white-space: nowrap; }
.rap-app .rap-pill-btn:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.rap-app .rap-pill-btn svg { color: var(--gold); }
.rap-app .rap-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.rap-app .rap-hero-text { text-align: center; padding-top: clamp(18px, 4vw, 40px); position: relative; z-index: 1; }
.rap-app .rap-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 6.2vw, 64px); line-height: 1.04; letter-spacing: -.02em; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.rap-app .rap-hero-sub { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; font-family: var(--display); font-weight: 600; font-size: clamp(15px, 2.2vw, 21px); color: var(--gold); letter-spacing: .01em; }
.rap-app .rap-hero-sub i { position: relative; width: clamp(28px, 9vw, 110px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rap-app .rap-hero-sub i:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.rap-app .rap-hero-sub i::after { content: ""; position: absolute; top: -4px; width: 8px; height: 8px; border: 1.5px solid var(--gold); transform: rotate(45deg); right: -2px; }
.rap-app .rap-hero-sub i:last-child::after { right: auto; left: -2px; }
.rap-app .rap-hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.rap-app .rap-hero-meta > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(10, 14, 40, .38); border: 1px solid rgba(255, 255, 255, .16); font-size: 13.5px; color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rap-app .rap-hero-meta svg { color: var(--gold); }
.rap-app .rap-count { background: rgba(242, 165, 26, .22) !important; border-color: rgba(242, 165, 26, .55) !important; color: #ffe6b3 !important; }
.rap-app .rap-count b { color: #fff; }
.rap-app .rap-count.is-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: rap-pulse 1.6s infinite; }

/* ---------- panel under the hero */
.rap-app .rap-panel { position: relative; margin-top: -44px; background: var(--paper); border-radius: 26px 26px 22px 22px; padding: 18px clamp(12px, 2.4vw, 26px) 26px; box-shadow: 0 -10px 30px rgba(10, 14, 40, .12); }

/* day tabs */
.rap-app .rap-days { display: flex; gap: 10px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.rap-app .rap-days::-webkit-scrollbar { display: none; }
.rap-app .rap-day { flex: 1 1 0; min-width: 190px; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-align: left; transition: transform .15s, box-shadow .15s, background .15s; }
.rap-app .rap-day:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.rap-app .rap-day-num { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; align-content: center; background: var(--gold-soft); color: var(--gold-deep); font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; }
.rap-app .rap-day-num small { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.rap-app .rap-day-txt { display: flex; flex-direction: column; min-width: 0; }
.rap-app .rap-day-txt b { font-family: var(--display); font-size: 16px; font-weight: 700; }
.rap-app .rap-day-txt span { font-size: 13px; color: var(--muted); }
.rap-app .rap-day.is-on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(20, 27, 61, .25); }
.rap-app .rap-day.is-on .rap-day-num { background: var(--gold); color: var(--ink); }
.rap-app .rap-day.is-on .rap-day-txt span { color: rgba(255, 255, 255, .72); }

/* tools */
.rap-app .rap-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.rap-app .rap-views { display: inline-flex; padding: 4px; background: var(--ink-soft); border-radius: 12px; gap: 2px; }
.rap-app .rap-views button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
.rap-app .rap-views button.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(20, 27, 61, .14); }
.rap-app .rap-views button.is-on svg { color: var(--gold-deep); }
.rap-app .rap-search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); margin: 0; }
.rap-app .rap-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 165, 26, .2); }
.rap-app .rap-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; height: 42px; padding: 0 !important; margin: 0; font-size: 15px; box-shadow: none !important; }
.rap-app .rap-tool-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 15px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.rap-app .rap-tool-btn:hover { border-color: var(--ink-2); }
.rap-app .rap-tool-btn.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.rap-app .rap-tool-btn b { background: var(--gold); color: var(--ink); border-radius: 99px; font-size: 11.5px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 5px; }
.rap-app .rap-tool-btn.is-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.rap-app .rap-tool-btn.is-gold:hover { background: #ffb935; }

/* filters */
.rap-app .rap-filters { display: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.rap-app .rap-filters.is-open { display: block; animation: rap-in .18s ease-out; }
.rap-app .rap-chips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.rap-app .rap-chips + .rap-chips { margin-top: 9px; }
.rap-app .rap-chips-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); width: 48px; }
.rap-app .rap-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 500; }
.rap-app .rap-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.rap-app .rap-chip.is-on { background: var(--c-soft); border-color: var(--c); color: var(--c-ink); font-weight: 600; }
.rap-app .rap-chip.is-type.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.rap-app .rap-linkbtn { color: var(--gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-top: 10px; display: inline-block; }
.rap-app .rap-empty .rap-linkbtn { margin: 0 2px; }

/* ---------- happening now */
.rap-app .rap-now { background: var(--ink); color: #fff; border-radius: 18px; padding: 14px; margin-bottom: 16px; background-image: radial-gradient(120% 160% at 100% 0%, rgba(242, 165, 26, .22), transparent 55%); }
.rap-app .rap-now-head { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 15px; margin: 2px 2px 10px; }
.rap-app .rap-now-head.is-soon { color: var(--gold); margin-top: 14px; font-size: 13.5px; }
.rap-app .rap-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); animation: rap-pulse 1.6s infinite; }
.rap-app .rap-now-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.rap-app .rap-now-card { flex: 0 0 min(300px, 84%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-left: 4px solid var(--c); text-align: left; color: #fff; transition: background .15s; }
.rap-app .rap-now-card:hover { background: rgba(255, 255, 255, .13); }
.rap-app .rap-now-top { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.rap-app .rap-now-top em { margin-left: auto; font-style: normal; color: var(--gold); font-weight: 600; }
.rap-app .rap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.rap-app .rap-now-card rap-b { font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 1.25; }
.rap-app .rap-now-talk { font-size: 13px; color: rgba(255, 255, 255, .85); }
.rap-app .rap-card .rap-now-talk { color: var(--ink-2); background: var(--gold-soft); padding: 5px 9px; border-radius: 8px; }
.rap-app .rap-now-talk b { color: var(--gold); }
.rap-app .rap-card .rap-now-talk b { color: var(--gold-deep); }
.rap-app .rap-now-break { display: flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; margin: 0 2px 10px; }

/* ---------- At a Glance grid */
.rap-app .rap-grid-wrap { overflow-x: auto; border-radius: 16px; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.rap-app .rap-grid { display: grid; grid-template-columns: 88px repeat(var(--halls), minmax(138px, 1fr)); gap: 4px; min-width: calc(88px + var(--halls) * 142px); }
.rap-app .rap-g-corner { display: grid; place-items: center; background: var(--ink); color: var(--gold); border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; position: sticky; left: 0; z-index: 3; }
.rap-app .rap-g-group { background: var(--ink); color: #fff; text-align: center; padding: 8px; border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.rap-app .rap-g-hall { background: var(--c); color: #fff; border-radius: 12px; padding: 11px 8px 10px; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 2px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.rap-app .rap-g-hall b { font-family: var(--display); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.2; }
.rap-app .rap-g-hall small { font-size: 11px; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.rap-app .rap-g-time { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4px 8px; background: #efeadf; border-radius: 9px; font-variant-numeric: tabular-nums; position: sticky; left: 0; z-index: 2; box-shadow: 4px 0 0 var(--paper); }
.rap-app .rap-g-time.is-alt { background: #f3efe6; }
.rap-app .rap-g-time b { font-size: 14.5px; font-weight: 700; line-height: 1.1; }
.rap-app .rap-g-time small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.rap-app .rap-g-time.is-now { background: var(--gold); }
.rap-app .rap-g-time.is-now small { color: var(--ink); }
.rap-app .rap-g-empty { border-radius: 9px; background: var(--c-soft); border: 1px solid color-mix(in srgb, var(--c) 14%, transparent); }
.rap-app .rap-g-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  padding: 10px 9px 11px; border-radius: 11px; background: #fff; border: 1px solid var(--c-mid); border-top: 4px solid var(--c);
  background-image: linear-gradient(180deg, var(--c-soft), #fff 80%); min-width: 0; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s;
}
.rap-app button.rap-g-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20, 27, 61, .14); z-index: 1; }
.rap-app .rap-g-when { font-size: 11.5px; font-weight: 700; color: var(--c-ink); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.rap-app .rap-g-card rap-b { font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 1.22; color: var(--ink); overflow-wrap: anywhere; hyphens: auto; }
.rap-app .rap-g-card.is-wide rap-b { font-size: 16px; }
.rap-app .rap-g-card.is-short { padding: 5px 8px; gap: 1px; }
.rap-app .rap-g-card.is-short rap-b { font-size: 12.5px; }
.rap-app .rap-g-card.is-short .rap-g-when { font-size: 10.5px; }
.rap-app .rap-g-note { font-size: 11px; color: var(--muted); }
.rap-app .rap-type { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c-ink); background: rgba(255, 255, 255, .8); border: 1px solid var(--c-mid); padding: 2px 8px; border-radius: 99px; line-height: 1.5; white-space: nowrap; }
.rap-app .rap-type.is-light { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
.rap-app .rap-g-saved { position: absolute; top: 5px; right: 5px; color: var(--gold-deep); }
.rap-app .rap-g-saved svg { width: 15px; height: 15px; }
.rap-app .rap-g-card.is-saved { box-shadow: 0 0 0 2px var(--gold) inset; }
.rap-app .rap-g-card.is-dim, .rap-app .rap-g-card.is-past { opacity: .55; }
.rap-app .rap-g-card.is-live { box-shadow: 0 0 0 2px var(--live), 0 8px 22px rgba(229, 72, 77, .22); }
.rap-app .rap-g-card.is-static { cursor: default; }
.rap-app .rap-live { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--live); padding: 1px 7px; border-radius: 99px; line-height: 1.6; }
.rap-app .rap-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: rap-blink 1.4s infinite; }
.rap-app .rap-hint { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; }


/* ---------- phone At a Glance: hall tabs, halls stacked, no time column (only shown at phone width) */
.rap-app .rap-mob { display: none; }
.rap-app .rap-htabs { position: sticky; top: 0; z-index: 4; display: flex; gap: 6px; padding: 6px; margin: 0 -2px 12px; background: var(--ink); border-radius: 16px; box-shadow: 0 8px 20px rgba(20, 27, 61, .18); }
.rap-app .rap-htab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 7px; border-radius: 11px; color: rgba(255, 255, 255, .78); transition: background .15s, color .15s; }
.rap-app .rap-htab b { font-family: var(--display); font-size: 14px; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rap-app .rap-htab.is-on { background: #fff; color: var(--ink); }
.rap-app .rap-mob .rap-grid-wrap { overflow: visible; border-radius: 0; padding: 0; }
.rap-app .rap-grid.is-compact { grid-template-columns: repeat(var(--halls), minmax(0, 1fr)); min-width: 0; gap: 4px; }
.rap-app .rap-grid.is-compact .rap-g-hall { padding: 9px 4px 8px; border-radius: 10px; }
.rap-app .rap-grid.is-compact .rap-g-hall b { font-size: 11px; letter-spacing: .02em; }
.rap-app .rap-grid.is-compact .rap-g-hall small { font-size: 9.5px; }
.rap-app .rap-grid.is-compact .rap-g-card { padding: 8px 5px 9px; gap: 3px; border-radius: 9px; border-top-width: 3px; }
.rap-app .rap-grid.is-compact .rap-g-when { font-size: 10px; gap: 3px; line-height: 1.25; }
.rap-app .rap-grid.is-compact .rap-g-card rap-b { font-size: 12px; line-height: 1.2; hyphens: auto; }
.rap-app .rap-grid.is-compact .rap-g-card.is-wide rap-b { font-size: 14px; }
.rap-app .rap-grid.is-compact .rap-type { font-size: 8.5px; padding: 1px 5px; letter-spacing: .05em; }
.rap-app .rap-grid.is-compact .rap-g-saved { top: 3px; right: 3px; }
.rap-app .rap-grid.is-compact .rap-g-saved svg { width: 12px; height: 12px; }
.rap-app .rap-grid.is-compact .rap-live { font-size: 8.5px; padding: 0 5px; }
.rap-app .rap-grid.is-compact .rap-g-empty { border-radius: 9px; }


.rap-app .rap-dl-bottom { display: none; }
/* ---------- simplified phone view (.is-phone is only set at phone width with "Hall tabs on phones" on) */
.rap-app .rap-day-full { display: none; }
.rap-app.is-phone .rap-panel { padding: 18px 14px 26px; }
.rap-app.is-phone .rap-days { gap: 10px; margin: 0 0 16px; padding: 2px 2px 6px; overflow: visible; }
.rap-app.is-phone .rap-day { flex: 1 1 0; min-width: 0; padding: 13px 14px 12px; border: 0; border-radius: 16px; background: rgba(20, 27, 61, .045); box-shadow: none; transform: none; transition: transform .2s, box-shadow .2s, background .2s; }
.rap-app.is-phone .rap-day-num, .rap-app.is-phone .rap-day-sub { display: none; }
.rap-app.is-phone .rap-day-txt b { font-size: 16px; color: var(--ink); }
.rap-app.is-phone .rap-day-full { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.rap-app.is-phone .rap-day.is-on { background: linear-gradient(180deg, #252e60 0%, var(--ink) 100%); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -2px 0 rgba(0, 0, 0, .28), 0 6px 12px -3px rgba(20, 27, 61, .35), 0 16px 26px -12px rgba(20, 27, 61, .5); }
.rap-app.is-phone .rap-day.is-on .rap-day-txt b { color: var(--gold); }
.rap-app.is-phone .rap-day.is-on .rap-day-full { color: rgba(255, 255, 255, .82); }
.rap-app.is-phone .rap-tools { margin-bottom: 16px; }
.rap-app.is-phone .rap-search { height: 48px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(20, 27, 61, .06), 0 4px 14px rgba(20, 27, 61, .06); }
.rap-app.is-phone .rap-search:focus-within { box-shadow: 0 0 0 2px var(--gold), 0 4px 14px rgba(20, 27, 61, .08); }

.rap-app.is-phone .rap-htabs { gap: 4px; padding: 5px; margin: 0 0 14px; background: #ece7dd; border-radius: 15px; box-shadow: inset 0 1px 2px rgba(20, 27, 61, .07); }
.rap-app.is-phone .rap-htab { display: block; padding: 11px 4px; border-radius: 11px; font-family: var(--display); font-size: 14.5px; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rap-app.is-phone .rap-htab.is-on { background: #fff; color: var(--ink); font-weight: 700; transform: translateY(-1px);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(20, 27, 61, .1), 0 8px 16px -6px rgba(20, 27, 61, .3); }

.rap-app.is-phone .rap-grid.is-compact { gap: 6px; }
.rap-app.is-phone .rap-grid.is-compact .rap-g-hall { box-shadow: none; border-radius: 12px; padding: 10px 4px 9px; }
.rap-app.is-phone .rap-grid.is-compact .rap-g-card { background: #fff; border: 0; border-top: 3px solid var(--c); box-shadow: 0 1px 2px rgba(20, 27, 61, .06), 0 3px 10px rgba(20, 27, 61, .05); padding: 9px 6px 10px; gap: 4px; }
.rap-app.is-phone .rap-grid.is-compact .rap-g-card.is-saved { box-shadow: 0 0 0 2px var(--gold) inset, 0 3px 10px rgba(20, 27, 61, .05); }
.rap-app.is-phone .rap-grid.is-compact .rap-g-card.is-live { box-shadow: 0 0 0 2px var(--live), 0 6px 16px rgba(229, 72, 77, .2); }
.rap-app.is-phone .rap-grid.is-compact .rap-g-empty { border: 0; background: var(--c-soft); opacity: .75; }
.rap-app.is-phone .rap-grid.is-compact .rap-type { border: 0; background: var(--c-soft); }


.rap-app.is-phone .rap-hint { margin-top: 18px; font-size: 13px; }
.rap-app.is-phone .rap-dl-bottom { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; margin-top: 16px; border-radius: 15px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 8px 18px -8px rgba(174, 118, 19, .6); }
.rap-app.is-phone .rap-dl-bottom:active { transform: translateY(1px); }


/* ---------- registration, breaks and other non-session activities: a quiet, readable strip (all screens) */
.rap-app .rap-g-break { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding: 6px 14px; border-radius: 12px; background: linear-gradient(90deg, #faf1df 0%, #fdf8ee 50%, #faf1df 100%); border: 1px solid #efdfbd; color: var(--ink); cursor: default; text-align: left; transition: opacity .2s; }
.rap-app button.rap-g-break { cursor: pointer; }
.rap-app .rap-g-break-icon { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--gold-deep); box-shadow: 0 1px 3px rgba(174, 118, 19, .18); }
.rap-app .rap-g-break-icon svg { width: 16px; height: 16px; }
.rap-root .rap-app .rap-g-break rap-b { font-family: var(--display); font-size: 14.5px; font-weight: 600; line-height: 1.25; color: var(--ink); letter-spacing: 0; text-transform: none; }
.rap-root .rap-app .rap-g-break em { flex-shrink: 0; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--gold-deep); background: #fff; padding: 3px 10px; border-radius: 99px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rap-app .rap-g-break .rap-g-note { color: var(--muted); }
.rap-app .rap-g-break.is-registration { background: linear-gradient(90deg, #eceef5 0%, #f6f7fb 50%, #eceef5 100%); border-color: #dfe2ec; }
.rap-app .rap-g-break.is-registration .rap-g-break-icon { color: var(--ink-2); box-shadow: 0 1px 3px rgba(20, 27, 61, .12); }
.rap-root .rap-app .rap-g-break.is-registration em { color: var(--ink-2); }
.rap-app .rap-g-break.is-dim { opacity: .3; }
.rap-app .rap-grid.is-compact .rap-g-break { gap: 9px; padding: 6px 10px; border-radius: 12px; }
.rap-app .rap-grid.is-compact .rap-g-break-icon { width: 26px; height: 26px; }
.rap-app .rap-grid.is-compact .rap-g-break-icon svg { width: 14px; height: 14px; }
.rap-root .rap-app .rap-grid.is-compact .rap-g-break rap-b { font-size: 13px; }
.rap-root .rap-app .rap-grid.is-compact .rap-g-break em { font-size: 11.5px; padding: 2px 8px; margin-left: auto; }
/* sessions list */
.rap-app .rap-card-break { align-items: center; gap: 10px; padding: 11px 14px; background: linear-gradient(90deg, #faf1df, #fdf8ee); border-color: #efdfbd; box-shadow: none; color: var(--ink); }
.rap-app .rap-card-break::before { display: none; }
.rap-app .rap-card-break svg { color: var(--gold-deep); }
.rap-root .rap-app .rap-card-break rap-b { font-family: var(--display); font-weight: 600; color: var(--ink); }
.rap-root .rap-app .rap-card-break span { margin-left: auto; color: var(--gold-deep); font-size: 13px; font-weight: 700; }

/* ---------- Sessions list */
.rap-app .rap-list { display: flex; flex-direction: column; gap: 18px; }
.rap-app .rap-slot { display: grid; grid-template-columns: 86px 1fr; gap: 14px; }
.rap-app .rap-slot-time { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--muted); position: sticky; top: 12px; align-self: start; padding-top: 12px; }
.rap-app .rap-slot-time b { display: block; font-size: 22px; color: var(--ink); font-weight: 800; line-height: 1; }
.rap-app .rap-slot-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.rap-app .rap-card { position: relative; display: flex; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rap-app .rap-card::before { content: ""; width: 5px; flex-shrink: 0; background: var(--c); }
.rap-app .rap-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 13px 8px 13px 14px; text-align: left; }
.rap-app .rap-card-main:hover h3 { color: var(--c-ink); }
.rap-app .rap-card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rap-app .rap-hall-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--c-ink); }
.rap-app .rap-hall-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.rap-app .rap-card h3 { font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.28; transition: color .15s; }
.rap-app .rap-card-when { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rap-app .rap-card-who { font-size: 13.5px; color: var(--ink-2); }
.rap-app .rap-card-count { font-size: 12px; font-weight: 600; color: var(--muted); }
.rap-app .rap-card-actions { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 10px 0; }
.rap-app .rap-icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); transition: background .15s, color .15s; }
.rap-app .rap-icon-btn:hover { background: var(--ink-soft); color: var(--ink); }
.rap-app .rap-icon-btn.is-on { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.rap-app .rap-card.is-saved { border-color: var(--gold); }
.rap-app .rap-card.is-live { border-color: var(--live); }
.rap-app .rap-card.has-clash { border-color: #f0a35b; }
.rap-app .rap-clash { font-size: 12.5px; font-weight: 600; color: #a5520b; background: #fff1e2; padding: 4px 9px; border-radius: 8px; }

/* ---------- Faculty */
.rap-app .rap-fac-intro { font-size: 14px; color: var(--muted); margin: 2px 2px 10px; }
.rap-app .rap-fac-intro b { color: var(--ink); }
.rap-app .rap-az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 6px 0; }
.rap-app .rap-az a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.rap-app .rap-az a:hover { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.rap-app .rap-fac { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; align-items: start; }
.rap-app .rap-fac-letter { grid-column: 1 / -1; font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--gold-deep); margin: 10px 2px 0; scroll-margin-top: 54px; }
.rap-app .rap-person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rap-app .rap-person.is-open { grid-column: 1 / -1; border-color: var(--ink); box-shadow: var(--shadow); }
.rap-app .rap-person-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; text-align: left; }
.rap-app .rap-person-head > svg { margin-left: auto; color: var(--muted); transition: transform .2s; }
.rap-app .rap-person.is-open .rap-person-head > svg { transform: rotate(90deg); }
.rap-app .rap-person-name { display: flex; flex-direction: column; min-width: 0; }
.rap-app .rap-person-name b { font-weight: 700; font-size: 15px; }
.rap-app .rap-person-name small { font-size: 12.5px; color: var(--muted); }
.rap-app .rap-av { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: inline-grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; background: hsl(var(--h) 60% 92%); color: hsl(var(--h) 45% 30%); }
.rap-app .rap-av.is-sm { width: 30px; height: 30px; font-size: 11.5px; }
.rap-app .rap-person-list { border-top: 1px solid var(--line); padding: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 6px; }
.rap-app .rap-person-list button { width: 100%; display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; text-align: left; background: var(--c-soft); border-left: 4px solid var(--c); }
.rap-app .rap-person-list button:hover { filter: brightness(.97); }
.rap-app .rap-pl-when { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); min-width: 76px; }
.rap-app .rap-pl-when b { font-size: 14px; color: var(--ink); }
.rap-app .rap-pl-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rap-app .rap-pl-what rap-b { font-weight: 600; font-size: 14px; line-height: 1.3; }
.rap-app .rap-pl-what small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--c-ink); }
.rap-app .rap-pl-what small i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.rap-app .rap-role { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--c-ink); }

/* ---------- session window (drawer on computers, bottom sheet on phones) */
html.rap-lock, html.rap-lock body { overflow: hidden !important; }
.rap-layer .rap-overlay { position: fixed; inset: 0; z-index: 2147483000; background: rgba(8, 11, 30, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; justify-content: flex-end; }
.rap-layer.is-opening .rap-overlay { animation: rap-fade .2s ease-out; }
.rap-layer .rap-sheet { width: min(560px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overflow: hidden; }
.rap-layer.is-opening .rap-sheet { animation: rap-slide .28s cubic-bezier(.2, .8, .2, 1); }

/* header: the hall's own picture (or the main header), hall, title, date | time */
.rap-layer .rap-sheet-head { position: relative; flex-shrink: 0; padding: 26px 24px 44px; color: #fff;
  background: linear-gradient(180deg, rgba(10, 12, 32, .35) 0%, rgba(10, 12, 32, .12) 45%, rgba(10, 12, 32, .4) 100%), var(--c);
  background-image: linear-gradient(180deg, rgba(10, 12, 32, .35) 0%, rgba(10, 12, 32, .12) 45%, rgba(10, 12, 32, .42) 100%), linear-gradient(140deg, rgba(255, 255, 255, .16), transparent 55%); }
.rap-layer .rap-sheet-head.has-img { background-color: #1c1a33; background-image: linear-gradient(180deg, rgba(10, 12, 32, .42) 0%, rgba(10, 12, 32, .14) 50%, rgba(10, 12, 32, .38) 100%), var(--head-img); background-size: cover; background-position: center 35%; }
.rap-layer .rap-sheet.hc-wide .rap-sheet-head:not(.has-img), .rap-layer .rap-sheet.hc-x .rap-sheet-head:not(.has-img) { background-color: var(--ink); }
.rap-layer .rap-x { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rap-layer .rap-x:hover { background: rgba(255, 255, 255, .34); }
.rap-layer .rap-sheet-hall { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .95); padding-right: 56px; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.rap-layer .rap-sheet-hall svg { width: 17px; height: 17px; }
.rap-layer .rap-sheet-head h2 { font-family: var(--display); font-size: clamp(22px, 3.4vw, 28px); font-weight: 700; line-height: 1.22; margin: 12px 0 14px; color: #fff; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.rap-layer .rap-sheet-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: #fff; }
.rap-layer .rap-sheet-when > span { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.rap-layer .rap-sheet-when svg { width: 17px; height: 17px; }
.rap-layer .rap-vsep { width: 1px; height: 18px; background: rgba(255, 255, 255, .55); }
.rap-layer .rap-sheet-when > .rap-live { padding: 1px 8px; font-size: 10.5px; text-shadow: none; }

/* white card over the picture */
.rap-layer .rap-sheet-body { position: relative; flex: 1; margin-top: -24px; padding: 22px 24px 36px; background: #fff; border-radius: 24px 24px 0 0; overflow-y: auto; overscroll-behavior: contain; color: var(--ink); }
.rap-layer .rap-sheet-actions { display: flex; gap: 12px; margin-bottom: 6px; }
.rap-app .rap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 14px; font-weight: 600; font-size: 15.5px; transition: background .15s, transform .1s, border-color .15s; }
.rap-app .rap-btn:active { transform: scale(.98); }
.rap-app .rap-btn-save { background: var(--ink); color: #fff; }
.rap-layer .rap-sheet-actions .rap-btn-save { flex: 1 1 auto; white-space: nowrap; }
.rap-app .rap-btn-save:hover { background: var(--ink-2); color: #fff; }
.rap-app .rap-btn-save.is-on { background: var(--gold); color: var(--ink); }
.rap-app .rap-btn-icon { flex: 0 0 50px; width: 50px; padding: 0; background: #fff; border: 1px solid #e4e1ea; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 27, 61, .05); }
.rap-app .rap-btn-icon:hover { border-color: var(--ink-2); }
.rap-app .rap-btn-ghost { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.rap-app .rap-btn-ghost:hover { background: var(--ink-soft); }
.rap-app .rap-btn-block { width: 100%; }
.rap-app .rap-btn[disabled] { opacity: .6; cursor: wait; }

.rap-layer .rap-sec { padding: 20px 0; border-bottom: 1px solid #efedf2; }
.rap-layer .rap-sec:last-child { border-bottom: 0; }
.rap-layer .rap-sec-icon { color: var(--c); display: inline-grid; place-items: center; width: 28px; }
.rap-layer .rap-sec-icon svg { width: 22px; height: 22px; }
.rap-layer .rap-sheet.hc-wide .rap-sec-icon { color: var(--gold-deep); }

/* people */
.rap-layer .rap-people { display: flex; flex-direction: column; gap: 16px; }
.rap-layer .rap-people-group { display: block; }
.rap-layer .rap-people-role { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin: 0 0 10px; }
.rap-layer .rap-sheet.hc-wide .rap-people-role { color: var(--gold-deep); }
.rap-layer .rap-people-group > div { overflow: hidden; }
/* a thin divider sits before each name; the one at the start of every line is pushed out of view, so dividers only appear between names */
.rap-layer .rap-people-names { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; line-height: 1.3; margin-left: -20px; }
.rap-layer .rap-person-name { position: relative; display: inline-flex; align-items: center; margin-left: 20px; padding: 8px 16px; border-radius: 14px; background: var(--c-soft); font-weight: 700; font-size: 15px; color: var(--ink); }
.rap-layer .rap-person-name::before { content: ""; position: absolute; left: -11px; top: 50%; width: 1.5px; height: 18px; margin-top: -9px; border-radius: 2px; background: var(--c-mid); }
.rap-layer .rap-sheet.hc-wide .rap-person-name { background: var(--gold-soft); }
.rap-layer .rap-sep { font-style: normal; margin: 0 10px; color: #9a9db0; font-weight: 400; }
.rap-layer button.rap-person-name:hover { background: var(--c-mid); }

/* program timeline */
.rap-layer .rap-sec-head { display: grid; grid-template-columns: 28px 1fr auto; gap: 0 14px; align-items: center; margin-bottom: 12px; }
.rap-layer .rap-sec-head h4 { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); }
.rap-layer .rap-sec-head > span:last-child { font-size: 14px; font-weight: 600; color: #6f7591; }
.rap-layer .rap-timeline { display: flex; flex-direction: column; }
.rap-layer .rap-timeline li { position: relative; display: grid; grid-template-columns: 54px 18px 1fr; gap: 0 12px; align-items: start; }
.rap-layer .rap-tl-time { margin-top: 12px; justify-self: start; min-width: 52px; padding: 4px 0; text-align: center; border-radius: 8px; background: var(--c-soft); color: var(--c-ink); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.rap-layer .rap-sheet.hc-wide .rap-tl-time { color: var(--ink); }
.rap-layer .rap-tl-dot { position: relative; align-self: stretch; }
.rap-layer .rap-tl-dot::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #ece9ef; }
.rap-layer .rap-timeline li:first-child .rap-tl-dot::before { top: 22px; }
.rap-layer .rap-timeline li:last-child .rap-tl-dot::before { bottom: auto; height: 22px; }
.rap-layer .rap-timeline li:only-child .rap-tl-dot::before { display: none; }
.rap-layer .rap-tl-dot::after { content: ""; position: absolute; left: 50%; top: 17px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff; }
.rap-layer .rap-tl-body { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; padding: 12px 0 14px; border-bottom: 1px solid #efedf2; }
.rap-layer .rap-timeline li:last-child .rap-tl-body { border-bottom: 0; }
.rap-layer .rap-tl-body rap-b { font-weight: 400; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.rap-layer .rap-tl-people { display: flex; flex-wrap: wrap; align-items: baseline; }
.rap-layer .rap-tl-person { font-weight: 700; font-size: 15px; color: var(--ink); }
.rap-layer .rap-tl-people .rap-sep { margin: 0 6px; color: var(--ink); font-weight: 700; }
.rap-layer button.rap-tl-person:hover { text-decoration: underline; }
.rap-layer .rap-timeline li.is-now .rap-tl-time { background: var(--live); color: #fff; }
.rap-layer .rap-timeline li.is-now .rap-tl-dot::after { background: var(--live); box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(229, 72, 77, .2); }
.rap-layer .rap-timeline li.is-done { opacity: .5; }

/* next in this hall */
.rap-layer .rap-next { margin-top: 18px; padding: 16px 18px 12px; border-radius: 18px; background: linear-gradient(135deg, var(--c-soft) 0%, #fff 100%); }
.rap-layer .rap-next h4 { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.rap-layer .rap-next-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 6px 0; text-align: left; color: var(--ink); }
.rap-layer .rap-next-item > i { width: 4px; align-self: stretch; border-radius: 4px; background: var(--c); }
.rap-layer .rap-next-item span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rap-layer .rap-next-item rap-b { font-weight: 700; font-size: 15.5px; line-height: 1.3; color: var(--ink); }
.rap-layer .rap-next-item small { font-size: 13.5px; color: #6f7591; }
.rap-layer .rap-next-item > svg { color: var(--ink); width: 18px; height: 18px; }
.rap-layer .rap-next-item:hover rap-b { text-decoration: underline; }
.rap-app .rap-muted { color: var(--muted); }

/* identify dialog + agenda lookup */
.rap-layer .rap-dialog { position: relative; margin: auto; width: min(430px, calc(100% - 28px)); background: var(--card); border-radius: 22px; padding: 30px 26px 22px; box-shadow: var(--shadow-lg); animation: rap-in .22s ease-out; align-self: center; }
.rap-layer .rap-dialog .rap-x { background: var(--paper); color: var(--ink); }
.rap-app .rap-dialog-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); margin-bottom: 14px; }
.rap-app .rap-dialog h2, .rap-app .rap-lookup h2 { font-family: var(--display); font-weight: 800; font-size: 22px; margin-bottom: 6px; }
.rap-app .rap-dialog rap-p, .rap-app .rap-lookup rap-p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.rap-app .rap-dialog label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 12px; }
.rap-app .rap-dialog input, .rap-app .rap-lookup input { display: block; width: 100%; height: 46px; margin-top: 6px; padding: 0 14px !important; border: 1px solid var(--line) !important; border-radius: 12px !important; background: var(--paper) !important; font-size: 15px; box-shadow: none !important; }
.rap-app .rap-dialog input:focus, .rap-app .rap-lookup input:focus { border-color: var(--gold) !important; outline: 0; box-shadow: 0 0 0 3px rgba(242, 165, 26, .2) !important; }
.rap-app .rap-error { color: #b42318 !important; font-weight: 600; }
.rap-app .rap-fine { font-size: 12.5px !important; text-align: center; margin: 12px 0 0 !important; }
.rap-app .rap-fine svg { width: 14px; height: 14px; }
.rap-layer .rap-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2147483001; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 99px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); animation: rap-up .25s ease-out; font-family: var(--font); }

/* ---------- My Agenda */
.rap-app .rap-lookup { max-width: 480px; margin: 10px auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; text-align: center; }
.rap-app .rap-lookup .rap-dialog-icon { margin: 0 auto 14px; }
.rap-app .rap-lookup-row { display: flex; gap: 8px; }
.rap-app .rap-lookup-row input { margin-top: 0; }
.rap-app .rap-agenda-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 4px 0 6px; }
.rap-app .rap-agenda-head h2 { font-family: var(--display); font-weight: 800; font-size: 24px; }
.rap-app .rap-agenda-head rap-p { color: var(--muted); font-size: 14px; }
.rap-app .rap-agenda-head .rap-linkbtn { margin: 0; }
.rap-app .rap-agenda-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rap-app .rap-agenda-day { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-size: 18px; font-weight: 700; margin: 22px 2px 10px; }
.rap-app .rap-agenda-day span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 3px 9px; border-radius: 99px; }
.rap-app .rap-agenda-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }

/* ---------- dashboard preview (Compare with PDF) */
.rap-app.is-preview .rap-days { margin-bottom: 10px; }
.rap-app.is-preview .rap-day { min-width: 150px; }

/* ---------- animations */
@keyframes rap-pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .55); } 70% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
@keyframes rap-blink { 50% { opacity: .3; } }
@keyframes rap-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rap-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rap-slide { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes rap-sheet-up { from { transform: translateY(60px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes rap-up { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .rap-app *, .rap-layer * { animation: none !important; transition: none !important; } }

/* ---------- phones */
@media (max-width: 760px) {
  .rap-app .rap-mob { display: block; }
  .rap-app .rap-desk { display: none; }
  .rap-app .rap-tool-btn { white-space: nowrap; font-size: 13.5px; padding: 0 10px; min-width: 0; }
  .rap-app .rap-tool-btn[data-f-toggle] { flex: 0 0 auto; padding: 0 14px; }
  .rap-app .rap-tool-btn.is-gold { flex: 1 1 0; }
  .rap-app .rap-tool-btn span { overflow: hidden; text-overflow: ellipsis; }
  .rap-app .rap-hero { border-radius: 0; padding-bottom: 66px; }
  .rap-app .rap-brand span { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rap-app .rap-pill-btn { padding: 8px 12px; }
  .rap-app .rap-panel { border-radius: 22px 22px 0 0; padding: 14px 12px 22px; }
  .rap-app .rap-day { min-width: 0; padding: 8px 10px 8px 8px; gap: 9px; }
  .rap-app .rap-day-num { width: 44px; height: 44px; font-size: 19px; }
  .rap-app .rap-day-txt b { font-size: 14.5px; }
  .rap-app .rap-day-txt span { font-size: 12px; }
  .rap-app .rap-views { width: 100%; }
  .rap-app .rap-views button { flex: 1; justify-content: center; padding: 8px 6px; font-size: 13.5px; }
  .rap-app .rap-search { flex-basis: 100%; order: 3; }
  .rap-app .rap-tool-btn { flex: 1; justify-content: center; order: 4; }
  .rap-app .rap-grid { grid-template-columns: 62px repeat(var(--halls), minmax(126px, 1fr)); min-width: calc(62px + var(--halls) * 130px); gap: 3px; }
  .rap-app .rap-g-time { padding: 4px 5px; }
  .rap-app .rap-g-time b { font-size: 12.5px; }
  .rap-app .rap-g-time small { font-size: 10px; }
  .rap-app .rap-g-corner { font-size: 11px; letter-spacing: .04em; }
  .rap-app .rap-slot { grid-template-columns: 1fr; gap: 8px; }
  .rap-app .rap-slot-time { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 6px 2px; display: flex; align-items: baseline; gap: 4px; }
  .rap-app .rap-slot-time b { display: inline; font-size: 19px; }
  .rap-app .rap-slot-cards, .rap-app .rap-agenda-list, .rap-app .rap-fac, .rap-app .rap-person-list { grid-template-columns: 1fr; }
  .rap-layer .rap-overlay { align-items: flex-end; }
  .rap-layer .rap-sheet { height: auto; max-height: 94vh; border-radius: 24px 24px 0 0; }
  .rap-layer.is-opening .rap-sheet { animation: rap-sheet-up .28s cubic-bezier(.2, .8, .2, 1); }
  .rap-layer .rap-sheet-head { padding: 30px 20px 42px; }
  .rap-layer .rap-sheet-head::before { content: ""; position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(255, 255, 255, .6); }
  .rap-layer .rap-x { top: 22px; right: 16px; }
  .rap-layer .rap-sheet-body { padding: 20px 18px 30px; }
  .rap-layer .rap-sheet-actions { gap: 10px; }
  .rap-layer .rap-timeline li { grid-template-columns: 52px 16px 1fr; gap: 0 10px; }
  .rap-app .rap-lookup-row { flex-direction: column; }
}

/* ---------- print (My Agenda "Print" and the browser's print of the program) */
@media print {
  .rap-app .rap-hero { padding: 10px 0 14px; background: none !important; color: var(--ink); border-radius: 0; }
  .rap-app .rap-hero h1 { color: var(--ink); text-shadow: none; font-size: 26px; }
  .rap-app .rap-hero-bar, .rap-app .rap-hero-meta .rap-count, .rap-app .rap-tools, .rap-app .rap-filters, .rap-app .rap-now, .rap-app .rap-hint, .rap-app .rap-card-actions, .rap-app .rap-agenda-actions, .rap-app .rap-linkbtn, .rap-app .rap-az { display: none !important; }
  .rap-app .rap-hero-meta > span { color: var(--ink); background: none; border-color: #ccc; }
  .rap-app .rap-panel { margin: 0; box-shadow: none; padding: 0; background: #fff; }
  .rap-app .rap-day:not(.is-on) { display: none; }
  .rap-app .rap-desk { display: block !important; }
  .rap-app .rap-mob { display: none !important; }
  .rap-app .rap-grid-wrap { overflow: visible; }
  .rap-app .rap-grid { min-width: 0; grid-template-columns: 64px repeat(var(--halls), 1fr); }
  .rap-app .rap-g-card, .rap-app .rap-card, .rap-app .rap-g-hall,   .rap-portal { display: none !important; }
}

/* ---------- Discussion / Q&A rows in the session timeline */
.rap-layer .rap-open-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 9px; border-radius: 99px; background: var(--c-soft); color: var(--c-ink); font-size: 14px; font-weight: 600; }
.rap-layer .rap-sheet.hc-wide .rap-open-tag { color: var(--ink); background: var(--gold-soft); }
.rap-layer .rap-open-tag svg { width: 15px; height: 15px; }
.rap-layer .rap-timeline li.is-open .rap-tl-time { background: transparent; border: 1px dashed var(--c-mid); }
.rap-layer .rap-timeline li.is-open .rap-tl-dot::after { background: #fff; border: 2px solid var(--c); width: 10px; height: 10px; box-sizing: border-box; }
.rap-layer .rap-timeline li.is-open .rap-tl-body { gap: 7px; }

/* ---------- [retina_header]: the header on its own (home page) */
.rap-app.is-header .rap-hero.is-home { border-radius: 22px; padding-bottom: clamp(30px, 5vw, 52px); }
.rap-app .rap-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.rap-app .rap-cta { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 15px; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .15s, transform .1s; }
.rap-app .rap-cta:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.rap-app .rap-cta svg { color: var(--gold); }
.rap-app .rap-cta.is-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -10px rgba(242, 165, 26, .7); }
.rap-app .rap-cta.is-gold svg { color: var(--ink); }
.rap-app .rap-cta.is-gold:hover { background: #ffb935; color: var(--ink); }
@media (max-width: 760px) {
  .rap-app.is-header .rap-hero.is-home { border-radius: 0; }
  .rap-app .rap-hero-cta { flex-direction: column; align-items: stretch; padding: 0 6px; }
  .rap-app .rap-cta { justify-content: center; }
}

/* ---------- subtitle under a session title + note under the program */
.rap-layer .rap-sheet-sub { margin: -6px 0 14px; font-size: 15.5px; line-height: 1.4; font-weight: 500; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.rap-app .rap-card-sub { font-size: 13.5px; line-height: 1.35; color: var(--muted); margin-top: -2px; }
.rap-layer .rap-footnote { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--c-soft); color: var(--ink); font-size: 14px; line-height: 1.5; }
.rap-layer .rap-footnote svg { flex-shrink: 0; margin-top: 2px; color: var(--c); }
.rap-layer .rap-sheet.hc-wide .rap-footnote { background: var(--gold-soft); }
.rap-layer .rap-sheet.hc-wide .rap-footnote svg { color: var(--gold-deep); }
