/* ==========================================================================
   Bilsan Business Solutions — traction.css
   Opportunities & market traction page (pages/traction.blade.php).
   Loaded after site.css. Tokens only (light/dark aware), logical properties,
   page-only classes prefixed `tr-`.

    1. Stage legend          4. Detail blocks & on-page navigation
    2. Status cards          5. Sila revenue scenario simulator
    3. Opportunity pipeline  6. Investor band
   ========================================================================== */

/* ------------------------------------------------------- 1. Stage legend */
.tr-legend-wrap { align-items: start; }
.tr-legend-head { margin-bottom: 0; }

.tr-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 2.25rem;
  margin: 0;
}
.tr-legend__item {
  min-width: 0;
  padding-inline-start: 1rem;
  border-inline-start: 2px solid var(--c-line-strong);
  transition: border-color .25s ease;
}
.tr-legend__item:hover { border-inline-start-color: var(--c-brand); }
.tr-legend__term { margin: 0 0 .25rem; font-size: 1rem; font-weight: 800; line-height: 1.45; color: var(--c-ink); }
.tr-legend__def { margin: 0; font-size: .9rem; line-height: 1.65; color: var(--c-muted); }
@media (max-width: 575.98px) {
  .tr-legend { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
}

/* ------------------------------------------------------- 2. Status cards */
.tr-verify { margin-inline-start: .35rem; vertical-align: .1em; white-space: nowrap; }
.status-card__points .tr-verify { display: inline-flex; margin-top: .35rem; margin-inline-start: 0; }

/* ------------------------------------------------ 3. Opportunity pipeline */
.tr-pipes { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }

.tr-pipe {
  --node: 2.25rem;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem 2.5rem;
  overflow: hidden;
  padding: clamp(1.15rem, 2.5vw, 1.6rem) clamp(1.15rem, 3vw, 2rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.tr-pipe::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--pc); }
.tr-pipe:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-2); }

.tr-pipe__head { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; min-width: 0; }
.tr-pipe__name { display: inline-flex; align-items: center; gap: .6rem; margin: 0; font-size: 1.15rem; }
.tr-pipe__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--pc-tint);
  color: var(--pc-ink);
}

.tr-pipe__steps { display: flex; align-items: flex-start; list-style: none; margin: 0; padding: 0; min-width: 0; }
.tr-pipe__step { position: relative; flex: 1 1 0; min-width: 0; padding-inline-end: 1rem; }
.tr-pipe__step:last-child { padding-inline-end: 0; }
.tr-pipe__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - 1px);
  inset-inline-start: calc(var(--node) + .35rem);
  inset-inline-end: .35rem;
  height: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--pc) 32%, var(--c-line));
}
.tr-pipe__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border: 2px solid var(--pc);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--pc-ink);
  font-size: .76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tr-pipe__label {
  display: block;
  margin-top: .75rem;
  padding-inline-end: .25rem;
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-ink-2);
  overflow-wrap: break-word;
}
.tr-pipe__label .tr-verify { display: flex; width: fit-content; margin: .4rem 0 0; }

