/*
Theme Name: Jupiter X Child
Version: 1.0
Description: A child theme of JupiterX
Author: Johnathan Kobé
Template: jupiterx
*/

/* =============================================================
   LEVEL10 — Jupiter X Child Theme
   Design system: Neuro-Performance (DESIGN-2.md)

   Fonts (set in Elementor Kit / Site Settings):
     Display  → Inter Tight   (h1–h3, stat values)
     Body     → Nunito Sans   (paragraphs, lists)
     Label    → Plus Jakarta Sans (chips, badges, caps labels)

   Color tokens are mapped from DESIGN-2.md; raw hex values are
   kept here because WordPress custom CSS cannot use Elementor's
   kit variables.  Update the :root block if the palette changes.
   ============================================================= */

/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
    /* Surfaces */
    --l10-bg: #0f1416;
    --l10-surface-low: #171c1e;
    --l10-surface: #1b2122;
    --l10-surface-high: #252b2d;
    --l10-surface-highest: #303638;
    --l10-outline: #869397;
    --l10-outline-variant: #3d494c;

    /* Text */
    --l10-on-surface: #dee3e5;
    --l10-on-surface-muted: #bcc9cd;

    /* Accent */
    --l10-primary: #53d6f4;
    --l10-primary-dim: #1fb6d3;
    --l10-secondary: #adc6ff;
    --l10-secondary-dim: #0566d9;
    --l10-tertiary: #ddb7ff;
    --l10-tertiary-dim: #c78dff;

    /* Button */
    --l10-btn-bg: #00C3EF;
    --l10-btn-bg-hover: #5fdcff;
    --l10-btn-text: #003640;

    /* Typography — mirrors Elementor Kit values */
    --l10-font-display: 'Inter Tight', 'Helvetica Neue', sans-serif;
    --l10-font-body: 'Nunito Sans', Arial, sans-serif;
    --l10-font-label: 'Plus Jakarta Sans', Arial, sans-serif;

    /* Radius — from DESIGN-2.md rounded scale */
    --l10-radius-sm: 0.25rem;
    /*  4px — tiny chip corners */
    --l10-radius-md: 0.5rem;
    /*  8px — inputs */
    --l10-radius-lg: 0.75rem;
    /* 12px - inputs */
    --l10-radius-xl: 1rem;
    /* 16px — buttons */
    --l10-radius-2xl: 1.5rem;
    /* 24px — cards / modules */
    --l10-radius-full: 9999px;
    /* pill */

    /* Spacing */
    --l10-space-xs: 8px;
    --l10-space-sm: 16px;
    --l10-space-md: 24px;
    --l10-space-lg: 32px;
    --l10-space-xl: 48px;

    /* Misc */
    --l10-infobox-bg: #3D3D55;
    --l10-transition: 0.2s ease-in-out;

    /* ==========================================================================
   1. LEVEL10 Unified Neurotransmitter & Terpene Theme Stylesheet (Corrected)
   Designed for dark-mode surfaces (#0f1416 / #171c1e) with high contrast
   ========================================================================== */

    /* Yellow / Gold Range: Glutamate (Excitatory Opposite to GABA) */
    --l10-nt-glutamate: #FACC15;
    --l10-nt-glutamate-bg: #713F12;

    /* Orange Range: Dopamine <-> Caryophyllene (Dopamine + Glutamate) */
    --l10-nt-dopamine: #FF8A2B;
    --l10-nt-dopamine-bg: #8A3408;
    --l10-terp-caryophyllene: #FFA73B;
    --l10-terp-caryophyllene-bg: #7C3A0A;

    /* Red / Crimson Range: Noradrenaline <-> Humulene */
    --l10-nt-noradrenaline: #FF3366;
    --l10-nt-noradrenaline-bg: #881337;
    --l10-terp-humulene: #FF5470;
    --l10-terp-humulene-bg: #7F1D2D;

    /* Green Range: Acetylcholine <-> Pinene */
    --l10-nt-acetylcholine: #00CC88;
    --l10-nt-acetylcholine-bg: #065F46;
    --l10-terp-pinene: #34D399;
    --l10-terp-pinene-bg: #185F45;

    /* Teal / Blue-Green Range: Serotonin <-> Terpinolene & Limonene */
    --l10-nt-serotonin: #14B8A6;
    --l10-nt-serotonin-bg: #115E59;
    --l10-terp-terpinolene: #2DD4BF;
    --l10-terp-terpinolene-bg: #134E4A;
    --l10-terp-limonene: #22D3EE;
    --l10-terp-limonene-bg: #155E75;

    /* Dark Blue / Indigo Range: GABA <-> Ocimene & Myrcene (GABA + Serotonin) */
    --l10-nt-gaba: #3B82F6;
    --l10-nt-gaba-bg: #1E3A8A;
    --l10-terp-ocimene: #60A5FA;
    --l10-terp-ocimene-bg: #172554;
    --l10-terp-myrcene: #818CF8;
    --l10-terp-myrcene-bg: #312E81;

    /* Warm Violet Range: Oxytocin <-> Linalool */
    --l10-nt-oxytocin: #D946EF;
    --l10-nt-oxytocin-bg: #701A75;
    --l10-terp-linalool: #E879F9;
    --l10-terp-linalool-bg: #581C87;

}

/* ------------------------------------------------------------------------
   2. Attribute & Shorthand Selector Mappings
   (Terpene rules placed FIRST so active [data-nt] rules take precedence)
   ------------------------------------------------------------------------ */

/* Default Terpene Variable Definitions */
[data-terp="pinene"] {
    --node-accent: var(--l10-terp-pinene);
    --node-bg: var(--l10-terp-pinene-bg);
}

[data-terp="limonene"] {
    --node-accent: var(--l10-terp-limonene);
    --node-bg: var(--l10-terp-limonene-bg);
}

[data-terp="caryophyllene"] {
    --node-accent: var(--l10-terp-caryophyllene);
    --node-bg: var(--l10-terp-caryophyllene-bg);
}

[data-terp="humulene"] {
    --node-accent: var(--l10-terp-humulene);
    --node-bg: var(--l10-terp-humulene-bg);
}

[data-terp="myrcene"] {
    --node-accent: var(--l10-terp-myrcene);
    --node-bg: var(--l10-terp-myrcene-bg);
}

[data-terp="linalool"] {
    --node-accent: var(--l10-terp-linalool);
    --node-bg: var(--l10-terp-linalool-bg);
}

[data-terp="terpinolene"] {
    --node-accent: var(--l10-terp-terpinolene);
    --node-bg: var(--l10-terp-terpinolene-bg);
}

[data-terp="ocimene"] {
    --node-accent: var(--l10-terp-ocimene);
    --node-bg: var(--l10-terp-ocimene-bg);
}

/* Active Neurotransmitter Overrides (Declared AFTER terpenes to win cascade) */
.hex-node[data-id="da"],
[data-nt="dopamine"] {
    --node-accent: var(--l10-nt-dopamine);
    --node-bg: var(--l10-nt-dopamine-bg);
}

.hex-node[data-id="ach"],
[data-nt="acetylcholine"] {
    --node-accent: var(--l10-nt-acetylcholine);
    --node-bg: var(--l10-nt-acetylcholine-bg);
}

.hex-node[data-id="gaba"],
[data-nt="gaba"] {
    --node-accent: var(--l10-nt-gaba);
    --node-bg: var(--l10-nt-gaba-bg);
}

.hex-node[data-id="glu"],
.hex-node[data-id="glutamate"],
[data-nt="glutamate"] {
    --node-accent: var(--l10-nt-glutamate);
    --node-bg: var(--l10-nt-glutamate-bg);
}

.hex-node[data-id="5ht"],
.hex-node[data-id="serotonin"],
[data-nt="serotonin"] {
    --node-accent: var(--l10-nt-serotonin);
    --node-bg: var(--l10-nt-serotonin-bg);
}

