@font-face {
    font-family: 'Hagrid Text';
    src: url('../_assets/fonts/HagridText-Bold.woff2?v=1') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: optional;
}

@font-face {
    font-family: 'Gordita';
    src: url('../_assets/fonts/Gordita-Regular.woff2?v=1') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: optional;
}

:root {
    --ink: #17332f;
    --ink-soft: #49635e;
    --paper: #f7f1e5;
    --paper-light: #fffdf8;
    --teal: #176b61;
    --teal-dark: #0f5149;
    --coral: #e16445;
    --sun: #e9ad45;
    --sage: #b9c9af;
    --line: rgba(23, 51, 47, 0.16);
    --shadow: 0 24px 70px rgba(23, 51, 47, 0.12);
    --font-display: 'Hagrid Text', Georgia, serif;
    --font-body: 'Gordita', sans-serif;
}

* { box-sizing: border-box; }

button, input, select, textarea { font: inherit; }
figure { margin: 0; }

.container {
    width: 100%;
    margin-inline: auto;
    padding-inline: 0.75rem;
}

.row {
    --gutter-x: 1.5rem;
    --gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--gutter-y));
    margin-inline: calc(-0.5 * var(--gutter-x));
}

.row > * {
    width: 100%;
    max-width: 100%;
    margin-top: var(--gutter-y);
    padding-inline: calc(0.5 * var(--gutter-x));
    flex-shrink: 0;
}

.g-4 { --gutter-x: 1.5rem; --gutter-y: 1.5rem; }
.g-5 { --gutter-x: 3rem; --gutter-y: 3rem; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-end { justify-content: flex-end; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pt-3 { padding-top: 1rem !important; }

.navbar > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand { text-decoration: none; }
.navbar-collapse { display: none; width: 100%; }
.navbar-collapse.show { display: block; }
.navbar-nav { display: flex; margin: 0; padding: 0; flex-direction: column; list-style: none; }
.navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
}

.navbar-toggler-icon {
    position: relative;
    display: block;
    width: 1.35rem;
    height: 1rem;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.navbar-toggler-icon::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    content: '';
    transform: translateY(-50%);
}

.fas { display: inline-block; font-style: normal; line-height: 1; }
.fa-compass::before { content: '\2726'; }
.fa-exclamation-circle::before { content: '!'; }
.fa-planet-ringed::before { content: '\25ce'; }
.fa-eye::before { content: '\25c9'; }
.fa-eye-slash::before { content: '\25cc'; }
.fa-sync::before { content: '\21bb'; }
.fa-calendar-day::before { content: '\25a3'; }
.fa-play::before { content: '\25b6'; }
.fa-chevron-left::before { content: '\2039'; }
.fa-chevron-right::before { content: '\203a'; }
.fa-satellite::before { content: '\25c7'; }
.fa-bolt::before { content: '\26a1'; }

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) {
    .container { max-width: 960px; }
    .col-lg-5 { width: 41.666667%; }
    .col-lg-7 { width: 58.333333%; }
    .col-lg-8 { width: 66.666667%; }
    .navbar-toggler { display: none; }
    .navbar-collapse { display: flex !important; width: auto; flex-basis: auto; flex-grow: 1; align-items: center; }
    .navbar-nav { flex-direction: row; }
}
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(233, 173, 69, 0.2), transparent 25rem),
        radial-gradient(circle at 92% 35%, rgba(23, 107, 97, 0.13), transparent 28rem),
        var(--paper);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.22;
    pointer-events: none;
    background-image: radial-gradient(rgba(23, 51, 47, 0.35) 0.6px, transparent 0.6px);
    background-size: 18px 18px;
}

a { color: inherit; }

img { max-width: 100%; }

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--ink);
    font-family: var(--font-display) !important;
    letter-spacing: -0.035em;
}

p { margin-top: 0; margin-bottom: 1rem; color: var(--ink-soft); }

.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    color: #fff;
    background: var(--ink);
    border-radius: 0.75rem;
}

.skip-link:focus { top: 1rem; }

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.85rem 0;
    background: rgba(247, 241, 229, 0.88);
    border-bottom: 1px solid rgba(23, 51, 47, 0.09);
    backdrop-filter: blur(18px);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink) !important;
    font-family: var(--font-display) !important;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
}

.brand-mark {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
}

.brand-mark img { display: block; width: 100%; height: 100%; }

.site-nav .navbar-toggler {
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.site-nav .navbar-nav {
    align-items: center;
    gap: 0.25rem;
}

.site-nav .nav-link {
    padding: 0.55rem 0.9rem !important;
    color: var(--ink-soft) !important;
    border-radius: 999px;
    font-family: var(--font-body) !important;
    font-size: 0.88rem;
    font-weight: 700 !important;
    transition: background 180ms ease, color 180ms ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--ink) !important;
    background: rgba(23, 107, 97, 0.1);
}

.site-nav .nav-cta {
    padding-inline: 1.1rem !important;
    color: #fff !important;
    background: var(--teal);
}

.site-nav .nav-cta:hover {
    color: #fff !important;
    background: var(--teal-dark);
}

.site-nav .nav-instagram {
    display: flex;
    align-items: center;
}

.site-nav .nav-instagram .nav-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    color: var(--ink-soft);
    border-radius: 50%;
    transition: background 180ms ease, color 180ms ease;
}

.site-nav .nav-instagram .nav-icon-link:hover,
.site-nav .nav-instagram .nav-icon-link:focus-visible {
    color: var(--ink);
    background: rgba(23, 107, 97, 0.1);
}

.site-nav .nav-instagram .instagram-mark {
    width: 1.2rem;
    height: 1.2rem;
}

.language-item {
    display: flex;
    align-items: center;
    margin: 0 0.2rem;
}

