:root {
    --bg: #07090d;
    --bg2: #0d1118;
    --panel: rgba(16, 22, 32, 0.82);
    --panel-solid: #101620;
    --panel2: rgba(255, 255, 255, 0.045);
    --header-bg: rgba(7, 9, 13, 0.76);
    --flyout-bg: rgba(10, 14, 21, 0.96);
    --text: #e9edf4;
    --muted: #95a0b4;
    --soft: #c8d0df;
    --fire: #ff7a18;
    --fire2: #ffb000;
    --ember: #ff3d00;
    --cyan: #00d9ff;
    --green: #77ff95;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    --radius: 22px;
    --mono: Consolas, Monaco, "Courier New", monospace;
    --sans: Inter, Segoe UI, Arial, sans-serif;
    --page-bg:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.17), transparent 34rem),
        radial-gradient(circle at 85% 20%, rgba(0, 217, 255, 0.14), transparent 30rem),
        linear-gradient(135deg, #050609 0%, #0b0f17 48%, #050609 100%);
    --grid-opacity: 0.18;
    --wash: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.42));
	--border:#d6dce8;
}

body.theme-light {
    --panel: rgba(255, 255, 255, 0.84);
    --panel2: rgba(9, 24, 42, 0.045);
    --header-bg: rgba(255, 255, 255, 0.78);
    --flyout-bg: rgba(255, 255, 255, 0.97);
    --text: #162033;
    --muted: #607087;
    --soft: #314159;
    --fire: #d95f18;
    --fire2: #b36a00;
    --ember: #c5370c;
    --cyan: #008eaa;
    --green: #1e8f4d;
    --shadow: 0 24px 70px rgba(44, 61, 84, 0.18);
    --page-bg:
        radial-gradient(circle at top left, rgba(255, 154, 72, 0.24), transparent 34rem),
        radial-gradient(circle at 85% 18%, rgba(0, 160, 190, 0.14), transparent 30rem),
        linear-gradient(135deg, #fbfcff 0%, #edf4fb 52%, #f9fbff 100%);
    --grid-opacity: 0.16;
    --wash: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.35));
}

body.theme-soft {
    --panel: rgba(255, 250, 252, 0.86);
    --panel2: rgba(115, 62, 92, 0.055);
    --header-bg: rgba(255, 248, 251, 0.8);
    --flyout-bg: rgba(255, 250, 252, 0.97);
    --text: #2d2230;
    --muted: #806b7b;
    --soft: #4d3e4f;
    --fire: #d86f92;
    --fire2: #b768d8;
    --ember: #c45673;
    --cyan: #7f7adf;
    --green: #3f9d76;
    --shadow: 0 24px 70px rgba(92, 57, 83, 0.16);
    --page-bg:
        radial-gradient(circle at top left, rgba(255, 172, 192, 0.32), transparent 34rem),
        radial-gradient(circle at 85% 18%, rgba(151, 139, 255, 0.2), transparent 30rem),
        linear-gradient(135deg, #fff9f7 0%, #fff1f8 48%, #f6f5ff 100%);
    --grid-opacity: 0.13;
    --wash: linear-gradient(to bottom, transparent, rgba(255, 247, 250, 0.38));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--sans);
    color: var(--text);
    background: var(--page-bg);
    overflow-x: hidden;
    transition: background 240ms ease, color 240ms ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: var(--grid-opacity);
    mask-image: radial-gradient(circle at center, black, transparent 72%);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: var(--wash);
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100% - 34px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: var(--header-bg);
    border-bottom: 1px solid rgba(128, 128, 128, 0.16);
}



.nav-wrap {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    position: relative;
    background:
        radial-gradient(circle at 70% 25%, #fff6b8 0 6%, transparent 7%),
        conic-gradient(from 220deg, var(--ember), var(--fire), var(--fire2), var(--cyan), var(--fire));
    box-shadow: 0 0 34px rgba(255, 122, 24, 0.34), inset 0 0 18px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.brand-mark::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 18px;
    border: 3px solid rgba(7, 9, 13, 0.82);
    border-left: 0;
    border-bottom: 0;
    transform: rotate(-24deg);
    top: 14px;
    left: 8px;
    border-radius: 0 22px 0 0;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.34);
}

.brand-text strong {
    display: block;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.93rem;
}

.brand-text span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.76rem;
}

