/* ================================================================
   ANIMAL PAGE ENHANCED — Supplementary Styles v3
   ================================================================
   Loads AFTER animal-page.css. Only contains styles for NEW blocks:
   - Soul Profile (radar chart + narrative layout)
   - Lucky/Unlucky Fortune Card
   - Compatibility Scoreboard (horizontal bars)
   - Health & Wellness cards
   - Famous People grid
   - Mythology & Culture cards
   - Forecast Gauges
   - Earthly Branch badge
   - Scroll-triggered animations
   ================================================================ */


/* ── SOUL PROFILE (Radar Chart + Narrative) ────────────────────── */

.ap-soul-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.ap-radar-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.ap-radar-chart {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.ap-soul-narrative {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ap-soul-narrative p,
p.ap-soul-para {
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
    font-size: 0.97rem;
    margin: 0;
}

.ap-soul-narrative p:first-child,
p.ap-soul-para:first-child {
    color: rgba(255,255,255,0.9);
    font-size: 1.02rem;
}

@media (max-width: 768px) {
    .ap-soul-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .ap-radar-wrap {
        order: -1;
    }
    .ap-radar-chart {
        max-width: 320px;
    }
}


/* ── LUCKY / UNLUCKY FORTUNE CARD ──────────────────────────────── */

.ap-fortune-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.ap-fortune-side {
    padding: 2rem;
}

.ap-fortune-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12), transparent);
    align-self: stretch;
}

.ap-fortune-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
}

.ap-fortune-heading--lucky {
    color: #4caf88;
    border-color: #4caf8844;
}

.ap-fortune-heading--unlucky {
    color: #e07a5f;
    border-color: #e07a5f44;
}

.ap-fortune-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ap-fortune-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ap-fortune-icon {
    font-size: 1.3rem;
    width: 2rem;
    text-align: center;
    flex-shrink: 0;
}

.ap-fortune-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
}

.ap-fortune-value {
    display: block;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.88);
    font-weight: 500;
}

.ap-earthly-branch {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

.ap-earthly-char {
    font-size: 2.5rem;
    color: var(--animal-accent);
    line-height: 1;
}

.ap-earthly-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
}

.ap-earthly-value {
    display: block;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

@media (max-width: 640px) {
    .ap-fortune-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ap-fortune-divider {
        width: auto;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
    }
    .ap-fortune-side {
        padding: 1.5rem;
    }
}


/* ── COMPATIBILITY SCOREBOARD (Horizontal Bars) ────────────────── */

.ap-compat-scoreboard {
    margin-top: 2rem;
}

.ap-compat-scoreboard h3 {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
}

.ap-score-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ap-score-row {
    display: grid;
    grid-template-columns: 100px 1fr 44px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    opacity: 0;
    animation: fadeSlideIn 0.4s ease forwards;
}

.ap-score-row:hover {
    background: rgba(255,255,255,0.04);
}

.ap-score-animal {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
}

.ap-score-track {
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.ap-score-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ap-score-fill--animate {
    /* width is set inline, this class triggers the transition */
}

.ap-score-fill.ap-bar--high {
    background: linear-gradient(90deg, #4caf88, #66d4a8);
}

.ap-score-fill.ap-bar--mid {
    background: linear-gradient(90deg, #c9a84c, #e0c56a);
}

.ap-score-fill.ap-bar--low {
    background: linear-gradient(90deg, #e07a5f, #e8998d);
}

.ap-score-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .ap-score-row {
        grid-template-columns: 80px 1fr 36px;
        gap: 0.5rem;
    }
    .ap-score-animal {
        font-size: 0.82rem;
    }
}


/* ── HEALTH & WELLNESS CARDS ───────────────────────────────────── */

.ap-content-card--health {
    border-left: 3px solid var(--animal-accent-border);
}

.ap-content-card--health h3 {
    color: var(--animal-accent);
}


/* ── FAMOUS PEOPLE GRID ────────────────────────────────────────── */

.ap-famous-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.ap-famous-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}

.ap-famous-card:hover {
    border-color: var(--animal-accent-border);
    background: rgba(255,255,255,0.05);
}

.ap-famous-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.ap-famous-meta {
    font-size: 0.78rem;
    color: var(--animal-accent);
    opacity: 0.8;
}

.ap-famous-note {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}


/* ── MYTHOLOGY & CULTURE CARDS ─────────────────────────────────── */

.ap-myth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.ap-myth-card {
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}

.ap-myth-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.75rem 0;
    color: rgba(255,255,255,0.9);
}

.ap-myth-card p {
    font-size: 0.93rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin: 0;
}

.ap-myth-card--featured {
    border-color: var(--animal-accent-border);
    background: var(--animal-accent-subtle);
    grid-column: 1 / -1;
}

.ap-myth-card--featured h3 {
    color: var(--animal-accent);
}

@media (max-width: 640px) {
    .ap-myth-grid {
        grid-template-columns: 1fr;
    }
}


/* ── FORECAST GAUGES ───────────────────────────────────────────── */

.ap-forecast-gauges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.ap-gauge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}

.ap-gauge-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ap-gauge-bar-wrap {
    flex: 1;
    min-width: 0;
}

.ap-gauge-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.35rem;
}

