/* Styling for the SEO guide articles under /guides/*. Deliberately scoped by class name
   (not Blazor CSS isolation) because guide markup is split across a shared layout
   component and three page components, which don't share a scoped-CSS boundary.
   Guides pin data-theme="electricgreen3" on their own root element regardless of the
   visitor's site theme preference, for a consistent marketing look. */

.guide-page {
    background: var(--surface-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem 3rem;
    width: 100%;
    max-width: 900px;
    min-width: 0;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .guide-page {
        padding: 1.5rem 1.25rem 2rem;
    }
}

/* -- Hero -- */

.guide-hero {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-faint);
}

.guide-hero__eyebrow {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 0.75rem;
}

.guide-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.guide-hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* -- Article body -- */

.guide-body {
    font-size: 1.05rem;
    line-height: 1.75;
}

.guide-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    padding-left: 0.85rem;
    border-left: 4px solid var(--gold-bright);
}

.guide-body h3 {
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold-light);
    margin: 1.75rem 0 0.75rem;
}

.guide-body p {
    margin: 0 0 1.1rem;
    color: var(--text-primary);
}

.guide-body strong {
    color: var(--gold-light);
}

.guide-body ul,
.guide-body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
}

.guide-body li {
    margin-bottom: 0.5rem;
}

.guide-body li::marker {
    color: var(--gold-bright);
}

.guide-body a {
    color: var(--gold-light);
    text-decoration: underline;
    text-decoration-color: var(--accent-soft-35, rgba(163,230,53,0.35));
    text-underline-offset: 2px;
}

.guide-body a:hover {
    color: var(--gold-bright);
}

.guide-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--surface-card);
}

.guide-body .guide-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 1.5rem;
    border-radius: var(--radius-md);
}

.guide-body th,
.guide-body td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border-faint);
}

.guide-body th {
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--gold-bright);
    background: var(--surface-elevated);
}

.guide-body tr:last-child td {
    border-bottom: none;
}

/* -- Pull quotes -- */

.guide-quote {
    background: var(--surface-card);
    border-left: 4px solid var(--gold-bright);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    box-shadow: var(--shadow-gold-sm);
}

.guide-quote p {
    font-style: italic;
    color: var(--text-primary);
    margin: 0 0 0.6rem;
}

.guide-quote cite {
    display: block;
    font-style: normal;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* -- Images -- */

.guide-figure {
    margin: 1.75rem 0;
    text-align: center;
}

.guide-figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-faint);
    box-shadow: var(--shadow-gold-md);
}

.guide-figure figcaption {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.6rem;
}

/* -- Asides / disclaimers -- */

.guide-callout {
    background: var(--surface-card);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* -- FAQ -- */

.guide-faq {
    margin: 1.5rem 0;
}

.guide-faq__item {
    border-bottom: 1px solid var(--border-faint);
    padding: 1rem 0;
}

.guide-faq__item:last-child {
    border-bottom: none;
}

.guide-faq__q {
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.4rem;
}

.guide-faq__a {
    color: var(--text-secondary);
    margin: 0;
}

/* -- CTA -- */

.guide-cta {
    text-align: center;
    background: linear-gradient(160deg, var(--card-gradient-start), var(--card-gradient-end));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    margin: 3rem 0 2rem;
    box-shadow: var(--shadow-gold-lg);
}

.guide-cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    margin: 0 0 0.6rem;
}

.guide-cta__text {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 1.5rem;
}

.guide-cta__code {
    color: var(--gold-bright);
    font-weight: 700;
}

.guide-cta__button {
    display: inline-block;
    background: var(--gold-bright);
    color: var(--text-on-gold);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.guide-cta__button:hover {
    background: var(--gold-light);
    color: var(--text-on-gold);
}

/* -- Related guides -- */

.guide-related {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.guide-related__link {
    display: inline-block;
    background: var(--surface-card);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-md);
    padding: 0.6rem 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition);
}

.guide-related__link:hover {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
}
