/* Social Audit Pro site styles: the homepage, blog, dashboard, audit report, cleanup, contact, settings, login, sign-up, password and quote pages.
   Loaded through includes/site_layout.php. The older pages still use styles/style.css. */

:root {
    --navy: #003B4B;
    --navy-hover: #00566C;
    --teal: #00657A;
    --amber: #F2B544;
    --amber-soft: #FFF8E8;
    --amber-line: #F3E2BC;
    --ink: #142027;
    --muted: #4F5E65;
    --faint: #6A787E;
    --ground: #F4F6F7;
    --surface: #FFFFFF;
    --line: #DCE3E6;
    --line-soft: #E6ECEE;
    --field-line: #C9D3D7;
    --selected: #EEF5F7;
    --error: #B3261E;
    --success: #1E6B45;
    --good: #2E8B5E;
    --dormant: #E0A33B;
    --dormant-text: #8A4B00;
    --suspicious: #C2452D;
    --suspicious-text: #A1361F;
    --somewhat: #E8876B;
    --dormant-strong: #B9772A;
    --avg: #A3B1B6;
    --male: #4F7C8F;
    --female: #E58A80;
    --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }

a { color: var(--teal); }
a:hover { color: var(--navy); }

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }

h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

[hidden] { display: none !important; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }

.container { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.container--narrow { max-width: 720px; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.small-gap { margin-top: 14px; }

/* ---------- Header and footer ---------- */

.site-header { background: var(--navy); color: #FFFFFF; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.brand { color: #FFFFFF; text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; min-height: 44px; display: inline-flex; align-items: center; }
.brand:hover { color: #FFFFFF; }
.brand span { color: var(--amber); }

.site-nav__group { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.menu-toggle { display: none; background: transparent; border: 1.5px solid rgba(255, 255, 255, .35); color: #FFFFFF; border-radius: 8px; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 700; align-items: center; gap: 8px; }

@media (max-width: 920px) {
    .menu-toggle { display: inline-flex; }
    .site-nav { display: none; width: 100%; padding-bottom: 8px; }
    .site-nav.is-open { display: block; }
    .site-nav__group { flex-direction: column; align-items: stretch; }
    .navcta { margin: 6px 0 0; justify-content: center; }
}
body.is-logged-in .only-logged-out,
body.is-logged-out .only-logged-in { display: none; }

.navlink { color: #D5E0E3; text-decoration: none; font-size: 14px; font-weight: 600; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.navlink:hover, .navlink[aria-current="page"] { color: #FFFFFF; background: rgba(255, 255, 255, .08); }
.navlink--light { color: #FFFFFF; }
.navcta { background: var(--amber); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 800; padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 8px; margin-left: 4px; }
.navcta:hover { background: #F5C365; color: var(--ink); }

.site-footer { background: var(--navy); color: #C4D3D8; font-size: 14px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; }
.site-footer a { color: #E3ECEF; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- Buttons, fields, choices ---------- */

.btn { border: 0; border-radius: 10px; min-height: 48px; padding: 0 22px; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #FFFFFF; }
.btn-primary:hover { background: var(--navy-hover); color: #FFFFFF; }
.btn-primary:disabled { background: #8FA3A9; }
.btn-secondary { background: var(--surface); color: var(--navy); border: 1.5px solid var(--field-line); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 17px; }
.btn-sm { min-height: 44px; font-size: 15px; padding: 0 18px; }
.btn.is-loading { opacity: .75; cursor: progress; }

.linklike { background: none; border: 0; padding: 0; color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; min-height: 32px; text-align: left; }
.linklike:hover { color: var(--navy); }

.back-link { background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--teal); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.back-link:hover { color: var(--navy); text-decoration: underline; }

.label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }

.field { width: 100%; min-height: 48px; border: 1.5px solid var(--field-line); border-radius: 10px; padding: 0 14px; font-size: 16px; background: var(--surface); }
.field:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 59, 75, .15); }
.field[aria-invalid="true"] { border-color: var(--error); }
.field--area { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.5; }
.field--code { text-transform: uppercase; min-width: 0; flex: 1 1 auto; }

.field-msg { color: var(--error); font-size: 15px; line-height: 1.45; }
.field-msg:not(:empty) { margin-top: 8px; }
.field-msg.is-warning { color: #6B4700; }

.input-row { display: flex; flex-wrap: wrap; gap: 8px; }
.input-row--end { justify-content: flex-end; margin-top: 8px; }
.input-row--wrap { align-items: center; gap: 8px 16px; }
.input-row--tight { flex-wrap: nowrap; }
.input-row .btn { flex: 0 0 auto; min-width: 150px; }
.input-row--tight .btn { min-width: 0; }

.input-at { flex: 1 1 240px; position: relative; }
.input-at span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-weight: 600; }
.input-at .field { padding-left: 32px; }

.choice { border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; transition: border-color .12s, box-shadow .12s; }
.choice:hover:not(:disabled) { border-color: #7FA3AD; }
.choice[aria-pressed="true"] { border-color: var(--navy); background: var(--selected); box-shadow: 0 0 0 1px var(--navy); }
.choice:disabled { opacity: .55; }
.choice__title { font-weight: 800; font-size: 17px; }
.choice--row { width: 100%; margin-top: 10px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 52px; padding: 14px 18px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel__title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.panel + .panel { margin-top: 24px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card p + p, .card p + a, .card p + button { margin-top: 6px; }

.notice { margin-top: 16px; padding: 12px 14px; background: #FFF4DC; color: #6B4700; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.notice a { color: #6B4700; font-weight: 700; }

/* ---------- Start page ---------- */

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }

.hero { padding-top: 72px; padding-bottom: 40px; text-align: center; }
.hero__title { font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.hero__lead { margin: 16px auto 0; max-width: 580px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.hero .audit-start { margin: 36px auto 0; max-width: 560px; text-align: left; }
.hero__links { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; font-size: 15px; font-weight: 600; }
.hero__links .linklike { text-decoration: underline; font-size: 15px; min-height: 0; }

.section { padding-top: 48px; padding-bottom: 48px; }
.section-kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 16px; }

.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps-grid .card { padding: 24px; }
.steps-grid h3 { margin: 14px 0 6px; font-size: 17px; }
.steps-grid p { color: var(--muted); }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: #E3EEF1; color: var(--navy); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step-num--accent { background: var(--amber); color: var(--ink); }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .section { padding-top: 56px; padding-bottom: 56px; }
.band__title { font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.band__lead { margin: 10px 0 28px; max-width: 640px; font-size: 17px; color: var(--muted); }

.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.offer { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.offer--featured { border-color: var(--navy); }
.offer h3 { font-size: 20px; font-weight: 800; }
.offer__tag { font-weight: 700; color: var(--teal); }
.offer ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.6; }
.offer a { margin-top: auto; font-weight: 700; }

/* ---------- Dashboard ---------- */

.dash { padding-top: 40px; padding-bottom: 8px; }
.page-title { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.page-title--sm { font-size: 24px; letter-spacing: -0.01em; margin-bottom: 6px; }
.page-lead { margin: 8px 0 24px; font-size: 17px; color: var(--muted); }

.panel--split { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.panel--split .audit-start { flex: 999 1 420px; min-width: 0; }
.whatyouget { flex: 1 1 260px; min-width: 0; background: var(--ground); border-radius: 14px; padding: 20px; }
.whatyouget ul { margin: 10px 0 14px; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }

#dash-audits { margin-top: 32px; }
#audits-more { margin-top: 12px; }

.audit-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.audit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.audit__main { padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.audit__who { flex: 1 1 220px; min-width: 0; }
.audit__name { font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }
.audit__meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.audit__stats { flex: 2 1 320px; min-width: 0; }
.audit__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.audit__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.audit__cleanup { background: var(--amber-soft); border-top: 1px solid var(--amber-line); padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.audit__cleanup p { flex: 1 1 320px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.stat { font-size: 14px; color: var(--muted); }
.stat strong { display: block; font-size: 24px; letter-spacing: -0.02em; }
.stat--good strong { color: var(--success); }
.stat--dormant strong { color: var(--dormant-text); }
.stat--suspicious strong { color: var(--suspicious-text); }

.bar { margin-top: 10px; height: 10px; border-radius: 999px; background: var(--line-soft); overflow: hidden; display: flex; }
.bar span { height: 100%; }
.bar .good { background: var(--good); }
.bar .dormant { background: var(--dormant); }
.bar .suspicious { background: var(--suspicious); }
.bar--thin { margin-top: 0; height: 8px; flex: 1 1 auto; }
.bar-legend { font-size: 13px; color: var(--muted); margin-top: 6px; }

.status { display: inline-block; font-size: 13px; font-weight: 800; border-radius: 999px; padding: 4px 12px; background: #FFF4DC; color: #6B4700; }
.status--active { background: #E3EEF1; color: var(--navy); }

.mini-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.thanks { margin-top: 24px; display: flex; gap: 20px; align-items: flex-start; }
.thanks__icon { width: 52px; height: 52px; border-radius: 50%; background: #E2F2E9; color: var(--success); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.thanks__body { flex: 1 1 auto; min-width: 0; }
.thanks h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.thanks__body > p { color: var(--muted); font-size: 17px; }
.thanks__body .btn { margin-top: 16px; }


/* ---------- Top recent audits ---------- */

#top-audits { padding-bottom: 72px; }
.top-list { list-style: none; margin: 16px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.top-list li { padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; position: relative; }
.top-list li + li { border-top: 1px solid var(--line-soft); }
.top-list .rank { width: 24px; font-weight: 800; color: var(--faint); }
.top-list .who { flex: 1 1 200px; min-width: 0; }
.top-list .blurred { font-weight: 800; filter: blur(5px); user-select: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-list .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.top-list .score { flex: 2 1 260px; min-width: 0; display: flex; align-items: center; gap: 12px; }
.top-list .score strong { color: var(--success); min-width: 92px; }
.top-list .view { font-size: 14px; font-weight: 600; }
.top-list .empty { color: var(--muted); }

/* ---------- Checkout ---------- */

.checkout { padding-top: 24px; padding-bottom: 64px; }

.stepper { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.stepper li { display: flex; align-items: center; gap: 12px; }
.stepper li + li::before { content: ''; width: 28px; height: 2px; background: var(--field-line); }
.stepper button { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--faint); }
.stepper .num { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--line-soft); color: var(--muted); }
.stepper .is-current button { color: var(--ink); }
.stepper .is-current .num { background: var(--navy); color: #FFFFFF; }
.stepper .is-done button { color: var(--success); text-decoration: underline; text-underline-offset: 3px; }
.stepper .is-done .num { background: var(--success); color: #FFFFFF; }

.checkout__layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.checkout__main { flex: 999 1 560px; min-width: 0; }
.checkout__main > div > * + * { margin-top: 24px; }
.checkout__main .back-link { margin-top: 12px; }

.account-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 24px; }
.account-card__body { flex: 1 1 200px; min-width: 0; }
.account-card__name { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; margin-top: 2px; }
.account-card__list { margin: 6px 0 0; padding-left: 20px; font-weight: 700; }

.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 20px; }
.pkg { padding: 14px 16px; }
.pkg__amount { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.pkg__price { font-size: 18px; font-weight: 700; color: var(--teal); }

.custom-amount { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.custom-amount > div { flex: 1 1 220px; }
.custom-amount__price { font-weight: 700; font-size: 18px; color: var(--navy); margin-bottom: 12px; }

.two-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }

.details-form { display: flex; flex-direction: column; gap: 16px; max-width: 440px; margin-top: 20px; }

#pay-button { margin-top: 20px; }
#pay-hint { margin-top: 10px; }

.summary { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.summary__title { font-size: 17px; font-weight: 800; }
.summary__rows { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; font-size: 15px; }
.summary__rows dt { color: var(--muted); }
.summary__rows dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.summary__rows .is-discount { color: var(--success); }
.summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-weight: 800; font-size: 17px; }
#sum-total { font-size: 28px; letter-spacing: -0.02em; color: var(--navy); }
.summary__suffix { font-size: 15px; color: var(--muted); }
.summary__eta { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.summary__eta svg { flex: 0 0 auto; margin-top: 3px; }
.summary__why { margin-top: -8px; padding-left: 24px; }
.summary__whytext { margin-top: 4px; font-size: 14px; color: var(--muted); background: var(--ground); border-radius: 10px; padding: 10px 12px; }
.summary__note { font-size: 14px; color: var(--muted); background: var(--amber-soft); border-radius: 10px; padding: 10px 12px; }
.summary__note strong { color: var(--ink); }
.summary__code { border-top: 1px solid var(--line-soft); padding-top: 8px; }
.summary__code #code-form { margin-top: 6px; }
.code-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--success); font-weight: 700; }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
    .hero { padding-top: 40px; }
    .hero__title { font-size: 32px; }
    .hero__lead { font-size: 16px; }
    .band__title { font-size: 26px; }
    .page-title { font-size: 26px; }
    .panel { padding: 20px; }
    .input-row .btn { flex: 1 1 100%; }
    .input-row--tight .btn { flex: 0 0 auto; }
    .audit__main, .audit__cleanup { padding-left: 20px; padding-right: 20px; }
    .thanks { flex-direction: column; }
}
.thanks--top { margin-top: 0; margin-bottom: 24px; }

/* ---------- Shared page parts (cleanup, contact, settings, login, sign up, password, quote) ---------- */

.page { padding-top: 48px; padding-bottom: 72px; }
.page-head { max-width: 680px; margin-bottom: 28px; }
.page-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.page-head .page-lead { margin-bottom: 0; }

.form-card { max-width: 480px; margin: 0 auto; }
.form-card--wide { max-width: 640px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-stack .btn { align-self: flex-start; }
.form-card__foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 15px; }
.field-hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.label .optional { font-weight: 500; color: var(--muted); }

.notice--success { background: #E2F2E9; color: var(--success); }
.notice--error { background: #FBE9E7; color: var(--error); }
.notice + .notice { margin-top: 8px; }
.form-stack > .notice:first-child { margin-top: 0; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: 0 0 auto; }

.prose { max-width: 720px; color: var(--muted); font-size: 17px; }
.prose p + p { margin-top: 12px; }
.prose strong { color: var(--ink); }

.benefit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.benefit-grid h3 { font-size: 17px; margin-bottom: 6px; }
.benefit-grid p { color: var(--muted); }

.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.split > * { flex: 1 1 340px; min-width: 0; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.shots figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.shots img { display: block; width: 100%; height: auto; border-radius: 8px; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.price-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.price-card--featured { border-color: var(--navy); }
.price-card h3 { font-size: 20px; font-weight: 800; }
.price-card__price { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); line-height: 1.1; }
.price-card__price small { display: block; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.price-card ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-card__note { font-size: 14px; color: var(--muted); }

.cta-band { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.cta-band p { font-size: 17px; }

.done-panel { text-align: center; }
.done-panel .thanks__icon { margin: 0 auto 16px; }
.done-panel h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.done-panel p { color: var(--muted); }
.done-panel .btn { margin-top: 20px; }

/* Radio choices shown as cards (quote type) */
.choice-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-set .two-grid { margin-top: 0; }
.choice--radio { flex-direction: row; align-items: flex-start; gap: 12px; cursor: pointer; }
.choice--radio > span { display: flex; flex-direction: column; gap: 4px; }
.choice--radio input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: 0 0 auto; }
.choice--radio:has(input:checked) { border-color: var(--navy); background: var(--selected); box-shadow: 0 0 0 1px var(--navy); }
.choice--radio:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Loading spinner (ordersuccessaudit.php) */
.spinner { width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%; border: 4px solid var(--line-soft); border-top-color: var(--navy); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }

/* ---------- Homepage (home.php) ---------- */

.home-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.home-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-top: 64px; padding-bottom: 64px; }
.home-hero__text { flex: 1 1 460px; min-width: 0; }
.home-hero__lead { margin-top: 16px; max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.home-start { margin-top: 32px; max-width: 560px; }
.home-hero__links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; font-weight: 600; }

.home-sample { flex: 1 1 380px; min-width: 0; max-width: 520px; margin: 0 auto; box-shadow: 0 12px 32px rgba(0, 59, 75, .10); }
.home-sample__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.home-sample .result { flex: none; }
.home-sample__link { display: inline-block; margin-top: 20px; font-weight: 700; }

.home-press { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; padding-top: 28px; padding-bottom: 8px; text-align: center; }
.home-press__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.home-press__item { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; color: var(--ink); text-decoration: none; font-weight: 600; }
.home-press__item:hover { color: var(--teal); text-decoration: underline; }
.home-press__logo { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 22px; letter-spacing: .12em; border: 2px solid currentColor; padding: 0 6px; line-height: 1.25; }

.home-why { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.home-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px 32px; }
.home-features li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.home-features svg { flex: 0 0 auto; color: var(--good); margin-top: 2px; }
.home-features strong { display: block; color: var(--ink); font-size: 16px; }
.home-band__cta { margin-top: 28px; }

.home-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.home-plans .price-card { padding: 24px; }
.home-larger { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.home-larger div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.home-larger dt { color: var(--muted); }
.home-larger dd { margin: 0; font-weight: 800; color: var(--navy); }
.home-plans__note { margin-top: 20px; }

.page-home .steps-grid + .cta-band { margin-top: 32px; }

.home-blog__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.home-blog__head a { font-weight: 700; }

@media (max-width: 640px) {
    .home-hero__inner { padding-top: 40px; padding-bottom: 40px; }
    .home-hero__lead { font-size: 16px; }
    .home-sample .result { justify-content: center; }
}

/* ---------- Blog (blog.php, post.php, and the list on home.php) ---------- */

.post-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post-cards .card { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.post-cards h2, .post-cards h3 { font-size: 18px; line-height: 1.35; }
.post-cards h2 a, .post-cards h3 a { color: var(--ink); text-decoration: none; }
.post-cards h2 a:hover, .post-cards h3 a:hover { color: var(--teal); text-decoration: underline; }
.page-blog .post-cards + .cta-band { margin-top: 32px; }

.post-links__title { margin: 32px 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 32px; }
.post-links li { border-bottom: 1px solid var(--line-soft); }
.post-links a { display: flex; align-items: center; min-height: 48px; padding: 8px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.post-links a:hover { color: var(--teal); text-decoration: underline; }

/* One article */
.post { max-width: 760px; padding-top: 32px; padding-bottom: 64px; }
.post__back { margin-bottom: 8px; padding-left: 0; }
.post__title { font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.post__image { display: block; width: 100%; height: auto; margin-top: 28px; border-radius: var(--radius); background: var(--line-soft); }
.post__body { margin-top: 28px; font-size: 18px; line-height: 1.7; color: #26343B; overflow-wrap: break-word; }
.post__body > * + * { margin-top: 18px; }
.post__body h2 { margin-top: 44px; font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.post__body h3 { margin-top: 36px; font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.post__body h4 { margin-top: 28px; font-size: 18px; line-height: 1.4; font-weight: 800; color: var(--ink); }
.post__body h2 + *, .post__body h3 + *, .post__body h4 + * { margin-top: 10px; }
.post__body ul, .post__body ol { margin-bottom: 0; padding-left: 26px; }
.post__body li + li { margin-top: 6px; }
.post__body strong { color: var(--ink); }
.post__body a { font-weight: 600; text-underline-offset: 2px; }
.post__body img { max-width: 100%; height: auto; vertical-align: middle; }
.post__body blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--amber); font-style: italic; color: var(--muted); }
.post__body blockquote > * + * { margin-top: 10px; }
.post__body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.post__body .table-scroll { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.post__body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.post__body th, .post__body td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.post__body thead th { background: var(--ground); font-size: 14px; color: var(--muted); }
.post__body tbody tr:last-child td { border-bottom: 0; }

/* Call-to-action boxes inside articles */
.post__body .post-cta { margin-top: 36px; margin-bottom: 36px; background: var(--navy); color: #D5E0E3; border-radius: var(--radius); padding: 28px 28px 30px; text-align: center; }
.post__body .post-cta > * + * { margin-top: 12px; }
.post__body .post-cta h2, .post__body .post-cta h3 { margin-top: 0; color: #FFFFFF; font-size: 22px; }
.post__body .post-cta strong { color: #FFFFFF; }
.post__body .post-cta a:not(.btn) { color: var(--amber); }
.post__body .post-cta__actions { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.post__body .post-cta .btn { background: var(--amber); color: var(--ink); font-weight: 800; white-space: normal; text-align: center; text-decoration: none; }
.post__body .post-cta .btn:hover { background: #F5C365; color: var(--ink); }

/* FAQ blocks */
.post__body .faq { display: flex; flex-direction: column; gap: 12px; }
.post__body .faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.post__body .faq__item p { margin-top: 6px; font-size: 17px; }
.post__body .faq__q { margin: 0; font-size: 17px; }

@media (max-width: 640px) {
    .post { padding-top: 20px; }
    .post__title { font-size: 30px; }
    .post__body { font-size: 17px; }
    .post__body h2 { font-size: 24px; }
    .post__body h3 { font-size: 20px; }
    .post__body .post-cta { padding: 22px 18px 24px; }
}

/* ---------- Audit report (viewaudit.php) ---------- */

.report { padding-top: 40px; padding-bottom: 72px; }
.report-loading { padding: 96px 0; text-align: center; }
.report-error { max-width: 640px; margin: 48px auto 0; }
.report-error p { margin-top: 8px; }
.report-error__actions { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.report-error__actions .btn { margin-top: 0; }

.report-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.report-head__text { flex: 1 1 480px; min-width: 0; }
.report-head .page-title { overflow-wrap: anywhere; }
.report-name { color: var(--teal); display: inline-block; }
.report-meta { margin-top: 8px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.report-notice { margin: 0 0 24px; }

.is-blurred { filter: blur(6px); user-select: none; }
.is-blurred-heavy { filter: blur(22px); user-select: none; }

/* Summary: profile and result */
.report-summary { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; }
.profile-card { flex: 1 1 340px; min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: start; }
.profile-card__pic img { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--line-soft); }
.profile-card__body { min-width: 0; }
.profile-card__name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.profile-card__name a { color: var(--ink); text-decoration: none; display: inline-block; }
.profile-card__name a[href]:hover { color: var(--teal); text-decoration: underline; }
.profile-card__line { margin-top: 4px; font-size: 15px; overflow-wrap: anywhere; }
.profile-card__line a { display: inline-block; }
.profile-card__bio { margin-top: 6px; font-size: 15px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; max-height: 9em; overflow: hidden; }
.profile-counts { grid-column: 1 / -1; margin: 4px 0 0; display: flex; gap: 8px; }
.profile-counts div { flex: 1 1 0; background: var(--ground); border-radius: 12px; padding: 10px 12px; text-align: center; }
.profile-counts dt { font-size: 13px; color: var(--muted); }
.profile-counts dd { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }

.result { flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.result__chart { position: relative; width: 180px; height: 180px; flex: 0 0 auto; }
.donut svg { display: block; width: 180px; height: 180px; }
.donut__track { fill: none; stroke: var(--line-soft); stroke-width: 22; }
.donut__seg { fill: none; stroke-width: 22; }
.donut__seg--good { stroke: var(--good); }
.donut__seg--dormant { stroke: var(--dormant); }
.donut__seg--somewhat { stroke: var(--somewhat); }
.donut__seg--suspicious { stroke: var(--suspicious); }
.donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.grade { font-size: 52px; line-height: 1; font-weight: 800; color: var(--navy); }
.grade--a, .grade--b { color: var(--success); }
.grade--c, .grade--d { color: var(--dormant-text); }
.grade--e, .grade--f { color: var(--suspicious-text); }
.donut__label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.result__body { flex: 1 1 220px; min-width: 0; }
.result__headline { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.result__headline strong { font-size: 28px; letter-spacing: -0.02em; color: var(--success); }
.result__scale { margin-top: 12px; font-size: 13px; color: var(--muted); }

.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.legend__label { flex: 1 1 auto; color: var(--muted); }
.legend strong { font-size: 17px; }

.swatch { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; display: inline-block; }
.swatch--good { background: var(--good); }
.swatch--dormant { background: var(--dormant); }
.swatch--somewhat { background: var(--somewhat); }
.swatch--suspicious { background: var(--suspicious); }
.swatch--navy { background: var(--navy); }
.swatch--teal { background: var(--teal); }
.swatch--avg { background: var(--avg); }
.swatch--male { background: var(--male); }
.swatch--female { background: var(--female); }

.report-cleanup { margin-top: 16px; background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: var(--radius); padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.report-cleanup p { flex: 1 1 320px; }

/* Sections */
.report-section { margin-top: 48px; }
.report-section__head { max-width: 760px; margin-bottom: 16px; }
.report-section__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.report-section__title--sm { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 12px; }
.report-section__lead { margin-top: 6px; color: var(--muted); }
.report-stack > * + * { margin-top: 16px; }
.report-two { margin-top: 16px; }
.report-two .panel + .panel { margin-top: 0; }

.chart-title { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.chart-sub { margin: -6px 0 12px; font-size: 14px; color: var(--muted); }
.chart-caption { margin-top: 10px; font-size: 13px; color: var(--muted); }
#r-locations-panel > :not([hidden]) ~ :not([hidden]) { margin-top: 24px; }

.split-panel { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.split-panel > * { flex: 1 1 340px; min-width: 0; }

/* Warning sign cards */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--good); border-radius: 14px; padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.metric--warn { border-top-color: var(--dormant); }
.metric--bad { border-top-color: var(--suspicious); }
.metric__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }
.metric__title { font-size: 16px; font-weight: 800; line-height: 1.3; }
.metric__bars { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mbar { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; }
.mbar__label { font-size: 13px; color: var(--muted); }
.mbar__value { margin: 0; display: flex; align-items: center; gap: 10px; }
.mbar__value strong { min-width: 44px; text-align: right; font-size: 17px; }
.mbar__track { flex: 1 1 auto; height: 10px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.mbar__fill { display: block; height: 100%; border-radius: 999px; }
.mbar__fill--good { background: var(--good); }
.mbar__fill--warn { background: var(--dormant); }
.mbar__fill--bad { background: var(--suspicious); }
.mbar__fill--avg { background: var(--avg); }
.metric__note { font-size: 14px; color: var(--muted); line-height: 1.45; }

.chip { display: inline-block; flex: 0 0 auto; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.chip--good { background: #E2F2E9; color: var(--success); }
.chip--warn { background: #FFF4DC; color: #6B4700; }
.chip--bad { background: #FBE9E7; color: var(--suspicious-text); }

/* Horizontal bars */
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hbars__row { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 48px; align-items: center; gap: 12px; font-size: 15px; }
.hbars__label { overflow-wrap: anywhere; }
.hbars__track { height: 14px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.hbars__fill { display: block; height: 100%; border-radius: 999px; }
.hbars__fill--navy { background: var(--navy); }
.hbars__fill--good { background: var(--good); }
.hbars__fill--dormant { background: var(--dormant); }
.hbars__fill--dormant-strong { background: var(--dormant-strong); }
.hbars__value { text-align: right; font-weight: 700; }

/* Column charts */
.cols__area { position: relative; height: 220px; margin-left: 44px; }
.cols--compact .cols__area { height: 180px; }
.cols__grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.cols__line { border-top: 1px solid var(--line-soft); position: relative; height: 0; }
.cols__line span { position: absolute; right: 100%; top: -9px; margin-right: 8px; font-size: 12px; color: var(--faint); white-space: nowrap; }
.cols__plot { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 4px; }
.cols__group { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; min-width: 0; }
.cols__bar { flex: 1 1 0; max-width: 28px; border-radius: 4px 4px 0 0; }
.cols__bar--navy { background: var(--navy); }
.cols__bar--teal { background: var(--teal); }
.cols__bar--avg { background: var(--avg); }
.cols__x { margin-left: 44px; display: flex; gap: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.cols__x span { flex: 1 1 0; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }

.chart-legend { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.chart-legend li { display: flex; align-items: center; gap: 8px; }
.chart-legend strong { color: var(--ink); }

.split-bar { height: 18px; border-radius: 999px; overflow: hidden; display: flex; background: var(--line-soft); margin-bottom: 12px; }
.split-bar span { height: 100%; }
.split-bar__a { background: var(--male); }
.split-bar__b { background: var(--female); }

/* Tiles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
#r-engagement-block:not([hidden]) + .tile-grid { margin-top: 24px; }
.tile { background: var(--ground); border-radius: 12px; padding: 14px 16px; }
.tile__label { font-size: 14px; font-weight: 700; }
.tile__value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.tile__value.is-good { color: var(--success); }
.tile__value.is-bad { color: var(--suspicious-text); }
.tile__note { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Lists and tables */
.rank-list { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.rank-list li { padding-left: 4px; }
.rank-list a { font-weight: 600; overflow-wrap: anywhere; }
.rank-list__count { color: var(--muted); font-size: 14px; margin-left: 8px; }

.cloud__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cloud__list .chip { flex: 0 1 auto; max-width: 100%; font-size: 14px; font-weight: 600; background: var(--ground); color: var(--ink); padding: 4px 12px; white-space: normal; }
.cloud__list .chip--strong { background: #E3EEF1; color: var(--navy); font-weight: 800; }
.chip__count { margin-left: 6px; font-weight: 600; color: var(--muted); }

/* Word clouds (jQCloud places each word absolutely inside the box) */
.wordcloud { position: relative; overflow: hidden; height: 340px; line-height: normal; margin-bottom: 16px; }
.wordcloud--short { height: 240px; }
.wordcloud .jqcloud-word { margin: 0; padding: 0; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.wordcloud .jqcloud-word.w8, .wordcloud .jqcloud-word.w9, .wordcloud .jqcloud-word.w10 { font-weight: 800; }
.cloud-caption { margin: 0 0 10px; }

.report-map { height: 460px; border-radius: 12px; overflow: hidden; background: var(--line-soft); }
.report-map__error { padding: 24px; color: var(--muted); }

.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); text-align: right; }
.compare-table thead th { font-size: 13px; color: var(--muted); font-weight: 700; }
.compare-table tbody th { text-align: left; font-weight: 600; }
.compare-table td:nth-child(2) { font-weight: 800; }
.compare-table td:nth-child(3) { color: var(--muted); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }

.panel--flush { padding: 0; overflow: hidden; }
.panel__foot { padding: 12px 20px; border-top: 1px solid var(--line-soft); }
.panel__foot:has(> [hidden]:only-child) { display: none; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { padding: 10px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.data-table thead th { font-size: 13px; color: var(--muted); background: var(--ground); }
.data-table .num { text-align: right; }
.data-table td.is-good { color: var(--success); font-weight: 600; }
.data-table tbody tr:last-child td { border-bottom: 0; }

.popular__body { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.popular__body > p.muted:only-child { align-self: flex-start; }
.popular__embed { width: 100%; max-width: 540px; }
.popular__embed .instagram-media { margin: 0 auto !important; }
.popular__placeholder { width: 100%; max-width: 360px; height: auto; border-radius: 12px; }

.report-glossary { padding-top: 32px; border-top: 1px solid var(--line); }
.glossary { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; }
.glossary dt { font-weight: 800; }
.glossary dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

@media (max-width: 640px) {
    .report { padding-top: 28px; }
    .report-section { margin-top: 40px; }
    .report-section__title { font-size: 22px; }
    .profile-card__pic img { width: 72px; height: 72px; }
    .result { justify-content: center; }
    .hbars__row { grid-template-columns: minmax(96px, 38%) 1fr 44px; gap: 8px; font-size: 14px; }
    .mbar { grid-template-columns: 84px 1fr; }
    .cols__area, .cols__x { margin-left: 36px; }
    .cols__plot, .cols__x { gap: 2px; }
    .data-table th, .data-table td { padding: 10px 14px; }
    .wordcloud { height: 280px; }
    .wordcloud--short { height: 200px; }
    .report-map { height: 340px; }
}

/* The PDF page (?pdf=1, turned into a PDF by sejda.com) and printing */
.is-ploxia .site-header, .is-ploxia .site-footer { display: none; }
.is-pdf .site-footer a { display: none; }
.is-pdf .only-screen { display: none !important; }
.is-pdf .report { padding-top: 24px; padding-bottom: 24px; }
.is-pdf .panel, .is-pdf .metric, .is-pdf .tile, .is-pdf .report-section__head { break-inside: avoid; page-break-inside: avoid; }

@media print {
    body { background: #FFFFFF; }
    .site-nav, .menu-toggle, .only-screen { display: none !important; }
    .panel, .metric, .tile, .report-section__head { break-inside: avoid; page-break-inside: avoid; }
}
