/* The app page's styles: ioshome.php, which the iOS app, phone browsers and (later) Android load.
   Ported from the iOS mockup (ratemyresidency_ios/RateMyResidency/Web/ioshome.html). */

/* the app's welcome page, bundled in the app (WebView.swift RMRSite.useBundledHome). When the
   site serves ioshome.php, port this page there and keep the two in step */

:root
{
  --rmr_red: #E03A57;
  --rmr_red_dark: #C02945;
  --rmr_red_soft: #FCE9EC;
  --rmr_navy: #425E73;
  --rmr_slate: #16222C;
  --rmr_gold: #F2C14E;
  --rmr_gold_dark: #B8860B;
  --rmr_ink: #1B2730;
  --rmr_muted: #5E6B75;
  --rmr_line: #E8E3DF;
  --rmr_bg: #F7F5F3;
}

*
{
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body
{
  touch-action: pan-x pan-y;
}

html
{
  height: 100%;
  background: var(--rmr_bg);
  color: var(--rmr_ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}

body
{
  margin: 0;
  height: 100%;
  overflow: hidden;
}

.mobile_home
{
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(224,58,87,0.13), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(66,94,115,0.10), transparent 60%),
    var(--rmr_bg);
}

/* top bar */

.mobile_top_bar
{
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 20px 6px;
}

.mobile_top_bar img
{
  width: 30px;
  height: 30px;
}

.wordmark
{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--rmr_slate);
}

.wordmark span
{
  color: var(--rmr_gold_dark);
}

/* middle */

.mobile_intro
{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 24px 8px;
}

/* the landing illustration: a review card with a second one fanned behind it */

.hero
{
  position: relative;
  width: min(80vw, 330px);
  margin-bottom: 28px;
  animation: hero_rise 0.7s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes hero_rise
{
  from
  {
    transform: translateY(14px);
    opacity: 0;
  }
  to
  {
    transform: translateY(0);
    opacity: 1;
  }
}

.card
{
  position: relative;
  background: white;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(22,34,44,0.12), 0 2px 6px rgba(22,34,44,0.06);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.card_back
{
  position: absolute;
  inset: 0;
  transform: rotate(6deg) translate(14px, 6px) scale(0.95);
  background: var(--rmr_red_soft);
  box-shadow: 0 10px 26px rgba(22,34,44,0.08);
}

.card_head
{
  display: flex;
  align-items: center;
  gap: 12px;
}

.card_badge
{
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--rmr_red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card_badge svg
{
  width: 24px;
  height: 24px;
}

.card_title
{
  flex: 1;
  min-width: 0;
}

.card_line
{
  height: 10px;
  border-radius: 5px;
  background: #E9EEF1;
}

.card_line + .card_line
{
  margin-top: 8px;
}

.card_score
{
  flex: none;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--rmr_slate);
}

.stars
{
  margin: 12px 0 14px;
}

.stars .star_meter
{
  font-size: 19px;
}

.bars
{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 12px;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rmr_muted);
}

.bar
{
  height: 8px;
  border-radius: 4px;
  background: #EEF1F3;
  overflow: hidden;
}

.bar i
{
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--rmr_navy);
  transform-origin: left;
  animation: bar_grow 0.9s 0.35s cubic-bezier(.2,.8,.2,1) both;
}

.bar i.red
{
  background: var(--rmr_red);
}

@keyframes bar_grow
{
  from
  {
    transform: scaleX(0);
  }
}

