/* =========================================================================
   West Coast Plant Project (plantproject.ca) — Shared Site & Curator Styles
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&display=swap');

:root {
    --wcpp-bg: #f4f7f4;
    --wcpp-card: #ffffff;
    --wcpp-text: #0f172a;
    --wcpp-muted: #475569;
    --wcpp-primary: #166534;
    --wcpp-primary-hover: #14532d;
    --wcpp-secondary: #0f766e;
    --wcpp-btn-bg: linear-gradient(135deg, #1f7a4c 0%, #0f766e 100%);
    --wcpp-btn-hover: linear-gradient(135deg, #166534 0%, #115e59 100%);
    --wcpp-btn-soft-bg: #ecfdf5;
    --wcpp-btn-soft-text: #0f766e;
    --wcpp-btn-soft-border: #a7f3d0;
    --wcpp-border: #e2e8f0;
    --wcpp-tag-bg: #dcfce7;
    --wcpp-tag-text: #166534;
    --wcpp-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}

body.dark-mode {
    --wcpp-bg: #0a130e;
    --wcpp-card: #111e17;
    --wcpp-text: #edf5f0;
    --wcpp-muted: #9cb3a6;
    --wcpp-primary: #4ade80;
    --wcpp-primary-hover: #22c55e;
    --wcpp-secondary: #2dd4bf;
    --wcpp-btn-bg: linear-gradient(135deg, #166534 0%, #0f766e 100%);
    --wcpp-btn-hover: linear-gradient(135deg, #15803d 0%, #115e59 100%);
    --wcpp-btn-soft-bg: rgba(16, 185, 129, 0.14);
    --wcpp-btn-soft-text: #6ee7b7;
    --wcpp-btn-soft-border: rgba(52, 211, 153, 0.32);
    --wcpp-border: #243d30;
    --wcpp-tag-bg: #172920;
    --wcpp-tag-text: #86efac;
    --wcpp-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
}

/* Global emoji & typography fallback so icons never render as tofu boxes (▯) */
body, button, input, select, textarea {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

/* Hide legacy floating bottom-left toggle when docked header toggle is active */
body.has-docked-theme-btn #themeToggleBtn {
    display: none !important;
}

/* Docked Header Utility Cluster */
.header-util-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-util-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    background: var(--wcpp-btn-soft-bg);
    color: var(--wcpp-secondary);
    border: 1px solid var(--wcpp-btn-soft-border);
    border-radius: 9px;
    padding: 0 12px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    line-height: 1.2;
    box-sizing: border-box;
}

.header-util-btn:hover {
    border-color: var(--wcpp-secondary);
    color: var(--wcpp-secondary);
    background: var(--wcpp-card);
}

.header-util-btn.icon-only {
    width: 36px;
    height: 36px;
    padding: 0;
}

#headerCuratorBtn:not(.curator-active) {
    display: none !important;
}

.header-util-btn.curator-active {
    background: var(--wcpp-btn-bg);
    color: #ffffff;
    border-color: transparent;
}

body.dark-mode .header-util-btn.curator-active {
    background: var(--wcpp-btn-bg);
    color: #0f172a;
    border-color: transparent;
}

@media (max-width: 1079px) {
    .header-util-group {
        gap: 5px;
    }
    .header-util-group .header-util-btn .btn-label-desktop {
        display: none;
    }
    #headerSearchBtn,
    #headerThemeToggleBtn,
    .header-util-btn.icon-only {
        width: 34px;
        height: 34px;
        padding: 0;
    }
}

@media (max-width: 640px) {
    #headerThemeToggleBtn {
        display: none !important;
    }
    #headerSearchBtn {
        width: 32px;
        height: 32px;
        background: transparent;
        border-color: transparent;
    }
}

/* Mobile drawer utility actions */
.mobile-util-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 0 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

/* =========================================================================
   CURATOR MODE VISIBILITY & INLINE EDITING CONTROLS
   ========================================================================= */
.curator-only,
.curator-only-block,
.curator-only-flex {
    display: none !important;
}

body.curator-mode .curator-only {
    display: inline-flex !important;
}

body.curator-mode .curator-only-block {
    display: block !important;
}

body.curator-mode .curator-only-flex {
    display: flex !important;
}

.curator-toolbar-strip {
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(22, 101, 52, 0.08);
    border: 1.5px dashed #166534;
}

body.dark-mode .curator-toolbar-strip {
    background: rgba(74, 222, 128, 0.1);
    border-color: #4ade80;
}

body.curator-mode .curator-toolbar-strip {
    display: flex !important;
}

.curator-toolbar-label {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--wcpp-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.curator-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--wcpp-primary);
    background: var(--wcpp-card);
    color: var(--wcpp-primary);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.curator-btn:hover {
    background: var(--wcpp-primary);
    color: #ffffff;
}

body.dark-mode .curator-btn:hover {
    color: #0f172a;
}

.curator-btn-primary {
    background: var(--wcpp-primary);
    color: #ffffff;
}

body.dark-mode .curator-btn-primary {
    color: #0f172a;
}

.curator-btn-danger {
    border-color: #dc2626;
    color: #dc2626;
}

.curator-btn-danger:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Inline Cell Edit Button inside comparison tables */
.curator-cell-wrap {
    position: relative;
    padding-right: 26px !important;
}

.curator-edit-cell-btn {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid var(--wcpp-border);
    background: var(--wcpp-card);
    color: var(--wcpp-primary);
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    transition: all 0.15s ease;
    padding: 0;
}

body.curator-mode .curator-edit-cell-btn {
    display: inline-flex;
}

.curator-edit-cell-btn:hover {
    opacity: 1;
    background: var(--wcpp-primary);
    color: #ffffff;
    border-color: var(--wcpp-primary);
}

body.dark-mode .curator-edit-cell-btn:hover {
    color: #0f172a;
}

/* Floating Curator Dock Bar */
.curator-floating-bar {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 2400;
    display: none;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--wcpp-card);
    color: var(--wcpp-text);
    border: 2px solid var(--wcpp-primary);
    border-radius: 14px;
    padding: 8px 12px;
    box-shadow: var(--wcpp-shadow);
    max-width: calc(100vw - 32px);
}

body.curator-mode .curator-floating-bar {
    display: flex;
}

.curator-dock-badge {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--wcpp-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-right: 6px;
    border-right: 1px solid var(--wcpp-border);
}

.curator-change-count {
    background: var(--wcpp-tag-bg);
    color: var(--wcpp-tag-text);
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

/* =========================================================================
   MODALS (CURATOR LOGIN, EDITOR, DATA STUDIO, CITATION GENERATOR)
   ========================================================================= */
.wcpp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wcpp-modal {
    background: var(--wcpp-card);
    color: var(--wcpp-text);
    border: 1px solid var(--wcpp-border);
    border-radius: 18px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.wcpp-modal.wide {
    max-width: 880px;
}

.wcpp-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--wcpp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wcpp-modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--wcpp-primary);
}

.wcpp-modal-close {
    background: var(--wcpp-tag-bg);
    color: var(--wcpp-text);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcpp-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wcpp-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--wcpp-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.wcpp-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wcpp-field-group label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wcpp-muted);
}

.wcpp-input, .wcpp-textarea, .wcpp-select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--wcpp-border);
    background: var(--wcpp-bg);
    color: var(--wcpp-text);
    font-size: 0.92rem;
    font-family: inherit;
}

.wcpp-input:focus, .wcpp-textarea:focus, .wcpp-select:focus {
    outline: none;
    border-color: var(--wcpp-primary);
}

.wcpp-pass-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.wcpp-pass-wrap .wcpp-input {
    padding-right: 84px;
}

.wcpp-pass-toggle {
    position: absolute;
    right: 6px;
    height: 30px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid var(--wcpp-btn-soft-border);
    background: var(--wcpp-btn-soft-bg);
    color: var(--wcpp-secondary);
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    line-height: 1;
    transition: all 0.15s ease;
}

.wcpp-pass-toggle:hover {
    border-color: var(--wcpp-secondary);
    background: var(--wcpp-card);
}

.wcpp-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.wcpp-help-text {
    font-size: 0.8rem;
    color: var(--wcpp-muted);
    line-height: 1.45;
}

.wcpp-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.wcpp-tab-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--wcpp-border);
    background: var(--wcpp-bg);
    color: var(--wcpp-text);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.wcpp-tab-btn.active {
    background: var(--wcpp-primary);
    color: #ffffff;
    border-color: var(--wcpp-primary);
}

body.dark-mode .wcpp-tab-btn.active {
    color: #0f172a;
}

.wcpp-code-box {
    background: var(--wcpp-bg);
    border: 1px solid var(--wcpp-border);
    border-radius: 10px;
    padding: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--wcpp-text);
}

.wcpp-pill-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--wcpp-border);
    background: var(--wcpp-bg);
    color: var(--wcpp-text);
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wcpp-pill-btn.primary {
    background: var(--wcpp-btn-bg);
    color: #ffffff;
    border-color: transparent;
}

body.dark-mode .wcpp-pill-btn.primary {
    color: #0f172a;
}

.wcpp-pill-btn.danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

/* Citation & License Footer Bar */
.wcpp-license-bar {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color, #cbd5e1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted, #475569);
}

.wcpp-license-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Global Sticky Header Clearance & Wrapper Top Padding */
html, body {
    max-width: 100vw;
    overflow-x: clip;
}

#header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    min-height: 68px;
    z-index: 1500;
}

body {
    padding-top: 68px !important;
    margin: 0;
}

@media (min-width: 1080px) {
    #header-container {
        height: auto;
        min-height: 100px;
    }

    body {
        padding-top: 100px !important;
    }
}

@media (min-width: 900px) {
    .page-wrapper:has(> #sidebar-container) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 32px;
        max-width: 1480px;
        margin: 0 auto;
        padding: 24px;
        align-items: start;
        box-sizing: border-box;
    }

    #sidebar-container {
        display: block;
        position: relative;
        width: 336px;
        min-width: 336px;
        max-width: 336px;
        align-self: start;
    }
}

.page-wrapper,
.page-wrapper.gh-has-sidebar {
    padding-top: 24px !important;
}

/* =========================================================================
   LIVE INVENTORY & PRE-ORDER BADGES (Across Plant Planners & Calendar)
   ========================================================================= */
.wcpp-inv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.wcpp-inv-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1);
}

.wcpp-inv-badge.in-stock {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.wcpp-inv-badge.pre-order {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.wcpp-inv-badge.request {
    background: var(--wcpp-btn-soft-bg);
    color: var(--wcpp-secondary);
    border-color: var(--wcpp-btn-soft-border);
}

.wcpp-inv-badge.compact {
    padding: 1px 7px;
    font-size: 0.68rem;
}

body.dark-mode .wcpp-inv-badge.in-stock {
    background: rgba(22, 101, 52, 0.35);
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.45);
}

body.dark-mode .wcpp-inv-badge.pre-order {
    background: rgba(146, 64, 14, 0.35);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.45);
}

.wcpp-inv-card-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--wcpp-btn-soft-bg);
    border: 1px solid var(--wcpp-btn-soft-border);
    font-size: 0.84rem;
}

.wcpp-inv-item-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 9px;
    background: var(--wcpp-card);
    border: 1px solid var(--wcpp-border);
}

.wcpp-inv-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.wcpp-inv-item-meta {
    font-size: 0.77rem;
    color: var(--wcpp-muted);
    line-height: 1.4;
}

.wcpp-inv-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    width: fit-content;
}

.wcpp-inv-action-btn.in-stock {
    background: var(--wcpp-btn-bg);
    color: #ffffff;
}

.wcpp-inv-action-btn.pre-order {
    background: #d97706;
    color: #ffffff;
}

.wcpp-inv-action-btn.request {
    background: var(--wcpp-card);
    color: var(--wcpp-secondary);
    border-color: var(--wcpp-btn-soft-border);
}

body.dark-mode .wcpp-inv-action-btn.in-stock {
    color: #0f172a;
}

.wcpp-inv-badge-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    margin-top: 4px;
}

/* =========================================================================
   GLOBAL QUICK-SEARCH MODAL (Ctrl+K / /)
   ========================================================================= */
.wcpp-search-modal {
    max-width: 760px;
}

.wcpp-search-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcpp-search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 55vh;
    overflow-y: auto;
}

.wcpp-search-group h4 {
    margin: 0 0 6px 0;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wcpp-secondary);
}

.wcpp-search-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wcpp-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--wcpp-bg);
    border: 1px solid var(--wcpp-border);
    text-decoration: none;
    color: var(--wcpp-text);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.wcpp-search-item:hover {
    border-color: var(--wcpp-primary);
    transform: translateY(-1px);
}

.wcpp-search-item-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--wcpp-primary);
}

.wcpp-search-item-sub {
    font-size: 0.78rem;
    color: var(--wcpp-muted);
}

.wcpp-search-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.wcpp-kbd {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid var(--wcpp-btn-soft-border);
    background: var(--wcpp-card);
    color: var(--wcpp-muted);
}

@media (max-width: 1079px) {
    .wcpp-kbd {
        display: none;
    }
}

/* =========================================================================
   RELATED ARTICLES & ECOLOGICAL RESEARCH (Plant Pages & Modals)
   ========================================================================= */
.wcpp-related-articles-box,
.wcpp-related-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--wcpp-btn-soft-bg);
    border: 1px solid var(--wcpp-btn-soft-border);
    font-size: 0.84rem;
    color: var(--wcpp-text);
}

.wcpp-related-articles-box.compact {
    padding: 9px 11px;
    gap: 6px;
}

.wcpp-rel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.wcpp-rel-heading {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--wcpp-secondary);
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.wcpp-rel-more-link {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--wcpp-primary);
    text-decoration: none;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.35;
    display: inline-block;
}

.wcpp-rel-more-link:hover {
    text-decoration: underline;
}

.wcpp-rel-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wcpp-related-strip .wcpp-rel-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.wcpp-rel-article-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 11px;
    border-radius: 9px;
    background: var(--wcpp-card);
    border: 1px solid var(--wcpp-border);
    transition: border-color 0.14s ease, transform 0.14s ease;
}

.wcpp-rel-article-item:hover {
    border-color: var(--wcpp-primary);
    transform: translateY(-1px);
}

.wcpp-rel-article-item.compact {
    padding: 7px 9px;
}

.wcpp-rel-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.wcpp-rel-cat-pill,
.wcpp-rel-live-pill,
.wcpp-rel-match-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.35;
}

.wcpp-rel-cat-pill {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}

.wcpp-rel-live-pill {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.wcpp-rel-match-pill {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.wcpp-rel-match-pill.fallback {
    background: var(--wcpp-btn-soft-bg);
    color: var(--wcpp-muted);
    border: 1px solid var(--wcpp-border);
}

.wcpp-rel-article-title {
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--wcpp-primary);
    text-decoration: none;
}

.wcpp-rel-article-title:hover {
    text-decoration: underline;
}

.wcpp-rel-article-desc {
    margin: 0;
    font-size: 0.77rem;
    line-height: 1.4;
    color: var(--wcpp-muted);
}

.wcpp-rel-domain {
    font-size: 0.71rem;
    font-weight: 700;
    color: var(--wcpp-muted);
    opacity: 0.85;
}

.wcpp-rel-empty {
    font-size: 0.8rem;
    color: var(--wcpp-muted);
}

body.dark-mode .wcpp-rel-cat-pill,
[data-theme="dark"] .wcpp-rel-cat-pill {
    background: rgba(7, 89, 133, 0.35);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.4);
}

body.dark-mode .wcpp-rel-live-pill,
[data-theme="dark"] .wcpp-rel-live-pill {
    background: rgba(146, 64, 14, 0.35);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.4);
}

body.dark-mode .wcpp-rel-match-pill,
[data-theme="dark"] .wcpp-rel-match-pill {
    background: rgba(22, 101, 52, 0.35);
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.45);
}

