/* Open Road Stays — Audit Results Page Styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Brand palette */
  --ors-sunrise: #FFB01F;
  --ors-sunrise-50: #FFF6E3;
  --ors-sunrise-100: #FFE9B8;
  --ors-sunrise-200: #FFD778;
  --ors-sunrise-600: #D98A00;
  --ors-sunrise-700: #A86A00;
  --ors-flame: #FF8000;
  --ors-flame-50: #FFEFDD;
  --ors-flame-100: #FFD5A8;
  --ors-flame-600: #D56600;
  --ors-flame-700: #9F4C00;
  --ors-sky: #008AD4;
  --ors-sky-50: #E5F4FB;
  --ors-sky-100: #BCE1F4;
  --ors-sky-200: #7DC5EB;
  --ors-sky-600: #006BA5;
  --ors-deep: #0078B5;
  --ors-deep-600: #005C8B;
  --ors-ink: #1F1A17;
  --ors-ink-80: rgba(31, 26, 23, 0.80);
  --ors-ink-60: rgba(31, 26, 23, 0.60);
  --ors-ink-40: rgba(31, 26, 23, 0.40);
  --ors-ink-20: rgba(31, 26, 23, 0.20);
  --ors-ink-10: rgba(31, 26, 23, 0.10);
  --ors-ink-05: rgba(31, 26, 23, 0.05);
  --ors-sand-50: #FBF9F6;
  --ors-sand-100: #F4F0EA;
  --ors-sand-200: #E8E1D6;
  --ors-sand-300: #D4CBBD;
  --ors-sand-400: #A89C8A;
  --ors-sand-500: #766B5C;
  --ors-white: #FFFFFF;

  --bg: var(--ors-sand-50);
  --bg-elevated: var(--ors-white);
  --bg-muted: var(--ors-sand-100);
  --fg: var(--ors-ink);
  --fg-muted: var(--ors-ink-80);
  --fg-subtle: var(--ors-ink-60);
  --fg-disabled: var(--ors-ink-40);
  --border: var(--ors-sand-200);
  --border-strong: var(--ors-sand-300);
  --accent: var(--ors-flame);
  --accent-hover: var(--ors-flame-600);
  --link: var(--ors-deep);
  --link-hover: var(--ors-deep-600);

  --success: #2F8F5E;
  --success-soft: #E3F3EA;
  --success-dark: #1E6B45;
  --warning: var(--ors-sunrise);
  --warning-soft: var(--ors-sunrise-50);
  --danger: #C4432B;
  --danger-soft: #FBE6E1;

  /* Grade colors — F→A horizon */
  --grade-f: #C4432B;
  --grade-d: #E25A1F;
  --grade-c: #E8A11A;
  --grade-b: #7CAE3E;
  --grade-a: #2F8F5E;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(31, 26, 23, 0.06);
  --shadow-sm: 0 2px 6px rgba(31, 26, 23, 0.06), 0 1px 2px rgba(31, 26, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(31, 26, 23, 0.08), 0 2px 4px rgba(31, 26, 23, 0.04);
  --shadow-lg: 0 18px 48px rgba(31, 26, 23, 0.10), 0 4px 8px rgba(31, 26, 23, 0.05);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle warm coastal backdrop — sand with a soft horizon wash */
body {
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(255, 176, 31, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(0, 138, 212, 0.06), transparent 60%),
    var(--ors-sand-50);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

/* --- Layout --- */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px 80px;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.brand-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-bar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-bar img {
  height: 36px;
  width: auto;
  display: block;
}
.brand-bar .brand-tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-subtle);
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  box-shadow: var(--shadow-sm);
}
.sidebar-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ors-flame);
  padding: 12px 12px 8px;
}
.sidebar-eyebrow.muted { color: var(--fg-subtle); }
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  text-align: left;
}
.nav-item:hover { background: var(--ors-sand-100); color: var(--fg); }
.nav-item.active {
  background: var(--ors-ink);
  color: var(--ors-white);
  font-weight: 600;
}
.nav-item.active .nav-dot {
  background: var(--ors-flame);
}
.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  margin-left: auto;
}
.nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.85;
}
.nav-sub {
  display: flex;
  flex-direction: column;
  margin-left: 28px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  gap: 2px;
  margin-top: 4px;
  margin-bottom: 6px;
}
.nav-sub .nav-item {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
}
.nav-sub .nav-item.active {
  background: var(--ors-sand-100);
  color: var(--fg);
}
.nav-caret {
  margin-left: auto;
  width: 14px;
  height: 14px;
  transition: transform 140ms ease-out;
}
.nav-caret.open { transform: rotate(180deg); }