@media (max-width: 991.98px) {
  .tr-pipe { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .tr-pipe__head { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}
/* Vertical stepper on small screens */
@media (max-width: 767.98px) {
  .tr-pipe__steps { flex-direction: column; }
  .tr-pipe__step {
    display: grid;
    grid-template-columns: var(--node) minmax(0, 1fr);
    align-items: start;
    gap: .9rem;
    padding-inline-end: 0;
    padding-bottom: 1.1rem;
  }
  .tr-pipe__step:last-child { padding-bottom: 0; }
  .tr-pipe__step:not(:last-child)::after {
    top: calc(var(--node) + .3rem);
    bottom: .3rem;
    inset-inline-start: calc(var(--node) / 2 - 1px);
    inset-inline-end: auto;
    width: 2px;
    height: auto;
  }
  .tr-pipe__label { margin-top: 0; padding-top: .4rem; }
}

/* ------------------------------ 4. Detail blocks & on-page navigation */
.tr-details {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.tr-details__list { min-width: 0; }

.tr-toc { position: sticky; top: calc(var(--header-h-condensed) + env(safe-area-inset-top) + 1.5rem); }
.tr-toc__title { margin: 0 0 .85rem; }
.tr-toc__list { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--c-line-strong); }
.tr-toc__link {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-inline-start: -1px;
  padding: .55rem .9rem;
  border-inline-start: 2px solid transparent;
  color: var(--c-text);
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.tr-toc__link:hover { color: var(--c-ink); }
.tr-toc__link.is-active {
  border-inline-start-color: var(--pc);
  background: linear-gradient(to right, var(--pc-tint), transparent);
  color: var(--c-ink);
}
:root[dir="rtl"] .tr-toc__link.is-active { background: linear-gradient(to left, var(--pc-tint), transparent); }

@media (max-width: 991.98px) {
  .tr-details { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .tr-toc { position: static; }
  .tr-toc__title { display: none; }
  .tr-toc__list { display: flex; flex-wrap: wrap; gap: .45rem; border: 0; }
  .tr-toc__link {
    margin: 0;
    padding: .4rem .85rem;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-surface);
    font-size: .88rem;
  }
  .tr-toc__link.is-active,
  :root[dir="rtl"] .tr-toc__link.is-active { border-color: var(--pc); background: var(--c-surface); }
}

.tr-detail {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}
.tr-detail + .tr-detail { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.tr-detail:target { border-color: color-mix(in srgb, var(--pc) 55%, var(--c-line)); box-shadow: var(--shadow-2); }

.tr-detail__head {
  padding: clamp(1.25rem, 3vw, 1.85rem) clamp(1.25rem, 3.5vw, 2.25rem);
  border-bottom: 1px solid var(--c-line);
  border-inline-start: 4px solid var(--pc);
  background: var(--c-surface-2);
}
.tr-detail__platform {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .7rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pc-ink);
}
:root[dir="rtl"] .tr-detail__platform { font-size: .88rem; letter-spacing: 0; text-transform: none; }
.tr-detail__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xs);
  background: var(--pc-tint);
  color: var(--pc-ink);
}
.tr-detail__title { margin: 0 0 .9rem; font-size: var(--fs-h3); line-height: 1.3; text-wrap: balance; }
:root[dir="rtl"] .tr-detail__title { line-height: 1.5; }
.tr-detail__status { white-space: normal; }

.tr-detail__body { padding: clamp(1.25rem, 3.5vw, 2.25rem); }
.tr-detail__body > * { margin-top: 0; margin-bottom: 0; }
.tr-detail__body > * + * { margin-top: clamp(1.5rem, 3vw, 2rem); }
.tr-detail__text p { max-width: 74ch; font-size: 1rem; line-height: 1.85; }
.tr-detail__text p:last-child { margin-bottom: 0; }
:root[dir="rtl"] .tr-detail__text p { line-height: 2; }
.tr-detail__sub { margin: 0 0 1rem; font-size: 1.05rem; }
.tr-detail__body > .tr-detail__note { margin-top: 1rem; }

.tr-detail__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.75rem;
  padding: 1.05rem clamp(1.25rem, 3.5vw, 2.25rem);
  border-top: 1px solid var(--c-line);
  background: var(--c-surface-2);
}
.tr-detail__link { color: var(--pc-ink); font-size: .93rem; }
.tr-detail__link:hover { color: var(--c-ink); }
.tr-detail__link--muted { color: var(--c-text); }

/* Headline figures */
.tr-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
  border-block: 1px solid var(--c-line);
}
.tr-stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.15rem 1rem;
  border-inline-start: 1px solid var(--c-line);
}
.tr-stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.tr-stat__value {
  order: -1;
  margin: 0;
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.95rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--pc-ink);
  font-variant-numeric: tabular-nums;
}
.tr-stat__label { margin-top: .4rem; font-size: .86rem; font-weight: 600; line-height: 1.5; color: var(--c-muted); }
@media (max-width: 767.98px) {
  .tr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .tr-stat:nth-child(n + 3) { border-top: 1px solid var(--c-line); }
}

/* Milestone table */
.tr-table { min-width: 0; }
.tr-table tbody th { font-weight: 700; color: var(--c-ink-2); white-space: nowrap; }
@media (max-width: 575.98px) { .tr-table tbody th { white-space: normal; } }

/* Go-to-market assets */
.tr-mini {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-bg-alt);
}
.tr-mini__num { margin-bottom: .4rem; font-size: .75rem; font-weight: 800; color: var(--pc-ink); font-variant-numeric: tabular-nums; }
.tr-mini__title { margin: 0 0 .3rem; font-size: .98rem; font-weight: 800; color: var(--c-ink); line-height: 1.4; }
.tr-mini__text { margin: 0; font-size: .88rem; line-height: 1.6; }
.tr-gtm__sequence { margin-top: 1.25rem; }

/* Grouped lists */
.tr-group .box__title { margin-bottom: .85rem; }
.tr-group__list li:last-child { margin-bottom: 0; }

/* Highlight */
.tr-highlight { background: var(--pc-tint); border-color: transparent; border-inline-start-color: var(--pc); }
.tr-highlight p { color: var(--c-ink-2); line-height: 1.8; }