.wcpp-inv-badge,
.wcpp-inv-action-btn,
.wcpp-inv-card-box,
.wcpp-related-articles-box,
.wcpp-related-strip,
.wcpp-rel-article-item {
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.wcpp-related-articles-box,
.wcpp-related-strip,
.wcpp-rel-article-item {
    overflow: hidden;
}

@media (max-width: 767px) {
    .wcpp-inv-badge {
        white-space: nowrap;
        word-break: normal;
        max-width: 100%;
    }

    .wcpp-inv-action-btn {
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
        text-align: left;
        line-height: 1.35;
    }

    .wcpp-inv-card-box,
    .wcpp-related-articles-box,
    .wcpp-related-strip {
        padding: 10px 12px;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .wcpp-related-strip .wcpp-rel-list {
        grid-template-columns: 1fr;
    }

    .wcpp-rel-article-title,
    .wcpp-rel-article-desc,
    .wcpp-inv-item-meta {
        overflow-wrap: break-word;
        word-break: normal;
    }
}

#toast,
#toastNotification {
    position: fixed !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(100px) !important;
    width: max-content !important;
    max-width: calc(100vw - 28px) !important;
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    border-left: 3px solid #22c55e !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22) !important;
    z-index: 2500 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#toast.show,
#toastNotification.show {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
}

/* =========================================================================
   MY GARDEN PLAN BUTTONS, COUNTERS & MODAL STYLES
   ========================================================================= */
.wcpp-garden-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--wcpp-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    margin-left: 3px;
}

body.dark-mode .wcpp-garden-count {
    color: #0f172a;
}

.view-tab.active .wcpp-garden-count,
.chip.active .wcpp-garden-count,
.pill-filter.active .wcpp-garden-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

body.dark-mode .view-tab.active .wcpp-garden-count,
body.dark-mode .chip.active .wcpp-garden-count,
body.dark-mode .pill-filter.active .wcpp-garden-count {
    background: rgba(15, 23, 42, 0.24);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.35);
}

.wcpp-garden-count[data-zero="1"] {
    opacity: 0.55;
}

@media (max-width: 1079px) {
    #headerGardenPlanBtn {
        display: none !important;
    }
}

.wcpp-save-garden-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--wcpp-border);
    background: var(--wcpp-card);
    color: var(--wcpp-text);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.14s ease;
}

.wcpp-save-garden-btn.compact {
    padding: 2px 8px;
    font-size: 0.7rem;
}

.wcpp-save-garden-btn:hover {
    border-color: #d97706;
    color: #b45309;
    background: #fef3c7;
}

.wcpp-save-garden-btn.saved {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

body.dark-mode .wcpp-save-garden-btn:hover,
body.dark-mode .wcpp-save-garden-btn.saved {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.55);
}

.wcpp-garden-plan-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 48vh;
    overflow-y: auto;
}

.wcpp-garden-plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 11px;
    background: var(--wcpp-bg);
    border: 1px solid var(--wcpp-border);
    flex-wrap: wrap;
}

.wcpp-garden-plan-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 200px;
}

.wcpp-garden-plan-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.wcpp-garden-plan-name {
    font-weight: 800;
    font-size: 0.94rem;
    color: var(--wcpp-primary);
    text-decoration: none;
}

.wcpp-garden-plan-name:hover {
    text-decoration: underline;
}

.wcpp-garden-plan-latin {
    font-size: 0.78rem;
    color: var(--wcpp-muted);
}

.wcpp-plan-cat {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid var(--wcpp-border);
    background: var(--wcpp-card);
    color: var(--wcpp-muted);
    white-space: nowrap;
}

.wcpp-garden-plan-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wcpp-plan-remove-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--wcpp-border);
    background: var(--wcpp-card);
    color: var(--wcpp-muted);
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wcpp-plan-remove-btn:hover {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

/* =========================================================================
   PAGE-COLOURED PRE-ORDER BUTTONS & REGISTRATION MODAL
   ========================================================================= */
.wcpp-preorder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 8px;
    border: 1px solid #fcd34d;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.3;
    background: #fef3c7;
    color: #92400e;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    width: fit-content;
    box-shadow: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.wcpp-preorder-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1);
}

.wcpp-preorder-btn.compact {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
}

body.dark-mode .wcpp-preorder-btn {
    background: rgba(146, 64, 14, 0.35);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.45);
}

/* Page-specific Pre-Order button & badge palettes (subtle, cohesive pills & action buttons) */
.wcpp-inv-badge.pre-order.theme-orders,
.wcpp-preorder-btn.theme-orders,
.wcpp-inv-action-btn.pre-order.theme-orders {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.wcpp-inv-badge.pre-order.theme-nativeplants,
.wcpp-preorder-btn.theme-nativeplants,
.wcpp-inv-action-btn.pre-order.theme-nativeplants {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #c4b5fd;
}

.wcpp-inv-badge.pre-order.theme-plant-planner,
.wcpp-preorder-btn.theme-plant-planner,
.wcpp-inv-action-btn.pre-order.theme-plant-planner {
    background: #e0f2fe;
    color: #075985;
    border-color: #7dd3fc;
}

.wcpp-inv-badge.pre-order.theme-garden,
.wcpp-preorder-btn.theme-garden,
.wcpp-inv-action-btn.pre-order.theme-garden {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fdba74;
}

.wcpp-inv-badge.pre-order.theme-calendar,
.wcpp-preorder-btn.theme-calendar,
.wcpp-inv-action-btn.pre-order.theme-calendar {
    background: #ffe4e6;
    color: #9f1239;
    border-color: #fda4af;
}

.wcpp-inv-badge.pre-order.theme-bios,
.wcpp-preorder-btn.theme-bios,
.wcpp-inv-action-btn.pre-order.theme-bios {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #a5b4fc;
}

.wcpp-inv-badge.pre-order.theme-sidebar,
.wcpp-preorder-btn.theme-sidebar,
.wcpp-inv-action-btn.pre-order.theme-sidebar {
    background: #ecfccb;
    color: #365314;
    border-color: #bef264;
}

body.dark-mode .wcpp-inv-badge.pre-order.theme-orders,
body.dark-mode .wcpp-preorder-btn.theme-orders,
body.dark-mode .wcpp-inv-action-btn.pre-order.theme-orders {
    background: rgba(146, 64, 14, 0.35);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.45);
}

body.dark-mode .wcpp-inv-badge.pre-order.theme-bios,
body.dark-mode .wcpp-preorder-btn.theme-bios,
body.dark-mode .wcpp-inv-action-btn.pre-order.theme-bios {
    background: rgba(67, 56, 202, 0.35);
    color: #c7d2fe;
    border-color: rgba(129, 140, 248, 0.45);
}

body.dark-mode .wcpp-inv-badge.pre-order.theme-nativeplants,
body.dark-mode .wcpp-preorder-btn.theme-nativeplants,
body.dark-mode .wcpp-inv-action-btn.pre-order.theme-nativeplants {
    background: rgba(109, 40, 217, 0.35);
    color: #ddd6fe;
    border-color: rgba(167, 139, 250, 0.45);
}

body.dark-mode .wcpp-inv-badge.pre-order.theme-plant-planner,
body.dark-mode .wcpp-preorder-btn.theme-plant-planner,
body.dark-mode .wcpp-inv-action-btn.pre-order.theme-plant-planner {
    background: rgba(3, 105, 161, 0.35);
    color: #bae6fd;
    border-color: rgba(56, 189, 248, 0.45);
}

body.dark-mode .wcpp-inv-badge.pre-order.theme-garden,
body.dark-mode .wcpp-preorder-btn.theme-garden,
body.dark-mode .wcpp-inv-action-btn.pre-order.theme-garden {
    background: rgba(194, 65, 12, 0.35);
    color: #fed7aa;
    border-color: rgba(251, 146, 60, 0.45);
}

body.dark-mode .wcpp-inv-badge.pre-order.theme-calendar,
body.dark-mode .wcpp-preorder-btn.theme-calendar,
body.dark-mode .wcpp-inv-action-btn.pre-order.theme-calendar {
    background: rgba(190, 18, 60, 0.35);
    color: #fecdd3;
    border-color: rgba(251, 113, 133, 0.45);
}

body.dark-mode .wcpp-inv-badge.pre-order.theme-sidebar,
body.dark-mode .wcpp-preorder-btn.theme-sidebar,
body.dark-mode .wcpp-inv-action-btn.pre-order.theme-sidebar {
    background: rgba(63, 98, 18, 0.35);
    color: #d9f99d;
    border-color: rgba(163, 230, 53, 0.45);
}

.wcpp-preorder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 600px) {
    .wcpp-preorder-grid {
        grid-template-columns: 1fr;
    }
}

.wcpp-blog-article-body {
    white-space: pre-line;
    line-height: 1.65;
    font-size: 0.94rem;
    color: var(--wcpp-text);
}

.wcpp-blog-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--wcpp-tag-bg);
    color: var(--wcpp-tag-text);
    border: 1px solid var(--wcpp-btn-soft-border);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.wcpp-blog-pill:hover {
    background: var(--wcpp-primary);
    color: #ffffff;
}

body.dark-mode .wcpp-blog-pill:hover {
    color: #0f172a;
}

/* =========================================================================
   Pre-Loaded Zero-Empty-Space AdSense Slot Architecture
   Full container width for responsive ad sizing, 0px height until filled.
   ========================================================================= */
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wcpp-ad-slot {
    display: block;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    opacity: 0;
    box-sizing: border-box;
}

