/* Guides (articles) and the Insights hub. Builds on home.css + service.css + locations.css. */

/* ---- article hero ---- */
.ahero { padding: clamp(28px, 3.5vw, 48px) 0 clamp(40px, 5vw, 64px); }
.ahero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.ahero .breadcrumb { margin-bottom: 26px; }
.ahero-h1 { margin: 12px 0 18px; font: 400 clamp(34px, 4.3vw, 58px)/1.06 var(--serif); letter-spacing: -.025em; }
.ahero .hero-lead { max-width: 32em; }
.ameta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; }
.ameta li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--lav); font-size: 14px; font-weight: 500; }
.ameta svg { width: 16px; height: 16px; stroke: var(--purple); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ahero-art { position: relative; padding: 0 0 26px 26px; }
.ahero-art::before { content: ""; position: absolute; left: 0; bottom: 0; right: 26px; top: 26px; background: var(--lav); }
.ahero-svg { position: relative; display: block; width: 100%; height: auto; border: 3px solid var(--ink); }
.ahero-svg .gl { animation: gl-dash 3.2s linear infinite; }
@media (max-width: 900px) { .ahero-grid { grid-template-columns: minmax(0, 1fr); } .ahero-art { max-width: 560px; } }

/* ---- article body ---- */
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(32px, 5vw, 72px); justify-content: start; padding-bottom: clamp(64px, 8vw, 104px); }
.toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; }
.toc .eyebrow { margin-bottom: 12px; }
.toc a { display: block; padding: 8px 0 8px 16px; border-left: 3px solid var(--line); color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.35; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.toc a:hover { background: var(--lav); }
.toc a.is-active { border-left-color: var(--purple); font-weight: 700; }
@media (max-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; padding: 18px 20px; background: var(--lav); } }

.prose { font-size: 18px; line-height: 1.75; }
.prose > * { max-width: 100%; }
.prose h2 { margin: 64px 0 18px; padding-top: 28px; border-top: 3px solid var(--ink); font: 400 clamp(28px, 3vw, 38px)/1.12 var(--serif); letter-spacing: -.02em; scroll-margin-top: 90px; }
.prose > h2:first-child, .prose > .takeaways + h2 { margin-top: 48px; }
.prose h3 { margin: 38px 0 10px; font: 400 clamp(22px, 2.2vw, 28px)/1.2 var(--serif); letter-spacing: -.015em; }
.prose h4 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.prose p { margin: 0 0 18px; }
.prose a { color: #6b4fb8; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul:not([class]), .prose ol:not([class]) { margin: 0 0 22px; padding: 0; list-style: none; }
.prose ul:not([class]) li, .prose ol:not([class]) li { position: relative; padding: 4px 0 4px 28px; }
.prose ul:not([class]) li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; background: var(--purple); border: 2px solid var(--ink); }
.prose ol:not([class]) { counter-reset: pr; }
.prose ol:not([class]) li { counter-increment: pr; }
.prose ol:not([class]) li::before { content: counter(pr); position: absolute; left: 0; top: 6px; display: grid; place-items: center; width: 24px; height: 24px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }

.prose .takeaways { margin: 0 0 8px; padding: 28px 32px 22px; background: var(--lav); border-left: 6px solid var(--purple); }
.takeaways-title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6b4fb8; }
.prose .takeaways ul { margin: 0; padding: 0; list-style: none; }
.prose .takeaways li { position: relative; padding: 6px 0 6px 32px; font-size: 17px; line-height: 1.55; }
.prose .takeaways li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; border: 0; }

.prose aside.callout { display: block; margin: 30px 0; padding: 22px 26px; background: var(--sky, #eaf4fd); border: 0; border-left: 6px solid var(--blue); box-shadow: none; }
.prose aside.callout p { margin: 0; font-size: 17px; line-height: 1.6; }
.callout-title { margin: 0 0 6px !important; font-size: 12px !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #2f6fa6; }

.step-timeline { list-style: none; margin: 28px 0 30px; padding: 0 0 0 4px; position: relative; }
.step-timeline::before { content: ""; position: absolute; left: 14px; top: 14px; bottom: 14px; border-left: 3px dotted var(--purple); }
.step-timeline > li { position: relative; padding: 4px 0 24px 52px; }
.step-timeline > li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); transition: background .4s; }
.step-timeline > li.is-in::before { background: var(--purple); }
.step-timeline > li:last-child::before { background: var(--ink); }
.step-timeline h4 { font: 400 22px/1.2 var(--serif); letter-spacing: -.01em; }
.step-timeline p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.6; }