.language-select {
    max-width: 8.25rem;
    padding: 0.48rem 1.8rem 0.48rem 0.65rem;
    border: 1px solid rgba(23, 51, 47, 0.24);
    border-radius: 0.65rem;
    color: var(--ink, #17332f);
    background: #fff;
    font-family: var(--font-body) !important;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
}

.language-select:focus-visible {
    outline: 3px solid rgba(208, 117, 79, 0.28);
    outline-offset: 2px;
}

.page-shell { padding-top: 5rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 1.8rem;
    height: 2px;
    background: var(--coral);
}

.hero-home {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 7.5rem 0 5rem;
    overflow: hidden;
}

.hero-home::after {
    content: '64';
    position: absolute;
    right: -0.05em;
    bottom: -0.2em;
    z-index: -1;
    color: rgba(23, 51, 47, 0.04);
    font-family: var(--font-display);
    font-size: clamp(18rem, 42vw, 38rem);
    font-weight: 700;
    line-height: 0.75;
}

.hero-copy h1 {
    max-width: 760px;
    margin-bottom: 1.5rem;
    font-size: clamp(3.4rem, 7vw, 6.9rem);
    line-height: 0.94;
}

.hero-copy h1 em {
    color: var(--coral);
    font-style: normal;
}

.hero-lede {
    max-width: 620px;
    margin-bottom: 2rem;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-brand,
.btn-outline-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 3.2rem;
    padding: 0.85rem 1.4rem;
    border: 1px solid var(--teal);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-brand {
    color: #fff;
    background: var(--teal);
    box-shadow: 0 12px 30px rgba(23, 107, 97, 0.24);
}

.btn-outline-brand {
    color: var(--teal);
    background: rgba(255, 253, 248, 0.4);
}

.btn-brand:hover,
.btn-outline-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 34px rgba(23, 51, 47, 0.16);
}

.btn-brand:hover { color: #fff; background: var(--teal-dark); }
.btn-outline-brand:hover { color: var(--teal-dark); background: var(--paper-light); }

.hero-visual {
    position: relative;
    max-width: 500px;
    margin-left: auto;
    padding: 1.25rem;
    background: rgba(255, 253, 248, 0.86);
    border: 1px solid var(--line);
    border-radius: 44% 44% 2.2rem 2.2rem;
    box-shadow: var(--shadow);
    transform: rotate(1.5deg);
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 5.5rem;
    height: 5.5rem;
    background: var(--sun);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1rem rgba(255, 253, 248, 0.28);
}

.hero-visual img {
    display: block;
    width: 100%;
    max-height: 640px;
    object-fit: contain;
    background: #fff;
    border-radius: 40% 40% 1.4rem 1.4rem;
}

.chart-caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0.25rem 0;
    color: var(--ink-soft);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trust-strip {
    position: relative;
    z-index: 2;
    margin-top: -2rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--ink);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.trust-item {
    padding: 1.3rem 1.5rem;
    color: rgba(255, 255, 255, 0.72);
    border-right: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 0.78rem;
}

.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: #fff; font-size: 1rem; }

.section-block { padding: 7rem 0; }
.section-soft { background: rgba(255, 253, 248, 0.64); }
.section-dark { color: #fff; background: var(--ink); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.68); }

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

.section-heading h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: 1;
}

.section-heading p { max-width: 650px; font-size: 1.05rem; }

.step-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.step-card,
.feature-panel,
.offer-card {
    position: relative;
    min-height: 260px;
    padding: 1.8rem;
    overflow: hidden;
    background: var(--paper-light);
    border: 1px solid var(--line);
    border-radius: 1.6rem;
}

.step-number {
    display: block;
    margin-bottom: 3rem;
    color: var(--coral);
    font-family: var(--font-display);
    font-size: 3.7rem;
    line-height: 1;
}

.step-card h3,
.feature-panel h3,
.offer-card h3 { font-size: 1.35rem; }

.feature-panel:nth-child(2) { background: #dce8df; }
.feature-panel:nth-child(3) { background: #f1d3c7; }
.feature-panel:nth-child(4) { background: #efdca9; }

.feature-kicker {
    display: block;
    margin-bottom: 3.5rem;
    color: var(--teal);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

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

.responsible-note {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.responsible-note h2 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 1;
}

.note-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.5rem;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    background: var(--sun);
    border-radius: 2rem;
}

.cta-band h2 { max-width: 720px; margin: 0; font-size: clamp(2.1rem, 4vw, 4rem); }

.page-hero {
    padding: 10rem 0 5rem;
}

.page-hero h1 {
    max-width: 880px;
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    line-height: 0.96;
}

.page-hero p { max-width: 700px; font-size: 1.15rem; }

.offer-card {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    padding: 2rem;
}

.offer-card.featured {
    color: #fff;
    background: var(--teal);
    transform: translateY(-1.25rem);
}

.offer-card.featured h3,
.offer-card.featured .offer-price { color: #fff; }
.offer-card.featured p { color: rgba(255, 255, 255, 0.76); }
.offer-card.featured .btn-brand { color: var(--ink); background: #f8cd7b; border-color: #f8cd7b; }
.offer-card.featured .btn-brand:hover { color: var(--ink); background: #fffdf8; border-color: #fffdf8; }

.offer-type {
    margin-bottom: 2.6rem;
    color: var(--coral);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.featured .offer-type { color: #f8cd7b; }

.offer-price {
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.6rem;
}

.faq-list { border-top: 1px solid var(--line); }

.faq-item {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
}

.faq-item h3 { font-size: 1.15rem; }

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    padding-bottom: 7rem;
}

.contact-card {
    min-width: 0 !important;
    padding: 2.5rem !important;
    background: var(--paper-light) !important;
    border: 1px solid var(--line);
    border-radius: 1.8rem !important;
    box-shadow: var(--shadow) !important;
}

.contact-card h2 { font-size: 2.2rem; }

.contact-email {
    display: inline-block;
    margin: 1.25rem 0 2rem;
    color: var(--teal);
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 2.1rem);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.instagram-mark {
    display: inline-flex;
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
}

.instagram-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-aside {
    padding: 2.5rem;
    color: #fff;
    background: var(--coral);
    border-radius: 1.8rem;
}

.contact-aside h2 { color: #fff; }
.contact-aside p { color: rgba(255, 255, 255, 0.8); }

.unsubscribe-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.5rem; max-width: 980px; padding-bottom: 7rem; }
.unsubscribe-card { padding: 2.5rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: 1.8rem; box-shadow: var(--shadow); }
.unsubscribe-card h2 { margin: 0.6rem 0 0.8rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.unsubscribe-form { margin-top: 2rem; }
.unsubscribe-form label { display: block; margin-bottom: 0.4rem; color: var(--ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.unsubscribe-form input { display: block; width: 100%; min-height: 3.4rem; margin-bottom: 1rem; padding: 1rem 1.25rem; color: var(--ink); background: #fff; border: 2px solid transparent; border-radius: 1rem; outline: 0; }
.unsubscribe-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(23, 107, 97, 0.12); }
.unsubscribe-form button:disabled { cursor: wait; opacity: 0.68; }
.unsubscribe-status { min-height: 1.4rem; margin: 1rem 0 0; color: var(--teal); font-size: 0.8rem; }

.site-footer {
    padding: 3rem 0;
    color: rgba(255, 255, 255, 0.68);
    background: var(--ink);
}

.footer-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand { color: #fff; font-family: var(--font-display); font-size: 1.4rem; }
.footer-note { max-width: 580px; margin: 0.5rem 0 0; color: rgba(255, 255, 255, 0.6); font-size: 0.78rem; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; text-decoration: none; }

/* Calculator page: loaded after the legacy inline rules. */
.chart-page #bg-video-container { display: none; }

.chart-page .chart-page-content {
    min-height: 100vh;
    padding: 9rem 0 6rem;
    background: transparent;
}

.chart-intro {
    max-width: 820px;
    margin: 0 auto 3rem;
    text-align: center;
}

.chart-intro .eyebrow { justify-content: center; }

.chart-intro h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    line-height: 0.98;
}

.chart-intro p { max-width: 670px; margin-inline: auto; }

.lead-name-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.chart-page .chart-form {
    max-width: 590px;
    padding: 2rem;
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid var(--line);
    border-radius: 1.7rem;
    box-shadow: var(--shadow);
}

.chart-page .chart-form label,
.chart-page .transit-row .form-group label {
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.chart-page .chart-form input[type='text'],
.chart-page .chart-form input[type='email'],
.chart-page .chart-form input[type='date'],
.chart-page .chart-form input[type='time'],
.chart-page .transit-row .form-group input {
    color: var(--ink);
    background: #f1ecdf;
    border: 1px solid transparent;
    border-radius: 0.85rem;
}

.chart-page .chart-form input:focus,
.chart-page .transit-row .form-group input:focus {
    background: #fff;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(23, 107, 97, 0.12);
}

.form-help {
    display: block;
    margin-top: 0.45rem;
    color: var(--ink-soft);
    font-size: 0.74rem;
    line-height: 1.45;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: -0.15rem 0 1.25rem;
    color: var(--ink-soft);
    font-size: 0.76rem;
    line-height: 1.45;
    cursor: pointer;
}

.consent-row input {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    accent-color: var(--teal);
}

.chart-page .btn-generate {
    min-height: 3.4rem;
    color: #fff;
    background: var(--teal);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(23, 107, 97, 0.22);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
}

.chart-page .btn-generate:hover { background: var(--teal-dark); }

.chart-page .spinner { border-color: rgba(23, 107, 97, 0.18); border-top-color: var(--teal); }
.chart-page .suggestions-container { border: 1px solid var(--line); border-radius: 0.9rem; }
.chart-page .suggestions-container div:hover { background: #f1ecdf; }

.chart-page .transit-controls {
    background: rgba(220, 232, 223, 0.86);
    border: 1px solid rgba(23, 107, 97, 0.24);
    border-radius: 1.6rem;
}

.chart-page .transit-header h3,
.chart-page .timeline-date,
.chart-page .transit-info h4 { color: var(--teal); }

.chart-page .transit-buttons .btn-secondary,
.chart-page .btn-small {
    color: var(--teal);
    background: var(--paper-light);
    border-color: rgba(23, 107, 97, 0.28);
    font-family: var(--font-body);
}

.chart-page .transit-buttons .btn-secondary:hover,
.chart-page .transit-buttons .btn-secondary.active,
.chart-page .btn-small:hover {
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
}

.chart-page .timeline-nav { color: var(--teal); border-color: var(--teal); }
.chart-page .timeline-nav:hover { color: #fff; background: var(--teal); }
.chart-page .timeline-track input[type='range'] { background: linear-gradient(90deg, var(--sage), var(--sun)); }
.chart-page .timeline-track input[type='range']::-webkit-slider-thumb { background: var(--coral); box-shadow: 0 2px 8px rgba(225, 100, 69, 0.38); }

.chart-page .chart-column,
.chart-page .chart-result,
.chart-page .property-card {
    background: var(--paper-light);
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(23, 51, 47, 0.09);
}

.chart-page .chart-column h3,
.chart-page .data-table th,
.chart-page .data-table td { border-color: var(--line); }

.chart-page .property-card { border-radius: 1.25rem; }
.chart-page .property-card::before { background: var(--teal) !important; }
.chart-page .property-card:nth-child(3n+2)::before { background: var(--coral) !important; }
.chart-page .property-card:nth-child(3n)::before { background: var(--sun) !important; }
.chart-page .property-card h4 { color: var(--ink-soft); }
.chart-page .property-card p { color: var(--ink); }
.chart-page .variables-section { border-color: var(--line); }
.chart-page .transit-info { background: #eef3ea; border-color: rgba(23, 107, 97, 0.2); }

.chart-seo-copy {
    max-width: 900px;
    margin: 5rem auto 0;
    padding: 2.5rem;
    background: rgba(255, 253, 248, 0.7);
    border: 1px solid var(--line);
    border-radius: 1.6rem;
}

.chart-seo-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

.entertainment-disclaimer {
    padding: 1.15rem 1.35rem;
    color: var(--ink-soft);
    background: #efdca9;
    border: 1px solid rgba(23, 51, 47, 0.14);
    border-radius: 1rem;
    font-size: 0.84rem;
}

.entertainment-disclaimer strong { color: var(--ink); }

.celebrity-index-hero { padding-bottom: 3rem; }

.archive-key {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
}

.archive-key div { padding: 1.1rem 1.25rem; background: var(--paper-light); }
.archive-key strong { display: block; color: var(--teal); font-size: 0.9rem; }
.archive-key span { color: var(--ink-soft); font-size: 0.74rem; }

.celebrity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.celebrity-card {
    min-height: 260px;
    background: var(--paper-light);
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.celebrity-card:nth-child(4n+2) { background: #dce8df; }
.celebrity-card:nth-child(4n+3) { background: #f1d3c7; }
.celebrity-card:nth-child(4n) { background: #efdca9; }
.celebrity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.celebrity-card a {
    display: flex;
    height: 100%;
    padding: 1.5rem;
    flex-direction: column;
    text-decoration: none;
}

.celebrity-rank {
    color: var(--coral);
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
}

.celebrity-category {
    margin: 1.1rem 0 0.6rem;
    color: var(--teal);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.celebrity-card h2 { margin-bottom: 0.35rem; font-size: 1.5rem; }
.celebrity-card p { margin-bottom: 1.5rem; font-size: 0.78rem; }
.card-link { margin-top: auto; color: var(--ink); font-size: 0.75rem; font-weight: 700; }

.celebrity-hero { padding: 10rem 0 4rem; }
.celebrity-hero h1 { margin: 0; font-size: clamp(4rem, 9vw, 8.5rem); line-height: 0.88; }
.celebrity-hero p { margin: 1rem 0 0; font-size: 1.05rem; }

.celebrity-breadcrumb {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 2rem;
    color: var(--ink-soft);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.celebrity-breadcrumb a { color: var(--teal); text-decoration: none; }

.site-breadcrumb { margin: 0 0 1.6rem; }
.site-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.site-breadcrumb li { color: var(--ink-soft); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-breadcrumb li + li::before { margin-right: 0.55rem; color: var(--coral); content: '/'; }
.site-breadcrumb a { color: var(--teal); font-weight: 700; text-decoration: none; }
.site-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 0.2rem; }
.chart-intro .site-breadcrumb li { color: rgba(255, 255, 255, 0.68); }
.chart-intro .site-breadcrumb a { color: #f8cd7b; }

.data-confidence {
    padding: 1.25rem;
    background: var(--ink);
    border-radius: 1.25rem;
}

.data-confidence strong, .data-confidence span { display: block; }
.data-confidence strong { color: #fff; font-family: var(--font-display); font-size: 1.3rem; }
.data-confidence span { color: rgba(255, 255, 255, 0.65); font-size: 0.72rem; }

.celebrity-chart-section { padding-top: 4rem; }

.static-chart-frame {
    padding: 1.5rem;
    background: var(--paper-light);
    border: 1px solid var(--line);
    border-radius: 2rem;
    box-shadow: var(--shadow);
}

.static-chart-frame img { display: block; width: 100%; max-height: 900px; object-fit: contain; }

.celebrity-facts {
    padding: 1.75rem;
    background: var(--paper-light);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
}

.celebrity-facts dl { margin: 0 0 1.2rem; }
.celebrity-facts dl div { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.celebrity-facts dt { color: var(--ink-soft); font-size: 0.72rem; font-weight: 400; }
.celebrity-facts dd { margin: 0; color: var(--ink); font-size: 0.78rem; font-weight: 700; }
.celebrity-facts a { color: var(--teal); font-size: 0.76rem; font-weight: 700; text-decoration: none; }

.celebrity-core {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-top: 1rem;
}

.celebrity-core div { min-height: 110px; padding: 1rem; background: #dce8df; border-radius: 1rem; }
.celebrity-core div:nth-child(2), .celebrity-core div:nth-child(3) { background: #f1d3c7; }
.celebrity-core span, .celebrity-core strong { display: block; }
.celebrity-core span { color: var(--ink-soft); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; }
.celebrity-core strong { margin-top: 0.45rem; color: var(--ink); font-family: var(--font-display); line-height: 1.1; }

.reading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.reading-card { padding: 1.7rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: 1.4rem; }
.reading-card > span { color: var(--coral); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.reading-card h3 { margin: 1.7rem 0 0.75rem; font-size: 1.45rem; }
.reading-card p { margin: 0; font-size: 0.88rem; }

.activation-band { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 1.5rem; gap: 1px; }
.activation-band > div { padding: 1.7rem; background: var(--paper-light); }
.activation-band span, .activation-band strong { display: block; }
.activation-band span { color: var(--teal); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.activation-band strong { margin: 1.8rem 0 0.8rem; color: var(--ink); font-family: var(--font-display); font-size: 1.45rem; }
.activation-band p { margin: 0; font-size: 0.78rem; }

.celebrity-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.celebrity-channel { padding: 1.5rem; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 1.3rem; }
.celebrity-channel span { color: #f8cd7b; font-size: 0.72rem; font-weight: 700; }
.celebrity-channel h3 { margin: 1.3rem 0 0.6rem; }
.celebrity-channel p { margin: 0; font-size: 0.82rem; }

.celebrity-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.celebrity-pagination a { display: flex; padding: 1.5rem; flex-direction: column; background: var(--paper-light); border: 1px solid var(--line); border-radius: 1.2rem; text-decoration: none; }
.celebrity-pagination a:last-child { text-align: right; }
.celebrity-pagination span { color: var(--teal); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.celebrity-pagination strong { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.2rem; }

.biography-section { background: rgba(255, 253, 248, 0.58); }

.life-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.life-milestone {
    min-height: 230px;
    padding: 1.5rem;
    background: var(--paper-light);
    border: 1px solid var(--line);
    border-radius: 1.3rem;
}

.life-milestone > span {
    color: var(--coral);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.life-milestone h3 { margin: 2rem 0 0.7rem; font-size: 1.3rem; }
.life-milestone p { margin: 0; font-size: 0.82rem; }

.accuracy-comparison {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
}

.accuracy-card { padding: 1.7rem; background: #dce8df; }
.accuracy-card.counter { background: #f1d3c7; }
.accuracy-card.verdict { background: #efdca9; }
.accuracy-card > span { color: var(--teal); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.accuracy-card h3 { margin: 1.8rem 0 0.7rem; font-size: 1.3rem; }
.accuracy-card p { margin: 0; font-size: 0.82rem; }

.biography-source { margin: 1.2rem 0 0; color: var(--ink-soft); font-size: 0.72rem; }
.biography-source a { color: var(--teal); font-weight: 700; }

.celebrity-recommendations {
    position: relative;
    overflow: hidden;
    background: #e9dfc4;
}

.celebrity-recommendations::before {
    position: absolute;
    top: -180px;
    right: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(23, 51, 47, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(23, 51, 47, 0.035), 0 0 0 90px rgba(23, 51, 47, 0.025);
    content: '';
    pointer-events: none;
}

.recommendation-heading {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 4rem;
    margin-bottom: 2.5rem;
}

.recommendation-heading h2 { margin: 0.65rem 0 0; font-size: clamp(2.5rem, 5vw, 5.2rem); line-height: 0.95; }
.recommendation-heading > p { margin: 0; max-width: 560px; color: var(--ink-soft); }

.recommendation-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.recommendation-card {
    min-height: 270px;
    padding: 1.8rem;
    border: 1px solid rgba(23, 51, 47, 0.14);
    border-radius: 1.5rem;
    background: #fffdf8;
}

.recommendation-card.momentum { background: #dce8df; }
.recommendation-card.growth { background: #f1d3c7; }
.recommendation-card.public-life { background: #efdca9; }
.recommendation-card > span, .story-prompt > span { color: var(--teal); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.recommendation-card h3 { margin: 2.4rem 0 0.8rem; font-size: 1.55rem; }
.recommendation-card p { margin: 0; font-size: 0.88rem; }

.story-prompt {
    position: relative;
    display: grid;
    grid-template-columns: 0.35fr 1.65fr;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1.7rem;
    border: 1px solid rgba(23, 51, 47, 0.14);
    border-radius: 1.5rem;
    background: var(--ink);
}

.story-prompt > span { color: #f8cd7b; }
.story-prompt p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; }
.recommendation-note { margin: 1rem 0 0; color: var(--ink-soft); font-size: 0.72rem; }

.relationship-tool-section { padding-top: 2rem; }
.relationship-form {
    max-width: 940px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid var(--line);
    border-radius: 1.8rem;
    box-shadow: var(--shadow);
}
.relationship-form-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.relationship-form-heading h2 { margin: 0.55rem 0 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.relationship-form-heading p { max-width: 360px; margin: 0; font-size: 0.8rem; }
.relationship-person-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.relationship-person-card, .relationship-contact-card { min-width: 0; margin: 0; padding: 1.35rem; border: 1px solid var(--line); border-radius: 1.25rem; background: #f1ecdf; }
.relationship-person-card legend { padding: 0 0.55rem; color: var(--teal); font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.person-b-card { background: #f3e2dc; }
.relationship-card-note { margin: -0.15rem 0 0.9rem; color: var(--ink-soft); font-size: 0.75rem; }
.relationship-field { position: relative; margin-top: 1.1rem; }
.relationship-field label { display: block; margin-bottom: 0.4rem; color: var(--ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.relationship-field input[type='text'], .relationship-field input[type='email'], .relationship-field input[type='date'], .relationship-field input[type='time'] { width: 100%; min-height: 3.2rem; padding: 0.75rem 0.9rem; color: var(--ink); background: #f1ecdf; border: 1px solid transparent; border-radius: 0.85rem; outline: 0; color-scheme: light; }
.relationship-field input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(23, 107, 97, 0.12); }
.relationship-field input::placeholder { color: rgba(73, 99, 94, 0.7); }
.relationship-date-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.relationship-input-shell { position: relative; }
.relationship-input-shell input { padding-right: 2.6rem !important; }
.relationship-input-icon { position: absolute; top: 50%; right: 0.85rem; width: 1rem; height: 1rem; color: var(--teal); pointer-events: none; transform: translateY(-35%); }
.relationship-input-icon.calendar { border: 1.5px solid currentColor; border-radius: 0.2rem; }
.relationship-input-icon.calendar::before { position: absolute; top: 0.23rem; right: 0; left: 0; border-top: 1.5px solid currentColor; content: ''; }
.relationship-input-icon.calendar::after { position: absolute; top: -0.15rem; left: 0.2rem; width: 0.15rem; height: 0.35rem; border-right: 1.5px solid currentColor; border-left: 1.5px solid currentColor; content: ''; }
.relationship-input-icon.clock { border: 1.5px solid currentColor; border-radius: 50%; }
.relationship-input-icon.clock::before { position: absolute; top: 0.16rem; left: 0.42rem; width: 1.5px; height: 0.36rem; background: currentColor; content: ''; }
.relationship-input-icon.clock::after { position: absolute; top: 0.48rem; left: 0.42rem; width: 0.28rem; height: 1.5px; background: currentColor; content: ''; transform: rotate(25deg); transform-origin: left center; }
.relationship-suggestions { position: absolute; top: 100%; right: 0; left: 0; z-index: 10; max-height: 220px; margin-top: 0.35rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--paper-light); box-shadow: var(--shadow); }
.relationship-suggestions[hidden] { display: none; }
.relationship-suggestion { display: block; width: 100%; padding: 0.75rem 0.9rem; color: var(--ink); background: transparent; border: 0; text-align: left; cursor: pointer; font-size: 0.78rem; }
.relationship-suggestion:hover, .relationship-suggestion:focus { background: #dce8df; outline: 0; }
.selected-location { min-height: 1.3rem; margin: 0.45rem 0 0; color: var(--teal); font-size: 0.7rem; }
.relationship-contact-card { margin-top: 1rem; background: #dce8df; }
.relationship-contact-card legend { padding: 0 0.55rem; color: var(--teal); font-family: var(--font-display); font-size: 1.45rem; line-height: 1; }
.relationship-contact-grid { display: grid; grid-template-columns: 0.8fr 0.8fr 1.25fr; gap: 0.75rem; }
.relationship-contact-grid .relationship-field { margin-top: 0.55rem; }
.relationship-contact-card .form-help { margin-bottom: 0; }
.relationship-consent { display: flex; align-items: flex-start; gap: 0.65rem; margin: 1.5rem 0; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.5; cursor: pointer; }
.relationship-consent + .relationship-consent { margin-top: -0.8rem; }
.relationship-consent input { width: 1rem; height: 1rem; margin-top: 0.2rem; flex: 0 0 auto; accent-color: var(--teal); }
.relationship-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.relationship-actions button { min-height: 3.2rem; border: 0; cursor: pointer; }
.relationship-actions .btn-outline-brand { border: 1px solid var(--teal); }
.relationship-actions button:disabled { opacity: 0.7; cursor: wait; }
.relationship-actions .is-loading::before { display: inline-block; width: 0.9rem; height: 0.9rem; margin-right: 0.45rem; vertical-align: -0.08rem; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: currentColor; border-radius: 50%; animation: relationship-spin 700ms linear infinite; content: ''; }
.relationship-status { min-height: 1.5rem; margin: 1rem 0 0; color: var(--coral); font-size: 0.8rem; }
.relationship-results { max-width: 1040px; margin: 3rem auto 0; scroll-margin-top: 6rem; }
.relationship-summary { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: end; padding: 2rem; color: #fff; background: var(--teal); border-radius: 1.6rem; }
.relationship-summary .eyebrow { color: #f8cd7b; }
.relationship-summary h2 { margin: 0.65rem 0 0.35rem; color: #fff; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 0.95; }
.relationship-summary p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.relationship-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.relationship-metric { min-width: 0; padding: 0.9rem; background: rgba(255, 255, 255, 0.1); border-radius: 0.8rem; }
.relationship-metric span, .relationship-metric strong { display: block; }
.relationship-metric span { color: rgba(255, 255, 255, 0.7); font-size: 0.63rem; letter-spacing: 0.05em; text-transform: uppercase; }
.relationship-metric strong { margin-top: 0.35rem; color: #fff; font-family: var(--font-display); line-height: 1.15; overflow-wrap: anywhere; }
.relationship-summary-note { grid-column: 1 / -1; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.relationship-disclaimer { margin: 1rem 0 3.5rem; padding: 1rem 1.25rem; color: var(--ink-soft); background: #efdca9; border: 1px solid rgba(23, 51, 47, 0.14); border-radius: 1rem; font-size: 0.8rem; }
.relationship-disclaimer strong { color: var(--ink); }
.relationship-mechanisms { margin-bottom: 4rem; }
.relationship-mechanism-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.relationship-mechanism-card { min-height: 220px; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.3rem; background: var(--paper-light); }
.relationship-mechanism-card.electromagnetic { background: #f1d3c7; }
.relationship-mechanism-card.companionship { background: #dce8df; }
.relationship-mechanism-card.compromise { background: #efdca9; }
.relationship-mechanism-card.dominance { background: #e4d9e9; }
.relationship-mechanism-card.parallel_gate { background: #d9e6ee; }
.relationship-mechanism-card h3 { margin: 1rem 0 0.4rem; font-size: 1.5rem; }
.relationship-mechanism-card p { font-size: 0.82rem; }
.relationship-tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.relationship-tag-list li { padding: 0.4rem 0.55rem; color: var(--ink); background: rgba(255, 255, 255, 0.55); border-radius: 0.55rem; font-size: 0.7rem; }
.relationship-tag-list small { color: var(--ink-soft); }
.relationship-empty { margin: 0; color: var(--ink-soft); font-size: 0.78rem; }
.relationship-result-block { margin-top: 4rem; }
.relationship-centers { margin-top: 1.5rem; }
.relationship-center-table { overflow: hidden; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--paper-light); }
.relationship-center-row { display: grid; grid-template-columns: 0.45fr 1.55fr; gap: 1rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.relationship-center-row:last-child { border-bottom: 0; }
.relationship-center-row strong { font-family: var(--font-display); }
.center-state { color: var(--ink-soft); font-size: 0.78rem; }
.center-state.relationship-created { color: var(--coral); font-weight: 700; }
.center-state.a-conditions-b, .center-state.b-conditions-a { color: var(--teal); font-weight: 700; }
.relationship-channel-list { margin-top: 1.5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(255, 253, 248, 0.72); }
.relationship-channel-list h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.relationship-composite-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.relationship-composite-item { display: flex; min-width: 0; flex-direction: column; gap: 0.25rem; padding: 0.8rem; border-radius: 0.8rem; background: #dce8df; }
.relationship-composite-item:nth-child(3n+2) { background: #f1d3c7; }
.relationship-composite-item:nth-child(3n) { background: #efdca9; }
.relationship-composite-item strong { font-family: var(--font-display); font-size: 1.1rem; }
.relationship-composite-item span { color: var(--teal); font-size: 0.68rem; font-weight: 700; }
.relationship-composite-item small { color: var(--ink-soft); font-size: 0.65rem; }
.relationship-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.relationship-person-result { display: flex; min-width: 0; flex-direction: column; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1.4rem; background: var(--paper-light); }
.relationship-person-result h3 { margin-bottom: 0.25rem; font-size: 1.7rem; }
.relationship-birth-summary { min-height: 2.5rem; font-size: 0.72rem; }
.relationship-person-body { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 0.9rem; }
.relationship-chart-frame { display: flex; min-width: 0; height: 500px; align-items: center; justify-content: center; padding: 0.5rem; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 1rem; }
.relationship-chart-frame svg { display: block; width: auto; max-width: 100%; height: 100%; }
.relationship-person-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.relationship-person-metrics .relationship-metric { padding: 0.7rem; background: #dce8df; }
.relationship-person-metrics .relationship-metric:nth-child(2n) { background: #f1d3c7; }
.relationship-person-metrics .relationship-metric span { color: var(--ink-soft); }
.relationship-person-metrics .relationship-metric strong { color: var(--ink); font-size: 0.9rem; }
.relationship-explainer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.relationship-explainer-grid .feature-panel { min-height: 250px; }
@keyframes relationship-spin { to { transform: rotate(360deg); } }

.couple-chart-section { padding-top: 2rem; }
.couple-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.couple-person-card { min-width: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--paper-light); box-shadow: var(--shadow); }
.couple-person-card:nth-child(2) { background: #f3e2dc; }
.couple-person-heading h2 { margin: 0.5rem 0 0.25rem; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 0.98; overflow-wrap: anywhere; }
.couple-person-heading p { margin-bottom: 1rem; color: var(--ink-soft); font-size: 0.78rem; }
.couple-chart-frame { display: flex; height: 520px; align-items: center; justify-content: center; padding: 0.5rem; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 1rem; }
.couple-chart-frame img { display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.couple-person-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin: 1rem 0 0; }
.couple-person-facts div { min-width: 0; padding: 0.7rem; background: #dce8df; border-radius: 0.7rem; }
.couple-person-facts div:nth-child(2n) { background: #f1d3c7; }
.couple-person-facts dt { color: var(--ink-soft); font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; }
.couple-person-facts dd { margin: 0.2rem 0 0; color: var(--ink); font-size: 0.75rem; overflow-wrap: anywhere; }
.couple-summary { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: end; }
.couple-summary h2 { color: #fff; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 0.95; }
.couple-summary p { color: rgba(255, 255, 255, 0.78); }
.couple-summary-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.45rem; margin: 0; }
.couple-summary-metrics div { min-width: 0; padding: 0.75rem; background: rgba(255, 255, 255, 0.1); border-radius: 0.7rem; }
.couple-summary-metrics dt { color: rgba(255, 255, 255, 0.7); font-size: 0.58rem; line-height: 1.3; }
.couple-summary-metrics dd { margin: 0.25rem 0 0; color: #fff; font-family: var(--font-display); font-size: 1.4rem; }
.couple-mechanism-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.couple-mechanism-card { min-height: 250px; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--paper-light); }
.couple-mechanism-card.electromagnetic { background: #f1d3c7; }
.couple-mechanism-card.companionship { background: #dce8df; }
.couple-mechanism-card.compromise { background: #efdca9; }
.couple-mechanism-card.dominance { background: #e4d9e9; }
.couple-mechanism-card.parallel_gate { background: #d9e6ee; }
.couple-mechanism-card h3 { margin: 1rem 0 0.4rem; font-size: 1.5rem; }
.couple-mechanism-card p { font-size: 0.82rem; }
.couple-mechanism-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.couple-mechanism-card li { display: flex; min-width: 0; flex-direction: column; gap: 0.2rem; padding: 0.55rem; background: rgba(255, 255, 255, 0.48); border-radius: 0.55rem; }
.couple-mechanism-card li strong { font-family: var(--font-display); font-size: 0.9rem; }
.couple-mechanism-card li span { color: var(--ink-soft); font-size: 0.62rem; overflow-wrap: anywhere; }
.couple-empty { color: var(--ink-soft); font-size: 0.75rem; }
.couple-channel-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.couple-channel-list li { display: flex; min-width: 0; flex-direction: column; gap: 0.25rem; padding: 0.8rem; border-radius: 0.8rem; background: #dce8df; }
.couple-channel-list li:nth-child(3n + 2) { background: #f1d3c7; }
.couple-channel-list li:nth-child(3n) { background: #efdca9; }
.couple-channel-list li strong { font-family: var(--font-display); font-size: 1.1rem; }
.couple-channel-list li span { color: var(--teal); font-size: 0.68rem; font-weight: 700; }
.couple-recommendation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.couple-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.couple-index-card { min-width: 0; min-height: 210px; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--paper-light); transition: transform 180ms ease, box-shadow 180ms ease; }
.couple-index-card:nth-child(3n + 2) { background: #f3e2dc; }
.couple-index-card:nth-child(3n) { background: #dce8df; }
.couple-index-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.couple-index-card a { display: flex; height: 100%; flex-direction: column; color: var(--ink); text-decoration: none; }
.couple-index-card h2 { margin: 0.7rem 0 0.5rem; font-size: 1.65rem; line-height: 1.05; overflow-wrap: anywhere; }
.couple-index-card p { margin-bottom: 1rem; color: var(--ink-soft); font-size: 0.76rem; }
.couple-index-card .card-link { margin-top: auto; color: var(--teal); font-size: 0.72rem; font-weight: 700; }
.celebrity-reading-cta { padding-top: 0; }
.celebrity-reading-cta .cta-band { display: block; padding: 2.5rem; background: var(--sun); }
.celebrity-reading-cta .cta-band h2 { margin: 0.5rem 0; color: var(--ink); }
.celebrity-reading-cta .cta-band p { max-width: 620px; margin: 0; color: var(--ink-soft); }
.reading-cta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.reading-cta-card { display: flex; min-width: 0; min-height: 220px; flex-direction: column; padding: 1.25rem; color: var(--ink); background: var(--paper-light); border: 1px solid var(--line); border-radius: 1.1rem; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.reading-cta-card:nth-child(2) { background: #dce8df; }
.reading-cta-card:nth-child(3) { background: #f1d3c7; }
.reading-cta-card:nth-child(4) { background: #efdca9; }
.reading-cta-card:hover, .reading-cta-card:focus-visible { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.reading-cta-card .offer-type { margin-bottom: 1rem; }
.reading-cta-card h3 { margin-bottom: 0.55rem; font-size: 1.25rem; line-height: 1.1; }
.reading-cta-card p { color: var(--ink-soft); font-size: 0.75rem; }
.reading-cta-card .card-link { margin-top: auto; }
.reading-cta-social { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1rem; padding: 0.85rem 1.1rem; color: var(--teal); background: var(--paper-light); border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-decoration: none; }
.reading-cta-social:hover, .reading-cta-social:focus-visible { color: var(--ink); background: #dce8df; }
.reading-cta-social .instagram-mark { width: 1.25rem; height: 1.25rem; }

/* Keep the relationship form's four date/time controls visually aligned with the free chart form. */
.relationship-field input[type='text'], .relationship-field input[type='email'], .relationship-field input[type='date'], .relationship-field input[type='time'] {
    min-height: 3.4rem;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 1rem;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.relationship-field input:focus { background: #fff; }
.relationship-input-shell input { padding-right: 1.25rem !important; }
.relationship-input-icon { display: none; }
.relationship-field input[type='date']::-webkit-calendar-picker-indicator, .relationship-field input[type='time']::-webkit-calendar-picker-indicator { opacity: 0.65; cursor: pointer; }

@media (max-width: 991px) {
    .site-nav .navbar-collapse {
        margin-top: 0.75rem;
        padding: 1rem;
        background: var(--paper-light);
        border: 1px solid var(--line);
        border-radius: 1.2rem;
        box-shadow: var(--shadow);
    }

    .language-item {
        margin: 0.4rem 0 0.7rem;
    }

    .hero-home { padding-top: 9rem; }
    .hero-visual { margin: 3rem auto 0; }
    .step-grid, .offer-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .offer-card.featured { transform: none; }
    .responsible-note, .contact-layout, .unsubscribe-layout { grid-template-columns: 1fr; gap: 2rem; }
    .faq-item { grid-template-columns: 1fr; gap: 0.5rem; }
    .celebrity-grid { grid-template-columns: 1fr 1fr; }
    .celebrity-channels { grid-template-columns: 1fr 1fr; }
    .life-timeline { grid-template-columns: 1fr; }
    .accuracy-comparison { grid-template-columns: 1fr; }
    .recommendation-heading { grid-template-columns: 1fr; gap: 1.2rem; }
    .relationship-form-heading, .relationship-summary { grid-template-columns: 1fr; display: grid; align-items: start; }
    .relationship-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .relationship-email-field { grid-column: 1 / -1; }
    .relationship-explainer-grid { grid-template-columns: 1fr 1fr; }
    .couple-summary { grid-template-columns: 1fr; align-items: start; }
    .couple-recommendation-grid, .couple-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .couple-channel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reading-cta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .hero-copy h1, .page-hero h1 { font-size: clamp(2.8rem, 15vw, 4.7rem); }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
    .trust-item:last-child { border-bottom: 0; }
    .feature-grid { grid-template-columns: 1fr; }
    .section-block { padding: 5rem 0; }
    .cta-band { align-items: flex-start; flex-direction: column; padding: 2rem; }
    .footer-grid { align-items: flex-start; flex-direction: column; }
    .chart-page .chart-properties { grid-template-columns: 1fr; }
    .chart-page .chart-form, .chart-seo-copy { padding: 1.35rem; }
    .lead-name-fields { grid-template-columns: 1fr; gap: 0; }
    .archive-key, .celebrity-grid, .reading-grid, .activation-band, .celebrity-channels, .celebrity-pagination, .life-timeline, .accuracy-comparison, .recommendation-grid, .story-prompt { grid-template-columns: 1fr; }
    .celebrity-hero h1 { font-size: clamp(3.2rem, 18vw, 5.5rem); }
    .celebrity-core { grid-template-columns: 1fr; }
    .relationship-form { padding: 1.25rem; }
    .relationship-person-grid, .relationship-mechanism-grid, .relationship-people { grid-template-columns: 1fr; }
    .relationship-metrics, .relationship-composite-list { grid-template-columns: 1fr 1fr; }
    .relationship-contact-grid, .relationship-date-grid { grid-template-columns: 1fr; }
    .unsubscribe-card { padding: 1.35rem; }
    .relationship-email-field { grid-column: auto; }
    .relationship-chart-frame { height: 420px; }
    .relationship-explainer-grid { grid-template-columns: 1fr; }
    .relationship-center-row { grid-template-columns: 1fr; gap: 0.2rem; }
    .couple-chart-grid, .couple-mechanism-grid, .couple-recommendation-grid, .couple-index-grid { grid-template-columns: 1fr; }
    .couple-chart-frame { height: 420px; }
    .couple-person-facts, .couple-channel-list { grid-template-columns: 1fr 1fr; }
    .couple-summary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reading-cta-grid { grid-template-columns: 1fr; }
    .celebrity-reading-cta .cta-band { padding: 2rem; }
}

/* C-section birth time explorer */
.birth-explorer-page {
    background:
        radial-gradient(circle at 8% 18%, rgba(208, 117, 79, 0.12), transparent 24rem),
        radial-gradient(circle at 92% 38%, rgba(23, 107, 97, 0.1), transparent 28rem),
        var(--paper);
}

.birth-explorer-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 9vw, 8rem) 0 4rem;
}

.birth-explorer-hero::after {
    content: "";
    position: absolute;
    right: -8rem;
    bottom: -12rem;
    width: 34rem;
    height: 34rem;
    border: 1px solid rgba(23, 107, 97, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgba(23, 107, 97, 0.035), 0 0 0 8rem rgba(208, 117, 79, 0.025);
}

.birth-explorer-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 7rem);
}

.birth-explorer-hero h1 {
    max-width: 880px;
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.94;
}

.birth-explorer-hero p {
    max-width: 720px;
    margin-bottom: 2rem;
    color: var(--ink-soft);
    font-size: clamp(1rem, 2vw, 1.28rem);
}

.birth-explorer-orbit {
    position: relative;
    display: grid;
    width: clamp(12rem, 23vw, 20rem);
    aspect-ratio: 1;
    place-content: center;
    justify-self: center;
    color: #fff;
    background: var(--teal);
    border-radius: 50%;
    box-shadow: 0 2rem 5rem rgba(23, 51, 47, 0.22);
}

.birth-explorer-orbit::before,
.birth-explorer-orbit i {
    content: "";
    position: absolute;
    inset: -1.25rem;
    border: 2px dashed rgba(208, 117, 79, 0.72);
    border-radius: 50%;
    animation: explorer-orbit 24s linear infinite;
}

.birth-explorer-orbit i {
    inset: -1.55rem auto auto 24%;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--coral);
    border: 4px solid var(--paper);
    animation: none;
}

.birth-explorer-orbit span { font-family: var(--font-display); font-size: clamp(4rem, 8vw, 7rem); line-height: 0.8; }
.birth-explorer-orbit small { margin-top: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-align: center; text-transform: uppercase; }

@keyframes explorer-orbit { to { transform: rotate(360deg); } }

.birth-medical-notice {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 13rem 1fr;
    gap: 1.5rem;
    margin-top: -1rem;
    padding: 1.5rem 1.75rem;
    color: #fff;
    background: var(--ink);
    border-left: 0.4rem solid var(--coral);
    border-radius: 1.25rem;
}

.birth-medical-notice strong { font-family: var(--font-display); font-size: 1.15rem; }
.birth-medical-notice p { margin: 0; color: rgba(255, 255, 255, 0.78); }

.birth-explorer-controls,
.calendar-shell,
.explorer-results,
.selected-chart {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 1.75rem;
    box-shadow: 0 1.5rem 4rem rgba(23, 51, 47, 0.08);
}

.birth-explorer-controls-heading,
.calendar-heading,
.explorer-results-heading,
.selected-chart-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.birth-explorer-controls-heading h2,
.calendar-heading h2,
.explorer-results-heading h2,
.selected-chart-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }

.dataset-status,
.result-caveat,
.premium-label {
    display: inline-flex;
    padding: 0.5rem 0.8rem;
    color: var(--teal-dark);
    background: rgba(23, 107, 97, 0.1);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.birth-explorer-form {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1.15fr) auto;
    align-items: end;
    gap: 1rem;
}

.birth-explorer-field label,
.explorer-transit-form label {
    display: grid;
    gap: 0.5rem;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.birth-explorer-field input,
.birth-explorer-field select,
.explorer-transit-form input {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.8rem 0.95rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(23, 51, 47, 0.22);
    border-radius: 0.8rem;
    font-family: var(--font-body);
}

.birth-explorer-field input:focus,
.birth-explorer-field select:focus,
.explorer-transit-form input:focus { outline: 3px solid rgba(23, 107, 97, 0.16); border-color: var(--teal); }
.birth-explorer-field small { display: block; margin-top: 0.45rem; color: var(--ink-soft); font-size: 0.72rem; line-height: 1.4; }
.explorer-search-button { position: relative; min-height: 3.25rem; border: 0; white-space: nowrap; }
.explorer-search-button.is-loading { padding-right: 3rem; cursor: wait; }
.explorer-search-button.is-loading span { opacity: 0; }
.explorer-search-button.is-loading::after { content: ""; position: absolute; top: 50%; right: 1.15rem; width: 1rem; height: 1rem; margin-top: -0.5rem; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: explorer-orbit 0.75s linear infinite; }

.explorer-quick-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.25rem; }
.explorer-quick-filters > span { margin-right: 0.2rem; color: var(--ink-soft); font-size: 0.8rem; font-weight: 700; }
.explorer-quick-filters button { padding: 0.42rem 0.7rem; color: var(--teal-dark); background: transparent; border: 1px solid rgba(23, 107, 97, 0.25); border-radius: 999px; font-size: 0.76rem; cursor: pointer; }
.explorer-quick-filters button:hover { color: #fff; background: var(--teal); }

.locked-filter {
    display: grid;
    width: 100%;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    color: var(--ink);
    text-align: left;
    background: linear-gradient(90deg, rgba(208, 117, 79, 0.08), rgba(23, 107, 97, 0.06));
    border: 1px dashed rgba(23, 51, 47, 0.3);
    border-radius: 0.9rem;
    cursor: pointer;
}

.locked-filter small { display: block; margin-top: 0.2rem; color: var(--ink-soft); }
.lock-symbol { display: grid; width: 2rem; height: 2rem; place-items: center; background: #fff; border-radius: 50%; font-size: 0.9rem; }

.calendar-shell { margin-top: 1.5rem; scroll-margin-top: 5.5rem; }
.calendar-heading > p { max-width: 350px; margin: 0; color: var(--ink-soft); text-align: right; }
.explorer-calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.25rem; padding: 0.35rem 0 1rem; }
.calendar-month { min-width: 0; padding: 1rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: 1.1rem; }
.calendar-month h3 { margin: 0 0 0.85rem; font-size: 1.15rem; text-align: center; }
.calendar-weekdays,
.calendar-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem; }
.calendar-weekdays { margin-bottom: 0.3rem; }
.calendar-weekdays span { padding: 0.25rem 0; color: var(--ink-soft); font-size: 0.64rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.calendar-date-cell { position: relative; display: grid; min-width: 0; min-height: 4.25rem; place-content: center; padding: 0.35rem 0.15rem; color: var(--ink); text-align: center; background: #fff; border: 1px solid rgba(23, 51, 47, 0.1); border-radius: 0.7rem; font-family: var(--font-body); }
button.calendar-date-cell { width: 100%; cursor: pointer; }
.calendar-date-cell strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1; }
.calendar-date-cell small { display: block; max-width: 100%; margin-top: 0.3rem; color: inherit; font-size: 0.55rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.calendar-date-cell i { position: absolute; left: 50%; bottom: -0.35rem; z-index: 1; padding: 0.13rem 0.34rem; color: #fff; background: var(--coral); border-radius: 999px; font-size: 0.48rem; font-style: normal; transform: translateX(-50%); white-space: nowrap; }
.calendar-date-cell.is-outside-range,
.calendar-date-cell.is-blank { color: rgba(23, 51, 47, 0.2); background: transparent; border-color: transparent; }
.calendar-date-cell.has-no-matches { color: rgba(23, 51, 47, 0.32); background: rgba(23, 51, 47, 0.025); border-color: transparent; }
.calendar-date-cell.has-matches { color: #fff; background: var(--teal); border-color: var(--teal); box-shadow: 0 0.5rem 1.2rem rgba(23, 107, 97, 0.16); transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.calendar-date-cell.has-matches:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 0.75rem 1.4rem rgba(23, 107, 97, 0.24); }
.calendar-date-cell.is-selected { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 3px rgba(208, 117, 79, 0.2), 0 0.65rem 1.4rem rgba(208, 117, 79, 0.22); }
.calendar-filter-status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; padding: 0.85rem 1rem; color: var(--teal-dark); background: rgba(23, 107, 97, 0.08); border-radius: 0.85rem; font-size: 0.82rem; font-weight: 700; }
.calendar-filter-status button { padding: 0.5rem 0.75rem; color: #fff; background: var(--teal); border: 0; border-radius: 999px; font: inherit; cursor: pointer; }

.locked-calendar-tail { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; margin-top: 0.75rem; padding: 1.15rem; background: rgba(23, 51, 47, 0.05); border-radius: 1rem; }
.locked-calendar-tail p { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.84rem; }

.explorer-message { min-height: 1.5rem; margin: 1.25rem 0; color: var(--ink-soft); text-align: center; }
.explorer-message.error { color: #9c382f; }
.explorer-message.success { color: var(--teal-dark); }
.explorer-message.loading::before { content: ""; display: inline-block; width: 0.85rem; height: 0.85rem; margin-right: 0.55rem; border: 2px solid rgba(23, 107, 97, 0.25); border-top-color: var(--teal); border-radius: 50%; animation: explorer-orbit 0.8s linear infinite; }

.explorer-results,
.selected-chart { margin-top: 1.5rem; }
.explorer-results { transform-origin: 50% 0; transition: opacity 180ms ease; }
.explorer-results.is-updating { opacity: 0.58; }
.explorer-results.is-revealing { animation: explorer-results-reveal 420ms cubic-bezier(0.2, 0.75, 0.25, 1); }
.birth-time-results-grid.is-page-entering .birth-time-result-card { opacity: 0; animation: explorer-card-enter 360ms ease forwards; }
.birth-time-results-grid.is-page-entering .birth-time-result-card:nth-child(2n) { animation-delay: 45ms; }
.birth-time-results-grid.is-page-entering .birth-time-result-card:nth-child(3n) { animation-delay: 90ms; }
@keyframes explorer-results-reveal { from { opacity: 0; transform: translateY(0.8rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes explorer-card-enter { from { opacity: 0; transform: translateY(0.45rem); } to { opacity: 1; transform: translateY(0); } }
.explorer-results-heading > div { min-width: 0; }
.explorer-results-heading p { margin: 0.45rem 0 0; color: var(--ink-soft); }
.birth-time-results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.birth-time-result-card { display: flex; min-width: 0; flex-direction: column; padding: 1.1rem; background: var(--paper-light); border: 1px solid var(--line); border-radius: 1.1rem; }
.result-time span { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.08rem; line-height: 1.35; }
.result-time small { display: block; margin-top: 0.3rem; color: var(--ink-soft); font-size: 0.67rem; overflow-wrap: anywhere; }
.result-properties { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 1rem 0; }
.result-properties span { min-width: 0; padding: 0.6rem; background: #fff; border-radius: 0.65rem; }
.result-properties small,
.selected-chart-properties small { display: block; color: var(--ink-soft); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.result-properties strong { display: block; margin-top: 0.2rem; font-size: 0.78rem; overflow-wrap: anywhere; }
.birth-time-result-card > button { margin-top: auto; padding: 0.75rem; color: #fff; background: var(--ink); border: 0; border-radius: 0.75rem; font-weight: 700; cursor: pointer; }
.birth-time-result-card > button:hover { background: var(--teal); }
.empty-results { grid-column: 1 / -1; padding: 3rem; color: var(--ink-soft); text-align: center; background: var(--paper-light); border-radius: 1rem; }
.explorer-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.explorer-pagination button { padding: 0.65rem 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.explorer-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

.selected-chart { scroll-margin-top: 6rem; }
.selected-chart-utc { color: var(--ink-soft); }
.selected-chart-properties { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 1.5rem; }
.selected-chart-properties span { min-width: 0; padding: 0.85rem; background: var(--paper-light); border-radius: 0.75rem; }
.selected-chart-properties strong { display: block; margin-top: 0.25rem; font-size: 0.82rem; overflow-wrap: anywhere; }

.explorer-transit-controls { margin-bottom: 1.5rem; padding: 1.35rem; background: linear-gradient(120deg, rgba(23, 107, 97, 0.08), rgba(208, 117, 79, 0.1)); border: 1px solid rgba(23, 107, 97, 0.18); border-radius: 1.1rem; }
.explorer-transit-controls .transit-header { margin-bottom: 1rem; text-align: left; }
.explorer-transit-controls .transit-header h3 { margin: 0; color: var(--ink); font-size: 1.45rem; }
.explorer-transit-controls .transit-header p { margin: 0.3rem 0 0; color: var(--ink-soft); }
.explorer-transit-form { display: grid; grid-template-columns: minmax(150px, 0.65fr) minmax(130px, 0.45fr) 1fr; align-items: end; gap: 0.75rem; }
.explorer-transit-buttons { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.explorer-transit-buttons button,
.explorer-transit-timeline button { padding: 0.72rem 0.9rem; color: var(--teal-dark); background: #fff; border: 1px solid rgba(23, 107, 97, 0.24); border-radius: 0.7rem; font-weight: 700; cursor: pointer; }
.explorer-transit-buttons button.active { color: #fff; background: var(--teal); }
.explorer-transit-timeline { margin-top: 1rem; padding: 1rem; background: rgba(255, 255, 255, 0.7); border-radius: 0.85rem; }
.explorer-transit-timeline > div:first-child { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.explorer-timeline-track { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.explorer-timeline-track input { width: 100%; accent-color: var(--teal); }
.explorer-transit-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(23, 51, 47, 0.12); }
.explorer-transit-legend span { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-soft); font-size: 0.75rem; }
.explorer-transit-legend i { width: 0.8rem; height: 0.8rem; border-radius: 0.2rem; }
.legend-black { background: #000; }.legend-red { background: #e62b2b; }.legend-green { background: #2f9e8f; }.legend-gold { background: #e5a13e; }

.selected-chart-layout { display: grid; grid-template-columns: minmax(140px, 0.6fr) minmax(300px, 1.4fr) minmax(140px, 0.6fr); align-items: start; gap: 1rem; }
.activation-column { padding: 1rem; background: var(--paper-light); border-radius: 1rem; }
.activation-column h3 { margin-bottom: 0.75rem; font-size: 1rem; }
.activation-column > div > div { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-size: 0.72rem; }
.selected-bodygraph { min-width: 0; text-align: center; }
.selected-bodygraph svg { display: block; width: min(100%, 560px); height: auto; margin: 0 auto; }
.selected-transit-info { margin-top: 1rem; padding: 1rem; text-align: left; background: rgba(23, 107, 97, 0.07); border-radius: 1rem; }
.transit-activation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.transit-activation-grid span { display: flex; justify-content: space-between; gap: 0.4rem; padding: 0.5rem; background: #fff; border-radius: 0.55rem; font-size: 0.72rem; }
.selected-transit-info h4 { margin: 1rem 0 0.5rem; font-size: 0.9rem; }
.selected-transit-info ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: 0.8rem; }

.extended-explorer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.extended-explorer-grid h2 { max-width: 760px; font-size: clamp(2.4rem, 5vw, 5rem); }
.extended-feature-list { display: grid; gap: 0.8rem; }
.extended-feature-list > span { padding: 1rem; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0.9rem; }
.extended-feature-list b { display: block; margin-bottom: 0.25rem; color: #fff; }

@media (min-width: 992px) and (max-width: 1450px) {
    .site-nav .navbar-brand { font-size: 0.92rem; }
    .site-nav .nav-link { padding-inline: 0.55rem !important; font-size: 0.78rem; }
    .site-nav .navbar-nav { gap: 0.08rem; }
}

@media (max-width: 991px) {
    .birth-explorer-hero-grid { grid-template-columns: 1fr; }
    .birth-explorer-orbit { width: 12rem; justify-self: start; }
    .birth-explorer-form { grid-template-columns: 1fr 1fr; }
    .explorer-search-button { width: 100%; grid-column: 1 / -1; }
    .birth-time-results-grid { grid-template-columns: 1fr 1fr; }
    .selected-chart-properties { grid-template-columns: repeat(3, 1fr); }
    .selected-chart-layout { grid-template-columns: 1fr 1fr; }
    .selected-bodygraph { grid-column: 1 / -1; grid-row: 1; }
    .explorer-transit-form { grid-template-columns: 1fr 1fr; }
    .explorer-transit-buttons { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
    .birth-explorer-hero { padding-top: 3.5rem; }
    .birth-explorer-hero h1 { font-size: clamp(2.7rem, 15vw, 4.4rem); }
    .birth-medical-notice,
    .birth-explorer-form,
    .extended-explorer-grid { grid-template-columns: 1fr; }
    .birth-explorer-controls-heading,
    .calendar-heading,
    .explorer-results-heading,
    .selected-chart-heading { display: block; }
    .dataset-status,
    .result-caveat { margin-top: 0.9rem; }
    .calendar-heading > p { margin-top: 0.7rem; text-align: left; }
    .explorer-calendar { grid-template-columns: minmax(0, 1fr); }
    .calendar-month { padding: 0.7rem; }
    .calendar-weekdays, .calendar-month-grid { gap: 0.18rem; }
    .calendar-date-cell { min-height: 3.8rem; border-radius: 0.55rem; }
    .calendar-filter-status { align-items: stretch; flex-direction: column; }
    .locked-calendar-tail { grid-template-columns: auto 1fr; }
    .locked-calendar-tail a { grid-column: 1 / -1; text-align: center; }
    .birth-time-results-grid { grid-template-columns: 1fr; }
    .selected-chart-properties { grid-template-columns: 1fr 1fr; }
    .selected-chart-layout { grid-template-columns: 1fr; }
    .activation-column { display: none; }
    .explorer-transit-form { grid-template-columns: 1fr; }
    .explorer-transit-buttons { grid-column: auto; }
    .transit-activation-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .birth-explorer-orbit::before,
    .explorer-message.loading::before { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* CJK glyphs need more vertical breathing room than the compact Latin display scale. */
html[lang="zh-Hans"],
html[lang="zh-Hans"] body.performance-home {
    --font-display: 'Noto Sans CJK SC', 'Noto Sans SC', 'Droid Sans Fallback', sans-serif;
    --font-body: 'Noto Sans CJK SC', 'Noto Sans SC', 'Droid Sans Fallback', sans-serif;
}

html[lang="zh-Hant"],
html[lang="zh-Hant"] body.performance-home {
    --font-display: 'Noto Sans CJK TC', 'Noto Sans TC', 'Droid Sans Fallback', sans-serif;
    --font-body: 'Noto Sans CJK TC', 'Noto Sans TC', 'Droid Sans Fallback', sans-serif;
}

html[lang^="zh"] body {
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: loose;
}

html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3,
html[lang^="zh"] h4,
html[lang^="zh"] h5,
html[lang^="zh"] h6 {
    letter-spacing: 0;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

html[lang^="zh"] .site-nav .nav-link,
html[lang^="zh"] .language-select,
html[lang^="zh"] .eyebrow,
html[lang^="zh"] .feature-kicker,
html[lang^="zh"] .chart-caption,
html[lang^="zh"] .recommendation-card > span,
html[lang^="zh"] .story-prompt > span {
    letter-spacing: 0.02em;
    line-height: 1.5;
    text-transform: none;
}

html[lang^="zh"] .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.9rem, 6.2vw, 5.9rem);
    line-height: 1.18;
}

html[lang^="zh"] .hero-lede,
html[lang^="zh"] .section-heading p,
html[lang^="zh"] .page-hero p {
    max-width: 100%;
}

html[lang^="zh"] .hero-actions {
    align-items: stretch;
}

html[lang^="zh"] .btn-brand,
html[lang^="zh"] .btn-outline-brand {
    line-height: 1.5;
    text-align: center;
}

html[lang^="zh"] .chart-caption {
    text-transform: none;
}

html[lang^="zh"] .trust-item,
html[lang^="zh"] .trust-item strong {
    line-height: 1.55;
}

html[lang^="zh"] .step-card,
html[lang^="zh"] .feature-panel,
html[lang^="zh"] .offer-card {
    min-height: 300px;
}

html[lang^="zh"] .feature-kicker {
    margin-bottom: 2rem;
}

html[lang^="zh"] .section-heading h2,
html[lang^="zh"] .responsible-note h2,
html[lang^="zh"] .cta-band h2,
html[lang^="zh"] .page-hero h1,
html[lang^="zh"] .celebrity-hero h1,
html[lang^="zh"] .recommendation-heading h2 {
    line-height: 1.2;
}

html[lang^="zh"] .page-hero h1,
html[lang^="zh"] .celebrity-hero h1 {
    max-width: 100%;
}

html[lang^="zh"] .celebrity-core div {
    min-height: 130px;
}

html[lang^="zh"] .celebrity-core strong,
html[lang^="zh"] .reading-card h3,
html[lang^="zh"] .activation-band strong,
html[lang^="zh"] .recommendation-card h3,
html[lang^="zh"] .life-milestone h3,
html[lang^="zh"] .accuracy-card h3 {
    line-height: 1.35;
}

@media (max-width: 767px) {
    html[lang^="zh"] .hero-copy h1,
    html[lang^="zh"] .page-hero h1 {
        font-size: clamp(2.35rem, 12vw, 4rem);
        line-height: 1.22;
    }

    html[lang^="zh"] .section-heading h2,
    html[lang^="zh"] .cta-band h2,
    html[lang^="zh"] .responsible-note h2 {
        font-size: clamp(2rem, 10vw, 3.4rem);
    }

    html[lang^="zh"] .step-card,
    html[lang^="zh"] .feature-panel,
    html[lang^="zh"] .offer-card {
        min-height: 0;
    }

    html[lang^="zh"] .trust-item {
        padding-block: 1.1rem;
    }
}
