/* Page-only styles for /solar-certification-body-software/ (prefix scb-). Concept: a certification file on one record,
   in seal indigo and stamp green: file strip under the hero, numbered certifier tabs, a certificate register window. */

.scb-hero { --scb-ink: #2E3A7A; --scb-bg: #EEF1FA; --scb-ok: #2B7A0B; --scb-ok-bg: #EDF7E6; --scb-warn: #92400E; --scb-warn-bg: #FEF3E2;
  --scb-bad: #B91C1C; --scb-bad-bg: #FDECEC; }
#main { --scb-ink: #2E3A7A; --scb-bg: #EEF1FA; }

/* hero art */
.scb-hero__art { position: relative; }
.scb-hero__art::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: 28px; z-index: -1;
  background: repeating-linear-gradient(135deg, #E3E7F6 0 10px, #EEF1FA 10px 20px); }
.scb-art { border: 1px solid #DCE1F2; box-shadow: 0 30px 70px -40px rgba(30, 41, 90, .55); }

/* certification file strip */
.scb-strip { margin-top: 44px; padding: 18px 22px 20px; background: #fff; border: 1px solid #DCE1F2; border-left: 6px solid var(--scb-ink);
  border-radius: 18px; box-shadow: 0 20px 44px -34px rgba(30, 41, 90, .5); }
.scb-strip__k { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 800 12.5px/1 var(--font-ui); letter-spacing: .12em;
  text-transform: uppercase; color: var(--scb-ink); }
.scb-strip__k em { font-style: normal; letter-spacing: .04em; color: #fff; background: var(--scb-ink); border-radius: 999px; padding: 4px 9px; font-size: 11.5px; }
.scb-strip dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; }
.scb-strip dl > div { position: relative; padding: 12px 14px; border-radius: 12px; background: var(--scb-bg); }
.scb-strip dl > div::after { content: "✓"; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; display: grid;
  place-items: center; background: #DCEBD2; color: #1F5A08; font: 800 10px/1 var(--font-ui); }
.scb-strip dl > div:last-child { background: #FEF3E2; }
.scb-strip dl > div:last-child::after { content: "!"; background: #FDE7B4; color: #92400E; }
.scb-strip dt { font: 600 12.5px/1.3 var(--font-ui); color: var(--muted); padding-right: 22px; }
.scb-strip dd { margin: 4px 0 0; font: 800 16px/1.3 var(--font-ui); color: var(--ink); }

/* certifier tabs */
.scb-who__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.scb-who__tabs button { -webkit-appearance: none; appearance: none; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto;
  column-gap: 12px; align-items: center; text-align: left; min-height: 72px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; }
.scb-who__tabs button span { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--scb-bg); color: var(--scb-ink); font: 800 16px/1 var(--font-ui); transition: background .2s, color .2s; }
.scb-who__tabs button b { font: 700 16px/1.3 var(--font-ui); }
.scb-who__tabs button small { font: 500 13.5px/1.35 var(--font-ui); color: var(--muted); }
.scb-who__tabs button:hover { border-color: #AEB8E2; }
.scb-who__tabs button[aria-selected="true"] { border-color: var(--scb-ink); background: var(--scb-bg); transform: translateY(-3px);
  box-shadow: 0 16px 30px -22px rgba(30, 41, 90, .6); }
.scb-who__tabs button[aria-selected="true"] span { background: var(--scb-ink); color: #fff; }
.scb-who__tabs button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.scb-who__panel { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--scb-ink); border-radius: 20px; padding: 26px 28px;
  box-shadow: 0 24px 48px -36px rgba(30, 41, 90, .5); }
.scb-who__panel h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; }
.scb-who__panel > p { margin: 0 0 16px; max-width: 900px; }
.scb-who__meta { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scb-who__meta li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.scb-who__meta b { font: 800 11.5px/1.2 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--scb-ink); }
.scb-who__meta li:nth-child(2) b { color: #B91C1C; }

/* register window */
.scb-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.scb-split .sec__head { position: sticky; top: 100px; margin-bottom: 0; }
.scb-ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.scb-ticks li { position: relative; padding-left: 28px; font: 500 15px/1.5 var(--font-ui); color: var(--ink); }
.scb-ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  background: #E3E7F6; color: #2E3A7A; font: 800 12px/1 var(--font-ui); }
.scb-reg__body { padding: 6px 0 0; overflow-x: auto; }
.scb-reg__tbl { width: 100%; border-collapse: collapse; font: 500 14.5px/1.4 var(--font-ui); min-width: 520px; }
.scb-reg__tbl th, .scb-reg__tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.scb-reg__tbl thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--paper); }
.scb-reg__tbl tbody th { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scb-reg__tbl tbody th small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.scb-reg__tbl tbody tr:last-child th, .scb-reg__tbl tbody tr:last-child td { border-bottom: 0; }
.scb-st { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 700 12.5px/1.2 var(--font-ui); white-space: nowrap; }
.scb-st--ok { background: #EDF7E6; color: #1F5A08; }
.scb-st--warn { background: #FEF3E2; color: #92400E; }
.scb-st--bad { background: #FDECEC; color: #B91C1C; }
.scb-reg__note { margin: 0; padding: 12px 16px 14px; font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--line); }

/* boundary lanes */
.scb-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.scb-lane { border-radius: 16px; padding: 22px; border: 1px solid var(--line); background: #fff; border-top: 5px solid var(--green); }
.scb-lane h3 { display: grid; gap: 10px; justify-items: start; margin: 0 0 12px; font-size: 19px; line-height: 1.3; }
.scb-lane ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; line-height: 1.5; }
.scb-lane--c { border-top-color: var(--scb-ink); }
.scb-lane--x { border-top-color: #94A3B8; background: var(--paper); }

/* notes, offers, local */
.scb-note { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.scb-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.scb-offer { position: relative; padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.scb-offer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--green); }
.scb-offer:nth-child(2)::before { background: var(--scb-ink); }
.scb-offer:nth-child(3)::before { background: var(--brand); }
.scb-offer__k { margin: 0 0 8px; font: 800 12px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.scb-offer h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.3; }
.scb-offer p:last-child { margin: 0; font-size: 15px; line-height: 1.55; }
.scb-local { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.scb-local > div { padding: 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.scb-local > div:first-child { background: var(--scb-ink); border-color: var(--scb-ink); color: #DCE1F2; }
.scb-local > div:first-child h3 { color: #fff; }
.scb-local > div:first-child a { color: #fff; }
.scb-local h3 { margin: 0 0 8px; font-size: 18px; }
.scb-local p { margin: 0; font-size: 15px; line-height: 1.55; }

@media (max-width: 1040px) {
  .scb-strip dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scb-local { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .scb-split { grid-template-columns: 1fr; gap: 24px; }
  .scb-split .sec__head { position: static; }
  .scb-who__tabs { grid-template-columns: 1fr; }
  .scb-who__tabs button[aria-selected="true"] { transform: none; }
  .scb-lanes, .scb-offers { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .scb-strip { padding: 16px; }
  .scb-strip dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scb-strip dl > div:last-child { grid-column: 1 / -1; }
  .scb-who__panel { padding: 20px 18px; }
  .scb-who__panel h3 { font-size: 19px; }
  .scb-who__meta, .scb-local { grid-template-columns: 1fr; }
  .scb-hero__art::before { inset: -8px 8px 8px -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .scb-who__tabs button { transition: none; }
  .scb-who__tabs button[aria-selected="true"] { transform: none; }
}