.wcpp-ad-slot.is-filled {
    height: auto;
    margin: 22px 0;
    padding: 8px 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--card-bg, #ffffff);
    text-align: center;
    overflow: visible;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.wcpp-ad-slot.is-filled::before {
    content: "Advertisement";
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    margin-bottom: 6px;
}

.wcpp-ad-slot.is-unfilled {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* =========================================================================
   6. SPECIES PAGE HERO PHOTO SHOWCASE & FLORA INDEX HOVER PREVIEWS
   ========================================================================= */

.sp-hero.sp-hero-with-photo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
}

@media (min-width: 680px) {
    .sp-hero.sp-hero-with-photo {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 24px;
    }
}

@media (min-width: 960px) {
    .sp-hero.sp-hero-with-photo {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 28px;
    }
}

.sp-hero-text {
    min-width: 0;
}

.sp-hero-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 230px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.sp-hero-photo-wrap img.sp-hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.sp-hero-photo-wrap:hover img.sp-hero-photo {
    transform: scale(1.04);
}

.sp-photo-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Flora Index Hover Pop-Up Preview */
.flora-hover-card {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    width: 270px;
    background: var(--card-bg, #ffffff);
    color: var(--text-color, #1e293b);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px -4px rgba(0, 0, 0, 0.3), 0 6px 14px -2px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.94) translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.dark-mode .flora-hover-card {
    background: var(--card-bg, #1e293b);
    color: var(--text-color, #f1f5f9);
    border-color: var(--border-color, #334155);
    box-shadow: 0 20px 45px -4px rgba(0, 0, 0, 0.55), 0 8px 18px -2px rgba(0, 0, 0, 0.3);
}

.flora-hover-card.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.flora-hover-img-wrap {
    position: relative;
    width: 100%;
    height: 155px;
    background: var(--tag-bg, #f1f5f9);
    overflow: hidden;
}

body.dark-mode .flora-hover-img-wrap {
    background: var(--tag-bg, #334155);
}

.flora-hover-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flora-hover-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    letter-spacing: 0.2px;
}

.flora-hover-body {
    padding: 10px 12px;
    background: var(--card-bg, #ffffff);
}

body.dark-mode .flora-hover-body {
    background: var(--card-bg, #1e293b);
}

.flora-hover-common {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-color, #0f172a);
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .flora-hover-common {
    color: var(--text-color, #f1f5f9);
}

.flora-hover-latin {
    font-style: italic;
    font-size: 0.8rem;
    color: var(--primary-color, #166534);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .flora-hover-latin {
    color: var(--primary-color, #4ade80);
}

/* =========================================================================
   7. BOTANICAL EDITORIAL AESTHETIC, VISUAL HIERARCHY & INTERACTIVE UI
   ========================================================================= */

:root {
    --wcpp-bg: #f6f9f5;
    --bg-color: #f6f9f5;
    --card-bg: #ffffff;
    --border-color: #dce6de;
    --tag-bg: #edf4ee;
    --wcpp-border: #dce6de;
    --wcpp-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

body.dark-mode {
    --wcpp-bg: #0b1510;
    --bg-color: #0b1510;
    --card-bg: #12211a;
    --border-color: #21382d;
    --tag-bg: #182c22;
    --wcpp-border: #21382d;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --primary-color: #4ade80;
    --primary-hover: #22c55e;
}

body {
    background-color: var(--wcpp-bg, #f6f9f5) !important;
}

/* Editorial Serif Headings & Botanical Binomials */
body .sp-hero h1,
body .flora-hero h1,
body .hero-banner h1 {
    font-family: var(--wcpp-serif);
    letter-spacing: -0.015em;
    font-weight: 700;
}

body .sp-card h2 {
    font-family: var(--wcpp-serif);
    font-size: 1.26rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary-color, #166534);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-left: 3.5px solid var(--primary-color, #166534);
    padding-left: 11px;
    margin-bottom: 12px;
}

body.dark-mode .sp-card h2 {
    color: var(--primary-color, #4ade80);
    border-left-color: var(--primary-color, #4ade80);
}

body .sp-latin em,
body .flora-hover-latin,
body .sp-sim em,
body #floraCoreList li a em {
    font-family: var(--wcpp-serif);
    font-style: italic;
}

/* Softer Herbarium Card Elevation & Breathing Room */
body .sp-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dce6de);
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 8px 26px -6px rgba(20, 83, 45, 0.055), 0 2px 6px -1px rgba(20, 83, 45, 0.03);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.dark-mode .sp-card {
    background: var(--card-bg, #12211a);
    border-color: var(--border-color, #21382d);
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.45);
}

body .sp-hero {
    border-top: 4px solid var(--sp-bloom-accent, #86efac);
    box-shadow: 0 14px 34px -8px rgba(20, 83, 45, 0.28);
}

/* Sticky Frosted-Glass "Jump To" Sub-Navigation on Species Pages */
.sp-jump-nav {
    position: sticky;
    top: 8px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 12px;
    margin: 0 0 16px 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color, #dce6de);
    box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.08);
}

.sp-jump-nav::-webkit-scrollbar {
    display: none;
}

body.dark-mode .sp-jump-nav {
    background: rgba(18, 33, 26, 0.86);
    border-color: var(--border-color, #21382d);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

.sp-jump-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--wcpp-muted, #475569);
    transition: all 0.16s ease;
}

body.dark-mode .sp-jump-link {
    color: #94a3b8;
}

.sp-jump-link:hover {
    background: var(--tag-bg, #edf4ee);
    color: var(--primary-color, #166534);
}

.sp-jump-link.active {
    background: var(--primary-color, #166534);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.28);
}

body.dark-mode .sp-jump-link.active {
    background: #166534;
    color: #ecfdf5 !important;
}

/* Visual Quick-Glance Ecological Chips Ribbon */
.sp-glance-ribbon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 10px;
    margin: 0 0 16px 0;
}

.sp-glance-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 14px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dce6de);
    box-shadow: 0 3px 10px -2px rgba(20, 83, 45, 0.05);
}

body.dark-mode .sp-glance-chip {
    background: var(--card-bg, #12211a);
    border-color: var(--border-color, #21382d);
}

.sp-glance-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--tag-bg, #edf4ee);
    color: var(--primary-color, #166534);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .sp-glance-icon {
    background: #182c22;
    color: #4ade80;
}

.sp-glance-meta {
    min-width: 0;
    flex: 1;
}

.sp-glance-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wcpp-muted, #64748b);
    line-height: 1.15;
    margin-bottom: 2px;
}

.sp-glance-val {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--wcpp-text, #0f172a);
    line-height: 1.25;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

body.dark-mode .sp-glance-val {
    color: #f1f5f9;
}

.sp-bloom-swatch {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.5px solid rgba(15, 23, 42, 0.25);
    flex-shrink: 0;
}

body.dark-mode .sp-bloom-swatch {
    border-color: rgba(255, 255, 255, 0.45);
}

/* 12-Month Seasonal Bloom & Foliage Phenology Timeline Bar */
.sp-phenology-wrap {
    margin: 4px 0 16px 0;
    padding: 13px 15px;
    border-radius: 14px;
    background: var(--tag-bg, #edf4ee);
    border: 1px solid var(--border-color, #dce6de);
    overflow: hidden;
    max-width: 100%;
}

body.dark-mode .sp-phenology-wrap {
    background: rgba(24, 44, 34, 0.65);
    border-color: var(--border-color, #21382d);
}

.sp-pheno-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
    font-size: 0.8rem;
    font-weight: 800;
}

.sp-pheno-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.74rem;
    color: var(--wcpp-muted, #64748b);
}

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

.sp-pheno-month {
    min-width: 0;
    text-align: center;
    padding: 6px 2px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--card-bg, #ffffff);
    color: var(--wcpp-muted, #64748b);
    border: 1px solid var(--border-color, #dce6de);
    position: relative;
    transition: transform 0.15s ease;
}

@media (max-width: 640px) {
    .sp-phenology-wrap {
        padding: 11px 10px;
    }
    .sp-pheno-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 6px;
    }
}

body.dark-mode .sp-pheno-month {
    background: #12211a;
    border-color: #21382d;
    color: #94a3b8;
}

.sp-pheno-month.is-foliage {
    border-bottom: 3px solid #22c55e;
}

.sp-pheno-month.is-bloom {
    background: linear-gradient(135deg, #166534 0%, #15803d 100%);
    color: #ffffff;
    border-color: #14532d;
    box-shadow: 0 3px 8px -1px rgba(22, 101, 52, 0.35);
}

.sp-pheno-month.is-now {
    outline: 2px solid #eab308;
    outline-offset: 1px;
}

.sp-pheno-dot {
    display: block;
    font-size: 0.65rem;
    line-height: 1;
    margin-top: 2px;
}

/* Collapsible Deep-Dive Sections */
.sp-collapse-btn {
    appearance: none;
    border: 1px solid var(--border-color, #dce6de);
    background: var(--tag-bg, #edf4ee);
    color: var(--primary-color, #166534);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

body.dark-mode .sp-collapse-btn {
    background: #182c22;
    color: #4ade80;
    border-color: #21382d;
}

.sp-collapse-btn:hover {
    background: var(--primary-color, #166534);
    color: #ffffff;
}

.sp-card.is-collapsed > *:not(h2) {
    display: none !important;
}

.sp-card.is-collapsed h2 {
    margin-bottom: 0 !important;
}

/* "You Might Also Like" Thumbnail Media Cards */
body .sp-sim-grid {
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 12px;
}

body .sp-sim.sp-sim-media {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border-radius: 14px;
    background: var(--tag-bg, #edf4ee);
    border: 1px solid var(--border-color, #dce6de);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.dark-mode .sp-sim.sp-sim-media {
    background: #182c22;
    border-color: #21382d;
}

body .sp-sim.sp-sim-media:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color, #166534);
    box-shadow: 0 8px 20px -4px rgba(20, 83, 45, 0.14);
}

.sp-sim-thumb {
    width: 58px;
    height: 58px;
    border-radius: 11px;
    object-fit: cover;
    flex-shrink: 0;
    background: #14532d;
    border: 1px solid rgba(22, 101, 52, 0.2);
}

.sp-sim-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.sp-sim-info strong,
.sp-sim-info em,
.sp-sim-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Flora Index Quick-Filter Category Pills */
.flora-quick-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: -4px 0 16px 0;
}

.flora-pill-btn {
    appearance: none;
    border: 1px solid var(--border-color, #dce6de);
    background: var(--card-bg, #ffffff);
    color: var(--wcpp-text, #1e293b);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 13px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

body.dark-mode .flora-pill-btn {
    background: #12211a;
    color: #e2e8f0;
    border-color: #21382d;
}

.flora-pill-btn:hover {
    border-color: var(--primary-color, #166534);
    color: var(--primary-color, #166534);
}

.flora-pill-btn.active {
    background: var(--primary-color, #166534);
    color: #ffffff;
    border-color: var(--primary-color, #166534);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.25);
}

body.dark-mode .flora-pill-btn.active {
    background: #166534;
    color: #ffffff;
    border-color: #4ade80;
}

/* 3-Pillar Guided Journey Quick-Nav Banner */
.wcpp-journey-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 0 0 18px 0;
}

.wcpp-journey-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 14px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dce6de);
    box-shadow: 0 4px 14px -3px rgba(20, 83, 45, 0.05);
}

body.dark-mode .wcpp-journey-card {
    background: #12211a;
    border-color: #21382d;
}

.wcpp-journey-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color, #166534);
    margin-bottom: 3px;
}

body.dark-mode .wcpp-journey-title {
    color: #4ade80;
}

.wcpp-journey-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wcpp-journey-links a {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--wcpp-text, #0f172a);
    text-decoration: none;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--tag-bg, #edf4ee);
    transition: background 0.15s ease, color 0.15s ease;
}

body.dark-mode .wcpp-journey-links a {
    background: #182c22;
    color: #f1f5f9;
}

.wcpp-journey-links a:hover {
    background: var(--primary-color, #166534);
    color: #ffffff;
}

/* =========================================================================
   8. SITE-WIDE SVG ICON SYSTEM, HIGH-CONTRAST BUTTONS, PILL TAGS & HOMEPAGE POLISH
   ========================================================================= */

.wcpp-ico {
    display: inline-block;
    width: 15px;
    height: 15px;
    vertical-align: -2.5px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.sp-glance-icon .wcpp-ico {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.sp-pheno-dot .wcpp-ico {
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

/* High-Contrast Buttons & Badges in Light and Dark Modes */
body .sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(4px);
}

body .sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.86rem;
    text-decoration: none;
    border: 1.5px solid var(--border-color, #dce6de);
    background: var(--card-bg, #ffffff);
    color: #166534;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

body .sp-btn:hover {
    transform: translateY(-1.5px);
    border-color: #166534;
    box-shadow: 0 6px 16px rgba(22, 101, 52, 0.14);
}

body.dark-mode .sp-btn:not(.primary) {
    background: #162920;
    color: #86efac;
    border-color: #284738;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .sp-btn:not(.primary):hover {
    background: #1e382b;
    color: #bbf7d0;
    border-color: #4ade80;
}

body .sp-btn.primary {
    background: linear-gradient(135deg, #166534 0%, #0f766e 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(22, 101, 52, 0.28);
}

body .sp-btn.primary:hover {
    background: linear-gradient(135deg, #14532d 0%, #115e59 100%);
    box-shadow: 0 8px 20px rgba(22, 101, 52, 0.38);
}

body.dark-mode .sp-btn.primary {
    background: linear-gradient(135deg, #15803d 0%, #0d9488 100%);
    border: 1px solid rgba(134, 239, 172, 0.3);
}

/* Zebra-Striped & Tidied Specification Tables (.sp-facts) */
body .sp-facts {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

body .sp-facts tr:nth-child(even) th,
body .sp-facts tr:nth-child(even) td {
    background: rgba(22, 101, 52, 0.035);
}

body.dark-mode .sp-facts tr:nth-child(even) th,
body.dark-mode .sp-facts tr:nth-child(even) td {
    background: rgba(74, 222, 128, 0.04);
}

body .sp-facts th {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color, #dce6de);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    color: var(--wcpp-muted, #475569);
    font-weight: 800;
    font-size: 0.84rem;
}

body.dark-mode .sp-facts th {
    color: #94a3b8;
    border-bottom-color: #21382d;
}

body .sp-facts td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color, #dce6de);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    font-weight: 600;
}

body.dark-mode .sp-facts td {
    border-bottom-color: #21382d;
}

/* Auto-Converted Semicolon Attribute Pill Lists on Species Pages */
.sp-auto-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 5px 0 10px 0;
}

.sp-auto-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 11px;
    border-radius: 999px;
    font-size: 0.81rem;
    font-weight: 700;
    background: var(--tag-bg, #edf4ee);
    color: var(--wcpp-text, #1e293b);
    border: 1px solid var(--border-color, #dce6de);
}

body.dark-mode .sp-auto-pill {
    background: #182c22;
    color: #e2e8f0;
    border-color: #264234;
}

body .sp-card h3 {
    margin: 14px 0 4px 0;
    font-size: 0.83rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wcpp-muted, #64748b);
}

body.dark-mode .sp-card h3 {
    color: #94a3b8;
}

/* Homepage (index.html) Editorial & Visual Polish */
body #themeToggleBtn {
    display: none !important;
}

body .hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px !important;
    border-top: 4px solid #86efac;
    box-shadow: 0 16px 38px -8px rgba(20, 83, 45, 0.28) !important;
}

body .hero-card h1 {
    font-family: var(--wcpp-serif) !important;
    letter-spacing: -0.02em !important;
    font-size: clamp(1.85rem, 3.2vw, 2.45rem) !important;
}

.hero-quick-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    background: #ffffff;
    color: #14532d !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-cta-pill:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.hero-cta-pill.ghost {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(4px);
}

body .info-accordion {
    border-radius: 18px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 6px 22px -6px rgba(20, 83, 45, 0.05) !important;
}

body .info-accordion > summary {
    font-family: var(--wcpp-serif);
    font-size: 1.14rem !important;
    letter-spacing: -0.01em;
}

body .tool-link-card {
    position: relative;
    border-radius: 15px !important;
    padding: 15px 16px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    background: var(--card-bg, #ffffff) !important;
    box-shadow: 0 4px 14px -4px rgba(20, 83, 45, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

body.dark-mode .tool-link-card {
    background: #14251d !important;
    border-color: #233c30 !important;
}

body .tool-link-card:hover {
    transform: translateY(-2.5px);
    border-color: var(--primary-color, #166534) !important;
    box-shadow: 0 10px 24px -6px rgba(20, 83, 45, 0.15);
}

body .tool-link-card span.tool-cat-badge {
    display: inline-block;
    align-self: flex-start;
    width: fit-content;
    font-size: 0.66rem !important;
    font-weight: 800;
    line-height: 1.2 !important;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--tag-bg, #edf4ee);
    color: var(--primary-color, #166534) !important;
    border: 1px solid rgba(22, 101, 52, 0.14);
    margin-bottom: 6px;
}

body.dark-mode .tool-link-card span.tool-cat-badge {
    background: #1c3328;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.22);
}

body .wcpp-guide-hubs h2,
body .dir-header h2,
body .latin-banner h2 {
    font-family: var(--wcpp-serif) !important;
    letter-spacing: -0.015em;
}

body .wcpp-guide-hubs a {
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

body .wcpp-guide-hubs a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(20, 83, 45, 0.14);
}

/* Directory One-Click Category Feed Tabs on Homepage */
.dir-feed-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px 0;
}

.dir-feed-pill {
    appearance: none;
    border: 1px solid var(--border-color, #dce6de);
    background: var(--card-bg, #ffffff);
    color: var(--wcpp-text, #1e293b);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

body.dark-mode .dir-feed-pill {
    background: #14251d;
    color: #e2e8f0;
    border-color: #233c30;
}

.dir-feed-pill:hover {
    border-color: var(--primary-color, #166534);
}

.dir-feed-pill.active {
    background: var(--primary-color, #166534);
    color: #ffffff;
    border-color: var(--primary-color, #166534);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.25);
}

body.dark-mode .dir-feed-pill.active {
    background: #166534;
    border-color: #4ade80;
}

/* Flora Index List & Accordion Aesthetic Upgrades */
body #floraCoreList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 8px;
    list-style: none;
    padding: 0;
}

body #floraCoreList li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3px;
    padding: 10px 14px;
    border-radius: 13px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dce6de);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.dark-mode #floraCoreList li {
    background: #12211a;
    border-color: #21382d;
}

body #floraCoreList li:hover {
    transform: translateY(-1.5px);
    border-color: var(--primary-color, #166534);
    box-shadow: 0 6px 16px -4px rgba(20, 83, 45, 0.12);
}

body #floraCoreList li a {
    font-weight: 800;
    font-size: 0.93rem;
    color: var(--primary-color, #166534);
    text-decoration: none;
}

body.dark-mode #floraCoreList li a {
    color: #86efac;
}

body #floraCoreList li > span {
    font-size: 0.77rem;
    color: var(--wcpp-muted, #64748b);
    font-weight: 700;
}

body details.alpha-group {
    border-radius: 14px;
    border: 1px solid var(--border-color, #dce6de);
    background: var(--card-bg, #ffffff);
    margin-bottom: 8px;
    overflow: hidden;
}

body.dark-mode details.alpha-group {
    background: #12211a;
    border-color: #21382d;
}

body details.alpha-group > summary {
    padding: 11px 16px;
    font-family: var(--wcpp-serif);
    font-weight: 700;
    cursor: pointer;
}

body ul.alpha-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 6px 16px;
    padding: 8px 18px 14px 32px;
}

/* =========================================================================
   9. SITE-WIDE HERO UNIFICATION, SIDEBAR & QUIZ PHOTO CARDS, DIRECTORY & GUIDES
   ========================================================================= */

/* Unify Editorial Serif Headings Across All Tool & Section Heroes */
body .orders-hero h1,
body .cal-hero h1,
body .calc-hero h1,
body .planner-hero h1,
body .plant-hero-banner h1,
body .latin-hero h1,
body .support-hero h1,
body .gh-card-title,
body .footer-brand h2,
body #miniQuiz .mq-title,
body #miniQuiz .mq-q,
body .dir-card h3 {
    font-family: var(--wcpp-serif) !important;
    letter-spacing: -0.015em;
}

/* Sidebar Cards & Vector Weather Badge */
body .gh-sidebar-list .sidebar-card {
    border-radius: 18px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    background: var(--card-bg, #ffffff) !important;
    box-shadow: 0 8px 24px -6px rgba(20, 83, 45, 0.055), 0 2px 6px -1px rgba(20, 83, 45, 0.03) !important;
}

body.dark-mode .gh-sidebar-list .sidebar-card {
    background: #12211a !important;
    border-color: #21382d !important;
    box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.45) !important;
}

body .gh-weather-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--tag-bg, #edf4ee);
    border: 1px solid var(--border-color, #dce6de);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #166534);
}

body.dark-mode .gh-weather-icon {
    background: #182c22;
    border-color: #264234;
    color: #4ade80;
}

body .gh-weather-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

body.dark-mode .gh-btn-primary {
    background: linear-gradient(135deg, #15803d 0%, #0d9488 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(134, 239, 172, 0.28) !important;
}

body.dark-mode .gh-btn-secondary {
    background: #162920 !important;
    color: #86efac !important;
    border-color: #284738 !important;
}

/* Homepage Mini-Quiz Botanical Photo Reveal Card */
.mq-fb-media {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mq-fb-thumb-wrap {
    position: relative;
    width: 78px;
    height: 78px;
    border-radius: 13px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color, #dce6de);
    background: #14532d;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.mq-fb-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mq-fb-thumb-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    left: 3px;
    text-align: center;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 0.52rem;
    font-weight: 800;
    padding: 1.5px 4px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Homepage Regional Guide Hub Cards */
body .wcpp-guide-hubs {
    border-radius: 20px !important;
    box-shadow: 0 8px 26px -6px rgba(20, 83, 45, 0.055) !important;
}

.wcpp-guide-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.wcpp-guide-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(22, 101, 52, 0.1);
    color: var(--primary-color, #166534);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

body.dark-mode .wcpp-guide-ico {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

/* Homepage Resource Directory Controls & Cards */
body .dir-controls.has-feed-pills select#dirFeedSelect {
    display: none !important;
}

body .dir-card {
    border-radius: 16px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 6px 20px -6px rgba(20, 83, 45, 0.06) !important;
}

body.dark-mode .dir-card {
    background: #12211a !important;
    border-color: #21382d !important;
}

body .dir-card:hover {
    border-color: var(--primary-color, #166534) !important;
    box-shadow: 0 12px 28px -6px rgba(20, 83, 45, 0.16) !important;
}

/* =========================================================================
   10. PHASE 3 DESIGN SYSTEM REDESIGN — FROSTED CHROME, MUSEUM HERO,
       RULES GRID, LATIN SPECIMEN BANNER, UNIFIED TOOL PAGES & MICRO-POLISH
   ========================================================================= */

/* Botanical Selection, Focus Rings & Custom Thin Scrollbars */
::selection {
    background: rgba(22, 101, 52, 0.2);
    color: #14532d;
}

body.dark-mode ::selection {
    background: rgba(74, 222, 128, 0.28);
    color: #ecfdf5;
}

:focus-visible {
    outline: 2.5px solid #22c55e;
    outline-offset: 2px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(22, 101, 52, 0.22);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 101, 52, 0.42);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.22);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 222, 128, 0.42);
}

/* Razor-Thin Top Reading Progress Bar */
.wcpp-read-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    z-index: 2000;
    background: linear-gradient(90deg, #16a34a 0%, #14b8a6 55%, #4ade80 100%);
    pointer-events: none;
    transition: width 0.08s linear;
}

/* Frosted-Glass Sticky Global Header & Fraunces Wordmark */
body #header-container {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(22, 101, 52, 0.12) !important;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06) !important;
}

body.dark-mode #header-container {
    background: rgba(11, 21, 16, 0.88) !important;
    border-bottom: 1px solid rgba(74, 222, 128, 0.14) !important;
    box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.45) !important;
}

body .gh-header-nav-bar {
    background: rgba(246, 249, 245, 0.85) !important;
    border-top-color: rgba(22, 101, 52, 0.09) !important;
}

body.dark-mode .gh-header-nav-bar {
    background: rgba(15, 29, 22, 0.88) !important;
    border-top-color: rgba(74, 222, 128, 0.1) !important;
}

body .gh-brand {
    font-family: var(--wcpp-serif) !important;
    font-size: 1.15rem !important;
    letter-spacing: -0.015em !important;
}

body .header-util-btn {
    border-radius: 999px !important;
}

/* Fix Sticky Jump-Nav Offset Below Fixed Header */
body .sp-jump-nav {
    top: 76px;
}

@media (min-width: 1080px) {
    body .sp-jump-nav {
        top: 108px;
    }
}

/* Elevated Homepage Hero Card + 4-Metric Botanical Authority Strip */
body .hero-card {
    background:
        radial-gradient(circle at 88% 18%, rgba(134, 239, 172, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 12% 90%, rgba(20, 184, 166, 0.22) 0%, transparent 48%),
        linear-gradient(135deg, #0d3b22 0%, #14532d 52%, #0f5f58 100%) !important;
    border-top: 4px solid #86efac !important;
}

.hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

@media (min-width: 680px) {
    .hero-stats-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(4px);
}

.hero-stat-num {
    font-family: var(--wcpp-serif);
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.15;
    color: #dcfce7;
    letter-spacing: -0.02em;
}

.hero-stat-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.25;
}

/* Refined Herbarium Architectural Shell for Homepage Mini-Quiz */
body .mq-shell {
    margin: 8px 0 22px 0 !important;
}

body .mq-shell::before {
    transform: translate(6px, 6px) !important;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.12) 0%, rgba(15, 118, 110, 0.12) 100%) !important;
    border: 1px solid rgba(22, 101, 52, 0.14);
}

body.dark-mode .mq-shell::before {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.12) 0%, rgba(45, 212, 191, 0.12) 100%) !important;
    border-color: rgba(74, 222, 128, 0.18);
}

body #miniQuiz {
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 10px 28px -6px rgba(20, 83, 45, 0.08) !important;
}

body.dark-mode #miniQuiz {
    box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.5) !important;
}

/* 2x2 Community Rules Icon-Card Grid on Homepage */
.wcpp-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
    margin: 14px 0 4px 0;
}

.wcpp-rule-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border-radius: 13px;
    background: var(--tag-bg, #edf4ee);
    border: 1px solid var(--border-color, #dce6de);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--wcpp-text, #1e293b);
    line-height: 1.35;
}

body.dark-mode .wcpp-rule-card {
    background: #182c22;
    border-color: #264234;
    color: #e2e8f0;
}

.wcpp-rule-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dce6de);
    color: var(--primary-color, #166534);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.dark-mode .wcpp-rule-ico {
    background: #12211a;
    border-color: #284738;
    color: #4ade80;
}

/* Tool Card Top Category Accent Bar & Sliding Arrow */
body .tool-link-card {
    border-top: 3px solid var(--tool-accent, #166534) !important;
    padding-right: 28px !important;
}

body .tool-link-card::after {
    content: "→";
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--wcpp-muted, #64748b);
    opacity: 0.55;
    transition: transform 0.18s ease, opacity 0.18s ease, color 0.18s ease;
}

body .tool-link-card:hover::after {
    transform: translateX(3px);
    opacity: 1;
    color: var(--primary-color, #166534);
}

body.dark-mode .tool-link-card:hover::after {
    color: #4ade80;
}

/* 2-Column Interactive Botanical Latin Specimen Banner */
body .latin-banner.wcpp-latin-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left !important;
    align-items: center;
    padding: 26px 26px !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 95% 15%, rgba(22, 163, 74, 0.09) 0%, transparent 50%),
        var(--card-bg, #ffffff) !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 8px 26px -6px rgba(20, 83, 45, 0.06);
}

body.dark-mode .latin-banner.wcpp-latin-split {
    background:
        radial-gradient(circle at 95% 15%, rgba(74, 222, 128, 0.08) 0%, transparent 50%),
        #12211a !important;
    border-color: #21382d !important;
}

@media (min-width: 760px) {
    body .latin-banner.wcpp-latin-split {
        grid-template-columns: 1.15fr 1fr;
        gap: 28px;
    }
}

.wcpp-latin-copy p {
    margin: 0 0 16px 0 !important;
}

.wcpp-latin-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

a.wcpp-latin-chip {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px !important;
    border-radius: 13px !important;
    background: var(--tag-bg, #edf4ee) !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    color: var(--wcpp-text, #0f172a) !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

body.dark-mode a.wcpp-latin-chip {
    background: #182c22 !important;
    border-color: #264234 !important;
    color: #f1f5f9 !important;
}

a.wcpp-latin-chip:hover {
    transform: translateY(-2px) !important;
    border-color: var(--primary-color, #166534) !important;
    box-shadow: 0 6px 14px -4px rgba(20, 83, 45, 0.16) !important;
}

a.wcpp-latin-chip em {
    font-family: var(--wcpp-serif);
    font-style: italic;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--primary-color, #166534);
}

body.dark-mode a.wcpp-latin-chip em {
    color: #4ade80;
}

a.wcpp-latin-chip span {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--wcpp-muted, #64748b);
}

body.dark-mode a.wcpp-latin-chip span {
    color: #94a3b8;
}

/* Unified Botanical Hero & Card Language Across All Secondary Tool Pages */
body .orders-hero,
body .cal-hero,
body .calc-hero,
body .planner-hero,
body .latin-hero,
body .support-hero,
body .flora-hero {
    border-top: 4px solid #86efac !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 34px -8px rgba(20, 83, 45, 0.24) !important;
}

body .panel-card,
body .cal-controls-card,
body .toolbar-card,
body .support-card,
body .controls-card,
body .bloom-calendar-card,
body .latin-result-card,
body .latin-empty-card {
    border-radius: 18px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 8px 24px -6px rgba(20, 83, 45, 0.055) !important;
}

body.dark-mode .panel-card,
body.dark-mode .cal-controls-card,
body.dark-mode .toolbar-card,
body.dark-mode .support-card,
body.dark-mode .controls-card,
body.dark-mode .bloom-calendar-card,
body.dark-mode .latin-result-card,
body.dark-mode .latin-empty-card {
    background: #12211a !important;
    border-color: #21382d !important;
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.45) !important;
}

/* Global Search & My Garden Modals Editorial Polish */
body .wcpp-modal-backdrop {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body .wcpp-modal {
    border-radius: 20px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.35) !important;
}

body .wcpp-modal-header h2 {
    font-family: var(--wcpp-serif) !important;
}

/* Sidebar Spotlight Image Frame & Footer Botanical Accent Top Bar */
body #dynamic-spotlight img {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

body #dynamic-spotlight:hover img {
    transform: scale(1.025);
}

body .gh-site-footer {
    position: relative;
    border-top: 3px solid transparent !important;
    background-image: linear-gradient(var(--card-bg, #ffffff), var(--card-bg, #ffffff)),
                      linear-gradient(90deg, #14532d 0%, #16a34a 50%, #0f766e 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

body.dark-mode .gh-site-footer {
    background-image: linear-gradient(#101e17, #101e17),
                      linear-gradient(90deg, #166534 0%, #22c55e 50%, #14b8a6 100%);
}

/* =========================================================================
   11. QUIZ PHOTO FIX, PWA BACK/FORWARD NAV, PROMINENT SEARCH,
       RESPONSIVE PLANT DETAIL MODAL WITH PHOTO & COMPARE TABLE REDESIGN
   ========================================================================= */

/* 1. Fix Homepage Quiz Feedback Photo & "Wikimedia Commons" Badge Cut-Off */
body .mq-fb-media {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

body .mq-fb-thumb-wrap {
    position: relative;
    width: 136px;
    height: 94px;
    border-radius: 13px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color, #dce6de);
    background: #14532d;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.14);
}

body .mq-fb-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

body .mq-fb-thumb-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    text-align: center;
    background: rgba(15, 23, 42, 0.84);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.61rem;
    font-weight: 800;
    line-height: 1.25;
    padding: 2px 6px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 520px) {
    body .mq-fb-media {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    body .mq-fb-thumb-wrap {
        width: 100%;
        height: 145px;
    }
}

/* 2. Desktop & PWA Standalone App Back / Forward Navigation Buttons */
.wcpp-brand-cluster {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wcpp-history-nav {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 999px;
    background: var(--tag-bg, #edf4ee);
    border: 1px solid var(--border-color, #dce6de);
    flex-shrink: 0;
}

@media all and (display-mode: standalone), all and (display-mode: window-controls-overlay), all and (display-mode: minimal-ui) {
    .wcpp-history-nav {
        display: inline-flex;
    }
}

body.dark-mode .wcpp-history-nav {
    background: #162920;
    border-color: #264234;
}

.wcpp-hist-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--primary-color, #166534);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
    padding: 0;
}

body.dark-mode .wcpp-hist-btn {
    color: #86efac;
}

.wcpp-hist-btn:hover {
    background: var(--card-bg, #ffffff);
    color: #14532d;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

body.dark-mode .wcpp-hist-btn:hover {
    background: #213d2f;
    color: #ecfdf5;
}

.wcpp-hist-btn:active {
    transform: scale(0.92);
}

.wcpp-hist-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* 3. Prominent, High-Contrast Search Input Bar (plant-planner & flora-index) */
body .search-field-wrap {
    position: relative;
}

body .search-field-wrap.has-search-ico::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 15px;
    width: 19px;
    height: 19px;
    pointer-events: none;
    z-index: 2;
    background-color: #166534;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.dark-mode .search-field-wrap.has-search-ico::before {
    background-color: #4ade80;
}

body #universalSearchInput.search-input,
body #floraIndexFilter {
    width: 100%;
    min-height: 48px !important;
    padding: 12px 16px 12px 44px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    border: 2px solid rgba(22, 101, 52, 0.36) !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 6px 20px -6px rgba(22, 101, 52, 0.16), inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

body.dark-mode #universalSearchInput.search-input,
body.dark-mode #floraIndexFilter {
    background: #0d1a14 !important;
    color: #f1f5f9 !important;
    border-color: rgba(74, 222, 128, 0.42) !important;
    box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.45) !important;
}

body #universalSearchInput.search-input::placeholder,
body #floraIndexFilter::placeholder {
    color: #64748b !important;
    font-weight: 600 !important;
}

body.dark-mode #universalSearchInput.search-input::placeholder,
body.dark-mode #floraIndexFilter::placeholder {
    color: #94a3b8 !important;
}

body #universalSearchInput.search-input:focus,
body #floraIndexFilter:focus {
    outline: none !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18), 0 8px 24px -4px rgba(22, 101, 52, 0.2) !important;
}

/* Eye-Catching Side-by-Side Comparison CTA in Planner Hero */
body #cardToMatrixLink.btn-hero {
    background: #ffffff !important;
    color: #14532d !important;
    border: 1.5px solid #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}

body #cardToMatrixLink.btn-hero:hover {
    background: #dcfce7 !important;
    border-color: #dcfce7 !important;
    transform: translateY(-1.5px);
}

/* Hide Redundant Origin Radio Section & Green Border Legend When Unified 2-Option Dropdown is Active */
body.wcpp-unified-catalog .facet-block-origin-hidden,
body.wcpp-unified-catalog .native-border-legend {
    display: none !important;
}

/* 4. Complete Responsive Shakeup of #plantDetailModal (Desktop, Laptop, Mobile) */
body #plantDetailModal.modal-backdrop {
    padding: 0.75rem !important;
    align-items: center;
}

body #plantDetailModal .modal-dialog {
    width: min(940px, 100%) !important;
    max-height: 92vh !important;
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px !important;
    background: var(--card-bg, #ffffff) !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 28px 70px -12px rgba(10, 22, 16, 0.45) !important;
}

body.dark-mode #plantDetailModal .modal-dialog {
    background: #12211a !important;
    border-color: #264234 !important;
}

body #plantDetailModal .modal-header {
    display: grid !important;
    grid-template-columns: 186px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 1.2rem 1.4rem !important;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.07) 0%, rgba(15, 118, 110, 0.04) 100%) !important;
    border-bottom: 1px solid var(--border-color, #dce6de) !important;
    position: relative;
}

body.dark-mode #plantDetailModal .modal-header {
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.25) 0%, rgba(15, 118, 110, 0.14) 100%) !important;
    border-bottom-color: #21382d !important;
}

.wcpp-modal-photo-wrap {
    position: relative;
    width: 186px;
    height: 128px;
    border-radius: 14px;
    overflow: hidden;
    background: #14532d;
    border: 1px solid var(--border-color, #dce6de);
    box-shadow: 0 8px 22px -6px rgba(15, 23, 42, 0.25);
    flex-shrink: 0;
}

.wcpp-modal-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wcpp-modal-photo-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.84);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.63rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

body #plantDetailModal .modal-header h2 {
    font-family: var(--wcpp-serif) !important;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem) !important;
    line-height: 1.2 !important;
    color: var(--wcpp-text, #0f172a) !important;
}

body.dark-mode #plantDetailModal .modal-header h2 {
    color: #f1f5f9 !important;
}

body #plantDetailModal .modal-latin-auth em {
    font-family: var(--wcpp-serif);
    font-style: italic;
}

/* Sticky Wrapped Tab Pill Bar Inside Modal — All 5 Tabs Fit on 1 Row on Desktop & Never Cut Off */
body #plantDetailModal .modal-tabs {
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 6px !important;
    padding: 10px 1.25rem !important;
    background: rgba(246, 249, 245, 0.96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color, #dce6de) !important;
}

body.dark-mode #plantDetailModal .modal-tabs {
    background: rgba(15, 29, 22, 0.96) !important;
    border-bottom-color: #21382d !important;
}

body #plantDetailModal .tab-btn {
    flex: 0 1 auto !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    background: var(--card-bg, #ffffff) !important;
    color: var(--wcpp-muted, #475569) !important;
    padding: 6px 12px !important;
    font-size: 0.79rem !important;
    font-weight: 800 !important;
    margin-bottom: 0 !important;
    transition: all 0.15s ease !important;
}

/* Harmonious Labeled Pill Groups Inside Modal (Garden Uses vs Key Ecological Traits) */
.wcpp-modal-pill-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    color: var(--wcpp-muted, #64748b);
    margin: 10px 0 5px 0;
}

body.dark-mode .wcpp-modal-pill-label {
    color: #94a3b8;
}

body #plantDetailModal .meta-tag {
    background: #edf4ee !important;
    color: #14532d !important;
    border: 1px solid #cfe0d4 !important;
    padding: 4px 11px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
}

body.dark-mode #plantDetailModal .meta-tag {
    background: #182c22 !important;
    color: #bbf7d0 !important;
    border-color: #264234 !important;
}

body #plantDetailModal .meta-tag.accent {
    background: #ecfdf5 !important;
    color: #0f766e !important;
    border: 1px solid #99f6e4 !important;
}

body.dark-mode #plantDetailModal .meta-tag.accent {
    background: #132c28 !important;
    color: #5eead4 !important;
    border-color: #1f4d46 !important;
}

body.dark-mode #plantDetailModal .tab-btn {
    background: #162920 !important;
    border-color: #264234 !important;
    color: #94a3b8 !important;
}

body #plantDetailModal .tab-btn.active {
    background: #166534 !important;
    color: #ffffff !important;
    border-color: #166534 !important;
    box-shadow: 0 3px 10px rgba(22, 101, 52, 0.28) !important;
}

/* Full Unobstructed Modal Body (No Tiny Scroll Trap!) */
body #plantDetailModal .modal-body {
    overflow: visible !important;
    flex: none !important;
    height: auto !important;
    min-height: 240px !important;
    padding: 1.35rem 1.45rem !important;
}

body #plantDetailModal .modal-footer {
    padding: 1.1rem 1.45rem 1.35rem !important;
    background: var(--tag-bg, #edf4ee) !important;
    border-top: 1px solid var(--border-color, #dce6de) !important;
}

body.dark-mode #plantDetailModal .modal-footer {
    background: #0e1b15 !important;
    border-top-color: #21382d !important;
}

body #plantDetailModal .modal-citations {
    max-height: none !important;
    overflow: visible !important;
    line-height: 1.45;
}

/* Mobile Modal Breakpoint (< 680px) */
@media (max-width: 680px) {
    body #plantDetailModal.modal-backdrop {
        padding: 0.45rem !important;
        align-items: flex-end;
    }
    body #plantDetailModal .modal-dialog {
        max-height: 94vh !important;
        border-radius: 18px 18px 14px 14px !important;
    }
    body #plantDetailModal .modal-header {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 1rem !important;
    }
    .wcpp-modal-photo-wrap {
        width: 100%;
        height: 165px;
    }
    body #plantDetailModal .modal-header-actions {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 5;
    }
    body #plantDetailModal .modal-close {
        background: rgba(15, 23, 42, 0.72) !important;
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.35) !important;
        backdrop-filter: blur(6px);
    }
    body #plantDetailModal .modal-tabs {
        padding: 8px 1rem !important;
    }
    body #plantDetailModal .modal-body {
        padding: 1.1rem 1rem !important;
    }
    body #plantDetailModal .modal-footer {
        padding: 1rem !important;
    }
}

/* 5. Redesigned Compare Table (#comparisonTableWrap .comparison-matrix on plant-planner.html) */
body #comparisonTableWrap .table-scroll {
    overflow-x: auto !important;
    border-radius: 18px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 8px 26px -6px rgba(20, 83, 45, 0.07) !important;
    background: var(--card-bg, #ffffff) !important;
}

body.dark-mode #comparisonTableWrap .table-scroll {
    background: #12211a !important;
    border-color: #21382d !important;
}

body #comparisonTableWrap .comparison-matrix {
    width: 100% !important;
    min-width: 980px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 0.86rem !important;
}

body #comparisonTableWrap .comparison-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--tag-bg, #edf4ee) !important;
    color: var(--primary-color, #166534) !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    padding: 13px 14px !important;
    border-bottom: 2px solid var(--border-color, #dce6de) !important;
    white-space: nowrap;
}

body.dark-mode #comparisonTableWrap .comparison-matrix thead th {
    background: #162920 !important;
    color: #86efac !important;
    border-bottom-color: #264234 !important;
}

body #comparisonTableWrap .comparison-matrix tbody tr {
    transition: background 0.14s ease;
}

body #comparisonTableWrap .comparison-matrix tbody tr:nth-child(even) td {
    background: rgba(22, 101, 52, 0.024);
}

body.dark-mode #comparisonTableWrap .comparison-matrix tbody tr:nth-child(even) td {
    background: rgba(74, 222, 128, 0.03);
}

body #comparisonTableWrap .comparison-matrix tbody tr:hover td {
    background: rgba(22, 163, 74, 0.07) !important;
}

body #comparisonTableWrap .comparison-matrix td {
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--border-color, #dce6de) !important;
    vertical-align: middle !important;
    line-height: 1.4;
}

body.dark-mode #comparisonTableWrap .comparison-matrix td {
    border-bottom-color: #21382d !important;
}

/* Sticky Species Column with Botanical Thumbnail in Compare Table */
body #comparisonTableWrap .comparison-matrix th:first-child,
body #comparisonTableWrap .comparison-matrix td:first-child {
    position: sticky;
    left: 0;
    z-index: 4;
    min-width: 235px;
    background: var(--card-bg, #ffffff);
    box-shadow: 4px 0 12px -4px rgba(15, 23, 42, 0.08);
}

body #comparisonTableWrap .comparison-matrix thead th:first-child {
    z-index: 6;
    background: var(--tag-bg, #edf4ee) !important;
}

body.dark-mode #comparisonTableWrap .comparison-matrix td:first-child {
    background: #12211a;
}

body.dark-mode #comparisonTableWrap .comparison-matrix thead th:first-child {
    background: #162920 !important;
}

.wcpp-tbl-species {
    display: flex;
    align-items: center;
    gap: 11px;
}

.wcpp-tbl-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #14532d;
    border: 1px solid var(--border-color, #dce6de);
}

body .origin-badge {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}

.wcpp-tbl-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 270px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--wcpp-muted, #475569);
}

body.dark-mode .wcpp-tbl-clamp {
    color: #94a3b8;
}

.wcpp-tbl-bloom-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 140px;
}

.wcpp-tbl-bloom-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--tag-bg, #edf4ee);
    color: var(--primary-color, #166534);
    border: 1px solid rgba(22, 101, 52, 0.16);
    white-space: nowrap;
}

body.dark-mode .wcpp-tbl-bloom-pill {
    background: #1a3326;
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.22);
}

.wcpp-tbl-host-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(22, 101, 52, 0.1);
    color: var(--primary-color, #166534);
}

body.dark-mode .wcpp-tbl-host-pill {
    background: rgba(74, 222, 128, 0.15);
    color: #86efac;
}

/* =========================================================================
   12. SITE-WIDE PAGE REDESIGN — NATIVEPLANTS, GARDEN, ORDERS, CALENDAR,
       CALCULATORS, BIOS, LATIN, ARTICLES, SUPPORT & UPDATES
   ========================================================================= */

/* A. Upgrade Flat Headers on nativeplants, garden, calculators, articles, bios & updates into Signature Forest Hero Banners */
body .page-title-row,
body .calc-hero,
body .page-header-card,
body .updates-hero,
body .wcpp-bios-hero {
    background:
        radial-gradient(circle at 88% 18%, rgba(134, 239, 172, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 12% 90%, rgba(20, 184, 166, 0.2) 0%, transparent 48%),
        linear-gradient(135deg, #0d3b22 0%, #14532d 52%, #0f5f58 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-top: 4px solid #86efac !important;
    border-radius: 20px !important;
    padding: 26px 28px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 14px 34px -8px rgba(20, 83, 45, 0.28) !important;
}

body .page-title-row h1,
body .calc-hero h1,
body .page-header-card h1,
body .updates-hero h1,
body .wcpp-bios-hero h1 {
    font-family: var(--wcpp-serif) !important;
    color: #ffffff !important;
    font-size: clamp(1.55rem, 2.8vw, 2.15rem) !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 6px !important;
}

body .page-title-row p,
body .calc-hero p,
body .calc-hero .intro,
body .page-header-card p,
body .updates-hero p,
body .wcpp-bios-hero p,
body .wcpp-bios-hero .subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

body .page-title-row #plant-count-badge,
body .page-header-card #articleResultCount {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ecfdf5 !important;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 0.78rem !important;
    margin-left: 8px;
    vertical-align: middle;
}

/* Hero Action Buttons on nativeplants, garden, orders, calendar, updates */
body .page-title-row .btn,
body .updates-hero .wcpp-pill-btn {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: 999px !important;
    padding: 8px 15px !important;
    font-weight: 800 !important;
    font-size: 0.84rem !important;
    backdrop-filter: blur(4px);
    transition: transform 0.15s ease, background 0.15s ease !important;
}

body .page-title-row .btn:hover,
body .updates-hero .wcpp-pill-btn:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    transform: translateY(-1.5px);
}

body .page-title-row .btn:first-child {
    background: #ffffff !important;
    color: #14532d !important;
    border-color: #ffffff !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18) !important;
}

body .page-title-row .btn:first-child:hover {
    background: #dcfce7 !important;
    border-color: #dcfce7 !important;
}

/* Keep Live Weather Bar inside .calc-hero high-contrast on light & dark modes */
body .calc-hero #calcLiveWeatherStatus,
body .calc-hero #calcLiveWeatherStatus * {
    color: #14532d !important;
}

body.dark-mode .calc-hero #calcLiveWeatherStatus,
body.dark-mode .calc-hero #calcLiveWeatherStatus * {
    color: #ecfdf5 !important;
}

/* B. Prominent Emerald Search Inputs Across ALL Pages */
body #catalogSearchInput,
body #ordersSearchInput,
body #calSearchInput,
body #rowSearchInput,
body #updSearchInput,
body #search1,
body #search2,
body .controls-card #searchInput,
body .page-header-card #searchInput,
body #dirSearchInput {
    min-height: 46px !important;
    padding: 11px 16px !important;
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    border-radius: 13px !important;
    border: 2px solid rgba(22, 101, 52, 0.35) !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 5px 18px -6px rgba(22, 101, 52, 0.15), inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

body.dark-mode #catalogSearchInput,
body.dark-mode #ordersSearchInput,
body.dark-mode #calSearchInput,
body.dark-mode #rowSearchInput,
body.dark-mode #updSearchInput,
body.dark-mode #search1,
body.dark-mode #search2,
body.dark-mode .controls-card #searchInput,
body.dark-mode .page-header-card #searchInput,
body.dark-mode #dirSearchInput {
    background: #0d1a14 !important;
    color: #f1f5f9 !important;
    border-color: rgba(74, 222, 128, 0.42) !important;
    box-shadow: 0 5px 18px -6px rgba(0, 0, 0, 0.45) !important;
}