.mobile_eyebrow
{
  color: var(--rmr_red_dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1
{
  font-size: clamp(30px, 8.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -1.2px;
  margin: 0;
  font-weight: 800;
  color: var(--rmr_slate);
}

h1 span
{
  color: var(--rmr_red);
}

.mobile_description
{
  color: var(--rmr_muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 330px;
  margin: 12px auto 14px;
}

.chips
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip
{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--rmr_line);
  color: var(--rmr_ink);
  font-size: 12.5px;
  font-weight: 600;
}

.chip svg
{
  width: 14px;
  height: 14px;
}

/* buttons: Search programs (its pane), and Login (the login sheet) under it */

.mobile_actions
{
  flex: none;
  padding: 10px 24px calc(env(safe-area-inset-bottom, 0px) + 18px);
}

.mobile_start
{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 15px 16px;
  background: var(--rmr_red);
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(224,58,87,0.28);
  transition: transform 0.1s, background 0.1s;
}

.mobile_start svg
{
  width: 20px;
  height: 20px;
}

.mobile_start:active
{
  background: var(--rmr_red_dark);
  transform: translateY(1px);
}

.mobile_review
{
  margin-top: 12px;
  background: white;
  border-color: rgba(22,34,44,0.14);
  color: var(--rmr_slate);
  box-shadow: 0 4px 14px rgba(22,34,44,0.06);
}

.mobile_review:active
{
  background: var(--rmr_bg);
}

/* ── the panes: Search, a program, Write a Review. Each slides in from the right over the
   one before (which eases left a little, as iOS navigation does); the back button or a
   swipe from the left edge takes it away. MOCKUP: the programs and reviews are sample
   data in the script at the bottom of this page ── */

.hide_me
{
  display: none !important;
}

.mobile_home
{
  transition: transform 0.38s cubic-bezier(.32,.72,0,1);
}

.pane
{
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--rmr_bg);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.32,.72,0,1), box-shadow 0.38s;
}

.pane.pane_open
{
  transform: translateX(0);
  box-shadow: -12px 0 32px rgba(22,34,44,0.14);
}

.pane_under
{
  transform: translateX(-28%) !important;
}

#program_pane
{
  z-index: 60;
}

#review_pane
{
  z-index: 70;
}

.pane_head
{
  flex: none;
  background: white;
  border-bottom: 1px solid var(--rmr_line);
  box-shadow: 0 6px 18px rgba(22,34,44,0.05);
  position: relative;
  z-index: 2;
}

.pane_top
{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
}

.round_btn
{
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: var(--rmr_bg);
  color: var(--rmr_slate);
  font-size: 26px;
  line-height: 38px;
  text-align: center;
  padding: 0;
}

.round_btn.close_btn
{
  font-size: 22px;
}

.round_btn svg
{
  width: 18px;
  height: 18px;
  vertical-align: -3px;
}

.round_btn.invisible
{
  visibility: hidden;
}

.pane_title
{
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--rmr_ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pane_body
{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + var(--kb, 0px) + 24px);
}

.pane_foot
{
  flex: none;
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
  background: white;
  border-top: 1px solid var(--rmr_line);
}

.pane_foot .mobile_start
{
  box-shadow: none;
}

.pane_foot .mobile_start[disabled]
{
  opacity: 0.45;
}

/* ── search ── */

/* the two fields stacked in one card, a hairline between */
.search_fields
{
  margin: 0 16px 12px;
  background: white;
  border: 1.5px solid var(--rmr_line);
  border-radius: 14px;
  overflow: hidden;
}

.search_fields:focus-within
{
  border-color: var(--rmr_red);
}

.search_row
{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 14px;
}

.search_row + .search_row
{
  border-top: 1px solid var(--rmr_line);
}

.search_row svg
{
  flex: none;
  width: 20px;
  height: 20px;
}

.search_input
{
  flex: 1;
  min-width: 0;
  height: 50px;
  font: inherit;
  font-size: 16px;
  color: var(--rmr_ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  outline: none;
  -webkit-appearance: none;
  -webkit-user-select: text;
  user-select: text;
}

.search_input::placeholder,
.form_input::placeholder
{
  color: #9AA4AC;
}

.search_clear
{
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: #9AA4AC;
  font-size: 20px;
  line-height: 30px;
  padding: 0;
}

/* filter chips: one row that scrolls sideways */
.filter_row
{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scrollbar-width: none;
}

.filter_row::-webkit-scrollbar
{
  display: none;
}

.filter_chip
{
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 13px;
  border-radius: 17px;
  border: 1px solid var(--rmr_line);
  background: white;
  color: var(--rmr_ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.filter_chip.chip_on
{
  background: var(--rmr_slate);
  border-color: var(--rmr_slate);
  color: white;
}

.filter_chip svg
{
  width: 14px;
  height: 14px;
}

/* suggestions while a field has focus */
.suggest_list
{
  margin: 12px 0;
  background: white;
  border: 1px solid var(--rmr_line);
  border-radius: 14px;
  overflow: hidden;
}

.suggest_label
{
  padding: 12px 16px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--rmr_muted);
}

.suggest_item
{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-top: 1px solid var(--rmr_line);
  background: white;
  font: inherit;
  font-size: 16px;
  color: var(--rmr_ink);
  text-align: left;
}

.suggest_item:active
{
  background: var(--rmr_bg);
}

.suggest_item svg
{
  flex: none;
  width: 18px;
  height: 18px;
}

.suggest_item .suggest_count
{
  margin-left: auto;
  color: var(--rmr_muted);
  font-size: 13px;
}

.suggest_here
{
  color: #1F6FD1;
  font-weight: 600;
}

/* results */
.results_head
{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 2px 10px;
}

.results_title
{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--rmr_slate);
}

.results_count
{
  flex: none;
  font-size: 13px;
  color: var(--rmr_muted);
}

.result_card
{
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: white;
  border: 1px solid var(--rmr_line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(22,34,44,0.05);
  animation: card_in 0.35s cubic-bezier(.2,.8,.2,1) both;
}

.result_card:active
{
  transform: scale(0.99);
  background: #FCFBFA;
}

@keyframes card_in
{
  from
  {
    transform: translateY(10px);
    opacity: 0;
  }
}

.result_top
{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.program_badge
{
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.result_main
{
  flex: 1;
  min-width: 0;
}

.result_name
{
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--rmr_slate);
}

.rating_line
{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--rmr_muted);
}

.rating_line b
{
  color: var(--rmr_ink);
}

/* the brand's stars: a white star on a red tile, Trustpilot style. A part star fills its
   tile partway (--f), so 4.6 shows four tiles and three-fifths of the fifth. Sized in em,
   so font-size sets the tile size */
.star_meter
{
  display: inline-flex;
  gap: 0.14em;
  font-size: 15px;
  line-height: 1;
  vertical-align: middle;
  flex: none;
}

.star_meter i
{
  --f: 0%;
  position: relative;
  width: 1.2em;
  height: 1.2em;
  border-radius: 0.2em;
  background: linear-gradient(90deg, var(--rmr_red) var(--f), #DDD8D3 var(--f));
}

.star_meter i::after,
.star_btn::after
{
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2.6l2.75 5.95 6.5.72-4.85 4.4 1.33 6.4L12 16.8l-5.73 3.27 1.33-6.4-4.85-4.4 6.5-.72z'/%3E%3C/svg%3E") center / 74% no-repeat;
}

/* the site's program rows: address, the residency program, the program director */
.result_facts
{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rmr_line);
  display: grid;
  gap: 7px;
}

.result_fact
{
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--rmr_ink);
}

.result_fact svg
{
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.result_fact .muted
{
  color: var(--rmr_muted);
}

.results_empty
{
  text-align: center;
  color: var(--rmr_muted);
  padding: 48px 20px;
  font-size: 15px;
  line-height: 1.5;
}

.results_empty b
{
  display: block;
  color: var(--rmr_slate);
  font-size: 18px;
  margin-bottom: 6px;
}

.sample_note
{
  text-align: center;
  color: #9AA4AC;
  font-size: 12.5px;
  padding: 6px 0 4px;
}

/* List / Map, under the filter chips */
.view_seg
{
  margin: 0 16px 12px;
}

.view_seg .seg_btn
{
  height: 34px;
  font-size: 14px;
}

/* the map view fills the pane below the header instead of scrolling */
.search_body.map_mode
{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
}

.results_map
{
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.map_stage
{
  position: relative;
  flex: 1;
  min-height: 300px;
  border-radius: 18px;
  overflow: hidden;
  background: #E9EEF0;
  border: 1px solid var(--rmr_line);
}

.map_stage .map_canvas,
.map_stage .map_canvas img
{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map_stage .map_canvas img
{
  object-fit: cover;
  animation: map_in 0.35s ease-out both;
}

.map_stage .map_offline
{
  justify-content: flex-start;
  padding-top: 14px;
}

/* a program's pin: its rating on a white tag, the brand's star tile in front; the picked
   one turns red. Its point sits on the program */
.rate_pin
{
  position: absolute;
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 9px 0 5px;
  border: 0;
  border-radius: 10px;
  background: white;
  color: var(--rmr_slate);
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(22,34,44,0.22);
  margin-top: -6px;
  transition: transform 0.15s, background 0.15s, color 0.15s;
  z-index: 1;
}

.rate_pin::after
{
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  margin-left: -6px;
  border: 6px solid transparent;
  border-bottom: 0;
  border-top-color: white;
  transition: border-color 0.15s;
}

.rate_pin .star_meter
{
  font-size: 16.5px;
}

.rate_pin.pin_on
{
  background: var(--rmr_red);
  color: white;
  transform: translate(-50%, -100%) scale(1.1);
  z-index: 3;
}

.rate_pin.pin_on::after
{
  border-top-color: var(--rmr_red);
}

.rate_pin.pin_on .star_meter i
{
  background: rgba(255,255,255,0.28);
}

/* programs too close to tell apart at this zoom: one slate tag with the count; a tap zooms in */
.rate_pin.pin_group
{
  background: var(--rmr_slate);
  color: white;
  padding: 0 11px;
}

.rate_pin.pin_group::after
{
  border-top-color: var(--rmr_slate);
}

.rate_pin.pin_group.pin_on
{
  background: var(--rmr_red);
}

.rate_pin.pin_group.pin_on::after
{
  border-top-color: var(--rmr_red);
}

/* "Current location" */
.map_you
{
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #1F6FD1;
  border: 3px solid white;
  box-shadow: 0 0 0 8px rgba(31,111,209,0.18);
}

.map_all
{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 17px;
  background: white;
  color: var(--rmr_slate);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(22,34,44,0.18);
}

/* the picked program, floating over the bottom of the map; a tap opens it */
.result_card.map_card
{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  margin: 0;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(22,34,44,0.2);
}

/* several programs at one place: their cards in a row that swipes sideways, the next peeking */
.map_cards
{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 5;
  display: flex;
  gap: 8px;
  padding: 0 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 10px;
  scrollbar-width: none;
}

.map_cards::-webkit-scrollbar
{
  display: none;
}

.map_cards .result_card.map_card
{
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  flex: none;
  width: calc(100% - 28px);
  scroll-snap-align: start;
  box-shadow: 0 6px 18px rgba(22,34,44,0.16);
}

.map_card .result_facts
{
  margin-top: 10px;
  padding-top: 10px;
}

/* ── a program ── */

.program_hero
{
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.program_hero .program_badge
{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 21px;
}

.program_title
{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--rmr_slate);
}

.program_sub
{
  margin-top: 3px;
  font-size: 14px;
  color: var(--rmr_muted);
}

.panel
{
  background: white;
  border: 1px solid var(--rmr_line);
  border-radius: 18px;
  padding: 16px;
  margin-top: 14px;
}

.panel_label
{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--rmr_muted);
  margin-bottom: 12px;
}

.panel_label .panel_count
{
  margin-left: auto;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.score_row
{
  display: flex;
  align-items: center;
  gap: 16px;
}

.score_big
{
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--rmr_slate);
}

.score_row .star_meter
{
  font-size: 21px;
}

.score_row .rating_count
{
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--rmr_muted);
}

/* ratings by category: one vertical bar each for Overall Rating, Training, Leadership,
   Nursing and The Vibe, on a 0-5 scale from zero. The bars grow up when the chart scrolls
   into view (vchart_in); tap one for its detail */
.vchart
{
  margin-top: 4px;
}

.vchart_plot
{
  position: relative;
  height: 168px;
  margin: 24px 0 0 22px;
}

.vchart_grid
{
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #EEEAE6;
}

.vchart_grid span
{
  position: absolute;
  left: -22px;
  top: -7px;
  width: 14px;
  text-align: right;
  font-size: 10.5px;
  color: #9AA4AC;
}

.vchart_grid.base
{
  border-top-color: #C9C3BD;
}

.vchart_cols
{
  position: absolute;
  inset: 0;
  display: flex;
  gap: 2px;
}

.vcol
{
  position: relative;
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
}

.vbar
{
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(34px, 60%);
  height: var(--h);
  margin-left: calc(min(34px, 60%) / -2);
  border-radius: 4px 4px 0 0;
  background: var(--rmr_navy);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1), opacity 0.2s;
  transition-delay: var(--d);
}

.vcol.overall .vbar
{
  background: var(--rmr_red);
}

.vval
{
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--h) + 6px);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--rmr_slate);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
  transition-delay: calc(var(--d) + 0.55s);
}