.main-nav {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    color: var(--soft);
    font-size: 0.92rem;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.main-nav a:hover {
    color: var(--text);
    border-color: rgba(255, 122, 24, 0.32);
    background: rgba(255, 122, 24, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button,
.icon-button {
    width: 46px;
    font-size: 1.05rem;
}

.hero {
    padding: 70px 0 44px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fire2);
    font-family: var(--mono);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    background: rgba(255, 122, 24, 0.1);
    border: 1px solid rgba(255, 122, 24, 0.22);
    padding: 8px 12px;
    border-radius: 999px;
}

.pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px var(--green);
}

h1 {
    font-size: clamp(2.55rem, 7vw, 6.3rem);
    line-height: 0.91;
    margin: 24px 0 20px;
    letter-spacing: -0.075em;
}

.fire-word {
    display: inline-block;
    color: transparent;
    background: linear-gradient(90deg, var(--text), #ffd29c 24%, var(--fire), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 22px rgba(255,122,24,0.22));
}

.hero-copy {
    max-width: 680px;
    color: var(--soft);
    font-size: 1.12rem;
    line-height: 1.75;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(128,128,128,0.2);
    color: #fff;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--fire), var(--ember));
    box-shadow: 0 16px 40px rgba(255, 122, 24, 0.24);
}

.btn-ghost {
    background: var(--panel2);
    color: var(--text);
}

.terminal-card {
    position: relative;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel2), rgba(255,255,255,0.02));
    border: 1px solid rgba(128,128,128,0.18);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.terminal-top {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(128,128,128,0.16);
    background: rgba(0,0,0,0.08);
    font-family: var(--mono);
    color: var(--muted);
    font-size: 0.78rem;
}

.dots {
    display: flex;
    gap: 8px;
}

.dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--fire);
    display: block;
    box-shadow: 0 0 14px rgba(255,122,24,0.4);
}

.dots i:nth-child(2) { background: var(--fire2); }
.dots i:nth-child(3) { background: var(--cyan); }

.code-window {
    padding: 22px;
    font-family: var(--mono);
    font-size: 0.92rem;
    line-height: 1.75;
    min-height: 390px;
}

.code-line {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    color: var(--soft);
}

.ln {
    color: var(--muted);
    text-align: right;
    user-select: none;
    opacity: 0.55;
}

.orange { color: var(--fire); }
.cyan { color: var(--cyan); }
.green { color: var(--green); }
.purple { color: #c792ff; }
.comment { color: var(--muted); }

body.theme-light .purple { color: #7044b8; }
body.theme-soft .purple { color: #9d5eb8; }

.section {
    padding: 42px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-kicker {
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.section-title {
    margin: 8px 0 0;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    letter-spacing: -0.04em;
}

.view-link {
    color: var(--fire2);
    font-family: var(--mono);
    font-size: 0.85rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
}

.feature-card,
.side-card,
.log-card,
.note-card {
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid rgba(128,128,128,0.16);
    box-shadow: 0 18px 56px rgba(0,0,0,0.12);
}

.feature-card {
    min-height: 330px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,122,24,0.32), transparent 66%);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    border: 1px solid rgba(128,128,128,0.17);
    background: var(--panel2);
    color: var(--soft);
    border-radius: 999px;
    padding: 6px 10px;
    font-family: var(--mono);
    font-size: 0.76rem;
}

.feature-card h3 {
    margin: 26px 0 14px;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.feature-card p,
.side-card p,
.log-card p,
.note-card p {
    color: var(--muted);
    line-height: 1.7;
}

.side-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.status-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border-radius: 16px;
    background: var(--panel2);
    border: 1px solid rgba(128,128,128,0.14);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px var(--green);
}

.status-dot.paused {
    background: var(--fire2);
    box-shadow: 0 0 14px var(--fire2);
}

.status-name {
    font-weight: 750;
}

.status-type {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.73rem;
}

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

.log-card {
    padding: 20px;
    min-height: 230px;
    position: relative;
    overflow: hidden;
}

.log-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(var(--fire), var(--cyan));
    opacity: 0.9;
}

.date {
    font-family: var(--mono);
    color: var(--fire2);
    font-size: 0.78rem;
}

.log-card h3 {
    margin: 14px 0 10px;
    font-size: 1.18rem;
    line-height: 1.24;
}

.lab {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
    align-items: stretch;
}

.note-card {
    padding: 24px;
}

.burn-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 11px;
}

.burn-list li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    color: var(--soft);
    line-height: 1.55;
}

.burn-list li::before {
    content: "🔥";
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(3px);
}

.overlay.open {
    display: block;
}

.search-panel,
.control-panel {
    display: none;
    position: fixed;
    z-index: 60;
    border-radius: 22px;
    background: var(--flyout-bg);
    border: 1px solid rgba(128,128,128,0.2);
    box-shadow: var(--shadow);
    padding: 18px;
}

.search-panel {
    inset: 88px 17px auto;
    max-width: 820px;
    margin: 0 auto;
}

.control-panel {
    top: 88px;
    right: 17px;
    width: min(420px, calc(100% - 34px));
}

.search-panel.open,
.control-panel.open {
    display: block;
}

.flyout-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.flyout-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.flyout-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.close-flyout {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    border: 1px solid rgba(128,128,128,0.2);
    background: var(--panel2);
    color: var(--text);
    cursor: pointer;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-panel input {
    width: 100%;
    height: 54px;
    border: 1px solid rgba(128,128,128,0.22);
    background: var(--panel2);
    color: var(--text);
    border-radius: 16px;
    padding: 0 16px;
    font-size: 1rem;
    outline: none;
}

.search-submit {
    min-width: 112px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--fire), var(--ember));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.search-scope-grid,
.theme-grid {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.search-scope-grid {
    grid-template-columns: repeat(3, 1fr);
}

.scope-option,
.theme-option,
.future-control {
    position: relative;
    border: 1px solid rgba(128,128,128,0.18);
    background: var(--panel2);
    color: var(--text);
    border-radius: 16px;
    padding: 13px;
    cursor: pointer;
}

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

.scope-option span,
.theme-option span {
    display: block;
    font-weight: 800;
}

.scope-option small,
.theme-option small,
.future-control small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.35;
}