body #catalogSearchInput:focus,
body #ordersSearchInput:focus,
body #calSearchInput:focus,
body #rowSearchInput:focus,
body #updSearchInput:focus,
body #search1:focus,
body #search2:focus,
body .controls-card #searchInput:focus,
body .page-header-card #searchInput:focus,
body #dirSearchInput:focus {
    outline: none !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18), 0 8px 22px -4px rgba(22, 101, 52, 0.2) !important;
}

/* Articles page hero count pill & elevated controls */
body .page-header-card #articleResultCount {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ecfdf5 !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
}

body .page-header-card p {
    margin-bottom: 0 !important;
}

/* C. nativeplants.html & garden.html Elevated Controls, Cards & Matrix Polish */
body .controls-container,
body .table-wrapper,
body .compat-group-box {
    border-radius: 18px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 8px 24px -6px rgba(20, 83, 45, 0.055) !important;
}

body.dark-mode .controls-container,
body.dark-mode .table-wrapper {
    background: #12211a !important;
    border-color: #21382d !important;
}

body .controls-container select,
body .cal-controls-card select,
body .panel-card select,
body .updates-controls select {
    border-radius: 11px !important;
    border: 1.5px solid var(--border-color, #dce6de) !important;
    font-weight: 700 !important;
}

body .controls-container select:focus,
body .cal-controls-card select:focus,
body .panel-card select:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14) !important;
}