.vchart_in .vbar
{
  transform: scaleY(1);
}

.vchart_in .vval
{
  opacity: 1;
  transform: none;
}

/* a tapped bar keeps its colour; the others step back */
.vchart.has_focus .vcol:not(.focus) .vbar
{
  opacity: 0.35;
}

.vtip
{
  position: absolute;
  left: 50%;
  bottom: calc(var(--h) + 30px);
  z-index: 2;
  transform: translateX(-50%);
  width: max-content;
  max-width: 150px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--rmr_slate);
  color: white;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(22,34,44,0.2);
}

.vtip b
{
  display: block;
  font-size: 13px;
}

.vcol:first-child .vtip
{
  left: 0;
  transform: none;
}

.vcol:last-child .vtip
{
  left: auto;
  right: 0;
  transform: none;
}

.vchart_labels
{
  display: flex;
  gap: 2px;
  margin: 8px 0 0 22px;
}

.vchart_labels div
{
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rmr_ink);
}

.vchart_labels small
{
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--rmr_muted);
}

.bd_note
{
  margin-top: 12px;
  font-size: 12px;
  color: #9AA4AC;
}

.score_bars
{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 12px;
  align-items: center;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rmr_muted);
}

.score_bars b
{
  color: var(--rmr_ink);
  font-size: 13px;
}