.scope-option:has(input:checked),
.theme-option.active,
.theme-option:has(input:checked) {
    border-color: rgba(255, 122, 24, 0.44);
    background: rgba(255, 122, 24, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
}

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

.theme-option {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
}

.theme-swatch {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(128,128,128,0.2);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

.swatch-dark {
    background: linear-gradient(135deg, #07090d, #172033 55%, #ff7a18);
}

.swatch-light {
    background: linear-gradient(135deg, #ffffff, #e8f2fb 55%, #d95f18);
}

.swatch-soft {
    background: linear-gradient(135deg, #fff8f5, #ffeaf3 55%, #8b82ea);
}

.control-group {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(128,128,128,0.16);
}

.control-group h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.future-control {
    cursor: default;
    border-style: dashed;
    opacity: 0.82;
}

.search-hints {
    margin-top: 13px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.site-footer {
    margin-top: 50px;
    border-top: 1px solid rgba(128,128,128,0.16);
    padding: 30px 0 42px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .nav-wrap {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        position: fixed;
        top: 78px;
        left: 17px;
        right: 17px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 20px;
        background: var(--flyout-bg);
        border: 1px solid rgba(128,128,128,0.2);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        border-radius: 14px;
        padding: 13px 14px;
    }

    .hero-grid,
    .feature-grid,
    .lab {
        grid-template-columns: 1fr;
    }

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

    .code-window {
        min-height: auto;
        font-size: 0.82rem;
    }
}

@media (max-width: 640px) {
    .search-form,
    .search-scope-grid {
        grid-template-columns: 1fr;
    }

    .search-submit {
        min-height: 48px;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(100% - 24px, 1180px);
    }

    .brand-text span {
        display: none;
    }

    .hero {
        padding-top: 44px;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .feature-card,
    .side-card,
    .note-card {
        padding: 18px;
    }
}

/* === V8G Search / Control Panel / Theme Fixes (Added) === */

/* Search button beside input. */
.search-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 10px !important;
}

.search-form input[type="search"],
#searchInput {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.search-submit {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

/* Make control panel scrollable. */
.control-panel {
    max-height: calc(100vh - 34px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* More compact theme list. */
.compact-theme-grid,
.theme-grid {
    gap: 8px !important;
}

.compact-theme-grid .theme-option,
.theme-option {
    padding: 8px 10px !important;
    min-height: 44px !important;
}

.compact-theme-grid .theme-option small,
.theme-option small {
    display: none !important;
}

.theme-swatch {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
}

/* Extra theme swatches. */
.swatch-spring {
    background: linear-gradient(135deg, #22c55e, #bbf7d0);
}

.swatch-fall {
    background: linear-gradient(135deg, #c2410c, #fdba74);
}

.swatch-winter {
    background: linear-gradient(135deg, #0369a1, #bfdbfe);
}

/* Real dark theme: remove the bright glow at top. */
body.theme-dark {
    --bg: #03050a;
    --bg2: #050812;
    --panel: rgba(8, 12, 20, 0.92);
    --panel-solid: #080c14;
    --panel2: rgba(255,255,255,0.035);
    --header-bg: rgba(3, 5, 10, 0.9);
    --flyout-bg: rgba(5, 8, 14, 0.98);
    --text: #e5e7eb;
    --muted: #7d8796;
    --soft: #b9c0cb;
    --page-bg:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.035), transparent 30rem),
        linear-gradient(135deg, #03050a 0%, #050812 52%, #03050a 100%);
    --grid-opacity: 0.08;
    --wash: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.62));
}

/* Added theme palettes. */
body.theme-spring {
    --panel: rgba(247, 255, 250, 0.88);
    --panel2: rgba(20, 83, 45, 0.055);
    --header-bg: rgba(240, 253, 244, 0.82);
    --flyout-bg: rgba(247, 255, 250, 0.98);
    --text: #123524;
    --muted: #49745b;
    --soft: #1f5138;
    --fire: #16a34a;
    --fire2: #86efac;
    --ember: #15803d;
    --cyan: #0891b2;
    --green: #22c55e;
    --shadow: 0 24px 70px rgba(34, 197, 94, 0.13);
    --page-bg:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 34rem),
        radial-gradient(circle at 85% 18%, rgba(14, 165, 233, 0.11), transparent 30rem),
        linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 48%, #f7fee7 100%);
    --grid-opacity: 0.10;
}

body.theme-fall {
    --panel: rgba(255, 251, 245, 0.88);
    --panel2: rgba(154, 52, 18, 0.06);
    --header-bg: rgba(255, 247, 237, 0.84);
    --flyout-bg: rgba(255, 251, 245, 0.98);
    --text: #3f1d0b;
    --muted: #8b5a3c;
    --soft: #5f3118;
    --fire: #c2410c;
    --fire2: #fb923c;
    --ember: #9a3412;
    --cyan: #0f766e;
    --green: #65a30d;
    --shadow: 0 24px 70px rgba(154, 52, 18, 0.15);
    --page-bg:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.22), transparent 34rem),
        radial-gradient(circle at 85% 18%, rgba(194, 65, 12, 0.10), transparent 30rem),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fff7ed 100%);
    --grid-opacity: 0.11;
}

body.theme-winter {
    --panel: rgba(248, 252, 255, 0.9);
    --panel2: rgba(3, 105, 161, 0.052);
    --header-bg: rgba(239, 246, 255, 0.84);
    --flyout-bg: rgba(248, 252, 255, 0.98);
    --text: #082f49;
    --muted: #42677c;
    --soft: #164e63;
    --fire: #0369a1;
    --fire2: #7dd3fc;
    --ember: #0e7490;
    --cyan: #0284c7;
    --green: #0d9488;
    --shadow: 0 24px 70px rgba(14, 165, 233, 0.14);
    --page-bg:
        radial-gradient(circle at top left, rgba(125, 211, 252, 0.24), transparent 34rem),
        radial-gradient(circle at 85% 18%, rgba(59, 130, 246, 0.12), transparent 30rem),
        linear-gradient(135deg, #eff6ff 0%, #f0f9ff 48%, #e0f2fe 100%);
    --grid-opacity: 0.11;
}

/* === End V8G Search / Control Panel / Theme Fixes (Added) === */


/* === SideBar2 Mobile Menu Design (Added) === */
#cff-mobile-menu-container {
    position: fixed;
    right: 20px;
    top: 96px;
    z-index: 10020;
    font-family: sans-serif;
}

#cff-mobile-toggle-btn {
    width: 56px;
    height: 56px;
    background-color: #2d2d2d;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#cff-mobile-control-panel {
    position: absolute;
    top: 65px;
    right: 0;
    width: 220px;
    background-color: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

#cff-mobile-menu-container.open #cff-mobile-control-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#cff-mobile-menu-container.open #cff-mobile-toggle-btn {
    transform: rotate(90deg);
}

.cff-mobile-panel-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cff-mobile-panel-items li {
    padding: 15px;
    border-bottom: 1px solid #444;
}

.cff-mobile-panel-items li:last-child {
    border-bottom: none;
}

.cff-mobile-panel-items li a {
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9em !important;
}

.cff-mobile-panel-items li:hover {
    background-color: #3d3d3d;
}

/* Hide the floating mobile menu on large screens. */
@media screen and (min-width: 901px) {
    #cff-mobile-menu-container {
        display: none;
    }
}
/* === End SideBar2 Mobile Menu Design (Added) === */


/* === Admin SideBar Design (Added) === */
#cff-admin-control-panel {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 235px;
    background-color: #2d2d2d;
    color: white;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 15px rgba(0,0,0,0.3);
    font-family: sans-serif;
    overflow: hidden;
    z-index: 10010;
}

#cff-admin-control-panel.cff-admin-panel-collapsed {
    transform: translateY(-50%) translateX(195px);
}

