/* 31-quadrant.css — shared styles for quadrant detail pages (redesign v2) */

/* === Hero (shared across subpages) === */
.heroSlim{ padding:56px 0 32px; }
.heroSlim h1{ margin-top:12px; font-size: clamp(32px, 4vw, 48px); font-weight:900; letter-spacing:-.02em; line-height:1.2; }
.heroSlim .sectionSubtitle{ margin-top:14px; line-height:2; }

.crumbs{ color: var(--muted); font-weight:700; font-size:13px; letter-spacing:.02em; }

.tagRow{ display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }
.tag{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(0,6,71,.12);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(4px);
  color: rgba(12,18,32,.82);
  font-weight:800;
  font-size:12px;
  letter-spacing:.03em;
}
.tag .miniDot{
  width:8px; height:8px; border-radius:99px;
  background: var(--accent2);
  box-shadow: 0 0 0 5px rgba(0,91,150,.10);
}

/* === Hero (legacy) lead + quadrant figure === */
.heroLeadWrap{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
  margin-top: 12px;
}
.quadrantFigure{
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.quadrantImage{
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  opacity: .9;
}

/* === Hero (redesign v2) === */
.heroQuadrant{
  padding: 56px 0 40px;
}
.heroQuadrant::before{ display: none; }
.heroQuadrantGrid{
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
  margin-top: 16px;
}
.heroQuadrantMain h1{
  margin: 0 0 20px;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.heroLead{
  margin: 0;
  font-size: 16px;
  line-height: 2.1;
  color: var(--muted);
  font-weight: 400;
}
.heroQuadrantFigure{
  display: flex;
  align-items: center;
  justify-content: center;
}
.heroQuadrantImage{
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  opacity: .88;
}

/* === Structure flow diagram === */
.sectionFlow{ padding: 16px 0 0; }
.sectionFlow::before{ display: none; }

/* Legacy image flow */
.structureDiagramImage{
  display: block;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  opacity: .95;
}

/* HTML/CSS flow diagram (redesign v2) */
.flowDiagram{
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}
.flowStep{
  flex: 1;
  padding: 24px 20px;
  border-radius: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.flowStep--1{
  background: rgba(0,6,71,.03);
  border: 1px solid rgba(0,6,71,.08);
}
.flowStep--2{
  background: rgba(0,6,71,.05);
  border: 1px solid rgba(0,6,71,.10);
}
.flowStep--3{
  background: linear-gradient(135deg, rgba(0,6,71,.07), rgba(0,91,150,.08));
  border: 1px solid rgba(0,91,150,.16);
}
.flowStepNum{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent2);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.flowStepText{
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text);
}
.flowArrow{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
}

/* === Section headings (h2 style for content sections) === */
.sectionSymptoms,
.sectionWhy,
.sectionPerspective,
.sectionChange,
.sectionSolution{ padding: 56px 0; }

.sectionSymptoms::before,
.sectionWhy::before,
.sectionPerspective::before,
.sectionChange::before,
.sectionSolution::before{ display: none; }

/* === Photo break === */
.photoBreak{
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}
.photoBreakImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: brightness(.92) saturate(1.1);
}

/* === ③ Symptoms — numbered horizontal items === */
.symptomList{
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}
.symptomItem{
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.symptomItem:first-child{
  border-top: 1px solid var(--line);
}
.symptomNum{
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: rgba(0,91,150,.15);
  flex-shrink: 0;
  width: 64px;
  letter-spacing: -.02em;
}
.symptomBody{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}
.symptomIcon{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,91,150,.06);
  border: 1.5px solid rgba(0,91,150,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.symptomIcon .cardSvg{
  width: 20px; height: 20px;
  stroke: var(--accent2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.symptomText{
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--text);
  padding-top: 8px;
}

/* === ④ Why — 2-column layout === */
.whyList{
  margin-top: 32px;
}
.whyItem{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.whyItem:first-child{
  border-top: 1px solid var(--line);
}
.whyItemLeft{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.whyItemIcon{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,6,71,.03);
  border: 2px solid var(--accent2);
  box-shadow: inset 0 0 0 3px rgba(248,249,252,1), inset 0 0 0 4px rgba(0,91,150,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.whyItemIcon .cardSvg{
  width: 20px; height: 20px;
  stroke: var(--accent2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.whyItemLeft h3{
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -.01em;
  color: var(--text);
}
.whyItemRight p{
  margin: 0;
  color: var(--muted);
  line-height: 2;
  font-size: 15px;
}

/* === ⑤ Perspective — text + diagram grid === */
.perspectiveGrid{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}
.perspectiveText p{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 2;
}
.perspectiveText p:last-of-type{ margin-bottom: 0; }

.pullQuote{
  margin: 24px 0 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent2);
  background: rgba(0,91,150,.04);
  border-radius: 0 14px 14px 0;
}
.pullQuote p{ margin: 0; line-height: 1.9; color: var(--text); font-weight: 500; }
.pullQuote strong{ color: var(--text); font-weight: 800; }

/* Perspective diagram */
.perspectiveDiagram{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.perspectiveLayer{
  width: 100%;
  padding: 20px 24px;
  border-radius: 14px;
  text-align: center;
}
.perspectiveLayerBefore{
  background: rgba(0,6,71,.04);
  border: 1px solid rgba(0,6,71,.10);
}
.perspectiveLayerAfter{
  background: rgba(0,91,150,.06);
  border: 1px solid rgba(0,91,150,.18);
}
.perspectiveLayerLabel{
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(12,18,32,.45);
  margin-bottom: 12px;
}
.perspectiveLayerAfter .perspectiveLayerLabel{
  color: var(--accent2);
}
.perspectiveLayerItems{
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.perspectiveLayerItems span{
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,6,71,.08);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.perspectiveLayerItemsUnified span{
  background: rgba(0,91,150,.10);
  border-color: rgba(0,91,150,.20);
  color: var(--accent2);
  font-weight: 700;
}
.perspectiveLayerCaption{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(12,18,32,.40);
  font-weight: 600;
}
.perspectiveLayerAfter .perspectiveLayerCaption{
  color: var(--accent2);
  font-weight: 700;
}
.perspectiveArrow{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
}
.perspectiveArrowLabel{
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: .02em;
}

/* === ⑥ Change — Before/After state comparison === */
.changeComparison{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-top: 32px;
  align-items: stretch;
}
.changeComparison .changeSide{
  padding: 32px 28px;
  border-radius: 16px;
}
.changeComparison .changeBefore{
  background: rgba(0,6,71,.03);
  border: 1px solid rgba(0,6,71,.08);
}
.changeComparison .changeAfter{
  background: rgba(0,91,150,.04);
  border: 1px solid rgba(0,91,150,.14);
}
.changeComparison .changeLabel{
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(12,18,32,.40);
  margin-bottom: 20px;
}
.changeComparison .changeAfter .changeLabel{
  color: var(--accent2);
}
.changeRow{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}
.changeRow:not(:last-child){
  border-bottom: 1px solid rgba(0,6,71,.06);
}
.changeAfter .changeRow:not(:last-child){
  border-bottom-color: rgba(0,91,150,.10);
}
.changeIcon{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,6,71,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.changeAfter .changeIcon{
  background: rgba(0,91,150,.10);
}
.changeIcon .cardSvg{
  width: 16px; height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.changeAfter .changeIcon .cardSvg{
  stroke: var(--accent2);
}
.changeRow p{
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 6px;
}
.changeAfter .changeRow p{
  color: var(--text);
  font-weight: 600;
}

/* Change center divider */
.changeCenter{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 8px;
}
.changeCenterLine{
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, var(--accent2), transparent);
  min-height: 24px;
}
.changeCenterLabel{
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2);
  text-align: center;
  line-height: 1.5;
  white-space: nowrap;
  padding: 8px 14px;
  background: rgba(0,91,150,.06);
  border-radius: 10px;
  border: 1px solid rgba(0,91,150,.14);
}

/* Change narrative */
.changeNarrative{
  margin-top: 36px;
}
.changeNarrative p{
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

/* === ⑦ Solution card === */
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px; border-radius:999px;
  background: rgba(0,6,71,.06);
  border: 1px solid rgba(0,6,71,.16);
  color: rgba(12,18,32,.82);
  font-weight:800; font-size:12px; letter-spacing:.03em;
}
.badge--subtle{
  background: rgba(0,6,71,.03);
  border-color: rgba(0,6,71,.12);
  color: rgba(12,18,32,.72);
}

.solutionCard{ padding:18px; }
.solutionCard .name{ font-weight:900; letter-spacing:.01em; margin:0 0 8px; }
.solutionCard .desc{ margin:0; color: var(--muted); }

.links{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }

.cta-precopy{
  margin-top: 14px;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.cta-precopy p{
  margin: 0 0 10px;
  color: rgba(12,18,32,.55);
  line-height: 1.95;
  font-weight: 650;
}
.cta-precopy p:last-child{ margin-bottom: 0; }

.footNav{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
  color: var(--muted);
}
.footNav a{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(4px);
  transition: all .2s ease;
}
.footNav a:hover{ background: rgba(255,255,255,.9); color: var(--text); }

/* === Utilities === */
.space-10{ height:10px; }
.space-14{ height:14px; }
.stack-12{ margin-top:12px; }

.footerSimple{ padding: 28px 0 40px; border-top: 1px solid var(--line); }
.footCopy{ color: var(--muted); font-weight:700; }

/* === Panels: glass morphism (shared) === */
.panel{
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === Legacy support (other quadrant pages still using old classes) === */
.block{ padding:18px; }
.block h3{ margin:0 0 8px; font-size:18px; letter-spacing:-.01em; font-weight:700; }
.block p{ margin:0; color: var(--muted); }
.list{ margin:10px 0 0; padding-left:18px; color: var(--muted); }
.list li{ margin:8px 0; }

.noPanel.panel{
  background:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border:none;
  border-radius:0;
}

.cardGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:14px;
}
.cardIcon{
  width:56px; height:56px;
  border-radius:50%;
  background:rgba(0,6,71,.02);
  border:2px solid var(--accent2);
  box-shadow:inset 0 0 0 3px rgba(248,249,252,1), inset 0 0 0 4px rgba(0,91,150,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
}
.cardSvg{
  width:22px; height:22px;
  stroke:var(--accent2);
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.symptomCard{
  padding:22px;
  background:#fff;
  border-radius:14px;
  box-shadow:0 2px 12px rgba(2,6,23,.06);
}
.symptomCard p{ margin:0; color:var(--muted); line-height:1.85; }

.whyBlock h4{
  margin:22px 0 8px;
  font-size:16px;
  font-weight:900;
  letter-spacing:.01em;
  color: rgba(12,18,32,.88);
}
.whyBlock h4:not(:first-of-type){
  padding-top:14px;
  border-top:1px solid var(--line);
}
.whyBlock p{ margin:0 0 14px; line-height:1.95; color: var(--muted); }
.whyBlock p:last-child{ margin-bottom:0; }
.whyBlock .whyCard{
  margin:0;
  padding:22px;
  background:#fff;
  border-radius:14px;
  border-top:3px solid var(--accent2);
  box-shadow:0 2px 12px rgba(2,6,23,.06);
}
.whyBlock .whyCard h4{ margin:0 0 10px; padding-top:0; border-top:none; }
.whyBlock .whyCard h4:not(:first-of-type){ padding-top:0; border-top:none; }
.whyBlock .whyCard p{ margin:0; line-height:1.85; }

.space-section{ height:36px; }

.changeBlock p{ margin-bottom:18px; }
.changeBlock p:last-child{ margin-bottom:0; }
.changeBlock .changeImage{ margin-bottom:20px; }

/* Legacy change diagram */
.changeDiagram{
  display:flex;
  align-items:stretch;
  gap:0;
  margin:18px 0 24px;
  font-size:14px;
  line-height:1.7;
}
.changeDiagram .changeSide{
  flex:1;
  padding:24px 28px;
  border-radius:14px;
}
.changeDiagram .changeBefore{
  background:rgba(0,6,71,.04);
  border:1px solid rgba(0,6,71,.10);
}
.changeDiagram .changeAfter{
  background:rgba(0,91,150,.06);
  border:1px solid rgba(0,91,150,.18);
}
.changeDiagram .changeLabel{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:800;
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:14px;
  color:rgba(12,18,32,.50);
}
.changeDiagram .changeAfter .changeLabel{
  color:var(--accent2);
}
.changeDiagram .changeItems{
  list-style:none;
  margin:0;
  padding:0;
}
.changeDiagram .changeItems li{
  position:relative;
  padding:8px 0 8px 28px;
  color:var(--muted);
}
.changeDiagram .changeItems li::before{
  content:'';
  position:absolute;
  left:0;
  top:14px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:rgba(0,6,71,.08);
}
.changeDiagram .changeAfter .changeItems li::before{
  background:var(--accent2);
}
.changeDiagram .changeAfter .changeItems li{
  color:var(--text);
  font-weight:600;
}
.changeDiagram .changeArrow{
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  flex-shrink:0;
  font-size:22px;
  color:var(--accent2);
  font-weight:700;
}
.changeDiagram .changeArrow svg{
  width:28px;
  height:28px;
  stroke:var(--accent2);
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.structureDiagram{
  padding: 16px;
  text-align: center;
}
.changeImage{
  width: 80%;
  height: auto;
  opacity: .95;
}

/* === ⑦ Approach section (multi-card layout) === */
.approachIntro{
  margin-bottom: 32px;
}
.approachIntro .sectionSubtitle{
  margin-top: 12px;
}

.approachCards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.approachCard{
  padding: 28px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.approachCard.approachCard--main{
  border-top: 3px solid var(--accent2);
}
.approachCard .badge{
  margin-bottom: 14px;
}
.approachCard .approachName{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.5;
  color: var(--text);
}
.approachCard .approachChallenges{
  margin: 0 0 12px;
}
.approachCard .approachChallengesLabel{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--accent2);
  margin-bottom: 6px;
}
.approachCard .approachChallengesList{
  margin: 0;
  padding: 0;
  list-style: none;
}
.approachCard .approachChallengesList li{
  position: relative;
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.approachCard .approachChallengesList li::before{
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,91,150,.18);
}
.approachCard .approachDesc{
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
  font-size: 15px;
}

.approachCard .links{
  margin-top: 16px;
}

/* Outcome connection */
.outcomeConnection{
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(0,91,150,.04);
  border: 1px solid rgba(0,91,150,.14);
}
.outcomeConnection .outcomeTitle{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.outcomeConnection .outcomeTitle svg{
  width: 20px;
  height: 20px;
  stroke: var(--accent2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.outcomeConnection .outcomeText{
  margin: 0;
  color: var(--muted);
  line-height: 2;
  font-size: 15px;
}

/* === Responsive === */
@media (max-width: 900px){
  .heroLeadWrap{
    grid-template-columns: 1fr;
  }
  .quadrantFigure{
    margin-top: 16px;
    justify-content: flex-start;
  }
  .quadrantImage{
    max-width: 160px;
  }

  /* Hero v2 */
  .heroQuadrantGrid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .heroQuadrantImage{
    max-width: 160px;
  }
  .heroQuadrantFigure{
    justify-content: flex-start;
  }

  /* Flow diagram */
  .flowDiagram{
    flex-direction: column;
    gap: 0;
    max-width: 400px;
  }
  .flowArrow{
    width: auto;
    height: 36px;
    transform: rotate(90deg);
  }

  /* Legacy */
  .cardGrid{
    grid-template-columns: 1fr;
  }
  .changeDiagram{
    flex-direction:column;
  }
  .changeDiagram .changeArrow{
    width:auto;
    height:36px;
    transform:rotate(90deg);
  }

  /* New: symptoms */
  .symptomItem{
    gap: 16px;
  }
  .symptomNum{
    font-size: 32px;
    width: 48px;
  }

  /* New: why 2-column → 1-column */
  .whyItem{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* New: perspective grid → stack */
  .perspectiveGrid{
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* New: change comparison → stack */
  .changeComparison{
    grid-template-columns: 1fr;
    gap: 0;
  }
  .changeCenter{
    flex-direction: row;
    padding: 16px 0;
    gap: 12px;
  }
  .changeCenterLine{
    width: auto;
    height: 2px;
    flex: 1;
    min-height: auto;
    background: linear-gradient(to right, transparent, var(--accent2), transparent);
  }

  /* Photo break height */
  .photoBreak{
    height: 160px;
  }

  /* Approach cards */
  .approachCard{
    padding: 22px;
  }
}