:root {
    --emerald: #0f3b2e;
    --emerald-soft: #194d3d;
    --gold: #d4af37;
    --cream: #fbf8ee;
    --sage: #dce7df;
    --mist: #f4f0e6;
    --coral: #c4978e;
    --ink: #2e2e2e;
    --muted: #66645d;
    --white: #ffffff;
    --danger: #a63232;
    --line: rgba(15, 59, 46, 0.14);
    --shadow: 0 18px 45px rgba(15, 59, 46, 0.12);
    --max: 1180px;
}

body.theme-logo-green {
    --emerald: #062e24;
    --emerald-soft: #10483a;
    --gold: #d6a63a;
    --cream: #f7f1df;
    --sage: #dce8df;
    --mist: #efe7d6;
    --coral: #b98a62;
    --ink: #27302c;
    --muted: #666255;
    --line: rgba(6, 46, 36, 0.16);
    --shadow: 0 18px 45px rgba(6, 46, 36, 0.14);
}

body.theme-mineral-blue {
    --emerald: #243746;
    --emerald-soft: #34566a;
    --gold: #b98b54;
    --cream: #f6f3ea;
    --sage: #dde8e8;
    --mist: #ece7dc;
    --coral: #9f7664;
    --ink: #28313a;
    --muted: #62656a;
    --line: rgba(36, 55, 70, 0.15);
    --shadow: 0 18px 45px rgba(36, 55, 70, 0.12);
}

body.theme-soft-earth {
    --emerald: #3f3430;
    --emerald-soft: #5a4840;
    --gold: #b7774b;
    --cream: #f8f1e8;
    --sage: #e5e0d3;
    --mist: #efe5d9;
    --coral: #9d6f63;
    --ink: #302b28;
    --muted: #6d625b;
    --line: rgba(63, 52, 48, 0.14);
    --shadow: 0 18px 45px rgba(63, 52, 48, 0.12);
}
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Lato, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 22px;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(251, 248, 238, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--emerald);
    text-decoration: none;
    min-width: 210px;
}

.brand-mark {
    display: inline-grid;
    width: 66px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: var(--emerald);
    color: var(--gold);
    border-radius: 8px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 0.96rem;
    line-height: 1.2;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
}

.main-nav a {
    padding: 8px 4px;
    color: var(--emerald);
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
    border-color: var(--gold);
}

.phone-link {
    flex: 0 0 auto;
    padding: 9px 12px;
    color: var(--emerald);
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 8px;
    background: var(--white);
}

main {
    overflow: hidden;
}

.hero,
.section,
.site-footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 78px 28px;
    scroll-margin-top: 96px;
}

.hero {
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.8fr);
    gap: 58px;
    align-items: center;
}

.hero-copy h1,
.page-hero h1,
.split h1,
.quiz-section h1,
.resources h1,
.article-page h1,
.appointment h1,
.section h2,
.admin-panel h1 {
    margin: 0;
    color: var(--emerald);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    line-height: 1.08;
}

.hero-copy h1 {
    max-width: 780px;
    font-size: 4rem;
}

