/* =========================
   INTERACTIVE OPERATING ROOM (page-specific)
   Loaded after healthcare-detail.css, which supplies the project page template:
   video hero, explanation block, viewer window, Campaign Priorities table.
   This file holds only what is particular to this page, scoped to .orp-* or #viewer.orp-stage.
========================= */

/* ================= HERO ================= */
.orp-hero-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.42em;
  font-weight: 700;
  color: #ffffff;
}

.orp-concept {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fbeedd;
  color: #7a3d07;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ================= EXPLANATION ================= */
.hero-phil .hero-subtitle strong {
  color: #0f172a;
  font-weight: 700;
}

/* ================= SIX-PART OVERVIEW ================= */
.orp-overview {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}

.orp-overview-title {
  margin: 0;
  color: #0f172a;
  font: 800 clamp(20px, 2.2vw, 28px)/1.25 "Sora", system-ui, sans-serif;
}

.orp-overview-tagline {
  margin: 8px 0 0;
  color: #475569;
  font: 600 16px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
}

.orp-overview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.orp-overview-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.orp-overview-num {
  width: fit-content;
  background: linear-gradient(90deg, #257cff 0%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font: 800 22px/1.1 "Sora", system-ui, sans-serif;
}

.orp-overview-list strong {
  color: #0f172a;
  font: 700 16px/1.35 "Plus Jakarta Sans", system-ui, sans-serif;
}

.orp-overview-list li > span:last-child {
  color: #475569;
  font: 500 14px/1.6 "Plus Jakarta Sans", system-ui, sans-serif;
}

@media (max-width: 900px) {
  .orp-overview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .orp-overview-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

/* ================= THE VISION, THE PEOPLE BEHIND THE VISION ================= */
/* Both reuse the template's explanation block, so only the spacing is particular to them. */
#people {
  padding-top: 56px;
}

#people .hero-phil {
  padding-right: 0;
  padding-left: 0;
}

/* ================= 3D WINDOW ================= */
/* --orp-header is the shared sticky header's measured height, set by the stage script.
   The window fills the screen below it, because the viewer's panels need the room. */
#viewer.orp-stage {
  height: calc(100svh - var(--orp-header, 116px));
  min-height: 520px;
  background: #ffffff;
  scroll-margin-top: var(--orp-header, 116px);
}

/* The site's floating assistant button sits over the viewer's own controls while exploring. */
body.orp-exploring .ai-bot-fab {
  display: none;
}

/* Shown only while exploring, because the plan fills the screen and would otherwise keep the page from scrolling. */
.orp-done {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  padding: 7px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(14, 20, 27, 0.14);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(14, 34, 42, 0.14);
  color: #0e141b;
  font: 600 13px "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
}

.orp-done:hover {
  background: #f1f5f9;
}

.orp-done[hidden] {
  display: none;
}

.orp-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
}

.orp-start:hover .orp-start-pill {
  background: #145a72;
}

.orp-start[hidden] {
  display: none;
}

.orp-start-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: min(460px, calc(100% - 32px));
  padding: 16px 28px;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  background: #1b6b86;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.orp-start-pill small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.92;
}

/* ================= CAMPAIGN PRIORITIES ================= */
.orp-cp h3 {
  margin: 36px 0 10px;
  color: #0f172a;
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
}

/* The video floats right, level with the heading: the text runs beside it, then full width once past it. */
.orp-cp {
  margin-top: 0;
  padding-top: 72px;
}

.orp-cp::after {
  content: "";
  display: block;
  clear: both;
}

.orp-cp .table-title {
  width: auto;
  margin: 0 0 10px;
}

.orp-reel {
  float: right;
  width: min(34%, 380px);
  margin: 0 0 24px 44px;
}

.orp-reel-video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  background: #0e141b;
}

.orp-reel-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: #1b6b86;
  font: 600 14px "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
}

.orp-reel-share:hover {
  color: #145a72;
  text-decoration: underline;
}

