/**
 * Gutenberg Solutions hub layout bridge (v0.3.8)
 *
 * Mirrors home-gutenberg.css: collapse WP group inner-containers so
 * assets/css/style.css selectors (.page-hero > .wrap, .grid, .card, etc.) work.
 * Loaded on Solutions hub + solution singles (see functions.php).
 */

.page-solutions .wp-block-group:not(.sec-head):not(.svs-da-outer):not(.direct-answer):not(.solutions-structure):not(.solutions-related) {
  margin-block: 0;
}

.page-solutions .wp-block-heading {
  margin-inline: 0;
}

.page-solutions .wp-block-group > .wp-block-group__inner-container {
  display: contents;
}

/* Page hero (visual) �?match static solutions hub */
.page-solutions .page-hero.visual-hero {
  position: relative;
}
.page-solutions .page-hero .wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .page-solutions .page-hero.visual-hero > .wrap,
  .page-solutions .page-hero.visual-hero .wp-block-group.wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}
.page-solutions .page-hero .hero-copy .eyebrow {
  margin-bottom: 12px;
}
.page-solutions .page-hero .hero-copy h1 {
  margin: 0 0 16px;
}
.page-solutions .page-hero .hero-copy .lede {
  margin: 0 0 24px;
  max-width: 38rem;
}
.page-solutions .page-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.page-solutions .page-hero .hero-media {
  margin: 0;
}
.page-solutions .page-hero .hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px 18px 4px 4px;
}
.page-solutions .page-hero .hero-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft, #5c6570);
}

/* Direct answer pull-up (same pattern as home) */
.page-solutions .svs-da-outer {
  position: relative;
  z-index: 2;
}
.page-solutions .direct-answer {
  background: #fff;
  border: 1px solid var(--line, #e6e0d4);
  border-radius: 4px 18px 4px 4px;
  padding: 28px 32px;
  box-shadow: 0 12px 40px rgba(23, 33, 47, 0.08);
}
.page-solutions .direct-answer .da-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze, #9a7b4f);
}
.page-solutions .direct-answer p:last-child {
  margin-bottom: 0;
}