.back-to-top {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* --- Cards --- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.card + .card { margin-top: 24px; }
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.card-header-left {
  display: flex;
  gap: 16px;
  align-items: center;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--ors-flame-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ors-flame);
  flex-shrink: 0;
}
.card-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0;
}
.card-subtitle {
  font-size: 14px;
  color: var(--fg-subtle);
  margin-top: 2px;
}

/* --- Grade chip --- */
.grade-chip {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(31, 26, 23, 0.12), inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  letter-spacing: -0.02em;
}
.grade-chip.sm { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
.grade-chip.xs { width: 24px; height: 24px; font-size: 13px; border-radius: 7px; }
.grade-chip.lg { width: 96px; height: 96px; font-size: 56px; border-radius: 22px; }
/* Per-section header chip — slightly smaller than the Overview composite
   (.lg = 96px) to preserve grade hierarchy. 76px ≈ 0.79 × 96px; font-size
   and border-radius scaled proportionally, consistent with .sm/.xs/.lg. */
.grade-chip.md { width: 76px; height: 76px; font-size: 40px; border-radius: 18px; }

.grade-A { background: var(--grade-a); }
.grade-B { background: var(--grade-b); }
.grade-C { background: var(--grade-c); }
.grade-D { background: var(--grade-d); }
.grade-F { background: var(--grade-f); }

/* --- Overview hero card --- */
.overview {
  padding: 32px 36px 36px;
}
.overview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--fg-subtle);
  margin-bottom: 18px;
}
.overview-top .gen-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.expert-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ors-flame);
  color: white;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 140ms ease-out, transform 140ms ease-out;
  box-shadow: 0 6px 18px rgba(255, 128, 0, 0.25);
}
.expert-btn:hover { background: var(--accent-hover); }
.expert-btn:active { transform: scale(0.98); }

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}
.overview-title {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-wrap: balance;
  color: var(--fg);
}
.listing-meta {
  font-size: 14px;
  color: var(--fg-subtle);
  margin-bottom: 20px;
}
.listing-meta .ors-link {
  color: var(--link);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.listing-meta .ors-link:hover { color: var(--link-hover); text-decoration: underline; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}
.badge.miss {
  color: var(--fg-disabled);
  background: var(--ors-sand-50);
}
.badge.miss .badge-icon { color: var(--danger); }
.badge.have { color: var(--fg); }
.badge.have .badge-icon { color: var(--success); }
.badge.info .badge-icon { color: var(--ors-sky); }

.overview-desc {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 62ch;
  text-wrap: pretty;
  margin: 0 0 28px;
}

.grade-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 12px 24px 12px 20px;
}
.grade-stack-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.65;
}
.grade-stack-deco span {
  position: absolute;
  border: 1.5px solid var(--ors-sand-300);
  border-radius: 10px;
  background: transparent;
}
.grade-stack-deco span:nth-child(1) { width: 32px; height: 32px; top: 8px; left: 4px; transform: rotate(-6deg); }
.grade-stack-deco span:nth-child(2) { width: 24px; height: 24px; top: 4px; right: 0; transform: rotate(8deg); }
.grade-stack-deco span:nth-child(3) { width: 28px; height: 28px; bottom: 4px; left: 12px; transform: rotate(12deg); opacity: 0.5; }
.grade-stack-deco span:nth-child(4) { width: 22px; height: 22px; bottom: 18px; right: -2px; transform: rotate(-10deg); opacity: 0.5; }

.grade-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* --- Global Score Progress --- */
.score-section {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.score-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 14px;
}
.score-bar-track {
  position: relative;
  height: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    var(--grade-f) 0%,
    var(--grade-d) 22%,
    var(--grade-c) 45%,
    var(--grade-b) 72%,
    var(--grade-a) 100%
  );
  overflow: visible;
  opacity: 0.95;
}
.score-bar-mask {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, transparent 0%, transparent var(--progress, 50%), rgba(232, 225, 214, 0.85) var(--progress, 50%), rgba(232, 225, 214, 0.85) 100%);
}
.score-bar-marker {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--ors-ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(31, 26, 23, 0.2);
  z-index: 2;
}
.score-bar-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-subtle);
  letter-spacing: 0.05em;
}
.score-bar-labels span { text-align: center; }
.score-bar-labels span:first-child { text-align: left; }
.score-bar-labels span:last-child { text-align: right; }

