:root { --brand: #1a3c6e; --text: #1a1a1a; --muted: #666; --bg: #fff; --border: #e2e2e2; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
main { max-width: 760px; margin: 0 auto; padding: 2rem 1.25rem; }
a { color: var(--brand); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.site-header .brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; color: var(--brand); text-decoration: none; }
.site-nav a { margin-left: 1.25rem; color: var(--text); font-weight: 500; text-decoration: none; }
.site-nav a:first-child { margin-left: 0; }
.site-nav a:hover { text-decoration: underline; }
@media (max-width: 480px) { .site-header { flex-direction: column; align-items: flex-start; } }

/* Home */
.hero { text-align: center; padding: 2rem 0 3rem; }
.hero h1 { color: var(--brand); margin-bottom: .25rem; }
.hero p { color: var(--muted); }
.editorial { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .editorial { grid-template-columns: repeat(2, 1fr); } }
.card { display: flex; flex-direction: column; padding: 1.25rem; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 16px rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.08); transform: translateY(-2px); }
.card-meta { display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.card-category { color: var(--brand); font-weight: 700; text-decoration: none; }
.card-dot { color: var(--border); }
.card h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.card h2 a { color: var(--brand); text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card-excerpt { color: var(--text); }
.card-readmore { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .75rem; color: var(--brand); font-weight: 600; font-size: .9rem; text-decoration: none; }
.card-readmore:hover { text-decoration: underline; }

/* Category list */
main > h1 { color: var(--brand); }
.category-list li { margin-bottom: .5rem; }

/* Article */
.post { margin-top: -1rem; }
.post h1 { color: var(--brand); font-size: 2rem; line-height: 1.25; margin: 0 0 .75rem; }
@media (max-width: 480px) { .post h1 { font-size: 1.5rem; line-height: 1.15; } }

/* Numbered CTA buttons */
.cta-cluster { display: flex; flex-direction: column; gap: .75rem; margin: 1.5rem 0; }
.cta-cluster a { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border: 2.5px solid #000; border-radius: 14px; background: #1e3fe0; color: #fff; text-decoration: none; transition: border-color .15s, background .15s; }
.cta-cluster a:hover { border-color: #000; background: #1834b8; }
.cta-cluster a::after { content: "→"; margin-left: auto; color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.cta-number { flex-shrink: 0; color: #a8e100; font-weight: 800; font-size: 1.5rem; line-height: 1; }
.cta-headline { flex: 1 1 0%; font-weight: 700; color: #fff; }

/* Continue Reading gate */
.collapsible-content { position: relative; max-height: 180px; overflow: hidden; }
.collapsible-content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, rgba(255,255,255,0), var(--bg)); pointer-events: none; z-index: 1; }
.collapsible-content.expanded { max-height: none; }
.collapsible-content.expanded::after { display: none; }
.continue-reading-btn { position: absolute; left: 50%; bottom: 15px; transform: translateX(-50%); z-index: 2; white-space: nowrap; padding: .85rem 1rem; border: 2.5px solid #000; border-radius: 14px; background: var(--brand); color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.continue-reading-btn:hover { background: #1834b8; }

/* Banner ad slots: hidden until Google fills them (same as explore-cms-blog) */
.av-wrapper { display: none; width: 100%; margin: .5rem 0; overflow: hidden; text-align: center; }
.av-wrapper.is-filled { display: block; }
.av-ad-label { font-size: 10px; text-transform: uppercase; color: var(--muted); }
.av-slot { width: 100%; margin: .25rem 0; display: flex; justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 1.25rem; text-align: center; color: var(--muted); font-size: .875rem; }
.footer-nav a { margin: 0 .6rem; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { margin-top: .75rem; }

/* Contact page: emails look like plain text, as on the reference site */
.post-body a[href^="mailto:"] { color: inherit; text-decoration: none; }
.post-body a[href^="mailto:"]:hover { text-decoration: underline; }

/* Loading overlay */
@keyframes av-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes av-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
#av-loader__wrapper { position: fixed; inset: 0; z-index: 10000; background: rgba(255,255,255,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: av-fadeIn .5s ease forwards; }
#av-loader__spinner { position: relative; width: 60px; height: 60px; margin: auto; top: 45%; border: 8px solid #f3f3f3; border-top-color: var(--brand); border-radius: 50%; animation: av-spin 1s linear infinite; }
#av-loader__text { position: relative; top: 45%; text-align: center; font-size: 20px; font-weight: bold; margin: 20px; }
[hidden] { display: none !important; }

/* Quiz popup */
#av-offerwall__wrapper { font-family: Inter, system-ui, sans-serif; position: fixed; inset: 0; z-index: 9999; background: rgba(255,255,255,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: av-fadeIn .5s ease forwards; }
#av-offerwall__modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; height: 60%; max-width: 450px; max-height: 450px; background: #fff; border-radius: 10px; box-shadow: 0 0 1.5px rgba(0,0,0,.5); overflow: hidden; }
.quiz-container { height: 100%; display: flex; flex-direction: column; text-align: center; }
.progress-bar-container { width: 100%; height: 4px; background: #eee; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.progress-bar { height: 100%; width: 0; background: #1a3c6e; border-radius: 5px; transition: width .5s ease; }
.quiz-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding: 24px; }
.question-container { width: 100%; }
.question { font-size: 18px; color: #555; margin-bottom: 20px; min-height: 48px; display: flex; align-items: center; justify-content: center; line-height: 1.4; padding: 0 4px; }
.options { display: flex; flex-direction: column; gap: 15px; }
.option { background: #1a3c6e; color: #fff; padding: 16px; font-size: 14px; font-weight: 500; border-radius: 4px; text-decoration: none; cursor: pointer; transition: all .3s ease; }
.option:hover { background: #3c6aaf; transform: translateY(-3px); }
.option:active { background: #3c6aaf; transform: translateY(1px); }
.footnote { font-size: 12px; color: gray; }
.question.is-loading { flex-direction: column; gap: 20px; }
.loading { color: #1a3c6e; font-size: 20px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.loading-dots { display: flex; justify-content: center; gap: 8px; }
.loading-dots span { background: #1a3c6e; width: 10px; height: 10px; border-radius: 50%; animation: bounce 1.2s infinite ease-in-out; }
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); opacity: .3; } 40% { transform: scale(1); opacity: 1; } }
.policy-footer { flex-shrink: 0; padding: 8px 16px 16px; font-size: 11px; color: gray; line-height: 1.4; }
.policy-footer .policy-link { color: inherit; }
.policy-disclosure { margin-top: 4px; }
