/* A program on the website (program.php), on top of site.css and search.css: a header, the ratings,
   summary, pros / cons and every review down the main column, and the map, contact details and
   program data in a sticky side column. One column on a phone. */

.hide
{
  display: none !important;
}

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

.crumbs
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 6px;
  font-size: 14px;
  color: var(--rmr_muted);
}

.crumbs a:hover
{
  color: var(--rmr_red_dark);
}

.crumbs .here
{
  color: var(--rmr_slate);
  font-weight: 600;
}

/* ── the header ── */

/* as wide as the search page (search.css), so moving between them nothing jumps */
.program_page
{
  --page: 1440px;
}

.p_head
{
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 18px 0 26px;
}

/* the program's photo (public/img/programs/<id>.jpg), or a blank frame until it has one */
.p_photo
{
  flex: none;
  width: 168px;
  height: 126px;
  border-radius: 20px;
  object-fit: cover;
  background: #ECE8E4;
  border: 1px solid var(--rmr_line);
  box-shadow: 0 6px 18px rgba(22,34,44,0.08);
}

.p_photo.empty
{
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B7AEA6;
  box-shadow: none;
}

.p_photo.empty svg
{
  width: 44px;
  height: 44px;
}

.p_photo_btn
{
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: none;
  cursor: zoom-in;
}

.p_photo_btn .p_photo
{
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}

.p_photo_btn:hover .p_photo
{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(22,34,44,0.14);
}

/* ── Photos: the first one large, the rest beside it ── */

.photo_grid
{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 130px;
  gap: 10px;
}

/* fewer than four: the first takes the left, the others stack beside it, no gaps */
.photo_grid.n1
{
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 300px;
}

.photo_grid.n2,
.photo_grid.n3
{
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.photo_grid.n1 .photo_tile.first,
.photo_grid.n2 .photo_tile.first,
.photo_grid.n3 .photo_tile.first
{
  grid-column: auto;
}

.photo_grid.n2 .photo_tile:not(.first)
{
  grid-row: span 2;
}

.photo_tile
{
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #ECE8E4;
  cursor: zoom-in;
}

.photo_tile.first
{
  grid-column: span 2;
  grid-row: span 2;
}

.photo_tile img
{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo_tile:hover img
{
  transform: scale(1.04);
}

.photo_caption
{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 9px;
  background: linear-gradient(transparent, rgba(22,34,44,0.72));
  color: white;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.photo_credits
{
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--rmr_muted);
}

.photo_credits a
{
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(94,107,117,0.35);
}

.photo_credits a:hover
{
  color: var(--rmr_slate);
}

.photo_empty
{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1.5px dashed var(--rmr_line);
  border-radius: 14px;
}

.photo_empty_icon
{
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ECE8E4;
  color: #9E958D;
}

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

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

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

/* one photo full size */
.lightbox
{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 80px;
  background: rgba(14,20,26,0.96);
}

.lightbox[hidden]
{
  display: none;
}

html.lightbox_open
{
  overflow: hidden;
}

.lightbox figure
{
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.lightbox img
{
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 10px;
  object-fit: contain;
}

.lightbox figcaption
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.lightbox figcaption b
{
  color: white;
}

.lightbox figcaption a
{
  color: inherit;
  text-decoration: underline;
}

.lb_close,
.lb_nav
{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lb_close:hover,
.lb_nav:hover
{
  background: rgba(255,255,255,0.24);
}

.lb_close
{
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
}

.lb_nav
{
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  font-size: 36px;
}

.lb_prev
{
  left: 18px;
}

.lb_next
{
  right: 18px;
}

.badge.big
{
  width: 76px;
  height: 76px;
  border-radius: 22px;
  font-size: 25px;
}

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

.p_title h1
{
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -1.2px;
  line-height: 1.1;
}

.p_sub
{
  margin-top: 6px;
  font-size: 16px;
  color: var(--rmr_muted);
}

.p_rating
{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 15px;
}

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

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

.p_actions
{
  display: flex;
  gap: 10px;
  flex: none;
}

.save_btn
{
  box-shadow: none;
}

.save_btn.on
{
  border-color: rgba(224,58,87,0.45);
  background: var(--rmr_red_soft);
  color: var(--rmr_red_dark);
}

/* ── the two columns ── */

.p_layout
{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  padding-bottom: 72px;
}

.p_main
{
  display: grid;
  gap: 18px;
  min-width: 0;
}

.p_side
{
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.p_main .panel,
.p_side .panel
{
  padding: 22px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(22,34,44,0.04);
}

/* the ratings: score and bars beside the chart */
.p_scores
{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: start;
}

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

.score_side .stars
{
  margin-top: 8px;
}

.score_count
{
  margin: 6px 0 18px;
  font-size: 14px;
  color: var(--rmr_muted);
}

/* how many reviews gave each star, 5 down to 1, as in the app; a row filters the reviews to it */
.dist
{
  display: grid;
  gap: 4px;
}

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

.dist_btn:hover
{
  background: var(--rmr_bg);
}

.dist_btn.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);
}

.chart_side .vchart
{
  height: 200px;
  margin-top: 26px;
}

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

.chart_side .vval
{
  font-size: 15px;
}

.empty_panel
{
  text-align: center;
  padding: 40px 24px !important;
}

.empty_panel h2
{
  margin: 14px 0 8px;
  font-size: 24px;
}

.empty_panel p
{
  max-width: 420px;
  margin: 0 auto 20px;
  color: var(--rmr_muted);
  line-height: 1.5;
}

.ai_label
{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview_pill
{
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--rmr_bg);
  font-size: 11px !important;
  letter-spacing: 0.4px !important;
}

.summary_text
{
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--rmr_ink);
}

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

/* Pros and Cons: side by side, always the same height */
.pc_grid
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.pc_none
{
  margin: 6px 0 0;
  font-size: 14.5px;
  color: #9AA4AC;
}

.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;
}

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

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

.pc_mark.pro
{
  background: var(--rmr_green_soft);
}

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

.pc_text
{
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

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

/* ── reviews ── */

.p_reviews
{
  margin-top: 12px;
}

/* ── Questions: asked by members, answered by people who know the program ── */

.q_count
{
  padding-left: 10px;
  border-left: 1px solid var(--rmr_line);
}

.p_questions
{
  margin-top: 36px;
}

.q_lead
{
  margin: -6px 0 16px;
  font-size: 15px;
  color: var(--rmr_muted);
}

.ask_form,
.qa_answer_form
{
  display: grid;
  gap: 10px;
}

.ask_form[hidden],
.qa_answer_form[hidden],
.qa_empty[hidden],
.qa_form_error[hidden]
{
  display: none;
}

.ask_form
{
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 20px;
}

.ask_form textarea,
.qa_answer_form textarea
{
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--rmr_line);
  border-radius: 14px;
  background: white;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--rmr_ink);
  resize: vertical;
  outline: none;
}

