:root {
    --bg: #f5fbff;
    --panel: #ffffff;
    --primary: #2da8ef;
    --primary-strong: #157fc4;
    --text: #113249;
    --muted: #4a6a80;
    --border: #d7ecf8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #edf8ff 0%, #ffffff 100%);
    line-height: 1.6;
}

.guide-card .eyebrow {
    margin-bottom: 0.35rem;
}

.guide-detail h1 {
    margin-bottom: 1rem;
}

.guide-faq-section .faq-item + .faq-item {
    margin-top: 0.75rem;
}

#more-guides-heading,
#guides-heading {
    margin-bottom: 0.35rem;
}

.section[aria-labelledby="more-guides-heading"] > p,
.section[aria-labelledby="guides-heading"] > p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.detail-copy-card > p.lead {
    margin-top: 0;
    margin-bottom: 0;
}

.detail-section {
    margin-top: 1.25rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 8px 24px rgba(36, 113, 171, 0.06);
}

.detail-section h2 {
    margin: 0 0 0.7rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.detail-section p {
    margin: 0;
    color: var(--muted);
    max-width: none;
}

.detail-section p + p {
    margin-top: 0.85rem;
}

.faq-section {
    margin-top: 1.5rem;
}

.faq-item {
    background: #fafdff;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item + .faq-item {
    margin-top: 0.75rem;
}

.faq-item[open] {
    border-color: #bfe2f6;
    box-shadow: 0 6px 18px rgba(36, 113, 171, 0.06);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--text);
    position: relative;
    padding-right: 1.5rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-strong);
    font-weight: 800;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin: 0.8rem 0 0;
    color: var(--muted);
}

#related-products-heading {
    margin-bottom: 0.35rem;
}

.section[aria-labelledby="related-products-heading"] > p {
    margin-top: 0;
    margin-bottom: 1rem;
}

@media (max-width: 860px) {
    .detail-section {
        padding: 1rem;
    }

    .faq-item {
        padding: 0.85rem 0.9rem;
    }
}

.hero {
    padding: 1.5rem 1.5rem 4rem;
    background: radial-gradient(circle at 10% 0%, #d8f1ff 0%, #eff9ff 45%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
}

.top-nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-links { display: flex; gap: 1rem; }

.nav-link {
    color: var(--primary-strong);
    font-weight: 600;
    text-decoration: none;
}

.hero-content {
    max-width: 1100px;
    margin: 4rem auto 0;
}

.eyebrow {
    color: var(--primary-strong);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 700;
}

h1 { margin: 0.2rem 0 0.8rem; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; }

.lead { max-width: 750px; color: var(--muted); font-size: 1.1rem; }

.cta {
    display: inline-block;
    margin-top: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.72rem 1rem;
    border-radius: 0.65rem;
    text-decoration: none;
    font-weight: 700;
}

.section { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
.section h2 { margin-top: 0; font-size: 1.8rem; }
.section p { color: var(--muted); max-width: 860px; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(36, 113, 171, 0.08);
}

.card h3 { margin-top: 0; margin-bottom: 0.4rem; }


.product-icon {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid #e6f3fb;
    background: #f8fcff;
    padding: 0.35rem;
    margin: 0 auto 0.65rem;
}

.product-link {
    display: inline-block;
    margin-top: 0.4rem;
    color: var(--primary-strong);
    font-weight: 600;
    text-decoration: none;
}

.product-link:hover,
.product-link:focus {
    text-decoration: underline;
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.team-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.15rem;
    box-shadow: 0 8px 24px rgba(36, 113, 171, 0.08);
}

.team-photo {
    flex: 0 0 auto;
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 999px;
    border: 3px solid #e6f3fb;
    background: linear-gradient(180deg, #eff9ff 0%, #d8f1ff 100%);
    box-shadow: 0 8px 18px rgba(36, 113, 171, 0.08);
}

.team-copy {
    min-width: 0;
}

.team-copy h3 {
    margin: 0;
    font-size: 1.25rem;
}

.team-role {
    margin: 0.2rem 0 0.6rem;
    color: var(--primary-strong);
    font-weight: 800;
}

.team-copy p:last-child {
    margin-bottom: 0;
}

@media (max-width: 560px) {
    .team-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-photo {
        width: 132px;
        height: 132px;
    }
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links a {
    color: var(--primary-strong);
    font-weight: 600;
    text-decoration: none;
}

.social-links a:hover,
.social-links a:focus {
    text-decoration: underline;
}

footer {
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

footer a, .back-link { color: var(--primary-strong); }

.legal-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(36, 113, 171, 0.08);
}

.legal-wrap h1 { font-size: 2rem; }
.legal-wrap h2 { margin-top: 1.5rem; font-size: 1.3rem; }

@media (max-width: 760px) {
    .top-nav { flex-direction: column; align-items: flex-start; }
    .nav-links { flex-wrap: wrap; }
}


.hero-compact {
    padding-bottom: 2.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-detail {
    display: grid;
    gap: 1.75rem;
}

.detail-intro,
.detail-banner-wrap,
.detail-body {
    min-width: 0;
}

.detail-copy {
    min-width: 0;
}

.detail-copy-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(36, 113, 171, 0.08);
}

.detail-copy-full {
    grid-column: 1 / -1;
}

.detail-banner-wrap {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(36, 113, 171, 0.08);
}

.detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 2rem;
    align-items: start;
}

.detail-sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.detail-logo {
    width: min(100%, 220px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    justify-self: end;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(36, 113, 171, 0.08);
}

.detail-links-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(36, 113, 171, 0.08);
}

.detail-links-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.detail-banner {
    display: block;
    width: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 0.8rem;
    background: linear-gradient(180deg, #eff9ff 0%, #d8f1ff 100%);
}

.product-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cta.secondary {
    background: #ffffff;
    color: var(--primary-strong);
    border: 1px solid var(--border);
}

.error-message {
    color: #8b2d2d;
    font-weight: 600;
}

@media (max-width: 860px) {
    .detail-body {
        grid-template-columns: 1fr;
    }

    .detail-logo {
        justify-self: start;
    }
}
