/* ==========================================================================
   why.css: page A-05 · why Solid
   (loaded in this order: sections, materials, delivery, order, why, find)
   ========================================================================== */

/* ---------- A-05 · why Solid: detail 1 + four notes ---------- */
.why__grid { display: grid; gap: clamp(28px, 5vw, 88px); padding-top: clamp(40px, 6.4vw, 104px); }
.why__fig { width: min(100%, 360px); margin-inline: auto; }
.dt { display: block; width: 100%; height: auto; overflow: visible; --u: 1.5; }   /* --u: viewBox units per CSS px */
.dt-soil { fill: url(#h-drywall); opacity: .6; }
.dt-gravel { fill: url(#h-drywall); }
.dt-ins { fill: url(#h-insulation); }
.dt-lean { fill: var(--line-2); }
.dt-conc { fill: url(#h-cement); }
.dt-block { fill: url(#h-blocks); }
.dt-cut path { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.dt-thin path { fill: none; stroke: var(--ink); stroke-width: 1; }
.dt .dt-ink { fill: var(--ink); stroke: none; }
.dt-rebar path { fill: none; stroke: var(--ink); stroke-width: 1.7; }
.dt-rebar .dt-ties { stroke-width: 1; }
.dt-wp { fill: none; stroke: var(--gold-line); stroke-width: 3.4; stroke-dasharray: 9 4; }
.dt-lv { font: 500 calc(var(--u) * 12px)/1 var(--font-mono); letter-spacing: .04em; fill: var(--ink); }
.kn circle { r: calc(var(--u) * 11.5px); fill: var(--bg); stroke: var(--ink); stroke-width: 1.3; transition: fill .3s; }
.kn text { font: 500 calc(var(--u) * 12.5px)/1 var(--font-mono); fill: var(--ink); transition: fill .3s; }
.kn__ld { fill: none; stroke: var(--ink); stroke-width: 1; }
.why__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 18px; color: var(--ink); }
.why__tag { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%; letter-spacing: 0; }
.why__cap span:last-child { color: var(--ink-2); }
.why__notes { margin: clamp(24px, 3vw, 40px) 0 12px; }
.notes { display: grid; border-top: 1px solid var(--line-2); }
.note { position: relative; padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.note__n { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border: 1.3px solid var(--ink); border-radius: 50%; font: 500 .8125rem/1 var(--font-mono); transition: background-color .3s, color .3s; }
.note__t { font: 650 1.1875rem/1.2 var(--font-body); }
html[lang="en"] .note__t { font-family: var(--font-display); font-stretch: 96%; }
.note__p { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
@media (hover: hover) {
  .note:hover .note__n { background: var(--gold); color: var(--green-900); }
  .why:has(.note[data-n="1"]:hover) .kn[data-n="1"] circle, .why:has(.note[data-n="2"]:hover) .kn[data-n="2"] circle,
  .why:has(.note[data-n="3"]:hover) .kn[data-n="3"] circle, .why:has(.note[data-n="4"]:hover) .kn[data-n="4"] circle { fill: var(--gold); }
  .why:has(.note[data-n="1"]:hover) .kn[data-n="1"] text, .why:has(.note[data-n="2"]:hover) .kn[data-n="2"] text,
  .why:has(.note[data-n="3"]:hover) .kn[data-n="3"] text, .why:has(.note[data-n="4"]:hover) .kn[data-n="4"] text { fill: var(--green-900); }
}
@media (min-width: 620px) {
  .notes { grid-template-columns: 1fr 1fr; }
  .note { padding: 26px 24px 30px 0; }
  .note:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .why__grid { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); align-items: center; }
  .why__fig { width: min(100%, 470px); }
}