.ap-gauge-track {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.ap-gauge-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--animal-accent), var(--animal-accent-hover));
    width: 0;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.ap-gauge-fill--animate {
    /* width is set inline, this class triggers the transition */
}

.ap-gauge-score {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--animal-accent);
    flex-shrink: 0;
    min-width: 2.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
    .ap-forecast-gauges {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 360px) {
    .ap-forecast-gauges {
        grid-template-columns: 1fr;
    }
}


/* ── RADAR CHART TOOLTIP & IMPROVED STYLES ─────────────────────── */

.ap-radar-wrap {
    position: relative;
}

.ap-trait-tooltip {
    position: absolute;
    z-index: 10;
    width: 220px;
    padding: 0.85rem 1rem;
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid var(--animal-accent-border);
    border-radius: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translate(-50%, -100%);
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.ap-trait-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(20, 20, 40, 0.95);
    border-right: 1px solid var(--animal-accent-border);
    border-bottom: 1px solid var(--animal-accent-border);
}

.ap-trait-tooltip-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ap-trait-tooltip-score {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--animal-accent);
    margin: 0.15rem 0 0.4rem;
    font-variant-numeric: tabular-nums;
}

.ap-trait-tooltip-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    margin: 0;
}

/* Subtle entrance animation for the data polygon */
.ap-radar-polygon {
    animation: radarFadeIn 0.8s ease-out;
}

@keyframes radarFadeIn {
    from {
        opacity: 0;
        stroke-dasharray: 2000;
        stroke-dashoffset: 2000;
    }
    to {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

/* Updated max-width for 440 viewBox */
.ap-radar-chart {
    width: 100%;
    max-width: 440px;
    height: auto;
}

@media (max-width: 768px) {
    .ap-radar-chart {
        max-width: 340px;
    }
    .ap-trait-tooltip {
        width: 190px;
        font-size: 0.9em;
    }
}


/* ── FLOATING SECTION NAVIGATOR ─────────────────────────────────── */

.ap-secnav {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.ap-secnav-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: rgba(18, 18, 36, 0.94);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ap-secnav-pill:hover {
    border-color: var(--animal-accent-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}

.ap-secnav--open .ap-secnav-pill {
    border-color: var(--animal-accent-border);
}

.ap-secnav-current {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--animal-accent);
    font-weight: 600;
}

.ap-secnav-chevron {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.35);
    transition: transform 0.2s;
}

.ap-secnav--open .ap-secnav-chevron {
    transform: rotate(180deg);
}

.ap-secnav-menu {
    background: rgba(18, 18, 36, 0.97);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0 0 0.4rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    width: 190px;
    max-height: none;
    overflow-y: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ap-secnav-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem 0.35rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.25rem;
}

.ap-secnav-menu-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
}

.ap-secnav-minimize {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: none;
    background: rgba(255,255,255,0.06);
    border-radius: 5px;
    color: rgba(255,255,255,0.4);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.ap-secnav-minimize:hover {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
}

.ap-secnav-link {
    display: block;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.12s, background 0.12s;
}

.ap-secnav-link:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.04);
}

.ap-secnav-link.active {
    color: var(--animal-accent);
}

@media (max-width: 480px) {
    .ap-secnav {
        bottom: 1rem;
        right: 1rem;
    }
    .ap-secnav-pill {
        padding: 0.5rem 0.85rem;
        font-size: 0.75rem;
    }
}


/* ── ELEMENT TYPES NAVIGATION (Compact chip strip) ─────────────── */

/* ── VERTICAL COMPACTNESS OVERRIDES ─────────────────────────────── */

.ap-hero {
    padding: 1.75rem 1rem 1.25rem !important;
}

.ap-hero-inner {
    gap: 0.55rem !important;
}

.ap-hero-identity {
    gap: 0.6rem !important;
    margin-bottom: 0 !important;
}

.ap-hero-icon {
    width: 88px !important;
    height: 88px !important;
}

h1 {
    /* only inside hero context */
}

.ap-hero-tagline {
    margin: 0.1rem 0 !important;
}

.ap-hero-traits {
    margin: 0.35rem 0 !important;
    gap: 0.4rem !important;
}

.ap-hero-pills {
    margin: 0.25rem 0 0.5rem !important;
    gap: 0.35rem !important;
}

.ap-hero-years {
    margin: 0.4rem 0 !important;
    gap: 0.3rem !important;
}

.ap-hero-calc {
    margin-top: 0.35rem !important;
}

.ap-hero-calc-label {
    margin-bottom: 0.25rem !important;
}

.ea-breadcrumb {
    margin-bottom: 0.15rem !important;
    padding: 0 !important;
}

.ea-hero-guide {
    margin-top: 0.4rem !important;
    margin-bottom: 0 !important;
}

.ap-element-nav {
    padding: 0.6rem 0 0.15rem !important;
}