.ask_form textarea:focus,
.qa_answer_form textarea:focus,
.qa_answer_form select:focus,
.qa_answer_form input:focus
{
  border-color: var(--rmr_red);
}

.qa_form_row
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.qa_form_row label
{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--rmr_muted);
}

.qa_form_row select,
.qa_form_row input
{
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--rmr_line);
  border-radius: 10px;
  background: white;
  font: inherit;
  font-size: 14px;
  color: var(--rmr_ink);
  outline: none;
}

.qa_form_row input
{
  width: 96px;
}

.qa_hint
{
  font-size: 13px;
  color: #9AA4AC;
}

.qa_form_error
{
  flex-basis: 100%;
  order: -1;
  font-size: 14px;
  font-weight: 600;
  color: var(--rmr_red_dark);
}

.qa_cancel
{
  margin-left: auto;
  height: 40px;
  padding: 0 14px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--rmr_muted);
  cursor: pointer;
}

.qa_form_row .btn
{
  height: 40px;
  box-shadow: none;
}

.qa_list
{
  display: grid;
  gap: 14px;
}

.qa_question
{
  padding: 20px 22px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--rmr_line);
  box-shadow: 0 4px 14px rgba(22,34,44,0.04);
}

.qa_q_row,
.qa_answer
{
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.qa_q_main,
.qa_a_main
{
  flex: 1;
  min-width: 0;
}

.qa_q_main h3
{
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  color: var(--rmr_slate);
}

.qa_meta
{
  margin-top: 6px;
  font-size: 13px;
  color: #9AA4AC;
}

/* the upvote: a small stacked ▲ and count */
.qa_vote
{
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 44px;
  padding: 6px 0 5px;
  border: 1.5px solid var(--rmr_line);
  border-radius: 12px;
  background: white;
  font: inherit;
  color: var(--rmr_muted);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

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

.qa_vote b
{
  font-size: 13.5px;
}

.qa_vote:hover
{
  border-color: var(--rmr_red);
  color: var(--rmr_red);
}

.qa_vote.on
{
  border-color: var(--rmr_red);
  background: var(--rmr_red_soft);
  color: var(--rmr_red_dark);
}

.qa_report
{
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.qa_report:hover
{
  color: var(--rmr_red_dark);
  text-decoration: underline;
}

/* answers sit under the question, indented to its text */
.qa_answers
{
  margin: 14px 0 0 58px;
}

.qa_answers:empty
{
  display: none;
}

.qa_answer
{
  padding: 14px 0;
  border-top: 1px solid var(--rmr_line);
}

.qa_answer .qa_vote
{
  width: 38px;
  border-radius: 10px;
}

.qa_a_main p
{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--rmr_ink);
}

.qa_role
{
  font-weight: 700;
  color: var(--rmr_navy);
}

.qa_role.role_resident,
.qa_role.role_attending
{
  color: var(--rmr_green);
}

.qa_answer_open
{
  margin: 12px 0 0 58px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--rmr_red_dark);
  cursor: pointer;
}

.qa_answer_open:hover
{
  text-decoration: underline;
}

.qa_answer_form
{
  margin: 12px 0 0 58px;
}

.qa_empty
{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 34px 20px;
  border: 1.5px dashed var(--rmr_line);
  border-radius: 20px;
  text-align: center;
}

.qa_empty b
{
  font-size: 17px;
  color: var(--rmr_slate);
}

.qa_empty span
{
  font-size: 14.5px;
  color: var(--rmr_muted);
}

.reviews_head
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.reviews_head h2
{
  font-size: 30px;
}

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

.reviews_head .btn
{
  box-shadow: none;
}

.review_tools
{
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  gap: 8px;
}

.review_tools .f_select select
{
  height: 41px;
}

.reviews_count
{
  margin: 14px 2px 10px;
  font-size: 14px;
  color: var(--rmr_muted);
}

.review_list
{
  display: grid;
  gap: 14px;
}

.review_list .review
{
  padding: 22px;
}

.review_body
{
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--rmr_ink);
}

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

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