.hex-node[data-id="na"],
.hex-node[data-id="noradrenaline"],
[data-nt="noradrenaline"] {
    --node-accent: var(--l10-nt-noradrenaline);
    --node-bg: var(--l10-nt-noradrenaline-bg);
}

.hex-node[data-id="oxy"],
.hex-node[data-id="oxytocin"],
[data-nt="oxytocin"] {
    --node-accent: var(--l10-nt-oxytocin);
    --node-bg: var(--l10-nt-oxytocin-bg);
}


/* ------------------------------------------------------------------------
   3. Unified Component Rendering Rules
   ------------------------------------------------------------------------ */

/* Blueprint Inactive Node Base */
.hex-node {
    background: color-mix(in srgb, var(--node-accent, #53d6f4) 20%, transparent) !important;
    transition: all 0.3s ease;
}

.hex-node::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--node-bg, #102d49) 45%, #1c2636), #0d121c) !important;
    clip-path: inherit;
    z-index: 0;
    transition: all 0.3s ease;
}

.hex-node span.title {
    color: #dee3e5;
}

/* Blueprint Active Node State */
.hex-node.is-active {
    --s: 1.05;
    background: var(--node-accent) !important;
    z-index: 30;
}

.hex-node.is-active::before {
    inset: 2px;
    background: linear-gradient(145deg, var(--node-bg), #0f1416) !important;
}

.hex-node.is-active::after {
    content: "";
    position: absolute;
    inset: 2px;
    clip-path: inherit;
    box-shadow: inset 0 0 20px color-mix(in srgb, var(--node-accent) 50%, transparent);
    z-index: 1;
    pointer-events: none;
}

.hex-node.is-active span.title {
    color: #ffffff !important;
}

/* ==========================================================================
   LEVEL10 Terpene Honeycomb Match & Tag Readability Rules
   ========================================================================== */

/* Sub-Pill Tag: styled by the terpene honeycomb shortcode (18), which owns the
   markup, so the hex tag and the sheet chip cannot drift apart. */

/* Terpene Node Active Match State (1:1 Match with Blueprint Hex Nodes) */
.tp-hex.tp-nt-match {
    --s: 1.1;
    background: var(--node-accent, #53d6f4) !important;
    /* Outer accent border ring */
    z-index: 25;
}


.tp-hex.tp-nt-match::before {
    content: "";
    position: absolute;
    inset: 2px;
    clip-path: inherit;
    /* Dark gradient constructed directly from the NT's background token */
    background: linear-gradient(145deg, var(--node-bg, #102d49), #0f1416) !important;
    z-index: 0;
    transition: all 0.35s ease;
}

.tp-hex.tp-nt-match::after {
    content: "";
    position: absolute;
    inset: 2px;
    clip-path: inherit;
    /* Glowing inner shadow using the accent token */
    box-shadow: inset 0 0 22px color-mix(in srgb, var(--node-accent, #53d6f4) 45%, transparent) !important;
    z-index: 1;
    pointer-events: none;
}

/* Secondary Neurotransmitter assignment in Terpene Lattice */
.tp-hex.tp-secondary-match.tp-nt-match::before,
.tp-hex.tp-secondary-match.tp-active::before,
.tp-hex.tp-secondary-match.tp-nt-match.tp-active::before,
.tp-hex[data-nt-slot="secondary_nt1"].tp-nt-match::before,
.tp-hex[data-nt-slot="secondary_nt2"].tp-nt-match::before,
.tp-hex[data-nt-slot="secondary_nt1"].tp-active::before,
.tp-hex[data-nt-slot="secondary_nt2"].tp-active::before {
    background: linear-gradient(145deg, #46156d, #0f1416) !important;
    background: linear-gradient(145deg, color-mix(in srgb, #6b21a8 65%, black), #0f1416) !important;
    background: linear-gradient(145deg, color-mix(#6b21a8 65%, black), #0f1416) !important;
}

/* Text Hierarchy Inside Matched Nodes */
.tp-hex.tp-nt-match .tp-title {
    color: #ffffff !important;
    font-weight: 800;
}

.tp-hex.tp-nt-match .tp-fn {
    color: var(--node-accent, #53d6f4) !important;
    font-weight: 700 !important;
    font-style: italic;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ─── RESET / BASE ────────────────────────────────────────────── */
.jupiterx-main,
.jupiterx-main-content {
    padding: 0 !important;
}

body {
    background-color: var(--l10-bg);
    color: var(--l10-on-surface);
    overflow-x: hidden;
    position: relative;
}

/* Cinematic backdrop gradient (body::before) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(83, 214, 244, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 80% 100%, rgba(199, 141, 255, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

p,
li {
    line-height: 1.5em !important;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
/*
  H1–H3 font/size/weight are set via Elementor Kit (Site Settings → Theme Style).
  The rules below only CORRECT cases where Elementor or the theme overrides them.
*/

/* H3 override in neurotype_description.css was 3rem — reduced to
   match the design system h3 spec (24 px / 1.5 rem). */
/* ⚠️  Remove h3 override from neurotype_description.css entirely;
   the Kit-level h3 rule (Inter Tight, 24px, 600) applies globally. */

/* ─── NAVIGATION ─────────────────────────────────────────────── */
/* Nav items inherit from Kit body or label role.
   The explicit Lato/font-size rules in the old file are removed because
   typography is now managed by the Elementor Kit. */
.nav-menu {
    /* font handled by Elementor Kit */
}

/* ─── GLASS SURFACES ─────────────────────────────────────────── */
/* Elevation level 1 — section panels */
.glass-panel {
    background: rgba(15, 20, 22, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(83, 214, 244, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Elevation level 2 — cards inside panels */
.glass-card {
    background: rgba(9, 15, 17, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: var(--l10-radius-2xl);
    transition: border-color var(--l10-transition), box-shadow var(--l10-transition);
}

.glass-card:hover {
    border-color: rgba(83, 214, 244, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(83, 214, 244, 0.1);
}

/* Shared content + blueprint card base (also used in CPT stylesheets) */
.lesson_content,
.nt_blueprint,
.terp_match,
.supp_match {
    padding: 38px !important;
    border: 2px solid var(--l10-surface-highest);
    border-radius: var(--l10-radius-2xl);
    background-color: rgba(15, 20, 22, 0.6);
}

@media(max-width: 769px) {

    .lesson_content,
    .nt_blueprint,
    .terp_match,
    .supp_match {
        padding: 20px !important;
    }
}

/* ─── BUTTONS ─────────────────────────────────────────────────── */
/*
  Spec (DESIGN-2.md §Components → Buttons):
    Background: gradient #53d6f4 → #adc6ff at 135deg
    Text: Plus Jakarta Sans, bold, uppercase, letter-spacing 0.1em
    Radius: 1rem (--l10-radius-xl)
    Hover: 10px outer glow rgba(83,214,244,0.2)
*/

/* Primary button — applies to Elementor buttons, LearnDash actions,
   Gravity Forms, and other form submit buttons. Keep this scoped to
   .elementor-button; a bare `button` selector also repaints plugin UI such
   as the Level 10 assistant. */
.button_default,
.elementor-kit-15689 .elementor-button,
#learndash_mark_complete_button,
#respond #submit,
#zrf_submit,
#gdrf-submit-button,
.mailpoet_submit,
.gform_button,
body .gform_wrapper .gform_footer input.button,
.gform_wrapper .gform_page_footer .button.gform_next_button,
body .gform_wrapper .gform_footer input[type=submit],
.learndash-wrapper .ld-content-actions .ld-button,
.btn-primary .elementor-button-wrapper .elementor-button,
.btn-primary .elementor-size-sm,
.btn-primary,
.e-button-base {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    padding: 12px 24px !important;
    /* ← reduced from 16px 32px */
    background: #1FB6D3 !important;
    color: #0a1628 !important;
    border: none !important;
    border-radius: 9999px !important;
    font-family: 'Inter Tight', sans-serif !important;
    font-size: 1rem !important;
    /* ← reduced from 1.125rem */
    font-weight: 700 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    line-height: 1.4 !important;
    /* ← tightened from 1.5 */
    cursor: pointer !important;
    transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease !important;
    box-shadow: 0 0 40px rgba(31, 182, 211, 0.3) !important;
}

@media(max-width: 769px) {

    .jet-toggle__control,
    .elementor-size-sm {
        padding: 05px 10px 5px 10px !important;
    }
}

.jet-toggle-fade-effect {
    border: none !important;
}

.jet-toggle__label-icon i {
    font-size: 18px;
}

@media(max-width: 769px) {
    .jet-toggle__label-icon i {
        font-size: 16px;
    }
}

.btn-primary.elementor-widget-button .elementor-widget-container,
.btn-primary.elementor-widget-button .elementor-button-wrapper,
.btn-primary .elementor-size-sm,
.btn-primary {
    display: inline-flex !important;
    width: auto !important;
    max-width: fit-content !important;
}



.btn-primary .elementor-button-wrapper .elementor-button:hover,
.btn-primary .elementor-size-sm:hover,
.btn-primary:hover,
.e-button-base:hover {
    background: #189BB5 !important;
    box-shadow: 0 0 60px rgba(31, 182, 211, 0.5) !important;
    transform: translateY(-1px) !important;
}

.btn-primary .elementor-button-wrapper .elementor-button:active,
.btn-primary .elementor-size-sm:active,
.btn-primary:active {
    transform: scale(0.95) !important;
}





/* ─── CHIPS / BADGES / LABELS ────────────────────────────────── */
/*
  Spec (DESIGN-2.md §Components → Chips/Badges):
    Shape: pill (border-radius: 9999px)
    Primary chip: rgba(83,214,244,0.1) bg, 1px border rgba(83,214,244,0.3), text #53d6f4
    Font: Plus Jakarta Sans, 700, 12px, uppercase, letter-spacing 0.1em
*/

.elementor-button {
    font-size: 14px !important;
}

.jet-toggle__label-text,
.learn-more,
.action-button {
    font-family: var(--l10-font-label);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--l10-on-surface);
    background: transparent;
    line-height: 1.5;
}

/* Terpene / neurochemical status chips */
.nt-chip,
.terpene-chip,
[class*="jet-listing-dynamic-field"] .chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--l10-radius-full);
    background: rgba(83, 214, 244, 0.1);
    border: 1px solid rgba(83, 214, 244, 0.3);
    color: var(--l10-primary);
    font-family: var(--l10-font-label);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

/* Pattern nodes (existing selector kept, font corrected) */
.pattern-node,
.pattern-center {
    font-family: var(--l10-font-label);
}

/* Text gradient utility */
.text-gradient {
    background: linear-gradient(to right, #53d6f4, #c78dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── LAYOUT UTILITY CLASSES ─────────────────────────────────── */
.sub_header_default {
    padding-top: 33%;
    padding-bottom: 13%;
}

.section_default {
    padding: 5% 3%;
}

.section_top_padding {
    padding-top: 5%;
    padding-inline: 3%;
}

.section_side_padding {
    padding-inline: 3%;
}

.section_bottom_padding {
    padding-inline: 3%;
    padding-bottom: 5%;
}

.sub_section_default,
.summary {
    padding-top: 5%;
}

.column_default {
    padding: 5% 0 0;
}

.cta {
    margin-top: 5%;
    padding: 10% 15%;
}

.text_links {
    font-weight: 600;
}

@media screen and (max-width: 1112px) {

    .section_default,
    .section_top_padding,
    .section_side_padding,
    .sub_section_default {
        padding-inline: 5%;
    }

    .column_default {
        padding: 0;
    }
}

@media screen and (max-width: 769px) {
    .sub_header_default {
        padding-top: 35%;
        padding-bottom: 13%;
    }

    .section_default {
        padding: 5%;
    }

    .sub_section_default,
    .section_top_padding,
    .section_side_padding {
        padding-inline: 5%;
    }

    .section_bottom_padding {
        padding-inline: 3%;
    }

    .column_default {
        padding: 5%;
    }
}

/* ─── SIDEBARS ───────────────────────────────────────────────── */
.jupiterx-widget .card-title {
    font-size: 2.8rem;
}

@media (max-width: 769px) {
    .jupiterx-widget .card-title {
        font-size: 2.4rem;
    }
}

.jupiterx-widget-posts-wrapper {
    margin-top: 30px;
}

.jupiterx-widget-posts-item {
    padding-bottom: 7px;
}

h4.jupiterx-widget-posts-post-title {
    font-size: 1.6rem;
    line-height: 1.5em;
}

/* ─── TOOLTIPS ───────────────────────────────────────────────── */
.jupiter-tooltip-widget .tippy-content {
    background-color: var(--l10-infobox-bg);
    border-radius: var(--l10-radius-sm);
    padding: 15px 10px 10px;
}

@media screen and (max-width: 769px) {
    .jupiter-tooltip-widget .tippy-content {
        font-size: 1.2rem !important;
    }
}

/* ─── TABLES ─────────────────────────────────────────────────── */
table.data_tables {
    border-collapse: collapse;
    width: 100%;
}

table.data_tables th,
table.data_tables td {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px;
    text-align: left;
}

table.data_tables th {
    background-color: var(--l10-surface-highest);
}

/* ─── BLOG ───────────────────────────────────────────────────── */
.post-image {
    margin-top: 5px;
}

.jupiterx-widget-posts-wrapper {
    margin-top: 45px;
}

@media screen and (max-width: 769px) {
    .post-image {
        margin-top: 40px !important;
        margin-left: 0 !important;
        margin-bottom: 10px !important;
        float: none !important;
    }
}

/* ─── LEARNDASH (global) ─────────────────────────────────────── */
/* Lesson-specific rules live in learndash_lesson.css.
   Only global LD overrides belong here. */

.learndash-wrapper .ld-breadcrumbs {
    display: none !important;
    margin-bottom: 50px;
}

.learndash-wrapper .ld-item-list {
    margin-top: -40px !important;
}

.learndash-wrapper .ld-item-list .ld-section-heading h2,
.learndash-wrapper .ld-lesson-list .ld-section-heading h2 {
    display: none !important;
}

.learndash-wrapper .ld-course-navigation .ld-lesson-item-preview .ld-lesson-title {
    color: var(--l10-secondary-dim);
}

.learndash-wrapper .ld-course-navigation .ld-lesson-item-preview .ld-lesson-title:hover {
    color: var(--l10-primary);
}

.learndash-wrapper .ld-course-navigation .ld-table-list.ld-topic-list .ld-table-list-item .ld-table-list-item-preview {
    padding-left: 10px;
    color: var(--l10-secondary-dim) !important;
}

.learndash-wrapper .ld-course-navigation .ld-lesson-item-section-heading .ld-lesson-section-heading {
    color: var(--l10-secondary-dim);
}

.learndash-wrapper .ld-item-list .ld-section-heading .ld-item-list-actions .ld-expand-button {
    display: none;
}

.ld-course-navigation-heading,
.learndash-wrapper .ld-topic-status {
    display: none;
}

/* ─── GRAVITY FORMS ──────────────────────────────────────────── */
.gform_wrapper .gsection_description {
    color: #ffffff !important;
}

.gfield_radio label {
    padding-left: 7px !important;
}

.gform_wrapper .gfield_required {
    display: none !important;
}

.gform_wrapper .validation_message,
.gform_wrapper div.validation_error {
    color: #ffb42b !important;
}

.gform_wrapper div.validation_error {
    border-color: #ffb42b !important;
}

/* Gravity Conversational Forms */
.gform-conversational.gform-theme--foundation .gform-conversational__screen-content {
    padding-block: 0 !important;
}

.gform-conversational__form-fields .gfield.active-step p {
    font-size: 1.4rem !important;
}

.gform-conversational__form-fields .gfield.active-step h5 {
    font-size: 2.6rem !important;
}

div.gform-conversational__screen-content {
    max-width: 1050px !important;
}

/* ─── JET ENGINE ─────────────────────────────────────────────── */
/* Neurotype listing on cannabis single page */
.jet-listing-grid--36951 {
    justify-content: left !important;
}

.jet-listing-grid--36951 .jet-listing-grid__item {
    display: flex !important;
    margin-top: 2px !important;
    padding-top: 0 !important;
    max-width: none !important;
}

.jet-listing-grid--36951 .jet-listing-grid__item:not(:last-child)::after {
    content: "or";
    padding-left: 7px;
    line-height: 1.2em;
    margin-right: -23px;
}

/* ─── ELEMENTOR ──────────────────────────────────────────────── */
.elementor-widget-toggle .elementor-toggle .elementor-tab-title {
    border-bottom: none !important;
}

.jet-animated-box .jet-animated-box__description {
    font-size: 16px;
    line-height: 1.5em;
    font-weight: 400 !important;
}

.flip-box-front {
    text-align: center;
}

/* ─── BRAVE POPUPS ───────────────────────────────────────────── */
@media (max-width: 769px) {
    .brave_popup .brave_element.brave_element--countdown .brave_countdown_wrap.brave_countdown_wrap--right .brave_countdown_time span {
        padding-right: 0 !important;
    }
}

/* ─── MISC PLUGINS ───────────────────────────────────────────── */
/* Site Reviews */
.glsr-reviews>p {
    text-align: center;
}

/* Tribe Events */
.tribe-events-calendar td a {
    letter-spacing: 2px;
}

/* Age Gate */
.age-gate-heading-title-logo {
    max-height: 300px;
    max-width: 300px;
}

/* WP AI Workflows Chatbot */
.wp-ai-workflows-chat-widget {
    border-radius: 20px !important;
}

.chat-header {
    border-radius: 20px 20px 0 0 !important;
}

.quick-response-buttons {
    float: right;
}

.quick-response-button {
    min-width: 33px !important;
    min-height: 20px !important;
    padding: 5px !important;
    margin-left: 10px;
    color: #fff !important;
}

/* Mojo Slider */
#mojo-sp-left-button {
    max-height: 35px;
    max-width: 40px;
}

#mojo-sp-left-button span.dashicons {
    font-size: 30px !important;
}

.mojo-sp>.mojosp-widget-area {
    overflow: visible !important;
    background-color: #fafcfd;
    height: auto;
    padding-top: 20px;
}

#mojo-sp-left h3 {
    font-size: 24px !important;
    font-weight: 800 !important;
}

/* ─── MAILPOET ───────────────────────────────────────────────── */
.mailpoet_paragraph input[type=text],
.mailpoet_paragraph input[type=email] {
    margin-inline: auto !important;
    min-width: 340px !important;
    min-height: 50px !important;
}

.mailpoet_submit {
    display: flex !important;
    justify-content: center !important;
    margin-inline: auto !important;
    min-width: 270px;
    min-height: 70px;
}

.mailpoet_paragraph {
    text-align: center;
    color: #1f1f20;
    font-family: var(--l10-font-body);
    font-size: 18px;
    letter-spacing: 0.05em;
}

/* ─── USER REGISTRATION PLUGIN ────────────────────────────────── */
.ur-frontend-form {
    border: none;
}

.field-first_name .input-text,
input#user_login,
input#user_pass,
#user_email,
.field-user_confirm_email .input-email {
    min-width: 300px !important;
    max-width: 300px !important;
    min-height: 40px !important;
    display: flex !important;
    justify-content: center !important;
    margin-inline: auto !important;
    font-size: 16px;
    color: #78767a !important;
    text-align: center;
    margin-bottom: -5px;
    border: 2px solid #dad9da;
}

#user_email {
    margin-top: -15px;
}

.field-user_confirm_email .form-row {
    margin-bottom: -15px;
}

::placeholder {
    font-size: 16px !important;
    color: #78767a !important;
}



/* ═════════════════════════════════════════════════════════════
   TODAY TAB — PHASE TIMELINE
   Aligns #timeline with .glass-panel / .glass-card surfaces and
   the phase-card typography roles already established.
   ═════════════════════════════════════════════════════════════ */



/* ─── Phase column ─────────────────────────────────────────── */
body .today-tab #timeline .phase-marker {


    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--l10-space-xs);
    padding: var(--l10-space-sm) var(--l10-space-xs);
    /* Reserve a slot at the bottom for the NOW pill */
    padding-bottom: calc(var(--l10-space-sm) + 24px);
}

body .today-tab #timeline .phase-marker:hover {
    background-color: var(--l10-surface);
}

/* Active / current phase — add .is-active in Elementor */
body .today-tab #timeline .phase-marker.is-active {
    background-color: var(--l10-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ─── Icon dot ─────────────────────────────────────────────── */
body .today-tab #timeline .phase-marker .elementor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--l10-radius-full);
    background-color: var(--l10-surface-highest);
    color: var(--l10-outline);
    border: 1px solid var(--l10-outline-variant);
    transition: all var(--l10-transition);
}

body .today-tab #timeline .phase-marker .elementor-icon i {
    font-size: 14px;
    line-height: 1;
    color: inherit;
}

body .today-tab #timeline .phase-marker.is-active .elementor-icon {
    background-color: var(--l10-primary);
    border-color: var(--l10-primary);
    color: var(--l10-btn-text);
    box-shadow: 0 0 20px var(--l10-primary-ring);
}

/* ─── Typography roles ────────────────────────────────────── */
/* All three headings inside .phase-marker reset first, then
   reassigned by position so each role is explicit. */
body .today-tab #timeline .phase-marker .elementor-heading-title {
    margin: 0;
    line-height: 1.3;
}

/* Role 1 — the 01/02/03/04 index (label typography) */
body .today-tab #timeline .phase-marker .elementor-heading-title:nth-of-type(1) {
    font-family: var(--l10-font-label);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--l10-outline);
    line-height: 1;
}

/* Role 2 — the period name (display typography) */
body .today-tab #timeline .phase-marker .elementor-heading-title:nth-of-type(2) {
    font-family: var(--l10-font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--l10-on-surface);
}

/* Role 3 — the time range (body, muted) */
body .today-tab #timeline .phase-marker .elementor-heading-title:nth-of-type(3) {
    font-family: var(--l10-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--l10-on-surface-muted);
    white-space: nowrap;
}

body .today-tab #timeline .phase-marker-overlay {
    position: absolute;
    inset: 0 0 13px 0;
    /* extend 32px below the marker */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: inherit;
    padding-bottom: 0;
    /* NOW sits in the extended zone */
    pointer-events: none;
    z-index: 2;
}

body .today-tab #timeline .phase-marker-overlay .elementor-icon {
    color: var(--l10-primary);
}

/* Active phase typography shifts up */
body .today-tab #timeline .phase-marker.is-active .elementor-heading-title:nth-of-type(1) {
    color: var(--l10-primary);
}

body .today-tab #timeline .phase-marker.is-active .elementor-heading-title:nth-of-type(3) {
    color: var(--l10-on-surface);
}

/* ─── NOW indicator ───────────────────────────────────────── */
/* If NOW is rendered as an Elementor button (like in .phase-card),
   it will inherit the global .elementor-button rules — pin it back
   to the site's pill pattern. font-size !important defends against
   the global 14px !important rule you already noted. */
body .today-tab #timeline .phase-marker__now h6 {
    /* no margin-top:auto — space-between already pins it */
    padding: 3px 10px;
    border-radius: var(--l10-radius-full);
    color: var(--l10-primary) !important;
    background-color: var(--l10-badge-time-active);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-family: var(--l10-font-label);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- Phase-card semantic tokens ------------------------------------------
   Alpha variants of the core palette — derivation noted per token so a
   palette change means editing these lines, not hunting hex values. */
:root {
    --l10-glass-active: rgba(27, 33, 34, 0.95);
    /* --l10-surface @ 95%         */
    --l10-glass-inactive: rgba(23, 28, 30, 0.90);
    /* --l10-surface-low @ 90%     */
    --l10-glass-inactive-hover: rgba(37, 43, 45, 0.70);
    /* --l10-surface-high @ 70%    */
    --l10-drawer-bg: rgba(23, 28, 30, 0.70);
    /* --l10-surface-low @ 70%     */
    --l10-cue-bg: rgba(37, 43, 45, 0.60);
    /* --l10-surface-high @ 60%    */
    --l10-border-inactive: rgba(61, 73, 76, 0.30);
    /* --l10-outline-variant @ 30% */
    --l10-chip-bg-inactive: rgba(48, 54, 56, 0.70);
    /* --l10-surface-highest @ 70% */
    --l10-badge-time-active: rgba(31, 182, 211, 0.20);
    /* --l10-primary-dim @ 20%     */
    --l10-badge-time-inactive: rgba(48, 54, 56, 0.60);
    /* --l10-surface-highest @ 60% */
    --l10-badge-window-bg: rgba(199, 141, 255, 0.30);
    /* --l10-tertiary-dim @ 30%    */
    --l10-primary-ring: rgba(83, 214, 244, 0.20);
    /* --l10-primary @ 20%         */
    --l10-primary-glow: rgba(83, 214, 244, 0.18);
    /* --l10-primary @ 18%         */
}

/* ============ 1. Outer card container ============ */
body .elementor-element.phase-card {
    position: relative;
    flex-direction: column;
    width: 100%;
    padding: 1.5rem;
    border-radius: var(--l10-radius-2xl);
    box-sizing: border-box;
    font-family: var(--l10-font-body);
    color: var(--l10-on-surface);
    transition: all 0.3s ease;
}

/* Target the phase-card inside the active parent */
body .is-active .elementor-element.phase-card {
    background-color: var(--l10-glass-active);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--l10-primary-ring);
    box-shadow: 0 0 35px var(--l10-primary-glow);
}