/* AI summary (placeholder) */
.ai_mark
{
  width: 16px;
  height: 16px;
}

.preview_pill
{
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--rmr_bg);
  color: var(--rmr_muted);
  font-size: 11px;
  letter-spacing: 0.4px;
}

.ai_text
{
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--rmr_ink);
}

.pc_item
{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rmr_line);
  font-size: 15px;
}

.panel_label + .pc_item
{
  border-top: 0;
  padding-top: 0;
}

.pc_mark
{
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc_mark.pro
{
  background: #E8F4EE;
}

.pc_mark.con
{
  background: var(--rmr_red_soft);
}

.pc_mark svg
{
  width: 16px;
  height: 16px;
}

.pc_text
{
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--rmr_ink);
}

.pc_count
{
  flex: none;
  font-size: 13px;
  color: var(--rmr_muted);
}

.ai_list_label
{
  font-size: 12.5px;
  font-weight: 700;
  color: var(--rmr_muted);
  margin-bottom: 6px;
}

.tag_row
{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag
{
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--rmr_bg);
  color: var(--rmr_ink);
  font-size: 12.5px;
  font-weight: 600;
}

.tag.pro
{
  background: #E8F4EE;
  color: #1F6B47;
}

.tag.con
{
  background: var(--rmr_red_soft);
  color: #A3243B;
}

.ai_foot
{
  margin-top: 14px;
  font-size: 12px;
  color: #9AA4AC;
}

/* contact information and program data: the label over the value, a branded caret to edit */
.info_row
{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--rmr_line);
  background: transparent;
  font: inherit;
  text-align: left;
  color: inherit;
}

.panel_label + .info_row
{
  border-top: 0;
  padding-top: 2px;
}

.info_row:active .info_caret
{
  background: var(--rmr_red);
}

.info_row:active .info_caret svg
{
  stroke: white;
}

.info_row.flash
{
  animation: flash 1.6s ease-out;
}

@keyframes flash
{
  0%, 30%
  {
    background: var(--rmr_red_soft);
    box-shadow: 0 0 0 8px var(--rmr_red_soft);
  }
}

.info_main
{
  flex: 1;
  min-width: 0;
}

.info_label
{
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rmr_muted);
  margin-bottom: 3px;
}

.info_value
{
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--rmr_ink);
  overflow-wrap: anywhere;
}

.info_add
{
  color: var(--rmr_red_dark);
  font-weight: 600;
}

.info_caret
{
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--rmr_red_soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}

.info_caret svg
{
  width: 16px;
  height: 16px;
}

.add_data_btn
{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  height: 46px;
  border: 1.5px dashed rgba(224,58,87,0.45);
  border-radius: 12px;
  background: #FFF8F9;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--rmr_red_dark);
}

.add_data_btn:active
{
  background: var(--rmr_red_soft);
}

/* the edit / add pane */
#edit_pane
{
  z-index: 80;
}

/* ── location: the map under the contact information ── */
.map_box
{
  position: relative;
  height: 190px;
  border-radius: 14px;
  overflow: hidden;
  background: #E9EEF0;
  border: 1px solid var(--rmr_line);
}

.map_box img
{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: map_in 0.35s ease-out both;
}

@keyframes map_in
{
  from
  {
    opacity: 0;
  }
}

.map_offline
{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--rmr_muted);
  font-size: 13px;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(66,94,115,0.08) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(66,94,115,0.08) 38px 40px),
    #EEF1F2;
}

/* the branded pin: a red drop with a white dot */
.rmr_pin
{
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  background: var(--rmr_red);
  transform: rotate(-45deg);
  box-shadow: 0 6px 14px rgba(224,58,87,0.45);
  border: 3px solid white;
}

.rmr_pin::after
{
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 5px;
  background: white;
}

.map_tap
{
  position: absolute;
  inset: 0;
  z-index: 500;
  border: 0;
  background: transparent;
  padding: 0;
}

.map_foot
{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.map_foot .info_main
{
  font-size: 14px;
  color: var(--rmr_ink);
  line-height: 1.4;
}

.small_btn
{
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(22,34,44,0.14);
  background: white;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--rmr_slate);
}

.small_btn svg
{
  width: 16px;
  height: 16px;
}

/* ── reviews: the program page's section and the all-reviews drawer ── */
#reviews_pane
{
  z-index: 65;
}

.open_reviews_class
{
  cursor: pointer;
}

.score_row .info_caret
{
  margin-left: auto;
  align-self: flex-start;
}

.reviews_title
{
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--rmr_slate);
}

.reviews_title span
{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--rmr_muted);
}

.review_filters
{
  display: flex;
  gap: 8px;
  margin: 12px 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.review_filters::-webkit-scrollbar
{
  display: none;
}

.filter_chip .caret_down
{
  width: 12px;
  height: 12px;
  margin-left: 1px;
}

.view_all_btn
{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border: 1.5px solid rgba(22,34,44,0.14);
  border-radius: 12px;
  background: white;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--rmr_slate);
}

.view_all_btn svg
{
  width: 16px;
  height: 16px;
}

.reviews_empty
{
  padding: 20px 0 10px;
  text-align: center;
  color: var(--rmr_muted);
  font-size: 14.5px;
}