.cff-admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #3d3d3d;
    cursor: pointer;
}

#cff-admin-toggle-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.cff-admin-panel-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cff-admin-panel-items li {
    padding: 15px;
    border-top: 1px solid #444;
    cursor: pointer;
    color: white;
}

.cff-admin-panel-items li:hover {
    background-color: #4a4a4a;
}

.cff-admin-panel-items a,
.AdminPanel,
.MobilePanel {
    color: white !important;
    text-decoration: none;
    font-size: .9em !important;
}

/* Admin sidebar can be hidden later using the cffadmin cookie. For now visible for demo. */
/* === End Admin SideBar Design (Added) === */


/* === Theme-Aware Mobile/Admin SideBars (Updated) === */
/* Makes SideBar2 and Admin SideBar follow the active Style1 theme variables. */

#cff-mobile-toggle-btn,
#cff-mobile-control-panel,
#cff-admin-control-panel,
.cff-admin-panel-header {
    background: var(--flyout-bg) !important;
    color: var(--text) !important;
    border-color: var(--panel2) !important;
}

#cff-mobile-toggle-btn {
    border: 1px solid var(--panel2) !important;
    box-shadow: var(--shadow) !important;
}

#cff-mobile-control-panel,
#cff-admin-control-panel {
    border: 1px solid var(--panel2) !important;
    box-shadow: var(--shadow) !important;
}

.cff-mobile-panel-items li,
.cff-admin-panel-items li {
    border-color: var(--panel2) !important;
    color: var(--text) !important;
}

.cff-mobile-panel-items li:hover,
.cff-admin-panel-items li:hover {
    background: var(--panel2) !important;
}

.cff-mobile-panel-items li a,
.cff-admin-panel-items a,
.AdminPanel,
.MobilePanel,
#cff-admin-toggle-btn {
    color: var(--text) !important;
}

#cff-mobile-toggle-btn:hover,
#cff-admin-toggle-btn:hover {
    color: var(--fire) !important;
}

/* Small accent line to make the panels feel connected to the chosen theme. */
#cff-mobile-control-panel::before,
#cff-admin-control-panel::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--fire), var(--cyan));
}

