/* ============================================================
   BridgeSelect Documentation — shared stylesheet
   Used by all documentation pages (index, category listings,
   and individual guide/FAQ/API pages).
   ============================================================ */

.hero-banner {
    background: linear-gradient(180deg, var(--bg-mint), #ffffff);
    padding: 18px 0;
    text-align: center;
}

.hero-banner img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
    display: block;
    margin: 0 auto;
}

      :root {
        --green: #22a55e;
        --teal: #14b8a6;
        --lime: #c3d92e;
        --blue: #1c4f8c;
        --violet: #5a3c8c;
        --navy: #0f172a;
        --gray: #64748b;
        --line: #e2e8f0;
        --bg: #ffffff;
        --bg-mint: #eafcf3;
      }

      * {
        box-sizing: border-box;
      }

      body {
        margin: 0;
        background: var(--bg);
        color: var(--navy);
        font-family: 'Segoe UI', Roboto, Arial, sans-serif;
      }

      .wrap {
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 32px;
      }

      img {
        max-width: 100%;
      }

      header {
        border-bottom: 1px solid var(--line);
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        z-index: 10;
      }

      nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 0;
      }

      .brand img {
        height: 34px;
        display: block;
      }

      .navlinks {
        display: flex;
        gap: 34px;
        font-size: 15px;
        font-weight: 500;
      }

      .navlinks a {
        color: var(--navy);
        text-decoration: none;
        opacity: .75;
      }

      .navlinks a:hover {
        opacity: 1;
      }

      .navlinks a.active {
        opacity: 1;
        color: var(--green);
        font-weight: 600;
      }

      .breadcrumb {
        padding: 28px 0 0;
        font-size: 14px;
        color: var(--gray);
      }

      .breadcrumb a {
        color: var(--gray);
        text-decoration: none;
      }

      .breadcrumb a:hover {
        color: var(--green);
      }

      .page-hero {
        padding: 20px 0 20px;
        display: flex;
        align-items: center;
        gap: 20px;
      }

      .page-hero .icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        flex-shrink: 0;
        background: linear-gradient(135deg, #eef4c2, var(--lime));
      }

      .page-hero h1 {
        font-size: clamp(26px, 4vw, 38px);
        font-weight: 800;
        margin: 0 0 6px;
        letter-spacing: -0.02em;
      }

      .page-hero p {
        font-size: 16px;
        color: var(--gray);
        margin: 0;
        max-width: 620px;
      }

      .back-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--gray);
        text-decoration: none;
        margin: 18px 0 0;
      }

      .back-link:hover {
        color: var(--green);
      }

      hr.divider {
        border: none;
        border-top: 1px solid var(--line);
        margin: 36px 0 0;
      }

      .layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 80px;
        align-items: start;
        padding: 36px 0 100px;
      }

      .content {
        min-width: 0;
      }

      .toc {
        position: sticky;
        top: 96px;
        border-left: 1px solid var(--line);
        padding-left: 22px;
        justify-self: end;
        width: 100%;
      }

      .toc-label {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .07em;
        color: var(--gray);
        margin: 0 0 12px;
      }

      .toc a {
        display: block;
        padding: 6px 0;
        font-size: 13.5px;
        color: var(--gray);
        text-decoration: none;
        line-height: 1.4;
      }

      .toc a:hover {
        color: var(--green);
      }

      .lede {
        font-size: 16.5px;
        color: var(--navy);
        line-height: 1.75;
        margin: 0 0 8px;
      }

      .sub-lede {
        font-size: 15px;
        color: var(--gray);
        line-height: 1.7;
        margin: 0 0 36px;
      }

      .option-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        margin: 0 0 56px;
      }

      .option-card {
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 26px;
      }

      .option-card .b-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        margin-bottom: 16px;
      }

      .option-card.opt-email .b-icon {
        background: linear-gradient(135deg, #a9e2d8, var(--teal));
      }

      .option-card.opt-portal .b-icon {
        background: linear-gradient(135deg, #9dbde2, var(--blue));
      }

      .option-card h3 {
        font-size: 17px;
        font-weight: 800;
        margin: 0 0 8px;
      }

      .option-card p {
        font-size: 14px;
        color: var(--gray);
        line-height: 1.6;
        margin: 0 0 16px;
      }

      .option-card a.jump {
        font-size: 13px;
        font-weight: 700;
        color: var(--green);
        text-decoration: none;
      }

      .option-card a.jump:hover {
        text-decoration: underline;
      }

      section.doc-section {
        padding-top: 52px;
        scroll-margin-top: 90px;
      }

      section.doc-section h2 {
        font-size: 23px;
        font-weight: 800;
        margin: 0 0 8px;
        letter-spacing: -0.01em;
      }

      section.doc-section>p.section-sub {
        color: var(--gray);
        font-size: 14.5px;
        margin: 0 0 26px;
        line-height: 1.6;
      }

      .email-card {
        background: var(--bg-mint);
        border-radius: 16px;
        padding: 8px 30px;
        margin: 22px 0 22px;
      }

      .email-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 16px 0;
        border-bottom: 1px solid rgba(15, 23, 42, .08);
        flex-wrap: wrap;
      }

      .email-row:last-child {
        border-bottom: none;
      }

      .email-row .label {
        font-weight: 700;
        font-size: 14.5px;
      }

      .email-row .label .tag-sub {
        display: block;
        font-weight: 400;
        color: var(--gray);
        font-size: 12.5px;
        margin-top: 2px;
      }

      .email-row a.mail-btn {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 9px 18px;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--navy);
        text-decoration: none;
        white-space: nowrap;
      }

      .email-row a.mail-btn:hover {
        border-color: var(--green);
        color: var(--green);
      }

      .map-note {
        font-size: 14.5px;
        line-height: 1.7;
        color: var(--navy);
        margin: 22px 0;
      }

      .map-note code {
        background: #f1f5f9;
        border-radius: 5px;
        padding: 2px 7px;
        font-size: 13.5px;
        color: var(--blue);
        font-weight: 600;
      }

      .note-box {
        border-left: 3px solid var(--blue);
        background: #f3f7fc;
        padding: 14px 20px;
        border-radius: 0 10px 10px 0;
        font-size: 14px;
        color: var(--navy);
        margin: 26px 0 8px;
        line-height: 1.6;
      }

      .note-box strong {
        color: var(--blue);
      }

      .step {
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 26px 28px;
        margin: 0 0 20px;
      }

      .step-head {
        display: flex;
        gap: 16px;
        align-items: flex-start;
      }

      .step-num {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--lime), var(--teal));
        color: #0f172a;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 14px;
        flex-shrink: 0;
      }

      .step-head p {
        margin: 0;
        font-size: 15px;
        line-height: 1.65;
        color: var(--navy);
        padding-top: 3px;
      }

      .shots {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
      }

      .shot-figure {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 10px 14px;
      }

      .shot-figure img {
        border: 1px solid var(--line);
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
        display: block;
      }

      .shot-cap {
        font-size: 12.5px;
        color: var(--gray);
        margin-top: 10px;
        font-weight: 600;
        letter-spacing: .01em;
      }

      .then-arrow {
        font-size: 22px;
        color: #cbd5e1;
        padding: 0 6px;
        font-weight: 300;
        align-self: center;
      }

      .status-flow {
        display: flex;
        flex-wrap: nowrap;
        gap: 5px;
        align-items: center;
        margin: 24px 0 34px;
        overflow-x: auto;
        padding-bottom: 6px;
      }

      .status-pill {
        padding: 8px 15px;
        border-radius: 999px;
        font-size: 12.5px;
        font-weight: 700;
        white-space: nowrap;
        flex-shrink: 0;
      }

      .status-flow .status-pill {
        padding: 7px 9px;
        font-size: 11.5px;
      }

      .status-flow .arrow {
        color: var(--gray);
        font-size: 13px;
        flex-shrink: 0;
        padding: 0 1px;
      }

      .p-open {
        background: var(--lime);
        color: #243100;
      }

      .p-review {
        background: var(--teal);
        color: #fff;
      }

      .p-backlog {
        background: linear-gradient(135deg, var(--teal), var(--blue));
        color: #fff;
      }

      .p-progress {
        background: var(--blue);
        color: #fff;
      }

      .p-cr {
        background: var(--violet);
        color: #fff;
      }

      .p-complete {
        background: var(--green);
        color: #fff;
      }

      .status-detail {
        border-left: 4px solid var(--line);
        padding: 14px 20px;
        margin: 0 0 12px;
        border-radius: 0 10px 10px 0;
        background: #fafbfc;
      }

      .status-detail p {
        margin: 8px 0 0;
        font-size: 14.5px;
        line-height: 1.65;
        color: var(--navy);
      }

      .sd-open {
        border-left-color: var(--lime);
      }

      .sd-review {
        border-left-color: var(--teal);
      }

      .sd-backlog {
        border-left-color: #2a8fae;
      }

      .sd-progress {
        border-left-color: var(--blue);
      }

      .sd-cr {
        border-left-color: var(--violet);
      }

      .sd-complete {
        border-left-color: var(--green);
      }

      .badge-approve {
        background: var(--green);
        color: #fff;
        padding: 2px 12px;
        border-radius: 6px;
        font-size: 12.5px;
        font-weight: 700;
      }

      .badge-decline {
        background: #e2e8f0;
        color: var(--navy);
        padding: 2px 12px;
        border-radius: 6px;
        font-size: 12.5px;
        font-weight: 700;
      }

      .help-card {
        background: linear-gradient(135deg, var(--bg-mint), #ffffff);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 36px;
        text-align: center;
        margin-top: 60px;
      }

      .help-card h3 {
        font-size: 20px;
        font-weight: 800;
        margin: 0 0 8px;
      }

      .help-card p {
        font-size: 14.5px;
        color: var(--gray);
        margin: 0 0 20px;
      }

      .help-card a.btn {
        display: inline-block;
        background: var(--green);
        color: #fff;
        text-decoration: none;
        padding: 12px 26px;
        border-radius: 999px;
        font-weight: 700;
        font-size: 14px;
      }

      .help-card a.btn:hover {
        background: #1c8a4e;
      }

      footer {
        border-top: 1px solid var(--line);
        padding: 36px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        color: var(--gray);
      }

      footer img {
        height: 40px;
        opacity: .85;
      }

      @media(max-width:900px) {
        .layout {
          grid-template-columns: 1fr;
        }

        .toc {
          display: none;
        }

        .option-grid {
          grid-template-columns: 1fr;
        }

        .navlinks {
          display: none;
        }
      }


/* ============================================================
   Shared content classes — used by the converted documentation
   pages (prose sections, lists, tables, code, callouts, images)
   ============================================================ */

.single .layout {
  display: block;
}

.single .content {
  max-width: 780px;
}

.body-p {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.75;
  margin: 0 0 18px;
}

.body-p code, .map-note code {
  background: #eef2f7;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 13px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  color: var(--blue);
}

.body-h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--navy);
}

