/* AS Apps Studio guides (guides/*.html). Same dark studio identity as the homepage
   (assets/home/home.css): tokens copied from its :root, Inter for text, Instrument Serif
   italic for accents. The article column is about 68 characters wide. */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg:#07080D;
  --bg-2:#0C0E16;
  --surface:#10131C;
  --surface-2:#161A26;
  --line:rgba(255,255,255,.08);
  --line-2:rgba(255,255,255,.14);
  --text:#F4F5F8;
  --muted:#A6ACBA;
  --dim:#8A91A2;
  --brand-a:#5B8CFF;
  --brand-b:#A879FF;
  --brand:linear-gradient(120deg,var(--brand-a),var(--brand-b));
  --gutter:clamp(16px,5vw,64px);
  --max:1240px;
  --radius:18px;
  --serif:'Instrument Serif',ui-serif,Georgia,serif;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--sans);background:var(--bg);color:var(--text);line-height:1.65;
  overflow-x:hidden;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-size:17px}
img,svg,video{display:block;max-width:100%;height:auto}
a{color:#9DB8FF}
a:hover{color:#fff}
:focus-visible{outline:2px solid #fff;outline-offset:3px;border-radius:6px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;left:-9999px;top:8px;background:#fff;color:#000;padding:8px 12px;border-radius:8px;z-index:10}
.skip:focus{left:12px}

.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}

/* header */
.top{border-bottom:1px solid var(--line);background:rgba(7,8,13,.85);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px}
.top__logo img{height:26px;width:auto}
.top nav ul{display:flex;gap:20px;list-style:none;font-size:15px}
.top nav a{color:var(--muted);text-decoration:none}
.top nav a:hover,.top nav a[aria-current="page"]{color:var(--text)}

/* article */
.article{max-width:68ch;margin:0 auto;padding:40px 0 72px}
.crumbs{margin-bottom:22px;font-size:14px;color:var(--dim)}
.crumbs ol{display:flex;flex-wrap:wrap;gap:6px;list-style:none}
.crumbs li+li::before{content:"/";margin-right:6px;color:var(--dim)}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.article h1{font-size:clamp(30px,5.2vw,44px);line-height:1.12;letter-spacing:-.02em;font-weight:700;margin-bottom:20px}
.answer{font-size:19px;line-height:1.6;color:var(--text);background:var(--surface);
  border:1px solid var(--line);border-left:3px solid var(--brand-b);border-radius:var(--radius);padding:20px 22px;margin-bottom:12px}
.article h2{font-size:clamp(21px,3vw,25px);line-height:1.25;letter-spacing:-.01em;margin:44px 0 12px;font-weight:650}
.article h2 .n{font-family:var(--serif);font-style:italic;font-weight:400;color:var(--brand-b);margin-right:6px}
.article p{margin:0 0 16px;color:var(--muted)}
.article p strong{color:var(--text);font-weight:600}
.article ul,.article ol{margin:0 0 16px 22px;color:var(--muted)}
.article li{margin-bottom:8px}
.article code{font-family:ui-monospace,Menlo,monospace;font-size:.92em;background:var(--surface-2);padding:1px 6px;border-radius:6px;color:var(--text)}
.note{font-size:14px;color:var(--dim)!important}

.cta{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 8px}
.btn{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;border-radius:999px;text-decoration:none;font-weight:600;font-size:15px;border:1px solid var(--line-2);color:var(--text)}
.btn--primary{background:var(--brand);border-color:transparent;color:#fff}
.btn:hover{color:#fff;border-color:rgba(255,255,255,.3)}

.related{margin-top:12px}
.related ul{list-style:none;margin-left:0}
.related li{margin-bottom:10px}

/* demo frame: the copied demo keeps its own look; this only keeps it inside the column */
.demo-frame{margin:22px 0 26px;padding:24px 0 6px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.demo-frame__label{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);margin-bottom:14px}
.demo-frame__label b{color:var(--muted);font-weight:600}
.demo-frame .room,.demo-frame .dphone{max-width:100%}
.demo-frame .room{margin-left:auto;margin-right:auto}
.demo-frame .room__cap,.demo-frame .hero__cap{max-width:100%}
/* The simulated TV never wider than the article column (the figure is inside it). */
.demo-frame .tv{width:100%;max-width:100%;box-sizing:border-box}
.demo-frame .tv__grid,.demo-frame .room{min-width:0}

/* footer */
.foot{border-top:1px solid var(--line);padding:44px 0 56px;background:var(--bg-2)}
.foot__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px}
.foot h2{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);margin-bottom:12px}
.foot ul{list-style:none}
.foot li{margin-bottom:8px}
.foot a{color:var(--muted);text-decoration:none;font-size:15px}
.foot a:hover{color:#fff}
.foot p{color:var(--dim);font-size:14px;margin-top:12px}
.foot__copy{margin-top:36px;font-size:13px;color:var(--dim)}

@media (max-width:640px){
  .top nav ul{gap:14px;font-size:14px}
  .top nav li:nth-child(n+3){display:none}
  .foot__grid{grid-template-columns:1fr 1fr}
  .foot__grid>div:first-child{grid-column:1 / -1}
}

/* guides index */
.idx{list-style:none;margin:8px 0 0}
.idx li{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);margin-bottom:14px}
.idx a{display:block;padding:18px 20px;color:var(--text);text-decoration:none}
.idx a:hover{border-color:var(--line-2);background:var(--surface-2)}
.idx strong{display:block;font-size:18px;font-weight:600;margin-bottom:4px}
.idx span{color:var(--muted);font-size:15px}