/* Keep text readable in the light/soft/spring/fall/winter themes. */
body.theme-light #cff-mobile-toggle-btn,
body.theme-light #cff-mobile-control-panel,
body.theme-light #cff-admin-control-panel,
body.theme-soft #cff-mobile-toggle-btn,
body.theme-soft #cff-mobile-control-panel,
body.theme-soft #cff-admin-control-panel,
body.theme-spring #cff-mobile-toggle-btn,
body.theme-spring #cff-mobile-control-panel,
body.theme-spring #cff-admin-control-panel,
body.theme-fall #cff-mobile-toggle-btn,
body.theme-fall #cff-mobile-control-panel,
body.theme-fall #cff-admin-control-panel,
body.theme-winter #cff-mobile-toggle-btn,
body.theme-winter #cff-mobile-control-panel,
body.theme-winter #cff-admin-control-panel {
    color: var(--text) !important;
}

/* === End Theme-Aware Mobile/Admin SideBars (Updated) === */


/* === Dark Theme No Bright Colors (Updated) === */
/* Dark means dark: removes bright glow, bright gradients, and bright panel accents only for Dark Mode. */

body.theme-dark {
    --bg: #03050a;
    --bg2: #050812;
    --panel: rgba(8, 12, 20, 0.96);
    --panel-solid: #080c14;
    --panel2: rgba(255,255,255,0.035);
    --header-bg: rgba(3, 5, 10, 0.94);
    --flyout-bg: rgba(5, 8, 14, 0.98);
    --text: #d7dce5;
    --muted: #7a8391;
    --soft: #a4adba;

    /* Muted accents only. No bright fire/cyan in dark mode. */
    --fire: #6b7280;
    --fire2: #4b5563;
    --ember: #374151;
    --cyan: #64748b;
    --green: #64748b;

    --shadow: 0 24px 80px rgba(0,0,0,0.65);
    --page-bg:
        linear-gradient(135deg, #03050a 0%, #050812 52%, #03050a 100%);
    --grid-opacity: 0.055;
    --wash: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.72));
}

/* Remove all bright gradient cards/panels in dark mode. */
body.theme-dark .featured-blue,
body.theme-dark .featured-purple,
body.theme-dark .featured-green,
body.theme-dark .visitor-category-card,
body.theme-dark .visitor-article-card,
body.theme-dark .visitor-article-view,
body.theme-dark .visitor-options-panel,
body.theme-dark .control-panel,
body.theme-dark .search-panel {
    background: rgba(8, 12, 20, 0.96) !important;
    border-color: rgba(255,255,255,0.045) !important;
}

/* Remove bright image/hero placeholder gradients in dark mode. */
body.theme-dark .image-one,
body.theme-dark .image-two,
body.theme-dark .image-three,
body.theme-dark .image-four,
body.theme-dark .visitor-image-placeholder,
body.theme-dark .visitor-article-hero-image {
    background: #0b111d !important;
    color: #7a8391 !important;
}

/* Remove bright accent stripe on side menus in dark mode. */
body.theme-dark #cff-mobile-control-panel::before,
body.theme-dark #cff-admin-control-panel::before {
    background: #1f2937 !important;
}

/* Muted hover only. */
body.theme-dark .visitor-category-card:hover,
body.theme-dark .visitor-article-card:hover,
body.theme-dark .visitor-prev-next-link:hover,
body.theme-dark .cff-mobile-panel-items li:hover,
body.theme-dark .cff-admin-panel-items li:hover {
    background: #0b111d !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.42) !important;
}

/* Muted links and labels in dark mode. */
body.theme-dark .visitor-inline-link,
body.theme-dark .section-view-all,
body.theme-dark .visitor-card-label,
body.theme-dark .visitor-article-category,
body.theme-dark .visitor-breadcrumb a,
body.theme-dark .visitor-tag-row a,
body.theme-dark .FooterRow.copyright a {
    color: #9ca3af !important;
}

/* Remove bright top glow from visitor hero in dark mode. */
body.theme-dark .visitor-hero {
    background: linear-gradient(to bottom, #03050a, #050812) !important;
}

/* === End Dark Theme No Bright Colors (Updated) === */


/* === Remove Header Menu Button (Updated) === */
#menuBtn,
.menu-button {
    display: none !important;
}
/* === End Remove Header Menu Button (Updated) === */


/* === Search Button Right Of Field (Updated) === */
.search-form {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: stretch !important;
    gap: 10px !important;
}

.search-form input[type="search"],
#searchInput {
    width: 100% !important;
    min-width: 0 !important;
}

.search-submit {
    width: auto !important;
    min-width: 110px !important;
    white-space: nowrap !important;
}

@media screen and (max-width: 560px) {
    .search-form {
        grid-template-columns: 1fr !important;
    }

    .search-submit {
        width: 100% !important;
    }
}
/* === End Search Button Right Of Field (Updated) === */


/* === V9B Panel Blend / Link / Navigation Polish (Updated) === */

a:link,
a:link font,
a:visited,
a:visited font {
    font-size: .9em !important;
    color: #666;
    text-decoration: none;
}

.visitor-category-card,
.visitor-article-card,
.visitor-article-view,
.visitor-prev-next-link,
.visitor-pager a,
.pager-current {
    background: color-mix(in srgb, var(--visitor-panel) 76%, var(--visitor-bg)) !important;
    border: 1px solid color-mix(in srgb, var(--visitor-border) 65%, transparent) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 6px 18px rgba(15,23,42,0.032) !important;
}

.visitor-category-card:hover,
.visitor-article-card:hover,
.visitor-prev-next-link:hover {
    transform: translateY(-1px) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        0 8px 22px rgba(15,23,42,0.05) !important;
}