.body-list {
  margin: 0 0 22px;
  padding-left: 22px;
}

.body-list li {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.7;
  margin: 0 0 10px;
}

.body-list li strong {
  color: var(--navy);
}

.body-img {
  margin: 0 0 26px;
  text-align: center;
}

.body-img img {
  max-width: 100%;
  max-height: 460px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.body-img .shot-cap {
  margin-top: 10px;
}

.inline-thumb {
  max-width: 220px;
  max-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  margin: 10px 0;
}

.warn-box {
  border-left: 3px solid #d97706;
  background: #fdf6ec;
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: #7c4a03;
  line-height: 1.6;
  margin: 0 0 26px;
}

.warn-box strong {
  color: #b45309;
}

.beta-box {
  border-left: 3px solid var(--violet);
  background: #f6f2fb;
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: #4a2f6b;
  line-height: 1.6;
  margin: 0 0 26px;
}

.beta-box strong {
  color: var(--violet);
}

.audience-banner {
  border: 1px solid var(--line);
  background: var(--bg-mint);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #147a45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
}

.doc-table-wrap {
  overflow-x: auto;
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.doc-table th {
  background: #f8fafc;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.doc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  vertical-align: top;
}

table.doc-table tr:last-child td {
  border-bottom: none;
}

pre.code-block {
  background: var(--navy);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 24px;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

pre.code-block code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.tab-widget {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 26px;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.tab-buttons button {
  font-family: inherit;
  border: none;
  background: none;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab-buttons button.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.tab-panel {
  display: none;
  padding: 20px;
}

.tab-panel.active {
  display: block;
}

.beta-tag {
  display: inline-block;
  background: var(--violet);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 999px;
  padding: 3px 10px;
  margin-right: 8px;
  vertical-align: middle;
}