/* Section rhythm */
.page-solutions .tint,
.page-solutions .alt,
.page-solutions .cta-band,
.page-solutions .faq-section {
  padding: 72px 0;
}
.page-solutions .sec-head {
  margin-bottom: 28px;
  max-width: 40rem;
}
.page-solutions .sec-head .kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze, #9a7b4f);
}
.page-solutions .sec-head h2 {
  margin: 0 0 12px;
}
.page-solutions .sec-head p {
  margin: 0;
  color: var(--ink-soft, #5c6570);
}

/* Card grids �?tighten hub cards */
.page-solutions .solutions-project-grid,
.page-solutions .solutions-scope-grid {
  gap: 20px;
}
.page-solutions .card {
  height: 100%;
  padding: 22px 22px 24px;
}
.page-solutions .card .card-kicker {
  margin-bottom: 10px;
}
.page-solutions .card h3:not(:where(.svs-h4)) {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}
.page-solutions .card h3:not(:where(.svs-h4)) a {
  text-decoration: none;
  color: inherit;
}
.page-solutions .card h3:not(:where(.svs-h4)) a:hover {
  color: var(--bronze, #9a7b4f);
}
.page-solutions .card h3:not(:where(.svs-h4)) .tag {
  margin-left: 8px;
  vertical-align: middle;
}
.page-solutions .card p {
  margin: 0;
  color: var(--ink-soft, #5c6570);
  font-size: 0.95rem;
  line-height: 1.55;
}
.page-solutions .solutions-office-card {
  border-color: rgba(154, 123, 79, 0.35);
}
.page-solutions .inline-cta {
  margin: 28px 0 0;
}
.page-solutions .two-col {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .page-solutions .two-col {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}
.page-solutions .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.page-solutions .chip {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line, #e6e0d4);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  background: #fff;
}
.page-solutions .chip:hover {
  border-color: var(--bronze, #9a7b4f);
  color: var(--bronze, #9a7b4f);
}
.page-solutions .cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}
.page-solutions .cta-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft, #5c6570);
}
.page-solutions .faq details {
  border-bottom: 1px solid var(--line, #e6e0d4);
  padding: 14px 0;
}
.page-solutions .faq summary {
  cursor: pointer;
  font-weight: 650;
}
.page-solutions .faq details p {
  margin: 10px 0 4px;
  color: var(--ink-soft, #5c6570);
}

/* Single solution interim shell */
.page-solution-single .page-hero {
  padding: 48px 0 40px;
}
.page-solution-single .breadcrumb {
  padding: 0 0 16px;
}
.page-solution-single .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ink-soft, #5c6570);
}
.page-solution-single .breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}
.page-solution-single .entry-content {
  padding-top: 0;
  padding-bottom: 48px;
  max-width: 44rem;
}


/* Single solution (v0.3.8) */
.page-solution-single .svs-solution-breadcrumb { padding: 18px 0 0; }
.page-solution-single .svs-solution-breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0;
  font-size: 0.85rem; color: var(--ink-soft, #5c6570);
}
.page-solution-single .svs-solution-breadcrumb li:not(:last-child)::after {
  content: "/"; margin-left: 8px; opacity: 0.45;
}
.page-solution-single .svs-solution-breadcrumb a { color: inherit; text-decoration: none; }
.page-solution-single .svs-solution-breadcrumb a:hover { color: var(--bronze, #9a7b4f); }
.page-solution-single .wp-block-group > .wp-block-group__inner-container { display: contents; }
.page-solution-single .wp-block-group:not(.sec-head):not(.direct-answer):not(.hero-copy):not(.faq) { margin-block: 0; }
.page-solution-single .wp-block-heading { margin-inline: 0; }
.page-solution-single .page-hero.visual-hero .wrap {
  display: grid; gap: 32px; align-items: center;
}
@media (min-width: 900px) {
  .page-solution-single .page-hero.visual-hero .wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}
.page-solution-single .page-hero .hero-media { margin: 0; }
.page-solution-single .page-hero .hero-media img {
  display: block; width: 100%; height: auto; border-radius: 4px 18px 4px 4px;
}
.page-solution-single .page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-solution-single .direct-answer {
  background: #fff; border: 1px solid var(--line, #e6e0d4);
  border-radius: 4px 18px 4px 4px; padding: 28px 32px;
  box-shadow: 0 12px 40px rgba(23, 33, 47, 0.08);
}
.page-solution-single details.wp-block-details {
  border-bottom: 1px solid var(--line, #e6e0d4); padding: 14px 0;
}
.page-solution-single details.wp-block-details summary { cursor: pointer; font-weight: 650; }

/* v0.4.11: hub polish ------------------------------------------------ */
/* 1) Hero caption pill: readable light text on dark translucent bg */
.page-solutions .page-hero .hero-media figcaption {
  margin-top: 0;
  color: #fff;
  background: rgba(10, 16, 24, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
/* 2) CTA band: center buttons + note */
.page-solutions .cta-band .actions {
  justify-content: center;
  margin: 24px auto 0;
}
.page-solutions .cta-band .cta-note {
  text-align: center;
  margin: 22px auto 0;
  max-width: 640px;
  color: #8d99aa;
}
/* 4/5) Section heads: wider heading + intro */
.page-solutions .sec-head {
  max-width: 760px;
}
.page-solutions .sec-head h2 {
  max-width: 760px;
}
.page-solutions .sec-head p:not(.kicker) {
  max-width: 680px;
}
/* v0.4.12: solution single audit fixes -------------------------------- */
/* 1) Breadcrumb: single separator, sits on dark band flush with hero */
.page-solution-single .svs-solution-breadcrumb {
  padding: 18px 0 0;
  margin: 0;
  background: linear-gradient(150deg, #1d2735, #18212d);
  color: #aeb8c5;
  font-size: 13px;
}
.page-solution-single .svs-solution-breadcrumb ol { margin: 0; padding: 0; gap: 8px; }
.page-solution-single .svs-solution-breadcrumb li::before,
.page-solution-single .svs-solution-breadcrumb li + li::before { content: none !important; }
.page-solution-single .svs-solution-breadcrumb li:not(:last-child)::after {
  content: "/"; margin-left: 8px; opacity: 0.5;
}
.page-solution-single .svs-solution-breadcrumb a:hover { color: #d9bb84; }
.page-solution-single .svs-solution-breadcrumb li:last-child { color: #e3e8ee; }
/* 2) Direct answer: no overlap with hero, proper spacing */
.page-solution-single .svs-da-outer,
.page-solution-single .direct-answer,
.page-solution-single .section-hero .direct-answer {
  margin-top: 0 !important;
  transform: none;
}
.page-solution-single main > .wp-block-group.wrap:has(.direct-answer) {
  padding-top: 40px;
  padding-bottom: 8px;
}
/* 3) Scope list: independent column stacks (reading order preserved) */
.page-solution-single .svs-spec-list {
  display: block !important;
  column-count: 2;
  column-gap: 48px;
}
.page-solution-single .svs-spec-list p {
  break-inside: avoid;
  margin: 0 0 12px !important;
}
@media (max-width: 720px) {
  .page-solution-single .svs-spec-list { column-count: 1; }
}
.page-solution-single .sec-head { max-width: 760px; }
.page-solution-single .sec-head h2 { max-width: 760px; }
.page-solution-single .sec-head p:not(.kicker) { max-width: 680px; }
/* 4) Gallery: figure grows with caption, no row overlap */
.page-solution-single .case-grid { row-gap: 28px; align-items: start; }
.page-solution-single .case-grid .case-item {
  height: auto !important;
  display: flex;
  flex-direction: column;
}
.page-solution-single .case-grid .case-item img {
  aspect-ratio: 4 / 3;
  height: auto !important;
  object-fit: cover;
  border-radius: 8px;
}
.page-solution-single .case-grid .case-item figcaption { margin: 10px 0 0; }
/* 5) Grids align to container */
.page-solution-single .wrap .grid,
.page-solution-single .wrap .compare,
.page-solution-single .wrap .steps,
.page-solution-single .wrap .case-grid {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}
/* 6) Inline "Explore ... ?" link on its own line; odd last card spans row */
.page-solution-single .card p a[href]:last-child:not(.chip):not(.btn) {
  display: block;
  margin-top: 10px;
  font-weight: 650;
}
@media (min-width: 961px) {


  .page-solution-single .steps .step:last-child:nth-child(4n+1) { grid-column: 1 / -1; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .page-solution-single .grid-3 .card:last-child:nth-child(odd),
  .page-solution-single .grid-4 .card:last-child:nth-child(odd),
  .page-solution-single .grid-5 .card:last-child:nth-child(odd),
  .page-solution-single .steps .step:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Related: two columns, each heading above its chips */
.page-solution-single .wrap.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 16px;
  align-items: start;
}
.page-solution-single .wrap.two-col .sec-head { margin: 0; max-width: none; }
.page-solution-single .wrap.two-col .chips { margin: 0; align-content: flex-start; }
@media (max-width: 820px) {
  .page-solution-single .wrap.two-col { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .page-solution-single .wrap.two-col .sec-head:not(:first-child) { margin-top: 24px; }
}
/* Whole-House vs Partial: restore bullets */
.page-solution-single .compare .panel:not(.pros):not(.cons):not(.neutral) li {
  position: relative;
  padding: 6px 0 6px 20px;
}
.page-solution-single .compare .panel:not(.pros):not(.cons):not(.neutral) li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(6px + 0.62em);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #b98735);
}
/* Extra: absolutely-positioned captions must anchor to their own figure */
.page-solution-single figure.wp-block-image { position: relative; }
.page-solution-single .office-ai-note { margin-top: 8px !important; }
/* v0.4.13 ------------------------------------------------------------ */
/* Scope table: reproduce static table.spec (dark header, zebra rows, bold area column) */
.page-solution-single .table-wrap { overflow-x: auto; }
.page-solution-single figure.wp-block-table.spec { margin: 0; }
.page-solution-single .wp-block-table.spec table {
  width: 100%; border-collapse: separate; border-spacing: 0; table-layout: auto;
  background: var(--surface, #fff); border: 1px solid var(--line, #e6e0d4);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-soft);
  font-size: 14.5px;
}
.page-solution-single .wp-block-table.spec thead { border: 0; }
.page-solution-single .wp-block-table.spec th {
  background: #1d2a3a; color: #fff; text-align: left; border: 0;
  padding: 12px 18px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.page-solution-single .wp-block-table.spec td {
  padding: 15px 18px; border: 0; border-top: 1px solid var(--line-soft, #eee9df);
  color: var(--ink-2, #344252); vertical-align: top; line-height: 1.55;
}
.page-solution-single .wp-block-table.spec td:first-child { font-weight: 700; color: var(--ink, #17212f); white-space: nowrap; width: 1%; }
.page-solution-single .wp-block-table.spec tr:nth-child(even) td { background: #faf9f5; }
@media (max-width: 640px) {
  .page-solution-single .wp-block-table.spec td:first-child { white-space: normal; width: 34%; }
  .page-solution-single .wp-block-table.spec th, .page-solution-single .wp-block-table.spec td { padding: 12px 14px; }
}
/* Card kickers (Group 01 / Phase 01 / Design Team ...) as in static */
.page-solution-single .card p.card-kicker,
.page-solution-single p.card-kicker {
  margin: 0 0 8px !important; font-size: 11px; line-height: 1.4;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #977038;
}
/* FAQ: compact question rows */
html body .page-solution-single .faq details.wp-block-details,
html body.page-solutions .faq details { padding: 0; }
html body .faq details summary { padding-top: 16px; padding-bottom: 16px; line-height: 1.45; }