/* ============================================
   SITE HEADER – Black Navigation
   ============================================ */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background: #1D1D1F;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo - MyLabTrends */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #34C759;
    transition: opacity 0.2s ease;
}
.site-logo:hover {
    text-decoration: none;
    opacity: 0.85;
}
.site-logo .lab {
    font-weight: 700;
    color: #FFFFFF;
    padding: 0 2px;
}
.site-logo .trends {
    font-weight: 500;
    color: #34C759;
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-nav__link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}
.site-nav__link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
}
/* Underline effect for all links on hover */
.site-nav__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2.5px;
    background: #34C759;
    border-radius: 2px;
    transition: transform 0.25s ease;
}
.site-nav__link:hover::after {
    transform: translateX(-50%) scaleX(1);
}
/* Active state - always visible */
.site-nav__link--active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}
.site-nav__link--active::after {
    transform: translateX(-50%) scaleX(1);
    width: 20px;
    height: 2.5px;
    background: #34C759;
    border-radius: 2px;
}

/* CTA Button */
.site-nav__cta {
    display: inline-block;
    background: #34C759;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-left: 6px;
    text-decoration: none;
}
.site-nav__cta:hover {
    background: #2DB84E;
    transform: scale(0.97);
    text-decoration: none;
}

/* Mobile Menu Toggle */
.site-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.site-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 16px;
    }
    .site-logo {
        font-size: 17px;
    }
    .site-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1D1D1F;
        padding: 12px 20px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        gap: 2px;
    }
    .site-nav--open {
        display: flex;
    }
    .site-nav__link {
        padding: 12px 14px;
        font-size: 16px;
        width: 100%;
        color: rgba(255, 255, 255, 0.8);
    }
    .site-nav__link:hover {
        background: rgba(255, 255, 255, 0.06);
    }
    .site-nav__cta {
        margin: 8px 0 0;
        text-align: center;
        padding: 12px;
        width: 100%;
    }
    .site-nav__toggle {
        display: flex;
    }
}

/* ============================================
   MARKERS PAGE STYLES
   ============================================ */