.reviews_head_sub
{
  padding: 0 16px 10px;
  margin-top: -4px;
  text-align: center;
  font-size: 13px;
  color: var(--rmr_muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dist
{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px 10px;
  align-items: center;
  margin-top: 14px;
}

.dist_row
{
  display: contents;
}

.dist_btn
{
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 34px 1fr 30px;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 3px 4px;
  margin: 0 -4px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--rmr_muted);
  text-align: left;
}

.dist_btn.chip_on
{
  background: var(--rmr_red_soft);
  color: var(--rmr_red_dark);
}

.dist_btn .bar i
{
  background: var(--rmr_red);
}

.dist_btn b
{
  text-align: right;
  color: var(--rmr_ink);
}

.dist_hint
{
  margin-top: 8px;
  font-size: 12px;
  color: #9AA4AC;
}

.reviews_count_line
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 10px;
  font-size: 13.5px;
  color: var(--rmr_muted);
}

.clear_filters
{
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--rmr_red_dark);
}

/* in the drawer each review is its own card */
.reviews_list .review
{
  background: white;
  border: 1px solid var(--rmr_line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(22,34,44,0.05);
}

.review mark
{
  background: #FDEBC0;
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.not_rated
{
  font-size: 12.5px;
  color: #9AA4AC;
}

/* ── the action sheet: Year, Source and Sort choices ── */
.action_sheet
{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22,34,44,0);
  pointer-events: none;
  transition: background 0.25s;
}

.action_sheet.sheet_open
{
  background: rgba(22,34,44,0.38);
  pointer-events: auto;
}

.action_panel
{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  max-width: 520px;
  margin: 0 auto;
  transform: translateY(calc(100% + 40px));
  transition: transform 0.32s cubic-bezier(.32,.72,0,1);
}

.action_sheet.sheet_open .action_panel
{
  transform: translateY(0);
}

.action_group
{
  background: white;
  border-radius: 16px;
  overflow: hidden;
  max-height: 62vh;
  overflow-y: auto;
}

.action_title
{
  padding: 14px 16px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--rmr_muted);
  border-bottom: 1px solid var(--rmr_line);
}

.action_item
{
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-top: 1px solid var(--rmr_line);
  background: white;
  font: inherit;
  font-size: 17px;
  color: var(--rmr_ink);
  text-align: left;
}

.action_title + .action_item
{
  border-top: 0;
}

.action_item:active
{
  background: var(--rmr_bg);
}

.action_item.on
{
  font-weight: 700;
  color: var(--rmr_red_dark);
}

.action_item .action_count
{
  margin-left: auto;
  font-size: 14px;
  color: var(--rmr_muted);
  font-weight: 500;
}

.action_item .action_check
{
  width: 20px;
  margin-left: 10px;
  color: var(--rmr_red);
  font-weight: 800;
}

.action_cancel
{
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 8px;
  border: 0;
  border-radius: 16px;
  background: white;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--rmr_slate);
}

.segmented
{
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: #ECE8E4;
}

.seg_btn
{
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--rmr_muted);
  transition: background 0.15s, color 0.15s;
}

.seg_btn.on
{
  background: white;
  color: var(--rmr_slate);
  box-shadow: 0 2px 6px rgba(22,34,44,0.12);
}

.step_num
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 11px;
  background: var(--rmr_red);
  color: white;
  font-size: 12.5px;
  vertical-align: 1px;
}

.suggest_chips
{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.suggest_chips .filter_chip
{
  height: 32px;
  font-size: 13px;
}

.preview_box
{
  margin-top: 24px;
  padding: 4px 16px;
  border-radius: 14px;
  border: 1.5px dashed var(--rmr_line);
  background: white;
}

.preview_box .info_row
{
  border-top: 0;
  pointer-events: none;
}

.edit_meta
{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--rmr_muted);
}

.edit_meta svg
{
  width: 15px;
  height: 15px;
}

/* reviews: condensed to a few lines, tap to read the whole review */
.review
{
  padding: 16px 0;
  border-top: 1px solid var(--rmr_line);
}

.panel_label + .review
{
  border-top: 0;
  padding-top: 0;
}

.review_head
{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--rmr_muted);
}

.review_avatar
{
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--rmr_bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.review_avatar svg
{
  width: 19px;
  height: 19px;
}

.review_who
{
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.review_who b
{
  color: var(--rmr_ink);
  font-size: 14.5px;
}

.review_head .star_meter
{
  font-size: 13px;
}

.review_text
{
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--rmr_ink);
  max-height: 6em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, black 55%, transparent);
  mask-image: linear-gradient(180deg, black 55%, transparent);
}

.review_text p
{
  margin: 0 0 10px;
}

.review_text h4
{
  margin: 0 0 2px;
  font-size: 14.5px;
  color: var(--rmr_slate);
}

.review_more
{
  display: none;
}

.review.expanded .review_text
{
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.review.expanded .review_more
{
  display: block;
}

.review_short_pc
{
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--rmr_muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review_short_pc b
{
  color: var(--rmr_ink);
  font-weight: 600;
}

.review.expanded .review_short_pc
{
  display: none;
}

.review_toggle
{
  margin-top: 8px;
  border: 0;
  background: transparent;
  padding: 4px 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--rmr_red_dark);
}

.review_ratings
{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: center;
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--rmr_bg);
  font-size: 13.5px;
  color: var(--rmr_muted);
}

.review_ratings .star_meter
{
  font-size: 13px;
}

.review_pc
{
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.helpful_row
{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--rmr_muted);
}

.helpful_btn
{
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid var(--rmr_line);
  background: white;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rmr_ink);
}

.helpful_btn.chip_on
{
  background: var(--rmr_slate);
  border-color: var(--rmr_slate);
  color: white;
}

/* ── write a review ── */

.progress
{
  height: 4px;
  margin: 0 16px 12px;
  border-radius: 2px;
  background: var(--rmr_bg);
  overflow: hidden;
}

.progress i
{
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--rmr_red);
  transition: width 0.35s cubic-bezier(.2,.8,.2,1);
}

.step_heading
{
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--rmr_slate);
  margin: 22px 0 6px;
}

