/* Market report pages (Claude, v3). Builds on styles.css and guide.css variables. */
.page-eyebrow { margin-bottom: .7rem; line-height: 1.45; }
.hero .display, .display { max-width: 18ch; margin: 0 0 1rem; color: var(--surface); font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 760; line-height: 1.02; letter-spacing: -.042em; word-spacing: normal; }
.report-hero .hero-inner { align-items: center; }
.city-report-bar { position: sticky; inset-block-start: 0; z-index: 3; background: var(--accent); border-bottom: 1px solid var(--accent-hover); }
.city-report-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding-block: .5rem; color: var(--surface); font-weight: 740; font-size: .95rem; line-height: 1.25; text-align: center; text-decoration: none; }
.city-report-bar a:hover, .city-report-bar a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.city-report-bar a:focus-visible { outline-color: var(--surface); outline-offset: -3px; }
html:has(.city-report-bar) { scroll-padding-block-start: 5rem; }
.report-crumbs { margin: 0 0 .8rem; font-size: .85rem; color: var(--hero-muted); }
.report-crumbs a { color: var(--surface); }
.hero-fine { margin: .8rem 0 0; color: var(--hero-muted); font-size: .86rem; }
.report-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; max-width: 36rem; }
.report-picker label { font-weight: 700; font-size: .92rem; }
.report-picker > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.report-picker select { flex: 1 1 16rem; min-width: 0; min-height: 48px; border: 1px solid var(--border); border-radius: 10px; padding: .45rem .7rem; font: inherit; color: var(--ink); }
.report-picker .button { border: 0; cursor: pointer; font: inherit; font-weight: 720; }
.report-hub-actions .report-browse-link { color: var(--surface); }
.report-hub-float { display: none; }