.prose .table-wrap { margin: 26px 0 30px; overflow-x: auto; border: 3px solid var(--ink); }
.prose .data-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; background: #fff; }
.prose .data-table th { padding: 14px 18px; background: var(--ink); color: #fff; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.prose .data-table td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.prose .data-table td:first-child { font-weight: 700; white-space: nowrap; }
.prose .data-table tbody tr:nth-child(even) { background: var(--lav); }

.prose .inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 36px 0; padding: 26px 30px; background: var(--ink); color: #fff; }
.prose .inline-cta p { margin: 0; max-width: 24em; font: 400 clamp(20px, 2vw, 25px)/1.3 var(--serif); letter-spacing: -.01em; }
.prose .inline-cta .button, .prose .inline-cta .button:hover { flex: none; background: #fff; color: var(--ink); border-color: #fff; text-decoration: none; }
@media (max-width: 640px) { .prose .inline-cta { flex-direction: column; align-items: flex-start; } }

.checklist { margin: 26px 0 32px; padding: 24px 28px 22px; border: 3px solid var(--ink); background: #fff; box-shadow: 8px 8px 0 var(--purple); }
.prose .checklist ul { margin: 0; }
.prose .checklist li { padding: 6px 0; }
.prose .checklist li::before { display: none; }
.checklist label { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 17px; line-height: 1.5; }
.checklist input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: #6b4fb8; }
.checklist-progress { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0 !important; font-size: 14px; font-weight: 700; }
.checklist-bar { display: block; height: 8px; background: #e6e3ee; }
.checklist-bar i { display: block; height: 100%; width: var(--done, 0%); background: var(--purple); transition: width .3s; }

.prose .faq-list { margin: 22px 0 36px; }
.prose .chips { margin: 14px 0 24px; }

.author-box { display: flex; gap: 18px; align-items: flex-start; margin: 48px 0 16px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-mark { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; font: 400 26px/1 var(--serif); }
.author-box p { margin: 0; font-size: 16px; line-height: 1.6; }
.author-box strong { display: block; font-size: 18px; }

/* ---- insights hub ---- */
.ifeat { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.ifeat-main { display: flex; flex-direction: column; gap: 12px; }
.ifeat-art { display: block; border: 3px solid var(--ink); }
.ifeat-art .ahero-svg { border: 0; }
.ifeat-title { margin: 6px 0 0; font: 400 clamp(28px, 3.2vw, 42px)/1.1 var(--serif); letter-spacing: -.02em; }
.ifeat-title a { color: inherit; text-decoration: none; }
.isupport { display: grid; gap: 14px; align-content: start; }
.isupport a { display: flex; flex-direction: column; gap: 8px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--purple); color: inherit; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.isupport a:nth-child(2) { border-left-color: var(--blue); } .isupport a:nth-child(3) { border-left-color: var(--ink); }
.isupport a:hover { transform: translateX(6px); box-shadow: 0 18px 36px rgba(17,18,22,.1); }
.isupport h3 { margin: 0; font: 400 clamp(21px, 1.9vw, 26px)/1.2 var(--serif); letter-spacing: -.01em; }
@media (max-width: 900px) { .ifeat { grid-template-columns: minmax(0, 1fr); } }

.ifilter { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 36px; }
.ifilter button { padding: 10px 18px; background: #fff; border: 2px solid var(--ink); font: 600 14.5px var(--sans, inherit); cursor: pointer; transition: background .2s, color .2s; }
.ifilter button:hover { background: var(--lav); }
.ifilter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pcard[hidden] { display: none; }
.pcard a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pcard a:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(17,18,22,.13); }
.pcard-top { position: relative; display: grid; place-items: center; height: 118px; border-bottom: 3px solid var(--ink); }
.pcard-top svg { width: 52px; height: 52px; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pcard--purple .pcard-top { background: var(--purple); } .pcard--blue .pcard-top { background: var(--blue); } .pcard--ink .pcard-top { background: var(--ink); } .pcard--ink .pcard-top svg { stroke: #fff; } .pcard--lav .pcard-top { background: var(--purple-t); }
.pcard-new { position: absolute; top: 12px; right: 12px; padding: 4px 10px; background: #fff; border: 2px solid var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pcard-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.pcard-cat { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b4fb8; }
.pcard h3 { margin: 0; font: 400 clamp(20px, 1.8vw, 24px)/1.2 var(--serif); letter-spacing: -.01em; }
.pcard-body > p:not(.pcard-cat) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pcard-go { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; }
.pgrid-note { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 1020px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }

/* call-to-action boxes: text links must read on the dark ground */
.prose .inline-cta a:not(.button) { flex: none; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--blue); padding-bottom: 2px; white-space: nowrap; }
.prose .inline-cta a:not(.button):hover { color: var(--blue); }