.hero-brand-logo {
    width: min(100%, 520px);
    margin: 24px 0 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.page-hero h1,
.split h1,
.quiz-section h1,
.resources h1,
.article-page h1,
.appointment h1 {
    max-width: 840px;
    font-size: 3.25rem;
}

.subtitle {
    margin: 18px 0 0;
    color: var(--gold);
    font-size: 1.35rem;
    font-weight: 800;
}

.kicker {
    margin: 0 0 12px;
    color: var(--coral);
    font-size: 0.83rem;
    font-weight: 900;
    text-transform: uppercase;
}

.intro-text {
    max-width: 700px;
    margin-top: 24px;
    font-size: 1.08rem;
}

.rich-text p {
    margin: 0 0 14px;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.hero-actions,
.section-actions,
.appointment-actions,
.admin-top-actions,
.admin-actions,
.inline-forms {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-actions {
    margin-top: 30px;
}

.section-actions {
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
}

.button.primary {
    color: var(--white);
    background: var(--emerald);
    box-shadow: 0 12px 26px rgba(15, 59, 46, 0.2);
}

.button.secondary {
    color: var(--emerald);
    background: var(--white);
    border-color: var(--gold);
}

.button.ghost {
    color: var(--emerald);
    background: transparent;
    border-color: var(--line);
}

.button.danger {
    color: var(--white);
    background: var(--danger);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.hero-visual {
    display: grid;
    gap: 18px;
    place-items: center;
}

.balance-visual {
    width: min(100%, 420px);
    min-height: 420px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 14px;
    padding: 42px;
    border: 1px solid rgba(212, 175, 55, 0.44);
    border-radius: 8px;
    background: var(--emerald);
    color: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
}

.balance-visual img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    margin-bottom: 6px;
}

.balance-visual strong {
    color: var(--gold);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.2;
}

.balance-visual span {
    width: min(100%, 230px);
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 900;
}

.hero-note {
    width: min(100%, 420px);
    padding: 16px;
    color: var(--emerald);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-note strong,
.hero-note span {
    display: block;
}

.hero-note span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.92rem;
}

.split,
.about,
.appointment {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
    gap: 50px;
    align-items: center;
}

.section h2 {
    max-width: 760px;
    font-size: 2.6rem;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.section-heading .rich-text {
    margin-top: 16px;
}

.about {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-image {
    width: min(100%, 340px);
    justify-self: center;
}

.about-image img {
    border-radius: 50%;
    border: 8px solid var(--cream);
    box-shadow: var(--shadow);
}

.approach-band {
    max-width: none;
    background: var(--emerald);
    color: var(--white);
}

.approach-band > * {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.approach-band h2 {
    color: var(--white);
}

.approach-band .kicker {
    color: var(--gold);
}

.steps,
.domain-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.steps article,
.domain-card,
.post-card,
.lead-box,
.edit-card,
.stats-grid article,
.admin-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.steps article {
    padding: 24px;
    color: var(--ink);
}

.steps span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--emerald);
    font-weight: 900;
}

.steps h3,
.domain-card h3,
.post-card h3,
.lead-box h3,
.quiz-result h3 {
    margin: 0 0 8px;
    color: var(--emerald);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
}

.steps p,
.domain-card p,
.post-card p,
.lead-box p {
    margin: 0;
}

.domain-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.domain-card {
    min-height: 210px;
    padding: 24px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.domain-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.domain-card img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-bottom: 18px;
}

.quiz-section,
.resources {
    border-top: 1px solid var(--line);
}

.quiz-section[hidden] {
    display: none;
}

.quiz-form,
.lead-box form,
.admin-form,
.login-card {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 16px;
}

.form-row.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.three {
    grid-template-columns: 1fr 1fr 130px;
}

label span,
.field-group > span,
.question p {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(15, 59, 46, 0.22);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    padding: 12px 13px;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(212, 175, 55, 0.28);
    border-color: var(--gold);
}

.question {
    margin: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.question legend {
    padding: 0 6px;
    color: var(--emerald);
    font-weight: 900;
}

.choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.choices label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
    cursor: pointer;
}

.choices input {
    width: auto;
}

.quiz-result {
    margin-top: 24px;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
}

.quiz-result.success {
    border-left: 5px solid var(--gold);
}

.quiz-result.error {
    border-left: 5px solid var(--danger);
}

.resource-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.posts-list,
.admin-list {
    display: grid;
    gap: 16px;
}

.post-card,
.lead-box {
    padding: 24px;
}

.post-card time {
    color: var(--coral);
    font-weight: 900;
    font-size: 0.84rem;
}

.post-card h2 {
    margin: 6px 0 8px;
    color: var(--emerald);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.2;
}

details summary {
    cursor: pointer;
    color: var(--emerald);
    font-weight: 900;
}

details .rich-text {
    margin-top: 12px;
}

.lead-box {
    background: var(--emerald);
    color: var(--white);
}

.lead-box h3 {
    color: var(--gold);
}

.lead-box img {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
}

.lead-box input {
    background: var(--cream);
}

.lead-box label span,
.lead-box small {
    color: rgba(255, 255, 255, 0.82);
}

.appointment {
    margin-bottom: 28px;
    background: var(--sage);
}

.appointment-actions {
    justify-content: flex-start;
}

.appointment-page {
    min-height: 520px;
}

.article-page {
    max-width: 860px;
}

.article-page time {
    display: block;
    margin: 20px 0 10px;
    color: var(--coral);
    font-weight: 900;
}

.article-excerpt {
    margin: 18px 0 30px;
    color: var(--muted);
    font-size: 1.15rem;
    font-weight: 800;
}

.article-content {
    font-size: 1.08rem;
}

.article-content h2,
.article-content h3 {
    margin: 32px 0 12px;
    color: var(--emerald);
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.2;
}

.article-content h2 {
    font-size: 2rem;
}

.article-content h3 {
    font-size: 1.55rem;
}

.article-content ul,
.article-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.article-content blockquote {
    margin: 26px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--gold);
    background: var(--white);
    color: var(--emerald);
    font-weight: 800;
}

.article-content a,
.back-link,
.admin-post-link {
    color: var(--emerald);
    font-weight: 900;
}

.back-link,
.admin-post-link {
    display: inline-flex;
    margin-top: 10px;
    text-decoration: none;
}

.contact-line {
    color: var(--emerald);
    font-weight: 900;
    text-decoration: none;
}

.site-footer {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr auto;
    gap: 24px;
    align-items: start;
    padding-top: 34px;
    padding-bottom: 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer strong {
    color: var(--emerald);
}

.site-footer a {
    color: var(--emerald);
    font-weight: 900;
    text-decoration: none;
}

.public-alert,
.admin-alert {
    max-width: var(--max);
    margin: 18px auto 0;
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--sage);
    color: var(--emerald);
    border: 1px solid var(--line);
}

.public-alert.error,
.admin-alert.error {
    background: #fff1ef;
    color: var(--danger);
}

.admin-body {
    background: #f6f2e8;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(100%, 430px);
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.login-card h1 {
    margin: 0;
    color: var(--emerald);
    font-family: "Playfair Display", Georgia, serif;
}

.login-hint,
.admin-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.section-location {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    background: var(--cream);
    color: var(--muted);
    font-size: 0.92rem;
}

.section-location strong {
    display: block;
    color: var(--emerald);
}

.admin-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    max-width: 1460px;
    margin: 0 auto;
    padding: 24px;
}

.admin-sidebar {
    position: sticky;
    top: 88px;
    height: max-content;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.admin-sidebar a {
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--emerald);
    text-decoration: none;
    font-weight: 900;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    background: var(--emerald);
    color: var(--white);
}

.admin-main {
    min-width: 0;
}

.admin-panel {
    padding: 26px;
    box-shadow: none;
}

.admin-panel h1 {
    margin-bottom: 22px;
    font-size: 2rem;
}

.admin-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-title-row h1 {
    margin-bottom: 0;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid article {
    padding: 22px;
}

.stats-grid strong {
    display: block;
    color: var(--emerald);
    font-size: 2.2rem;
    line-height: 1;
}

.stats-grid span {
    color: var(--muted);
    font-weight: 800;
}

.dashboard-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}

.dashboard-controls label {
    width: min(100%, 260px);
}

.analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
    margin-top: 18px;
}

.analytics-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.analytics-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.analytics-title-row h2 {
    margin: 0;
    color: var(--emerald);
    font-size: 1.2rem;
}

.analytics-title-row span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 900;
}

.world-map {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    background:
        radial-gradient(circle at 22% 32%, rgba(220, 231, 223, 0.95) 0 8%, transparent 9%),
        radial-gradient(circle at 47% 34%, rgba(220, 231, 223, 0.9) 0 10%, transparent 11%),
        radial-gradient(circle at 56% 54%, rgba(220, 231, 223, 0.8) 0 7%, transparent 8%),
        radial-gradient(circle at 75% 45%, rgba(220, 231, 223, 0.9) 0 13%, transparent 14%),
        linear-gradient(180deg, #eff7f4 0%, #dbece8 100%);
}

.map-graticule {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 59, 46, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 59, 46, 0.08) 1px, transparent 1px);
    background-size: 10% 20%;
}

