:root{
  --page:#f2f2f7; --card:#e9e9ef; --row:#ffffff; --raised:#ffffff;
  --row-hover:#f5f5fa;
  --us-bg:#f0f6fe; --us-hover:#e5effd; --us-head:#e0ecfc; --us-head-text:#004699;
  --label:rgba(0,0,0,.88); --label2:rgba(0,0,0,.62); --label3:rgba(0,0,0,.44);
  --sep:rgba(0,0,0,.11); --sep2:rgba(0,0,0,.07); --fill:rgba(0,0,0,.065); --fill2:rgba(0,0,0,.038);
  --accent:#007aff; --on-accent:#ffffff; --accent-fill:#0062cc; --link:#0057b8; --focus:#0057b8;
  --accent-soft:rgba(0,105,217,.11); --accent-border:rgba(0,105,217,.28);
  --chart-quiet:#0c7489; --chart-balanced:#0057b8; --chart-perf:#b84c00;
  --teal:#0c7489; --green:#1e8e3e; --orange:#b84c00; --red:#d93025; --yellow:#b07800; --purple:#8a3ab9; --pink:#d81b60; --blue:#0057b8;
  --bar:rgba(242,242,247,.84);
  --card-shadow:0 1px 2px rgba(0,0,0,.04), 0 6px 20px -10px rgba(0,0,0,.10);
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","Segoe UI",Roboto,sans-serif;
  --display:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue","Segoe UI",Roboto,sans-serif;
  --round:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --page:#18181a; --card:#222226; --row:#26262a; --raised:#303036;
  --row-hover:#2e2e34;
  --us-bg:#212c3b; --us-hover:#273548; --us-head:#21324a; --us-head-text:#8cc8ff;
  --label:rgba(255,255,255,.91); --label2:rgba(255,255,255,.68); --label3:rgba(255,255,255,.46);
  --sep:rgba(255,255,255,.12); --sep2:rgba(255,255,255,.07); --fill:rgba(255,255,255,.09); --fill2:rgba(255,255,255,.05);
  --accent:#0a84ff; --accent-fill:#0066d6; --link:#74bdff; --focus:#74bdff;
  --accent-soft:rgba(10,132,255,.18); --accent-border:rgba(116,189,255,.34);
  --chart-quiet:#4fd1e8; --chart-balanced:#6cb8ff; --chart-perf:#ffa93a;
  --teal:#4fd1e8; --green:#32d74b; --orange:#ffa93a; --red:#ff453a; --yellow:#ffd60a; --purple:#bf5af2; --pink:#ff375f; --blue:#6cb8ff;
  --bar:rgba(24,24,26,.84);
  --card-shadow:0 1px 2px rgba(0,0,0,.25), 0 12px 28px -14px rgba(0,0,0,.55);
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --page:#18181a; --card:#222226; --row:#26262a; --raised:#303036;
  --row-hover:#2e2e34;
  --us-bg:#212c3b; --us-hover:#273548; --us-head:#21324a; --us-head-text:#8cc8ff;
  --label:rgba(255,255,255,.91); --label2:rgba(255,255,255,.68); --label3:rgba(255,255,255,.46);
  --sep:rgba(255,255,255,.12); --sep2:rgba(255,255,255,.07); --fill:rgba(255,255,255,.09); --fill2:rgba(255,255,255,.05);
  --accent:#0a84ff; --accent-fill:#0066d6; --link:#74bdff; --focus:#74bdff;
  --accent-soft:rgba(10,132,255,.18); --accent-border:rgba(116,189,255,.34);
  --chart-quiet:#4fd1e8; --chart-balanced:#6cb8ff; --chart-perf:#ffa93a;
  --teal:#4fd1e8; --green:#32d74b; --orange:#ffa93a; --red:#ff453a; --yellow:#ffd60a; --purple:#bf5af2; --pink:#ff375f; --blue:#6cb8ff;
  --bar:rgba(24,24,26,.84);
  --card-shadow:0 1px 2px rgba(0,0,0,.25), 0 12px 28px -14px rgba(0,0,0,.55);
  color-scheme:dark;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:76px;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--page);color:var(--label);font:16px/1.68 var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
