/* Loan guides: one flowing article on the left, sidebar on the right, split by a vertical line. Sections are
   separated by thin lines rather than boxed (inc/loan-page-two-column-layout.php) */
.sl-loan-layout{--sl-loan-split:clamp(28px,3.4vw,48px);display:grid;grid-template-columns:minmax(0,1fr) calc(270px + var(--sl-loan-split));column-gap:var(--sl-loan-split);margin-top:clamp(20px,2.4vw,32px)}
.sl-loan-layout__main{min-width:0}
.sl-loan-layout__main .sl-wrap{max-width:none;padding:0}

/* Every block is plain page: no fill, border, corners or shadow, only a line between neighbours */
.sl-loan-layout__main>*{padding:clamp(26px,3vw,38px) 0;border-top:1px solid var(--sl-line)}
.sl-loan-layout__main>:first-child{padding-top:0;border-top:0}
.sl-loan-layout__main>.sl-section{background:none}
.sl-loan-layout__main>:last-child{padding-bottom:0}
.sl-article__calc>.sl-section{padding:0}

/* Highlights and article cards: a brand line on top instead of a box */
.sl-loan-layout .sl-cc__grid{gap:24px}
.sl-loan-layout .sl-cc__grid li,.sl-loan-layout .sl-article__card{padding:14px 0 0;background:none;border:0;border-top:2px solid var(--sl-mint);border-radius:0;box-shadow:none;transition:none}
.sl-loan-layout .sl-cc__grid li:hover{transform:none;border-color:var(--sl-mint);box-shadow:none}
.sl-loan-layout .sl-cc__grid li::after{content:none}
.sl-loan-layout .sl-cc__icon,.sl-loan-layout .sl-cc__grid li:hover .sl-cc__icon{width:auto;height:auto;margin-bottom:10px;place-items:start;background:none;color:var(--sl-brand);transform:none}
.sl-loan-layout .sl-cc__icon svg{width:26px;height:26px}
.sl-loan-layout .sl-cc__grid.sl-cc__grid--4,.sl-loan-layout .sl-article__cards{grid-template-columns:repeat(2,minmax(0,1fr))}
/* Justified copy leaves wide word gaps in columns this narrow */
.sl-loan-page .sl-loan-layout .sl-cc__grid p{text-align:left;hyphens:manual}

/* Callouts: a line down the side instead of a tinted box */
.sl-loan-layout .sl-article>.sl-article__callout{padding:2px 0 2px 16px;background:none;border-left:3px solid var(--sl-mint);border-radius:0}

