a:focus-visible, button:focus-visible { outline: 3px solid #cd483c; outline-offset: 3px; }
.insight-card[hidden] { display: none; }
.theater-main .ui-kpi strong, .theater-approval > strong, .chart-axis { font-variant-numeric: tabular-nums; }
.theater-chrome { background: linear-gradient(100deg, #f5f8f5, #fff 72%); }
.theater-approval { background: linear-gradient(160deg, #f5f8f5, #edf2ee); }
.hero-actions .text-link { text-decoration: none; border-bottom: 0; }
@media (hover:hover) { .hero-actions .text-link:hover { text-decoration: underline; text-underline-offset: .24em; } }
.article-body p { text-wrap: pretty; }
.article-body section { scroll-margin-top: 6rem; }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .chart-line, .live-dot { animation: none !important; } }

/* Keep the navigation usable on short mobile viewports. */
@media (max-width: 1023px) {
  .nav-links.is-open {
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 767px) {
  .hero-actions { flex-wrap: wrap; align-items: center; gap: 14px 20px; }
  .hero-actions .text-link { min-height: 44px; }
  .insights-hero h1 { font-size: clamp(34px, 9.2vw, 44px); overflow-wrap: break-word; }
  .article-hero h1 { font-size: clamp(32px, 8.8vw, 42px); overflow-wrap: break-word; }
  .article-layout aside a { display: block; padding-block: 10px; }
  .category-tabs { flex-wrap: wrap; }
  .category-tabs button, .menu-toggle, .ui-tabs button, .ui-action { min-height: 44px; }
  .menu-toggle { min-width: 44px; }
  .ui-kpi { flex-wrap: wrap; gap: 12px; }
  .solution-stage .panel-transition { min-height: 430px; height: auto; }
  .solution-tabs b { overflow-wrap: break-word; }
  .data-table .table-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .data-table .table-head > :nth-child(2) { display: none; }
  .data-table .table-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .data-table .table-row > span { grid-column: 1; grid-row: 1; }
  .data-table .table-row > strong { grid-column: 2; grid-row: 1 / span 2; }
  .data-table .table-row .chip { display: inline-flex; grid-column: 1; grid-row: 2; justify-self: start; }
  .feature-pay .scene-pay, .feature-reports .scene-reports {
    display: flex; flex-direction: column; gap: 12px; padding: 0;
  }
  .feature-pay .payment-slip, .feature-reports .report-note {
    position: relative; inset: auto; transform: none; width: 100%; max-width: 100%;
    height: auto; margin: 0; padding: 16px; box-shadow: none;
  }
  .feature-pay .payment-slip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .feature-pay .payment-slip strong { margin: 0; font-size: 26px; }
  .feature-pay .scene-pay > .ui-frame { width: 100%; margin: 0; }
  .feature-reports .report-note strong { font-size: 18px; }
  .feature-scene, .feature-copy, .reconcile-scene { min-width: 0; }
  .theater-match small { display: block; }
  .theater-match { max-width: 100%; }
  .theater-approval { width: auto; }
}
@media (max-width: 359px) {
  .container { width: auto; margin-inline: 16px; }
  .hero-copy h1 { font-size: 32px; }
  .theater-heading { flex-wrap: wrap; }
  .theater-chrome { flex-wrap: wrap; height: auto; min-height: 44px; padding-block: 9px; }
  .theater-chrome small { margin-left: 28px; }
  .theater-approval { grid-template-columns: 1fr; grid-template-areas: "label" "document" "amount" "action"; }
  .ui-kpi strong { font-size: 30px; }
}
@media (max-width: 767px) {
  .solution-stage .panel-transition { min-height: 570px; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .solution-stage .panel-transition { min-height: 620px; }
}
@media (max-width: 359px) {
  h1, h2, h3, .founders-credentials dd { overflow-wrap: anywhere; }
  .operations-intro h2 { font-size: 28px; }
  .founders-copy, .founders-composition > * { min-width: 0; }
}

/* Draw arrows with CSS to keep the same monochrome appearance on iOS. */
.arrow-icon {
  position: relative; display: inline-block; flex: 0 0 14px;
  width: 14px; height: 14px; vertical-align: middle; color: inherit;
}
.arrow-icon::before {
  content: ""; position: absolute; width: 10px; height: 2px;
  background: currentColor; top: 6px; left: 1px; transform: rotate(-45deg);
}
.arrow-icon::after {
  content: ""; position: absolute; width: 7px; height: 7px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  top: 1px; right: 1px;
}
.document-icon.arrow-icon { flex-basis: 26px; width: 26px; height: 30px; }
.document-icon.arrow-icon::before { top: 14px; left: 6px; }
.document-icon.arrow-icon::after { top: 9px; right: 6px; }
.editorial-secondary > *, .editorial-feature > *, .insight-card > *,
.featured-article-card > * { min-width: 0; }
.editorial-secondary .editorial-art { width: 100%; min-width: 0; max-width: 100%; }
.editorial-secondary h3 { overflow-wrap: break-word; }
@media (max-width: 767px) {
  .editorial-secondary {
    grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 28px;
  }
  .editorial-secondary .editorial-art {
    width: 100%; height: 200px; min-height: 0; max-height: none; aspect-ratio: auto;
  }
  .editorial-secondary h3 { font-size: 23px; line-height: 1.2; margin-top: 9px; }
  .editorial-secondary .article-category { font-size: 11px; }
  .editorial-secondary .read-link { margin-top: 14px; }
  .editorial-feature .editorial-art, .featured-article-card .editorial-art,
  .insight-card .editorial-art { width: 100%; max-width: 100%; }
  .editorial-art.art-0 {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 12px; padding: 44px 22px 20px; height: auto; min-height: 300px;
  }
  .art-0 .art-orbit { display: none; }
  .art-0 .art-document {
    position: relative; inset: auto; transform: none; width: 100%; height: auto;
    padding: 20px; flex: 1;
  }
  .art-0 .art-document b { margin-top: 14px; font-size: 32px; }
  .art-0 .art-document i { margin-top: 14px; }
  .art-0 .art-stamp {
    position: relative; inset: auto; transform: none;
    padding: 12px 16px; font-size: 11px; align-self: flex-end;
  }
  .operations-intro h2 { font-size: clamp(28px, 8vw, 38px); line-height: 1.12; letter-spacing: -.04em; }
  .operations-intro h2 br { display: inline; }
  .feature-copy h3 { overflow-wrap: break-word; }
  .section-intro h2 { overflow-wrap: break-word; }
  .final-cta { padding-bottom: 80px; }
}