.review_body mark
{
  background: #FDEBC0;
  color: inherit;
  border-radius: 3px;
}

.review_ratings
{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.review_ratings span
{
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--rmr_bg);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rmr_muted);
}

.review_ratings b
{
  color: var(--rmr_slate);
}

.review_ratings em
{
  font-style: normal;
  font-weight: 500;
  color: #9AA4AC;
}

/* Helpful? the tally on the left, Yes / No (each with its count) on the right; your vote is filled in */
.helpful
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rmr_line);
  font-size: 13.5px;
  color: var(--rmr_muted);
}

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

.helpful_btns
{
  display: flex;
  gap: 8px;
}

.helpful_btn
{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--rmr_line);
  border-radius: 17px;
  background: white;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rmr_ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.helpful_btn:hover
{
  border-color: #D6D0CB;
  background: var(--rmr_bg);
}

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

.helpful_n
{
  min-width: 10px;
  padding-left: 7px;
  border-left: 1px solid var(--rmr_line);
  color: var(--rmr_muted);
  font-variant-numeric: tabular-nums;
}

.helpful_btn[data_vote='1'].on
{
  background: var(--rmr_green_soft);
  border-color: var(--rmr_green);
  color: var(--rmr_green);
}

.helpful_btn[data_vote='0'].on
{
  background: var(--rmr_red_soft);
  border-color: var(--rmr_red);
  color: var(--rmr_red_dark);
}

.helpful_btn.on .helpful_n
{
  color: inherit;
  border-left-color: currentColor;
}

.helpful.busy .helpful_btn
{
  cursor: progress;
}

/* ── the side ── */

.side_map
{
  height: 200px;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rmr_line);
  background: #E9EEF0;
}

.side_address
{
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--rmr_ink);
}

.side_btn
{
  width: 100%;
  height: 42px;
  margin-top: 14px;
  box-shadow: none;
}

.side_btn svg
{
  width: 17px;
  height: 17px;
}

/* the review card, at the top of the side column; the header's Write a review only shows once the
   side column drops below the page (narrow screens) */
.head_review
{
  display: none;
}

.review_card
{
  text-align: center;
}

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

.review_card_icon svg
{
  width: 22px;
  height: 22px;
}

.review_card b
{
  display: block;
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--rmr_slate);
}

.review_card p
{
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rmr_muted);
}

.review_card .side_btn
{
  box-shadow: 0 8px 18px rgba(224,58,87,0.22);
}

/* the side column holds 20px under the sticky top bar; beside a member's rail there's no top bar */
body:has(> .rail) .p_side
{
  top: 24px;
}

/* ── About the program: the director, how to reach them, and the program's own words ── */

.about_grid
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 40px;
  margin-top: 6px;
}

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

.director_photo
{
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 14px rgba(22,34,44,0.12);
}

.director_photo.empty
{
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ECE8E4;
  color: #B7AEA6;
}

.director_photo.empty svg
{
  width: 40px;
  height: 40px;
}

.director_text b
{
  display: block;
  font-size: 19px;
  line-height: 1.25;
  color: var(--rmr_slate);
}

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

