/* SBI SERVICE DESIGN ALIGNMENT V1
   Scoped to SBI page. Preserves forms, FAQ and directory.
*/

.sbi-page {
    background: #fbfaf7;
}

/* Original service article dimensions */
.sbi-page .sbi-layout.lc-article-layout {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 760px) 270px;
    justify-content: space-between;
    align-items: start;
    gap: 75px;
    padding-top: 95px;
    padding-bottom: 110px;
}

.sbi-page .sbi-article.lc-article {
    min-width: 0;
}

.sbi-page .sbi-article h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: #172327;
}

.sbi-page .sbi-article h3 {
    color: #172327;
}

.sbi-page .sbi-article p,
.sbi-page .sbi-article li {
    color: #615e59;
    line-height: 1.9;
}

/* Original service sidebar appearance */
.sbi-page .sbi-sidebar.lc-service-sidebar {
    min-width: 0;
    align-self: stretch;
}

.sbi-page .sbi-sidebar-inner {
    position: sticky;
    top: 25px;
    z-index: 5;
}

.sbi-page .sbi-toc-card.lc-toc-box {
    position: static;
    background: #fff;
    border: 1px solid #e0dcd4;
    border-radius: 12px;
    padding: 24px;
    box-shadow: none;
}

.sbi-page .sbi-toc-card nav {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.sbi-page .sbi-toc-card nav a {
    padding: 9px 0;
    border-bottom: 1px solid #eeeae4;
    color: #65615b;
    text-decoration: none;
    font-size: 11px;
    line-height: 1.4;
}

.sbi-page .sbi-help-card.lc-sidebar-help {
    margin-top: 16px;
    padding: 25px;
    border-radius: 12px;
    background: #172327;
    color: #fff;
}

.sbi-page .sbi-help-card h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
}

.sbi-page .sbi-help-card p {
    color: rgba(255,255,255,.6);
    font-size: 12px;
    line-height: 1.7;
}

.sbi-page .sbi-help-card a {
    color: #d8b66f;
    font-size: 11px;
}

/* Keep the existing SBI active TOC indication */
.sbi-page #sbiPremiumToc a.is-active {
    color: #123740;
    background: #f4eddf;
    font-weight: 800;
}

/* Tablet: match original service single-column layout */
@media (max-width: 1000px) {
    .sbi-page .sbi-layout.lc-article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
        padding-top: 72px;
        padding-bottom: 85px;
    }

    .sbi-page .sbi-sidebar-inner {
        position: static;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .sbi-page .sbi-layout.lc-article-layout {
        width: calc(100% - 30px);
        gap: 30px;
        padding-top: 55px;
        padding-bottom: 65px;
    }

    .sbi-page .sbi-article h2 {
        font-size: 32px;
    }
}

@media (max-width: 420px) {
    .sbi-page .sbi-article h2 {
        font-size: 29px;
    }
}

/* SBI LAST FAQ BOTTOM DIVIDER FIX V1 */
.sbi-page .sbi-article > .sbi-content-section:last-child {
    border-bottom: 0 !important;
}
.sbi-page .sbi-article > .sbi-content-section:has(.sbi-faq-item) {
    border-bottom: 0 !important;
}
/* END SBI LAST FAQ BOTTOM DIVIDER FIX V1 */


/* SBI SIDEBAR CTA FIX V3 */

.sbi-page .sbi-sidebar .sbi-help-card.lc-sidebar-help {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 25px 22px;
    margin-top: 16px;
    background: #172327;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    overflow-wrap: break-word;
}

.sbi-page .sbi-sidebar .sbi-help-card h3 {
    display: block;
    margin: 10px 0 14px;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    color: #ffffff;
}

.sbi-page .sbi-sidebar .sbi-help-card p {
    display: block;
    margin: 0 0 20px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.75;
    color: #e0e5e5;
    opacity: 1;
}

.sbi-page .sbi-sidebar .sbi-help-card a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    color: #d8b66f;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.sbi-page .sbi-sidebar .sbi-help-card a:hover {
    color: #ffffff;
}

@media (max-width: 1000px) {
    .sbi-page .sbi-sidebar .sbi-help-card.lc-sidebar-help {
        max-width: 100%;
    }
}

/* END SBI SIDEBAR CTA FIX V3 */

/* SBI TYPOGRAPHY COLOR V4 */

