/* galvanic corrosion and coatings — on top of calc.css */
main.gc { max-width: 1380px; }
main.gc ~ .site-foot { max-width: 1380px; }
main.gc .stage-bar { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
main.gc .stage-bar .hist { margin-left: auto; }
.gc-env { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); min-width: 0; }
.gc-env .pk, .gc-env select { width: 250px; max-width: 58vw; }
.gc-env .pk-in { padding: 4px 9px; font-size: 13px; }
.gc-tabs { grid-template-columns: repeat(2, 1fr); }

/* the joint */
#view { display: block; width: 100%; height: auto; flex: 1; min-height: 0; user-select: none; -webkit-user-select: none; }
#view .prt { cursor: pointer; }
#view .prt:focus { outline: none; }
#view .pcard rect { fill: var(--surface); stroke: var(--steel-300); }
#view .pcard { cursor: pointer; }
#view .pcard:hover rect { stroke: var(--sel); }
#view .pcard.sel rect { stroke: var(--sel); stroke-width: 1.5; }
#view .pcard .pn { font-size: 12px; font-weight: 600; fill: var(--text); }
#view .pcard .pm { font-size: 11.5px; fill: var(--text-2); }
#view .pcard .pv { font-size: 11px; font-weight: 600; }
#view .badge circle { fill: var(--surface); stroke: var(--steel-700); stroke-width: 1; }
#view .badge.sel circle { stroke: var(--sel); stroke-width: 1.8; }
#view .badge text { font-size: 11px; font-weight: 600; fill: var(--text); }
#view .pairhl { fill: none; stroke: var(--sel); stroke-width: 2; stroke-dasharray: 4 3; pointer-events: none; }
#view.narrow .badge text { font-size: 14px; }

.gc-live { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; min-height: 38px; align-items: center; }
.gc-live b { font-weight: 500; color: var(--text-3); margin-right: 5px; }
.gc-live .ok { color: var(--good); font-weight: 500; }
.gc-live .no { color: var(--bad); font-weight: 500; }
.gc-live .mid { color: var(--x-9a6a12, #9a6a12); font-weight: 500; }

/* panel */
.gc-parts { display: grid; gap: 3px; }
.gc-prow { display: grid; grid-template-columns: 22px minmax(0, 1fr) 10px; align-items: center; gap: 8px; padding: 5px 8px 5px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; text-align: left; font-size: 12.5px; color: var(--text); }
.gc-prow:hover { border-color: var(--line-2); }
.gc-prow.on { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); }
.gc-prow .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--steel-700); font-size: 11px; font-weight: 600; }
.gc-prow .t { min-width: 0; display: grid; }
.gc-prow .t b { font-weight: 500; }
.gc-prow .t span { color: var(--text-3); font-size: 11.5px; }
.gc-prow i { width: 9px; height: 9px; border-radius: 50%; }
.gc-field { display: grid; gap: 4px; margin: 8px 0; font-size: 12.5px; color: var(--text-2); }
.gc-field > span { font-size: 12px; color: var(--text-3); }
.gc-facts { margin: 10px 0 0; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; color: var(--text-2); display: grid; gap: 4px; }
.gc-facts b { color: var(--text); font-weight: 500; }
.gc-touch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.gc-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.linkish { border: 0; background: none; color: var(--sel); cursor: pointer; padding: 0; font-size: 12.5px; }
.linkish:hover { text-decoration: underline; }

/* summary */
.gc-sum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.gc-story { padding: 16px 20px; }
.gc-story .mode { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--text-3); text-transform: uppercase; }
.gc-story p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; max-width: 70ch; }
.gc-story p.sub { font-size: 12.5px; color: var(--text-2); }
.gc-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.gc-mini .stat { border-left: 0; border-bottom: 1px solid var(--line); }
.gc-mini .stat:nth-child(even) { border-left: 1px solid var(--line); }
.gc-mini .stat:nth-last-child(-n+2) { border-bottom: 0; }
.gc-fixes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 14px; align-items: center; font-size: 12.5px; color: var(--text-3); }
.gc-fix { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; color: var(--text); cursor: pointer; }
.gc-fix:hover { border-color: var(--good); color: var(--good); }
.gc-fix .ms { margin-left: 6px; min-width: 0; padding: 0 6px; font-size: 11.5px; }

