/* Article styles. Carried over from the scoped .aab styles supplied with the
   firm's articles (src/articles/*.html), with three changes: colours follow
   the site palette, fonts come from site.css instead of an @import, and the
   key-takeaway and warning callouts use a full outline. */

.article-wrap{max-width:calc(720px + 2*var(--gutter)); margin-inline:auto; padding:clamp(28px,5vw,56px) var(--gutter) clamp(48px,7vw,88px)}
.crumb--article{margin-bottom:26px}

.aab{
  --ink:#14262E; --muted:#5A6D76; --navy:#1F556B; --navy-deep:#143B4B;
  --panel:#EAF3F6; --rule:#D3E0E6; --sage:#3E6B4F; --alert:#8B1E1E; --alert-bg:#FBF0EF;
  background:#fff; color:var(--ink);
  font-family:'Literata','Palatino Linotype',Palatino,'Book Antiqua',Georgia,serif;
  font-size:18px; line-height:1.72;
  max-width:720px; margin:0 auto; padding:0;
  -webkit-font-smoothing:antialiased;
}
.aab *{box-sizing:border-box}
.aab h1,.aab h2,.aab h3,.aab .aab-sans{
  font-family:'Schibsted Grotesk','Helvetica Neue',Arial,sans-serif; color:var(--ink);
}
.aab h1{font-size:clamp(2rem,5vw,2.85rem); line-height:1.08; font-weight:800; letter-spacing:-.02em; margin:0 0 14px}
.aab h2{font-size:1.5rem; line-height:1.25; font-weight:700; letter-spacing:-.01em; margin:56px 0 16px; padding-top:22px; border-top:3px solid var(--navy)}
.aab h3{font-size:1.1rem; font-weight:700; margin:0 0 6px}
.aab p{margin:0 0 18px}
.aab a{color:var(--navy); text-decoration-thickness:1px; text-underline-offset:3px}
.aab a:hover{color:var(--navy-deep)}
.aab a:focus-visible{outline:3px solid var(--navy); outline-offset:2px; border-radius:2px}
.aab strong{font-weight:600}

.aab-date{font-family:'Schibsted Grotesk',Arial,sans-serif; font-size:.9rem; color:var(--muted); margin:0 0 28px}
.aab-lede{font-size:1.2rem; line-height:1.6; margin-bottom:26px}

/* Key takeaway */
.aab-key{background:var(--panel); border:1.5px solid var(--navy); padding:22px 26px; margin:0 0 40px; border-radius:8px}
.aab-key p{margin:0 0 12px}
.aab-key p:last-child{margin:0}