.score-calc {
  margin-top: 28px;
}
.score-calc-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ors-flame);
  margin-bottom: 8px;
}
.score-calc-lede {
  color: var(--fg-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.subgrade-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.subgrade-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 140ms ease-out;
  cursor: pointer;
}
.subgrade-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.subgrade-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.subgrade-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.subgrade-bar {
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--ors-sand-100);
  overflow: hidden;
}
.subgrade-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 380ms ease-out;
}

/* --- Audit sub-card boxes --- */
.box {
  background: var(--ors-sand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.box.warm { background: var(--warning-soft); border-color: rgba(255, 176, 31, 0.30); }
.box.warm-soft { background: #FEF6E8; border-color: #F5E6C4; }
.box.danger { background: var(--danger-soft); border-color: rgba(196, 67, 43, 0.20); }
.box.success { background: var(--success-soft); border-color: rgba(47, 143, 94, 0.20); }
.box.info { background: var(--ors-sky-50); border-color: rgba(0, 138, 212, 0.18); }
.box.flame { background: var(--ors-flame-50); border-color: rgba(255, 128, 0, 0.18); }

.box-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.box-row .box-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.box-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 6px;
}
.box-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}

/* ─── Section card header — two-column layout ─────────────────────────
   Right-anchors the grade chip on all 5 per-section headers (Inconsistencies,
   Title, Description, Photo, Reviews — all rendered through SectionCard) so
   the chip reads as the section's overall grade rather than a note on the
   subtitle. The Overview hero uses its own .overview markup and is
   intentionally unaffected — it is the reference pattern. The left block
   keeps its existing icon → title → subtitle vertical stack; only the chip's
   position and size change. */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

@media (max-width: 640px) {
  /* Narrow viewport: collapse to a vertical stack — text block on top,
     grade chip below it, right-aligned within its row. */
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }
  .section-head .grade-chip {
    align-self: flex-end;
  }
}

.section-sub-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 10px;
}

.section-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.list-stack { display: flex; flex-direction: column; gap: 10px; }

/* Inconsistency item */
.inc-item {
  background: var(--warning-soft);
  border: 1px solid rgba(255, 176, 31, 0.32);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
}
.inc-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ors-sunrise);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.inc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  color: var(--ors-flame-700);
  background: transparent;
  white-space: nowrap;
}
.tag.section { color: var(--ors-flame); }
.tag.sev {
  color: white;
  border-radius: 4px;
}
.tag.sev.high { background: var(--danger); }
.tag.sev.med { background: var(--ors-sunrise); color: var(--ors-ink); }
.tag.sev.low { background: var(--ors-sunrise-200); color: var(--ors-sunrise-700); }
.tag.kind {
  color: var(--fg-subtle);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
.inc-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
}

.found-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ors-flame);
  font-size: 15px;
  margin-bottom: 14px;
}

/* Title audit content box */
.content-quote {
  border-left: 3px solid var(--ors-flame);
  padding: 8px 0 8px 16px;
  font-style: italic;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}
.content-quote.serif {
  font-family: var(--font-display);
  font-size: 17px;
}

.rec-item, .well-item {
  background: var(--ors-sand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}
.rec-item .icon { color: var(--ors-flame); flex-shrink: 0; margin-top: 2px; }
.well-item .icon { color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* --- Description Audit nav --- */
.desc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.desc-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: all 140ms ease-out;
}
.desc-nav-btn:hover {
  border-color: var(--ors-flame);
  color: var(--ors-flame);
  background: var(--ors-flame-50);
}
.desc-nav-btn:disabled { opacity: 0; pointer-events: none; }
.desc-current {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.desc-current h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.toggle-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ors-flame);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}
.toggle-link:hover { color: var(--accent-hover); }