/* Target the phase-card inside the inactive parent */
body .is-inactive .elementor-element.phase-card {
    background-color: var(--l10-glass-inactive);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--l10-border-inactive);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body .is-inactive .elementor-element.phase-card:hover {
    background-color: var(--l10-glass-inactive-hover);
}

/* Top glow line — pseudo-element, no extra widget needed */
body .is-active .phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--l10-primary), transparent);
    border-radius: var(--l10-radius-full);
    pointer-events: none;
}

/* Top glow line — pseudo-element, no extra widget needed */
body .phase-card.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--l10-primary), transparent);
    border-radius: var(--l10-radius-full);
    pointer-events: none;
}

/* ============ 2. Card header (PHASE tag + NOW pill) ============ */
body .phase-card-header {
    align-items: center;
    gap: 0.5rem;
}

/* NOW pill — animated ping dot via pseudo-elements. Assumes the only
   Button widget in the header is NOW (PHASE 02 = Heading). Hidden
   automatically on inactive cards.
   font-size keeps !important — defends against the global
   .elementor-button { font-size: 14px !important } rule above. */
body .phase-card-header .elementor-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 4px 10px;
    border-radius: var(--l10-radius-full);
    background-color: var(--l10-primary);
    color: var(--l10-btn-text);
    font-family: var(--l10-font-body);
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body .phase-card-header .elementor-button::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: var(--l10-radius-full);
    background-color: var(--l10-btn-text);
}