/* phone, email and ACGME ID across the right, each its own width; they wrap rather than squeeze */
.about_contact
{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.about_contact .info
{
  border-top: 0;
  padding: 0;
}

.about_contact .info span
{
  white-space: nowrap;
}

.about_contact .info a,
.about_contact .info b
{
  overflow-wrap: break-word;
}

.about_words
{
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rmr_line);
}

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

.about_words p
{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.about_words a
{
  font-weight: 700;
  color: var(--rmr_red_dark);
}

/* Program data's "Suggest an edit", in its heading */
.suggest_edit
{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rmr_red_dark);
}

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

.suggest_edit:hover
{
  text-decoration: underline;
}

/* Program data and Location, one above the other, each across the full width */
.info_stack
{
  display: grid;
  gap: 18px;
}

/* the data points side by side, as many across as fit */
#program_data
{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  column-gap: 24px;
}

#program_data .panel_label
{
  grid-column: 1 / -1;
}

#program_data .info
{
  border-top: 0;
  padding: 10px 0 4px;
}

/* the map wide, the address and Directions in a row under it */
#location .side_map
{
  height: 280px;
}

.location_foot
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.location_foot .side_btn
{
  flex: none;
  width: auto;
  margin-top: 0;
  padding: 0 20px;
}

/* About the program: a website not added yet, and the claim box for the program's own people */
.muted_link
{
  font-weight: 600;
  color: #9AA4AC !important;
}

.muted_link:hover
{
  color: var(--rmr_red_dark) !important;
}

.claim_box
{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--rmr_bg);
  border: 1px solid var(--rmr_line);
}

.claim_icon
{
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: white;
  color: var(--rmr_navy);
  border: 1px solid var(--rmr_line);
}

.claim_icon svg
{
  width: 22px;
  height: 22px;
}

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

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

.claim_text span
{
  font-size: 14px;
  line-height: 1.5;
  color: var(--rmr_muted);
}

.claim_box .btn
{
  flex: none;
  height: 42px;
  box-shadow: none;
}

.info
{
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--rmr_line);
  font-size: 15px;
}

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

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

.info b
{
  font-weight: 600;
  color: var(--rmr_ink);
  overflow-wrap: anywhere;
}

.info a
{
  font-weight: 600;
  color: #1F6FD1;
  overflow-wrap: anywhere;
}

.info em
{
  font-style: normal;
  color: #9AA4AC;
}

.side_link
{
  display: block;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--rmr_line);
  font-size: 14px;
  font-weight: 700;
  color: var(--rmr_red_dark);
}

.map_pin
{
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: var(--rmr_red);
  border: 3px solid white;
  box-shadow: 0 6px 14px rgba(224,58,87,0.45);
  transform: translate(-50%, -100%) rotate(-45deg);
}

/* ── narrower screens ── */

@media (max-width: 1020px)
{
  .p_layout
  {
    grid-template-columns: 1fr;
  }

  .p_side
  {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  /* the side column is now below the page: Write a review moves back to the header */
  .head_review
  {
    display: inline-flex;
  }

  .review_card
  {
    display: none;
  }

  .review_tools
  {
    grid-template-columns: 1fr 1fr;
  }

  .review_tools .f_input
  {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px)
{
  .p_head
  {
    flex-wrap: wrap;
    gap: 14px;
  }

  .qa_question
  {
    padding: 16px;
  }

  .qa_answers,
  .qa_answer_open,
  .qa_answer_form
  {
    margin-left: 0;
  }

  .claim_box,
  .location_foot
  {
    flex-direction: column;
    align-items: stretch;
  }

  .claim_box .btn,
  .location_foot .side_btn
  {
    width: 100%;
  }

  #location .side_map
  {
    height: 220px;
  }

  .about_contact
  {
    flex-direction: column;
    gap: 12px;
  }

  .director_photo
  {
    width: 68px;
    height: 68px;
  }

  .p_photo,
  .p_photo_btn
  {
    width: 100%;
    height: 180px;
    border-radius: 18px;
  }

  .photo_grid
  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 110px;
  }

  /* the small tiles are too small for a caption: the viewer shows it */
  .photo_tile:not(.first) .photo_caption
  {
    display: none;
  }

  .lightbox
  {
    padding: 70px 12px;
  }

  .lb_nav
  {
    top: auto;
    bottom: 18px;
    margin-top: 0;
  }

  .badge.big
  {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    font-size: 20px;
  }

  .p_title
  {
    flex-basis: calc(100% - 72px);
  }

  .p_actions
  {
    flex-basis: 100%;
  }

  .p_actions .btn
  {
    flex: 1;
    padding: 0 12px;
    white-space: nowrap;
  }

  .p_scores,
  .pc_grid,
  .p_side
  {
    grid-template-columns: 1fr;
  }

  .reviews_head h2
  {
    font-size: 24px;
  }
}