body.theme-dark .visitor-category-card,
body.theme-dark .visitor-article-card,
body.theme-dark .visitor-article-view,
body.theme-dark .visitor-prev-next-link,
body.theme-dark .visitor-pager a,
body.theme-dark .pager-current {
    background: rgba(8, 12, 20, 0.72) !important;
    border-color: rgba(255,255,255,0.035) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.025),
        0 6px 18px rgba(0,0,0,0.25) !important;
}

.visitor-location-bar {
    margin: 0 auto 18px auto;
    padding: 10px 14px;
    border: 1px solid var(--visitor-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--visitor-panel) 64%, transparent);
    color: var(--visitor-soft);
    font-size: 13px;
    line-height: 1.6;
}

.visitor-location-bar a {
    color: #666 !important;
    font-weight: 700;
}

.visitor-prev-next-link {
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666 !important;
}

/* Light is the intended default. */
body.theme-light {
    --visitor-bg: #f3f7fb;
    --visitor-panel: rgba(255,255,255,0.72);
    --visitor-text: #0f172a;
    --visitor-muted: #475569;
    --visitor-soft: #64748b;
    --visitor-border: rgba(15,23,42,0.07);
}

/* === End V9B Panel Blend / Link / Navigation Polish (Updated) === */


/* === V9C Softer Borderless Panel Blend (Updated) === */
/* Panels are now just a tiny shade different from the background and have no border. */

