/* jms-tabs.css v1 - format B tabs for the five industry pages (preview). */
.tb-page .tb-shell, .tb-page .tb-shell button { font-family: 'Roboto Flex', Roboto, 'Source Sans 3', sans-serif; }
.tb-shell { padding-top: 2.2rem; padding-bottom: 0; background: #f2f4f6; border-bottom: 1px solid #d8dde2; }
.tb-shell .tb-panels { background: #fff; padding: 2.6rem 0 3.4rem; margin-top: 0; }
.tb-shell h2 { font-family: 'Roboto Flex', Roboto, sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.tb-shell h3 { font-family: 'Roboto Flex', Roboto, sans-serif; font-weight: 600; }
.tb-shell .kicker, .tb-tag, .tb-shell .st, .tb-shell .ind-fit { font-family: 'Roboto Mono', ui-monospace, monospace; }

/* fault icon strip */
.tb-icons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: #d8dde2; border: 1px solid #d8dde2; }
.tb-ic { display: block; background: #fff; padding: 1rem 1rem 1.05rem; color: #131f23; text-decoration: none; font-size: .9rem; line-height: 1.35; }
.tb-ic:hover { background: #f7f9fb; color: #0b3f86; }
.tb-ic svg { width: 28px; height: 28px; stroke: #0b3f86; fill: none; stroke-width: 1.6; display: block; margin-bottom: .55rem; }
.tb-ic b { display: block; font-weight: 600; margin-bottom: .15rem; }
.tb-ic span { font-family: 'Roboto Mono', monospace; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #5d6b73; }

/* section tabs */
.tb-tabs { display: flex; gap: 0; margin-top: 1.8rem; overflow-x: auto; scrollbar-width: none; }
.tb-tabs [role=tab] { font: 600 .88rem/1 'Roboto Flex', Roboto, sans-serif; text-transform: uppercase; letter-spacing: .06em; padding: 1rem 1.5rem 1.05rem; border: 0; background: transparent; color: #3c4a52; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; min-height: 44px; }
.tb-tabs [role=tab]:hover { color: #0b3f86; }
.tb-tabs [role=tab][aria-selected=true] { color: #0b3f86; border-bottom-color: #0b3f86; background: #fff; }
.tb-shell [role=tab]:focus-visible, .tb-ic:focus-visible, .tb-panel:focus-visible { outline: 2px solid #fbcf11; outline-offset: 2px; }

/* panels: everything visible without JS; JS adds [hidden] */
.tb-panel[hidden], .tb-fault[hidden] { display: none !important; }
.tb-panel > h2:first-child, .tb-sub > h2:first-child { margin-top: 0; }
.tb-sub + .tb-sub { margin-top: 2.6rem; padding-top: 2.4rem; border-top: 1px solid #e3e8ee; }
.tb-sub .spec-pair { margin: 0; }

/* fault cards (they are tabs for the detail panel) */
.tb-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0 0; }
.tb-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid #d8dde2; background: #fff; cursor: pointer; color: #131f23; font: inherit; box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: border-color .15s, box-shadow .15s; }
.tb-card:hover { border-color: #9fb3c8; box-shadow: 0 6px 18px rgba(16,24,40,.08); }
.tb-card[aria-selected=true] { border-color: #0b3f86; box-shadow: 0 0 0 1px #0b3f86, 0 8px 22px rgba(11,63,134,.12); }
.tb-im { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9edf1; border-bottom: 1px solid #d8dde2; }
.tb-im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-in { display: block; padding: .8rem .85rem .95rem; }
.tb-tag { display: inline-block; font-size: .68rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; background: #e7eef6; color: #0b3f86; padding: .2rem .4rem; margin-bottom: .5rem; }
.tb-name { display: block; font-weight: 600; font-size: .98rem; line-height: 1.3; margin-bottom: .35rem; }
.tb-cap { display: block; font-size: .85rem; line-height: 1.45; color: #46545c; }

/* detail panel */
.tb-detail { margin-top: 1.8rem; border-top: 1px solid #d8dde2; padding-top: 1.8rem; }
.tb-detail .tb-fault { display: block; padding: 0; border: 0; box-shadow: none; background: transparent; }
.tb-detail .tb-fault + .tb-fault { margin-top: 2.4rem; }
.tb-detail .tb-fault h3 { font-size: 1.6rem; margin: 0 0 1rem; }
.tb-detail .ind-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 0 0 1.2rem; }
.tb-detail .shot { margin: 0; background: #fff; border: 1px solid #d5dbe1; padding: 8px; box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08); }
.tb-detail .shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.tb-detail .shot figcaption { padding: .6rem .2rem .1rem; font-size: .9rem; line-height: 1.45; color: #3c4a52; }
.tb-detail .shot figcaption span { font-family: 'Roboto Mono', monospace; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: #fff; background: #b42318; padding: .22rem .45rem; margin-right: .45rem; font-weight: 500; display: inline-block; width: auto; }
.tb-detail .shot.pass figcaption span { background: #067647; }
.tb-detail .ind-copy { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 2rem; max-width: none; }
.tb-detail .ind-copy p { margin: 0 0 .8rem; line-height: 1.6; }
.tb-detail .ind-copy .ind-fit { grid-column: 1 / -1; border-top: 1px solid #e3e8ee; padding-top: .8rem; margin-top: .2rem; font-size: .85rem; }
.tb-panels .ind-links { margin-top: 1.6rem; }

@media (max-width: 980px) {
  .tb-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-ic:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tb-grid { grid-template-columns: 1fr; gap: .7rem; }
  .tb-card { flex-direction: row; }
  .tb-im { width: 120px; flex: none; aspect-ratio: 4 / 3; border-bottom: 0; border-right: 1px solid #d8dde2; align-self: stretch; }
  .tb-cap { display: none; }
  .tb-tabs { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 calc(var(--gutter) - .5rem); }
  .tb-tabs [role=tab] { padding: .9rem .85rem; font-size: .78rem; }
  .tb-detail .ind-pair, .tb-detail .ind-copy { grid-template-columns: 1fr; }
  .tb-detail .tb-fault h3 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .tb-card { transition: none; } }

/* v2 (preview): station pages */
.tb-icons-st { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tb-ov { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.tb-ov h2 { margin-top: 0; }
.tb-stshot { margin: 0; background: #fff; border: 1px solid #d5dbe1; padding: 8px; box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08); }
.tb-stshot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.tb-stshot figcaption { padding: .6rem .2rem .1rem; font-size: .9rem; line-height: 1.45; color: #3c4a52; }
.tb-stshot figcaption span { font-family: 'Roboto Mono', monospace; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: #fff; background: #0b3f86; padding: .22rem .45rem; margin-right: .45rem; display: inline-block; }
.tb-dl { margin: 1rem 0 0; border-top: 1px solid #d8dde2; }
.tb-dl > div { display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr; gap: 1.2rem; padding: .85rem 0; border-bottom: 1px solid #e3e8ee; }
.tb-dl dt { font: 500 .72rem/1.6 'Roboto Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #5d6b73; }
.tb-dl dd { margin: 0; line-height: 1.55; }
.tb-capgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.tb-cap-card { border: 1px solid #d8dde2; background: #fff; padding: 1.2rem 1.2rem 1.1rem; box-shadow: 0 1px 2px rgba(16,24,40,.05); border-top: 3px solid #0b3f86; scroll-margin-top: 140px; }
.tb-cap-card:target { box-shadow: 0 0 0 2px #fbcf11; }
.tb-cap-card svg { width: 28px; height: 28px; stroke: #0b3f86; fill: none; stroke-width: 1.6; display: block; margin-bottom: .6rem; }
.tb-cap-card h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.tb-cap-card p { margin: 0; line-height: 1.55; color: #3c4a52; }
.tb-steps { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0; border-top: 1px solid #d8dde2; }
.tb-steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid #e3e8ee; }
.tb-sn { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; background: #0b3f86; color: #fff; font: 500 .9rem 'Roboto Mono', monospace; }
.tb-steps h3 { margin: .2rem 0 .3rem; font-size: 1.08rem; }
.tb-steps p { margin: 0; line-height: 1.55; max-width: 52rem; }
.tb-indgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.tb-ind { display: flex; flex-direction: column; border: 1px solid #d8dde2; background: #fff; color: #131f23; text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.tb-ind:hover { border-color: #0b3f86; box-shadow: 0 6px 18px rgba(16,24,40,.08); }
.tb-ind .tb-in { flex: 1; display: flex; flex-direction: column; }
.tb-go { margin-top: auto; padding-top: .7rem; font-weight: 600; color: #0b3f86; font-size: .88rem; }
.tb-station .spec-compare { background: #fff; }
@media (max-width: 980px) {
  .tb-ov { grid-template-columns: 1fr; gap: 1.6rem; }
  .tb-capgrid { grid-template-columns: 1fr; }
  .tb-indgrid { grid-template-columns: 1fr; }
  .tb-ind { flex-direction: row; }
  .tb-ind .tb-cap { display: block; }
  .tb-dl > div { grid-template-columns: 1fr; gap: .25rem; }
}
*, *::before, *::after { border-radius: 0 !important; }