.step_lead
{
  color: var(--rmr_muted);
  font-size: 15.5px;
  line-height: 1.45;
  margin: 0 0 18px;
}

.step_lead b
{
  color: var(--rmr_ink);
}

.chosen_program
{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--rmr_line);
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--rmr_muted);
}

.chosen_program .program_badge
{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 14px;
}

.chosen_program b
{
  display: block;
  color: var(--rmr_ink);
  font-size: 15px;
}

.pick_program
{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1.5px solid var(--rmr_line);
  background: white;
  font: inherit;
  text-align: left;
  color: var(--rmr_muted);
  font-size: 13.5px;
}

.pick_program .program_badge
{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 14px;
}

.pick_program b
{
  display: block;
  color: var(--rmr_ink);
  font-size: 15px;
}

.pick_program.picked,
.option_card.picked
{
  border-color: var(--rmr_red);
  background: #FFF8F9;
}

/* a list group: rows in one card, a hairline between, the picked one tinted */
.list_group
{
  background: white;
  border: 1.5px solid var(--rmr_line);
  border-radius: 14px;
  overflow: hidden;
}

.lg_row
{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 14px;
  border: 0;
  border-top: 1px solid var(--rmr_line);
  background: white;
  font: inherit;
  text-align: left;
  transition: background 0.15s;
}

.lg_row:first-child
{
  border-top: 0;
}

.lg_row.picked
{
  background: #FFF8F9;
}

.lg_row.picked .option_tick
{
  border: 7px solid var(--rmr_red);
}

.lg_icon
{
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--rmr_bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lg_icon svg
{
  width: 20px;
  height: 20px;
}

.lg_text
{
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--rmr_ink);
}

.input_row
{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 14px;
  border-top: 1px solid var(--rmr_line);
}

.input_row:first-child
{
  border-top: 0;
}

.input_row svg
{
  flex: none;
  width: 19px;
  height: 19px;
}

.input_row .search_input
{
  height: 56px;
}

.list_group:focus-within
{
  border-color: var(--rmr_red);
}

.field_clear
{
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #9AA4AC;
  font-size: 22px;
  line-height: 34px;
  padding: 0;
}

.pseudo_row
{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px -16px 0;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pseudo_row::-webkit-scrollbar
{
  display: none;
}

.pseudo_row > span
{
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--rmr_muted);
}

.pseudo_row .filter_chip
{
  height: 32px;
  font-size: 13px;
}

.pseudo_shuffle svg
{
  width: 15px;
  height: 15px;
}

.year_row
{
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--rmr_ink);
}

.year_row span
{
  flex: 1;
}

.year_row svg
{
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: -4px;
}

.year_select
{
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--rmr_red_dark);
  text-align: right;
  text-align-last: right;
  padding: 8px 6px;
  outline: none;
}

.options
{
  display: grid;
  gap: 10px;
}

.option_card
{
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid var(--rmr_line);
  background: white;
  font: inherit;
  text-align: left;
}

.option_icon
{
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--rmr_bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.option_icon svg
{
  width: 26px;
  height: 26px;
}

.option_card b
{
  display: block;
  font-size: 16px;
  color: var(--rmr_ink);
}

.option_card span
{
  font-size: 13.5px;
  color: var(--rmr_muted);
}

.option_tick
{
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  border: 2px solid var(--rmr_line);
  flex: none;
}

.picked .option_tick
{
  border: 7px solid var(--rmr_red);
}

.field_label
{
  font-size: 14px;
  font-weight: 700;
  color: var(--rmr_ink);
  margin: 22px 0 8px;
}

.field_hint
{
  font-size: 13px;
  color: var(--rmr_muted);
  margin: -4px 0 8px;
  line-height: 1.4;
}

.form_card
{
  background: white;
  border: 1.5px solid var(--rmr_line);
  border-radius: 14px;
  overflow: hidden;
}

.form_card:focus-within
{
  border-color: var(--rmr_red);
}

.form_card .form_input + .form_input
{
  border-top: 1px solid var(--rmr_line);
}

.form_input
{
  display: block;
  width: 100%;
  height: 52px;
  font: inherit;
  font-size: 16px;
  color: var(--rmr_ink);
  background: white;
  border: 0;
  border-radius: 0;
  padding: 0 16px;
  outline: none;
  -webkit-appearance: none;
  -webkit-user-select: text;
  user-select: text;
}

textarea.form_input
{
  height: auto;
  min-height: 170px;
  padding: 14px 16px;
  line-height: 1.5;
  resize: none;
}

.guidelines
{
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #EEF3F6;
  color: #2E4757;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 4px;
}

.guidelines svg
{
  flex: none;
  width: 22px;
  height: 22px;
}

.guidelines ul
{
  margin: 4px 0 0;
  padding-left: 18px;
}

.rate_rows
{
  background: white;
  border: 1px solid var(--rmr_line);
  border-radius: 14px;
  padding: 4px 14px;
}

.rate_row
{
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 54px;
}

.rate_row + .rate_row
{
  border-top: 1px solid var(--rmr_line);
}

.rate_name
{
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--rmr_ink);
}

.rate_name small
{
  color: var(--rmr_red);
}

.star_btn
{
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: #DDD8D3;
  padding: 0;
  font-size: 0;
  transition: transform 0.12s, background 0.15s;
}

.star_btn.on
{
  background: var(--rmr_red);
}

.star_btn:active
{
  transform: scale(1.2);
}

.pc_columns
{
  display: grid;
  gap: 10px;
}

.pc_box
{
  background: white;
  border: 1.5px solid var(--rmr_line);
  border-radius: 14px;
  padding: 10px;
  min-width: 0;
}

.pc_box:focus-within
{
  border-color: var(--rmr_red);
}