body .phase-card-header .elementor-button::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: var(--l10-radius-full);
    background-color: var(--l10-btn-text);
    opacity: 0.75;
    animation: l10-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes l10-ping {

    75%,
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

body .phase-card.is-inactive .phase-card-header .elementor-button {
    display: none;
}

/* PHASE 0x tag (Heading widget) */
body .phase-card-header h4 {
    margin: 0;
    font-family: var(--l10-font-body);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--l10-primary);
}

body .phase-card.is-inactive .phase-card-header h4 {
    color: var(--l10-outline);
}

/* ============ 3. Title & time badge section ============ */
body .phase-card-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;

}

body .phase-card-title-section .elementor-heading-title {
    margin: 0;
    font-family: var(--l10-font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--l10-on-surface);
}

/* Time badge — colors come from the card's state class */
body .phase-card-title-section .elementor-button {
    display: inline-flex;
    align-items: center;
    font-family: var(--l10-font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

body .phase-card.is-active .phase-card-title-section .elementor-button {
    color: var(--l10-primary);
    background-color: var(--l10-badge-time-active);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body .phase-card.is-inactive .phase-card-title-section .elementor-button {
    color: var(--l10-on-surface-muted);
    background-color: var(--l10-badge-time-inactive);
}


/* ============ 4. Window badges (Focus / Support) ============ */
body .window-badges {
    align-items: flex-start;
}

/* font-size keeps !important — same global-rule defense as the NOW pill */
body .window-badges .elementor-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 4px 12px;
    border-radius: var(--l10-radius-full);
    background-color: var(--l10-badge-window-bg);
    color: var(--l10-tertiary);
    font-family: var(--l10-font-body);
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
}

body .window-badges .elementor-button i,
body .window-badges .elementor-button svg {
    color: inherit;
}

/* ============ 5. Phase purpose statement ============ */
/* line-height stays 1.5: the global `p, li { line-height: 1.5em !important }`
   rule targets the widget's inner <p> directly and beats any value set here
   (v3 specified 1.6 — it never rendered). */
body .phase-purpose,
body .phase-purpose .elementor-widget-container {
    font-family: var(--l10-font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--l10-on-surface);
    margin: 0;
}

body .phase-card.is-inactive .phase-purpose,
body .phase-card.is-inactive .phase-purpose .elementor-widget-container {
    color: var(--l10-on-surface-muted);
}

/* ============ 6. Supplement protocol ============ */
body .supplement-protocol {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.5rem;
}

/* "SUPPLEMENT PROTOCOL" label (Heading widget inside the wrapper) */
body .supplement-protocol h5 {
    margin: 0;
    font-family: var(--l10-font-body);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--l10-primary);
}

body .phase-card.is-inactive .supplement-protocol h5 {
    color: var(--l10-outline);
}

/* Chips row — JetEngine Listing Grid */
body .supplement-protocol .jet-listing-grid__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Grid item = plain layout wrapper; all visuals live on the inner button */
body .supplement-protocol .jet-listing-grid__item {
    width: auto;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

/* The chip itself (mirrors .l10-chip) */
body .supplement-protocol .jet-listing-grid__item .elementor-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    width: auto;
    padding: 4px 10px;
    border: none;
    border-radius: var(--l10-radius-md);
    background-color: var(--l10-surface-highest);
    color: var(--l10-on-surface);
    font-family: var(--l10-font-body);
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body .phase-card.is-inactive .supplement-protocol .jet-listing-grid__item .jet-dropbar__button {
    background-color: var(--l10-chip-bg-inactive);
}

/* Dot — rendered by the button's .fas icon (mirrors .l10-chip-dot).
   font-size: 0 hides the glyph so ANY FA icon choice renders as a 6px
   dot; the element box is the dot. If your FA setup outputs inline SVGs
   (JS mode), the svg rule below hides those too. Default dot is cyan;
   add dot-purple / dot-blue per item in JetEngine to recolor. */
body .supplement-protocol .jet-listing-grid__item .elementor-button .fas {
    display: inline-block;
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: var(--l10-radius-full);
    background-color: var(--l10-primary);
    font-size: 0;
    line-height: 1;
}

body .supplement-protocol .jet-listing-grid__item .elementor-button .fas svg {
    display: none;
}

body .supplement-protocol .jet-listing-grid__item.dot-purple .elementor-button .fas {
    background-color: var(--l10-tertiary);
}

body .supplement-protocol .jet-listing-grid__item.dot-blue .elementor-button .fas {
    background-color: var(--l10-secondary);
}

/* ============ 6b. Support-window badge (mirrors .l10-peak-chip) ==========
   Targets `.badge .support-window` inside the supplement section.
   font-size keeps !important — the badge is an .elementor-button
   (dynamic field 266), so the global 14px !important rule applies.
   Placed after the chip rules: if the badge is itself a grid-item
   button, equal-specificity ties resolve to these rules. */
body .supplement-protocol .badge .support-window {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 4px 12px;
    border: none;
    border-radius: var(--l10-radius-full);
    background-color: var(--l10-badge-window-bg);
    color: var(--l10-tertiary);
    font-family: var(--l10-font-body);
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
    box-shadow: none;
}

/* Badge icon — reset any chip-dot box styles, then size like
   .l10-peak-chip's material icon */
body .supplement-protocol .badge .support-window .fas,
body .supplement-protocol .badge .support-window .material-symbols-outlined {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    font-size: 14px;
    line-height: 1;
    color: inherit;
}

/* ============ 7. Suggested cue box ============ */
body .suggested-cue {
    background-color: var(--l10-cue-bg);
    padding: 0.75rem 1rem;
    border-radius: var(--l10-radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

body .suggested-cue h6 {
    margin: 0;
    font-family: var(--l10-font-body);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--l10-primary);
}

body .suggested-cue,
body .suggested-cue .elementor-widget-container {
    color: var(--l10-on-surface-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ============ 8. Accordion drawer ============ */
body .phase-accordion-more-info {
    margin-top: 0.5rem;
    border-radius: 12px;
    background-color: var(--l10-drawer-bg);
    padding: 1rem;
    transition: all 0.2s ease;
}

body .phase-accordion-more-info .elementor-accordion-item {
    border: none;
}

body .phase-accordion-more-info .elementor-tab-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--l10-font-body);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--l10-primary);
    transition: color 0.2s ease;
}

body .phase-accordion-more-info .elementor-tab-title .elementor-accordion-title {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

body .phase-accordion-more-info .elementor-accordion-icon {
    color: inherit;
    font-size: 20px;
}

body .phase-accordion-more-info .elementor-tab-title:hover,
body .phase-accordion-more-info .elementor-tab-title.elementor-active {
    color: var(--l10-on-surface);
}

body .phase-accordion-more-info .elementor-tab-title:focus-visible {
    outline: 2px solid var(--l10-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

body .phase-card.is-inactive .phase-accordion-more-info .elementor-tab-title {
    color: var(--l10-on-surface-muted);
}

/* The wrapper already supplies the drawer bg/padding, so the tab
   content itself stays transparent */
body .phase-accordion-more-info .elementor-tab-content {
    background: transparent;
    border: none;
    padding: 0.75rem 0 0;
    font-family: var(--l10-font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--l10-on-surface);
}

body .phase-accordion-more-info .elementor-tab-content p {
    margin: 0 0 0.75rem;
}

body .phase-accordion-more-info .elementor-tab-content p:last-child {
    margin-bottom: 0;
}

/* Any Heading widget placed inside accordion content becomes a small
   uppercase label; add `label-cyan` or `label-purple` to recolor */
body .phase-accordion-more-info .elementor-tab-content h6 {
    margin: 0 0 0.25rem;
    font-family: var(--l10-font-body);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--l10-outline-variant);
}

body .phase-accordion-more-info .label-cyan h6 {
    color: var(--l10-primary);
}

body .phase-accordion-more-info .label-purple .elementor-heading-title {
    color: var(--l10-tertiary);
}

/* ============ 9. Accessibility ============ */
@media (prefers-reduced-motion: reduce) {
    body .phase-card-header .elementor-button::after {
        animation: none;
    }
}

/* Daily Rhythm — 2×2 phase grid (endpoint-safe; editor grid settings
   currently don't load on the Woo endpoint — see document-CSS issue) */


body .elementor-element.e-con.phase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--l10-space-md);
    align-items: stretch;
    flex-direction: column;
}

@media (max-width: 880px) {
    body .elementor-element.e-con.phase-grid {
        grid-template-columns: 1fr;
    }
}


/* === Blueprint Tab === */

/* Performance Blueprint Card */
.nt-title .jet-toggle__control,
.terpene-profile-card .jet-toggle__control {
    display: inline-flex;
    align-items: center;
    font-family: var(--l10-font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    padding: 4px 10px;
    border-radius: 12px;
    border: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    background-color: var(--l10-badge-time-active);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: fit-content;
}

.nt-title .jet-toggle__label-icon i,
.jet-toggle__label-text,
.terpene-profile-card .jet-toggle__label-icon i {
    color: #53d6f4;
}

.nt-title .jet-toggle__icon,
.terpene-profile-card .jet-toggle__icon {
    background-color: #00000000;
}

/* Base dynamics text transition */
.nt-dynamics-base {
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* Hide chronic dynamics by default */
.nt-dynamics-chronic {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(83, 214, 244, 0.2);
    /* Level10 Cyan */
}

/* When the Chronic Load button is active */
#blueprint-dashboard.state-chronic .nt-dynamics-base {
    opacity: 0.5;
    /* Dim the base text */
}

#blueprint-dashboard.state-chronic .nt-dynamics-chronic {
    display: block;
    /* Show the chronic text */
    animation: fadeIn 0.4s ease forwards;
}

/* Smooth fluid transitions for the bar */
.level10-dynamic-bar .elementor-progress-wrapper {
    background-color: #1A1F2B;
    border-radius: 12px;
    overflow: hidden;
}

.level10-dynamic-bar .elementor-progress-bar {
    border-radius: 12px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease !important;
}

/* Button Styling */
.level10-state-toggles {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.state-btn {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.state-btn.active {
    background: #2b354b;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Ensure the wrapper can anchor our absolute badge */
.level10-dynamic-bar .elementor-progress-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Style the native Baseline text inside the bar */
.level10-dynamic-bar .elementor-progress-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #111;
    /* Dark text for contrast against neon bars */
    padding-left: 12px;
    text-transform: uppercase;
}

/* Style our newly injected Regulation badge */
.level10-dynamic-bar .level10-reg-badge {
    position: absolute;
    right: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    z-index: 2;
    /* Ensures it stays above the bar if it hits 100% */
}

.nt_reg_button a {
    padding: .45REM !important
}

/* progress bars */
.blueprint-card .elementor-progress-wrapper,
.terpene-profile-card .elementor-progress-wrapper {
    background-color: var(--l10-badge-time-active);
    color: #161A1e;
    border-radius: 12px;
    height: 24px;
}

.blueprint-card .elementor-progress-bar,
.terpene-profile-card .elementor-progress-bar {
    background-color: #53d6f4;
    border-radius: 12px;
    height: 24px;
}


/* --- 1. Toggle Button Aesthetics --- */
.level10-state-toggles {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    background: #11151d;
    padding: 8px;
    border-radius: 8px;
}

.state-btn {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    color: #8892b0;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.state-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.state-btn.active {
    background: #2b354b;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- 2. Terpene Protocol Visibility Logic --- */
/* Hide all protocols by default */
.terpene-view-optimal,
.terpene-view-acute,
.terpene-view-chronic {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}


/* --- 2. Terpene Protocol Visibility Logic --- */
/* Hide all protocols by default */
.terpene-view-wrapper {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

/* Route Optimal AND Acute states to the Acute Profile */
#blueprint-dashboard.state-optimal .terpene-view-acute,
#blueprint-dashboard.state-acute .terpene-view-acute {
    display: block;
}

/* Route Chronic state to the Chronic Profile */
#blueprint-dashboard.state-chronic .terpene-view-chronic {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* 1. The Glow Effect */
.terpene-card {
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

.terpene-card.highlight-glow {
    /* Using Level10 cyan for the glow */
    box-shadow: 0 0 20px rgba(83, 214, 244, 0.6), inset 0 0 10px rgba(83, 214, 244, 0.1);
    border-color: #53d6f4 !important;
    transform: translateY(-2px);
    z-index: 10;
}



.tp-hex.tp-nt-match.tp-active {
    width: 320px;
    height: 277px;
}

/** MIGRATED CSS FROM BLUEPRINT NT LATTICE HTML WIDGET **/

/* Hexagon Layout Base */
:root {
    color-scheme: dark;
    --bg: #141722;
    --cyan: #55e6ff;
    --card-bg: linear-gradient(145deg, #2b3346, #1e2434);
    --card-active: linear-gradient(145deg, #102d49, #07111e);
}

.level10-state-toggles {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
    z-index: 50;
    position: relative;
}

.state-btn {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 16px;
    background: #111;
    color: #8892b0;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.state-btn.active {
    background: #2b354b;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.shell {
    width: 100%;
    display: grid;
    place-items: center;
    padding-top: 40px;
}

/* --- SCALED LATTICE BACKDROP --- */
.lattice {
    position: relative;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle at 50% 50%, #1c2636 0%, #0d121c 65%, transparent 66%);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* --- SCALED HEX NODES BASE --- */
.hex-node {
    --tx: 0px;
    --ty: 0px;
    --rz: 0deg;
    --s: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    width: 212px;
    height: 185px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: rgba(85, 230, 255, 0.15);
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(var(--s)) rotate(var(--rz));
    transition: all 0.3s ease;
    z-index: 10;
}

.hex-node::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: var(--card-bg);
    clip-path: inherit;
    z-index: 0;
    transition: all 0.3s ease;
}

.hex-node>* {
    position: relative;
    z-index: 2;
}

/* --- NEW 1.25x FLUSH COORDINATES --- */
.hex-node[data-id="da"] {
    --tx: -104px;
    --ty: -134px;
    --rz: 24deg;
}

.hex-node[data-id="ach"] {
    --tx: 104px;
    --ty: -134px;
    --rz: -24deg;
}

.hex-node[data-id="gaba"] {
    --tx: -166px;
    --ty: 62px;
    --rz: 12deg;
}

.hex-node[data-id="5ht"] {
    --tx: 166px;
    --ty: 62px;
    --rz: -12deg;
}

.hex-node[data-id="na"] {
    --tx: 0px;
    --ty: 185px;
    --rz: 0deg;
}

/* Scaled Hex Content */
.hex-node span.title {
    position: relative;
    z-index: 2;
    color: #8b95a5;
    font-size: 18px;
    font-weight: 700;
    transition: color 0.3s;
    margin-top: 6px;
}

.reg-pill {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

/* Active Node (Adapted to new layering structure) */
.hex-node.is-active {
    --s: 1.05;
    background: var(--cyan);
    z-index: 30;
}

.hex-node.is-active::before {
    inset: 2px;
    background: var(--card-active);
}

.hex-node.is-active::after {
    content: "";
    position: absolute;
    inset: 2px;
    clip-path: inherit;
    box-shadow: inset 0 0 20px rgba(85, 230, 255, 0.2);
    z-index: 1;
    pointer-events: none;
}

.hex-node.is-active span.title {
    color: #fff;
}

/* Mini Progress Bar */
.hex-progress {
    position: relative;
    z-index: 2;
    width: 140px;
    height: 22px;
	max-width: 240px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 999px;
    /* Updated from 4px to match the pill span */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hex-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: var(--cyan);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
}

.hex-progress-labels {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* --- EXPANDED HEX NODE (details focus card) --- */
.hex-node.is-open {
    --tx: 0px;
    --ty: 0px;
    --rz: 0deg;
    --s: 1;
    width: 90%;
    height: auto;
    aspect-ratio: 2 / 1.7320508;
    padding: 44px 22px 22px;
    justify-content: center;
    gap: 5px;
    background: rgba(85, 230, 255, 0.55) !important;
    font-family: 'Inter', -apple-system, sans-serif;
    z-index: 50;
}

.hex-node.is-open::before {
    inset: 2px;
    background: linear-gradient(145deg, #102d49, #07111e);
}

.hex-node.is-open::after {
    box-shadow: inset 0 0 20px rgba(85, 230, 255, 0.3);
}

.hex-node.is-open .hex-progress {
    display: flex;
    flex: 0 0 auto;
    width: 85%;
    height: 32px;
    margin: 2px auto 0;
}

.hex-node.is-open .hex-progress-labels {
    font-size: 12px;
}

.hex-node.is-open span.title {
    margin-top: 0;
    max-width: 90%;
    overflow: hidden;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: capitalize;
    white-space: nowrap;
}

.hex-node.is-open .reg-pill {
    max-width: 175px;
    margin-bottom: 0;
    padding: 2px 8px;
    background: rgba(85, 230, 255, 0.12) !important;
    color: #55e6ff !important;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.hex-node .node-dynamics-data {
    display: none;
}

.hex-node .node-dynamics-data p {
    margin: 0 0 8px;
}

.hex-node .node-dynamics-data p:last-child {
    margin-bottom: 0;
}

.hex-node.is-open .node-dynamics-data {
    display: block !important;
    flex: 0 1 auto;
    width: 70%;
    min-height: 122px;
    max-height: 122px;
    margin: 2px auto 0;
    padding: 0 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    color: #d1d5db;
    font-size: 15.5px;
    line-height: 1.3;
    text-align: center;
    scrollbar-width: none;
}

.hex-node.is-open .node-dynamics-data::-webkit-scrollbar {
    display: none;
}

.hex-node .dyn-kicker {
    display: block;
    margin: 0 0 6px;
    color: rgba(85, 230, 255, 0.85);
    font-size: 17px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: center;
    text-transform: none;
}

.hex-node .dyn-chronic {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(85, 230, 255, 0.2);
}

.hex-node .node-close {
    display: none;
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 6;
    align-items: center;
    justify-content: center;
    width: 57px;
    height: 28px;
    padding: 0;
    transform: translateX(-50%);
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--cyan, #55e6ff);
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.hex-node .node-close::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.hex-node .node-close span {
    display: none;
}

.hex-node:not(.is-open) .node-close {
    display: none !important;
}

.hex-node.is-open .node-close {
    display: inline-flex;
}

.hex-node .node-close:hover::before,
.hex-node .node-close:focus-visible::before {
    opacity: 1;
}

.hex-node .node-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
}

/* --- CENTER HUB (SCALED & PENTAGON-LOCKED) --- */
.pent-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    width: 175px;
    height: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: default;
    clip-path: polygon(50% 0%, 100% 38.2%, 80.9% 100%, 19.1% 100%, 0% 38.2%);
    background: rgba(85, 230, 255, 0.5);
    transform: translate(-50%, -50%);
    z-index: 20;
    transition: width 0.4s ease, height 0.4s ease, background 0.4s ease, clip-path 0.4s ease;
}

.pent-hub::before {
    content: "";
    position: absolute;
    inset: 2px;
    clip-path: inherit;
    background: var(--card-active);
    z-index: 0;
    transition: background 0.4s ease;
}

.pent-hub>* {
    position: relative;
    z-index: 2;
}

.pent-hub::after {
    content: "";
    position: absolute;
    inset: 2px;
    clip-path: inherit;
    box-shadow: inset 0 0 20px rgba(85, 230, 255, 0.2);
    z-index: 1;
    pointer-events: none;
}

/* Center Hub Typography — matches #tp-hub-title style */
.pent-hub h1.neurotype-label {
    margin: 0;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
    margin-top: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive scaled down to new thresholds */

@media (max-width: 1300px) {
    #nt-blueprint .lattice {
        transform: scale(0.85);
    }

    #terpene-section .lattice {
        transform: scale(0.85);
    }
}

@media (max-width: 680px) {
    .lattice {
        transform: scale(0.55);
    }
}

/** END MIGRATED CSS FROM BLUEPRINT NT LATTICE HTML WIDGET **/

/* === Neurotype Hero Subheader === */
/* Typography and layout are driven by Elementor Kit / Site Settings globals.
   The rules below correct spacing and layout that inline styles previously
   hard-coded; h5 and h2 typography is inherited from Elementor's global
   Theme Style typography (no inline styles override). */

#nt-hero-subheader {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nt-hero-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 60vh;
    align-items: stretch;
}

/* Desktop: left column + right column (featured image) in a row */
@media (min-width: 770px) {
    .nt-hero-row {
        flex-direction: row;
    }
}

.nt-hero-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 770px) {
    .nt-hero-left {
        width: 40%;
    }
}

/* h5 — typography inherited from Elementor Kit h5 global settings */
.nt-hero-subtitle {
    color: var(--l10-on-surface);
    margin: 10px 0 0 0;
}

/* h1 — typography inherited from Elementor Site Settings h1 global settings */
.nt-title {
    color: var(--l10-on-surface);
    margin: 10px 0 0 0;
}

.nt-trait-labels {
    display: flex;
    flex-direction: row;
    gap: 0;
    margin-top: 24px;
    padding: 10px 0 20px;
}

.nt-divider-container {
    width: 1px;
    height: 22px;
    margin: 22px 0 36px 0;
    background-color: #433D4A;
}

/* Trait buttons — styling from theme CSS (DESIGN-2.md button spec) */
.nt-trait-button {
    border: 2px solid transparent;
    border-radius: var(--l10-radius-full);
    color: var(--l10-primary);
    font-family: var(--l10-font-label);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    margin: 0 10px 0 0;
    cursor: default;
}

/* Neurotype-specific gradient accents (one per trait label) */
.nt-trait-button--purple {
    background: linear-gradient(154deg, #E879F9, #500F8A);
    border-color: #E879F9;
}

.nt-trait-button--violet {
    background: linear-gradient(154deg, #A855F7, #500F8A);
    border-color: #A855F7;
}

.nt-trait-button--blue {
    background: linear-gradient(154deg, #4B9BFF, #500F8A);
    border-color: #4B9BFF;
}

/* Body copy — typography inherited from Elementor Kit body settings */
.nt-hero-description {
    color: var(--l10-on-surface);
    margin: 0 0 20px 0;
}

/* Featured image column */
.nt-hero-right {
    min-height: 60vh;
    background-position: bottom center;
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Radial-gradient overlay applied via ::before (replaces invalid background-overlay property) */
#nt-featired-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(at center center, #992E8D00 53%, #090616 67%);
    pointer-events: none;
    z-index: 0;
}

@media (min-width: 770px) {
    .nt-hero-right {
        width: 50%;
    }
}

/* === Neurotype Description === */

.lesson_title,
.nc-patterns-title,
.stress-subheading,
.cognitive_traits_title {
    color: var(--l10-on-surface);
}

.nt-overview-content {
    color: var(--l10-on-surface);
}

.nt-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 48px 0 32px;
}

/* Icon-list items: keep icon and text on the same line */
.nt-pattern-item,
.trait-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.nt-pattern-text,
.trait-text {
    display: inline;
}

.nt-pattern-item .fa,
.trait-item .fa {
    color: var(--l10-primary);
    font-size: 1.2rem;
}

/* Icon-box wrapper: icon and heading horizontally aligned (centered) */
.elementor-icon-box-wrapper {
    display: flex;
    align-items: center;
}

.icon-box-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.icon-box-icon .fa {
    font-size: 2.4rem;
}

/* Specific icon colors */
.nt-cognitive-traits-container .icon-box-icon .fa {
    color: var(--l10-tertiary-dim);
}

/* Row 2: Acute + Chronic side-by-side */
.nt-row-2 {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 770px) {
    .nt-row-2 {
        flex-direction: row;
    }
}

.nt-acute-container,
.nt-chronic-container {
    flex: 1;
    width: 100%;
}

@media (min-width: 770px) {

    .nt-acute-container,
    .nt-chronic-container {
        width: 50%;
    }
}

/* Stress Patterns — h2 from Elementor Site Settings */
.stress-patterns-title {
    color: var(--l10-on-surface);
    margin: 32px 0 16px;
}

/* === Level10 Blueprint — mobile presentation (≤769px) === */
@media (max-width: 769px) {
    .level10-blueprint-widget {
        --l10-lattice-scale: 0.55;
    }

    .level10-state-toggles {
        gap: 6px;
        padding: 6px;
        margin-bottom: 16px;
    }

    .level10-state-toggles .state-btn {
        padding: 10px 6px;
        font-size: 12px;
        line-height: 1.2;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    /* The shell owns the responsive height; the 650px lattice stays centered
       inside it and is uniformly scaled, so the hub remains the lattice center. */
    .level10-blueprint-widget .shell {
        position: relative;
        display: block;
        height: calc(650px * var(--l10-lattice-scale));
        padding: 0;
        overflow: hidden;
        transition: height 0.4s ease;
    }

    .level10-blueprint-widget .lattice {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 650px;
        min-width: 650px;
        max-width: none;
        height: 650px;
        margin: 0;
        transform: translate(-50%, -50%) scale(var(--l10-lattice-scale));
        transform-origin: center center;
        transition: none;
    }

    .level10-blueprint-widget .pent-hub h1.neurotype-label {
        font-size: 16px;
    }

    /* Compensate for the composition scale in the node copy, not the hex geometry */
    .level10-blueprint-widget .lattice .hex-node span.title {
        font-size: 22px;
    }

    .level10-blueprint-widget .lattice .hex-node .reg-pill {
        padding: 2px 8px;
        font-size: 13px;
    }

    .level10-blueprint-widget .lattice .hex-node .hex-progress-labels {
        font-size: 14px;
    }

    /* The selected node becomes the readable focus card, centred on the lattice.
       The counter-scale cancels the composition scale, so the card and its copy
       are full-size while the hub and the rest of the lattice stay behind it. */
    .level10-blueprint-widget .lattice .hex-node.is-open {
        width: min(calc(100vw - 16px), calc(750px * var(--l10-lattice-scale)));
        height: auto;
        --s: calc(1 / var(--l10-lattice-scale));
        --tx: 0px;
        --ty: 0px;
        --rz: 0deg;
        padding: 34px 10px 10px;
    }

    .level10-blueprint-widget .lattice .hex-node.is-open span.title {
        font-size: 24px;
    }

    .level10-blueprint-widget .lattice .hex-node.is-open .reg-pill {
        padding: 2px 8px;
        font-size: 12px;
    }

    .level10-blueprint-widget .lattice .hex-node.is-open .node-dynamics-data {
        width: 56%;
        min-height: 102px;
        max-height: 102px;
        font-size: 13.5px;
    }

    .level10-blueprint-widget .lattice .hex-node.is-open .dyn-kicker {
        font-size: 15px;
    }

    .level10-blueprint-widget .lattice .hex-node.is-open .node-close {
        top: 8px;
        width: 57px;
        height: 28px;
    }
}

@media (min-width: 390px) and (max-width: 769px) {
    .level10-blueprint-widget .lattice .hex-node.is-open .node-dynamics-data {
        height: auto;
        min-height: 0;
        max-height: none;
    }
}

@media (max-width: 360px) {
    .level10-blueprint-widget {
        --l10-lattice-scale: 0.44;
    }
}

@media (max-width: 769px) and (prefers-reduced-motion: reduce) {
    .level10-blueprint-widget .pent-hub,
    .level10-blueprint-widget .hex-node {
        transition: none !important;
    }
}

/* --- Blueprint state toggles: match the local node preview --- */
.level10-blueprint-widget .level10-state-toggles {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 8px;
    background: #11151d;
    border-radius: 8px;
    position: relative;
    z-index: 50;
}

.level10-blueprint-widget .level10-state-toggles .state-btn {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 16px;
    background: #111;
    color: #8892b0;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 13.3333px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    text-transform: none;
    transition: 0.3s;
}

.level10-blueprint-widget .level10-state-toggles .state-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.level10-blueprint-widget .level10-state-toggles .state-btn.active {
    color: #fff;
    background: #2b354b;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 769px) {
    .level10-blueprint-widget .level10-state-toggles {
        gap: 6px;
        padding: 6px;
        margin-bottom: 16px;
    }

    .level10-blueprint-widget .level10-state-toggles .state-btn {
        padding: 10px 6px;
        font-size: 12px;
        line-height: 1.2;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}