.map-dot {
    position: absolute;
    z-index: 2;
    display: block;
    min-width: 8px;
    min-height: 8px;
    padding: 0;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.18), 0 8px 18px rgba(15, 59, 46, 0.22);
    cursor: help;
    transform: translate(-50%, -50%);
}

.visit-chart {
    height: 360px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    padding: 18px 10px 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
}

.chart-bar {
    position: relative;
    min-height: 5%;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--gold), #b88d21);
}

.chart-bar span {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    color: var(--emerald);
    font-size: 0.78rem;
    font-weight: 900;
    transform: translateX(-50%);
}

.chart-bar small {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
    transform: translateX(-50%) rotate(-38deg);
    transform-origin: top center;
}

.edit-card {
    padding: 20px;
}

.admin-form.compact {
    gap: 12px;
}

.check-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--emerald);
    font-weight: 900;
}

.check-line input {
    width: auto;
}

.delete-form {
    margin-top: 12px;
}

.subheading {
    margin: 24px 0 12px;
    color: var(--emerald);
    font-size: 1.25rem;
}

.option-editor {
    display: grid;
    grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1.2fr) 110px;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
}

.wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(15, 59, 46, 0.22);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: var(--cream);
}

.wysiwyg-toolbar button {
    min-width: 38px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--emerald);
    cursor: pointer;
    font-weight: 900;
}

.wysiwyg-editor {
    min-height: 260px;
    padding: 16px;
    border: 1px solid rgba(15, 59, 46, 0.22);
    border-radius: 0 0 8px 8px;
    background: var(--white);
}

.wysiwyg-editor:focus {
    outline: 3px solid rgba(212, 175, 55, 0.28);
    border-color: var(--gold);
}

.wysiwyg-editor p,
.wysiwyg-editor ul,
.wysiwyg-editor ol,
.wysiwyg-editor blockquote {
    margin-top: 0;
}

.wysiwyg-source {
    display: none;
}

.inline-forms {
    margin-top: 14px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--emerald);
    background: var(--cream);
}