.visitor-category-card,
.visitor-article-card,
.visitor-article-view,
.visitor-prev-next-link,
.visitor-pager a,
.pager-current {
    border: none !important;
    background: color-mix(in srgb, var(--visitor-bg) 92%, #ffffff 8%) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.24),
        0 5px 14px rgba(15,23,42,0.026) !important;
}

.visitor-category-card:hover,
.visitor-article-card:hover,
.visitor-prev-next-link:hover {
    transform: translateY(-1px) !important;
    background: color-mix(in srgb, var(--visitor-bg) 88%, #ffffff 12%) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.26),
        0 7px 18px rgba(15,23,42,0.04) !important;
}

/* Dark theme keeps panels dark, only barely lifted from the page. */
body.theme-dark .visitor-category-card,
body.theme-dark .visitor-article-card,
body.theme-dark .visitor-article-view,
body.theme-dark .visitor-prev-next-link,
body.theme-dark .visitor-pager a,
body.theme-dark .pager-current {
    border: none !important;
    background: #080b13 !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.025),
        0 6px 16px rgba(0,0,0,0.22) !important;
}

body.theme-dark .visitor-category-card:hover,
body.theme-dark .visitor-article-card:hover,
body.theme-dark .visitor-prev-next-link:hover {
    background: #0a0e18 !important;
}

/* Light mode default panel tone. */
body.theme-light {
    --visitor-bg: #f3f7fb;
    --visitor-panel: #f7f9fc;
}

body.theme-light .visitor-category-card,
body.theme-light .visitor-article-card,
body.theme-light .visitor-article-view,
body.theme-light .visitor-prev-next-link {
    background: #f8fafc !important;
}

body.theme-light .visitor-category-card:hover,
body.theme-light .visitor-article-card:hover,
body.theme-light .visitor-prev-next-link:hover {
    background: #ffffff !important;
}

/* Location bar follows the same softer style. */
.visitor-location-bar {
    border: none !important;
    background: color-mix(in srgb, var(--visitor-bg) 90%, #ffffff 10%) !important;
    box-shadow: 0 3px 10px rgba(15,23,42,0.022) !important;
}

/* === End V9C Softer Borderless Panel Blend (Updated) === */


/* === V10 Unified Visitor Layout / Meta Pass (Added) === */

a:link,
a:link font,
a:visited,
a:visited font {
    font-size: .9em !important;
    color: #666;
    text-decoration: none;
}

.visitor-footer {
    padding: 10px 1px !important;
}

.visitor-page-section,
.visitor-article-view,
.visitor-category-card,
.visitor-article-card {
    border: none !important;
    background: color-mix(in srgb, var(--visitor-bg) 92%, #ffffff 8%) !important;
    box-shadow: 0 5px 14px rgba(15,23,42,0.026) !important;
}

body.theme-dark .visitor-page-section,
body.theme-dark .visitor-article-view,
body.theme-dark .visitor-category-card,
body.theme-dark .visitor-article-card {
    background: #080b13 !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.22) !important;
}

.visitor-article-view {
    padding: 22px !important;
	
}
.h1Title, .visitor-page-summary{
	margin-left: 50px;
}

.visitor-page-summary p {
    margin: 0 0 12px 0;
    color: var(--visitor-muted);
    line-height: 1.8;
}

.visitor-article-view h1,
.visitor-page-header h1 {
    margin: 0 0 10px 0;
    font-size: 25px !important;
    line-height: 1.12;
    color: var(--visitor-text);
}

.visitor-location-bar {
    margin: 0 auto 15px auto;
    padding: 10px 14px;
    border: none !important;
    border-radius: 14px;
    background: color-mix(in srgb, var(--visitor-bg) 90%, #ffffff 10%) !important;
    color: var(--visitor-soft);
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 3px 10px rgba(15,23,42,0.022);
}

.visitor-admin-info {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--visitor-bg) 88%, #ffffff 12%);
    color: var(--visitor-soft);
    font-size: 13px;
}

body.theme-dark .visitor-admin-info {
    background: #0a0e18;
}

.visitor-tags-bottom {
    display: none;
}

body.tags-bottom .visitor-tags-top {
    display: none;
}

body.tags-bottom .visitor-tags-bottom {
    display: block;
    margin-top: 18px;
}

/* === End V10 Unified Visitor Layout / Meta Pass (Added) === */


/* === V11 Real Unified Layout Fixes (Added) === */
a:link,
a:link font,
a:visited,
a:visited font {
    font-size: .9em !important;
    color: #666 !important;
    text-decoration: none;
}

.visitor-footer {
    padding: 10px 1px !important;
}

.FooterRow.copyright a {
    font-weight: 700;
}

.visitor-page-section,
.visitor-category-card,
.visitor-article-card,
.visitor-article-view {
    border: none !important;
    background: color-mix(in srgb, var(--visitor-bg) 94%, #ffffff 6%) !important;
    box-shadow: 0 4px 12px rgba(15,23,42,0.024) !important;
}

body.theme-light .visitor-page-section,
body.theme-light .visitor-category-card,
body.theme-light .visitor-article-card,
body.theme-light .visitor-article-view {
    background: #f8fafc !important;
}

body.theme-dark .visitor-page-section,
body.theme-dark .visitor-category-card,
body.theme-dark .visitor-article-card,
body.theme-dark .visitor-article-view {
    background: #080b13 !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.22) !important;
}

.visitor-page-section {
    border-radius: 20px;
    padding: 22px;
}

.visitor-page-header h1 {
    margin: 0 0 10px 0;
    font-size: 42px;
    line-height: 1.12;
    color: var(--visitor-text);
}

.visitor-page-date {
    color: var(--visitor-soft);
    margin-bottom: 10px;
    font-size: 13px;
}


.visitor-admin-info {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--visitor-bg) 90%, #ffffff 10%);
    color: var(--visitor-soft);
    font-size: 13px;
}

body.theme-dark .visitor-admin-info {
    background: #0a0e18;
}

.visitor-page-content {
    margin-top: 16px;
}

.visitor-location-bar {
    margin: 0 auto 15px auto;
    padding: 10px 14px;
    border: none !important;
    border-radius: 14px;
    background: color-mix(in srgb, var(--visitor-bg) 92%, #ffffff 8%) !important;
    color: var(--visitor-soft);
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 3px 10px rgba(15,23,42,0.018);
}

.visitor-tags-bottom {
    display: none;
}

body.tags-bottom .visitor-tags-top {
    display: none;
}

body.tags-bottom .visitor-tags-bottom {
    display: block;
    margin-top: 18px;
}
/* === End V11 Real Unified Layout Fixes (Added) === */

/* === V12 Login / Member Forms (Added) === */
.visitor-login-form {
    display: grid;
    gap: 12px;
    max-width: 520px;
}

.visitor-login-form label {
    font-weight: 800;
    color: var(--visitor-text);
}

.visitor-login-form input {
    min-height: 44px;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--visitor-bg) 90%, #ffffff 10%);
    color: var(--visitor-text);
}

.visitor-login-form button {
    min-height: 44px;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    background: color-mix(in srgb, var(--visitor-bg) 84%, #ffffff 16%);
    color: #666;
    font-weight: 900;
    cursor: pointer;
}

.visitor-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visitor-check-row input {
    min-height: auto;
}

.visitor-form-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.visitor-form-message.warning {
    background: #fff7ed;
    color: #9a3412;
}

.visitor-form-message.success {
    background: #f0fdf4;
    color: #166534;
}

.visitor-password-help {
    color: var(--visitor-soft);
    font-size: 13px;
}

.visitor-profile-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
}

.visitor-profile-image {
    width: 150px;
    height: 150px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--visitor-bg) 86%, #ffffff 14%);
    color: #666;
    font-weight: 900;
}

.visitor-profile-info h2 {
    margin: 0 0 8px;
}
/* === End V12 Login / Member Forms (Added) === */

/* === V13 Modular WebForms Support (Added) === */
a:link,
a:link font,
a:visited,
a:visited font {
    font-size: .9em !important;
    color: #666 !important;
    text-decoration: none;
}

.visitor-footer { padding: 10px 1px !important; }

.visitor-prev-next-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 28px 0 15px;
}

.visitor-page-section,
.visitor-category-card,
.visitor-article-card {
    border: none !important;
    background: #f8fafc !important;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(15,23,42,0.024) !important;
}

.visitor-page-section { padding: 22px; }

.visitor-login-form {
    display: grid;
    gap: 12px;
    max-width: 520px;
}

.visitor-login-form input,
.visitor-login-form button {
    min-height: 44px;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
}
/* === End V13 Modular WebForms Support (Added) === */


/* === Global Link Color Override (Updated) === */
/* User requested ALL links use #666 instead of browser default blue. */

a,
a:link,
a:visited,
a:hover,
a:active,
a font,
a:link font,
a:visited font {
    color: #666 !important;
    text-decoration: none;
}

a:hover {
    opacity: .92;
}

/* Footer Links */
.visitor-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.visitor-footer-links a {
    color: #666 !important;
    font-size: .9em !important;
}
/* === End Global Link Color Override (Updated) === */


/* === Footer AJAX Newsletter Form (Added) === */
.visitor-footer-newsletter {
    max-width: 760px;
    margin: 0 auto 14px;
    text-align: center;
    padding: 14px 12px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--visitor-bg) 94%, #ffffff 6%);
}

.visitor-footer-newsletter h3 {
    margin: 0 0 6px;
    color: var(--visitor-text);
}

.visitor-footer-newsletter p {
    margin: 0 0 10px;
    color: var(--visitor-muted);
    font-size: .9em;
}

.visitor-footer-newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto;
}