.sbi-page {
    color: #263840;
}

/* Article text */
.sbi-page .sbi-article p,
.sbi-page .sbi-article li {
    font-size: 16px;
    line-height: 1.85;
    color: #37474f;
}

.sbi-page .sbi-article h2 {
    color: #172327;
    font-size: 36px;
    line-height: 1.2;
}

.sbi-page .sbi-article h3 {
    color: #172327;
    font-size: 23px;
    line-height: 1.35;
}

/* Information panels */
.sbi-page .sbi-quick-answer p,
.sbi-page .sbi-premium-block p,
.sbi-page .sbi-example-box p,
.sbi-page .sbi-checklist-item p {
    font-size: 16px;
    color: #37474f;
    line-height: 1.8;
}

/* Tables */
.sbi-page .sbi-premium-table th,
.sbi-page .sbi-premium-table td {
    font-size: 15px;
    line-height: 1.6;
    color: #37474f;
}

.sbi-page .sbi-premium-table thead th {
    background: #102d38;
    color: #ffffff;
}

/* FAQ */
.sbi-page .sbi-faq-item summary,
.sbi-page .sbi-faq-item p {
    font-size: 16px;
    line-height: 1.65;
    color: #263840;
}

/* Sidebar TOC */
.sbi-page .sbi-toc-card nav a {
    font-size: 15px;
    line-height: 1.5;
    color: #33454c;
}

/* Sidebar CTA */
.sbi-page .sbi-sidebar .sbi-help-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #e0e5e5;
}

.sbi-page .sbi-sidebar .sbi-help-card a {
    font-size: 15px;
    color: #d8b66f;
}

/* Cards and smaller supporting text */
.sbi-page .sbi-checklist-item,
.sbi-page .sbi-resource-block {
    color: #45545b;
}

/* Preserve readable mobile typography */
@media (max-width: 700px) {
    .sbi-page .sbi-article p,
    .sbi-page .sbi-article li {
        font-size: 16px;
    }

    .sbi-page .sbi-article h2 {
        font-size: 30px;
    }

    .sbi-page .sbi-article h3 {
        font-size: 21px;
    }

    .sbi-page .sbi-toc-card nav a {
        font-size: 15px;
    }
}

/* END SBI TYPOGRAPHY COLOR V4 */



/* SBI ORIGINAL-STYLE TOC V7 */
@media (min-width:1001px) {
  .sbi-page .sbi-layout.lc-article-layout {
    grid-template-columns:minmax(0,760px) 270px;
    gap:75px;
  }
  .sbi-page .sbi-sidebar-inner {
    position:sticky;
    top:20px;
    display:flex;
    flex-direction:column;
    max-height:calc(100vh - 40px);
    overflow:hidden;
    min-height:0;
  }
}
.sbi-page .sbi-sidebar .sbi-toc-card.lc-toc-box {
  position:static;
  display:flex;
  flex-direction:column;
  min-height:0;
  padding:24px;
  border:1px solid #e0dcd4;
  border-radius:12px;
  background:#fff;
}
.sbi-page .sbi-sidebar .sbi-toc-card nav {
  display:flex;
  flex-direction:column;
  min-height:0;
  max-height:min(310px,42vh);
  overflow-y:auto;
  overflow-x:hidden;
  margin-top:15px;
  gap:0;
  scrollbar-width:thin;
}
.sbi-page .sbi-sidebar .sbi-toc-card nav a {
  display:block;
  width:100%;
  padding:9px 0;
  margin:0;
  font-size:11px;
  line-height:1.4;
  font-weight:500;
  color:#65615b;
  border-bottom:1px solid #eeeae4;
  white-space:normal;
  word-break:normal;
}
.sbi-page .sbi-sidebar .sbi-help-card.lc-sidebar-help {
  flex:0 0 auto;
  margin-top:16px;
  padding:25px;
}
@media (max-width:1000px) {
  .sbi-page .sbi-sidebar-inner {
    position:static;
    display:block;
    max-height:none;
    overflow:visible;
  }
  .sbi-page .sbi-sidebar .sbi-toc-card nav {
    max-height:310px;
  }
}
/* END SBI ORIGINAL-STYLE TOC V7 */




/* SBI VISUAL REFINEMENT V8 */

/* Consistent text colors */
.sbi-page .sbi-article {
    color: #34444b;
}