@media (max-width: 1060px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .phone-link {
        position: absolute;
        top: 14px;
        right: 20px;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .hero {
        min-height: 0;
        grid-template-columns: 1fr;
        padding-top: 56px;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .split,
    .about,
    .appointment,
    .resource-layout {
        grid-template-columns: 1fr;
    }

    .domain-grid,
    .steps,
    .stats-grid,
    .analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body {
        font-size: 15px;
    }

    .site-header,
    .admin-header {
        padding: 12px 16px;
    }

    .brand {
        min-width: 0;
        padding-right: 136px;
    }

    .brand small {
        display: none;
    }

    .phone-link {
        right: 16px;
        font-size: 0.86rem;
    }

    .main-nav {
        width: 100%;
        gap: 2px 10px;
    }

    .main-nav a {
        font-size: 0.84rem;
    }

    .hero,
    .section,
    .site-footer {
        padding: 52px 18px;
        scroll-margin-top: 150px;
    }

    .hero-copy h1 {
        font-size: 2.35rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .page-hero h1,
    .split h1,
    .quiz-section h1,
    .resources h1,
    .article-page h1,
    .appointment h1 {
        font-size: 2.2rem;
    }

    .domain-grid,
    .steps,
    .stats-grid,
    .analytics-grid,
    .choices,
    .form-row.two,
    .form-row.three,
    .option-editor,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .world-map,
    .visit-chart {
        min-height: 280px;
        height: 280px;
    }

    .visit-chart {
        gap: 6px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .chart-bar span,
    .chart-bar small {
        font-size: 0.68rem;
    }

    .admin-header,
    .admin-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-layout {
        padding: 16px;
    }

    .admin-sidebar {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        padding: 18px;
    }

    .admin-top-actions {
        width: 100%;
    }

    .admin-top-actions .button {
        flex: 1;
    }
}

/* Public redesign - Sarah VAE */
:root {
    --emerald: #0f3329;
    --emerald-soft: #21483d;
    --gold: #b9873d;
    --ochre: #b67834;
    --cream: #f6efe3;
    --linen: #f2eadc;
    --sage: #dfe9dd;
    --mist: #fbf7ef;
    --coral: #a96f58;
    --ink: #26302c;
    --muted: #6f6a60;
    --line: rgba(15, 51, 41, 0.16);
    --shadow: 0 18px 45px rgba(15, 51, 41, 0.10);
}

body.theme-logo-green {
    --emerald: #062e24;
    --emerald-soft: #10483a;
    --gold: #d6a63a;
    --cream: #f7f1df;
    --sage: #dce8df;
    --mist: #efe7d6;
    --coral: #b98a62;
    --ink: #27302c;
    --muted: #666255;
    --line: rgba(6, 46, 36, 0.16);
    --shadow: 0 18px 45px rgba(6, 46, 36, 0.14);
}

body.theme-mineral-blue {
    --emerald: #243746;
    --emerald-soft: #34566a;
    --gold: #b98b54;
    --cream: #f6f3ea;
    --sage: #dde8e8;
    --mist: #ece7dc;
    --coral: #9f7664;
    --ink: #28313a;
    --muted: #62656a;
    --line: rgba(36, 55, 70, 0.15);
    --shadow: 0 18px 45px rgba(36, 55, 70, 0.12);
}

body.theme-soft-earth {
    --emerald: #3f3430;
    --emerald-soft: #5a4840;
    --gold: #b7774b;
    --cream: #f8f1e8;
    --sage: #e5e0d3;
    --mist: #efe5d9;
    --coral: #9d6f63;
    --ink: #302b28;
    --muted: #6d625b;
    --line: rgba(63, 52, 48, 0.14);
    --shadow: 0 18px 45px rgba(63, 52, 48, 0.12);
}
body {
    background: linear-gradient(180deg, var(--linen) 0, var(--cream) 360px, #fffaf2 100%);
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

body::before,
body::after {
    content: "";
    display: block;
    height: 12px;
    background: var(--linen);
}

.site-header {
    justify-content: center;
    gap: 18px;
    padding: 12px 24px;
    background: rgba(242, 234, 220, 0.96);
}

.main-nav {
    width: min(100%, var(--max));
    display: grid;
    grid-template-columns: auto repeat(2, max-content) minmax(170px, 230px) repeat(3, max-content);
    justify-content: center;
    align-items: center;
    gap: 10px 18px;
}

.main-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 7px 4px;
    color: var(--emerald);
    font-size: 1.02rem;
    font-weight: 900;
    border-bottom: 2px solid transparent;
}

.main-nav .home-link {
    width: 38px;
    justify-content: center;
    font-size: 1.25rem;
}

.nav-icon {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(185, 135, 61, 0.35);
    border-radius: 50%;
    color: var(--ochre);
    font-size: 0.68rem;
    font-weight: 900;
}

.nav-brand {
    justify-self: center;
    min-width: 0;
    padding: 0;
    border: 0;
}

.nav-brand img {
    width: 220px;
    max-height: 70px;
    object-fit: contain;
}

.phone-link {
    position: absolute;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid rgba(185, 135, 61, 0.75);
    background: #fffaf2;
    box-shadow: 0 10px 24px rgba(15, 51, 41, 0.08);
}

.phone-link img,
.contact-line img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.hero,
.section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.home-hero {
    min-height: 650px;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.9fr);
}

.hero-copy h1,
.page-hero h1,
.split h1,
.about h1,
.quiz-section h1,
.resources h1,
.article-page h1,
.appointment h1,
.section h2 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.subtitle,
.kicker,
.post-card time {
    color: var(--ochre);
}

.profile-hero {
    align-content: center;
    justify-items: center;
}

.hero-profile-photo {
    width: min(100%, 330px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    border: 10px solid #fffaf2;
    box-shadow: var(--shadow);
}

.guidance-card {
    width: min(100%, 430px);
    margin-top: -28px;
    padding: 26px;
    border-radius: 8px;
    background: var(--emerald);
    color: #fff8ea;
    box-shadow: var(--shadow);
}

.guidance-card h2 {
    margin: 0 0 18px;
    color: #fff8ea;
    font-size: 1.45rem;
}

.guidance-card ul,
.benefit-list,
.faq-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guidance-card li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 248, 234, 0.18);
    font-weight: 800;
}

.guidance-card li:first-child {
    border-top: 0;
}

.guidance-card li span {
    color: var(--gold);
    font-size: 0.8rem;
}

.trust-section,
.soft-section,
.faq-section,
.benefits-section {
    max-width: none;
}

.trust-section > *,
.soft-section > *,
.faq-section > *,
.benefits-section > * {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.trust-section,
.benefits-section {
    background: #fffaf2;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.compact-heading {
    margin-bottom: 24px;
}

.review-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.review-grid article,
.faq-card,
.benefit-list article,
.quiz-contact-box,
.more-articles-note {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.review-grid p {
    margin: 0 0 12px;
    color: var(--emerald);
    font-weight: 800;
}

.review-grid strong {
    color: var(--muted);
    font-size: 0.9rem;
}

.faq-section {
    background: var(--linen);
}

.faq-card h3 {
    margin: 0 0 14px;
    color: var(--emerald);
    font-family: Georgia, "Times New Roman", serif;
}

.faq-card li + li {
    margin-top: 10px;
}

.faq-card a {
    color: var(--emerald);
    font-weight: 800;
    text-decoration-color: rgba(185, 135, 61, 0.45);
}

.centered-hero,
.centered-heading,
.centered-actions {
    text-align: center;
}

.centered-hero .intro-text,
.centered-heading {
    margin-left: auto;
    margin-right: auto;
}

.approach-band {
    background: linear-gradient(180deg, var(--emerald) 0%, var(--emerald-soft) 100%);
}

.centered-steps article {
    text-align: center;
    background: var(--linen);
}

.centered-steps span {
    margin-left: auto;
    margin-right: auto;
    background: var(--ochre);
    color: #fffaf2;
}

.stacked-actions {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.stacked-actions small {
    color: rgba(255, 248, 234, 0.86);
    font-weight: 800;
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.benefit-list article {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 145px;
    color: var(--emerald);
    font-weight: 900;
}

.benefit-list span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--sage);
    color: var(--emerald);
}

.soft-section {
    background: var(--cream);
}

.domain-card {
    background: #fffaf2;
}

.resources {
    max-width: var(--max);
}

.image-post-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(255, 250, 242, 0.82)),
        url('../img/vae-logo-mark.png') right 18px bottom 18px / 130px auto no-repeat,
        var(--white);
}

.more-articles-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--linen);
}

.more-articles-note p {
    margin: 0;
    color: var(--emerald);
    font-weight: 900;
}

.budget-box {
    background: var(--emerald);
}

.calculator-icon {
    width: 58px;
    height: 58px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 9px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #fff8ea;
}

.calculator-icon span {
    border-radius: 4px;
    background: var(--ochre);
}

.button.ochre {
    color: #fffaf2;
    background: var(--ochre);
    box-shadow: 0 12px 26px rgba(182, 120, 52, 0.22);
}

.about-first {
    background: var(--cream);
    border-bottom: 0;
}

.about-first h1 {
    margin: 0;
    color: var(--emerald);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.why-band {
    max-width: none;
    background: var(--emerald);
    color: #fff8ea;
}

.why-band > * {
    max-width: calc(var(--max) / 2);
}

.why-band h2,
.why-band .kicker {
    color: #fff8ea;
}

.appointment {
    background: var(--linen);
}

.appointment .kicker {
    color: var(--ochre);
}

.vertical-actions {
    display: grid;
    justify-items: stretch;
    gap: 14px;
}

.large-cta {
    min-height: 54px;
    font-size: 1.04rem;
}

.or-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-weight: 900;
    text-align: center;
}

.or-separator::before,
.or-separator::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.contact-stack {
    display: grid;
    gap: 10px;
}

.contact-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf2;
}

