:root {
    --primary-blue: #0284c7;
    --primary-hover: #0369a1;
    --teal-accent: #0d9488;
    --bg-surface: #ffffff;
    --bg-slate: #f8fafc;
    --bg-advisory: #f0fdf4;
    --bg-neutral: #f1f5f9;
    --bg-dark-slate: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --font-family-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --line-height-body: 1.7;
    --line-height-heading: 1.25;
    --radius-default: 0.75rem;
    --border-card: 1px solid #e2e8f0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-primary);
    color: var(--text-primary);
    background-color: var(--bg-surface);
    line-height: var(--line-height-body);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    line-height: var(--line-height-heading);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

h1 {
    font-weight: 800;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.6rem, 5vw, 2.1rem);
    }

    h2 {
        font-size: clamp(1.35rem, 4.2vw, 1.75rem);
    }

    h3 {
        font-size: clamp(1.15rem, 3.5vw, 1.4rem);
    }

    h4,
    h5,
    h6 {
        font-size: clamp(1rem, 3vw, 1.15rem);
    }

    a,
    p,
    span,
    code {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

/* ===== header_section ===== */
#site-header.site-header-wrapper {
    background-color: var(--bg-surface, #ffffff);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    z-index: 1020;
    overflow: visible;
}

.header-row {
    width: 100%;
}

.header-left-col {
    flex: 1 1 0%;
}

.header-center-col {
    flex: 0 0 auto;
}

.header-right-col {
    flex: 1 1 0%;
}

.header-empty-spacer {
    width: 1px;
    height: 1px;
    visibility: hidden;
}

.header-brand-logo {
    max-width: 46px;
    height: auto;
    object-fit: contain;
    display: block;
}

.header-site-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.header-status-badge {
    font-size: 0.68rem;
    font-weight: 600;
    background-color: var(--bg-advisory, #f0fdf4);
    color: var(--teal-accent, #0d9488);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    width: fit-content;
}

.text-teal {
    color: var(--teal-accent, #0d9488);
}

.header-nav-link {
    color: var(--text-secondary, #475569);
    font-size: 0.925rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.35rem 0;
    position: relative;
}

.header-nav-link:hover,
.header-nav-link:focus {
    color: var(--primary-blue, #0284c7);
}

.header-cta-btn {
    background-color: var(--primary-blue, #0284c7);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.header-cta-btn:hover,
.header-cta-btn:focus {
    background-color: var(--primary-hover, #0369a1);
    color: #ffffff;
}

.navbar-toggler {
    background-color: var(--bg-neutral, #f1f5f9);
    color: var(--text-primary, #0f172a);
    font-size: 1.5rem;
    cursor: pointer;
}

.header-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark-slate, #0f172a);
    z-index: 1050;
    display: none;
    opacity: 1;
}

.header-mobile-menu-overlay.is-open {
    display: flex;
}

.header-mobile-menu-inner {
    width: 100%;
    height: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.header-mobile-close-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
}

.header-mobile-link {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 6px;
}

.header-mobile-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .header-site-title {
        font-size: 0.8rem;
    }

    .header-status-badge {
        font-size: 0.6rem;
    }
}

/* ===== hero_section ===== */
#hero-section {
    overflow: hidden;
    background-color: var(--bg-slate);
    color: var(--text-primary);
    border-bottom: 1px solid #e2e8f0
}

.hero-pill {
    background-color: var(--bg-advisory);
    color: var(--teal-accent) !important;
    font-size: 0.875rem;
    border: 1px solid #bbf7d0
}

.hero-title {
    color: var(--text-primary);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    letter-spacing: -0.02em
}

.hero-subtitle {
    color: var(--primary-blue);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.4
}

.hero-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    hyphens: auto
}

.hero-block .btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: background-color .2s ease, border-color .2s ease
}

.hero-block .btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover)
}

.hero-block .btn-outline-secondary {
    background-color: var(--bg-surface);
    border-color: #cbd5e1;
    color: var(--text-primary) !important;
    transition: all .2s ease
}

.hero-block .btn-outline-secondary:hover {
    background-color: var(--bg-neutral);
    border-color: #94a3b8;
    color: var(--text-primary) !important
}

.hero-image-wrapper {
    border: 1px solid #e2e8f0
}

.hero-feature-img {
    height: 380px;
    object-fit: cover
}

@media(max-width:767.98px) {
    .hero-title {
        font-size: 1.125rem;
        line-height: 1.25
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.25
    }

    .hero-text {
        font-size: 0.875rem
    }

    .hero-feature-img {
        height: 240px
    }

    .hero-cta-group .btn {
        width: 100%
    }
}

/* ===== access_verification_section ===== */
#access-block {
    width: 100%;
    position: relative;
}

#access-block .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#access-block .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08) !important;
}

#access-block .btn:hover {
    opacity: 0.95;
}

.js-official-portal-btn:hover {
    background-color: var(--primary-hover) !important;
    color: #ffffff !important;
}

.js-nav-anchor:hover {
    background-color: #e2e8f0 !important;
    color: var(--text-primary) !important;
}

/* ===== main_comprehensive_guide ===== */
#main-guide {
    --bs-body-font-family: inherit;
    font-size: 1rem;
}