.pc_title
{
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pc_box.pros .pc_title
{
  color: #1F6B47;
}

.pc_box.cons .pc_title
{
  color: #A3243B;
}

.pc_box .tag
{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 4px 6px 0;
  max-width: 100%;
}

.pc_box .tag button
{
  border: 0;
  background: transparent;
  padding: 0 0 0 2px;
  font-size: 15px;
  line-height: 1;
  color: inherit;
  opacity: 0.6;
}

.pc_input
{
  width: 100%;
  height: 36px;
  font: inherit;
  font-size: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--rmr_bg);
  padding: 0 10px;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}

.pc_suggest
{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pc_chip
{
  height: 30px;
  padding: 0 11px;
  border-radius: 15px;
  border: 1px solid var(--rmr_line);
  background: white;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--rmr_ink);
  transition: background 0.15s, border-color 0.15s;
}

.pc_box.pros .pc_chip.on
{
  background: #E8F4EE;
  border-color: #BFE0CC;
  color: #1F6B47;
}

.pc_box.cons .pc_chip.on
{
  background: var(--rmr_red_soft);
  border-color: #F3C3CC;
  color: #A3243B;
}

.form_error
{
  background: rgba(200,45,60,0.08);
  border: 1px solid rgba(200,45,60,0.28);
  color: #b3202f;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin: 16px 0 0;
}

.done
{
  text-align: center;
  padding: 12vh 12px 0;
}

.done_mark
{
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 42px;
  background: #E8F4EE;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop 0.5s cubic-bezier(.2,1.4,.4,1) both;
}

.done_mark svg
{
  width: 40px;
  height: 40px;
}

@keyframes pop
{
  from
  {
    transform: scale(0.4);
    opacity: 0;
  }
}

.done .step_lead
{
  max-width: 320px;
  margin: 0 auto 18px;
}

/* ── the login sheet: slides up over everything, drag it down to dismiss (strongwork's and
   schedulosity's sheet). Email first, then the password, or a new account ── */

.login_sheet
{
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(22,34,44,0);
  pointer-events: none;
  transition: background 0.3s ease;
}

.login_sheet.sheet_open
{
  background: rgba(22,34,44,0.4);
  pointer-events: auto;
}

.login_panel
{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: white;
  transform: translateY(100%);
  transition: transform 0.34s cubic-bezier(.32,.72,0,1);
}

.login_sheet.sheet_open .login_panel
{
  transform: translateY(0);
}

.login_grab
{
  flex: none;
  display: flex;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 0 2px;
  touch-action: none;
}

.login_grab span
{
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: rgba(22,34,44,0.18);
}

.login_top
{
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 8px;
  touch-action: none;
}

.login_body
{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 24px calc(env(safe-area-inset-bottom, 0px) + var(--kb, 0px) + 24px);
}

.login_brand
{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px;
}

.login_brand img
{
  width: 34px;
  height: 34px;
}

.login_reason
{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  margin: 12px 0 2px;
  border-radius: 12px;
  background: var(--rmr_red_soft);
  color: #A3243B;
  font-size: 14.5px;
  font-weight: 600;
}

.login_reason svg
{
  flex: none;
  width: 20px;
  height: 20px;
}

.password_row
{
  position: relative;
}

.password_row .form_input
{
  padding-right: 70px;
}

.eye_btn
{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--rmr_muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.check_row
{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--rmr_muted);
  font-size: 14.5px;
  line-height: 1.4;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  text-align: left;
}

.check_box
{
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid rgba(22,34,44,0.25);
  background: white;
  color: white;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check_row.checked .check_box
{
  background: var(--rmr_red);
  border-color: var(--rmr_red);
}

.login_link
{
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  color: var(--rmr_red_dark);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 0 4px;
}

.login_divider
{
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9AA4AC;
  font-size: 13px;
  margin: 22px 0 6px;
}

.login_divider::before,
.login_divider::after
{
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rmr_line);
}

.login_change
{
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: 6px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--rmr_red_dark);
}

.login_body .mobile_start
{
  margin-top: 4px;
  box-shadow: none;
}

.login_body .mobile_start[disabled]
{
  opacity: 0.55;
}

.login_sent
{
  display: flex;
  gap: 12px;
  background: #E8F4EE;
  color: #1F6B47;
  border-radius: 12px;
  padding: 14px;
  font-size: 14.5px;
  line-height: 1.45;
  margin: 0 0 16px;
}

.login_sent svg
{
  flex: none;
  width: 22px;
  height: 22px;
}

/* ── the member section: signed in, a tab bar of Discover / Saved / My Reviews / Account ── */

.member_shell
{
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--rmr_bg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2,.8,.2,1);
}

.member_shell.member_in
{
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.member_shell.member_in.pane_under
{
  transform: translateX(-28%) !important;
}

.member_head
{
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 20px 10px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(224,58,87,0.12), transparent 60%),
    var(--rmr_bg);
}

.member_hello
{
  flex: 1;
  min-width: 0;
}

.member_hello small
{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--rmr_muted);
}

.member_hello b
{
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--rmr_slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar_btn
{
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 21px;
  border: 0;
  background: var(--rmr_slate);
  color: white;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.member_body
{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 24px;
}

.member_tab
{
  animation: tab_in 0.3s ease-out both;
}

@keyframes tab_in
{
  from
  {
    opacity: 0;
    transform: translateY(8px);
  }
}

.tab_bar
{
  flex: none;
  display: flex;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--rmr_line);
  padding: 6px 6px calc(env(safe-area-inset-bottom, 0px) + 4px);
}

.tab_btn
{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  color: #8A949C;
}

.tab_btn svg
{
  width: 25px;
  height: 25px;
}

.tab_btn.on
{
  color: var(--rmr_red);
}

.tab_btn .tab_count
{
  position: absolute;
  margin: -2px 0 0 22px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--rmr_red);
  color: white;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 17px;
}

.fake_search
{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  padding: 0 16px;
  margin-top: 6px;
  border-radius: 14px;
  border: 1.5px solid var(--rmr_line);
  background: white;
  font: inherit;
  font-size: 16px;
  color: #9AA4AC;
  text-align: left;
  box-shadow: 0 4px 14px rgba(22,34,44,0.05);
}