.sbi-page .sbi-article h2,
.sbi-page .sbi-article h3 {
    color: #142e38;
    letter-spacing: -0.015em;
}

.sbi-page .sbi-article p,
.sbi-page .sbi-article li {
    color: #34444b;
    line-height: 1.75;
}

/* Balanced heading spacing */
.sbi-page .sbi-article h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.sbi-page .sbi-article h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}

/* Avoid excessive paragraph gaps */
.sbi-page .sbi-article p {
    margin-bottom: 16px;
}

.sbi-page .sbi-article p:last-child {
    margin-bottom: 0;
}

/* Content section spacing */
.sbi-page .sbi-article > .sbi-content-section {
    padding-top: 38px;
    padding-bottom: 38px;
}

.sbi-page .sbi-article > .sbi-content-section:first-child {
    padding-top: 0;
}

.sbi-page .sbi-article > .sbi-content-section:last-child {
    padding-bottom: 0;
}

/* Consistent card treatment */
.sbi-page .sbi-quick-answer,
.sbi-page .sbi-premium-block,
.sbi-page .sbi-example-box {
    border-radius: 12px;
}

/* Tables */
.sbi-page .sbi-premium-table thead th {
    background: #142e38;
    color: #ffffff;
}

.sbi-page .sbi-premium-table tbody td {
    color: #34444b;
}

/* FAQ spacing */
.sbi-page .sbi-faq-item {
    margin-bottom: 8px;
}

/* Sidebar CTA colors - preserve dimensions */
.sbi-page .sbi-sidebar .sbi-help-card.lc-sidebar-help {
    background: #102d38;
    color: #ffffff;
}

.sbi-page .sbi-sidebar .sbi-help-card h3 {
    color: #ffffff;
}

.sbi-page .sbi-sidebar .sbi-help-card p {
    color: #e1e9e8;
}

/* Mobile spacing */
@media (max-width: 700px) {
    .sbi-page .sbi-article > .sbi-content-section {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .sbi-page .sbi-article h2 {
        margin-bottom: 14px;
    }

    .sbi-page .sbi-article h3 {
        margin-top: 20px;
        margin-bottom: 10px;
    }
}

/* END SBI VISUAL REFINEMENT V8 */


/* SBI SECTION SPACING FIX V9 */

/* Remove accumulated vertical spacing */
.sbi-page .sbi-article > .sbi-content-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

/* First section */
.sbi-page .sbi-article > .sbi-content-section:first-child {
    padding-top: 0 !important;
}

/* Last section */
.sbi-page .sbi-article > .sbi-content-section:last-child {
    padding-bottom: 0 !important;
}

/* Consistent heading spacing */
.sbi-page .sbi-article > .sbi-content-section > h2 {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

/* Remove extra space after last paragraph */
.sbi-page .sbi-article > .sbi-content-section > p:last-child {
    margin-bottom: 0 !important;
}

/* Keep divider subtle */
.sbi-page .sbi-article > .sbi-content-section {
    border-bottom-color: #e8e4dc;
}

/* Mobile */
@media (max-width: 700px) {
    .sbi-page .sbi-article > .sbi-content-section {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }
}

/* END SBI SECTION SPACING FIX V9 */


/* SBI SPACING CLEANUP V10 */

/* Reduce article area bottom gap */
.sbi-page .sbi-layout.lc-article-layout {
    padding-bottom: 38px !important;
}

/* Consistent content section spacing */
.sbi-page .sbi-article > .sbi-content-section {
    margin: 0 !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Remove unnecessary first and last spacing */
.sbi-page .sbi-article > .sbi-content-section:first-child {
    padding-top: 0 !important;
}

.sbi-page .sbi-article > .sbi-content-section:last-child {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

/* FAQ bottom spacing */
.sbi-page .sbi-article > .sbi-faq-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

/* Reduce FAQ item bottom spacing */
.sbi-page .sbi-faq-item:last-child {
    margin-bottom: 0 !important;
}

/* Mobile */
@media (max-width: 700px) {
    .sbi-page .sbi-layout.lc-article-layout {
        padding-bottom: 25px !important;
    }

    .sbi-page .sbi-article > .sbi-content-section {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    .sbi-page .sbi-article > .sbi-content-section:last-child {
        padding-bottom: 0 !important;
    }
}

/* END SBI SPACING CLEANUP V10 */