#main-guide h1 {
    color: var(--text-primary);
}

#main-guide h2,
#main-guide h3 {
    color: var(--text-primary);
}

#main-guide p,
#main-guide li {
    color: var(--text-secondary);
}

#main-guide .accordion-button:not(.collapsed) {
    background-color: var(--bg-neutral);
    color: var(--text-primary);
    box-shadow: none;
}

#main-guide .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(2, 132, 199, 0.25);
}

#main-guide .table th,
#main-guide .table td {
    padding: 0.85rem 1rem;
}

@media (max-width: 767.98px) {
    #main-guide h1 {
        font-size: 1.125rem;
        line-height: 1.25;
    }

    #main-guide h2 {
        font-size: 1rem;
        line-height: 1.25;
    }

    #main-guide h3 {
        font-size: 0.875rem;
        line-height: 1.2;
    }
}

/* ===== quick_guides_cards ===== */
#quick-guides {
    overflow: hidden;
}

#quick-guides .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

#quick-guides .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
}

#quick-guides .btn:hover {
    opacity: 0.92;
}

@media (max-width: 767.98px) {
    #quick-guides h2 {
        font-size: 1rem !important;
        line-height: 1.25;
        hyphens: auto;
    }

    #quick-guides h3 {
        font-size: 0.875rem !important;
        line-height: 1.25;
        hyphens: auto;
    }
}

