/* aspartners.io · unified look for ASP Telecom Labs.
 * Aligns the labs with the main site (Inter, black/white palette, bold headings, 6px controls,
 * same header and footer). Loaded after the labs' own stylesheets. The green 3D panels stay as
 * the product accent; no lab, 3D or simulation styling inside the experiences is changed. */

:root{
  --ink:#000;--muted:#7a7a7a;--paper:#fefefe;--white:#fff;--line:#e0e0e0;--soft:#f0f0f0;
  --asp-muted:#8c8c8c;--asp-border:#e0e0e0;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
html,body{background:#fefefe}
body{color:#000}

/* Headings: bold and black like the main site */
h1,h2,h3{font-weight:700;letter-spacing:-.02em}
h1{line-height:1.08}
/* Page-level overrides (the labs set these per page via body[data-page=…]) */
html body[data-page]{background:#fefefe;color:#000;--product-surface:#fefefe}
html body[data-page] h1{font-weight:700;letter-spacing:-.03em}
html body[data-page] h2{font-weight:700;letter-spacing:-.02em}
html body[data-page] h3{font-weight:600;letter-spacing:-.01em}
/* Lead paragraph under each page headline: site grey and size */
html body[data-page] h1+p{color:#737373;font-size:16px;line-height:1.65}
@media(max-width:600px){html body[data-page] h1+p{font-size:15px}}
html body[data-page] .lab-card-body h3{font-weight:600;color:#000}
html body[data-page] .lab-card-body p{color:#7a7a7a}


/* Controls: site radius and weight */
.button{border-radius:6px;font-weight:600;font-size:14px}
.button.small{font-size:13px;border-radius:6px}
.button:not(.secondary):not(.light){background:#000;border-color:#000;color:#fefefe}
.button:not(.secondary):not(.light):hover{background:#262626}
.button.secondary{border-color:#e0e0e0}
.button.secondary:hover{background:#f5f5f5}

/* ---------------- Header (same as the main site) ---------------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(254,254,254,.98);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid #e0e0e0;box-shadow:0 1px 2px rgba(0,0,0,.05)}
html body[data-page] .site-header .header-inner{height:96px;gap:24px}
.site-header .brand{gap:8px;transition:opacity .15s}
.site-header .brand:hover{opacity:.8}
html body[data-page] .site-header .brand img{width:64px;height:64px;background:none;border-radius:0}
.site-header .brand-word{font-size:36px;font-weight:900;letter-spacing:.025em;line-height:1;color:#000}
.site-header .nav{flex:1;justify-content:center;gap:4px;margin:0;font-size:14px;font-weight:500}
.site-header .nav a{padding:8px 14px;border-radius:6px;color:#8c8c8c;white-space:nowrap;transition:color .15s,background .15s}
.site-header .nav a:hover{color:#000;background:rgba(0,0,0,.04)}
.site-header .nav a.is-active,.site-header .nav a[aria-current=page]{color:#000;background:rgba(0,0,0,.08)}
.site-header .lang-switch{margin-left:0;background:none;padding:0;gap:0;border:1px solid #e0e0e0;border-radius:6px;overflow:hidden}
.site-header .lang-switch button{border-radius:0;min-height:0;padding:4px 10px;font-size:12px;font-weight:500;color:#8c8c8c;background:transparent;box-shadow:none}
.site-header .lang-switch button:hover{color:#000}
.site-header .lang-switch button[aria-pressed=true]{background:#000;color:#fefefe;box-shadow:none}
.site-header .menu-toggle{border:0;background:transparent;font-size:20px;color:#8c8c8c;padding:6px;min-height:0}
.site-header .menu-toggle:hover{color:#000}
@media(min-width:1101px){.site-header .menu-toggle{display:none}.site-header .nav{display:flex;position:static;padding:0;border:0;flex-direction:row;align-items:center}}
@media(max-width:1100px){
  .site-header .nav{display:none;position:absolute;top:96px;left:0;right:0;background:#fefefe;padding:12px 16px 16px;border-bottom:1px solid #e0e0e0;flex-direction:column;align-items:stretch;gap:2px;margin:0}
  .site-header .nav.open{display:flex}
  .site-header .nav a{padding:10px 12px}
  .site-header .menu-toggle{display:block}
  .site-header .lang-switch{margin-left:auto}
}
@media(max-width:520px){html body[data-page] .site-header .header-inner{height:96px;gap:12px}html body[data-page] .site-header .brand img{width:56px;height:56px}.site-header .brand-word{font-size:30px}.site-header .nav{top:96px}}

/* ---------------- Product bar: the labs' own navigation ---------------- */
.product-rail{background:#fafafa;border-bottom:1px solid #e0e0e0}
.product-rail>.container{min-height:52px;gap:18px;justify-content:flex-start}
.product-rail .asp-rail-home{flex:none;font-size:13px;font-weight:700;color:#000;padding-right:16px;border-right:1px solid #e0e0e0;white-space:nowrap}
.product-rail .asp-rail-home:hover{opacity:.75}
.product-rail nav a{font-size:13px;font-weight:500;color:#737373;padding:7px 12px;border-radius:6px}
.product-rail nav a:hover{color:#000;background:rgba(0,0,0,.04)}
.product-rail nav a[aria-current=page]{color:#000;background:rgba(0,0,0,.07)}
.product-rail .asp-rail-extra{margin-left:auto;display:flex;align-items:center;gap:6px;flex:none}
.product-rail .asp-rail-extra a{font-size:13px;font-weight:500;color:#737373;padding:7px 12px;border-radius:6px;white-space:nowrap}
.product-rail .asp-rail-extra a:hover{color:#000;background:rgba(0,0,0,.04)}
.product-rail .asp-rail-extra a[aria-current=page]{color:#000;background:rgba(0,0,0,.07)}
.product-rail .asp-rail-extra a.asp-rail-cta{color:#000;border:1px solid #e0e0e0;background:#fff}
.product-rail .asp-rail-extra a.asp-rail-cta:hover{border-color:#000}
@media(max-width:900px){
  .product-rail>.container{flex-wrap:wrap;gap:4px 10px;padding:8px 0}
  .product-rail .asp-rail-home{border-right:0;padding-right:0;width:100%}
  .product-rail nav{width:100%}
  .product-rail .asp-rail-extra{margin-left:0}
}

/* ---------------- Footer (same as the main site) ---------------- */
.site-footer.asp-site-footer{background:#000;color:#fefefe;border-top:1px solid rgba(0,0,0,.1);padding:0;margin-top:0}
.asp-footer-inner{max-width:1280px;margin:0 auto;padding:64px 32px}
.asp-footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
.asp-footer-title{font-size:14px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:rgba(254,254,254,.6);margin:0 0 12px}
.asp-footer-tagline{font-size:16px;font-weight:500;line-height:1.35;color:#fefefe;margin:0;max-width:20rem}
.asp-footer-meta{font-size:14px;color:rgba(254,254,254,.6);margin:6px 0 0}
.asp-footer-grid>div>.asp-footer-meta:first-of-type{margin-top:16px}
.asp-footer-links{display:flex;flex-direction:column;gap:8px}
.asp-footer-links a,.asp-footer-links span{font-size:14px;color:rgba(254,254,254,.7);text-decoration:none;line-height:1.5}
.asp-footer-links a:hover{color:#fefefe}
.asp-footer-bottom{margin-top:40px;padding-top:24px;border-top:1px solid rgba(254,254,254,.1);text-align:center}
.asp-footer-bottom p{margin:0;font-size:12px;color:rgba(254,254,254,.4)}
.asp-footer-bottom .asp-version{margin-top:6px;font:11px ui-monospace,SFMono-Regular,Menlo,monospace;color:rgba(254,254,254,.3)}
@media(max-width:768px){.asp-footer-inner{padding:48px 16px}.asp-footer-grid{grid-template-columns:1fr;gap:32px}}

/* Readability on dark containers (graphite palette): secondary text stays light here */
.custom-section :is(p,small,time,li,.eyebrow),.custom-section span:not(.button span):not(a span),
.fd-panel :is(p,small,time,li,label,dt),.fd-panel span:not(.button span):not(button span),
.fd-readings :is(p,small,time,span){color:#a9adb3}
html body .custom-section .eyebrow,html body .fd-panel .tiny-note,html body .fd-alarm-name span,
html body[data-page=fault] .fault-workspace small span{color:#a9adb3}
/* Readability on light areas: hints and notes beside the 3D views */
html body :is(.spatial-help span,.scene-instruction span,.collection-heading p,.collection-note span,#orbital-orbit-detail,.capacity-scene-note,.export-row small span){color:#5d6066}
html body .capacity-status.example{color:#76592b}
html body #orbital-orbit-detail{color:#5d6066!important}
/* Captions, hints and inactive view tabs inside the dark 3D stages */
html body :is(.studio-stage,.tower-stage,.operations-stage,.fault-stage,.collection-scene,.hero-art) :is(.preview-caption,.preview-hint),
html body :is(.studio-stage,.tower-stage,.operations-stage,.fault-stage,.stage-top) button[aria-pressed=false],
html body :is(.studio-stage,.tower-stage,.operations-stage,.fault-stage,.stage-top) button[aria-pressed=false] span{color:#a9adb3}
/* Same page grid as aspartners.io: 1,216 px content, 32/24/16 px side margins (Tailwind max-w-7xl + px-8/6/4) */
html body .container,html body[data-page] .container{width:min(1216px,calc(100% - 64px))}
@media(max-width:1023px){html body .container,html body[data-page] .container{width:calc(100% - 48px)}}
@media(max-width:639px){html body .container,html body[data-page] .container{width:calc(100% - 32px)}}

/* ---------------- One header and lab menu for every ASP Telecom Labs page ---------------- */
/* Same header as the [data-page] pages, for labs whose <body> has no data-page attribute (Labs 06 and 07). */
html body .site-header .header-inner{height:96px;gap:24px}
html body .site-header .brand img{width:64px;height:64px;background:none;border-radius:0}
@media(max-width:520px){html body .site-header .header-inner{height:96px;gap:12px}html body .site-header .brand img{width:56px;height:56px}}
/* Every lab tab stays visible in the lab menu: a grid on phones and tablets, its own row on small laptops,
   tighter spacing on mid-size screens. */
@media(max-width:900px){
  html body .product-rail nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;overflow:visible;width:100%}
  html body .product-rail nav a{display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;line-height:1.25;min-height:40px;padding:6px 6px;background:#fff;border:1px solid #e6e6e6;color:#4d4d4d;font-size:13px}
  html body .product-rail nav a:hover{border-color:#bdbdbd;color:#000}
}
@media(max-width:359px){html body .product-rail nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:901px) and (max-width:1240px){
  html body .product-rail>.container{gap:10px}
  html body .product-rail .asp-rail-home{padding-right:10px}
  html body .product-rail nav{gap:0}
  html body .product-rail nav a{padding:7px 7px}
  html body .product-rail .asp-rail-extra a{padding:7px 8px}
}
@media(min-width:901px) and (max-width:1120px){
  html body .product-rail>.container{flex-wrap:wrap;row-gap:2px;padding:6px 0}
  html body .product-rail .asp-rail-home{border-right:0}
  html body .product-rail nav{order:3;width:100%;flex:1 1 100%;justify-content:space-between;overflow:visible}
}

/* Lab pages: invitation above the footer and a one-time prompt after a download */
.asp-lab-cta{background:#15191c;color:#f4f5f6;border-top:1px solid rgba(255,255,255,.08);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.asp-lab-cta-inner{max-width:1280px;margin:0 auto;padding:56px 24px;display:flex;gap:32px;align-items:center;justify-content:space-between}
.asp-lab-cta-eyebrow{margin:0 0 10px;font:600 12px/1.4 ui-monospace,Menlo,monospace;letter-spacing:.12em;text-transform:uppercase;color:#b4d38b}
.asp-lab-cta h2{margin:0 0 10px;font-size:clamp(22px,2.6vw,30px);line-height:1.2;font-weight:650;letter-spacing:-.5px;color:#f4f5f6;max-width:640px}
.asp-lab-cta p{margin:0;color:#b9bcc0;font-size:16px;line-height:1.6;max-width:620px}
.asp-lab-cta-actions{display:flex;gap:12px;flex-wrap:wrap;flex-shrink:0}
.asp-lab-cta-actions a{display:inline-flex;align-items:center;min-height:46px;padding:0 22px;border-radius:999px;font-weight:600;font-size:15px;text-decoration:none;transition:background .2s,border-color .2s}
.asp-lab-cta-primary{background:#f4f5f6;color:#15191c}.asp-lab-cta-primary:hover{background:#b4d38b}
.asp-lab-cta-secondary{border:1px solid rgba(255,255,255,.28);color:#f4f5f6}.asp-lab-cta-secondary:hover{border-color:#f4f5f6}
.asp-lab-cta a:focus-visible,.asp-download-toast a:focus-visible,.asp-download-toast button:focus-visible{outline:2px solid #b4d38b;outline-offset:3px}
@media (max-width:760px){.asp-lab-cta-inner{flex-direction:column;align-items:flex-start;padding:40px 16px}.asp-lab-cta-actions{width:100%}.asp-lab-cta-actions a{flex:1;justify-content:center}}
.asp-download-toast{position:fixed;z-index:2000;right:20px;bottom:20px;max-width:360px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:16px 44px 16px 18px;background:#15191c;color:#f4f5f6;border:1px solid rgba(255,255,255,.14);border-radius:14px;box-shadow:0 18px 40px rgba(0,0,0,.35);font:15px/1.45 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;animation:asp-toast-in .35s ease-out;transition:opacity .35s,transform .35s}
.asp-download-toast p{margin:0;flex-basis:100%}
.asp-download-toast a{color:#b4d38b;font-weight:600;text-decoration:none}
.asp-download-toast button{position:absolute;top:8px;right:8px;width:32px;height:32px;border:0;background:none;color:#b9bcc0;font-size:20px;cursor:pointer;border-radius:8px}
.asp-download-toast.is-leaving{opacity:0;transform:translateY(8px)}
@keyframes asp-toast-in{from{opacity:0;transform:translateY(8px)}}
@media (max-width:520px){.asp-download-toast{left:12px;right:12px;bottom:12px;max-width:none}}
@media (prefers-reduced-motion:reduce){.asp-download-toast{animation:none;transition:none}}

/* Readability and contrast (audit fixes): WCAG AA contrast for small text; legible body text on phones */
html body .site-header .lang-switch button:not([aria-pressed="true"]){color:#5d6065}
html body .asp-footer-bottom p,html body .asp-footer-bottom p span{color:#9a9a9a}
html body .asp-footer-bottom .asp-version{color:#8a8a8a}
html body .learning-steps .step-number{color:#55585d}
@media (max-width:600px){
 html body .telecom-card-body>p,html body .telecom-custom .custom-section p:not(.eyebrow),html body .telecom-methods p:not(.eyebrow),html body .collection-heading>p{font-size:14px;line-height:1.55}
 html body .telecom-scope p,html body .experiment-link{font-size:12px}
}
html body .learning-steps .step-number{opacity:1;font-size:10px}

/* Labs landing: suggested route with explored ticks (stored on this device only) */
.asp-route{margin:-6px 0 30px}
.asp-route-label{margin:0 0 12px;font:600 11px/1.4 ui-monospace,Menlo,monospace;letter-spacing:.12em;text-transform:uppercase;color:#5d6065}
.asp-route-count{margin-left:10px;color:#3f6b25;letter-spacing:.06em}
.asp-route ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;counter-reset:none}
.asp-route li{position:relative}
.asp-route li+li::before{content:"";position:absolute;left:-8px;top:50%;width:8px;height:1px;background:#c9cccf}
.asp-route a{display:flex;align-items:center;gap:9px;height:100%;min-height:46px;padding:8px 12px;border:1px solid #dbdcdd;border-radius:12px;background:#fff;color:#15191c;text-decoration:none;font-size:13.5px;font-weight:550;line-height:1.25;transition:border-color .2s,background .2s}
.asp-route a:hover{border-color:#15191c}
.asp-route-n{flex-shrink:0;display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#f0f1f2;color:#55585d;font:600 11px/1 ui-monospace,Menlo,monospace}
.asp-route li.is-explored .asp-route-n{background:#b4d38b;color:#15191c;font-size:13px}
.asp-route li.is-next a{border-color:#15191c;box-shadow:inset 0 0 0 1px #15191c}
.asp-route a:focus-visible{outline:2px solid #15191c;outline-offset:2px}
.asp-explored-chip{margin:0 auto 0 -8px;padding:3px 9px;border-radius:999px;background:rgba(180,211,139,.18);color:#d9ecbf;font:600 11px/1.4 Inter,-apple-system,sans-serif;letter-spacing:.02em}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:1100px){.asp-route ol{grid-template-columns:repeat(4,minmax(0,1fr))}.asp-route li::before{display:none}}
@media (max-width:600px){.asp-route ol{grid-template-columns:repeat(2,minmax(0,1fr))}.asp-route a{font-size:13px;padding:8px 10px}}

/* Lab pages: next step on the suggested route */
.asp-route-next{background:#f4f5f6;border-top:1px solid #e2e4e6;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.asp-route-next-inner{max-width:1280px;margin:0 auto;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.asp-route-next p{margin:0;font:600 11px/1.4 ui-monospace,Menlo,monospace;letter-spacing:.12em;text-transform:uppercase;color:#55585d}
.asp-route-next a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 20px;border-radius:999px;background:#15191c;color:#fff;font-weight:600;font-size:15px;text-decoration:none}
.asp-route-next a:hover{background:#2c3135}
.asp-route-next a:focus-visible{outline:2px solid #15191c;outline-offset:3px}
@media (max-width:600px){.asp-route-next-inner{padding:18px 16px}.asp-route-next a{width:100%;justify-content:center}}