body .table-wrapper table.comparison-matrix thead th {
    background: var(--tag-bg, #edf4ee) !important;
}

body.dark-mode .table-wrapper table.comparison-matrix thead th {
    background: #162920 !important;
}

body .table-wrapper table.comparison-matrix tbody tr:nth-child(even) td {
    background: rgba(22, 101, 52, 0.024);
}

body.dark-mode .table-wrapper table.comparison-matrix tbody tr:nth-child(even) td {
    background: rgba(74, 222, 128, 0.03);
}

/* D. orders.html Catalog Cards, Filter Pills & Cart Polish */
body .catalog-grid > *,
body .cart-box {
    border-radius: 16px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 6px 20px -6px rgba(20, 83, 45, 0.06) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body .catalog-grid > *:hover {
    transform: translateY(-2.5px);
    border-color: var(--primary-color, #166534) !important;
    box-shadow: 0 12px 26px -6px rgba(20, 83, 45, 0.15) !important;
}

body.dark-mode .catalog-grid > *,
body.dark-mode .cart-box {
    background: #14251d !important;
    border-color: #233c30 !important;
}

body .panel-head h2,
body .cart-box h3 {
    font-family: var(--wcpp-serif) !important;
    letter-spacing: -0.015em;
}

body .pill-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    transition: all 0.15s ease !important;
}

body .pill-filter.active {
    background: #166534 !important;
    border-color: #166534 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.25);
}

/* E. calendar.html Frosted View Tabs & Calendar Table Polish */
body .view-tabs {
    border-bottom: none !important;
    padding-bottom: 4px !important;
}

body .view-tabs button {
    border-radius: 999px !important;
    font-weight: 800 !important;
    padding: 8px 16px !important;
}

body .cal-table-wrap {
    border-radius: 18px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 8px 24px -6px rgba(20, 83, 45, 0.06) !important;
}

body.dark-mode .cal-table-wrap {
    background: #12211a !important;
    border-color: #21382d !important;
}

/* F. calculators.html Frosted Pill Sticky Nav & Calculator Cards */
body .calcNav {
    background: rgba(246, 249, 245, 0.94) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    padding: 9px 12px !important;
    box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 6px;
}

body .calcNav::-webkit-scrollbar {
    display: none;
}

body.dark-mode .calcNav {
    background: rgba(15, 29, 22, 0.9) !important;
    border-color: #21382d !important;
}

body .calcNav a {
    white-space: nowrap;
    flex-shrink: 0;
}

body .calcGrid > *,
body .result-box {
    border-radius: 18px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 8px 24px -6px rgba(20, 83, 45, 0.055) !important;
}

body.dark-mode .calcGrid > *,
body.dark-mode .result-box {
    background: #12211a !important;
    border-color: #21382d !important;
}

body .calcGrid h3,
body main h2[id] {
    font-family: var(--wcpp-serif) !important;
    letter-spacing: -0.01em;
}

/* G. bios.html, latin.html, support.html & updates.html Polish */
body .plant-card-latin,
body .latin-result-card h2,
body .support-card h2,
body .tier-card h3 {
    font-family: var(--wcpp-serif) !important;
}

body .etransfer-box,
body .tiers-grid > *,
body .contrib-grid > *,
body .step-box {
    border-radius: 16px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 6px 20px -6px rgba(20, 83, 45, 0.055) !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

body .tiers-grid > *:hover,
body .contrib-grid > *:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color, #166534) !important;
}

body.dark-mode .etransfer-box,
body.dark-mode .tiers-grid > *,
body.dark-mode .contrib-grid > * {
    background: #14251d !important;
    border-color: #233c30 !important;
}

/* =========================================================================
   13. MASTER SITE-WIDE CONSISTENCY SYSTEM — ONE UNIFIED HERO, ONE BUTTON
       LANGUAGE, ONE SECTION HEADING SIGNATURE & ORDERS.HTML 2-COL HERO
   ========================================================================= */

/* 1. Master Unified Hero Standard Across Every Single Page */
body .hero-card,
body .sp-hero,
body .flora-hero,
body .planner-hero,
body .orders-hero,
body .sl-hero,
body .x-hero,
body .qz-hero,
body .gh-guide-hero,
body .cal-hero,
body .calc-hero,
body .page-title-row,
body .page-header-card,
body .latin-hero,
body .support-hero,
body .updates-hero,
body .wcpp-bios-hero {
    background:
        radial-gradient(circle at 88% 18%, rgba(134, 239, 172, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 12% 90%, rgba(20, 184, 166, 0.2) 0%, transparent 48%),
        linear-gradient(135deg, #0d3b22 0%, #14532d 52%, #0f5f58 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-top: 4px solid var(--sp-bloom-accent, #86efac) !important;
    border-radius: 20px !important;
    padding: 28px 28px !important;
    box-shadow: 0 14px 34px -8px rgba(20, 83, 45, 0.28) !important;
}

body .sl-hero h1,
body .x-hero h1,
body .qz-hero h1,
body .gh-guide-hero h1 {
    font-family: var(--wcpp-serif) !important;
    color: #ffffff !important;
    letter-spacing: -0.015em !important;
}

body .sl-hero p,
body .x-hero p,
body .qz-hero p,
body .gh-guide-hero p {
    color: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 640px) {
    body .hero-card,
    body .sp-hero,
    body .flora-hero,
    body .planner-hero,
    body .orders-hero,
    body .sl-hero,
    body .x-hero,
    body .qz-hero,
    body .gh-guide-hero,
    body .cal-hero,
    body .calc-hero,
    body .page-title-row,
    body .page-header-card,
    body .latin-hero,
    body .support-hero,
    body .updates-hero,
    body .wcpp-bios-hero {
        padding: 22px 18px !important;
    }
}

/* Unified Pill-Shaped Hero CTA Buttons Across All Pages */
body .orders-hero .btn-outline,
body .sl-hero .btn,
body .sl-hero .btn-outline,
body .planner-hero .btn-hero,
body .page-title-row .btn,
body .cal-hero .btn,
body .support-hero .btn-outline,
body .hero-card button {
    border-radius: 999px !important;
    padding: 9px 17px !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}

body .orders-hero .btn-outline:hover,
body .sl-hero .btn:hover,
body .planner-hero .btn-hero:hover,
body .page-title-row .btn:hover {
    transform: translateY(-1.5px);
}

/* 2. Remove ALL AI-generated images from Orders, Seed Library & tool banners (keep real Wikimedia Commons photos on species pages only) */
body img[src*="images/og-"],
body .orders-hero img,
body .orders-hero figure,
body .orders-hero .wcpp-orders-hero-photo,
body .sl-hero img,
body .sl-hero figure,
body .hero-card img[src*="images/"],
body .cal-hero img[src*="images/"],
body .calc-hero img[src*="images/"],
body .planner-hero img[src*="images/"],
body .support-hero img[src*="images/"],
body .plant-hero-banner img[src*="images/"] {
    display: none !important;
}

body .orders-hero,
body .sl-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
}

/* 3. Orders.html Full-Width Search Input Stacked Above Filter Pills */
body #catalogSection .filter-row:first-of-type {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

body #catalogSection #catalogSearchInput {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 44px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 15px center !important;
    background-size: 18px 18px !important;
}

body.dark-mode #catalogSection #catalogSearchInput {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
}

/* 4. Master Section Card Heading Signature (Fraunces + Forest Green Left Accent Bar) Across All Pages */
body .panel-head h2,
body .bloom-section h2,
body .support-card h2,
body .sl-card h2,
body .x-card h2,
body .qz-step h2,
body .now-dashboard h2,
body .wcpp-guide-hubs h2,
body .dir-header h2,
body main > h2[id],
body .main-content > h2[id] {
    font-family: var(--wcpp-serif) !important;
    color: var(--primary-color, #166534) !important;
    border-left: 3.5px solid var(--primary-color, #166534);
    padding-left: 11px;
    letter-spacing: -0.015em;
}

body.dark-mode .panel-head h2,
body.dark-mode .bloom-section h2,
body.dark-mode .support-card h2,
body.dark-mode .sl-card h2,
body.dark-mode .x-card h2,
body.dark-mode .qz-step h2,
body.dark-mode .now-dashboard h2,
body.dark-mode .wcpp-guide-hubs h2,
body.dark-mode .dir-header h2,
body.dark-mode main > h2[id],
body.dark-mode .main-content > h2[id] {
    color: #4ade80 !important;
    border-left-color: #4ade80;
}

/* =========================================================================
   14. WEST COAST NATIVE PLANT PLANNER (nativeplants.html) FULL OVERHAUL
   ========================================================================= */

/* Hide arbitrary partial plant count badge ("206 / 212 Native Species") on nativeplants.html */
body.wcpp-native-planner #plant-count-badge {
    display: none !important;
}

body .page-title-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
}

.wcpp-np-hero-sub {
    margin: 4px 0 0 0 !important;
    font-size: 0.96rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 68ch;
}

/* 4-Slot Botanical Plant Picker Cards (.row-plant) */
body .controls-container .row-plant {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 14px !important;
}

body .controls-container .row-plant .input-group {
    background: var(--tag-bg, #edf4ee) !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    border-radius: 14px !important;
    padding: 11px 13px !important;
    margin: 0 !important;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body .controls-container .row-plant .input-group:focus-within {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

body.dark-mode .controls-container .row-plant .input-group {
    background: #162920 !important;
    border-color: #264234 !important;
}

body .controls-container .row-plant .input-group > label {
    display: block;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color, #166534) !important;
    margin-bottom: 6px !important;
}

body.dark-mode .controls-container .row-plant .input-group > label {
    color: #86efac !important;
}

body .controls-container .ts-control {
    border-radius: 11px !important;
    border: 1.5px solid rgba(22, 101, 52, 0.32) !important;
    background: #ffffff !important;
    padding: 9px 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.dark-mode .controls-container .ts-control {
    background: #0d1a14 !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
    color: #f1f5f9 !important;
}

/* Site Filter Chips & BC Native Guild Preset Pills */
body .controls-container .filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 11px 0;
    border-top: 1px solid var(--border-color, #dce6de);
    margin: 6px 0 0 0 !important;
}

body.dark-mode .controls-container .filter-bar {
    border-top-color: #21382d;
}

body .controls-container .filter-label {
    font-size: 0.73rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wcpp-muted, #64748b) !important;
    margin-right: 4px;
}

body .controls-container .chip {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    border-radius: 999px !important;
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    background: var(--card-bg, #ffffff) !important;
    color: var(--wcpp-text, #1e293b) !important;
    cursor: pointer;
    transition: all 0.15s ease !important;
}

body.dark-mode .controls-container .chip {
    background: #162920 !important;
    border-color: #264234 !important;
    color: #e2e8f0 !important;
}

body .controls-container .chip:hover {
    border-color: var(--primary-color, #166534) !important;
    color: var(--primary-color, #166534) !important;
    transform: translateY(-1px);
}

body .controls-container .chip.active {
    background: #166534 !important;
    color: #ffffff !important;
    border-color: #166534 !important;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.24);
}

/* Bloom Calendar Simulator Card Polish */
body .bloom-calendar-card .bloom-title {
    font-family: var(--wcpp-serif) !important;
    font-size: 1.18rem !important;
    color: var(--primary-color, #166534) !important;
    border-left: 3.5px solid var(--primary-color, #166534);
    padding-left: 11px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

body.dark-mode .bloom-calendar-card .bloom-title {
    color: #4ade80 !important;
    border-left-color: #4ade80;
}

body .bloom-calendar-card .month-btn {
    border-radius: 999px !important;
    font-weight: 800 !important;
    padding: 5px 10px !important;
}

body .bloom-calendar-card .sim-summary-box {
    border-radius: 14px !important;
    background: var(--tag-bg, #edf4ee) !important;
    border: 1px solid var(--border-color, #dce6de) !important;
}

body.dark-mode .bloom-calendar-card .sim-summary-box {
    background: #162920 !important;
    border-color: #264234 !important;
}

/* Elevated Comparison Matrix & Plant Header Thumbnails on nativeplants.html */
body #results-wrapper {
    border-radius: 18px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 10px 28px -6px rgba(20, 83, 45, 0.06) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(22, 101, 52, 0.42) transparent;
    background: var(--card-bg, #ffffff);
}

body.dark-mode #results-wrapper {
    background: #12211a !important;
    border-color: #21382d !important;
    scrollbar-color: rgba(74, 222, 128, 0.42) transparent;
}

body #results-wrapper::-webkit-scrollbar {
    height: 7px;
}

body #results-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

body #results-wrapper::-webkit-scrollbar-thumb {
    background: rgba(22, 101, 52, 0.35);
    border-radius: 999px;
}

body.dark-mode #results-wrapper::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.38);
}

body #results-wrapper table.comparison-matrix thead tr.sticky-name-row th {
    will-change: auto;
}

body #results-wrapper table.comparison-matrix thead tr.sticky-name-row th:first-child,
body #results-wrapper table.comparison-matrix thead tr.photo-banner-row th:first-child,
body #results-wrapper table.comparison-matrix tbody tr:not(.section-header-row) td:first-child {
    position: sticky !important;
    left: 0;
    border-right: 2px solid var(--border-color, #dce6de);
    box-shadow: 4px 0 10px -4px rgba(15, 23, 42, 0.12);
}

body #results-wrapper table.comparison-matrix thead tr.sticky-name-row th:first-child {
    z-index: 45;
    background: var(--tag-bg, #edf4ee);
}

body #results-wrapper table.comparison-matrix thead tr.photo-banner-row th:first-child {
    z-index: 20;
    background: var(--card-bg, #ffffff);
}

body #results-wrapper table.comparison-matrix tbody tr:not(.section-header-row) td:first-child {
    z-index: 15;
    background: var(--card-bg, #ffffff);
}

body.dark-mode #results-wrapper table.comparison-matrix thead tr.sticky-name-row th:first-child {
    background: #172920;
}

body.dark-mode #results-wrapper table.comparison-matrix thead tr.photo-banner-row th:first-child,
body.dark-mode #results-wrapper table.comparison-matrix tbody tr:not(.section-header-row) td:first-child {
    background: #12211a;
}

body.dark-mode #results-wrapper table.comparison-matrix thead tr.sticky-name-row th:first-child,
body.dark-mode #results-wrapper table.comparison-matrix thead tr.photo-banner-row th:first-child,
body.dark-mode #results-wrapper table.comparison-matrix tbody tr:not(.section-header-row) td:first-child {
    border-right-color: #21382d;
    box-shadow: 4px 0 12px -4px rgba(0, 0, 0, 0.45);
}

body #results-wrapper table.comparison-matrix tbody tr.section-header-row td {
    position: static !important;
    box-shadow: none;
}

@media (max-width: 767px) {
    body #tableToolbar:has(~ #results-wrapper table.comparison-matrix[data-cols="2"])::after,
    body #tableToolbar:has(~ #results-wrapper table.comparison-matrix[data-cols="3"])::after,
    body #tableToolbar:has(~ #results-wrapper table.comparison-matrix[data-cols="4"])::after {
        content: "← Swipe table sideways to compare all selected plants →";
        display: block;
        width: 100%;
        flex-basis: 100%;
        padding: 7px 12px;
        margin-top: 2px;
        border-radius: 9px;
        font-size: 0.78rem;
        font-weight: 800;
        text-align: center;
        color: var(--primary-color, #166534);
        background: var(--tag-bg, #edf4ee);
        border: 1px solid var(--border-color, #dce6de);
    }

    body.dark-mode #tableToolbar:has(~ #results-wrapper table.comparison-matrix[data-cols="2"])::after,
    body.dark-mode #tableToolbar:has(~ #results-wrapper table.comparison-matrix[data-cols="3"])::after,
    body.dark-mode #tableToolbar:has(~ #results-wrapper table.comparison-matrix[data-cols="4"])::after {
        color: #86efac;
        background: #172920;
        border-color: #243d30;
    }
}

@media (min-width: 768px) and (max-width: 1040px) {
    body #tableToolbar:has(~ #results-wrapper table.comparison-matrix[data-cols="3"])::after,
    body #tableToolbar:has(~ #results-wrapper table.comparison-matrix[data-cols="4"])::after {
        content: "← Scroll table sideways to view all selected plants →";
        display: block;
        width: 100%;
        flex-basis: 100%;
        padding: 7px 12px;
        margin-top: 2px;
        border-radius: 9px;
        font-size: 0.78rem;
        font-weight: 800;
        text-align: center;
        color: var(--primary-color, #166534);
        background: var(--tag-bg, #edf4ee);
        border: 1px solid var(--border-color, #dce6de);
    }

    body.dark-mode #tableToolbar:has(~ #results-wrapper table.comparison-matrix[data-cols="3"])::after,
    body.dark-mode #tableToolbar:has(~ #results-wrapper table.comparison-matrix[data-cols="4"])::after {
        color: #86efac;
        background: #172920;
        border-color: #243d30;
    }
}

body .bloom-graph-container,
body #comparisonTableWrap .table-scroll,
body .cal-table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

body #results-wrapper .plant-title {
    font-family: var(--wcpp-serif) !important;
}

body #results-wrapper .plant-thumb-box {
    border-radius: 12px !important;
    overflow: hidden;
}

body .page-title-row .btn {
    background: #ffffff !important;
    color: #14532d !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

body .page-title-row .btn.btn-secondary {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.34) !important;
    box-shadow: none;
}

body .page-title-row .btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
    color: #ffffff !important;
}

/* =========================================================================
   15. LATIN BULK GLOSSARY SHIELD & ARTICLES & RESOURCES EDITORIAL OVERHAUL
   ========================================================================= */

/* Pre-paint shield: never display bulk 1,372-term copy-paste glossary on latin.html */
body #botanical-decoder-widget ~ details {
    display: none !important;
}

/* Articles & Resources: Elevated Herbarium Filter & Search Panel Below Hero */
.wcpp-art-controls {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dce6de);
    border-radius: 18px;
    padding: 20px 22px 18px;
    margin-bottom: 22px;
    box-shadow: 0 10px 28px -6px rgba(20, 83, 45, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.dark-mode .wcpp-art-controls {
    background: #12211a;
    border-color: #21382d;
}

.wcpp-art-controls .dir-feed-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
}

.wcpp-art-controls .dir-feed-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid var(--border-color, #d5e2d8);
    background: var(--tag-bg, #edf4ee);
    color: var(--wcpp-text, #1e293b);
    font-size: 0.83rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.16s ease;
}

.wcpp-art-controls .dir-feed-pill:hover {
    border-color: var(--primary-color, #166534);
    color: var(--primary-color, #166534);
    transform: translateY(-1px);
}

.wcpp-art-controls .dir-feed-pill.active {
    background: #166534;
    border-color: #166534;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(22, 101, 52, 0.24);
}

body.dark-mode .wcpp-art-controls .dir-feed-pill {
    background: #172b21;
    border-color: #264234;
    color: #e2e8f0;
}

body.dark-mode .wcpp-art-controls .dir-feed-pill.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #062213;
}

.wcpp-art-controls .search-container {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.wcpp-art-controls #searchInput {
    flex: 1 1 280px !important;
    min-width: 0;
    padding: 12px 16px 12px 44px !important;
    border-radius: 13px !important;
    border: 2px solid rgba(22, 101, 52, 0.34) !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 15px center !important;
    background-size: 18px 18px !important;
    color: #0f172a !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px -4px rgba(22, 101, 52, 0.12) !important;
}

body.dark-mode .wcpp-art-controls #searchInput {
    background-color: #0d1a14 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
    border-color: rgba(74, 222, 128, 0.4) !important;
    color: #f1f5f9 !important;
}

.wcpp-art-controls #searchInput:focus {
    outline: none !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16) !important;
}

.wcpp-art-controls .surprise-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px !important;
    border-radius: 12px !important;
    border: 1.5px solid #bbf7d0 !important;
    background: #ecfdf5 !important;
    color: #14532d !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    cursor: pointer;
    white-space: nowrap;
}

.wcpp-art-controls .surprise-btn:hover {
    background: #dcfce7 !important;
    border-color: #166534 !important;
}

body.dark-mode .wcpp-art-controls .surprise-btn {
    background: #173024 !important;
    border-color: #28523d !important;
    color: #86efac !important;
}

.wcpp-art-view-toggle {
    display: inline-flex;
    background: var(--tag-bg, #edf4ee);
    border: 1px solid var(--border-color, #dce6de);
    border-radius: 12px;
    padding: 3px;
    gap: 3px;
}

body.dark-mode .wcpp-art-view-toggle {
    background: #0d1a14;
    border-color: #233c30;
}

.wcpp-art-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--wcpp-muted, #64748b);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wcpp-art-view-btn.active {
    background: var(--card-bg, #ffffff);
    color: var(--primary-color, #166534);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

body.dark-mode .wcpp-art-view-btn.active {
    background: #1b3327;
    color: #86efac;
}

/* Smart Collapsible Topics Bar (replaces 786-bubble wall inside hero) */
.wcpp-art-topics-wrap {
    border-top: 1px solid var(--border-color, #e2ebe3);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.dark-mode .wcpp-art-topics-wrap {
    border-top-color: #21382d;
}

.wcpp-art-topics-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.wcpp-art-topics-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wcpp-muted, #64748b);
    margin-right: 4px;
}

.wcpp-art-top-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid #d5e4d8;
    background: #f4f9f5;
    color: #166534;
    font-family: inherit;
    font-size: 0.77rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s ease;
}

.wcpp-art-top-chip:hover {
    background: #e4f2e7;
    border-color: #166534;
}

.wcpp-art-top-chip.active {
    background: #166534;
    border-color: #166534;
    color: #ffffff;
}

body.dark-mode .wcpp-art-top-chip {
    background: #162920;
    border-color: #274335;
    color: #86efac;
}

body.dark-mode .wcpp-art-top-chip.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #062213;
}

.wcpp-art-topics-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color, #d5e2d8);
    background: var(--card-bg, #ffffff);
    color: var(--wcpp-text, #334155);
    font-family: inherit;
    font-size: 0.77rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.14s ease;
}

.wcpp-art-topics-toggle:hover {
    border-color: var(--primary-color, #166534);
    color: var(--primary-color, #166534);
}

body.dark-mode .wcpp-art-topics-toggle {
    background: #162920;
    border-color: #264234;
    color: #e2e8f0;
}

.wcpp-art-topics-drawer {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--tag-bg, #f4f8f4);
    border: 1px solid var(--border-color, #dce6de);
}

.wcpp-art-topics-drawer.open {
    display: flex;
}

body.dark-mode .wcpp-art-topics-drawer {
    background: #0d1a14;
    border-color: #233c30;
}

.wcpp-art-topic-filter-input {
    width: 100%;
    max-width: 340px;
    padding: 8px 12px;
    border-radius: 9px;
    border: 1px solid var(--border-color, #cbd5e1);
    background: var(--card-bg, #ffffff);
    color: var(--wcpp-text, #0f172a);
    font-family: inherit;
    font-size: 0.83rem;
    font-weight: 600;
}

body.dark-mode .wcpp-art-topic-filter-input {
    background: #12211a;
    border-color: #264234;
    color: #f1f5f9;
}

.wcpp-art-topics-drawer #tagsContainer {
    border-top: none !important;
    padding-top: 0 !important;
    max-height: 195px !important;
    overflow-y: auto;
    gap: 6px !important;
}

.wcpp-art-topics-drawer .tag-btn {
    background: var(--card-bg, #ffffff) !important;
    border: 1px solid #d5e4d8 !important;
    color: #334155 !important;
    font-size: 0.76rem !important;
    padding: 4px 10px !important;
}

.wcpp-art-topics-drawer .tag-btn:hover {
    border-color: #166534 !important;
    color: #166534 !important;
}

.wcpp-art-topics-drawer .tag-btn.active {
    background: #166534 !important;
    border-color: #166534 !important;
    color: #ffffff !important;
}

body.dark-mode .wcpp-art-topics-drawer .tag-btn {
    background: #162920 !important;
    border-color: #264234 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .wcpp-art-topics-drawer .tag-btn.active {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: #062213 !important;
}

/* Articles & Resources Editorial Card Grid */
body #resourceList.grid {
    gap: 20px !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
}

body #resourceList .card {
    border-radius: 18px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    background: var(--card-bg, #ffffff) !important;
    box-shadow: 0 8px 24px -6px rgba(20, 83, 45, 0.06) !important;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

body #resourceList .card:hover {
    transform: translateY(-3px) !important;
    border-color: #166534 !important;
    box-shadow: 0 14px 30px -6px rgba(20, 83, 45, 0.14) !important;
}

body.dark-mode #resourceList .card {
    background: #12211a !important;
    border-color: #21382d !important;
}

body #resourceList .card .img-container {
    aspect-ratio: 16 / 9.5 !important;
    border-bottom: 1px solid var(--border-color, #e2ebe3) !important;
}

/* Clean Editorial Research Card Mode (replaces generic Unsplash potting-bench fallback) */
body #resourceList .card.wcpp-art-editorial {
    border-top: 4px solid #166534 !important;
}

body #resourceList .card.wcpp-art-editorial[data-art-cat="first_nations"] {
    border-top-color: #b45309 !important;
}

body #resourceList .card.wcpp-art-editorial[data-art-cat="plant_science"] {
    border-top-color: #0f766e !important;
}

body #resourceList .card.wcpp-art-editorial[data-art-cat="bees_insects"] {
    border-top-color: #ca8a04 !important;
}

body #resourceList .card.wcpp-art-editorial .img-container {
    display: none !important;
}

.wcpp-art-eyebrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--wcpp-muted, #64748b);
}

.wcpp-art-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--tag-bg, #edf4ee);
    border: 1px solid var(--border-color, #dce6de);
    color: var(--primary-color, #166534);
    font-size: 0.72rem;
    font-weight: 800;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dark-mode .wcpp-art-domain-pill {
    background: #172b21;
    border-color: #274335;
    color: #86efac;
}

body #resourceList .card h3 {
    font-family: var(--wcpp-serif) !important;
    font-size: 1.06rem !important;
    line-height: 1.32 !important;
    letter-spacing: -0.01em;
    margin-bottom: 8px !important;
}

body #resourceList .card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.875rem !important;
    line-height: 1.54 !important;
    margin-bottom: 12px !important;
}

body #resourceList .card .card-tags {
    gap: 5px !important;
    margin-bottom: 10px !important;
}

body #resourceList .card .card-tag {
    font-size: 0.72rem !important;
    padding: 2px 8px !important;
    background: #f2f7f3 !important;
    border-color: #d7e5da !important;
    color: #166534 !important;
}

body #resourceList .card .card-tag.wcpp-art-cat-pill {
    background: #166534 !important;
    border-color: #166534 !important;
    color: #ffffff !important;
}

