/* Shared Oz treatments for the two planning journeys. */
:is(#oz-estimator, #oz-scope-review) {
  --text: #352a23;
  --muted: #625247;
  --line: #cbbdb0;
  --line-soft: #e3d8cd;
  --brand: #8a5027;
  --primary: #8a5027;
  --accent: #8a5027;
  --surface-soft: #f2ede6;
  --brand-soft: #f2ede6;
  --radius-xl: 14px;
  --radius-lg: 12px;
  --radius-md: 8px;
}

:is(#oz-estimator, #oz-scope-review) .hero {
  background: #f2ede6;
}

#oz-estimator .hero {
  padding-block: clamp(20px, 5vw, 56px);
}

#oz-estimator .hero-copy {
  text-align: left;
  margin-inline: auto;
}

#oz-estimator .hero-actions {
  justify-content: flex-start;
}

#oz-scope-review .planning-review-intro {
  padding-bottom: 0;
}

#oz-scope-review .hero {
  display: block;
  padding: clamp(16px, 4vw, 36px);
}

#oz-scope-review #reviewForm {
  padding-top: 18px;
}

:is(#oz-estimator, #oz-scope-review) .planning-limits {
  color: #625247;
  font-size: .925rem;
  margin-block: .65rem 0;
}

:is(#oz-estimator, #oz-scope-review) a:not([class*="button"]):not(.btn-primary) {
  text-decoration: underline;
  text-underline-offset: .18em;
}

#oz-estimator :is(.btn-primary, .wizard-nav .button, .oz-handoff-actions .button),
#oz-scope-review :is(.button, #quickUploadQuoteButton) {
  background: #8a5027;
  border-color: #8a5027;
  color: #fff;
}

#oz-estimator :is(.btn-primary, .wizard-nav .button, .oz-handoff-actions .button):hover,
#oz-scope-review :is(.button, #quickUploadQuoteButton):hover {
  background: #713e1e;
  border-color: #713e1e;
}

:is(#oz-estimator, #oz-scope-review) :is(a, button, input, select, textarea, summary):focus-visible,
#oz-scope-review .mode-card:focus-within {
  outline: 2px solid #713e1e;
  outline-offset: 3px;
}

#oz-estimator #quoteForm,
#oz-estimator [data-quote-step],
#oz-scope-review #reviewOutputPanel {
  scroll-margin-top: 105px;
}

#oz-estimator #stickyQuoteBar,
#oz-estimator .summary-priced-totals,
#oz-estimator #quoteBuildStatusPanel {
  display: none;
}

#oz-estimator #quoteForm .wizard-nav {
  position: static;
  margin-top: 14px;
  box-shadow: none;
}

#oz-estimator #quoteForm {
  padding-bottom: 20px;
}

#oz-estimator .wizard-step-pill[aria-current="step"] {
  background: #f2ede6;
  color: #713e1e;
  border-color: #8a5027;
}

:is(#oz-estimator, #oz-scope-review) .oz-handoff-actions {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-block: 14px;
  padding: clamp(12px, 3vw, 22px);
  background: #f2ede6;
  border: 1px solid #cbbdb0;
  border-radius: 10px;
}

:is(#oz-estimator, #oz-scope-review) .oz-handoff-actions label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}

:is(#oz-estimator, #oz-scope-review) .oz-handoff-actions input {
  flex: 0 0 auto;
  accent-color: #8a5027;
}

:is(#oz-estimator, #oz-scope-review) .oz-handoff-actions p {
  margin: 0;
}

#oz-scope-review .review-layout:not(.awaiting-detailed-upload) {
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
}

#oz-scope-review .review-layout.has-result .summary-card {
  grid-column: auto;
}

#oz-scope-review .planning-review-detail {
  border: 1px solid #cbbdb0;
  padding: 12px;
  border-radius: 8px;
}

#oz-scope-review .planning-review-detail summary {
  cursor: pointer;
  padding-block: 10px;
  font-weight: 650;
}

#oz-scope-review .planning-review-detail[open] > div {
  margin-top: 12px;
}

@media (max-width: 900px) {
  #oz-scope-review .review-layout:not(.awaiting-detailed-upload) {
    grid-template-columns: minmax(0, 1fr);
  }
}

#oz-scope-review .planning-review-empty > :not(.clarity-panel),
#oz-scope-review .planning-review-empty #quickResultTag {
  display: none;
}

#oz-estimator #quoteSummaryCard {
  scroll-margin-top: 105px;
}

#oz-estimator .planning-summary-notes summary {
  cursor: pointer;
  padding-block: 12px;
  font-weight: 650;
}

#oz-scope-review :is(.mode-card, .placeholder-upload, .inclusion-section, .summary-box) {
  border-color: #cbbdb0;
}

#oz-scope-review :is(.placeholder-upload, .inclusion-section summary, .risk-card) {
  background-color: #f2ede6;
}

#oz-estimator .hero .eyebrow {
  display: block;
  margin-block: 0 8px;
}

#oz-scope-review .hero :is(h1, .lead) {
  max-width: 62ch;
}

#oz-scope-review .planning-review-empty .risk-dot {
  background: #625247;
}