.orp-reel-share:focus-visible {
  outline: 3px solid #1b6b86;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Too narrow to run text beside it: heading, then the video, then the text. */
@media (max-width: 760px) {
  .orp-cp {
    display: flex;
    flex-direction: column;
    padding-top: 56px;
  }

  .orp-cp .table-title {
    order: -2;
  }

  .orp-reel {
    order: -1;
    float: none;
    width: min(100%, 420px);
    margin: 10px auto 8px;
  }
}

.orp-cp p {
  margin: 0 0 12px;
  color: #475569;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.72;
}

.orp-cp strong {
  color: #0f172a;
  font-weight: 700;
}

.orp-priorities-wrap {
  margin-top: 32px;
  margin-bottom: 48px;
}

/* Two columns fit a phone, so the template's minimum table width is not needed here. */
.naming-table.orp-priorities {
  min-width: 0;
}

.orp-priorities thead th:nth-child(2) {
  text-align: right;
}

.orp-priorities tbody tr {
  cursor: default;
}

.orp-priorities tbody th {
  padding: 11px 16px 11px 32px;
  border-bottom: 1px solid #eef2f7;
  color: #0f172a;
  font-weight: 500;
  text-align: left;
}

.orp-priorities tbody td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.orp-priorities .orp-area th,
.orp-priorities .orp-area td {
  padding-top: 14px;
  padding-bottom: 14px;
  padding-left: 16px;
  background: #f1f5f9;
  font-weight: 700;
}

.orp-priorities .orp-room th,
.orp-priorities .orp-room td {
  padding-top: 18px;
  padding-bottom: 18px;
  padding-left: 16px;
  background: #e3ecfb;
  font-size: 17px;
  font-weight: 800;
}

.orp-count {
  margin-left: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

/* ================= SHARING ================= */
.orp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.orp-priorities tr[id] {
  scroll-margin-top: calc(var(--orp-header, 116px) + 16px);
}

.orp-priorities tr:target th,
.orp-priorities tr:target td {
  background: #fdf3d9;
}

.naming-table.orp-priorities td.orp-share-cell {
  width: 1%;
  padding: 6px 10px;
  white-space: nowrap;
}

.orp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1b6b86;
  cursor: pointer;
}

.orp-share-btn:hover {
  color: #145a72;
  background: rgba(27, 107, 134, 0.1);
}

.orp-share-btn:focus-visible,
.orp-net:focus-visible,
.orp-tool:focus-visible {
  outline: 3px solid #1b6b86;
  outline-offset: 2px;
}

.orp-sharebox {
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.orp-sharebox::backdrop {
  background: rgba(6, 14, 18, 0.72);
}

.orp-sharebox img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #e6e8eb;
}

.orp-sharebox-body {
  padding: 16px 18px 18px;
}

.orp-sharebox-title {
  margin: 0 0 6px;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.orp-sharebox-text {
  margin: 0 0 14px;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.5;
}

.orp-sharebox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.orp-sharebox-actions--tools {
  margin-top: 10px;
}

.orp-net,
.orp-tool {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 13.5px "Plus Jakarta Sans", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.orp-net {
  border: 1px solid #1b6b86;
  background: #1b6b86;
  color: #ffffff;
}

.orp-net:hover {
  border-color: #145a72;
  background: #145a72;
}

.orp-net[hidden] {
  display: none;
}

.orp-tool {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

.orp-tool:hover {
  background: #f1f5f9;
}

.orp-sharebox-close {
  margin-left: auto;
}

.orp-sharebox-phone {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #eef6f9;
}

.orp-sharebox-phone[hidden] {
  display: none;
}

.orp-sharebox img[data-share-qr] {
  flex: none;
  width: 132px;
  height: 132px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
}

.orp-sharebox-phone-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.orp-sharebox-phone p {
  margin: 0 0 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.orp-sharebox-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: #145a72;
  font-size: 13px;
  font-weight: 600;
}

/* ================= VIDEO AFTER THE TABLE ================= */
/* Edge to edge, down to the site footer. */
/* The film of families filling the room, under the donation button. Inset with rounded corners, so it reads apart from the full-width video above. */
.orp-community {
  padding-top: 8px;
  padding-bottom: 56px;
}

.orp-community-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 20px 0 0;
  border-radius: 14px;
  background: #0e141b;
}

.orp-cp .orp-community-note {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.orp-message {
  width: 100%;
  margin: 0;
}

.orp-message-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e141b;
}

.orp-message-cta {
  display: flex;
  justify-content: center;
  padding: 16px 16px 56px;
  text-align: center;
}

/* ================= SMALL SCREENS ================= */
/* The viewer's title and tabs fill its top edge at this width, so the button sits below them. */
@media (max-width: 900px) {
  .orp-done {
    top: 86px;
  }
}

@media (max-width: 600px) {
  .orp-start-pill {
    font-size: 16px;
  }

  /* Let price ranges wrap so the column stays on screen. */
  .orp-priorities tbody th {
    padding-left: 18px;
    padding-right: 8px;
  }

  .naming-table.orp-priorities td.cost {
    width: 34%;
    padding-right: 8px;
    padding-left: 4px;
    font-size: 14px;
    white-space: normal;
  }

  .orp-priorities .orp-area th,
  .orp-priorities .orp-room th {
    padding-left: 10px;
  }

  .orp-priorities .orp-room th,
  .orp-priorities .orp-room td {
    font-size: 15px;
  }

  .orp-count {
    display: block;
    margin-left: 0;
  }

  .naming-table.orp-priorities td.orp-share-cell {
    padding: 4px 4px 4px 0;
  }
}