.choice-comment {
    display: block;
    margin-top: 14px;
}

.quiz-contact-box {
    background: var(--linen);
}

.quiz-contact-box h3 {
    margin: 0 0 8px;
    color: var(--emerald);
    font-family: Georgia, "Times New Roman", serif;
}

.quiz-contact-box p {
    margin: 0 0 16px;
    color: var(--muted);
    font-weight: 800;
}

.site-footer {
    max-width: none;
    grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) auto;
    background: var(--linen);
    font-size: 0.78rem;
    font-style: italic;
}

.site-footer > * {
    max-width: var(--max);
}

.footer-logo img {
    width: 170px;
    object-fit: contain;
}

.legal-text {
    max-width: 760px;
    font-size: 0.74rem;
    color: var(--muted);
}

.footer-admin {
    font-style: normal;
    font-size: 0.78rem;
}

@media (max-width: 1120px) {
    .main-nav {
        grid-template-columns: auto repeat(2, max-content) minmax(150px, 200px) repeat(3, max-content);
        padding-right: 150px;
        gap: 8px 12px;
    }

    .main-nav .nav-link {
        font-size: 0.92rem;
    }
}

@media (max-width: 960px) {
    .site-header {
        align-items: stretch;
    }

    .main-nav {
        grid-template-columns: auto 1fr 1fr;
        justify-content: start;
        padding-right: 0;
    }

    .nav-brand {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: start;
    }

    .phone-link {
        position: static;
        align-self: flex-start;
        margin-left: 0;
    }

    .home-hero,
    .split,
    .about,
    .appointment,
    .resource-layout {
        grid-template-columns: 1fr;
    }

    .review-grid,
    .faq-grid,
    .benefit-list,
    .domain-grid,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 12px 16px;
    }

    .main-nav {
        grid-template-columns: 1fr 1fr;
    }

    .nav-brand {
        grid-column: 1 / -1;
    }

    .nav-brand img {
        width: 190px;
    }

    .main-nav .nav-link {
        justify-content: flex-start;
        min-height: 38px;
        font-size: 0.9rem;
    }

    .home-link {
        width: auto !important;
    }

    .hero,
    .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .review-grid,
    .faq-grid,
    .benefit-list,
    .domain-grid,
    .steps,
    .choices,
    .form-row.two,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .more-articles-note {
        align-items: stretch;
        flex-direction: column;
    }

    .site-footer {
        gap: 16px;
    }
}

/* Menu without centered logo */
.main-nav {
    grid-template-columns: repeat(6, max-content);
}

.nav-brand,
.nav-brand img {
    display: none;
}

@media (max-width: 1120px) {
    .main-nav {
        grid-template-columns: repeat(3, max-content);
        padding-right: 150px;
    }
}

@media (max-width: 960px) {
    .main-nav {
        grid-template-columns: repeat(3, minmax(0, max-content));
        padding-right: 0;
    }
}

@media (max-width: 720px) {
    .main-nav {
        grid-template-columns: 1fr 1fr;
    }
}

/* Dedicated FAQ page and admin FAQ editor */
.faq-page .section-heading h1 {
    margin: 0;
    color: var(--emerald);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.faq-card h2 {
    margin: 0 0 14px;
    color: var(--emerald);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.2;
}

.faq-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-weight: 800;
}

.faq-item-editor {
    grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr) 90px 110px 130px;
}

@media (max-width: 960px) {
    .faq-item-editor {
        grid-template-columns: 1fr;
    }
}

.theme-picker {
    display: grid;
    gap: 10px;
}