.ap-element-nav-title {
    font-size: 1.05rem;
    margin: 0 0 0.15rem 0 !important;
}

.ap-element-nav-desc {
    margin: 0 0 0.5rem 0 !important;
}

.ea-back-link {
    display: inline-block;
    margin-bottom: 0.35rem;
}

/* Tighten section spacing globally on animal pages */
.ap-section {
    padding-top: 2rem !important;
    padding-bottom: 0.5rem !important;
}

.ap-label {
    margin-bottom: 0.15rem !important;
}

.ap-element-nav-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.ap-element-nav-title {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    margin: 0 0 0.3rem 0;
}

.ap-element-nav-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.ap-element-nav-strip {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ap-element-chip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    cursor: pointer;
}

.ap-element-chip:hover {
    border-color: var(--el-color, var(--animal-accent-border));
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

.ap-element-chip-emoji {
    font-size: 1rem;
    line-height: 1;
}

.ap-element-chip-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.ap-element-chip-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    line-height: 1.2;
}

.ap-element-chip-years {
    font-size: 0.65rem;
    color: var(--el-color, var(--animal-accent));
    filter: brightness(1.4);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.ap-element-chip--current {
    border-color: var(--el-color, var(--animal-accent));
    background: var(--el-color, var(--animal-accent));
    background: rgba(255,255,255,0.08);
    border-color: var(--el-color);
    cursor: default;
}

.ap-element-chip--current .ap-element-chip-name {
    color: rgba(255,255,255,0.95);
}

.ea-back-link {
    color: var(--animal-accent, #c9a84c);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.15s;
}

.ea-back-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.ea-inline-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--animal-accent, #c9a84c);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.ea-inline-link:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .ap-element-nav-strip {
        gap: 0.4rem;
    }
    .ap-element-chip {
        padding: 0.4rem 0.7rem;
    }
}


/* ── ELEMENT VARIANT COMPACT GRID ──────────────────────────────── */

.ap-variant-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.ap-variant-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid var(--variant-color, var(--animal-accent));
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.ap-variant-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(3px);
}

.ap-variant-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.ap-variant-info {
    min-width: 0;
}

.ap-variant-name {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.ap-variant-years {
    display: block;
    font-size: 0.75rem;
    color: var(--variant-color, var(--animal-accent));
    margin-top: 0.1rem;
}

.ap-variant-hook {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin: 0.35rem 0 0;
    line-height: 1.5;
}

.ap-variant-arrow {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.25);
    transition: color 0.2s, transform 0.2s;
}

.ap-variant-card:hover .ap-variant-arrow {
    color: var(--variant-color, var(--animal-accent));
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .ap-variant-card {
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
    }
    .ap-variant-arrow {
        display: none;
    }
}


/* ── DAILY HOROSCOPE TEASER CALLOUT ────────────────────────────── */

.ap-daily-teaser-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, var(--animal-accent-subtle), rgba(255,255,255,0.02));
    border: 1px solid var(--animal-accent-border);
    border-radius: 16px;
    margin-top: 1rem;
}

.ap-daily-teaser-left h2 {
    margin: 0.25rem 0 0.75rem;
    font-size: 1.3rem;
}

.ap-daily-teaser-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    max-width: 500px;
}

.ap-daily-teaser-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: var(--animal-accent);
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}

.ap-daily-teaser-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ap-daily-teaser-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap-daily-teaser-emoji {
    font-size: 4rem;
    opacity: 0.3;
}

@media (max-width: 640px) {
    .ap-daily-teaser-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .ap-daily-teaser-right {
        display: none;
    }
}


/* ── FUNNEL CTA (natural link back to main animal page) ────────── */

.ea-funnel-cta {
    margin-top: 1.25rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}

.ea-funnel-cta p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
}

.ea-funnel-cta a {
    color: var(--animal-accent);
    text-decoration: none;
    font-weight: 500;
}

.ea-funnel-cta a:hover {
    text-decoration: underline;
}

/* ── HERO GUIDE LINE (element page → main page funnel) ─────────── */

.ea-hero-guide {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

.ea-hero-guide a {
    color: var(--animal-accent);
    text-decoration: none;
    font-weight: 500;
}

.ea-hero-guide a:hover {
    text-decoration: underline;
}

/* ── TOOLTIP SCALE LEGEND ──────────────────────────────────────── */

.ap-trait-tooltip-scale {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    justify-content: center;
}

.ap-scale-step {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    white-space: nowrap;
}

.ap-scale-step--active {
    color: var(--animal-accent);
    background: var(--animal-accent-subtle);
    font-weight: 600;
}

.ap-scale-arrow {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.15);
}

/* ── TRAITS SUMMARY (always visible below chart) ───────────────── */

.ap-traits-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.ap-trait-row {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
}

.ap-trait-row-desc {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--animal-accent);
}

.ap-trait-row-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.35);
}

.ap-trait-row-insight {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.45;
    margin-top: 0.15rem;
}

@media (max-width: 600px) {
    .ap-traits-summary {
        grid-template-columns: 1fr;
    }
}