/* ----------------------------------- 5. Sila revenue scenario simulator */
.tr-sim {
  overflow: hidden;
  overflow: clip; /* clips the corners without breaking the sticky mobile total */
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-1);
}

.tr-sim__notice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 0;
  padding: 1.1rem clamp(1.25rem, 3.5vw, 2.25rem);
  border-top: 1px solid var(--c-warn-line);
  background: var(--c-warn-bg);
  color: var(--c-warn-text);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.7;
}
.tr-sim__notice > .icon { margin-top: .2em; }
.tr-sim__notice-tag,
.tr-sim__tag {
  display: inline-flex;
  align-items: center;
  margin-inline-end: .5rem;
  padding: .05rem .55rem;
  border: 1px solid var(--c-warn-line-strong);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.6;
  vertical-align: .1em;
}
.tr-sim__tag {
  margin-inline: .6rem 0;
  border-color: var(--c-warn-line);
  background: var(--c-warn-bg);
  color: var(--c-warn-text);
}
:root[dir="rtl"] :is(.tr-sim__notice-tag, .tr-sim__tag) { font-size: .8rem; letter-spacing: 0; text-transform: none; }

.tr-sim__form { margin: 0; }
.tr-sim__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.tr-sim__inputs { min-width: 0; margin: 0; padding: clamp(1.25rem, 3.5vw, 2.25rem); border: 0; }
.tr-sim__results {
  min-width: 0;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  border-inline-start: 1px solid var(--c-line);
  background: var(--c-bg-alt);
}
@media (max-width: 991.98px) {
  .tr-sim__grid { grid-template-columns: minmax(0, 1fr); }
  .tr-sim__results { border-inline-start: 0; border-top: 1px solid var(--c-line); }
}

/* Legend keeps Bootstrap's float/width so it sits inside the fieldset padding. */
.tr-sim__heading {
  float: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--c-ink);
}

/* Range controls */
.tr-sim__heading + * { clear: both; }
.tr-sim__ctrl + .tr-sim__ctrl { margin-top: 1.9rem; }
.tr-sim__ctrl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .55rem; }
.tr-sim__label { margin: 0; font-size: 1rem; font-weight: 700; color: var(--c-ink-2); }
.tr-sim__count { font-size: clamp(1.5rem, 1.25rem + .8vw, 1.85rem); font-weight: 800; line-height: 1.1; color: var(--pc-ink); }
.tr-sim__ctrl-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin: .35rem 0 0;
  font-size: .85rem;
  color: var(--c-muted);
}
.tr-sim__pct { font-weight: 800; color: var(--c-ink-2); }

.tr-sim__range {
  --fill: 0%;
  --track: var(--c-line-strong);
  display: block;
  width: 100%;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}
.tr-sim__range:focus { outline: none; }
.tr-sim__range:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: var(--radius-xs); }
.tr-sim__range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--pc) var(--fill), var(--track) var(--fill));
}
:root[dir="rtl"] .tr-sim__range::-webkit-slider-runnable-track {
  background: linear-gradient(to left, var(--pc) var(--fill), var(--track) var(--fill));
}
.tr-sim__range::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border: 3px solid var(--pc);
  border-radius: 50%;
  background: var(--c-surface);
  box-shadow: var(--shadow-2);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.tr-sim__range:active::-webkit-slider-thumb { transform: scale(1.1); }
.tr-sim__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--pc) 28%, transparent); }
.tr-sim__range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--track); }
.tr-sim__range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--pc); }
.tr-sim__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid var(--pc);
  border-radius: 50%;
  background: var(--c-surface);
  box-shadow: var(--shadow-2);
}
.tr-sim__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--pc) 28%, transparent); }