.markers-hero {
    background: linear-gradient(145deg, #F5F5F7 0%, #FFFFFF 100%);
    padding: 48px 24px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.markers-hero h1 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin: 0 0 8px;
}
.markers-hero p {
    font-size: 18px;
    color: #6E6E73;
    max-width: 600px;
    margin: 0 auto 20px;
}
.markers-hero .cta-btn {
    display: inline-block;
    background: #007AFF;
    color: #fff;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}
.markers-hero .cta-btn:hover {
    background: #006EDC;
    transform: scale(0.97);
    text-decoration: none;
}

.marker-unit {
    font-size: 14px;
    font-weight: 500;
    color: #8E8E93;
    background: #F2F2F7;
    padding: 1px 10px;
    border-radius: 20px;
    margin-left: 8px;
    display: inline-block;
}

/* Category color badges */
.marker-category-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.marker-category-badge--metabolic { background: #E8F0FE; color: #0055B3; }
.marker-category-badge--kidney { background: #FFF4E5; color: #B25000; }
.marker-category-badge--liver { background: #FDE8E8; color: #B33A3A; }
.marker-category-badge--heart { background: #FDE8F0; color: #B33A6A; }
.marker-category-badge--thyroid { background: #E8F7EE; color: #1E8B3E; }
.marker-category-badge--blood { background: #F0E8F7; color: #6A3AB3; }
.marker-category-badge--hormones { background: #F7E8F0; color: #B33A7A; }
.marker-category-badge--prostate { background: #E8F0F7; color: #3A5AB3; }
.marker-category-badge--autoimmune { background: #F7E8E8; color: #B33A3A; }
.marker-category-badge--inflammation { background: #F7F0E8; color: #B36A3A; }
.marker-category-badge--electrolytes { background: #E8F7F7; color: #3A8B8B; }
.marker-category-badge--vitamins { background: #E8F7E8; color: #3A8B3A; }
.marker-category-badge--proteins { background: #F0F0F7; color: #4A4AB3; }
.marker-category-badge--iron { background: #F7F0E8; color: #8B5A3A; }
.marker-category-badge--bone { background: #F0F7F0; color: #3A7A3A; }
.marker-category-badge--pancreatic { background: #FFF4E5; color: #B26A00; }
.marker-category-badge--allergy { background: #FDE8F7; color: #B33A8B; }
.marker-category-badge--toxicology { background: #F7F0F0; color: #6A4A4A; }
.marker-category-badge--urine { background: #E8F0F0; color: #3A6A6A; }
.marker-category-badge--muscle { background: #F0F0E8; color: #6A6A3A; }
.marker-category-badge--default { background: #F2F2F7; color: #6E6E73; }

/* Card accent border */
.marker-item {
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    border-radius: 14px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.marker-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.marker-item:hover::before,
.marker-item[open]::before {
    opacity: 1;
}

.marker-item--metabolic::before { background: #007AFF; }
.marker-item--kidney::before { background: #FF9500; }
.marker-item--liver::before { background: #FF3B30; }
.marker-item--heart::before { background: #FF2D55; }
.marker-item--thyroid::before { background: #34C759; }
.marker-item--blood::before { background: #5856D6; }
.marker-item--hormones::before { background: #FF2D55; }
.marker-item--prostate::before { background: #007AFF; }
.marker-item--autoimmune::before { background: #FF3B30; }
.marker-item--inflammation::before { background: #FF9500; }
.marker-item--electrolytes::before { background: #34C759; }
.marker-item--vitamins::before { background: #34C759; }
.marker-item--proteins::before { background: #5856D6; }
.marker-item--iron::before { background: #FF9500; }
.marker-item--bone::before { background: #34C759; }
.marker-item--pancreatic::before { background: #FF9500; }
.marker-item--allergy::before { background: #FF2D55; }
.marker-item--toxicology::before { background: #6A4A4A; }
.marker-item--urine::before { background: #007AFF; }
.marker-item--muscle::before { background: #FF9500; }
.marker-item--default::before { background: #8E8E93; }

.marker-item:hover {
    border-color: #C7C7CC;
}

.marker-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    cursor: pointer;
    gap: 12px;
    user-select: none;
    border-radius: 14px;
    transition: background 0.1s ease;
}
.marker-summary:hover {
    background: #FAFAFC;
}
.marker-summary .info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.marker-summary .name {
    font-size: 16px;
    font-weight: 600;
    color: #1D1D1F;
}
.marker-summary .meta {
    font-size: 13px;
    color: #8E8E93;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.marker-summary .chevron {
    font-size: 22px;
    color: #C7C7CC;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.marker-item[open] .chevron {
    transform: rotate(180deg);
}
.marker-detail {
    padding: 0 18px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #3A3A3C;
    border-top: 1px solid #F2F2F7;
    margin-top: 2px;
}
.marker-detail .def {
    margin: 12px 0 0;
}
.marker-detail .def strong {
    color: #1D1D1F;
}
.marker-detail .aliases {
    margin: 8px 0 0;
    font-size: 13px;
    color: #3A3A3C;
}
.markers-empty {
    text-align: center;
    color: #8E8E93;
    padding: 48px 16px;
    font-size: 16px;
}
.markers-count {
    max-width: 820px;
    margin: 0 auto 8px;
    padding: 0 16px;
    font-size: 13px;
    color: #8E8E93;
}
.markers-toolbar {
    max-width: 820px;
    margin: 0 auto 32px;
    padding: 0 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.markers-toolbar input,
.markers-toolbar select {
    flex: 1;
    min-width: 180px;
    padding: 12px 16px;
    border: 1px solid #D9D9DE;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #FFFFFF;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.markers-toolbar input:focus,
.markers-toolbar select:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0,122,255,0.14);
}
.markers-toolbar select {
    flex: 0 0 200px;
}
.markers-grid {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* FAQ Section */
.markers-faq {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 16px 60px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.markers-faq h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1D1D1F;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.markers-faq .subhead {
    font-size: 16px;
    color: #6E6E73;
    margin-bottom: 28px;
}
.markers-faq details {
    border-bottom: 1px solid #E5E5EA;
    padding: 14px 0;
}
.markers-faq summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1D1D1F;
    list-style: none;
    position: relative;
    padding-right: 28px;
}
.markers-faq summary::-webkit-details-marker {
    display: none;
}
.markers-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
    font-weight: 400;
    color: #8E8E93;
    transition: transform 0.15s ease;
}
.markers-faq details[open] summary::after {
    transform: rotate(45deg);
}
.markers-faq .answer {
    font-size: 15px;
    color: #3A3A3C;
    line-height: 1.7;
    margin-top: 8px;
    padding-right: 4px;
}
.markers-faq .answer a {
    color: #007AFF;
    font-weight: 500;
}
.markers-faq .answer a:hover {
    text-decoration: underline;
}

/* Mobile Nav Toggle JS helper */
.site-nav--open {
    display: flex !important;
}

@media (max-width: 560px) {
    .markers-hero h1 { font-size: 28px; }
    .markers-toolbar { flex-direction: column; }
    .markers-toolbar select { flex: 1; }
    .markers-faq { padding: 32px 16px 40px; }
    .markers-faq h2 { font-size: 22px; }
}