::selection{background:color-mix(in srgb,var(--accent) 28%,transparent)}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
:focus-visible{outline:2.5px solid var(--focus);outline-offset:2px;border-radius:6px}
h1,h2,h3{margin:0;font-family:var(--display);text-wrap:balance;color:var(--label)}
.wrap{width:min(1180px,100% - 48px);margin-inline:auto}
.num{font-family:var(--round);font-variant-numeric:tabular-nums}

/* Top navigation bar */
.topbar{position:sticky;top:0;z-index:30;background:var(--bar);backdrop-filter:saturate(1.8) blur(20px);-webkit-backdrop-filter:saturate(1.8) blur(20px);border-bottom:.5px solid var(--sep)}
.topbar .wrap{display:flex;align-items:center;gap:18px;height:52px}
.brand{display:flex;align-items:center;gap:8px;color:var(--label);font-weight:600;font-size:15px;flex:none}
.brand:hover{text-decoration:none}
.brand .mark{width:26px;height:26px;border-radius:7px;background:linear-gradient(180deg,#3a3a3c,#1c1c1e);color:#fff;display:grid;place-items:center}
.brand .mark svg{width:17px;height:17px}
.topbar nav{display:flex;align-items:center;gap:18px;margin-left:auto;font-size:13px}
.topbar nav a{color:var(--label2);transition:color .14s ease;white-space:nowrap}
.topbar nav a:hover{color:var(--label);text-decoration:none}
.topbar nav a[aria-current="page"]{color:var(--label);font-weight:600}
.topbar nav a.dl{background:var(--accent-fill);color:var(--on-accent);font-weight:600;padding:5px 12px;border-radius:999px;line-height:1.2}
.topbar nav a.dl:hover{background:color-mix(in srgb,var(--accent-fill) 86%,#000);color:var(--on-accent)}

/* Reading progress bar */
.progress{position:fixed;top:52px;left:0;right:0;height:2px;z-index:29;pointer-events:none;background:transparent}
.progress i{display:block;height:100%;width:0;background:var(--accent);transition:width .08s linear}

/* Article shell */
article{width:min(760px,100% - 48px);margin:0 auto;padding:44px 0 84px}
article.wide{width:min(1060px,100% - 48px)}
article.wide > p,
article.wide > ul:not(.posts):not(.more-grid):not(.sources),
article.wide > ol,
article.wide > h2,
article.wide > h3,
article.wide .hero-head,
article.wide .toc,
article.wide .faq,
article.wide .cta-card,
article.wide .note{max-width:760px}
article.wide .index-hero{max-width:none}

/* Inline prose links always underlined for WCAG AA non-color differentiation */
article > p a,
article > ul:not(.posts):not(.more-grid) a,
article > ol a,
.card a,
.disclosure a,
.sources a,
.faq details p a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,var(--link) 62%,transparent)}
article > p a:hover,
article > ul:not(.posts):not(.more-grid) a:hover,
article > ol a:hover,
.card a:hover,
.disclosure a:hover,
.sources a:hover,
.faq details p a:hover{text-decoration-color:currentColor;text-decoration-thickness:1.5px}

/* Editorial header */
.hero-head{padding-bottom:28px;margin-bottom:32px;border-bottom:.5px solid var(--sep)}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;color:var(--label2);margin-bottom:16px}
.crumbs a{color:var(--label2)}
.crumbs a:hover{color:var(--label);text-decoration:none}
.crumbs .sep{opacity:.5}
.pill{display:inline-flex;align-items:center;font:600 11px/1 var(--sans);letter-spacing:.03em;text-transform:uppercase;padding:4px 9px;border-radius:999px;background:var(--accent-soft);color:var(--link)}
article h1{font-size:clamp(30px,4.5vw,44px);line-height:1.09;letter-spacing:-.028em;font-weight:700}
.dek{font-size:clamp(17px,1.7vw,19px);line-height:1.55;color:var(--label2);margin:14px 0 0;max-width:64ch}
.meta{font-size:13px;color:var(--label2);margin:18px 0 0}

/* On this page (TOC) */
.toc{background:var(--row);border:.5px solid var(--sep);border-radius:12px;padding:16px 20px;margin:0 0 34px;box-shadow:var(--card-shadow)}
.toc-title{font:600 12px/1 var(--sans);letter-spacing:.04em;text-transform:uppercase;color:var(--label2);margin:0 0 10px}
.toc ol{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:7px 18px;counter-reset:toc}
.toc li{margin:0;counter-increment:toc;display:flex;align-items:baseline;gap:8px;font-size:14px;line-height:1.4}
.toc li::before{content:counter(toc);font:600 11px/1 var(--round);color:var(--label2);background:var(--fill);min-width:20px;height:20px;border-radius:999px;display:inline-grid;place-items:center;flex:none}
.toc a{color:var(--label)}
.toc a:hover{color:var(--link);text-decoration:underline}

/* Prose typography */
article h2{font-size:clamp(22px,2.5vw,26px);line-height:1.22;letter-spacing:-.018em;font-weight:700;margin:48px 0 14px;padding-top:24px;border-top:.5px solid var(--sep2)}
article h2.first-section{margin-top:32px;padding-top:0;border-top:0}
article h3{font-size:18px;line-height:1.3;letter-spacing:-.01em;font-weight:600;margin:28px 0 8px}
article p,article ul,article ol{margin:0 0 16px}
article ul,article ol{padding-left:22px}
article li{margin-bottom:8px}
article li::marker{color:var(--label2)}
strong{font-weight:600;color:var(--label)}
.note{font-size:13px;color:var(--label2);line-height:1.55}
.disclosure{background:var(--card);border:.5px solid var(--sep);border-radius:10px;padding:12px 16px;font-size:14px;line-height:1.55;color:var(--label2);margin:0 0 24px}

/* Code blocks */
pre{background:var(--row);border:.5px solid var(--sep);border-radius:10px;padding:14px 16px;overflow-x:auto;margin:0 0 18px;box-shadow:var(--card-shadow)}
code{font:13.5px/1.55 var(--mono);color:var(--label)}
p code,li code{background:var(--fill);padding:2px 6px;border-radius:5px;font-size:.88em}

/* Inset cards, mode lists, charts */
.card{background:var(--row);border:.5px solid var(--sep);border-radius:14px;padding:22px 24px;margin:24px 0;box-shadow:var(--card-shadow)}
.card p:last-child,.card ul:last-child,.card ol:last-child{margin-bottom:0}
.modes{display:grid;gap:1px;background:var(--sep);border:.5px solid var(--sep);border-radius:14px;overflow:hidden;margin:20px 0 26px;box-shadow:var(--card-shadow)}
.modes div{background:var(--row);padding:15px 18px}
.modes b{display:block;font-weight:600;margin-bottom:3px;color:var(--label)}
.modes span{color:var(--label2);font-size:14.5px;line-height:1.5}
.legend{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:13.5px;font-weight:500;color:var(--label);margin-bottom:12px}
.legend span{display:inline-flex;align-items:center;gap:8px}
.legend svg{width:28px;height:12px;overflow:visible;flex:none}
.chart{display:block;width:100%;height:auto;font:15px/1 var(--sans)}
.chart text{fill:var(--label2)}
.chart .grid{stroke:var(--sep);stroke-width:1}
.chart polyline{fill:none;stroke:currentColor;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.chart .series-quiet polyline{stroke-dasharray:5 5}
.chart .series-perf polyline{stroke-dasharray:12 5}
.chart .series-quiet circle{fill:var(--row);stroke:currentColor;stroke-width:2.5}
.chart .series-balanced circle{fill:currentColor;stroke:var(--row);stroke-width:1.5}
.chart .series-perf rect{fill:var(--row);stroke:currentColor;stroke-width:2.5}

/* Tables inside rounded macOS card surface */
.table-shell{position:relative;margin:20px 0 14px}
.table-hint{display:none;align-items:center;justify-content:flex-end;gap:6px;font-size:12px;font-weight:500;color:var(--label2);margin:0 0 8px}
.table-shell.has-overflow .table-hint{display:flex}
.table-wrap{overflow:auto;max-height:min(76vh,780px);-webkit-overflow-scrolling:touch;background:var(--row);border:.5px solid var(--sep);border-radius:14px;box-shadow:var(--card-shadow);position:relative}
.table-wrap:focus-visible{outline:2.5px solid var(--focus);outline-offset:2px}
.table-shell.has-fade::after{content:"";position:absolute;top:28px;right:1px;bottom:1px;width:20px;pointer-events:none;border-radius:0 13px 13px 0;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--row) 88%,transparent));z-index:5}
.card .table-shell{margin:16px 0 0}
.card .table-wrap{margin:0;max-height:none;box-shadow:none;background:transparent;border:0;border-radius:0}
.card .table-shell.has-fade::after{top:26px;right:0;bottom:0;border-radius:0}
table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;line-height:1.5}
caption{caption-side:top;text-align:left;padding:10px 14px;font-size:12.5px;font-weight:500;color:var(--label2);background:var(--card);border-bottom:.5px solid var(--sep)}
th,td{text-align:left;padding:11px 12px;border-top:.5px solid var(--sep);vertical-align:top;overflow-wrap:break-word}
thead th{position:sticky;top:0;z-index:3;border-top:0;border-bottom:.5px solid var(--sep);background:var(--card);color:var(--label);font-weight:600;font-size:12.5px;letter-spacing:-.005em}
tbody tr:first-child th,tbody tr:first-child td{border-top:0}
tbody th{font-weight:600;color:var(--label2);background:var(--row)}
tbody tr:hover td,tbody tr:hover th{background:var(--row-hover)}
.cmp{font-size:13px;width:100%;min-width:780px}
.cmp tbody th{position:sticky;left:0;z-index:2;width:140px;min-width:128px;border-right:.5px solid var(--sep);background:var(--row)}
.cmp thead th:first-child{position:sticky;left:0;top:0;z-index:4;border-right:.5px solid var(--sep);background:var(--card)}
.cmp tbody tr:hover th{background:var(--row-hover)}
.cmp .us{background:var(--us-bg)}
.cmp thead th.us{background:var(--us-head);color:var(--us-head-text);box-shadow:inset 0 2.5px 0 var(--accent)}
.cmp tbody tr:hover td.us{background:var(--us-hover)}
.card table{margin-top:0}
.card thead th{position:static;background:transparent;color:var(--label2);padding-top:8px}
.card th,.card td{padding:9px 10px 9px 0}

