:root {
  --accent: #5b4cdb;
  --accent-2: #9d8df7;
  --accent-light: #ede9fe;
  --bg: #faf9ff;
  --ink: #14102b;
  --font-h: 'Instrument Serif', Georgia, serif;
  --font-b: 'Plus Jakarta Sans', system-ui, sans-serif;
}
body { background: var(--bg); color: var(--ink); font-family: var(--font-b); }
.container { max-width: 940px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.font-serif, .article-title, .featured-mast h1 { font-family: var(--font-h); }
.article-title { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.1; }
.featured-mast h1 { font-size: clamp(2.25rem, 5.5vw, 3.25rem); line-height: 1.1; margin-bottom: .75rem; }
.featured-deck { font-size: 1.15rem; line-height: 1.65; color: #444; max-width: 62ch; }
.article-meta-line { font-size: .9rem; color: #64748b; margin-top: .5rem; }
a { color: var(--accent); }
a:hover { color: #4338ca; }

/* Homepage */
.home-hero-band { background: linear-gradient(135deg, #ede9fe 0%, #faf9ff 50%, #ddd6fe 100%); border-bottom: 1px solid rgba(91,76,219,.12); }
.home-stat { background: #fff; border: 1px solid var(--accent-light); border-radius: 12px; padding: 1rem 1.25rem; box-shadow: 0 4px 20px rgba(91,76,219,.08); }
.home-card { background: #fff; border: 1px solid var(--accent-light); border-radius: 16px; padding: 1.25rem 1.5rem; box-shadow: 0 6px 24px rgba(91,76,219,.07); transition: transform .2s, box-shadow .2s, border-color .2s; }
.home-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(91,76,219,.14); border-color: var(--accent-2); }
.home-card-num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; margin-bottom: .75rem; }
.home-featured { background: linear-gradient(145deg, #fff, #f5f3ff); border: 2px solid var(--accent-2); border-radius: 20px; box-shadow: 0 20px 50px rgba(91,76,219,.15); }
.home-cat-pill { display: inline-block; padding: .35rem .85rem; border-radius: 999px; background: var(--accent-light); color: var(--accent); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* Articles */
.article-lead { font-size: 1.2rem; line-height: 1.75; color: #444; margin-bottom: 1.5rem; }
.longread-body { font-size: 1.0625rem; line-height: 1.8; }
.longread-body h2 { font-family: var(--font-h); margin: 2.5rem 0 1rem; font-size: 1.5rem; color: var(--ink); }
.article-figure { margin: 2rem 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--accent-light); box-shadow: 0 8px 30px rgba(91,76,219,.08); }
.article-figure img { width: 100%; display: block; background: #ccc; }
.article-figure--wide { margin-left: -1rem; margin-right: -1rem; }
.caption-muted { font-size: .8rem; color: #888; padding: .5rem .75rem; background: #faf9ff; }
.article-pullquote { border-left: 4px solid var(--accent); padding: 1rem 1.5rem; margin: 2rem 0; font-family: var(--font-h); font-size: 1.15rem; background: var(--accent-light); border-radius: 0 8px 8px 0; }
.article-aside { background: #fff; border: 1px solid var(--accent-light); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 2rem 0; box-shadow: 0 4px 16px rgba(91,76,219,.06); }
.article-aside strong { color: var(--accent); display: block; margin-bottom: .5rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.article-checklist { margin: 1rem 0 1.5rem 1.25rem; }
.article-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.article-table th, .article-table td { border: 1px solid var(--accent-light); padding: .65rem .85rem; text-align: left; }
.article-table th { background: var(--accent-light); font-weight: 600; }
.article-endnote { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid rgba(91,76,219,.15); font-size: .9rem; color: #666; }
.callout-promo { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .92rem; }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; background: transparent; }
#readBar { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s; }
.btn-partner { display: inline-block; background: var(--accent); color: #fff !important; padding: .85rem 1.6rem; border-radius: 8px; text-decoration: none; font-weight: 600; border: none; box-shadow: 0 4px 14px rgba(91,76,219,.35); }
.btn-partner:hover { filter: brightness(1.08); color: #fff; }
.promo-ribbon { background: var(--accent); color: #fff; text-align: center; padding: .5rem; font-size: .85rem; }
.badge-sponsored { display: inline-block; background: var(--accent); color: #fff; padding: .2rem .65rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.promo-disclaimer { margin-top: 2rem; padding: 1.25rem; background: rgba(91,76,219,.06); border-radius: 8px; font-size: .88rem; border: 1px solid var(--accent-light); }
.quiz-card { background: #fff; border: 1px solid var(--accent-light); border-radius: 12px; padding: 1.5rem; box-shadow: 0 8px 30px rgba(91,76,219,.1); }
.quiz-track { height: 5px; background: var(--accent-light); border-radius: 3px; overflow: hidden; margin: 1rem 0; }
.quiz-fill { height: 100%; background: var(--accent); width: 0; transition: width .25s; }
.quiz-answers { display: grid; gap: .5rem; margin-top: 1rem; }
.quiz-answers button { text-align: left; padding: .85rem 1rem; border: 1px solid var(--accent-light); background: var(--bg); border-radius: 8px; cursor: pointer; font: inherit; }
.quiz-answers button:hover { border-color: var(--accent); background: #fff; }
.hidden { display: none !important; }
.legal-panel { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.legal-panel[hidden] { display: none !important; }
.legal-panel-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.legal-panel-box { position: relative; background: #fff; color: #111; max-width: 560px; width: 100%; max-height: 85vh; overflow: auto; padding: 1.75rem; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.legal-panel-close { position: absolute; top: .75rem; right: 1rem; border: none; background: none; font-size: 1.75rem; cursor: pointer; }
.legal-open, .footer-legal-links button { background: none; border: none; color: inherit; cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }
.footer-link { color: var(--accent-2); text-decoration: none; }
.footer-link:hover { color: #fff; text-decoration: underline; }
.card-editorial { transition: transform .2s, box-shadow .2s; }
.card-editorial:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(91,76,219,.12); }
.quiz-answer-btn { border-radius: 999px; padding: .75rem 1.25rem; border: 2px solid var(--accent-light); background: #fff; cursor: pointer; font: inherit; width: 100%; text-align: left; }
.quiz-answer-btn:hover { background: var(--accent-light); }
.quiz-result--pill { background: linear-gradient(135deg, #ede9fe, #faf9ff); border-radius: 16px; padding: 1.5rem; border: 2px solid var(--accent-2); }
.quiz-btn-pill { border-radius: 999px; }
.quiz-theme-pill { background: linear-gradient(180deg, #faf9ff, #fff); border: 2px solid var(--accent-light); border-radius: 20px; }
.quiz-step-pill { font-size: .75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin: .5rem 0 0; }
.quiz-pill-btn { display: inline-block; width: auto; min-width: 48%; margin: .25rem; padding: .65rem 1.1rem; border-radius: 999px; border: 2px solid var(--accent-2); background: #fff; cursor: pointer; font: inherit; font-weight: 600; }
.quiz-pill-btn:hover { background: var(--accent-light); }
.quiz-answers--pill { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.text-brand-ink{color:var(--ink)}.hover\:text-brand-accent:hover{color:var(--accent)}.cookie-float{position:fixed;bottom:1.25rem;right:1.25rem;z-index:50;background:#fff;border-radius:999px;padding:.75rem 1.25rem;box-shadow:0 8px 30px rgba(91,76,219,.25);font-size:.85rem;border:1px solid var(--accent-light)}

/* Equal-height homepage article cards */
.home-card img, .card-editorial img, .harbour-card img, .path-card-item img, .method-card img,
.card-editorial-img, .card-img-top, .home-article-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; display: block; }
.home-cards, .path-card-grid, .method-grid, .columns.is-multiline, .row.g-4 { align-items: stretch; }
.home-card, .card-editorial, .harbour-card, .path-card-item, .method-card, .home-article-card,
.column.is-4, .col-md-6.col-lg-4 { display: flex; flex-direction: column; }
.home-card > a, .card-editorial > a, .method-card > a, .home-article-card { display: flex; flex-direction: column; flex: 1; height: 100%; text-decoration: none; color: inherit; }
.home-card-body, .card-editorial .p-3, .harbour-card .p-3, .path-card-item > div, .method-card-body, .home-article-card > div:last-child, .card-body { flex: 1; display: flex; flex-direction: column; }
.home-card h3, .home-card-body h3, .card-editorial h3, .card-editorial .title, .harbour-card .has-text-weight-semibold,
.path-card-item strong, .method-card h2, .home-article-card h3, .card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-card-body p, .card-editorial p, .harbour-card .is-size-7, .path-card-item em, .method-card p, .home-article-card p, .card-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }

