/* The explorer and services share one responsive header and persistent panels. */
:root { --header-height: 76px; }
.topbar { height: var(--header-height); }
.workspace, .services-panel { height: calc(100dvh - var(--header-height)); }
.view-tabs { display: flex; align-self: stretch; gap: 22px; margin-left: 4px; }
.view-tabs button { position: relative; border: 0; background: transparent; color: #d0def1; padding: 0 2px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.view-tabs button:hover { color: white; }
.view-tabs button[aria-selected="true"] { color: var(--mint); }
.view-tabs button[aria-selected="true"]::after { content: ''; position: absolute; height: 3px; background: var(--mint); bottom: 0; left: 0; right: 0; border-radius: 3px 3px 0 0; }
.view-tabs button:focus-visible { outline-offset: -5px; }
.services-panel { overflow-y: auto; overscroll-behavior: contain; background: var(--paper); color: var(--navy); scrollbar-color: #bacde3 transparent; }
.services-panel:focus-visible { outline: 3px solid var(--bright); outline-offset: -3px; }
.services-content { max-width: 1360px; margin: auto; padding: 48px clamp(24px, 5vw, 72px) 0; }
.services-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: clamp(28px, 5vw, 72px); padding-bottom: 42px; }
.services-intro h1 { color: var(--navy); font: 600 clamp(34px, 3.7vw, 54px)/1.08 Fraunces, Georgia, serif; letter-spacing: -.035em; margin: 18px 0 22px; }
.services-intro h1 em { color: var(--green-ink); font-weight: 500; }
.services-intro > p { font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 510px; margin: 0 0 26px; }
.service-primary { display: inline-flex; align-items: center; gap: 28px; border: 1px solid var(--navy); border-radius: 10px; background: var(--navy); color: white; padding: 14px 19px; font-size: 13px; font-weight: 700; min-height: 48px; }
.service-primary:hover { background: var(--deep); border-color: var(--deep); }
.service-primary > span { color: var(--mint); font-size: 18px; }
.services-opportunity { background: var(--mint); color: var(--green-ink); border: 1px solid #a9efa0; border-radius: 18px; padding: 20px; }
.services-opportunity .eyebrow { color: var(--green-ink); font-size: 10px; }
.opportunity-heading { margin-bottom: 12px; }
.opportunity-metric { padding: 0 0 10px; }
.opportunity-metric + .opportunity-metric { border-top: 1px solid #0c4a3826; padding-top: 12px; }
.opportunity-metric > span { display: block; font-size: 12px; font-weight: 700; }
.opportunity-metric strong { display: block; font: 600 clamp(27px, 2.9vw, 39px)/1.15 Fraunces, Georgia, serif; letter-spacing: -.03em; margin: 4px 0; overflow-wrap: anywhere; }
.opportunity-metric + .opportunity-metric strong { font-size: clamp(25px, 2.5vw, 31px); }
.opportunity-metric small { display: block; font-size: 11px; line-height: 1.5; }
.opportunity-note { margin-top: 4px; }
.opportunity-types { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid #0c4a381c; }
.opportunity-types li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid #0c4a381c; }
.opportunity-types li > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; }
.opportunity-types li:last-child { border-bottom: 0; padding-bottom: 0; }
.opportunity-type-label { font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.opportunity-types small { font-size: 10px; margin: 0; white-space: nowrap; }
.opportunity-type-value { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.opportunity-more-types { margin-top: 5px; }
.opportunity-more-types > summary { cursor: pointer; font-size: 11px; font-weight: 700; padding: 4px 0; min-height: 24px; }
.opportunity-more-types > summary:hover { text-decoration: underline; }
.opportunity-more-types > summary:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 2px; }
.opportunity-more-types .opportunity-types { margin-top: 4px; }
.service-map-link { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; min-height: 36px; border: 0; border-top: 1px solid #0c4a3826; background: none; color: var(--green-ink); padding: 8px 0 0; font-size: 12px; font-weight: 700; }
.service-map-link:hover { text-decoration: underline; }
.services-offering { padding: 34px 0 40px; border-top: 1px solid var(--line); }
.services-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 25px; }
.services-section-heading h2 { font: 600 clamp(26px, 2.5vw, 34px)/1.2 Fraunces, Georgia, serif; letter-spacing: -.025em; margin: 10px 0 0; }
.services-section-heading > p { max-width: 380px; font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0; }
.service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { display: flex; flex-direction: column; padding: 25px 24px 0; border: 1px solid var(--line); border-radius: 15px; background: white; }
.service-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sky); color: var(--deep); font-size: 26px; margin-bottom: 22px; }
.service-card:nth-child(2) .service-symbol { background: #e9fbe5; color: var(--green-ink); }
.service-card:nth-child(3) .service-symbol { background: var(--navy); color: var(--mint); }
.service-kicker { font: 500 9px 'DM Mono', monospace; letter-spacing: .07em; color: var(--muted); }
.service-card h3 { font: 600 23px/1.2 Fraunces, Georgia, serif; letter-spacing: -.02em; margin: 12px 0; }
.service-card > p, .service-card li { font-size: 12px; line-height: 1.7; color: var(--muted); }
.service-card > p { margin: 0 0 15px; }
.service-card ul { padding-left: 17px; margin: 0 0 23px; }
.service-card li { padding-left: 3px; margin-bottom: 10px; }
.service-card li::marker { color: var(--deep); }
.service-outcome { border-top: 1px solid var(--line); padding: 17px 0 20px; margin-top: auto; font-size: 11px; line-height: 1.6; font-weight: 700; }
.pilot-outline { padding: 30px; margin: 4px 0 36px; background: var(--navy); color: white; border-radius: 18px; }
.pilot-outline .eyebrow { color: var(--mint); }
.pilot-outline .services-section-heading > p { color: #c9d9ef; }
#pilot-heading:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
.pilot-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; counter-reset: pilot; padding: 8px 0 0; margin: 0; }
.pilot-steps li { counter-increment: pilot; }
.pilot-steps li::before { content: '0' counter(pilot); display: block; padding-bottom: 14px; border-bottom: 1px solid #ffffff26; font: 500 13px 'DM Mono', monospace; color: var(--mint); }
.pilot-steps h3 { font-size: 14px; line-height: 1.5; margin: 16px 0 9px; }
.pilot-steps p { font-size: 12px; line-height: 1.7; color: #c9d9ef; margin: 0; }
.pilot-note { font-size: 11px; line-height: 1.5; color: #c9d9ef; margin: 25px 0 0; }
.services-footer { border-top: 1px solid var(--line); padding: 22px 0 26px; font-size: 11px; color: var(--muted); }
.estimate-annual { border-top: 1px solid #0c4a3826; padding-top: 8px; margin-top: 8px; }
.estimate-annual > strong { display: block; font: 600 19px/1.2 Fraunces, Georgia, serif; }
.estimate-annual small, .estimate-pending { display: block; font-size: 10px; line-height: 1.5; }
#portfolio-estimate-pending, #services-estimate-pending { margin-top: 7px; }
.funding-note { display: block; margin-top: 6px; font-size: 10px; font-weight: 700; line-height: 1.5; }
.opportunity-metric > .funding-note { font-size: 11px; }
.funding-note:empty, #portfolio-estimate-pending:empty, #services-estimate-pending:empty { display: none; }
.opportunity-calculation { margin-top: 9px; border-top: 1px solid #0c4a3826; }
.opportunity-calculation > summary { cursor: pointer; min-height: 32px; padding: 8px 0; font-size: 11px; font-weight: 700; }
.opportunity-calculation > summary:hover { text-decoration: underline; }
.opportunity-calculation > summary:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.opportunity-calculation dl { margin: 0; }
.opportunity-calculation dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 7px 0; border-top: 1px solid #0c4a381c; font-size: 11px; }
.opportunity-calculation dt { font-weight: 600; }
.opportunity-calculation dt small { display: block; font-size: 10px; font-weight: 400; }
.opportunity-calculation dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.opportunity-calculation p { margin: 8px 0; font-size: 10px; line-height: 1.5; }
.estimate-info, .estimate-detail-link { color: var(--green-ink); border: 0; padding: 5px 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: 10px; font-weight: 600; cursor: pointer; }
.estimate-info { min-height: 30px; }
.estimate-detail-link { margin: -10px 23px 16px; color: var(--deep); font-size: 12px; }
.estimate-separation { margin: 3px 0 12px; font-size: 10px; line-height: 1.5; }
.estimate-explanation { padding: 0 24px 20px; font-size: 13px; line-height: 1.6; }
.estimate-explanation h3 { margin-bottom: 6px; }
.estimate-explanation a { color: var(--deep); text-decoration: underline; }
#estimate-dialog { max-width: 620px; max-height: 85dvh; overflow-y: auto; }
.card-highlights .card-potential { overflow-wrap: anywhere; }
@media (max-height: 780px) and (min-width: 961px) { :root { --header-height: 65px; } }
@media (max-width: 960px) {
  :root { --header-height: 62px; }
  .sidebar { top: var(--header-height); }
  .view-tabs { margin-left: 18px; gap: 20px; }
  .services-content { padding: 30px 24px 0; }
  .services-hero { gap: 24px; }
  .services-opportunity { padding: 18px; }
  .service-cards { grid-template-columns: 1fr; }
  .service-card { padding: 24px 24px 0; }
  .service-symbol { margin-bottom: 16px; }
  .services-section-heading { align-items: start; flex-direction: column; gap: 15px; }
  .services-section-heading > p { max-width: 580px; }
  .pilot-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --header-height: 108px; }
  .topbar { display: grid; grid-template-rows: 58px 50px; grid-template-columns: 1fr; gap: 0; padding: 0 20px; }
  .topbar .brand { width: max-content; }
  .view-tabs { margin: 0; gap: 24px; }
  .view-tabs button { font-size: 13px; }
  .services-content { padding: 28px 20px 0; }
  .services-hero { grid-template-columns: 1fr; gap: 28px; padding-bottom: 30px; }
  .services-intro h1 { font-size: 37px; }
  .services-intro > p { font-size: 14px; }
  .services-opportunity { padding: 18px; }
  .services-offering { padding-top: 29px; }
  .pilot-outline { padding: 24px; }
  .pilot-steps { grid-template-columns: 1fr; gap: 25px; }
}

#services-estimate-pending { padding: 7px 0 7px 9px; border-left: 2px solid #0c4a3866; font-weight: 600; line-height: 1.45; }

.services-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }

#portfolio-estimate-pending { display: block; margin-top: 10px; padding: 9px 10px; border-left: 3px solid var(--green-ink); background: #ffffff40; font-size: 11px; font-weight: 600; line-height: 1.5; }
#portfolio-estimate-pending:empty { display: none; }

.services-intro > .services-context { font-size: 12px; line-height: 1.7; margin-top: 22px; }