/* Compact total under the sliders — small screens only */
.tr-sim__peek { display: none; }
@media (max-width: 991.98px) {
  .tr-sim__peek {
    position: sticky;
    bottom: calc(.75rem + env(safe-area-inset-bottom));
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .15rem 1rem;
    margin: 1.5rem 0 0;
    padding: .75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--c-band);
    color: var(--c-on-band-muted);
    box-shadow: var(--shadow-2);
  }
  .tr-sim__peek-label { font-size: .85rem; font-weight: 700; }
  .tr-sim__peek-value { font-size: 1.1rem; font-weight: 800; color: var(--c-on-band); font-variant-numeric: tabular-nums; }
  :root[data-theme="dark"] .tr-sim__peek { border: 1px solid var(--c-line-strong); }
  /* Installed app: stay above the fixed tab bar. */
  .is-standalone .tr-sim__peek { bottom: calc(var(--tabbar-h) + .75rem + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) and (max-width: 991.98px) {
  .tr-sim__peek { bottom: calc(var(--tabbar-h) + .75rem + env(safe-area-inset-bottom)); }
}

/* Quick scenarios */
.tr-sim__presets { margin-top: 1.9rem; padding-top: 1.4rem; border-top: 1px solid var(--c-line); }
.tr-sim__presets-title { margin: 0; font-size: .95rem; font-weight: 800; color: var(--c-ink-2); }
.tr-sim__presets-hint { margin: .15rem 0 .8rem; font-size: .85rem; color: var(--c-muted); }
.tr-sim__preset-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.tr-sim__preset {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.5rem;
  padding: .35rem 1rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-ink-2);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.tr-sim__preset:hover { border-color: var(--pc); color: var(--c-ink); }
.tr-sim__preset[aria-pressed="true"] { border-color: var(--pc); background: var(--pc); color: #FFFFFF; }
.tr-sim__preset--reset { border-style: dashed; color: var(--c-muted); }

.tr-sim__submit { margin-top: 1.25rem; }
.tr-sim__submit[hidden] { display: none; }

/* Pricing basis */
.tr-sim__pricing { margin-top: 1.9rem; padding: 1rem 1.1rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-surface-2); }
.tr-sim__pricing-title { margin: 0 0 .5rem; font-size: .85rem; font-weight: 800; color: var(--c-muted); }
.tr-sim__pricing-list { display: grid; gap: .35rem; margin: 0; }
.tr-sim__pricing-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem; font-size: .9rem; }
.tr-sim__pricing-list dt { font-weight: 600; color: var(--c-text); }
.tr-sim__pricing-list dd { margin: 0; font-weight: 800; color: var(--c-ink-2); }

/* Outputs */
.tr-sim__outs { display: grid; gap: .75rem; margin: 0; }
.tr-sim__out {
  min-width: 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-surface);
}
.tr-sim__out-label { font-size: .9rem; font-weight: 700; line-height: 1.45; color: var(--c-muted); }
.tr-sim__out-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem .45rem;
  margin: .25rem 0 0;
  font-size: clamp(1.4rem, 1.15rem + .9vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
.tr-sim__cur { font-size: .9rem; font-weight: 700; color: var(--c-muted); }
.tr-sim__formula { margin: .3rem 0 0; font-size: .82rem; color: var(--c-muted); }

.tr-sim__out--total { border-color: var(--c-band); background: var(--c-band); }
:root[data-theme="dark"] .tr-sim__out--total { border-color: var(--c-line-strong); box-shadow: inset 0 3px 0 var(--pc); }
.tr-sim__out--total .tr-sim__out-label { color: var(--c-on-band-muted); }
.tr-sim__out--total .tr-sim__out-value { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.35rem); color: var(--c-on-band); }
.tr-sim__out--total .tr-sim__cur { color: var(--c-on-band-muted); }
.tr-sim__monthly {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin: .85rem 0 0;
  padding-top: .8rem;
  border-top: 1px solid var(--c-band-line);
  font-size: .92rem;
  color: var(--c-on-band-muted);
}
.tr-sim__monthly strong { color: var(--c-on-band); font-weight: 800; }

.tr-sim__extra { margin-top: 1.5rem; }
.tr-sim__extra-title { margin: 0 0 .6rem; font-size: .85rem; font-weight: 800; color: var(--c-muted); }
.tr-sim__chips .chip { background: var(--c-surface); }

@media (prefers-reduced-motion: reduce) {
  .tr-sim__range::-webkit-slider-thumb { transition: none; }
}

/* ---------------------------------------------------- 6. Investor band */
.tr-investor { align-items: start; }
.tr-investor__head { margin-bottom: 0; }
.tr-investor__body p { max-width: 70ch; font-size: 1.05rem; line-height: 1.85; color: var(--c-on-band-muted); }
:root[dir="rtl"] .tr-investor__body p { line-height: 2; }
.tr-investor__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.tr-investor .btn:focus-visible { outline-color: #FFFFFF; }

/* ------------------------------------------------------------------ Print */
@media print {
  .tr-toc, .tr-sim__presets, .tr-sim__submit, .tr-detail__foot { display: none !important; }
  .tr-details { grid-template-columns: minmax(0, 1fr); }
  .tr-detail, .tr-pipe, .tr-sim { break-inside: avoid; box-shadow: none; }
}

/* Mishwar flagship card (partials.mishwar.card) above the page's own sections. */
.tr-flagship { padding-bottom: 0; }