body.dark-mode #resourceList .card .card-tag {
    background: #162920 !important;
    border-color: #274335 !important;
    color: #86efac !important;
}

body.dark-mode #resourceList .card .card-tag.wcpp-art-cat-pill {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: #062213 !important;
}

body #resourceList .card .card-tag.wcpp-tag-overflow-hidden {
    display: none !important;
}

body #resourceList .card .card-actions {
    padding-top: 11px !important;
    gap: 8px;
}

body #resourceList .card a.visit-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #14532d !important;
    font-size: 0.8rem !important;
    transition: all 0.15s ease;
}

body #resourceList .card a.visit-link:hover {
    background: #166534;
    border-color: #166534;
    color: #ffffff !important;
}

body.dark-mode #resourceList .card a.visit-link {
    background: #173024;
    border-color: #28523d;
    color: #86efac !important;
}

body #resourceList .card .copy-btn {
    border-radius: 999px !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
}

/* Compact Reading List View Mode */
body #resourceList.wcpp-art-list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

body #resourceList.wcpp-art-list-view .card {
    flex-direction: row !important;
    align-items: stretch;
}

body #resourceList.wcpp-art-list-view .card .img-container {
    width: 190px !important;
    min-width: 190px;
    aspect-ratio: auto !important;
    height: auto !important;
    border-bottom: none !important;
    border-right: 1px solid var(--border-color, #e2ebe3) !important;
}