/* --- Photo gallery --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.photo-tile {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--ors-sand-100);
  border: 1px solid var(--border);
}
.photo-tile .photo-bg {
  position: absolute;
  inset: 0;
}
.photo-tile .photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 23, 0.55);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
}
.photo-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.coverage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  background: var(--ors-sand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 16px 0 24px;
}
.coverage-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.coverage-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 4px;
}
.coverage-sub {
  font-size: 13px;
  color: var(--fg-muted);
}
.coverage-progress {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--ors-sand-200);
  overflow: hidden;
  max-width: 280px;
}
.coverage-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ors-sunrise) 0%, var(--ors-flame) 100%);
  border-radius: var(--radius-pill);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}
.chip.have { background: var(--success-soft); border-color: rgba(47, 143, 94, 0.25); color: var(--success-dark); }
.chip.miss { background: var(--danger-soft); border-color: rgba(196, 67, 43, 0.25); color: var(--danger); }
.chip-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--fg);
}
.chip-section-label.miss-label { color: var(--danger); }
.chip-section-label.have-label { color: var(--success-dark); }

/* --- Reviews --- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.stat-card {
  background: var(--ors-sand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.stat-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-eyebrow .icon { color: var(--ors-flame); }
.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.stat-value.sm { font-size: 22px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 28px;
  margin-top: 16px;
  background: var(--ors-sand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.cat-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
}
.cat-row-top .cat-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  font-weight: 500;
}
.cat-row-top .cat-name .icon { color: var(--ors-flame); }
.cat-row-top .cat-score {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
}
.cat-bar {
  height: 6px;
  background: var(--ors-sand-200);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.cat-bar-fill {
  height: 100%;
  background: var(--ors-flame);
  border-radius: var(--radius-pill);
}

.dist-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 36px;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
}
.dist-row .star-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--fg-muted);
  font-weight: 600;
}
.dist-row .star-label .star { color: var(--ors-sunrise); }
.dist-bar {
  height: 8px;
  background: var(--ors-sand-200);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.dist-bar-fill {
  height: 100%;
  background: var(--ors-flame);
  border-radius: var(--radius-pill);
}
.dist-pct {
  text-align: right;
  color: var(--fg-muted);
  font-weight: 600;
}

/* Trendline */
.trend-card {
  background: var(--ors-sand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 16px;
}
.trend-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 600;
}
.trend-head .icon { color: var(--ors-flame); }

/* SVG-style sun bar -- decorative element */
.sun-bar {
  height: 4px;
  width: 48px;
  background: linear-gradient(90deg, var(--ors-sunrise), var(--ors-flame));
  border-radius: var(--radius-pill);
}

/* Decorative horizon icon block placed in overview top-right corner area */
.horizon-deco {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFB01F 0%, #FF8000 55%, #008AD4 55%, #0078B5 100%);
  box-shadow: 0 8px 24px rgba(255, 128, 0, 0.20);
}
.horizon-deco::before {
  content: "";
  position: absolute;
  top: 22%;
  right: 18%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFE9B8;
  box-shadow: 0 0 24px rgba(255, 233, 184, 0.5);
}
.horizon-deco::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 255, 255, 0.65), transparent 70%);
  clip-path: polygon(0% 35%, 30% 25%, 55% 50%, 75% 30%, 100% 45%, 100% 100%, 0% 100%);
}

@media (max-width: 820px) {
  .page { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { position: relative; top: 0; }
  .subgrade-row { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-title { font-size: 32px; }
}

/* ─── vREVEAL1 addition: .tag.sev.critical ──────────────────────────
   Engine emits 4 severities (Critical/High/Medium/Low); mockup styles.css
   ships only .high/.med/.low. v1.7 retired Critical/High for Material
   amenity contradiction but Critical is still reachable from Structural /
   Location-view / Capacity divergence types. Deepest red, visually
   distinct from .high. */
.tag.sev.critical {
  background: #fce7e7;
  color: #8a1313;
  border: 1px solid #f5b8b8;
}

/* ─── vREVEAL1 Phase 4: ComingSoonBlock ──────────────────────────────
   Per brief §4: "Renders as a card visually distinct from real data
   (lighter background, subtle 'Coming soon' badge in the upper-right,
   the explainer copy below). No fake numbers, no fake charts." */
.coming-soon-block {
  position: relative;
  background: linear-gradient(180deg, #faf7f2 0%, #f5f0e7 100%);
  border: 1px dashed #d4cbbd;
  border-radius: var(--radius-md, 10px);
  padding: 22px 26px 18px;
  margin-bottom: 14px;
}
.coming-soon-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ors-sand-600, #7a6f5e);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #d4cbbd;
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1;
}
.coming-soon-title {
  font-family: var(--serif, "Fraunces", serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--fg, #1F1A17);
  margin: 0 0 8px;
  padding-right: 110px;
}
.coming-soon-why {
  font-size: 14px;
  color: var(--fg-subtle, #5a4f3e);
  line-height: 1.6;
  margin: 0 0 10px;
  max-width: 70ch;
}
.coming-soon-eta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ors-flame, #FF8000);
  margin: 0;
}