/* ===== faq_accordion_section ===== */
#faq-section {
    background-color: var(--bg-slate, #f8fafc);
    color: var(--text-primary, #0f172a);
}

.faq-badge {
    background-color: var(--bg-advisory, #f0fdf4);
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.faq-badge-icon {
    color: var(--teal-accent, #0d9488);
    font-size: 1.1rem;
}

.faq-badge-text {
    color: var(--teal-accent, #0d9488);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.faq-main-title {
    color: var(--text-primary, #0f172a);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.25;
    hyphens: auto;
}

.faq-main-desc {
    color: var(--text-secondary, #475569);
    font-size: 1.05rem;
    line-height: 1.6;
}

.faq-card {
    background-color: var(--bg-surface, #ffffff);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.faq-card:hover {
    border-color: rgba(2, 132, 199, 0.35);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.faq-trigger {
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    outline: none;
}

.faq-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.3);
}

.faq-question-text {
    color: var(--text-primary, #0f172a);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    hyphens: auto;
}

.faq-question-icon {
    color: var(--primary-blue, #0284c7);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.faq-arrow-icon {
    color: var(--text-secondary, #475569);
    font-size: 1.4rem;
    transition: transform 0.3s ease, color 0.2s ease;
    flex-shrink: 0;
}

.faq-trigger[aria-expanded="true"] .faq-arrow-icon {
    transform: rotate(180deg);
    color: var(--primary-blue, #0284c7);
}

.faq-trigger[aria-expanded="true"] .faq-question-text {
    color: var(--primary-blue, #0284c7);
}

.faq-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-collapse.show {
    max-height: 500px;
}

.faq-body {
    border-top: 1px solid rgba(241, 245, 249, 0.9);
}

.faq-answer-text {
    color: var(--text-secondary, #475569);
    font-size: 0.975rem;
    line-height: 1.65;
}

@media (max-width: 767.98px) {
    .faq-main-title {
        font-size: 1rem;
        line-height: 1.2;
    }

    .faq-main-desc {
        font-size: 0.875rem;
    }

    .faq-question-text {
        font-size: 0.875rem;
    }

    .faq-answer-text {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .faq-trigger {
        padding: 1rem !important;
    }

    .faq-body {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* ===== newsletter_updates_section ===== */
#portal-updates {
    overflow: hidden;
    background-color: var(--bg-slate, #f8fafc);
    color: var(--text-primary, #0f172a);
    hyphens: auto;
}

.newsletter-card {
    background-color: var(--bg-surface, #ffffff);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

.badge-icon-wrap {
    width: 56px;
    height: 56px;
    background-color: var(--bg-neutral, #f1f5f9);
}

.text-primary-icon {
    color: var(--primary-blue, #0284c7);
}

.newsletter-title {
    color: var(--text-primary, #0f172a);
    font-size: 1.75rem;
    line-height: 1.25;
}

.newsletter-subtitle {
    color: var(--text-secondary, #475569);
    font-size: 0.95rem;
    line-height: 1.5;
}

.input-field-label {
    color: var(--text-primary, #0f172a);
    font-size: 0.875rem;
}

.field-icon-addon {
    background-color: var(--bg-neutral, #f1f5f9);
    border-color: #cbd5e1;
    border-right: none;
}

.field-icon {
    color: var(--text-secondary, #475569);
    font-size: 1.1rem;
}

.custom-input {
    background-color: var(--bg-surface, #ffffff);
    border-color: #cbd5e1;
    border-left: none;
    color: var(--text-primary, #0f172a);
    padding: 0.65rem 0.85rem;
}

.custom-input:focus {
    border-color: var(--primary-blue, #0284c7);
    box-shadow: 0 0 0 0.2rem rgba(2, 132, 199, 0.15);
    color: var(--text-primary, #0f172a);
}

.field-feedback {
    font-size: 0.75rem;
    color: var(--text-secondary, #475569);
    margin-top: 0.25rem;
}

.privacy-checkbox-wrap {
    text-align: left;
}

.custom-checkbox {
    border-color: #94a3b8;
    cursor: pointer;
}

.custom-checkbox:checked {
    background-color: var(--primary-blue, #0284c7);
    border-color: var(--primary-blue, #0284c7);
}

.checkbox-label-text {
    color: var(--text-secondary, #475569);
    font-size: 0.85rem;
    line-height: 1.4;
}

.policy-anchor-link {
    color: var(--primary-blue, #0284c7);
    text-decoration: underline;
    font-weight: 500;
}

.policy-anchor-link:hover {
    color: var(--primary-hover, #0369a1);
}

.submit-newsletter-btn {
    background-color: var(--primary-blue, #0284c7);
    border-color: var(--primary-blue, #0284c7);
    color: #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.submit-newsletter-btn:hover,
.submit-newsletter-btn:focus {
    background-color: var(--primary-hover, #0369a1);
    border-color: var(--primary-hover, #0369a1);
    color: #ffffff;
}

.privacy-guarantee {
    border-color: #e2e8f0 !important;
}

.guarantee-icon {
    color: var(--teal-accent, #0d9488);
}

.guarantee-title {
    color: var(--text-primary, #0f172a);
    font-size: 0.9rem;
}

.guarantee-text {
    color: var(--text-secondary, #475569);
    font-size: 0.8rem;
    line-height: 1.4;
}

@media (max-width: 767.98px) {
    .newsletter-title {
        font-size: 1rem;
        line-height: 1.2;
    }

    .newsletter-subtitle {
        font-size: 0.875rem;
        line-height: 1.3;
    }

    .badge-icon-wrap {
        width: 46px;
        height: 46px;
    }

    .text-primary-icon {
        font-size: 1.5rem;
    }
}

/* ===== standalone_disclaimer_section ===== */
#medical-disclaimer {
    overflow: hidden;
    width: 100%;
}

.disclaimer-card {
    width: 100%;
    transition: transform 0.2s ease-in-out;
}

@media (max-width: 767.98px) {
    #medical-disclaimer h2 {
        font-size: 1rem;
        line-height: 1.25;
    }

    #medical-disclaimer p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .disclaimer-icon-wrapper {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ===== footer_section ===== */
#site-footer {
    overflow: hidden;
    background-color: var(--bg-dark-slate, #0f172a);
    color: var(--bg-slate, #f8fafc);
    width: 100%;
}

#site-footer .brand-icon {
    width: 36px;
    height: 36px;
    background-color: var(--primary-blue, #0284c7);
    border-radius: 8px;
}

#site-footer .brand-title {
    letter-spacing: -0.02em;
}

#site-footer .footer-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--bg-slate, #f8fafc);
}

#site-footer .disclaimer-notice {
    background-color: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--teal-accent, #0d9488);
    line-height: 1.5;
    color: var(--bg-slate, #f8fafc);
}

#site-footer .footer-heading {
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    color: #ffffff;
}

#site-footer .footer-nav-link {
    color: var(--bg-slate, #f8fafc);
    transition: color 0.2s ease, opacity 0.2s ease;
    font-size: 0.9375rem;
    display: inline-block;
}

#site-footer .footer-nav-link:hover,
#site-footer .footer-nav-link:focus {
    color: #ffffff;
    opacity: 1 !important;
}

#site-footer .copyright-text,
#site-footer .footer-status-text {
    color: var(--bg-slate, #f8fafc);
    font-size: 0.8125rem;
}

#site-footer .footer-divider {
    border-color: rgba(248, 250, 252, 0.15);
}

@media (max-width: 767.98px) {
    #site-footer .brand-title {
        font-size: 0.8rem;
    }

    #site-footer .footer-heading {
        font-size: 0.875rem;
        line-height: 1.2;
        hyphens: auto;
    }
}