/* Guide pages: loads after style.css */
.guide-page{--guide-line:#cfe3e9;--guide-measure:70ch;--warn:#8a4b00;--warn-bg:#fff6e5}
.guide-page :focus-visible{outline:3px solid var(--navy);outline-offset:3px;box-shadow:0 0 0 6px var(--cyan)}
.guide-page .page-hero :focus-visible,.guide-page .guide-cta :focus-visible{outline-color:#fff;box-shadow:0 0 0 6px var(--navy)}
.guide-page .page-hero{padding:56px 0 52px}
.guide-page .page-hero h1{max-width:20ch;font-size:clamp(2.1rem,4.6vw,3.5rem)}
.guide-page .page-hero .intro,.guide-page .page-hero p{max-width:720px}

/* Breadcrumbs */
.guide-page .page-hero nav ol{display:flex;flex-wrap:wrap;gap:4px 0;margin:0 0 22px;padding:0;list-style:none;font-size:.9rem}
.guide-page .page-hero nav li:not(:last-child)::after{content:"/";margin:0 9px;color:var(--cyan)}
.guide-page .page-hero nav a{color:#fff;text-underline-offset:3px}
.guide-page .page-hero nav a:hover{color:var(--cyan)}
.guide-page .page-hero nav [aria-current]{color:#cfeff6}
.guide-meta{display:flex;flex-wrap:wrap;gap:8px 24px;margin:22px 0 0;padding:16px 0 0;border-top:1px solid rgba(41,204,232,.45);list-style:none;font-size:.92rem;color:#d9f4f9}
.guide-meta>*{margin:0}
.guide-meta strong{color:#fff}

/* Layout */
.guide-page .section-pale{padding:56px 0 72px}
.guide-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:48px;align-items:start}
.guide-layout>div{min-width:0}
.guide-intro{max-width:70ch;font-size:1.08rem;line-height:1.75;margin:0 0 24px}
.guide-toc{position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto;padding:22px;background:#fff;border-top:4px solid var(--cyan);box-shadow:var(--shadow)}
.guide-toc h2{margin:0 0 12px;font-size:1rem;letter-spacing:.08em;text-transform:uppercase}
.guide-toc ol{margin:0;padding-left:1.3em;font-size:.93rem}
.guide-toc li{margin-bottom:8px;padding-left:2px}
.guide-toc a{color:var(--navy);text-underline-offset:3px}
.guide-toc a:hover{color:var(--blue);text-decoration-thickness:2px}

/* Article */
.guide-article{min-width:0;padding:44px 48px;background:#fff;box-shadow:var(--shadow);font-size:1.08rem;line-height:1.75}
.guide-article>*{max-width:var(--guide-measure)}
.guide-article>.guide-table-wrap,.guide-article>.guide-cta{max-width:none}
.guide-section{padding:0 0 34px;margin:0 0 34px;border-bottom:1px solid var(--guide-line);scroll-margin-top:20px}
.guide-section:last-of-type{border-bottom:0}
.guide-section h2{margin-bottom:18px;font-size:clamp(1.6rem,3vw,2.15rem)}
.guide-section h3{margin:28px 0 10px;font-size:1.3rem}
.guide-section p{margin:0 0 1.1em}
.guide-section ul,.guide-section ol{margin:0 0 1.3em;padding-left:1.4em}
.guide-section li{margin-bottom:.5em}
.guide-section li::marker{color:var(--blue);font-weight:800}
.guide-section a,.guide-faq a{color:var(--blue);text-underline-offset:3px}
.guide-section a:hover{color:var(--navy)}

/* Safety */
.guide-safety{margin:28px 0;padding:20px 24px;background:var(--warn-bg);border-left:6px solid #d98200;color:#3d2a08}
.guide-safety>*:first-child{margin-top:0}
.guide-safety>*:last-child{margin-bottom:0}
.guide-safety h2,.guide-safety h3,.guide-safety strong:first-child{color:var(--warn)}
.guide-safety h2,.guide-safety h3{margin:0 0 8px;font-size:1.1rem}

/* Table */
.guide-table-wrap{margin:28px 0;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--guide-line)}
.guide-table-wrap:focus-visible{outline-offset:0}
.guide-table{width:100%;min-width:560px;border-collapse:collapse;font-size:.97rem;line-height:1.5}
.guide-table caption{padding:14px 16px;color:var(--navy);background:var(--pale);font-weight:800;text-align:left;border-bottom:1px solid var(--guide-line)}
.guide-table th,.guide-table td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--guide-line)}
.guide-table thead th{color:#fff;background:var(--navy);font-size:.85rem;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
.guide-table tbody tr:nth-child(even){background:#f6fcfd}
.guide-table tbody th{color:var(--navy)}
.guide-table tbody tr:last-child>*{border-bottom:0}

/* Steps */
.guide-steps{counter-reset:step;margin:28px 0;padding:0;list-style:none}
.guide-steps li{position:relative;counter-increment:step;margin:0 0 16px;padding:20px 22px 20px 74px;background:var(--pale);border-left:4px solid var(--cyan)}
.guide-steps li::before{content:counter(step);position:absolute;top:20px;left:20px;display:grid;width:36px;height:36px;place-items:center;color:#fff;background:var(--navy);border:2px solid var(--cyan);border-radius:50%;font-weight:800}
.guide-steps h3{margin:0 0 6px;font-size:1.15rem}
.guide-steps p{margin:0}

/* FAQ */
.guide-faq{margin:28px 0}
.guide-faq details{margin-bottom:10px;background:#fff;border:1px solid var(--guide-line);border-left:4px solid var(--cyan)}
.guide-faq summary{position:relative;padding:16px 52px 16px 20px;color:var(--navy);font-weight:800;cursor:pointer;list-style:none}
.guide-faq summary::-webkit-details-marker{display:none}
.guide-faq summary::after{content:"+";position:absolute;top:50%;right:20px;font-size:1.5rem;line-height:1;transform:translateY(-50%)}
.guide-faq details[open] summary::after{content:"\2212"}
.guide-faq details[open] summary{background:var(--pale)}
.guide-faq details p{margin:0;padding:16px 20px 4px}
.guide-faq details p:last-child{padding-bottom:18px}

/* CTA */
.guide-cta{margin:40px 0 0;padding:36px;color:#fff;background:linear-gradient(120deg,var(--navy),#14369d);border-bottom:5px solid var(--cyan)}
.guide-cta h2{margin-bottom:10px;color:#fff;font-size:clamp(1.5rem,3vw,2rem)}
.guide-cta p{max-width:60ch;margin:0}
.guide-cta .hero-actions{margin-top:22px}
.guide-cta a:not(.button){color:#fff}

/* Hub */
.guide-hub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.guide-hub-card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border-top:4px solid var(--cyan);box-shadow:var(--shadow)}
.guide-hub-card img{width:100%;aspect-ratio:16/10;object-fit:cover}
.guide-hub-card div{display:flex;flex:1;flex-direction:column;padding:22px}
.guide-hub-card h2{margin-bottom:10px;font-size:1.3rem}
.guide-hub-card p{flex:1;margin:0 0 16px}
.guide-hub-card a{color:var(--navy);font-weight:800;text-underline-offset:3px}

@media(max-width:1000px){
.guide-layout{grid-template-columns:1fr;gap:28px}
.guide-toc{position:static;max-height:none}
.guide-article{padding:36px 30px}
.guide-hub-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
.guide-page .page-hero{padding:40px 0}
.guide-page .section-pale{padding:32px 0 48px}
.guide-article{padding:26px 18px;font-size:1.03rem}
.guide-toc{padding:18px}
.guide-steps li{padding:18px 16px 18px 64px}
.guide-steps li::before{left:14px;top:18px}
.guide-cta{padding:26px 20px}
.guide-hub-grid{grid-template-columns:1fr}
.guide-meta{flex-direction:column}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