/* Checklist with crisp check badges */
.checklist{list-style:none;padding:0;margin:0 0 18px}
.checklist li{padding:0 0 0 32px;position:relative;margin-bottom:12px}
.checklist li:last-child{margin-bottom:0}
.checklist li::before{content:"✓";position:absolute;left:0;top:.18em;width:20px;height:20px;border-radius:999px;background:var(--accent-soft);color:var(--link);font:700 12px/20px var(--sans);text-align:center}

/* Grouped FAQ accordion (inset focus ring so overflow:hidden never clips) */
.faq{background:var(--row);border:.5px solid var(--sep);border-radius:14px;overflow:hidden;margin:16px 0 24px;box-shadow:var(--card-shadow)}
.faq details{position:relative;border:0;padding:0}
.faq details + details::before{content:"";position:absolute;top:0;left:18px;right:0;height:.5px;background:var(--sep)}
.faq summary{list-style:none;cursor:pointer;padding:15px 44px 15px 18px;font-weight:600;font-size:15px;line-height:1.4;position:relative;color:var(--label);transition:background .12s ease}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{background:var(--row-hover)}
.faq summary:focus-visible{outline:2.5px solid var(--focus);outline-offset:-3px;border-radius:6px}
.faq summary::after{content:"";position:absolute;right:20px;top:50%;width:7px;height:7px;border-right:1.7px solid var(--label2);border-bottom:1.7px solid var(--label2);transform:translateY(-70%) rotate(45deg);transition:transform .2s ease}
.faq details[open] summary::after{transform:translateY(-30%) rotate(-135deg)}
.faq details p{margin:0;padding:0 18px 16px;font-size:14.5px;line-height:1.62;color:var(--label2)}