@media (max-width: 640px) {
    body #resourceList.wcpp-art-list-view .card {
        flex-direction: column !important;
    }
    body #resourceList.wcpp-art-list-view .card .img-container {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color, #e2ebe3) !important;
    }
}

/* =========================================================================
   16. FINAL SITE-WIDE CONSISTENCY: SEED LIBRARY, THIS WEEK, PLANT QUIZ,
       REGIONAL GUIDES, UPDATES, BIOS, UNIFIED DROPDOWN SCALE & FOOTER POLISH
   ========================================================================= */

/* A. seed-library.html: Fix collapsed hero when AI img is hidden + polish cards & links */
body .sl-hero {
    position: relative !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    margin-bottom: 22px !important;
}

body .sl-hero .sl-hero-text {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body .sl-card,
body .x-card,
body .qz-step,
body .gh-sp-card {
    border-radius: 18px !important;
    border: 1px solid var(--border-color, #dce6de) !important;
    box-shadow: 0 8px 24px -6px rgba(20, 83, 45, 0.055) !important;
}

body.dark-mode .sl-card,
body.dark-mode .x-card,
body.dark-mode .qz-step,
body.dark-mode .gh-sp-card {
    background: #12211a !important;
    border-color: #21382d !important;
}

body .sl-card a {
    color: var(--primary-color, #166534) !important;
    font-weight: 700 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.dark-mode .sl-card a {
    color: #4ade80 !important;
}

/* B. plant-quiz.html & Regional Guides (guide-*.html) Hero & Card Polish */
body .qz-hero::before,
body .qz-hero::after {
    display: none !important;
}

body .qz-hero .qz-hero-inner {
    position: relative;
    z-index: 2;
    padding: 0 !important;
    background: transparent !important;
}

body .gh-sp-card h2 {
    font-family: var(--wcpp-serif) !important;
    letter-spacing: -0.01em;
}

body .gh-sp-card {
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

body .gh-sp-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color, #166534) !important;
}

/* C. updates.html: High-Contrast Hero Copy, Frosted Count Pill & Clean Controls */
body .updates-hero p {
    color: rgba(255, 255, 255, 0.9) !important;
}

body .updates-hero strong {
    color: #ffffff !important;
}

body .updates-hero .wcpp-pill-btn {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    border-radius: 999px !important;
}

body .updates-hero .wcpp-pill-btn:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

body .updates-hero #updCountLabel {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    color: #ecfdf5 !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
}

body .updates-controls {
    margin-top: 16px !important;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* D. bios.html: Wrap Category Filter Chips Cleanly (Zero Horizontal Clipping) */
body .controls-card .category-chips,
body #categoryChips {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 7px !important;
}

body .controls-card .category-chips .chip,
body #categoryChips .chip {
    white-space: nowrap;
    flex-shrink: 0;
}

/* E. latin.html: Keep Search Icon Clear of Placeholder Text */
body #botanical-decoder-widget #search1,
body #botanical-decoder-widget #search2,
body .latin-input {
    padding-left: 42px !important;
    padding-right: 40px !important;
    font-size: 0.9rem !important;
}

/* F. UNIFIED DROPDOWN & SELECT TYPOGRAPHY ACROSS EVERY PAGE (No Oversized or Mismatched Sizes) */
body select,
body .controls-container select,
body .cal-hero select,
body .cal-controls-card select,
body .panel-card select,
body .updates-controls select,
body .gh-guide-tools select,
body #languageSelect,
body #datasetSelect,
body #citySelect,
body #updPageFilter,
body #guideSort {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 0.865rem !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    padding: 9px 13px !important;
    border-radius: 11px !important;
}

body .ts-wrapper .ts-control,
body .ts-wrapper .ts-control input,
body .ts-wrapper .ts-control .item,
body .ts-dropdown,
body .ts-dropdown .option,
body .ts-dropdown .optgroup-header,
body .ts-dropdown .no-results {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 0.865rem !important;
    line-height: 1.42 !important;
}

body .ts-wrapper .ts-control,
body .ts-wrapper .ts-control .item {
    font-weight: 600 !important;
}

body .ts-wrapper .ts-control {
    min-height: 40px !important;
    padding: 8px 34px 8px 12px !important;
}

body .ts-dropdown .option {
    font-weight: 500 !important;
    padding: 8px 12px !important;
}

body .ts-dropdown .option.active,
body .ts-dropdown .option:hover {
    font-weight: 700 !important;
}

/* Uniform Header Dropdown & Mobile Drawer Menu Scale */
body #desktop-nav .dd-menu a {
    font-size: 0.83rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    padding: 7px 11px !important;
}

body #mobile-drawer .m-panel a {
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    line-height: 1.38 !important;
}

/* G. PROPORTIONED, REFINED FOOTER TYPOGRAPHY */
body .gh-site-footer .gh-footer-container {
    padding: 40px 24px 28px !important;
}

body .gh-site-footer .footer-brand h2 {
    font-family: var(--wcpp-serif) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
}

body .gh-site-footer .footer-brand p {
    font-size: 0.83rem !important;
    line-height: 1.55 !important;
}

body .gh-site-footer .footer-location-pill {
    font-size: 0.75rem !important;
    padding: 5px 11px !important;
}

body .gh-site-footer .footer-col {
    gap: 5px !important;
}

body .gh-site-footer .footer-col h3 {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 6px !important;
}

body .gh-site-footer .footer-col a {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1.42 !important;
    color: #334155 !important;
}