.fake_search svg
{
  width: 20px;
  height: 20px;
}

.section_head
{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 26px 2px 10px;
}

.section_head b
{
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--rmr_slate);
}

.section_head button
{
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--rmr_red_dark);
}

.quick_row
{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 12px -16px 0;
  padding: 0 16px;
  scrollbar-width: none;
}

.quick_row::-webkit-scrollbar,
.carousel::-webkit-scrollbar
{
  display: none;
}

.carousel
{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 2px 16px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.mini_card
{
  flex: none;
  width: 230px;
  scroll-snap-align: start;
  border: 1px solid var(--rmr_line);
  border-radius: 18px;
  background: white;
  padding: 14px;
  font: inherit;
  text-align: left;
  color: inherit;
  box-shadow: 0 4px 14px rgba(22,34,44,0.05);
}

.mini_card .program_badge
{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 14px;
}

.mini_name
{
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--rmr_slate);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.mini_card .rating_line
{
  margin-top: 6px;
}

.mini_meta
{
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--rmr_muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list_card
{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--rmr_line);
  border-radius: 16px;
  background: white;
  font: inherit;
  text-align: left;
  color: inherit;
}

.list_card .program_badge
{
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 15px;
}

.list_main
{
  flex: 1;
  min-width: 0;
}

.list_main b
{
  display: block;
  font-size: 15px;
  color: var(--rmr_slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list_main .rating_line
{
  margin-top: 3px;
}

.unsave_btn
{
  flex: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 19px;
  background: var(--rmr_red_soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.unsave_btn svg
{
  width: 18px;
  height: 18px;
}

.cta_card
{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 18px;
  border-radius: 20px;
  background: var(--rmr_slate);
  color: white;
}

.cta_card div
{
  flex: 1;
  min-width: 0;
}

.cta_card b
{
  display: block;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.cta_card span
{
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(255,255,255,0.72);
}

.cta_card .small_btn
{
  border: 0;
  background: var(--rmr_red);
  color: white;
}

.empty_state
{
  text-align: center;
  padding: 50px 20px 20px;
}

.empty_mark
{
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: var(--rmr_red_soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty_mark svg
{
  width: 34px;
  height: 34px;
}

.empty_state b
{
  display: block;
  font-size: 19px;
  color: var(--rmr_slate);
  margin-bottom: 6px;
}

.empty_state p
{
  margin: 0 auto 20px;
  max-width: 290px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--rmr_muted);
}

.my_review
{
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--rmr_line);
  border-radius: 18px;
  background: white;
}

.my_review_head
{
  display: flex;
  align-items: center;
  gap: 12px;
}

.my_review_head .program_badge
{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 14px;
}

.status_pill
{
  flex: none;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: #FDF3E1;
  color: #8A5A0B;
}

.my_review p
{
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--rmr_ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile_card
{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 18px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--rmr_line);
}

.profile_card .avatar_btn
{
  width: 56px;
  height: 56px;
  border-radius: 28px;
  font-size: 20px;
}

.profile_card b
{
  display: block;
  font-size: 18px;
  color: var(--rmr_slate);
}

.profile_card span
{
  font-size: 14px;
  color: var(--rmr_muted);
}

.stat_row
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.stat_tile
{
  padding: 14px 10px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--rmr_line);
  text-align: center;
}

.stat_tile b
{
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--rmr_slate);
}

.stat_tile span
{
  font-size: 12.5px;
  color: var(--rmr_muted);
}

.toggle
{
  flex: none;
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 15px;
  border: 0;
  background: #DDD8D3;
  transition: background 0.2s;
  padding: 0;
}

.toggle::after
{
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.toggle.on
{
  background: var(--rmr_red);
}

.toggle.on::after
{
  transform: translateX(20px);
}

.logout_btn
{
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 22px;
  border-radius: 14px;
  border: 1.5px solid rgba(224,58,87,0.4);
  background: white;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--rmr_red_dark);
}

.save_btn.chip_on
{
  background: var(--rmr_red_soft);
}

.toast
{
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
  z-index: 300;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--rmr_slate);
  color: white;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(22,34,44,0.25);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.3s cubic-bezier(.2,.8,.2,1);
}

.toast.toast_on
{
  opacity: 1;
  transform: translate(-50%, 0);
}

.acct_row
{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rmr_line);
}

.panel_label + .acct_row
{
  border-top: 0;
  padding-top: 2px;
}

/* shorter phones: the card shrinks first, then the chips go */

@media (max-height: 740px)
{
  .hero
  {
    margin-bottom: 18px;
  }

  .bars .bar_row_extra
  {
    display: none;
  }

  h1
  {
    font-size: clamp(26px, 7.6vw, 34px);
  }

  .mobile_description
  {
    margin: 8px auto 10px;
  }
}

@media (max-height: 640px)
{
  .chips
  {
    display: none;
  }
}

/* iPad: the same frame, grown into the space */

@media (min-width: 600px)
{
  .mobile_top_bar
  {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero
  {
    width: min(60vw, 440px);
  }

  h1
  {
    font-size: clamp(40px, 6vw, 54px);
  }

  .mobile_description
  {
    font-size: 19px;
    max-width: 480px;
  }

  .mobile_actions
  {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .pane_body > *,
  .search_fields,
  .filter_row,
  .pane_foot > *,
  .view_seg
  {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── live data ── */

/* a search on its way: the last results stay, dimmed */
.results.loading
{
  opacity: 0.5;
  transition: opacity 0.2s;
}

/* a program nobody has reviewed yet, on the results map */
.rate_pin.pin_new
{
  background: white;
  color: var(--rmr_muted);
}

.rate_pin.pin_new .star_meter i
{
  background: #DDD8D3;
}

.view_all_btn .results_count
{
  font-weight: 600;
}

.status_pill.published
{
  background: var(--rmr_green_soft, #E8F4EE);
  color: #1F6B47;
}