@media (max-width: 740px) {
  html:has(.report-hub-float) { scroll-padding-block-end: calc(var(--mobile-action-height) + 5rem); }
  .report-hub-actions .button { display: none; }
  .report-hub-float {
    position: fixed;
    z-index: 3;
    inset-inline-end: max(1rem, env(safe-area-inset-right));
    inset-block-end: calc(var(--mobile-action-height) + 1rem);
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 48px;
    max-width: min(20rem, calc(100% - 2rem));
    padding: .55rem .8rem;
    border: 1px solid var(--border);
    border-radius: 1rem 1rem .45rem 1rem;
    background: var(--surface);
    color: var(--ink);
    font-size: .9rem;
    font-weight: 720;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: var(--shadow);
  }
  .report-hub-float::after {
    content: "";
    position: absolute;
    inset-inline-end: .85rem;
    inset-block-end: -.36rem;
    width: .7rem;
    height: .7rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    transform: rotate(45deg);
  }
  .report-hub-float:hover { color: var(--accent); }
  .report-hub-float .service-icon { width: 20px; height: 20px; }
  body:has(.service-nav[data-menu-open]) .report-hub-float { display: none; }
}
.proof-strip { background: var(--panel); padding-block: 1rem; }
.proof-strip ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.4rem; margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.proof-strip strong { font-size: 1.15rem; }
.table-scroll { overflow-x: auto; margin-top: 1rem; }
.compare { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--surface); font-size: .93rem; }
.compare th, .compare td { padding: .55rem .7rem; border-bottom: 1px solid var(--border); text-align: right; }
.compare th[scope="row"], .compare thead th:first-child { text-align: left; font-weight: 600; }
.compare thead th { background: var(--hero); color: var(--surface); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.compare td:nth-child(2) { font-weight: 760; }

.report-comparison { max-width: 44rem; margin-inline: auto; }
.report-comparison h2 { font-size: clamp(1.6rem, 3.5vw, 2.15rem); }
.report-comparison .table-scroll { border: 1px solid var(--border); border-radius: 10px; }
.report-comparison .compare {
  min-width: 0;
  table-layout: fixed;
  font-size: .875rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.report-comparison .compare th:first-child { width: 55%; }
.report-comparison .compare th,
.report-comparison .compare td { padding: .4rem clamp(.3rem, 1.5vw, .75rem); overflow-wrap: anywhere; }
.report-comparison .compare thead th { letter-spacing: .02em; }
.report-comparison .compare thead th:last-child { white-space: nowrap; }
.report-comparison .compare tbody tr:last-child > * { border-bottom: 0; }
.report-maple-leaf { font-size: .95rem; margin-inline-end: .15em; }
@media (max-width: 540px) {
  .report-comparison .compare th:first-child { width: 46%; }
  .report-comparison .compare thead th { font-size: .8rem; letter-spacing: 0; text-transform: none; }
  .report-comparison .compare td { font-size: .8rem; }
  .report-maple-leaf { font-size: .8rem; margin-inline-end: 0; }
}

.rights .guide-bullets li { color: var(--ink); }
.report-contents { margin: .4rem 0 1rem; padding: 0; list-style: none; counter-reset: c; }
.report-contents li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.report-contents li span:last-child { color: var(--quiet); white-space: nowrap; }
.report-form { padding: 0; border: 0; }

.city-report-request { background: var(--hero); color: var(--surface); }
.city-report-request-layout {
  display: grid;
  grid-template: "intro form" auto "contents form" auto / minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem clamp(2rem, 5vw, 4rem);
}
.city-report-request-intro { grid-area: intro; }
.city-report-request-intro h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.06; }
.city-report-request-intro p { margin: 0; color: var(--hero-muted); }
.city-report-request-contents { grid-area: contents; }
.city-report-request-contents .report-contents { margin-bottom: 0; }
.city-report-request-contents .report-contents li { border-color: rgb(255 255 255 / 20%); }
.city-report-request-contents .report-contents li span:last-child { color: var(--hero-muted); }
.city-report-request-layout .report-form {
  grid-area: form;
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 2rem);
  color: var(--ink);
}
.city-report-request .report-fields { min-inline-size: 0; }
.city-report-request .report-form .button { width: 100%; }
.city-report-request .report-consent input { flex: none; min-height: 0; padding: 0; accent-color: var(--accent); }
@media (max-width: 740px) {
  .city-report-request-layout { grid-template: "intro" auto "form" auto "contents" auto / minmax(0, 1fr); }
}
.report-consent { display: flex !important; gap: .5rem; align-items: start; font-weight: 500 !important; font-size: .88rem; }
.report-consent input { width: auto !important; margin-top: .2rem; }
.hub-grid { columns: 3 18rem; column-gap: 1.6rem; margin-top: 1.2rem; }
.hub-province { break-inside: avoid; margin-bottom: 1.3rem; }
.hub-province h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.hub-province h3 span, .hub-province li span { color: var(--quiet); font-weight: 500; }
.hub-province ul { margin: 0; padding: 0; list-style: none; }
.hub-province li { display: flex; justify-content: space-between; gap: .8rem; padding: .28rem 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.hub-province a { color: var(--ink); font-weight: 600; text-underline-offset: .2em; }
.hub-province a:hover { color: var(--accent); }
.hub-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.hub-tabs button {
  min-height: 44px;
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  font-weight: 680;
  cursor: pointer;
}
.hub-tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.hub-tabs button:hover:not([aria-selected="true"]) { border-color: var(--accent); color: var(--accent); }
.hub-grid--tabs { columns: auto; margin-top: .8rem; }
.hub-grid--tabs .hub-province { margin: 0; padding: .35rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.hub-grid--tabs ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); column-gap: 1.5rem; }
.hub-grid--tabs li { align-items: center; padding-block: 0; }
.hub-grid--tabs a { flex: 1; min-width: 0; padding-block: .55rem; overflow-wrap: anywhere; }
.hub-more { margin-top: .65rem; padding: 0; border-top: 1px solid var(--border); }
.hub-more > summary { min-height: 44px; padding: .6rem 0; color: var(--accent); font-size: .92rem; }
@media (max-width: 700px) {
  .hub-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -.3rem; padding: .3rem .3rem .55rem; }
  .hub-tabs button { flex: none; }
}
.guide-next .text-link.light { color: var(--surface); }
@media (max-width: 760px) { .hero .display, .display { max-width: none; } }
/* Tool pages */
.compare-text { min-width: 640px; }
.compare-text td, .compare-text th { text-align: left; vertical-align: top; font-weight: 400; }
.compare-text th[scope="row"] { font-weight: 700; }
.compare-text td:nth-child(2) { font-weight: 400; }
.flag-list li { color: var(--ink); }
.flag-list em { color: var(--quiet); font-size: .9rem; }
.columns-2 { columns: 2 20rem; column-gap: 2.4rem; }
.columns-2 li { break-inside: avoid; }
.example-card { background: var(--background); }
/* Roof estimator: light intro */
.estimator-intro .page-eyebrow { color: var(--accent); }
.estimator-intro .display { color: var(--ink); max-width: 22ch; font-size: clamp(2rem, 4.2vw, 3.3rem); }
.estimator-intro .hero-fine { color: var(--quiet); }
.estimator-content { padding-block: clamp(1.8rem, 4vw, 3rem) 0; border-top: 1px solid var(--border); margin-top: clamp(1.8rem, 4vw, 3rem); }
.estimator-content + .estimator-content { margin-top: 0; }
.table-scroll + p { margin-top: 1rem; }

