/* Layout support for the owner-approved existing-page content release. */
.tbs-stage2-copy { overflow-wrap: anywhere; }
.tbs-stage2-copy p { line-height: 2; margin: 0 0 1em; }
.tbs-stage2-copy h2 { margin: 1.5em 0 .75em; }
.tbs-stage2-copy h3 { margin: 1.2em 0 .6em; }
.tbs-stage2-copy table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; margin: 1em 0; }
.tbs-stage2-copy th,.tbs-stage2-copy td { overflow-wrap: anywhere; vertical-align: top; padding: 12px; border: 1px solid #dce2e9; }
.tbs-stage2-copy th { background: #f1f5fa; }
.tbs-stage2-copy bdi,.tbs-stage2-copy code { unicode-bidi: isolate; }
.tbs-stage2-preserved-visual { margin: 1.2rem auto; text-align: center; }
.tbs-stage2-preserved-visual img { max-width: 100%; height: auto; }
.model-example { border: 2px solid #9cb4cf; border-radius: 10px; padding: 18px; margin: 18px 0; background: #f2f7fc; }
.model-fields { direction: ltr; display: grid; gap: 12px; }
.model-fields>div { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.model-fields span { font-weight: 700; min-width: 55px; }
.model-fields code { font: 700 20px IRANYekanX,sans-serif; direction: ltr; }
.model-fields code b { color: #9a3b16; background: #ffead8; }
.model-example p { font-size: 13px; margin: 12px 0 0; }
.error-code { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.tbs-stage2-service-intro { margin-bottom: 1.5rem; }
.tbs-stage2-checklist { margin-top: 2rem; }
.tbs-stage2-hero-copy a:not(.tbs-home-hero-cta) { color: #153e70; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) {
  .tbs-stage2-home-hero .tbs-hero-static-slide { min-height: 610px; }
  .tbs-stage2-home-hero .tbs-hero-static-slide picture { min-height: 610px; }
  .tbs-stage2-home-hero .tbs-hero-static-slide picture img { min-height: 610px; object-fit: cover; }
  .tbs-stage2-hero-copy { width: min(40vw,520px); }
  .tbs-stage2-hero-copy>p:not(.tbs-home-hero-kicker) { font-size: 15px; line-height: 1.85; }
}
@media (max-width: 767px) {
  .tbs-stage2-hero-copy { position: relative; top: auto; right: auto; left: auto; bottom: auto; transform: none; width: auto; margin: 0 12px 18px; }
  .tbs-stage2-home-hero .tbs-hero-static-slide,.tbs-stage2-home-hero .tbs-hero-static-wrap,.tbs-stage2-home-hero .tbs-hero-swiper { height: auto; }
  .tbs-stage2-home-hero .tbs-hero-static-slide picture { display: block; height: clamp(250px,72vw,330px); min-height: 0; overflow: hidden; }
  .tbs-stage2-home-hero .tbs-hero-static-slide picture img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 35%; }
  .tbs-stage2-copy th,.tbs-stage2-copy td { padding: 9px; font-size: 14px; }
  .tbs-stage2-copy bdi[dir="ltr"] { white-space: nowrap; }
}

/* Approved article decision guides: direct namespaced selectors survive CMS H2 splitting. */
.tbs-stage3-process{margin:22px 0;padding:18px;border:1px solid #b8cce0;border-radius:10px;background:#edf5fc;color:#172538;text-align:right;line-height:1.95}
.tbs-stage3-process>figcaption{font-weight:700;font-style:normal;font-size:inherit;margin:0 0 12px;padding:0;background:none;color:#172538;text-align:right}
.tbs-stage3-process ol{display:grid;gap:10px;margin:0;padding:0;list-style:none!important;counter-reset:none}
.tbs-stage3-process li{display:flex;align-items:flex-start;gap:12px;padding:12px;border-radius:7px;background:#fff;margin:0;line-height:1.9;text-align:right;list-style:none!important}
.tbs-stage3-process li:before,.tbs-stage3-process li::marker{content:none!important}
.tbs-stage3-process .badge{display:inline-flex;flex:0 0 29px;width:29px;height:29px;align-items:center;justify-content:center;border-radius:50%;background:#194e81;color:#fff;direction:ltr;font-weight:700;font-size:15px;line-height:1}
.tbs-stage3-process li>span:last-child{min-width:0;overflow-wrap:anywhere}
table.tbs-stage3-decision{width:100%;border-collapse:collapse;table-layout:fixed;margin:18px 0;direction:rtl}
.tbs-stage3-decision th,.tbs-stage3-decision td{padding:11px;border:1px solid #d7e0e8;text-align:right;vertical-align:top;overflow-wrap:anywhere;white-space:normal}
.tbs-stage3-decision th{background:#edf3f8}
.tbs-step-grid>.tbs-stage3-process{height:auto;min-width:0;margin:0}
@media(max-width:767px){.tbs-stage3-process{padding:12px;margin:18px 0}.tbs-stage3-process li{padding:10px;gap:9px}.tbs-stage3-decision th,.tbs-stage3-decision td{padding:9px;font-size:14px}.tbs-step-grid:has(>.tbs-stage3-process){grid-template-columns:1fr}}

/* Approved six-article revision: conditional latch schematic. */
.latch-diagram{margin:22px 0;padding:16px;border:1px solid #b8ccdc;border-radius:12px}.latch-diagram>svg{display:block;width:100%;max-width:500px;height:auto;margin:12px auto}.latch-diagram>figcaption{font-weight:700;font-style:normal;font-size:inherit;text-align:right}.latch-diagram>p{text-align:right}