/* Timeline: the one bold element */
.aab-timeline{list-style:none; margin:0 0 8px; padding:0; display:grid; grid-template-columns:repeat(3,1fr); position:relative}
.aab-timeline::before{content:""; position:absolute; left:16.66%; right:16.66%; top:15px; height:3px; background:var(--rule)}
.aab-timeline li{position:relative; text-align:center; padding:0 10px}
.aab-dot{display:block; width:33px; height:33px; margin:0 auto 12px; border-radius:50%; background:#fff; border:3px solid var(--navy); position:relative}
.aab-timeline .is-now .aab-dot{background:var(--navy); box-shadow:0 0 0 6px rgba(31,78,121,.15)}
.aab-when{display:block; font-family:'Schibsted Grotesk',Arial,sans-serif; font-weight:800; font-size:1.05rem; line-height:1.2; color:var(--ink)}
.aab-what{display:block; font-size:.92rem; line-height:1.45; color:var(--muted); margin-top:6px}
.aab-timeline .is-now .aab-when{color:var(--navy)}
.aab-caption{font-size:.85rem; color:var(--muted); text-align:center; margin:14px 0 0}

/* Qualification checklist (conditions, not a sequence) */
.aab-checks{list-style:none; margin:8px 0 24px; padding:0}
.aab-checks li{position:relative; padding:16px 0 16px 46px; border-bottom:1px solid var(--rule)}
.aab-checks li:first-child{border-top:1px solid var(--rule)}
.aab-checks li::before{content:""; position:absolute; left:4px; top:20px; width:24px; height:24px; border-radius:50%; background:var(--sage)}
.aab-checks li::after{content:""; position:absolute; left:12px; top:25px; width:7px; height:12px; border:solid #fff; border-width:0 3px 3px 0; transform:rotate(45deg)}
.aab-checks p{margin:0}

/* Plain note */
.aab-note{font-size:.98rem; background:#FAFBFC; border:1px solid var(--rule); border-radius:6px; padding:16px 20px; margin:0 0 24px}

/* Q&A */
.aab-qa{margin:28px 0 0; padding:22px 26px; border:2px solid var(--navy); border-radius:6px}
.aab-qa h3{color:var(--navy)}
.aab-qa p:last-child{margin:0}

/* AB 1847 changes */
.aab-changes{margin:8px 0 0; padding:0}
.aab-changes > div{padding:18px 0; border-bottom:1px solid var(--rule)}
.aab-changes > div:first-child{border-top:1px solid var(--rule)}
.aab-changes dt{font-family:'Schibsted Grotesk',Arial,sans-serif; font-weight:700; font-size:1.08rem; margin:0 0 6px}
.aab-changes dd{margin:0}
.aab-changes dd p{margin:0 0 10px}
.aab-changes dd p:last-child{margin:0}

/* Application steps (a true sequence) */
.aab-steps{list-style:none; counter-reset:step; margin:8px 0 0; padding:0}
.aab-steps li{counter-increment:step; position:relative; padding:4px 0 22px 62px; min-height:52px}
.aab-steps li::before{content:counter(step); position:absolute; left:0; top:0; width:42px; height:42px; border-radius:50%; background:var(--navy); color:#fff; font-family:'Schibsted Grotesk',Arial,sans-serif; font-weight:800; font-size:1.1rem; display:flex; align-items:center; justify-content:center}
.aab-steps li:not(:last-child)::after{content:""; position:absolute; left:20px; top:48px; bottom:4px; width:2px; background:var(--rule)}
.aab-steps p{margin:0}

/* Foreclosure warning */
.aab-warn{background:var(--alert-bg); border:2px solid var(--alert); padding:22px 26px; border-radius:8px; margin-top:8px}
.aab-warn p:last-child{margin:0}
.aab-warn strong{color:var(--alert)}

/* CTA */
.aab-cta{background:var(--navy); color:#fff; border-radius:8px; padding:34px 32px; margin:56px 0 0}
.aab-cta h2{color:#fff; border:0; padding:0; margin:0 0 14px}
.aab-cta p{color:#E6EDF4}
.aab-btn{display:inline-block; background:#fff; color:var(--navy) !important; text-decoration:none; font-family:'Schibsted Grotesk',Arial,sans-serif; font-weight:700; font-size:1rem; padding:14px 24px; border-radius:6px; margin-top:6px}
.aab-btn:hover{background:var(--panel); color:var(--navy-deep) !important}
.aab-cta .aab-btn:focus-visible{outline:3px solid #fff; outline-offset:3px}

.aab-disclaimer{font-size:.88rem; font-style:italic; color:var(--muted); margin:28px 0 0}
.aab-sources{margin:40px 0 0; padding-top:18px; border-top:1px solid var(--rule)}
.aab-sources h2{font-size:1rem; border:0; padding:0; margin:0 0 10px; color:var(--muted)}
.aab-sources ul{margin:0; padding-left:20px; font-size:.95rem}
.aab-sources li{margin:0 0 6px}

.aab-kicker{font-family:'Schibsted Grotesk',Arial,sans-serif; font-weight:700; font-size:.95rem; color:var(--navy); margin:0 0 10px}
.aab-key + h2{margin-top:40px}
.aab-num{list-style:none; counter-reset:n; margin:8px 0 24px; padding:0}
.aab-num li{counter-increment:n; position:relative; padding:14px 0 14px 46px; border-bottom:1px solid var(--rule)}
.aab-num li:first-child{border-top:1px solid var(--rule)}
.aab-num li::before{content:counter(n); position:absolute; left:0; top:13px; width:30px; height:30px; border-radius:50%; border:2px solid var(--navy); color:var(--navy); font-family:'Schibsted Grotesk',Arial,sans-serif; font-weight:800; font-size:.95rem; display:flex; align-items:center; justify-content:center}
.aab-num p{margin:0}
.aab-tip{background:var(--panel); border-radius:6px; padding:20px 24px; margin:8px 0 24px}
.aab-tip p{margin:0}
.aab-cta p:last-of-type{margin-bottom:18px}

@media (max-width:620px){
  .aab{font-size:17px}
  .aab-timeline{grid-template-columns:1fr; gap:22px}
  .aab-timeline::before{left:15px; right:auto; top:16px; bottom:16px; width:3px; height:auto}
  .aab-timeline li{text-align:left; padding-left:52px; min-height:33px}
  .aab-dot{position:absolute; left:0; top:0; margin:0}
  .aab-caption{text-align:left}
  .aab-key,.aab-warn,.aab-qa{padding:18px 20px}
  .aab-cta{padding:26px 22px}
}

/* Byline under the headline. */
.byline{display:flex; align-items:center; gap:14px; margin:4px 0 28px}
.byline img{width:52px; height:52px; border-radius:50%; object-fit:cover; flex:none; background:var(--mist)}
.byline p{margin:0; display:flex; flex-direction:column; gap:1px; font-family:var(--sans); line-height:1.35}
.aab .byline__name{font-weight:700; font-size:1rem; color:var(--ink); text-decoration:none}
.aab .byline__name:hover{color:var(--navy); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px}
.byline__role{font-size:.9rem; color:var(--muted)}
.aab-date + .byline{margin-top:-10px}

/* After the article: state service link and intake button. */
.after-article{max-width:720px; margin:40px auto 0; padding-top:28px; border-top:3px solid var(--brand); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px 32px}
.after-article__state{margin:0; flex:1 1 320px; font-size:1.05rem}
.after-article__state a{font-family:var(--sans); font-weight:700}