/* pairs table */
.gc-pairs td.l .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; border: 1px solid rgba(0,0,0,.18); }
.gc-pairs td.why { white-space: normal; min-width: 240px; max-width: 420px; text-align: left; color: var(--text-2); font-size: 12.5px; }
.gc-pairs td small { color: var(--text-3); }
.gc-pairs .an { color: var(--bad); font-weight: 500; }

/* galvanic series */
#seriesWrap { position: relative; }
#series { display: block; width: 100%; height: auto; user-select: none; }
#series .row { cursor: pointer; }
#series .row:hover .bg, #series .row.hov .bg { fill: var(--sel-bg); }
#series .bg { fill: transparent; }
#series .nm { font-size: 12px; fill: var(--text-2); }
#series .row.in .nm { fill: var(--text); font-weight: 600; }
#series .fam { font-size: 10.5px; fill: var(--text-3); letter-spacing: .03em; }
#series .bar { fill: var(--steel-500); }
#series .row.in .bar { fill: var(--sel); }
#series .row.an .bar { fill: var(--bad); }
#series .row.ins .nm { font-style: italic; }
#series .axis { stroke: var(--line-2); }
#series .grid { stroke: var(--fill-1); }
#series .tk { font-size: 10.5px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
#series .band { fill: var(--good); opacity: .08; }
#series .band-l { stroke: var(--good); stroke-width: 1; stroke-dasharray: 3 3; }
#series .brk { stroke-width: 1.4; fill: none; }
#series .brk-t { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
#series .hov-t { font-size: 11.5px; fill: var(--text); font-weight: 500; }
#series .hov-p rect { fill: var(--surface); stroke: var(--steel-300); }

