html{scroll-behavior:smooth}
body{font-family:Arial,Helvetica,sans-serif;margin:24px;background:#0b1220;color:#e5e7eb}
.wrap{max-width:900px;margin:0 auto}
.tab-nav{display:flex;flex-wrap:wrap;gap:0;border-bottom:2px solid #1e3a8a;margin-bottom:24px;overflow-x:auto}
.tab-btn{padding:12px 20px;background:#111827;color:#94a3b8;border:1px solid #1f2937;border-bottom:none;cursor:pointer;font-size:14px;font-weight:600;border-radius:8px 8px 0 0;transition:all .2s;text-decoration:none;white-space:nowrap}
.tab-btn:hover{background:#1e293b;color:#e2e8f0}
.tab-btn.active{background:#1e3a8a;color:#fff;border-color:#1e3a8a}
h1{font-size:clamp(18px,3.5vw,22px);margin:0 0 24px;color:#e2e8f0}
p{color:#94a3b8;font-size:14px;line-height:1.6;margin:0 0 12px}
a{color:#93c5fd;text-decoration:none}
a:hover{text-decoration:underline}
code{background:#0f172a;padding:2px 6px;border-radius:4px;color:#93c5fd}

.plan-section{background:#111827;border:1px solid #1f2937;border-radius:12px;padding:24px;margin-bottom:24px}
.plan-section h2{color:#60a5fa;font-size:clamp(16px,3.5vw,20px);margin:0 0 16px;border-bottom:2px solid #1e3a8a;padding-bottom:8px}
.plan-section h3{color:#93c5fd;font-size:clamp(14px,2.5vw,16px);margin:16px 0 8px}
.plan-section p{color:#94a3b8}

.plan-table{width:100%;border-collapse:collapse;background:#0f172a;border-radius:8px;overflow:hidden;margin:16px 0}
.plan-table th{background:#1e293b;color:#93c5fd;padding:10px 14px;text-align:left;font-size:13px;text-transform:uppercase;letter-spacing:.5px}
.plan-table td{padding:10px 14px;border-bottom:1px solid #1f2937;font-size:14px;line-height:1.5;color:#cbd5e1}
.plan-table tr:hover{background:#1e293b}
.plan-table tr:last-child td{border-bottom:none}

.badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:700;margin-right:8px}
.badge-red{background:#7f1d1d;color:#fca5a5}
.badge-yellow{background:#713f12;color:#fde68a}
.badge-green{background:#14532d;color:#86efac}
.badge-blue{background:#1e3a5f;color:#93c5fd}
.badge-purple{background:#4c1d95;color:#c4b5fd}
.label-row{margin:10px 0;font-size:14px;color:#94a3b8;line-height:1.6}
.label-row .badge{vertical-align:middle}

.callout{background:#1e293b;border-left:4px solid #3b82f6;padding:16px 20px;border-radius:0 8px 8px 0;margin:12px 0;font-size:14px;line-height:1.6;color:#94a3b8}
.callout strong{color:#e2e8f0}

.strategy-card{background:linear-gradient(135deg,#0f172a,#1e293b);border:1px solid #334155;border-radius:12px;padding:20px;margin:12px 0}
.strategy-card h4{color:#93c5fd;margin:0 0 8px;font-size:16px}
.strategy-card p{color:#94a3b8;font-size:14px;margin:0;line-height:1.6}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:640px){.two-col{grid-template-columns:1fr}}

.fig-wrap{margin:16px 0;border-radius:8px;overflow:hidden;border:1px solid #1f2937}
.fig-wrap img,.fig-wrap object,.fig-wrap svg{display:block;max-width:100%;height:auto}
.fig-wrap--compact{max-width:520px;margin-left:auto;margin-right:auto}
.fig-wrap--compact img{max-height:280px;width:auto;object-fit:contain}
.fig-wrap--wide{max-width:100%}
.fig-wrap--wide img{max-height:320px;width:100%;object-fit:contain;object-position:center}
.fig-wrap figcaption,.fig-caption{padding:12px 16px;font-size:13px;color:#94a3b8;background:#0f172a;border-top:1px solid #1f2937}
.screenshot-figure img{max-height:360px;width:auto;max-width:100%;margin:0 auto;object-fit:contain}
.flowchart-wrap{background:#0f172a;padding:12px;border-radius:8px;border:1px solid #1f2937;margin:16px 0}
.flowchart-wrap img,.flowchart-wrap object{max-width:100%;height:auto;display:block}
.showoff-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:16px 0}
.showoff-grid .fig-wrap{margin:0}

.mermaid-wrap{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:24px;margin:16px 0}
.mermaid-wrap .mermaid{display:flex;justify-content:center;align-items:center;min-height:140px}
.mermaid-wrap .mermaid svg{max-width:100%;height:auto}

.button-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.button{padding:12px 24px;background:#1e3a8a;color:#fff;border:1px solid:#1e3a8a;border-radius:8px;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;display:inline-block}
.button:hover{background:#2563eb;border-color:#2563eb}
.button-ghost{background:transparent;color:#93c5fd;border-color:#334155}
.button-ghost:hover{background:#1e293b;color:#e2e8f0}
.related-rail{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px 18px;margin:18px 0 18px;padding-top:18px;border-top:1px solid #223047}
.related-copy{min-width:0}
.related-title{color:#dbeafe;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}
.related-note{color:#8fa5be;font-size:14px;line-height:1.7}
.related-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.related-links a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border:1px solid #1d4ed8;border-radius:999px;color:#dbeafe;text-decoration:none;font-size:13px;white-space:nowrap;background:transparent}
.related-links a:hover{background:#10233f;text-decoration:none}
.page-updated{margin-top:32px;padding-top:16px;border-top:1px solid #1f2937;font-size:13px;color:#64748b}

/* Image modal (lightbox) - click to enlarge */
.fig-wrap img,.showoff-grid img{cursor:zoom-in}
.img-modal{display:none;position:fixed;inset:0;z-index:9999;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.img-modal.is-open{display:flex}
.img-modal-overlay{position:absolute;inset:0;background:rgba(0,0,0,.85);cursor:zoom-out}
.img-modal-content{position:relative;max-width:95vw;max-height:95vh;display:flex;align-items:center;justify-content:center;pointer-events:none}
.img-modal-content img{max-width:100%;max-height:90vh;width:auto;height:auto;object-fit:contain;pointer-events:auto;border-radius:8px;box-shadow:0 8px 32px rgba(0,0,0,.5)}
.img-modal-close{position:absolute;top:-44px;right:0;width:36px;height:36px;border:none;background:#1e293b;color:#e2e8f0;border-radius:8px;cursor:pointer;pointer-events:auto;font-size:20px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center}
.img-modal-close:hover{background:#334155}
body.img-modal-open{overflow:hidden}

@media (max-width:720px){
body{margin:0}
.wrap{max-width:none!important;width:calc(100% - 16px)!important;margin:0 auto!important}
.tab-nav{margin-bottom:16px;scrollbar-width:none}
.tab-nav::-webkit-scrollbar{display:none}
.tab-btn{padding:10px 14px;font-size:13px}
h1{font-size:20px;margin-bottom:18px}
.plan-section{
padding:0 2px 14px;
margin-bottom:14px;
border:none;
border-radius:0;
background:transparent;
box-shadow:none
}
.plan-section h2{font-size:19px;margin-bottom:12px;padding-bottom:6px}
.plan-section h3{font-size:15px;margin:14px 0 8px}
.label-row{margin:8px 0;font-size:13px;line-height:1.55}
.badge{margin-right:6px}
.plan-table th,.plan-table td{padding:8px 10px}
.callout{padding:12px 12px}
.strategy-card{
padding:10px 2px;
margin:6px 0;
border:none;
border-radius:0;
background:transparent;
box-shadow:none
}
.two-col{gap:10px}
.fig-wrap{margin:12px 0}
.fig-wrap figcaption,.fig-caption{padding:8px 10px}
.flowchart-wrap{padding:10px}
.mermaid-wrap{padding:14px}
.button-row{gap:10px}
.button{padding:11px 18px}
.page-updated{margin-top:24px;padding-top:12px}
.related-rail{grid-template-columns:1fr;gap:12px;margin-bottom:14px;padding-top:14px}
.related-title{font-size:12px}
.related-note{font-size:13px;line-height:1.6}
.related-links{width:100%;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.related-links::-webkit-scrollbar{display:none}
.related-links a{flex:0 0 auto;min-height:34px;padding:0 12px;font-size:12px}

.page-hero,
.hero,
.section,
.cta{
padding:0 2px!important;
border:none!important;
border-radius:0!important;
background:transparent!important;
box-shadow:none!important
}

.page-hero{
margin-bottom:16px!important;
padding:0 2px 14px!important;
border:none!important;
border-radius:0!important;
background:transparent!important;
box-shadow:none!important
}

.mini-card,
.slim-card,
.control-card,
.proof-card,
.workflow-mobile-step,
.guide-card{
padding:10px 2px!important;
border:none!important;
border-radius:0!important;
background:transparent!important;
box-shadow:none!important
}

.guide-grid,
.workflow-notes,
.controls-grid,
.proof-layout{gap:10px!important}

.hero-meta,
.workflow-notes,
.controls-grid,
.proof-layout{grid-template-columns:1fr!important}

.fig-wrap--hero img{max-height:220px!important;border-radius:10px!important}

.section-head{gap:10px!important}
.section-head p{max-width:none!important}
.topbar{padding:0 0 8px!important;margin-bottom:6px!important}
}

@media (max-width:480px){
h1{font-size:clamp(16px,5vw,19px)}
.plan-section h2{font-size:16px}
.plan-section h3{font-size:14px}
p{font-size:13px}
.tab-btn{font-size:12px;padding:8px 10px}
.button{padding:10px 16px;font-size:13px}
.strategy-card h4{font-size:14px}
.plan-section{padding:0 0 12px}
}