/* Product CTA callout card */
.cta-card{background:var(--row);border:.5px solid var(--accent-border);border-radius:16px;padding:22px 24px;margin:34px 0 28px;box-shadow:var(--card-shadow);display:grid;gap:14px}
.cta-card-head{display:flex;align-items:center;gap:12px}
.cta-card-head .mark{width:34px;height:34px;border-radius:9px;background:linear-gradient(180deg,#3a3a3c,#1c1c1e);color:#fff;display:grid;place-items:center;flex:none}
.cta-card-head .mark svg{width:20px;height:20px}
.cta-card h3{margin:0;font-size:17px;font-weight:700;letter-spacing:-.01em}
.cta-card p{margin:0;font-size:14.5px;line-height:1.55;color:var(--label2)}
.cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:2px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font:500 14px/1 var(--sans);padding:10px 16px;border-radius:9px;border:.5px solid var(--sep);background:var(--raised);color:var(--label);box-shadow:0 .5px 1px rgba(0,0,0,.08);transition:background .14s ease,transform .12s ease}
.btn:hover{text-decoration:none;background:color-mix(in srgb,var(--raised) 92%,var(--label))}
.btn.prominent{background:var(--accent-fill);border-color:transparent;color:var(--on-accent)}
.btn.prominent:hover{background:color-mix(in srgb,var(--accent-fill) 86%,#000)}

/* Continue reading cards */
.more-grid{list-style:none;padding:0;margin:16px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.more-grid li{margin:0}
.more-grid a{display:flex;flex-direction:column;justify-content:space-between;height:100%;padding:16px 38px 16px 18px;border-radius:12px;background:var(--row);border:.5px solid var(--sep);color:var(--label);position:relative;box-shadow:var(--card-shadow);transition:border-color .15s ease,transform .15s ease}
.more-grid a::after{content:"";position:absolute;right:16px;top:50%;width:7px;height:7px;border-right:1.7px solid var(--label3);border-bottom:1.7px solid var(--label3);transform:translateY(-50%) rotate(-45deg);transition:border-color .15s ease,transform .15s ease}
.more-grid a:hover{text-decoration:none;border-color:var(--accent-border);transform:translateY(-1px)}
.more-grid a:hover::after{border-color:var(--link);transform:translate(2px,-50%) rotate(-45deg)}
.more-grid .tag{font:600 10.5px/1 var(--sans);letter-spacing:.04em;text-transform:uppercase;color:var(--label2);margin-bottom:6px}
.more-grid strong{font-size:14.5px;line-height:1.35;font-weight:600}
.more-grid a:hover strong{color:var(--link)}

/* Guides Index page (/blog/) */
.index-hero{padding-bottom:28px;margin-bottom:32px;border-bottom:.5px solid var(--sep)}
.featured-card{display:block;background:var(--row);border:.5px solid var(--accent-border);border-radius:16px;padding:24px 26px;margin:0 0 36px;color:inherit;box-shadow:var(--card-shadow);transition:border-color .16s ease,transform .16s ease;position:relative}
.featured-card:hover{border-color:var(--accent);transform:translateY(-2px)}
.featured-card .pill{margin-bottom:12px}
.featured-card h2{border:0;padding:0;margin:0 0 8px;font-size:clamp(22px,2.8vw,28px)}
.featured-card h2 a{color:var(--label);text-decoration:none}
.featured-card h2 a::after{content:"";position:absolute;inset:0;border-radius:16px}
.featured-card h2 a:focus-visible{outline:none}
.featured-card:has(h2 a:focus-visible){outline:2.5px solid var(--focus);outline-offset:2px}
.featured-card:hover h2 a{color:var(--link)}
.featured-card p{margin:0 0 12px;color:var(--label2);font-size:15.5px;max-width:64ch}
.featured-card .meta{margin:0;font-size:13px;color:var(--label2);display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.featured-card .read-more{color:var(--link);font-weight:600;margin-left:auto}

.posts{list-style:none;padding:0;margin:16px 0 36px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.posts li{margin:0}
.posts .post-card{display:flex;flex-direction:column;height:100%;background:var(--row);border:.5px solid var(--sep);border-radius:14px;padding:20px 22px;color:inherit;box-shadow:var(--card-shadow);transition:border-color .15s ease,transform .15s ease;position:relative}
.posts .post-card:hover{border-color:var(--accent-border);transform:translateY(-2px)}
.posts .tag{font:600 11px/1 var(--sans);letter-spacing:.03em;text-transform:uppercase;color:var(--link);margin-bottom:8px}
.posts h3{font-size:17.5px;line-height:1.3;margin:0 0 8px;font-weight:600}
.posts h3 a{color:var(--label);text-decoration:none}
.posts h3 a::after{content:"";position:absolute;inset:0;border-radius:14px}
.posts h3 a:focus-visible{outline:none}
.posts .post-card:has(h3 a:focus-visible){outline:2.5px solid var(--focus);outline-offset:2px}
.posts .post-card:hover h3 a{color:var(--link)}
.posts p{margin:0 0 14px;color:var(--label2);font-size:14px;line-height:1.55;flex:1}
.posts .meta{margin:0;font-size:12.5px;color:var(--label2);padding-top:12px;border-top:.5px solid var(--sep2)}

/* Sources list */
.sources{list-style:none;margin:12px 0 0;background:var(--card);border:.5px solid var(--sep);border-radius:12px;padding:14px 18px;max-width:760px}
.sources li{font-size:13.5px;color:var(--label2);margin-bottom:6px;line-height:1.5}
.sources li:last-child{margin-bottom:0}

/* Footer */
footer{border-top:.5px solid var(--sep);font-size:12.5px;color:var(--label2)}
footer .wrap{display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;padding-block:28px 42px}
footer nav{display:flex;flex-wrap:wrap;gap:18px}
footer a{color:var(--label2)}
footer a:hover{color:var(--label)}

@media (max-width:740px){
  .wrap,article,article.wide{width:calc(100% - 32px)}
  article{padding:32px 0 64px}
  .more-grid,.posts{grid-template-columns:minmax(0,1fr)}
  .toc ol{grid-template-columns:minmax(0,1fr)}
  .cta-card,.card{padding:18px}
  .cmp tbody th{width:116px;min-width:112px;font-size:12.5px}
}
@media (max-width:600px){
  .topbar .wrap{gap:10px}
  .topbar nav a:not(.keep){display:none}
  .topbar nav{gap:10px;font-size:12.5px}
  .topbar nav a.dl{padding:5px 10px}
  .brand{font-size:14px;gap:6px}
  .brand .mark{width:24px;height:24px}
  .chart .minor{display:none}
  .chart{font-size:22px}
}
@media (forced-colors:active){
  :focus-visible,
  .faq summary:focus-visible,
  .featured-card:has(h2 a:focus-visible),
  .posts .post-card:has(h3 a:focus-visible){outline:2.5px solid Highlight}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}