/* recommender */
.gc-rec { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.gc-rec-in { display: grid; gap: 10px; font-size: 12.5px; }
.gc-rec-in .grp-h { margin-bottom: 2px; }
.gc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.gc-chips .chip.on { background: var(--text); color: var(--on-accent); border-color: var(--text); }
.gc-from { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.gc-from b { color: var(--text-2); font-weight: 500; }
.gc-rec-in .num { width: 110px; }
.gc-rec-in .row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-2); }
.gc-opts { display: grid; gap: 8px; }
.gc-opt { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; align-items: start; }
.gc-opt.top { border-color: var(--good); box-shadow: inset 0 0 0 1px var(--good); }
.gc-opt .rk { font-size: 18px; font-weight: 600; color: var(--text-3); line-height: 1.2; }
.gc-opt h3 { margin: 0; font-size: 14px; font-weight: 600; }
.gc-opt h3 small { font-weight: 400; color: var(--text-3); font-size: 12px; margin-left: 6px; }
.gc-opt ul { margin: 6px 0 0; padding: 0 0 0 16px; font-size: 12.5px; color: var(--text-2); }
.gc-opt li { margin: 2px 0; }
.gc-opt li.c { color: var(--x-9a6a12, #9a6a12); }
.gc-opt li.x { color: var(--bad); }
.gc-opt .kv { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.gc-opt .kv b { color: var(--text); font-weight: 500; }
.gc-opt .kv a { color: var(--sel); text-decoration: none; }
.gc-opt .kv a:hover { text-decoration: underline; }
.gc-opt .act { display: grid; gap: 6px; justify-items: end; }
.gc-out { margin-top: 14px; }
.gc-out h3 { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.gc-out ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 12.5px; color: var(--text-2); }
.gc-out li b { color: var(--text); font-weight: 500; }

/* comparison table */
.gc-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.gc-filter input[type=search] { width: 200px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; outline: none; }
.gc-filter input[type=search]:focus { border-color: var(--text-2); }
.gc-cmp th.s { cursor: pointer; user-select: none; }
.gc-cmp th.s:hover { color: var(--text); }
.gc-cmp th .ar { color: var(--sel); margin-left: 2px; }
.gc-cmp td.nm { text-align: left; font-weight: 500; white-space: normal; min-width: 170px; }
.gc-cmp td.nm small { display: block; font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.gc-cmp td.na { color: var(--x-b5b7bb, #b5b7bb); }
.gc-cmp .he-high { color: var(--bad); font-weight: 500; }
.gc-cmp .he-low { color: var(--x-9a6a12, #9a6a12); }
.gc-cmp .he-none { color: var(--good); }
.gc-cmp .flag { font-size: 11px; border-radius: 999px; padding: 1px 7px; background: var(--bad-bg); color: var(--bad-ink); margin-left: 3px; }
.dotc { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); vertical-align: -1px; margin-right: 2px; }

/* cards */
.gc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.gc-card { border: 1px solid var(--line); border-radius: 12px; padding: 0; }
.gc-card > summary { list-style: none; cursor: pointer; padding: 12px 14px; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.gc-card > summary::-webkit-details-marker { display: none; }
.gc-card > summary .chev { color: var(--text-3); font-size: 11px; transition: transform .15s; }
.gc-card[open] > summary .chev { transform: rotate(90deg); }
.gc-card > summary b { font-weight: 600; font-size: 14px; }
.gc-card > summary span.k { display: block; font-size: 12px; color: var(--text-3); }
.gc-card > summary .sw { width: 34px; height: 18px; border-radius: 5px; border: 1px solid rgba(0,0,0,.15); }
.gc-card:target, .gc-card.flash { border-color: var(--sel); }
.gc-card dl { margin: 0; padding: 0 14px 12px 38px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 5px 12px; font-size: 12.5px; }
.gc-card dt { color: var(--text-3); }
.gc-card dd { margin: 0; color: var(--text-2); line-height: 1.45; }
.gc-card dd b { color: var(--text); font-weight: 500; }
.gc-card dd a.src, .src-a { font-size: 10.5px; color: var(--text-3); text-decoration: none; vertical-align: 1px; margin-left: 2px; }
.gc-card dd a.src:hover, .src-a:hover { color: var(--sel); }
.gc-card .vt { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 4px; }
.gc-card .vt td, .gc-card .vt th { padding: 2px 6px 2px 0; text-align: left; font-weight: 400; border-bottom: 1px solid var(--fill-1); }
.gc-card .vt th { color: var(--text-3); font-size: 11.5px; }

/* environment */
.gc-env-t td.l { white-space: normal; text-align: left; min-width: 180px; }
.gc-env-t td.ex { white-space: normal; text-align: left; color: var(--text-2); font-size: 12.5px; min-width: 260px; }
.gc-env-t tr.cur td { background: var(--sel-bg); }
.gc-env-t .cat { font-weight: 600; }
#envMore { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; font-size: 12.5px; color: var(--text-2); }
#envMore h3 { font-size: 13px; color: var(--text); margin: 0 0 6px; }
#envMore p { margin: 0 0 6px; line-height: 1.5; }
#envMore blockquote { margin: 4px 0 8px; padding: 6px 10px; background: var(--surface-2); border-radius: 8px; color: var(--text-2); }

/* mitigation */
.gc-mit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gc-m { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.gc-m h3 { margin: 0 0 4px; font-size: 13.5px; color: var(--text); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.gc-m h3 svg { flex: none; }
.gc-m p { margin: 0; }

/* method */
.gc-method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; font-size: 13px; color: var(--text-2); }
.gc-method h3 { font-size: 13px; color: var(--text); margin: 0 0 4px; }
.gc-method p { margin: 0 0 6px; line-height: 1.5; }
.gc-method .eq { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-style: italic; font-size: 15px; color: var(--text); margin: 4px 0 6px; }
.gc-method .eq sub { font-size: .7em; }
.gc-method table { border-collapse: collapse; font-size: 12.5px; }
.gc-method td, .gc-method th { padding: 3px 12px 3px 0; text-align: left; border-bottom: 1px solid var(--fill-1); font-weight: 400; }
.gc-method th { color: var(--text-3); }

.ex-wrap { position: relative; }
.ex-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 45; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(20, 22, 28, .12); padding: 6px; display: grid; gap: 2px; min-width: 460px; max-width: calc(100vw - 32px); }
.ex-menu[hidden] { display: none; }
.ex-menu button { border: 0; background: none; text-align: left; padding: 6px 10px 6px 6px; border-radius: 7px; cursor: pointer; font: inherit; font-size: 13px; color: var(--text); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; }
.ex-menu .ex-th { width: 96px; height: 64px; display: block; }
.ex-menu .ex-th svg { display: block; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.ex-menu .ex-tx { display: grid; gap: 1px; min-width: 0; }
.ex-menu button small { color: var(--text-3); font-size: 11.5px; line-height: 1.35; }
.ex-menu button:hover, .ex-menu button:focus-visible { background: var(--fill-1); outline: none; }
@media (max-width: 560px) {
  main.gc .stage-bar { position: relative; } main.gc .stage-bar .ex-wrap { position: static; }
  main.gc .ex-menu { top: auto; left: 8px; right: 8px; margin-top: 6px; min-width: 0; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main.gc .ex-menu button { grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: start; border: 1px solid var(--line); padding: 6px; }
  main.gc .ex-menu .ex-th { width: 100%; height: auto; } main.gc .ex-menu .ex-th svg { width: 100%; height: auto; }
}

.ms.ins { color: var(--text-2); background: var(--fill-1); }

@media (max-width: 1200px) { .gc-mit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1040px) {
  .gc-sum { grid-template-columns: minmax(0, 1fr); }
  .gc-mini { border-left: 0; border-top: 1px solid var(--line); }
  .gc-rec { grid-template-columns: minmax(0, 1fr); }
  .gc-cards { grid-template-columns: minmax(0, 1fr); }
  .gc-method, #envMore { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .gc-mit { grid-template-columns: minmax(0, 1fr); }
  .gc-env { width: 100%; }
  .gc-env .pk, .gc-env select { width: auto; flex: 1; max-width: none; }
  .gc-pairs td.why { display: none; }
  .gc-pairs th.why { display: none; }
  .gc-card dl { grid-template-columns: minmax(0, 1fr); padding-left: 14px; gap: 1px; }
  .gc-card dd { margin-bottom: 6px; }
  .gc-opt { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .gc-opt .act { grid-column: 2; justify-items: start; }
  .gc-mini { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .margins td, .margins th { padding-left: 5px; padding-right: 5px; }
  .gc-cmp .hide-s { display: none; }
}

/* finish swatches, cards with layer diagrams */
.gc-looks { display: flex; flex-wrap: wrap; gap: 4px; }
.gc-look { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 2px 10px 2px 6px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.gc-look:hover { border-color: var(--line-2); }
.gc-look.on { border-color: var(--sel); color: var(--text); box-shadow: inset 0 0 0 1px var(--sel); }
.gc-look svg { flex: none; }
.flag { font-style: normal; font-size: 10.5px; border-radius: 999px; padding: 0 6px; background: var(--bad-bg); color: var(--bad-ink); }
.gc-sws { display: inline-flex; gap: 2px; }
.gc-card > summary { grid-template-columns: 14px minmax(0, 1fr) auto; }
.nmw { display: inline-flex; gap: 8px; align-items: center; }
.nmw svg { flex: none; }
.gc-opt .rk { display: flex; }
.gc-opt h3 .n { color: var(--text-3); font-weight: 500; }
.gc-tech { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0 14px 12px 38px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.gc-tech-t { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.gc-tech-t p { margin: 4px 0 0; }
.gc-tech-t b { color: var(--text); font-weight: 500; }
.gc-tech .mech { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--clamp); }
.gc-tech .brands { color: var(--text-3); font-size: 12px; }
.gc-layers { width: 100%; height: auto; display: block; }
.gc-layers .ly-t { font-size: 11px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.gc-layers .ly-n { fill: var(--text-2); font-weight: 500; }
.gc-layers .ly-l { stroke: var(--steel-400); stroke-width: .6; fill: none; }
.gc-layers .ly-d { stroke: var(--text-2); stroke-width: .8; fill: none; }
.gc-layers .ly-tot { fill: var(--text); font-weight: 500; }
.ly-note { margin: 2px 0 0; font-size: 11px; color: var(--text-3); }
.gc-tech-d .ly-note { display: none; }
@media (max-width: 640px) { .gc-tech { grid-template-columns: minmax(0, 1fr); margin-left: 14px; } .gc-layers .ly-t { font-size: 11px; } }
#series .row.in .bar { stroke: var(--sel); stroke-width: 1.2; }
#series .row.an .bar { stroke: var(--bad); stroke-width: 1.6; }
#series .bar.mil { fill: none; stroke: var(--steel-500); stroke-dasharray: 2 2; }
.gc-allnoble { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--x-8a5a0f, #8a5a0f); font-size: 13px; }
.show-s { display: none; }
@media (max-width: 640px) {
  .hide-s { display: none; }
  .show-s { display: inline; }
  .gc-pairs td.l { white-space: normal; }
  .gc-env-t td.ex, .gc-env-t td.l { min-width: 0; }
  .gc-cmp td.nm { min-width: 0; }
}
@media (max-width: 640px) { .gc-cmp td.nm small { display: none; } .nmw { gap: 6px; } .gc-cmp td { white-space: normal; } }
details.more { display: inline; }
details.more > summary { display: inline; cursor: pointer; color: var(--sel); font-size: 12px; list-style: none; margin-left: 4px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] { display: block; margin-top: 4px; color: var(--text-3); font-size: 12px; }
details.more[open] > summary { display: none; }
.gc-tech-d { max-width: 520px; }
#view g.fade { animation: gc-fade .45s ease-out forwards; }
@keyframes gc-fade { from { opacity: 1; } to { opacity: 0; } }
.ly-leg { display: none; }
@media (max-width: 640px) {
  .gc-layers .ly-t, .gc-layers .ly-l { display: none; }
  .gc-layers .ly-tot { display: none; }
  .ly-leg { display: block; margin: 4px 0 0; padding: 0 0 0 16px; font-size: 12px; color: var(--text-2); }
  .ly-leg b { font-weight: 500; color: var(--text); }
}
.cost { font-weight: 600; color: var(--text-2); letter-spacing: .02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost i { font-style: normal; color: var(--line-2); }
.cost.none { color: var(--x-b5b7bb, #b5b7bb); font-weight: 400; }


/* card, visual first: swatches and summary, six key facts, the layer drawing; the rest under "Details and sources" */
.gc-hero { padding: 0 14px 12px 38px; display: grid; gap: 12px; }
.gc-hero-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.gc-sw-big { display: flex; gap: 8px; }
.gc-sw-big figure { margin: 0; display: grid; justify-items: center; gap: 3px; width: 64px; }
.gc-sw-big figcaption { font-size: 11px; line-height: 1.25; color: var(--text-3); text-align: center; }
.gc-when .mech { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--clamp); }
.gc-when p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.gc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gc-chip { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--surface-2); display: grid; gap: 1px; min-width: 0; align-content: start; }
.gc-chip > span { font-size: 11px; color: var(--text-3); }
.gc-chip b { font-size: 14px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.gc-chip small { font-size: 11px; color: var(--text-3); line-height: 1.3; }
.gc-chip.na b { color: var(--x-b5b7bb, #b5b7bb); font-weight: 400; }
.gc-chip .he-high { color: var(--bad); } .gc-chip .he-low { color: var(--x-9a6a12, #9a6a12); } .gc-chip .he-none { color: var(--good); }
.gc-det { margin: 0 14px 12px 38px; border-top: 1px solid var(--line); }
.gc-det > summary { list-style: none; cursor: pointer; padding: 9px 0 6px; font-size: 12.5px; color: var(--sel); }
.gc-det > summary::-webkit-details-marker { display: none; }
.gc-det > summary::before { content: "▸ "; color: var(--text-3); }
.gc-det[open] > summary::before { content: "▾ "; }
.gc-det .gc-tech { margin: 4px 0 10px; }
.gc-det dl { padding: 0 0 4px; }
.gc-tech h4 { margin: 0; font-size: 12px; font-weight: 600; color: var(--text-2); }
@media (max-width: 640px) {
  .gc-hero, .gc-det { margin-left: 0; padding-left: 14px; padding-right: 14px; }
  .gc-det { margin-left: 14px; margin-right: 14px; padding: 0; }
  .gc-hero-top { grid-template-columns: minmax(0, 1fr); }
  .gc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* an open card takes the full width (no holes next to it); collapsed cards fill in around it */
.gc-cards { grid-auto-flow: row dense; }
.gc-card[open] { grid-column: 1 / -1; }
.gc-hero { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 14px 24px; align-items: start; }
.gc-hero-v { display: grid; gap: 10px; min-width: 0; }
.gc-hero-t { display: grid; gap: 12px; min-width: 0; }
.gc-sw-big figure { width: 78px; position: relative; }
.gc-sw-big figure .flag { position: absolute; top: -2px; right: 2px; }
.gc-sw-big figcaption { min-height: 2.5em; }
@media (max-width: 1040px) { .gc-hero { grid-template-columns: minmax(0, 1fr); } }
.gc-sw-big { flex-wrap: wrap; }
@media (max-width: 640px) { .gc-sw-big figure { width: 70px; } .gc-hero { padding-left: 14px; } }
@media (max-width: 640px) { .gc-sw-big { gap: 4px; } .gc-sw-big figure { width: 64px; } .gc-sw-big figure > svg { width: 44px; height: 44px; } }
.ly-note2 { margin: 4px 0 0; font-size: 11.5px; color: var(--text-3); }

.gc-chip .src-a { justify-self: start; margin: 0; }
.gc-chip b a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.gc-chip b a:hover { color: var(--sel); }
.gc-bar-l { font-size: 12px; color: var(--text-3); margin: 0 2px 0 8px; }
.gc-bar-l:first-child { margin-left: 0; }
.gc-cardbar { margin-bottom: 10px; }
.gc-sv { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gc-card > summary { grid-template-columns: 14px minmax(0, 1fr) auto auto; }
/* how it's applied: a small process strip */
.gc-proc h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.ps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.ps li { display: flex; align-items: center; }
.ps-a { width: 14px; height: 10px; margin: 0 5px; flex: none; }
.ps-b { display: inline-grid; gap: 0; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); position: relative; max-width: 190px; }
.ps-b b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.ps-b small { font-size: 11px; color: var(--text-3); line-height: 1.3; }
.ps-t { font-style: normal; font-size: 11px; color: var(--x-9a5a12, #9a5a12); font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-hot .ps-b { background: var(--x-fdf3e7, #fdf3e7); border-color: var(--x-f0d9b9, #f0d9b9); }
.ps-hh { font-style: normal; font-size: 10px; font-weight: 700; color: var(--bad); background: var(--bad-bg); border-radius: 999px; padding: 0 6px; }
.ps-b .ps-hh { position: absolute; top: -7px; right: -6px; }
.ps-n { margin: 6px 0 0; font-size: 11.5px; color: var(--text-3); }

/* margins (lug standard): icon + name, preview card on hover/focus/tap */
.gc-risk td.chk { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.gc-risk td.chk .th { flex: none; width: 46px; height: 46px; margin: -8px 0; }
.gc-risk td.chk:focus-visible { outline: 2px solid var(--sel); outline-offset: -2px; border-radius: 6px; }
.gc-risk td.where, .gc-risk td.basis { white-space: normal; color: var(--text-2); font-size: 12.5px; }
.gc-risk td.basis { max-width: 300px; }
.gc-risk .gtag { min-width: 0; }
.gc-pv { position: fixed; z-index: 60; width: 236px; padding: 8px 8px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(20, 24, 30, .14); pointer-events: none; font-size: 12px; color: var(--text); }
.gc-pv[hidden] { display: none; }
.gc-pv svg { display: block; width: 220px; height: auto; margin: 4px 0 6px; }
.gc-pv .pv-h { font-weight: 600; font-size: 12px; line-height: 1.35; }
.gc-pv .pv-c { color: var(--text-2); line-height: 1.35; }
.gc-pv .pv-m { margin-top: 4px; color: var(--text-3); }
@media print { .gc-pv { display: none !important; } }
@media (max-width: 640px) { .gc-risk td.chk { white-space: normal; } }
/* the input panel scrolls inside the stage height: fade its edges where there is more, so nothing looks cut in half */
#panel.fade-b { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); }
#panel.fade-t { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px); mask-image: linear-gradient(to bottom, transparent, #000 28px); }
#panel.fade-t.fade-b { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 32px), transparent); }

main.gc .stage { overflow: visible; }
main.gc .stage > svg { border-radius: 0 0 12px 12px; }
@media (max-width: 1240px) { .gc-risk th.basis, .gc-risk td.basis { display: none; } }
@media (max-width: 640px) {
  .gc-risk td.chk .th { width: 36px; height: 36px; margin: -6px 0; }
  .gc-risk td.chk { gap: 6px; }
  .gc-risk td small.show-s { display: block; color: var(--text-3); font-size: 11px; }
  .gc-risk .ms { min-width: 0; }
}
@media (max-width: 1240px) { .gc-pairs td.why { min-width: 150px; } .gc-pairs td.l { white-space: normal; } }
.gc-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding: 6px 14px 8px; font-size: 12px; color: var(--text-2); }
.gc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gc-legend .lg-n { color: var(--text-3); flex-basis: 100%; }
#view .prt .tint { fill: var(--sel); fill-opacity: 0; pointer-events: none; }
#view .prt:hover .tint { fill-opacity: .07; }
#view .prt.sel .tint { fill-opacity: .07; }
#view .prt:focus-visible .ol { stroke: var(--sel); stroke-width: 2; }
#view .atk, #view .det, #view .detm, #view .dvt, #view .ldr { pointer-events: none; }
#view .detl { font-size: 12px; font-weight: 600; fill: var(--text); }
#view.narrow .detl { font-size: 15px; }
#view .detw { font-weight: 600; fill: var(--text-2); }
#view .detc, #view .detk { fill: var(--text-2); }

/* theme-auto:start · generated by scripts/theme/hexmap.py: dark values (the rule of scripts/theme/colour.py) for
   colours that are not tokens, written as var(--x-rrggbb, #rrggbb): light is the fallback, unchanged */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --x-26282b: #c8c6c2; --x-4a3426: #c6afa2; --x-4a4c4f: #a5a39f; --x-6e7177: #85827f; --x-6f9cc4: #91b6d7;
    --x-7a8f5a: #a4b78a; --x-7d848a: #70757a; --x-8a5a0f: #c89e6a; --x-9a5a12: #d59c6a; --x-9a6a12: #d0a66a;
    --x-a3a6ab: #5c5a56; --x-a9683f: #dba280; --x-b39a52: #d4bf85; --x-b5b7bb: #504e4a; --x-b9a7d6: #a899bf;
    --x-c4c9cd: #44423f; --x-cfd3d7: #3e3c38; --x-d8e8f5: #27323a; --x-dcd8d0: #3a3833; --x-dde6ee: #2c3136;
    --x-e0a35c: #f3bf87; --x-e1dfd9: #363430; --x-e7c9a5: #5e4930; --x-e9c6a8: #614934; --x-efe3bd: #393117;
    --x-f0d9b9: #42331d; --x-f1e2b5: #3b3111; --x-fdf3e7: #2c261f;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --x-26282b: #c8c6c2; --x-4a3426: #c6afa2; --x-4a4c4f: #a5a39f; --x-6e7177: #85827f; --x-6f9cc4: #91b6d7;
    --x-7a8f5a: #a4b78a; --x-7d848a: #70757a; --x-8a5a0f: #c89e6a; --x-9a5a12: #d59c6a; --x-9a6a12: #d0a66a;
    --x-a3a6ab: #5c5a56; --x-a9683f: #dba280; --x-b39a52: #d4bf85; --x-b5b7bb: #504e4a; --x-b9a7d6: #a899bf;
    --x-c4c9cd: #44423f; --x-cfd3d7: #3e3c38; --x-d8e8f5: #27323a; --x-dcd8d0: #3a3833; --x-dde6ee: #2c3136;
    --x-e0a35c: #f3bf87; --x-e1dfd9: #363430; --x-e7c9a5: #5e4930; --x-e9c6a8: #614934; --x-efe3bd: #393117;
    --x-f0d9b9: #42331d; --x-f1e2b5: #3b3111; --x-fdf3e7: #2c261f;
  }
}
/* theme-auto:end */