/* Market report previews */
.editorial-image.report-cover-portrait { max-width: 360px; margin-inline: auto; aspect-ratio: auto; object-fit: contain; }
.report-hero .report-cover-portrait { width: min(100%, 380px); height: auto; justify-self: center; border: 0; border-radius: 10px; box-shadow: 0 24px 60px rgb(0 0 0 / 35%); }
.city-report-cover {
  display: grid;
  gap: .75rem;
  justify-self: center;
  width: min(100%, 380px);
}
.report-cover-badge {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: .65rem;
  min-height: 48px;
  max-width: 100%;
  padding: .55rem .8rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--surface);
  font-size: .95rem;
  font-weight: 740;
  line-height: 1.25;
  text-decoration: none;
}
.report-cover-badge:hover { background: var(--accent-hover); }
.report-cover-badge-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 16%);
  font-size: 1.2rem;
}
.report-cover-badge small { display: block; font-size: .85rem; font-weight: 600; }
.data-strip { padding-block: clamp(1.75rem, 4vw, 3rem); background: var(--surface); }
.data-strip h2 { margin: 0 0 .35rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.035em; }
.data-strip > .wrap > p { margin: 0 0 1.1rem; color: var(--quiet); max-width: 70ch; }
.data-strip[data-report-images] { --preview-columns: 3; }
.data-strip-grid { display: grid; grid-template-columns: repeat(var(--preview-columns, 4), minmax(0, 1fr)); gap: .9rem; }
.data-card { margin: 0; padding: .6rem; background: var(--background); border: 1px solid var(--border); border-radius: 12px; }
.data-card img { display: block; width: 100%; height: auto; border-radius: 8px; background: #fff; }
.data-card figcaption { margin-top: .55rem; font-size: .88rem; line-height: 1.4; color: var(--ink); }
.data-card figcaption strong { display: block; font-size: 1.15rem; }
.card-visual { display: block; width: 100%; height: 170px; object-fit: cover; object-position: top; margin: -.2rem 0 .8rem; border-radius: 8px; border: 1px solid var(--border); background: #fff; }
.report-mockup { margin: 1.4rem 0 0; }
.report-mockup img { display: block; width: 100%; height: auto; }
.report-mockup figcaption { margin-top: .5rem; color: var(--quiet); font-size: .87rem; text-align: center; }
@media (min-width: 741px) and (min-height: 480px) {
  .report-overview-media { align-self: stretch; }
  .report-overview-media .report-mockup,
  #sample .guide-split > .report-preview { position: sticky; inset-block-start: 1.5rem; }
}
.report-figure { margin: 1.2rem 0 0; }
.report-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.report-figure figcaption { margin-top: .45rem; color: var(--quiet); font-size: .87rem; }
.city-report-figures { display: grid; gap: 1rem; min-width: 0; }
.city-report-figures .report-figure { margin: 0; }
.report-local-roofers { border-bottom: 1px solid var(--border); }
@media (min-width: 741px) {
  .report-local-roofers .guide-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
}
.report-comparison + .report-figure {
  max-width: 56rem;
  margin: clamp(1.75rem, 4vw, 3.25rem) auto 0;
}
.report-hub-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 1.25rem;
}
.report-hub-faq > div { min-width: 0; border: 1px solid var(--border); border-radius: 10px; }
.report-hub-faq h3 { margin: 0; padding: 1rem 1.15rem 0; }
@media (max-width: 740px) {
  .report-hub-faq { grid-template-columns: minmax(0, 1fr); }
  .report-faq-scroll {
    max-height: 24rem;
    max-height: min(24rem, 52svh);
    padding: .25rem .45rem;
    overflow: auto;
    scrollbar-gutter: stable;
  }
  .report-faq .report-faq-scroll {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
  }
}
@media (max-width: 900px) {
  .data-strip-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .data-card { scroll-snap-align: start; }
}