.theme-picker > span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.theme-option {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.theme-option:hover,
.theme-option:focus-within,
.theme-option.selected {
    border-color: var(--gold);
    box-shadow: 0 12px 28px rgba(15, 59, 46, 0.1);
    transform: translateY(-1px);
}

.theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-option strong {
    color: var(--emerald);
    font-size: 1rem;
    line-height: 1.2;
}

.theme-option small {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.theme-swatch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 42px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.theme-swatch i {
    display: block;
}

@media (max-width: 900px) {
    .theme-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .theme-options {
        grid-template-columns: 1fr;
    }
}
/* Strong public theme differences */
body.theme-logo-green {
    --emerald: #062b21;
    --emerald-soft: #0f4738;
    --gold: #d9aa3f;
    --cream: #f3ead8;
    --sage: #cdded1;
    --mist: #e7ddca;
    --coral: #b8865f;
    --ink: #20312b;
    --muted: #667069;
    --white: #fffaf0;
    --line: rgba(6, 43, 33, 0.2);
    --shadow: 0 20px 52px rgba(6, 43, 33, 0.18);
    --page-bg: #062b21;
    --hero-bg: #062b21;
    --hero-text: #fff7df;
    --hero-muted: #e2d7bd;
    --hero-accent: #d9aa3f;
    --section-bg: #f3ead8;
    --band-bg: #dce7d8;
    --surface-bg: #fffaf0;
    --header-bg: rgba(6, 43, 33, 0.96);
    --header-text: #fff7df;
}

body.theme-mineral-blue {
    --emerald: #1f3444;
    --emerald-soft: #31586f;
    --gold: #bd8d58;
    --cream: #eef3f5;
    --sage: #d8e5e8;
    --mist: #e8ded1;
    --coral: #a66f5e;
    --ink: #24313b;
    --muted: #5f6870;
    --white: #fbfaf6;
    --line: rgba(31, 52, 68, 0.18);
    --shadow: 0 20px 52px rgba(31, 52, 68, 0.16);
    --page-bg: #e3ebef;
    --hero-bg: #1f3444;
    --hero-text: #f8f3e7;
    --hero-muted: #d7e3e7;
    --hero-accent: #d7a16a;
    --section-bg: #f6f3ea;
    --band-bg: #dce8ec;
    --surface-bg: #fbfaf6;
    --header-bg: rgba(31, 52, 68, 0.96);
    --header-text: #f8f3e7;
}

body.theme-soft-earth {
    --emerald: #43322d;
    --emerald-soft: #664f46;
    --gold: #bd7648;
    --cream: #f4e8dc;
    --sage: #e3d5c5;
    --mist: #ead8c8;
    --coral: #9c6658;
    --ink: #322824;
    --muted: #6f625b;
    --white: #fff9f2;
    --line: rgba(67, 50, 45, 0.18);
    --shadow: 0 20px 52px rgba(67, 50, 45, 0.15);
    --page-bg: #ead6c5;
    --hero-bg: #43322d;
    --hero-text: #fff3e7;
    --hero-muted: #e7d2c2;
    --hero-accent: #dda06f;
    --section-bg: #f7eee6;
    --band-bg: #e6d2bf;
    --surface-bg: #fff9f2;
    --header-bg: rgba(67, 50, 45, 0.96);
    --header-text: #fff3e7;
}

body.theme-logo-green,
body.theme-mineral-blue,
body.theme-soft-earth {
    background: var(--page-bg);
}

body.theme-logo-green main,
body.theme-mineral-blue main,
body.theme-soft-earth main {
    background: var(--section-bg);
}

body.theme-logo-green .site-header,
body.theme-mineral-blue .site-header,
body.theme-soft-earth .site-header {
    background: var(--header-bg);
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

body.theme-logo-green .main-nav a,
body.theme-mineral-blue .main-nav a,
body.theme-soft-earth .main-nav a,
body.theme-logo-green .phone-link,
body.theme-mineral-blue .phone-link,
body.theme-soft-earth .phone-link {
    color: var(--header-text);
}

body.theme-logo-green .phone-link,
body.theme-mineral-blue .phone-link,
body.theme-soft-earth .phone-link {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
}

body.theme-logo-green .hero,
body.theme-mineral-blue .hero,
body.theme-soft-earth .hero {
    background: var(--hero-bg);
    box-shadow: 0 0 0 100vmax var(--hero-bg);
    clip-path: inset(0 -100vmax);
}

body.theme-logo-green .hero h1,
body.theme-mineral-blue .hero h1,
body.theme-soft-earth .hero h1,
body.theme-logo-green .hero .intro-text,
body.theme-mineral-blue .hero .intro-text,
body.theme-soft-earth .hero .intro-text {
    color: var(--hero-text);
}

body.theme-logo-green .hero .subtitle,
body.theme-mineral-blue .hero .subtitle,
body.theme-soft-earth .hero .subtitle,
body.theme-logo-green .hero .kicker,
body.theme-mineral-blue .hero .kicker,
body.theme-soft-earth .hero .kicker {
    color: var(--hero-accent);
}

body.theme-logo-green .hero-note,
body.theme-mineral-blue .hero-note,
body.theme-soft-earth .hero-note,
body.theme-logo-green .guidance-card,
body.theme-mineral-blue .guidance-card,
body.theme-soft-earth .guidance-card {
    background: rgba(255, 250, 240, 0.96);
    border-color: rgba(255, 255, 255, 0.28);
}

body.theme-logo-green .trust-section,
body.theme-logo-green .benefits-section,
body.theme-logo-green .faq-section,
body.theme-logo-green .soft-section,
body.theme-mineral-blue .trust-section,
body.theme-mineral-blue .benefits-section,
body.theme-mineral-blue .faq-section,
body.theme-mineral-blue .soft-section,
body.theme-soft-earth .trust-section,
body.theme-soft-earth .benefits-section,
body.theme-soft-earth .faq-section,
body.theme-soft-earth .soft-section {
    background: var(--band-bg);
}

body.theme-logo-green .domain-card,
body.theme-logo-green .post-card,
body.theme-logo-green .lead-box,
body.theme-logo-green .faq-card,
body.theme-logo-green .benefit-list article,
body.theme-logo-green .quiz-contact-box,
body.theme-logo-green .more-articles-note,
body.theme-mineral-blue .domain-card,
body.theme-mineral-blue .post-card,
body.theme-mineral-blue .lead-box,
body.theme-mineral-blue .faq-card,
body.theme-mineral-blue .benefit-list article,
body.theme-mineral-blue .quiz-contact-box,
body.theme-mineral-blue .more-articles-note,
body.theme-soft-earth .domain-card,
body.theme-soft-earth .post-card,
body.theme-soft-earth .lead-box,
body.theme-soft-earth .faq-card,
body.theme-soft-earth .benefit-list article,
body.theme-soft-earth .quiz-contact-box,
body.theme-soft-earth .more-articles-note {
    background: var(--surface-bg);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
}

body.theme-logo-green .resources,
body.theme-logo-green .appointment,
body.theme-logo-green .article-page,
body.theme-mineral-blue .resources,
body.theme-mineral-blue .appointment,
body.theme-mineral-blue .article-page,
body.theme-soft-earth .resources,
body.theme-soft-earth .appointment,
body.theme-soft-earth .article-page {
    background: var(--section-bg);
}

body.theme-logo-green .site-footer,
body.theme-mineral-blue .site-footer,
body.theme-soft-earth .site-footer {
    background: var(--hero-bg);
    color: var(--hero-text);
    box-shadow: 0 0 0 100vmax var(--hero-bg);
    clip-path: inset(0 -100vmax);
}

body.theme-logo-green .site-footer a,
body.theme-mineral-blue .site-footer a,
body.theme-soft-earth .site-footer a,
body.theme-logo-green .site-footer summary,
body.theme-mineral-blue .site-footer summary,
body.theme-soft-earth .site-footer summary {
    color: var(--hero-text);
}
/* Theme contrast fixes */
body.theme-logo-green .hero .button.primary,
body.theme-mineral-blue .hero .button.primary,
body.theme-soft-earth .hero .button.primary {
    color: #16231f;
    background: var(--hero-accent);
    border-color: var(--hero-accent);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

body.theme-logo-green .hero .button.secondary,
body.theme-mineral-blue .hero .button.secondary,
body.theme-soft-earth .hero .button.secondary {
    color: var(--hero-bg);
    background: #fffaf0;
    border-color: rgba(255, 250, 240, 0.92);
}

body.theme-logo-green .guidance-card,
body.theme-mineral-blue .guidance-card,
body.theme-soft-earth .guidance-card {
    color: var(--ink);
    background: var(--surface-bg);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

body.theme-logo-green .guidance-card h2,
body.theme-mineral-blue .guidance-card h2,
body.theme-soft-earth .guidance-card h2 {
    color: var(--emerald);
}

body.theme-logo-green .guidance-card li,
body.theme-mineral-blue .guidance-card li,
body.theme-soft-earth .guidance-card li {
    color: var(--ink);
    border-top-color: var(--line);
    font-weight: 800;
}

body.theme-logo-green .guidance-card li span,
body.theme-mineral-blue .guidance-card li span,
body.theme-soft-earth .guidance-card li span {
    color: var(--gold);
    font-weight: 900;
}

body.theme-logo-green .hero-note strong,
body.theme-mineral-blue .hero-note strong,
body.theme-soft-earth .hero-note strong {
    color: var(--emerald);
}

body.theme-logo-green .hero-note span,
body.theme-mineral-blue .hero-note span,
body.theme-soft-earth .hero-note span {
    color: var(--muted);
}
/* Budget lead box contrast fixes */
body.theme-logo-green .budget-box,
body.theme-mineral-blue .budget-box,
body.theme-soft-earth .budget-box {
    color: var(--ink);
    background: var(--surface-bg);
}

body.theme-logo-green .budget-box h3,
body.theme-mineral-blue .budget-box h3,
body.theme-soft-earth .budget-box h3 {
    color: var(--gold);
}

body.theme-logo-green .budget-box p:not(.kicker),
body.theme-mineral-blue .budget-box p:not(.kicker),
body.theme-soft-earth .budget-box p:not(.kicker) {
    color: var(--ink);
}

body.theme-logo-green .budget-box label span,
body.theme-mineral-blue .budget-box label span,
body.theme-soft-earth .budget-box label span,
body.theme-logo-green .budget-box small,
body.theme-mineral-blue .budget-box small,
body.theme-soft-earth .budget-box small {
    color: var(--muted);
}

body.theme-logo-green .budget-box input,
body.theme-mineral-blue .budget-box input,
body.theme-soft-earth .budget-box input {
    color: var(--ink);
    background: #f4fbfb;
    border-color: rgba(31, 52, 68, 0.28);
}

body.theme-logo-green .budget-box input::placeholder,
body.theme-mineral-blue .budget-box input::placeholder,
body.theme-soft-earth .budget-box input::placeholder {
    color: color-mix(in srgb, var(--muted) 70%, white);
}
/* Home hero kicker sizing */
.home-hero .kicker {
    margin-bottom: 16px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
}
/* About page kicker sizing */
.about-first .kicker {
    margin-bottom: 16px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
}

/* Center page hero titles */
.centered-hero h1,
.centered-hero .kicker {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
/* Approach progression heading alignment */
.approach-band .centered-heading h2 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.approach-band .centered-heading .kicker {
    margin-bottom: 16px;
    font-family: Lato, Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
}
/* Approach page kicker sizing */
.page-hero.centered-hero .kicker {
    margin-bottom: 16px;
    font-family: Lato, Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
}
/* Requested subtitle-style kickers */
.trust-section .kicker,
.resources .section-heading .kicker,
.budget-box .kicker,
.about-first .kicker,
.why-band .kicker,
.appointment-page .kicker {
    margin-bottom: 16px;
    font-family: Lato, Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
}

/* Qui suis-je layout refinements */
.about-first h1,
.why-band h2,
.appointment-page h2 {
    font-weight: 800;
}

.why-band h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.why-band .rich-text {
    align-self: center;
}

.about-first .rich-text {
    margin-top: 28px;
}

.about-first .rich-text h2,
.about-first .rich-text h3,
.about-first .rich-text strong {
    font-weight: 800;
}

.about-first .rich-text h2,
.about-first .rich-text h3 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.footer-logo-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    color: var(--gold);
    text-decoration: none;
    background: transparent;
    border: 0;
}

.footer-logo-text span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 0.9;
    color: var(--gold);
}

.footer-logo-text small {
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0;
    color: var(--gold);
}

.admin-image-preview img {
    width: 180px;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--cream);
}
/* Qui suis-je: align why kicker with appointment kicker */
.why-band .kicker {
    color: var(--ochre);
}

.why-band h2 {
    font-size: clamp(2rem, 3.45vw, 3rem);
    max-width: 980px;
}
/* FAQ as full-width article list */
.faq-page .faq-article-list,
.faq-admin-article-list {
    grid-template-columns: 1fr;
}

.faq-page .faq-article-card {
    width: 100%;
}

.faq-article-card h2 a {
    color: inherit;
    text-decoration: none;
}

.faq-article-card .button {
    margin-top: 10px;
}

.site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
}
/* Rich text edited from admin */
.rich-text h2,
.rich-text h3 {
    margin: 24px 0 10px;
    color: var(--emerald);
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.18;
}

.rich-text ul,
.rich-text ol {
    margin: 0 0 16px 22px;
    padding: 0;
}

.rich-text li + li {
    margin-top: 7px;
}

.rich-text blockquote {
    margin: 18px 0;
    padding-left: 18px;
    border-left: 3px solid var(--ochre);
    font-weight: 800;
}

.why-band .rich-text h2,
.why-band .rich-text h3 {
    color: #fff8ea;
}

.why-balance-icon {
    display: block;
    width: 84px;
    height: 84px;
    object-fit: contain;
    margin-top: 24px;
}
/* Final mobile and feedback refinements */
.phone-link {
    cursor: default;
    user-select: text;
}

.footer-legal-link {
    justify-self: start;
}

.legal-page {
    background: var(--cream);
}

.feedback-panel {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    width: min(360px, calc(100vw - 28px));
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 22px 58px rgba(15, 59, 46, 0.24);
}

.feedback-panel h2 {
    margin: 0 32px 8px 0;
    color: var(--emerald);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.15;
}

.feedback-panel p {
    margin: 0 0 14px;
    color: var(--muted);
    font-weight: 800;
}

.feedback-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--cream);
    color: var(--emerald);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.feedback-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
    margin-bottom: 12px;
}

