:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --brand: #1E3A5F;
  --brand-dark: #142A44;
  --accent: #0EA5E9;
  --success: #10b981;
  --dark: #142741;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink-2); background: var(--bg); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 10px; border: 2px solid var(--brand); transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #e8eefc; border-color: #e8eefc; color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.logo img { display: block; width: auto; height: 38px; }
@media (max-width: 420px) { .logo img { height: 32px; } }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.site-nav ul a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 12px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { text-align: center; }
}

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #cbd5e1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--ink-2); }

/* Hero */
.hero { padding: 72px 0 80px; background: radial-gradient(1200px 500px at 85% -10%, #DCEEF9 0%, transparent 60%), linear-gradient(#fff, var(--bg-soft)); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--brand); }
.hero .lead { max-width: 600px; margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--success); font-weight: 800; margin-right: 6px; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.hero-card h2 { font-size: 1.25rem; }
.hero-card ul { padding-left: 1.1em; margin: 0 0 20px; }
.hero-card li { margin-bottom: 6px; }
.hero-card .btn { width: 100%; text-align: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 48px 0 56px; } }

.page-hero { padding: 56px 0 48px; background: linear-gradient(#fff, var(--bg-soft)); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 760px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 400px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p { flex: 1; }
.card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.card-link { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.card-link:hover { transform: translateY(-3px); border-color: var(--brand); color: inherit; }
.card-link .more { color: var(--brand); font-weight: 600; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-weight: 800; font-size: 1.8rem; color: var(--brand); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #dcfce7; color: #047857; font-size: .8rem; font-weight: 800; }
.checklist.two-col { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li { background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: .92rem; }
.section-dark .tags li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #e2e8f0; }

/* Pricing */
.price-card { position: relative; }
.price-card.featured { border: 2px solid var(--brand); }
.price-card .badge { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.price { font-size: 2.3rem; font-weight: 800; color: var(--ink); margin: 6px 0 2px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.price-card .checklist { margin: 18px 0 24px; flex: 1; font-size: .96rem; }
.price-card .btn { text-align: center; }
.note { font-size: .9rem; color: var(--muted); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; }

/* Two-column content */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.sticky-box { position: sticky; top: 96px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--brand), #0EA5E9); color: #e0e7ff; border-radius: 20px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
@media (max-width: 600px) { .cta-band { padding: 32px 24px; } }

/* About */
.avatar { width: 160px; height: 160px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #0EA5E9); color: #fff; display: grid; place-items: center; font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
img.avatar { object-fit: cover; display: block; }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; width: 100%; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.hidden { display: none; }

/* Blog */
.post-card time, .post-meta { font-size: .9rem; color: var(--muted); }
.post-card h3 { margin-top: 6px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand); }
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--brand); background: var(--bg-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-soft); }
.prose code { background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.author-box { display: flex; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 48px; background: var(--bg-soft); }
.author-box .avatar { width: 64px; height: 64px; font-size: 1.3rem; margin: 0; flex-shrink: 0; }
.author-box p { margin: 0; }
.post-hero-img { border-radius: 16px; margin-bottom: 32px; }

/* Footer */
.site-footer { background: var(--dark); color: #94a3b8; padding: 64px 0 0; font-size: .95rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1.05fr 1fr 1.1fr; gap: 32px 30px; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-about { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 320px; gap: 0 32px; align-items: start; } .footer-about > * { grid-column: 1; } .footer-about .footer-map { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; } .footer-about .footer-maplink { grid-column: 2; } }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { display: block; } .footer-about .footer-map { margin-top: 14px; } }
.footer-about p { margin: 0 0 12px; }
.site-footer ul.footer-contact { gap: 4px; margin-bottom: 4px; }
.footer-map { margin-top: 14px; max-width: 320px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.footer-maplink { margin-top: 8px !important; font-size: .9rem; }
.site-footer .footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.site-footer ul.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (min-width: 721px) { .site-footer .footer-bottom { padding-right: 76px; } }
.footer-brand { font-weight: 800; font-size: 1.25rem; color: #fff; margin: 0 0 10px; }
.footer-brand img { display: block; width: auto; height: 36px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding: 20px 0; font-size: .85rem; }
.footer-bottom p { margin: 0; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.wa-float:hover { color: #fff; transform: scale(1.05); }

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .center { text-align: center; } .mt-32 { margin-top: 32px; }

/* Service page content blocks */
.quote-band { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.3; color: #fff; max-width: 860px; margin: 0; padding-left: 24px; border-left: 4px solid var(--brand); }
.icon-card .icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #e8efff; font-size: 1.5rem; margin-bottom: 16px; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--bg-soft); font-weight: 700; }
.compare thead th:last-child { color: var(--brand); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 600; width: 24%; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid.cols-2 { grid-template-columns: 1fr; } }
.block-prose { max-width: 820px; }
.block-prose > :last-child { margin-bottom: 0; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid.cols-4 { grid-template-columns: 1fr; } }
.grid.cols-4 .icon-card { min-height: 260px; }
@media (max-width: 560px) { .grid.cols-4 .icon-card { min-height: 0; } }
@media (max-width: 640px) {
  .compare-wrap { border: 0; background: none; overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
  .compare th, .compare td { border: 0; padding: 4px 0; }
  .compare tbody th { font-size: 1.05rem; padding-bottom: 8px; width: auto; }
  .compare td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .compare td:last-child::before { color: var(--brand); }
}
.post-faq { margin-top: 48px; } .post-faq h2 { margin-bottom: 20px; }

/* ===== Case studies ===== */
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.cs-tags li { background: #E8F3FA; color: var(--brand); font-weight: 600; font-size: .85rem; padding: 5px 12px; border-radius: 999px; }
.cs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.cs-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.cs-stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; color: var(--brand); letter-spacing: -.01em; }
.cs-stat span { display: block; margin-top: 6px; font-size: .95rem; color: var(--muted); }
.cs-stats--summary { margin-bottom: 36px; }
.cs-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cs-filter button { font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.cs-filter button:hover { border-color: var(--brand); color: var(--brand); }
.cs-filter button.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cs-card .cs-meta { font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cs-card .cs-headline { display: block; font-size: 1.5rem; line-height: 1.2; color: var(--brand); margin: 10px 0 8px; }
.cs-card .cs-title, .cs-card h3 { font-size: 1.08rem; font-weight: 600; margin: 0 0 12px; color: var(--ink); }
.cs-mini { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; font-size: .95rem; }
.cs-mini li { padding: 6px 0; border-top: 1px solid var(--line); }
.cs-mini b { color: var(--ink); }
.cs-note { margin-top: 24px; font-size: .92rem; color: var(--muted); }
.cs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.cs-side { position: sticky; top: 100px; }
.cs-side-h { font-size: 1.15rem; }
.cs-dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .95rem; }
.cs-dl dt { color: var(--muted); }
.cs-dl dd { margin: 0; color: var(--ink); font-weight: 600; }
.cs-side-label { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0; }
.cs-svc { list-style: none; padding: 0; margin: 0 0 8px; }
.cs-svc li { padding: 4px 0; }
.cs-svc a { font-weight: 600; text-decoration: none; }
.cs-figure { margin: 0 0 28px; }
.cs-figure img { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); width: 100%; }
.cs-figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .cs-layout { grid-template-columns: 1fr; } .cs-side { position: static; } }

/* ===== Page illustrations ===== */
.page-hero.has-art .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-art img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #E8F3FA; }
@media (max-width: 900px) { .page-hero.has-art .wrap { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 900px) { .hero-art.hide-mobile { display: none; } }

/* ===== Photos & icons ===== */
.photo { margin: 0 0 28px; }
.photo img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; }
.photo-wide { max-width: 900px; margin: 0 auto 32px; }
.photo-card { margin: -6px -6px 18px; }
.photo-card img { border-radius: 10px; box-shadow: none; }
.photo-dark img { box-shadow: none; border: 1px solid rgba(255,255,255,.12); }
.prose .photo { margin: 28px 0; }
.icon-svg { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: #E8F3FA; color: var(--brand); font-size: 0; }
.icon-svg svg { width: 28px; height: 28px; }
.icon-inline svg { width: 20px; height: 20px; vertical-align: -3px; color: var(--brand); }

/* Homepage balance */
.grid-steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
@media (max-width: 560px) { .grid-steps-2 { grid-template-columns: 1fr; } }
.split-center { align-items: center; }
/* Write for Us page */
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form label.check input { width: auto; margin-top: 4px; }
.sticky-box > .btn { display: block; text-align: center; margin-top: 22px; }
/* Pricing region switch (India / International) */
.pkg-switch { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 0 auto 30px; }
.pkg-tab { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.pkg-tab[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pkg-cur { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.pkg-cur select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.pkg-cur[hidden], .pkg-hint[hidden] { display: none; }
.pkg-hint { margin-top: 18px; }
[data-region][hidden] { display: none !important; }

/* ---------- Blog post: sidebar, TOC, share, preferred source ---------- */
.post-layout { display: flex; flex-direction: column; }
.post-main { min-width: 0; }

/* Below the sidebar breakpoint the aside's children become flow items of
   .post-layout, so only the contents list sits above the article and the
   share / preferred-source blocks drop below it. */
@media (max-width: 1023px) {
  .post-aside { display: contents; }
  .toc { order: 1; margin-bottom: 32px; }
  .post-main { order: 2; }
  .share-block { order: 3; }
  .gps-aside-block { order: 4; }
}

/* Offset anchor jumps so a heading doesn't hide under the sticky header */
.prose h2, .prose h3, .post-faq h2 { scroll-margin-top: 84px; }

.post-aside { margin: 0 0 32px; }
.aside-block { margin-top: 26px; }
.aside-h, .toc > summary {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.aside-p { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }

/* Table of contents */
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--bg-soft); }
.toc > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease; margin-left: 10px; flex: none;
}
.toc[open] > summary::after { transform: rotate(-135deg); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc li.lvl-3 { padding-left: 14px; }
.toc a {
  display: block; padding: 7px 0 7px 14px; font-size: .92rem; line-height: 1.4;
  color: var(--ink-2); text-decoration: none; border-left: 2px solid var(--line);
}
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }
.toc li.active > a { color: var(--brand); font-weight: 600; border-left-color: var(--accent); }

/* Share */
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--brand);
  cursor: pointer; padding: 0; position: relative; transition: border-color .15s, color .15s, transform .15s;
}
.share-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.share-btn.copied::after {
  content: "Copied"; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--dark); color: #fff; font-size: .72rem; padding: 4px 9px; border-radius: 6px; white-space: nowrap;
}

/* Preferred source */
.gps-link {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.gps-link:hover { border-color: var(--accent); color: var(--ink); }
.gps-g {
  width: 20px; height: 20px; border-radius: 50%; flex: none; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: .8rem;
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
  color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.35);
}
.gps-callout {
  margin: 40px 0 0; padding: 24px 26px; border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--bg-soft);
}
.gps-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 10px;
}
.gps-callout p:last-of-type { margin-bottom: 16px; }

@media (min-width: 1024px) {
  .post-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 276px; gap: 56px; align-items: start;
  }
  /* The aside is first in the DOM so the contents list sits above the
     article on mobile. Both are pinned to row 1 because grid's sparse
     packing will not move the later item back up into row 1 on its own. */
  .post-main { grid-column: 1; grid-row: 1; }
  /* The whole sidebar is the sticky unit. Sticking only the contents list
     would leave the share block as a following sibling, and a stuck
     element overlaps whatever follows it in flow. */
  .post-aside { grid-column: 2; grid-row: 1; position: sticky; top: 88px; margin: 0; }
  /* Taller than the viewport and its lower half would be pinned out of
     reach, so it scrolls with the page instead. Set by the script in
     base.njk, which remeasures on resize. */
  .post-aside.is-tall { position: static; }

  /* Preferred Sources already has the callout after the FAQs on this
     breakpoint; a second copy here only makes the sidebar too tall to
     stay sticky. It stays in flow below the article on mobile. */
  .gps-aside-block { display: none; }

  .toc { background: transparent; border: 0; padding: 0; }
  .toc a { padding: 5px 0 5px 14px; font-size: .88rem; line-height: 1.35; }
  .toc > summary {
    cursor: default; padding-bottom: 12px; margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .toc > summary::after { display: none; }
  .share-block { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
  .gps-aside-block { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
}

/* ---------- Blog category navigation & post category chip ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-nav a {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .92rem; font-weight: 600; color: var(--ink-2); text-decoration: none; background: #fff;
  transition: border-color .15s, color .15s;
}
.cat-nav a:hover { border-color: var(--accent); color: var(--accent); }
.cat-nav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.post-cat {
  display: inline-block; padding: 4px 13px; border-radius: 999px; background: #E8F3FA;
  color: var(--brand); font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; margin-bottom: 12px;
}
a.post-cat:hover { background: var(--brand); color: #fff; }

/* ---------- Full-bleed photo background sections ---------- */
/* The photo is a real <img> rather than a CSS background so it can be
   lazy-loaded and served responsively; the tint sits above it. */
.section-bg { position: relative; overflow: hidden; color: #dbe6f1; }
.section-bg > .wrap, .section-bg > .narrow { position: relative; z-index: 2; }
.section-bg__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 58%; z-index: 0;
}
/* Dark enough for AA-contrast white text over any photo, light enough on
   the right that the photo is still visible rather than a flat block. */
.section-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(16,36,60,.90) 0%, rgba(22,46,76,.80) 48%, rgba(14,116,172,.52) 100%);
}
.section-bg h2, .section-bg h3, .section-bg h4, .section-bg strong { color: #fff; }
.section-bg .eyebrow { color: #7dd3fc; }
.section-bg .lead { color: #c7d7e6; }
.section-bg a:not(.btn) { color: #7dd3fc; }
/* Tinted rather than translucent-white, so a chip stays readable even where
   it lands on a bright part of the photo. */
.section-bg .tags li { background: rgba(10,28,48,.52); border-color: rgba(255,255,255,.22); color: #eef5fb; }
.section-bg .checklist li::before { color: #38bdf8; }

/* Figure strip: a row of photos that breaks up long text */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 0; }
.photo-row img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); display: block; }
.photo-row figure { margin: 0; }
.photo-row figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 720px) { .photo-row { grid-template-columns: 1fr; } }

/* Media panel beside copy */
.media-panel img { width: 100%; border-radius: var(--radius); display: block; aspect-ratio: 3/2; object-fit: cover; }
.media-panel figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* Card thumbnails on the home page */
.card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 14px; }

/* Who-I-work-with band inside a photo section */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin-top: 36px; }
.who-grid > div { padding-top: 18px; border-top: 2px solid rgba(125,211,252,.45); }
.who-grid h3 { font-size: 1.08rem; margin: 0 0 8px; }
.who-grid p { margin: 0; font-size: .95rem; line-height: 1.6; }
@media (max-width: 920px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .who-grid { grid-template-columns: 1fr; gap: 22px; } }

/* Bands whose copy spans the full width need an even tint, not a gradient
   that leaves one side light. */
.section-bg--even::after {
  background: linear-gradient(180deg, rgba(16,36,60,.93) 0%, rgba(20,44,72,.88) 60%, rgba(16,36,60,.93) 100%);
}