/* Calculator: the copy sits on the page; only the calculator itself stays a raised tool */
.sl-loan-layout .sl-il__calc{grid-template-columns:minmax(0,1fr);padding:0;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
.sl-loan-layout .sl-cc__compare-glow,.sl-loan-layout .sl-faq__glow{display:none}
.sl-loan-layout .sl-il__drivers{display:flex;flex-wrap:wrap;gap:8px 20px}
.sl-loan-layout .sl-il__drivers span{width:auto;height:auto;background:none;border:0;color:var(--sl-brand)}

/* FAQs: questions split by lines */
.sl-loan-layout .sl-faq{overflow:visible}
.sl-loan-layout .sl-faq::before{content:none}
.sl-loan-layout .sl-faq__list{gap:0;border-top:1px solid var(--sl-line)}
.sl-loan-layout .sl-faq__list details,.sl-loan-layout .sl-faq__list details:hover,.sl-loan-layout .sl-faq__list details[open]{background:none;border:0;border-bottom:1px solid var(--sl-line);border-radius:0;box-shadow:none;transform:none}
.sl-loan-layout .sl-faq summary{padding:16px 0}
.sl-loan-layout .sl-faq details p{padding:0 0 18px}

/* Hero: the secondary button gets a white fill and a brand outline so it holds its own beside the primary */
.sl-loan-page .sl-hero__actions .sl-btn--ghost{background:#fff;border-color:rgba(40,120,79,.35);color:var(--sl-brand-deep);box-shadow:0 8px 20px -14px rgba(16,70,45,.6)}
.sl-loan-page .sl-hero__actions .sl-btn--ghost:hover{background:var(--sl-brand-tint);border-color:var(--sl-brand);color:var(--sl-brand-deep);transform:translateY(-2px)}

/* "Ready to Explore {loan} Options?" band above the FAQs: deep-green gradient card, display-font heading,
   white primary button + outlined EMI button. Same design on every loan page; the heading names the loan. */
.sl-loan-band{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 32px;margin:clamp(20px,3vw,32px) 0;padding:clamp(26px,3.4vw,40px) clamp(22px,3.4vw,44px);border-radius:var(--sl-r-lg);background:linear-gradient(125deg,#123F2A 0%,var(--sl-brand-deep) 45%,var(--sl-brand) 100%);color:#fff;box-shadow:0 28px 50px -30px rgba(16,58,38,.75)}
.sl-loan-band__glow{position:absolute;z-index:-1;inset:0;pointer-events:none;background:radial-gradient(260px 200px at 92% 8%,rgba(122,187,100,.45),transparent 70%),radial-gradient(220px 180px at 4% 100%,rgba(255,255,255,.12),transparent 70%)}
.sl-loan-band__copy{flex:1 1 300px;min-width:0}
.sl-loan-band .sl-loan-band__tag{display:inline-flex;align-items:center;gap:8px;margin:0 0 12px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);color:#D9F2E2;font:700 11px/1 var(--sl-body);letter-spacing:.12em;text-transform:uppercase}
.sl-loan-band__tag svg{width:13px;height:13px;flex:none}
.sl-loan-band h2{margin:0 0 10px;color:#fff;font:700 clamp(24px,2.6vw,32px)/1.15 var(--sl-display);letter-spacing:-.01em;text-wrap:balance}
.sl-loan-band p{margin:0;max-width:52ch;color:rgba(255,255,255,.82);font-size:15.5px;line-height:1.55}
.sl-loan-band__actions{display:flex;flex-wrap:wrap;gap:12px}
.sl-loan-band .sl-btn{min-height:50px;padding:0 24px;font-size:15px;font-weight:700;white-space:nowrap}
.sl-loan-band .sl-btn svg{width:18px;height:18px;flex:none;transition:transform .25s var(--sl-ease)}
.sl-loan-band .sl-btn--primary{background:#fff;border-color:#fff;color:var(--sl-brand-deep);box-shadow:0 14px 28px -16px rgba(0,0,0,.55)}
.sl-loan-band .sl-btn--primary:hover{background:#F0FAF3;color:var(--sl-brand-deep);transform:translateY(-2px)}
.sl-loan-band .sl-btn--primary:hover svg{transform:translateX(3px)}
/* The glow button's green hover layer would cover the white fill: hide it, keep a soft green shine */
.sl-loan-band .sl-btn--glow::before{display:none}
.sl-loan-band .sl-btn--glow::after{background:linear-gradient(104deg,transparent 38%,rgba(40,120,79,.16) 47%,transparent 56%)}
.sl-loan-band__link{background:transparent;border-color:rgba(255,255,255,.55);color:#fff}
.sl-loan-band__link:hover{background:rgba(255,255,255,.12);border-color:#fff;color:#fff;transform:translateY(-2px)}
@media (prefers-reduced-motion:reduce){.sl-loan-band .sl-btn:hover,.sl-loan-band .sl-btn:hover svg{transform:none}}

/* An Apply button closes each section; the band straight after the last one already carries it */
.sl-loan-layout .sl-article>.sl-article__cta{margin-top:22px;text-align:left}
.sl-loan-layout .sl-article__cta .sl-btn{min-height:48px;padding:0 22px;font-size:15px}
.sl-loan-layout__main>.sl-section:has(+.sl-loan-band) .sl-article__cta--app{display:none}

/* Related guides after the FAQs: columns with a brand line on top, like the highlights */
.sl-loan-related h2{margin:0 0 18px;font-size:clamp(21px,2vw,25px)}
.sl-loan-related ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.sl-loan-related li{padding-top:14px;border-top:2px solid var(--sl-mint)}
.sl-loan-related__icon{display:block;margin-bottom:10px;color:var(--sl-brand)}
.sl-loan-related__icon svg{width:24px;height:24px}
.sl-loan-related h3{margin:0 0 6px;font-size:17px;line-height:1.25}
.sl-loan-related h3 a{display:inline-flex;align-items:center;gap:6px;min-height:28px;color:var(--sl-ink);text-decoration:none}
.sl-loan-related h3 a:hover{color:var(--sl-brand-deep);text-decoration:underline}
.sl-loan-related h3 svg{flex:none;width:16px;height:16px;color:var(--sl-brand);transition:transform .25s var(--sl-ease)}
.sl-loan-related h3 a:hover svg{transform:translateX(3px)}
.sl-loan-related p{margin:0;color:var(--sl-muted);font-size:14.5px;line-height:1.5}

/* Sidebar: the same plain treatment, with the vertical line down its left side */
.sl-side{display:flex;flex-direction:column;min-width:0;padding-left:var(--sl-loan-split);border-left:1px solid var(--sl-line)}
.sl-side__card{padding:26px 0;border-top:1px solid var(--sl-line)}
.sl-side__card:first-child{padding-top:0;border-top:0}
.sl-side__title{margin:0 0 14px;font-size:18px;line-height:1.25;letter-spacing:-.01em;text-wrap:balance}
.sl-side__icon{display:grid;place-items:center;flex:none;color:var(--sl-brand);transition:color .2s var(--sl-ease)}
.sl-side__icon svg{width:20px;height:20px}
.sl-side ul{list-style:none;margin:0;padding:0}

.sl-side__reasons{display:grid;gap:12px}
.sl-side__reasons li{display:flex;align-items:center;gap:12px;color:var(--sl-ink);font-size:14.5px;font-weight:600;line-height:1.3}

.sl-side__partners{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 8px}
.sl-side__partners li{width:calc((100% - 16px)/3);min-width:0;text-align:center}
.sl-side__partners .sl-pt__logo{height:44px;margin:0 0 6px;padding:2px;border:0;border-radius:8px;background:none;box-shadow:none}
/* White logos cannot show without a dark backing */
.sl-side__partners .sl-pt__logo--dark{padding:5px;background:var(--sl-ink)}
.sl-side__partners .sl-pt__logo em{font-size:22px}
.sl-side__partners small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--sl-muted);font-size:12px;line-height:1.3}

/* "View All Partners": an outline button that fills on hover */
.sl-side__more{display:flex;justify-content:center;align-items:center;gap:8px;min-height:44px;margin-top:16px;border:1.5px solid rgba(40,120,79,.35);border-radius:999px;color:var(--sl-brand-deep);font-size:14.5px;font-weight:600;text-decoration:none;transition:background-color .2s var(--sl-ease),border-color .2s var(--sl-ease),color .2s var(--sl-ease),transform .2s var(--sl-ease)}
.sl-side__more svg{width:16px;height:16px;transition:transform .25s var(--sl-ease)}
.sl-side__more:hover{background:var(--sl-brand);border-color:var(--sl-brand);color:#fff;transform:translateY(-2px)}
.sl-side__more:hover svg{transform:translateX(3px)}

/* "Explore More": rows split by lines, each with an arrow that slides on hover */
.sl-side__links li+li{border-top:1px solid var(--sl-line)}
.sl-side__links a{display:flex;align-items:center;gap:12px;min-height:46px;padding:6px 0;color:var(--sl-ink);font-size:14.5px;font-weight:600;line-height:1.25;text-decoration:none;transition:color .2s var(--sl-ease)}
.sl-side__links a>span:nth-child(2){flex:1;min-width:0}
.sl-side__links a>svg{flex:none;width:16px;height:16px;color:var(--sl-muted);transition:transform .25s var(--sl-ease),color .2s var(--sl-ease)}
.sl-side__links a:hover{color:var(--sl-brand-deep)}
.sl-side__links a:hover>svg{color:var(--sl-brand);transform:translateX(4px)}

/* The CTA stays in view while the visitor reads, below the sticky header */
.sl-side__card--cta{position:sticky;top:88px;padding-bottom:0}
.admin-bar .sl-side__card--cta{top:120px}
.sl-side__art{width:100%;max-width:210px;margin:0 auto 14px}
.sl-side__card--cta .sl-btn{display:flex;width:100%;padding:0 22px}
.sl-side__card--cta .sl-btn svg{flex:none}

/* Inline links must read as links in justified body copy */
.sl-inline-link{font-weight:500;text-decoration:underline;text-decoration-color:rgba(40,120,79,.4);text-underline-offset:3px}
.sl-inline-link:hover{text-decoration-color:currentColor}

@media (max-width:1100px){
  .sl-loan-layout{grid-template-columns:minmax(0,1fr)}
  .sl-side{margin-top:clamp(26px,3vw,38px);padding:clamp(26px,3vw,38px) 0 0;border-left:0;border-top:1px solid var(--sl-line)}
  .sl-side__card--cta{position:static}
}
@media (max-width:620px){
  .sl-loan-layout .sl-cc__grid.sl-cc__grid--4,.sl-loan-layout .sl-article__cards{grid-template-columns:minmax(0,1fr)}
  .sl-loan-band__actions,.sl-loan-band .sl-btn,.sl-loan-layout .sl-article__cta .sl-btn{width:100%}
  .sl-loan-related ul{grid-template-columns:minmax(0,1fr)}
}