.visitor-footer-newsletter-form input {
    min-height: 42px;
    border: none;
    border-radius: 12px;
    padding: 9px 12px;
    background: color-mix(in srgb, var(--visitor-bg) 88%, #ffffff 12%);
    color: var(--visitor-text);
}

.visitor-footer-newsletter-form button {
    min-height: 42px;
    border: none;
    border-radius: 12px;
    padding: 9px 18px;
    cursor: pointer;
    color: #666;
    font-weight: 900;
    background: color-mix(in srgb, var(--visitor-bg) 82%, #ffffff 18%);
}

.visitor-footer-newsletter-message {
    max-width: 760px;
    margin: 10px auto 0;
}

.footer-newsletter-result {
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.6;
    font-size: .9em;
}

.footer-newsletter-result.success {
    background: #f0fdf4;
    color: #166534;
}

.footer-newsletter-result.warning {
    background: #fff7ed;
    color: #9a3412;
}

.footer-newsletter-result.info {
    background: #f8fafc;
    color: #666;
}

.footer-newsletter-result a {
    color: #666 !important;
    font-weight: 900;
    text-decoration: underline;
}

@media screen and (max-width: 620px) {
    .visitor-footer-newsletter-form {
        grid-template-columns: 1fr;
    }
}
/* === End Footer AJAX Newsletter Form (Added) === */

/* === Verify Account Setup Notes (Added) === */
.visitor-muted-note {
    color: var(--visitor-muted);
    font-size: .9em;
    margin: 0 0 12px;
}
/* === End Verify Account Setup Notes (Added) === */


.cff-article-card {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.cff-article-header {
    background: #f7faff;
    border-bottom: 1px solid #d9e2ec;
    padding: 34px 38px;
}

.cff-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1d4f91;
    margin-bottom: 12px;
}

.cff-article-header .headerh1 {
    margin: 0;
    color: #162033;
    font-size: 35px;
    line-height: 1.25;
}

.cff-article-header .headerP {
    max-width: 820px;
    margin: 16px 0 0 0;
    color: #42526b;
    font-size: 18px;
}
   
   
   .cff-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 26px 0;
}

.cff-feature {
    border: 1px solid #dce6f0;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
}

.cff-feature .Featureh3 {
    margin: 0 0 10px 0;
    color: #1d4f91;
    font-size: 19px;
}

.cff-feature .featureP {
    margin: 0;
    color: #42526b;
    font-size: 16px;
}

@media (max-width: 800px) {
    .cff-article-header,
    .cff-article-body {
        padding: 26px 22px;
    }

    .cff-article-header .headerh1 {
        font-size: 20px;
    }

    .cff-feature-grid {
        grid-template-columns: 1fr;
    }
}


        /* The parent wrapper container */
        .mainwrap {
            border: 1px double var(--border);
            position: relative;
            padding: 10px;
            margin: 10px 0 0 0;
            width: 99%; /* Changed from 99% to 100% for perfect fit */
            box-sizing: border-box;
        }

        /* The label positioned on the border */
        .mainwrap > span {
            position: absolute;
            top: -0.7em;
            left: 15px;
            background: #fff;
            padding: 0 5px;
            font-weight: bold;
        }
		
/* === Thin Header Scroll State (Cleaned) ===
   JS adds .cff-header-scrolled to the BODY.
*/
body.cff-header-scrolled .site-header {
  height: 58px;
  min-height: 58px;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

body.cff-header-scrolled .nav-wrap {
  min-height: 58px;
  padding: 10px 22px;
  align-items: center;
}

body.cff-header-scrolled .desktop-img {

}

body.cff-header-scrolled .desktop-img img.desktop-img {
  transform: scale(0.333);
}

body.cff-header-scrolled .nav-link-rows {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body.cff-header-scrolled .nav-row {
  width: auto;
  gap: 6px;
}

body.cff-header-scrolled .nav-link,
body.cff-header-scrolled .nav-drop-btn {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 0.82rem;
}

body.cff-header-scrolled .menu-icon {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  height: 100px;
}

.desktop-img {
  display: block;
  transform-origin: left center;
  transition: transform .18s ease-out;
}

body.cff-header-scrolled .desktop-img {
  transform: scale(.35);
}

body.cff-header-scrolled .brand {
  height: 35px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* === End Thin Header Scroll State (Cleaned) === */

@media (min-width: 769px) and (max-width: 1265px) {
    .nav-logo img.desktop-img {
        transform: scale(.70);
        transform-origin: left center;
    }
}		