body .gh-site-footer .footer-col a:hover {
    color: var(--primary-color, #166534) !important;
}

body.dark-mode .gh-site-footer .footer-col a {
    color: #cbd5e1 !important;
}

body.dark-mode .gh-site-footer .footer-col a:hover {
    color: #4ade80 !important;
}

body .gh-site-footer .footer-col a.back-to-top {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 8px 14px !important;
    color: var(--wcpp-secondary, #0f766e) !important;
}

body.dark-mode .gh-site-footer .footer-col a.back-to-top {
    color: #5eead4 !important;
}

body .gh-site-footer .copyright {
    font-size: 0.77rem !important;
    padding: 16px 24px !important;
}

/* =========================================================================
   17. INTERACTIVE BOTANICAL LATIN STUDIO (latin.html) — AUTO-DECODER,
       LIVE BC PLANT CROSS-LINKS, THEMATIC SAMPLER & FLASHCARD QUIZ
   ========================================================================= */

/* Honest Live Lexicon Breakdown Pills inside Hero */
.wcpp-latin-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.wcpp-latin-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ecfdf5;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.wcpp-latin-stat-pill strong {
    color: #ffffff;
    font-weight: 800;
}

/* Studio Mode Switcher Tabs (Decode & Combine / Explore Themes / Flashcard Quiz) */
.wcpp-latin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 5px;
    border-radius: 14px;
    background: var(--tag-bg, #edf4ee);
    border: 1px solid var(--border-color, #dce6de);
}

body.dark-mode .wcpp-latin-tabs {
    background: #0d1a14;
    border-color: #21382d;
}

.wcpp-latin-tab {
    flex: 1 1 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--wcpp-muted, #475569);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.16s ease;
}

.wcpp-latin-tab:hover {
    color: var(--primary-color, #166534);
}

.wcpp-latin-tab.active {
    background: var(--card-bg, #ffffff);
    color: var(--primary-color, #166534);
    box-shadow: 0 3px 10px rgba(20, 83, 45, 0.1);
}

body.dark-mode .wcpp-latin-tab {
    color: #94a3b8;
}

body.dark-mode .wcpp-latin-tab.active {
    background: #173024;
    color: #86efac;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

/* Smart Full Scientific Name Auto-Decoder Box */
.wcpp-latin-auto-card {
    background: linear-gradient(135deg, #f3faf4 0%, #edf6f3 100%);
    border: 1.5px solid #c9e2cf;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

body.dark-mode .wcpp-latin-auto-card {
    background: linear-gradient(135deg, #13261d 0%, #102421 100%);
    border-color: #264838;
}

.wcpp-latin-auto-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.wcpp-latin-auto-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--wcpp-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color, #166534);
}

body.dark-mode .wcpp-latin-auto-title {
    color: #86efac;
}

.wcpp-latin-auto-sub {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--wcpp-muted, #64748b);
}

.wcpp-latin-auto-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
}

.wcpp-latin-auto-input {
    flex: 1 1 260px;
    min-width: 0;
    padding: 11px 14px 11px 40px;
    border-radius: 12px;
    border: 2px solid rgba(22, 101, 52, 0.34);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 13px center;
    background-size: 17px 17px;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wcpp-latin-auto-input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

body.dark-mode .wcpp-latin-auto-input {
    background-color: #0d1a14;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    border-color: rgba(74, 222, 128, 0.4);
    color: #f1f5f9;
}

.wcpp-latin-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    background: #166534;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.15s ease;
}

.wcpp-latin-btn-primary:hover {
    background: #14532d;
    transform: translateY(-1px);
}

body.dark-mode .wcpp-latin-btn-primary {
    background: #22c55e;
    color: #062213;
}

.wcpp-latin-btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #c5decb;
    background: #ffffff;
    color: #166534;
    font-family: inherit;
    font-size: 0.83rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.wcpp-latin-btn-soft:hover {
    border-color: #166534;
    background: #ecfdf5;
}

body.dark-mode .wcpp-latin-btn-soft {
    background: #162b21;
    border-color: #294c3b;
    color: #86efac;
}

/* Deconstructed Morpheme Breakdown Card */
.wcpp-latin-breakdown {
    margin-top: 14px;
    padding: 15px 16px;
    border-radius: 14px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dce6de);
    box-shadow: 0 6px 18px -6px rgba(20, 83, 45, 0.08);
}

body.dark-mode .wcpp-latin-breakdown {
    background: #0f1f18;
    border-color: #243f32;
}

.wcpp-latin-bd-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.wcpp-latin-bd-name {
    font-family: var(--wcpp-serif);
    font-style: italic;
    font-size: 1.24rem;
    font-weight: 700;
    color: var(--primary-color, #166534);
}

body.dark-mode .wcpp-latin-bd-name {
    color: #86efac;
}

.wcpp-latin-bd-parts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 10px;
}

.wcpp-latin-part-card {
    padding: 11px 13px;
    border-radius: 12px;
    background: var(--tag-bg, #f4f8f4);
    border: 1px solid var(--border-color, #dce6de);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.dark-mode .wcpp-latin-part-card {
    background: #162920;
    border-color: #264234;
}

.wcpp-latin-part-token {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wcpp-muted, #64748b);
}

.wcpp-latin-part-morphemes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 2px 0;
}

.wcpp-latin-morph-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #14532d;
    font-family: var(--wcpp-serif);
    font-style: italic;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #bbf7d0;
}

.wcpp-latin-morph-pill:hover {
    background: #166534;
    color: #ffffff;
}

body.dark-mode .wcpp-latin-morph-pill {
    background: #193828;
    border-color: #2a5941;
    color: #86efac;
}

.wcpp-latin-part-meaning {
    font-size: 0.84rem;
    line-height: 1.42;
    color: var(--wcpp-text, #1e293b);
    font-weight: 600;
}

body.dark-mode .wcpp-latin-part-meaning {
    color: #e2e8f0;
}

/* Specimen Quick-Try Chips Strip */
.wcpp-latin-specimens-wrap {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.wcpp-latin-spec-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wcpp-muted, #64748b);
    margin-right: 4px;
}

.wcpp-latin-spec-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid #cce0d0;
    background: #ffffff;
    color: #166534;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s ease;
}

.wcpp-latin-spec-chip em {
    font-family: var(--wcpp-serif);
    font-style: italic;
    font-weight: 700;
}

.wcpp-latin-spec-chip span {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.wcpp-latin-spec-chip:hover {
    background: #166534;
    border-color: #166534;
    color: #ffffff;
    transform: translateY(-1px);
}

.wcpp-latin-spec-chip:hover span {
    color: #dcfce7;
}

body.dark-mode .wcpp-latin-spec-chip {
    background: #15281f;
    border-color: #274436;
    color: #86efac;
}

body.dark-mode .wcpp-latin-spec-chip span {
    color: #94a3b8;
}

/* Live BC Native Plants Sharing This Root Shelf */
.wcpp-latin-plants-shelf {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--tag-bg, #f4f8f4);
    border: 1px solid var(--border-color, #dce6de);
}

body.dark-mode .wcpp-latin-plants-shelf {
    background: #11221a;
    border-color: #233c30;
}

.wcpp-latin-shelf-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.wcpp-latin-shelf-head h3 {
    margin: 0;
    font-family: var(--wcpp-serif);
    font-size: 1.05rem;
    color: var(--primary-color, #166534);
    border-left: 3.5px solid var(--primary-color, #166534);
    padding-left: 10px;
}

body.dark-mode .wcpp-latin-shelf-head h3 {
    color: #4ade80;
    border-left-color: #4ade80;
}

.wcpp-latin-shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 10px;
}

.wcpp-latin-plant-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 12px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dce6de);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wcpp-latin-plant-link:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color, #166534);
    box-shadow: 0 8px 18px -6px rgba(20, 83, 45, 0.15);
}

body.dark-mode .wcpp-latin-plant-link {
    background: #162920;
    border-color: #264234;
}

.wcpp-latin-plant-thumb {
    width: 46px;
    height: 46px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e6f0e8;
    border: 1px solid rgba(22, 101, 52, 0.15);
}

.wcpp-latin-plant-meta {
    min-width: 0;
    flex: 1;
}

.wcpp-latin-plant-common {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--wcpp-text, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .wcpp-latin-plant-common {
    color: #f1f5f9;
}

.wcpp-latin-plant-latin {
    font-family: var(--wcpp-serif);
    font-style: italic;
    font-size: 0.78rem;
    color: var(--primary-color, #166534);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .wcpp-latin-plant-latin {
    color: #86efac;
}

/* Thematic Sampler Panel */
.wcpp-latin-panel {
    display: none;
}

.wcpp-latin-panel.active {
    display: block;
}

.wcpp-latin-theme-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.wcpp-latin-theme-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color, #d5e2d8);
    background: var(--tag-bg, #edf4ee);
    color: var(--wcpp-text, #1e293b);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wcpp-latin-theme-pill:hover {
    border-color: var(--primary-color, #166534);
    color: var(--primary-color, #166534);
}

.wcpp-latin-theme-pill.active {
    background: #166534;
    border-color: #166534;
    color: #ffffff;
}

body.dark-mode .wcpp-latin-theme-pill {
    background: #162920;
    border-color: #264234;
    color: #e2e8f0;
}

body.dark-mode .wcpp-latin-theme-pill.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #062213;
}

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

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

@media (max-width: 520px) {
    .wcpp-latin-theme-grid {
        grid-template-columns: 1fr;
    }
}

.wcpp-latin-theme-card {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dce6de);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wcpp-latin-theme-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color, #166534);
    box-shadow: 0 8px 20px -6px rgba(20, 83, 45, 0.14);
}

body.dark-mode .wcpp-latin-theme-card {
    background: #14261e;
    border-color: #243f32;
}

.wcpp-latin-tc-word {
    font-family: var(--wcpp-serif);
    font-style: italic;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--primary-color, #166534);
}

body.dark-mode .wcpp-latin-tc-word {
    color: #86efac;
}

.wcpp-latin-tc-def {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--wcpp-text, #334155);
    font-weight: 600;
}

body.dark-mode .wcpp-latin-tc-def {
    color: #cbd5e1;
}

.wcpp-latin-tc-cta {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f766e;
}

body.dark-mode .wcpp-latin-tc-cta {
    color: #5eead4;
}

/* Interactive Customizable Flashcard & Quiz Trainer */
.wcpp-latin-quiz-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--tag-bg, #edf4ee);
    border: 1px solid var(--border-color, #dce6de);
    margin-bottom: 16px;
}

body.dark-mode .wcpp-latin-quiz-bar {
    background: #12241b;
    border-color: #233c30;
}

.wcpp-latin-quiz-settings {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.wcpp-latin-quiz-score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
}

.wcpp-latin-score-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dce6de);
    color: var(--primary-color, #166534);
}

body.dark-mode .wcpp-latin-score-pill {
    background: #172e23;
    border-color: #284b3a;
    color: #86efac;
}

.wcpp-latin-quiz-stage {
    padding: 26px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0d3b22 0%, #14532d 55%, #0f5f58 100%);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 12px 28px -8px rgba(20, 83, 45, 0.25);
}

.wcpp-latin-quiz-prompt-label {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bbf7d0;
    margin-bottom: 8px;
}

.wcpp-latin-quiz-word {
    font-family: var(--wcpp-serif);
    font-style: italic;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.wcpp-latin-quiz-hint {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 18px;
}

.wcpp-latin-quiz-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 680px;
    margin: 0 auto 16px;
}

@media (max-width: 640px) {
    .wcpp-latin-quiz-options {
        grid-template-columns: 1fr;
    }
}

.wcpp-latin-quiz-opt {
    padding: 13px 15px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    line-height: 1.4;
    transition: all 0.15s ease;
}

.wcpp-latin-quiz-opt:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.22);
    border-color: #86efac;
    transform: translateY(-1px);
}

.wcpp-latin-quiz-opt.is-correct {
    background: #16a34a !important;
    border-color: #86efac !important;
    color: #ffffff !important;
}

.wcpp-latin-quiz-opt.is-wrong {
    background: rgba(220, 38, 38, 0.78) !important;
    border-color: #fca5a5 !important;
    color: #ffffff !important;
}

.wcpp-latin-flash-answer {
    max-width: 560px;
    margin: 14px auto 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.wcpp-latin-quiz-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* Dropdown Cap Honest Footer Notice */
.latin-dropdown li.wcpp-dd-cap-note {
    justify-content: center !important;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--wcpp-muted, #64748b);
    background: var(--tag-bg, #f4f8f4);
    cursor: default !important;
    pointer-events: none;
}

body.dark-mode .latin-dropdown li.wcpp-dd-cap-note {
    background: #112119;
    color: #94a3b8;
}

/* Saved Favorites Study Mode (blur meanings to self-test) */
.wcpp-fav-study-mode .plant-card-meaning {
    filter: blur(5px);
    user-select: none;
    transition: filter 0.18s ease;
}

.wcpp-fav-study-mode .plant-card:hover .plant-card-meaning,
.wcpp-fav-study-mode .plant-card.is-revealed .plant-card-meaning {
    filter: none;
}

@media (max-width: 640px) {
    .wcpp-latin-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    .wcpp-latin-tab {
        padding: 9px 6px;
        font-size: 0.76rem;
        gap: 4px;
    }
    .wcpp-latin-auto-card {
        padding: 14px;
    }
    .wcpp-latin-quiz-stage {
        padding: 20px 14px;
    }
}

/* Mobile Header Breathing Room (<= 540px: prevent site title crowding search button) */
@media (max-width: 540px) {
    body .gh-header-inner {
        padding: 0 12px !important;
        gap: 10px !important;
    }
    body .gh-brand {
        font-size: 0.84rem !important;
        gap: 6px !important;
        margin-right: auto !important;
    }
    body .gh-brand-badge {
        width: 28px !important;
        height: 28px !important;
        border-radius: 7px !important;
    }
    body .header-util-group {
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    body .header-util-btn {
        padding: 0 8px !important;
        height: 32px !important;
    }
    body #mobile-toggle {
        height: 32px !important;
        padding: 0 10px !important;
        font-size: 0.78rem !important;
    }
}

body #themeToggleBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body #themeToggleBtn svg.wcpp-ico {
    width: 19px;
    height: 19px;
}

/* =========================================================================
   18. MASTER UNIFIED DARK MODE PALETTE — ZERO BLUE-SLATE CLASHES SITE-WIDE
       Overrides all legacy inline <style> #0f172a / #1e293b / #334155 /
       #1e3a8a dark-mode variables across pages, header, sidebar & modals
   ========================================================================= */

html:has(body.dark-mode),
html body.dark-mode {
    color-scheme: dark;
}

html body.dark-mode {
    --bg-color: #0a130e !important;
    --wcpp-bg: #0a130e !important;
    --card-bg: #111e17 !important;
    --wcpp-card: #111e17 !important;
    --hdr-bg: #0d1912 !important;
    --hdr-surface: #111e17 !important;
    --hdr-border: #22392d !important;
    --hdr-text: #edf5f0 !important;
    --hdr-muted: #9cb3a6 !important;
    --hdr-soft-bg: rgba(52, 211, 153, 0.14) !important;
    --hdr-soft-border: rgba(52, 211, 153, 0.3) !important;
    --border-color: #243d30 !important;
    --wcpp-border: #243d30 !important;
    --tag-bg: #172920 !important;
    --tag-hover: #1e362a !important;
    --wcpp-tag-bg: #172920 !important;
    --text-color: #edf5f0 !important;
    --wcpp-text: #edf5f0 !important;
    --text-muted: #9cb3a6 !important;
    --wcpp-muted: #9cb3a6 !important;
    --primary-color: #4ade80 !important;
    --wcpp-primary: #4ade80 !important;
    --primary-hover: #22c55e !important;
    --secondary-color: #2dd4bf !important;
    --toggle-bg: #143326 !important;
    --toggle-text: #6ee7b7 !important;
    --toggle-border: #275742 !important;
    --btn-soft-bg: rgba(16, 185, 129, 0.14) !important;
    --btn-soft-border: rgba(52, 211, 153, 0.3) !important;
}

/* Force unified forest surfaces on header dropdowns, sidebar cards, widgets & modals in Dark Mode */
body.dark-mode #header-container {
    background: rgba(13, 25, 18, 0.94) !important;
    border-bottom-color: #22392d !important;
}

body.dark-mode .gh-header-nav-bar {
    background: #101d16 !important;
    border-top-color: #20362a !important;
}

body.dark-mode .dd-menu,
body.dark-mode #mobile-drawer,
body.dark-mode .gh-support-modal,
body.dark-mode #botanical-decoder-widget,
body.dark-mode .mq-shell,
body.dark-mode .modal-content,
body.dark-mode .modal-dialog,
body.dark-mode .gh-blog-modal-card,
body.dark-mode .gh-blog-modal > div,
body.dark-mode .wcpp-modal-card {
    background: #111e17 !important;
    border-color: #243d30 !important;
    color: #edf5f0 !important;
}

body.dark-mode .dd-menu a:hover,
body.dark-mode .dd-menu a.active {
    background: #193024 !important;
    color: #6ee7b7 !important;
}

/* Sidebar weather boxes, frost cards & seasonal planting boxes in Dark Mode */
body.dark-mode #sidebar-container .sidebar-card {
    background: #111e17 !important;
    border-color: #243d30 !important;
    color: #edf5f0 !important;
}

body.dark-mode #sidebar-container .gh-frost-box,
body.dark-mode #sidebar-container .gh-frost-chip,
body.dark-mode #sidebar-container .gh-guide-group,
body.dark-mode #sidebar-container .gh-season-group,
body.dark-mode #sidebar-container .gh-sidebar-blog-card {
    background: #172920 !important;
    border-color: #254032 !important;
    color: #edf5f0 !important;
}

body.dark-mode #sidebar-container a.gh-plant-chip,
body.dark-mode #sidebar-container .gh-task-link {
    background: #111e17 !important;
    border-color: #243d30 !important;
    color: #e6f2ec !important;
}

body.dark-mode #sidebar-container a.gh-plant-chip:hover,
body.dark-mode #sidebar-container .gh-task-link:hover {
    background: #1b3628 !important;
    border-color: #4ade80 !important;
    color: #ffffff !important;
}

/* Refined rich forest-emerald active buttons & pills in Dark Mode (replaces glaring neon green) */
body.dark-mode .wcpp-art-controls .dir-feed-pill.active,
body.dark-mode .wcpp-art-top-chip.active,
body.dark-mode .wcpp-art-topics-drawer .tag-btn.active,
body.dark-mode #resourceList .card .card-tag.wcpp-art-cat-pill,
body.dark-mode .wcpp-latin-btn-primary,
body.dark-mode .wcpp-latin-theme-pill.active,
body.dark-mode .controls-card .category-chips .chip.active,
body.dark-mode .controls-container .chip.active,
body.dark-mode .pill-filter.active,
body.dark-mode .action-buttons .btn:not(.btn-secondary),
body.dark-mode #downloadBtn {
    background: #15803d !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.32) !important;
}

body.dark-mode .wcpp-art-controls .dir-feed-pill.active:hover,
body.dark-mode .wcpp-latin-btn-primary:hover,
body.dark-mode #downloadBtn:hover {
    background: #166534 !important;
    color: #ffffff !important;
}

/* Dark Mode Filter Pills & Chips across orders.html, bios.html, garden.html, calculators.html */
body.dark-mode .pill-filter:not(.active),
body.dark-mode .controls-card .chip:not(.active),
body.dark-mode #biosMyGardenChip,
body.dark-mode .calcNav a:not(.active) {
    background: #172920 !important;
    border-color: #254032 !important;
    color: #e2efe8 !important;
}

body.dark-mode .pill-filter:not(.active):hover,
body.dark-mode .controls-card .chip:not(.active):hover {
    background: #1e362a !important;
    border-color: #4ade80 !important;
    color: #ffffff !important;
}

/* Replace harsh royal blue badges inside bios.html modals with calm coastal teal */
body.dark-mode .modal-badge,
body.dark-mode .bio-cat-badge,
body.dark-mode .family-badge,
body.dark-mode .crop-badge {
    background: #15362c !important;
    border-color: #265949 !important;
    color: #6ee7b7 !important;
}

body.dark-mode .spec-card,
body.dark-mode .modal-spec-box,
body.dark-mode .bio-spec-card {
    background: #172920 !important;
    border-color: #243d30 !important;
}

/* Ensure CTA button in header is cohesive deep emerald-teal in Dark Mode */
body.dark-mode .cta-button {
    background: #0f766e !important;
    border-color: #14b8a6 !important;
    color: #ffffff !important;
}

body.dark-mode .cta-button:hover {
    background: #115e59 !important;
    color: #ffffff !important;
}

/* =========================================================================
   19. SITE-WIDE RENDERING & SCROLL ACCELERATION (ZERO DATA HIDDEN OR REMOVED)
       - Native CSS content-visibility: auto on off-screen card grids & lists
       - Layout/paint containment inside large tables (bios.html 174 rows)
       - Eliminates expensive per-frame GPU backdrop-filter blurs during scroll
   ========================================================================= */

#cardsGrid > *,
#resourceList > .card,
#cardViewContainer > *,
#liveCatalogGrid > *,
#catalogGrid > *,
.gh-sp-card,
.calcGrid > * {
    content-visibility: auto;
    contain-intrinsic-size: auto 340px;
}

#floraCoreList > li,
.flora-list > li,
.alpha-list > li {
    content-visibility: auto;
    contain-intrinsic-size: auto 38px;
}

.sp-card,
.sl-card,
.x-card,
.data-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 220px;
}

/* Isolate layout recalculation inside bios.html's 174-row table cells */
#tableBody td .cell-clamp,
#tableBody td .badge-group {
    contain: content;
}

/* Eliminate expensive per-frame Gaussian blur compositing during desktop/Linux scrolling */
#header-container,
.gh-sidebar-toggle-btn,
.domain-badge,
#gh-spotlight-badge,
.wcpp-modal-photo-badge,
.sticky-controls,
.filter-bar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