.feedback-stars input {
    position: absolute;
    opacity: 0;
}

.feedback-stars span {
    display: inline-flex;
    color: #d3c7aa;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
}

.feedback-stars label:hover span,
.feedback-stars label:hover ~ label span,
.feedback-stars input:checked + span,
.feedback-stars label:has(input:checked) ~ label span {
    color: var(--gold);
}

.feedback-message {
    min-height: 22px;
    margin-top: 10px !important;
    font-size: 0.9rem;
}

@media (max-width: 760px) {
    body {
        font-size: 15px;
    }

    .site-header {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 12px;
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .main-nav .nav-link {
        min-height: 42px;
        justify-content: flex-start;
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 250, 240, 0.08);
        font-size: 0.86rem;
        line-height: 1.15;
    }

    .main-nav .home-link {
        justify-content: center;
    }

    .phone-link {
        position: static !important;
        width: 100%;
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.92rem;
    }

    .hero,
    .section,
    .site-footer {
        width: 100%;
        padding: 38px 16px;
        scroll-margin-top: 18px;
    }

    .home-hero {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .hero-copy h1,
    .page-hero h1,
    .split h1,
    .quiz-section h1,
    .resources h1,
    .article-page h1,
    .appointment h1,
    .about-first h1 {
        max-width: 100%;
        font-size: clamp(2.15rem, 12vw, 3rem);
    }

    .section h2,
    .why-band h2,
    .appointment-page h2 {
        max-width: 100%;
        font-size: clamp(1.9rem, 10vw, 2.55rem);
    }

    .home-hero .kicker,
    .about-first .kicker,
    .why-band .kicker,
    .appointment-page .kicker,
    .budget-box .kicker,
    .resources .section-heading .kicker,
    .trust-section .kicker {
        font-size: 1.05rem;
        line-height: 1.28;
    }

    .hero-profile-photo {
        width: min(100%, 260px);
        border-width: 7px;
    }

    .guidance-card {
        width: 100%;
        margin-top: 0;
        padding: 20px;
    }

    .guidance-card h2 {
        font-size: 1.2rem;
    }

    .guidance-card li {
        grid-template-columns: 30px 1fr;
        gap: 10px;
        padding: 10px 0;
    }

    .review-grid,
    .faq-grid,
    .benefit-list,
    .domain-grid,
    .steps,
    .choices,
    .form-row.two,
    .form-row.three,
    .resource-layout,
    .split,
    .about,
    .appointment,
    .admin-layout,
    .analytics-grid,
    .stats-grid,
    .theme-options {
        grid-template-columns: 1fr !important;
    }

    .lead-box,
    .post-card,
    .domain-card,
    .question,
    .quiz-contact-box,
    .more-articles-note {
        padding: 18px;
    }

    .button {
        width: 100%;
        min-height: 46px;
    }

    .hero-actions,
    .section-actions,
    .inline-forms {
        align-items: stretch;
        flex-direction: column;
    }

    .feedback-panel {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }
}