/* v171 — review UI reset. This file deliberately overrides the old v167/v169/v170 experiments. */
.review-page.review-article-page-v161{width:min(1180px,calc(100% - 36px))!important;max-width:none!important;margin:0 auto!important;padding:46px 16px 82px!important}
.review-article-page-v161 .review-longread-v160{width:100%!important;max-width:1120px!important;margin:26px auto 0!important}
.review-article-page-v161 .review-chapter-v160{width:100%!important;max-width:none!important;margin:0 0 22px!important;padding:34px 38px 38px!important;border-radius:14px!important}
.review-inner-grid-v167{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:start!important}

/* Light theme uses the same parchment/bronze language as the rest of IRONScale, not a separate yellow page. */
body.light:has(.review-page){background:#e8e5da!important;background-image:radial-gradient(circle at 50% 0,#f8f5ea 0,#e8e3d5 56%,#d2c9b2 100%)!important;color:#2a261d!important}
body.light .review-page{color:#2b271d!important}
body.light .review-chapter-v160{background:linear-gradient(145deg,rgba(239,235,221,.98),rgba(224,218,199,.98))!important;border:1px solid #b59b60!important;box-shadow:0 9px 24px rgba(74,57,24,.08)!important;color:#2d281e!important}
body.light .review-chapter-v160 h2{color:#332b1c!important}body.light .review-chapter-v160 h3{color:#7b5c18!important}body.light .review-chapter-v160 p,body.light .review-chapter-v160 li{color:#3f392d!important}
body.light .review-toc{background:#e8e0c9!important;border-color:#b79b5a!important;color:#3a311f!important}

/* Photos: only a narrow graphite mat, no huge black boxes. */
.review-photo-v160{background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important;text-align:center!important}
.review-photo-v160>a{display:grid!important;place-items:center!important;padding:6px!important;border:1px solid rgba(181,141,49,.50)!important;border-radius:11px!important;overflow:hidden!important;background:linear-gradient(145deg,#292a25,#1b1c18)!important;box-shadow:0 7px 18px rgba(0,0,0,.14)!important;cursor:zoom-in!important}
.review-photo-v160 img{display:block!important;width:auto!important;max-width:100%!important;height:auto!important;max-height:520px!important;margin:0 auto!important;object-fit:contain!important;background:transparent!important;border-radius:6px!important}
.review-photo-v160 figcaption{margin:5px 0 0!important;padding:3px 6px!important;background:transparent!important;color:inherit!important;font-size:11px!important;line-height:1.4!important;opacity:.66!important;border:0!important}
.review-photo-grid-v162{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:start!important;margin:17px 0 23px!important}
.review-photo-grid-v162>.review-photo-v160{width:100%!important;max-width:none!important;margin:0!important}
.review-photo-grid-v162>.review-photo-v160 img{width:100%!important;height:auto!important;max-height:360px!important;object-fit:contain!important}
.review-inner-grid-v167>.review-photo-v160 img{max-height:330px!important}
.review-photo-component-v160{max-width:520px!important}.review-photo-small-v161{max-width:420px!important}
.review-photo-cables-v167{max-width:900px!important;margin:20px auto 4px!important}.review-photo-cables-v167 img{max-height:560px!important}
body.light .review-photo-v160>a{background:linear-gradient(145deg,#30312c,#22231f)!important;border-color:#9e7e35!important;box-shadow:0 7px 17px rgba(55,43,18,.12)!important}
body.light .review-photo-v160 figcaption{color:#514936!important}

/* Temperature + sound: original measurement graph is the dominant visual. */
.review-temp-media-v170{display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(260px,.5fr)!important;gap:14px!important;align-items:start!important;margin:16px 0 4px!important}
.review-temp-media-v170 .review-photo-v160{margin:0!important;max-width:none!important}.review-temp-media-v170 .review-photo-v160 img{width:100%!important;max-height:380px!important}

/* Clean DB-backed cable template. */
.review-db-cables-v171{margin:15px 0 18px}
.db-cable-summary-v171{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 13px;border:1px solid rgba(181,140,48,.38);border-radius:11px;background:rgba(181,140,48,.065);margin-bottom:10px}.db-cable-summary-v171 span{font-size:.72rem;opacity:.68}.db-cable-summary-v171 strong{font-size:.82rem;color:#c99d39}.db-cable-summary-v171 i{font-style:normal;opacity:.5;margin:0 6px}
.db-cable-grid-v171{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.db-cable-card-v171{border:1px solid rgba(183,141,48,.32);border-radius:12px;overflow:hidden;background:rgba(255,255,255,.018)}
.db-cable-card-v171>header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid rgba(181,140,48,.17);background:rgba(181,140,48,.045)}.db-cable-card-v171>header>div{display:flex;align-items:baseline;gap:8px;min-width:0}.db-cable-card-v171>header strong{font:700 .93rem/1.2 Georgia,serif;color:#d0a13b}.db-cable-card-v171>header span{font-size:.66rem;opacity:.62;white-space:nowrap}.db-cable-card-v171>header b{font-size:.66rem;padding:4px 7px;border-radius:999px;border:1px solid rgba(181,140,48,.28);white-space:nowrap;color:#d9bd74}
.db-cable-details-v171{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:7px 10px 10px}.db-cable-details-v171>div{display:flex;justify-content:space-between;gap:10px;padding:7px 5px;border-bottom:1px solid rgba(181,140,48,.10)}.db-cable-details-v171 span{font-size:.67rem;opacity:.6}.db-cable-details-v171 strong{font-size:.7rem;text-align:right}.db-cable-empty-v171{padding:17px 12px;font-size:.72rem;opacity:.58}.db-cable-card-v171.is-absent{opacity:.58}
body.light .db-cable-summary-v171{background:#ddd2b5!important;border-color:#ad8d46!important}.light .db-cable-summary-v171 strong{color:#6b4f15!important}.light .db-cable-card-v171{background:#f0eadb!important;border-color:#c1aa72!important}.light .db-cable-card-v171>header{background:#e5dcc4!important;border-color:#c4ad75!important}.light .db-cable-card-v171>header strong{color:#694b12!important}.light .db-cable-card-v171>header b{color:#5b4519!important;border-color:#baa067!important;background:#eee6d2!important}.light .db-cable-details-v171>div{border-color:#d5c7a5!important}

/* Protection cards: every protection is a separate unit with one unambiguous VAR/YOK state. */
.review-protection-intro-v170{display:grid!important;grid-template-columns:minmax(0,1fr) 210px!important;gap:18px!important;align-items:center!important;margin-bottom:13px!important}.review-protection-intro-v170 figure{margin:0!important}
.review-db-protections-v171{margin-top:10px}.db-protection-supervisor-v171{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 12px;margin-bottom:10px;border:1px solid rgba(181,140,48,.34);border-radius:10px;background:rgba(181,140,48,.055)}.db-protection-supervisor-v171 span{font-size:.69rem;opacity:.62}.db-protection-supervisor-v171 strong{font-size:.78rem;color:#d0a13b;text-align:right}
.db-protection-grid-v171{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.db-protection-card-v171{border:1px solid rgba(181,140,48,.28);border-radius:12px;overflow:hidden;background:rgba(255,255,255,.018);min-width:0}.db-protection-card-v171>header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:9px 10px;border-bottom:1px solid rgba(181,140,48,.14)}.db-protection-card-v171 header strong{display:block;font:700 .93rem/1.1 Georgia,serif;color:#d1a13c}.db-protection-card-v171 header span{display:block;font-size:.58rem;opacity:.55;margin-top:2px}.db-protection-card-v171 header b{font-size:.64rem;letter-spacing:.08em;padding:5px 8px;border-radius:999px;white-space:nowrap}
.db-protection-card-v171 ul{list-style:none;margin:0;padding:8px 10px 10px;display:grid;gap:5px}.db-protection-card-v171 li{font-size:.66rem;line-height:1.35;padding:5px 7px;border-radius:6px;background:rgba(255,255,255,.025);border:1px solid rgba(181,140,48,.10)}.db-protection-card-v171 li.is-pass{font-weight:700}.db-protection-card-v171 li.is-muted{opacity:.58;font-weight:400}
.db-protection-card-v171.is-present{border-color:rgba(72,160,104,.46)}.db-protection-card-v171.is-present header b{color:#8bd0a2;background:rgba(62,157,94,.13);border:1px solid rgba(72,170,105,.34)}.db-protection-card-v171.is-absent{border-color:rgba(190,82,70,.42)}.db-protection-card-v171.is-absent header b{color:#e7a098;background:rgba(180,73,62,.13);border:1px solid rgba(191,82,70,.30)}
body.light .db-protection-supervisor-v171{background:#ddd2b5!important;border-color:#ad8d46!important}.light .db-protection-supervisor-v171 strong{color:#674b14!important}.light .db-protection-card-v171{background:#f0eadb!important}.light .db-protection-card-v171>header{background:#e7dec8!important}.light .db-protection-card-v171 header strong{color:#65490f!important}.light .db-protection-card-v171 li{background:#f7f1e3!important;border-color:#d2c39e!important;color:#403829!important}.light .db-protection-card-v171.is-present{border-color:#8bb596!important}.light .db-protection-card-v171.is-present header b{color:#245c3a;background:#dceade;border-color:#8db99a}.light .db-protection-card-v171.is-absent{border-color:#c99086!important}.light .db-protection-card-v171.is-absent header b{color:#7e2f28;background:#efd9d4;border-color:#c99086}

/* Charts: keep all labels visible and legible in both themes. */
.review-chart-card-v162{overflow:visible!important}.review-chart-card-v162 svg{overflow:visible!important;padding:6px 10px 8px!important}.review-chart-card-v162 .chart-value-v162{font-size:12.5px!important;font-weight:900!important;opacity:1!important;paint-order:stroke!important;stroke:#15130e!important;stroke-width:3px!important;stroke-linejoin:round!important;fill:#f1e6c9!important}.review-chart-card-v162 .chart-axis-v162,.review-chart-card-v162 .chart-axis-title-v162{font-size:10.5px!important;opacity:.82!important}
body.light .review-chart-card-v162{background:linear-gradient(145deg,#e5dcc4,#f0e9d7)!important;border-color:#b59853!important}.light .review-chart-card-v162 svg{background:#e7dec8!important}.light .review-chart-card-v162 .chart-value-v162{stroke:#e7dec8!important;fill:#352a17!important}.light .review-chart-card-v162 .chart-axis-v162,.light .review-chart-card-v162 .chart-axis-title-v162{fill:#493a20!important}

/* Review index follows the same light palette. */
body.light .review-category-switch-v166{background:#e4dcc5!important;border-color:#b59b60!important}.light .review-category-btn-v166{background:#eee8d8!important;color:#44381f!important;border-color:#c2aa70!important}.light .review-category-btn-v166.is-active{background:linear-gradient(#d3bf88,#c1a865)!important;color:#2d2415!important;border-color:#91702b!important}.light .review-category-panel-v166{color:#2d281d!important}.light .review-card-v166{background:#ded5bd!important;border-color:#aa8a43!important;color:#2d2618!important}.light .review-card-v166:after{background:linear-gradient(180deg,rgba(236,229,207,.02),rgba(224,215,190,.18) 36%,rgba(230,222,200,.94) 76%,rgba(230,222,200,.99))!important}.light .review-card-v166 p{color:#514835!important}

@media(max-width:980px){.db-protection-grid-v171{grid-template-columns:repeat(2,minmax(0,1fr))}.review-temp-media-v170{grid-template-columns:1fr}.review-protection-intro-v170{grid-template-columns:1fr!important}.review-protection-intro-v170 figure{max-width:230px!important;margin-inline:auto!important}}
@media(max-width:760px){.review-page.review-article-page-v161{width:100%!important;padding-left:10px!important;padding-right:10px!important}.review-article-page-v161 .review-chapter-v160{padding:25px 19px 29px!important}.review-photo-grid-v162,.review-inner-grid-v167,.db-cable-grid-v171,.db-protection-grid-v171{grid-template-columns:1fr!important}.db-cable-details-v171{grid-template-columns:1fr}.db-cable-summary-v171{align-items:flex-start;flex-direction:column}.review-photo-grid-v162>.review-photo-v160 img{max-height:420px!important}}
@media(min-width:761px){.review-photo-grid-v162>.review-photo-v160:last-child:nth-child(odd){grid-column:1/-1;max-width:680px!important;justify-self:center!important}}


/* v172 — themed thermal/noise graphs */
.review-thermal-grid-v172{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;margin:14px 0 16px!important
}
.review-chart-card-v172{min-width:0!important}
.review-chart-card-v172 svg{width:100%!important;height:auto!important;display:block!important}
.review-temp-sensor-v172{max-width:760px!important;margin:16px auto 0!important}
.review-temp-sensor-v172>a{border-radius:12px!important}

/* Light review theme uses the same cream/brass language as the rest of IRONScale. */
body.light .review-article-page-v161 .review-longread-v160{color:#342d20!important}
body.light .review-article-page-v161 .review-chapter-v160{
  background:
    radial-gradient(circle at 18% 0,rgba(255,251,232,.72),transparent 42%),
    linear-gradient(145deg,#ece6d2,#ddd4b8)!important;
  border-color:#ad8b43!important;
  box-shadow:0 10px 26px rgba(67,51,20,.10)!important
}
body.light .review-chart-card-v172{
  background:linear-gradient(145deg,#e7dec6,#f2ecd9)!important;
  border-color:#ab8a43!important;
  box-shadow:0 8px 20px rgba(70,53,20,.08)!important
}
body.light .review-chart-card-v172 svg{background:linear-gradient(180deg,#ebe3cc,#e2d7bb)!important;border-radius:8px!important}
body.light .review-chart-card-v172 .chart-grid-v162,
body.light .review-chart-card-v172 .chart-grid-x-v162{stroke:rgba(120,91,31,.19)!important}
body.light .review-chart-card-v172 .chart-axis-line-v162{stroke:#7e642d!important}
body.light .review-chart-card-v172 .chart-axis-v162,
body.light .review-chart-card-v172 .chart-axis-title-v162{fill:#4a3b20!important;opacity:1!important}
body.light .review-chart-card-v172 .chart-value-v162{stroke:#e7dec6!important;fill:#2d2416!important}
@media(max-width:800px){.review-thermal-grid-v172{grid-template-columns:1fr!important}}


/* v174 — Green GP550A inner gallery layout.
   Kuş bakışı image stays first and wide; the next four original board photos sit in a clean 2x2 grid. */
.review-inner-hero-v174{margin-bottom:14px!important}
.review-inner-quad-v174{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.review-inner-quad-v174>.review-photo-v160{max-width:none!important;justify-self:stretch!important;grid-column:auto!important}
@media(max-width:760px){.review-inner-quad-v174{grid-template-columns:1fr!important}}


/* v175 — inner photos: bird's-eye first, then four photos as a strict 2x2. */
.review-inner-hero-v175{max-width:860px!important;margin:0 auto 14px!important}
.review-inner-hero-v175 img{width:100%!important;height:auto!important;max-height:620px!important;object-fit:contain!important}
.review-inner-quad-v175{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.review-inner-quad-v175>.review-photo-v160{grid-column:auto!important;max-width:none!important;justify-self:stretch!important;margin:0!important}
.review-inner-quad-v175>.review-photo-v160 img{width:100%!important;height:100%!important;max-height:520px!important;object-fit:contain!important}
@media(max-width:760px){.review-inner-quad-v175{grid-template-columns:1fr!important}.review-inner-hero-v175{max-width:none!important}}
