/* Shared reading layout. Keep LTR and RTL geometry identical. */
:root { --nav-width:260px; }
#sidebar { width:var(--nav-width); padding:20px 14px; scrollbar-gutter:stable; }
.layout {
  margin-inline-start:var(--nav-width);
  max-width:none;
  padding:30px clamp(24px,2.2vw,44px);
  grid-template-columns:minmax(0,1fr) 176px;
  gap:36px;
}
.layout>main { width:100%; max-width:1120px; justify-self:center; }
.layout--overview { display:block; }
.layout--overview>main { max-width:1280px; margin-inline:auto; }
html[data-page=audio-visualizer] .layout>main { max-width:none; }
.article-heading { margin-bottom:22px; }
.guide-page .article-heading,.guide-page .breadcrumb { width:100%; max-width:900px; margin-inline:auto; }
.article-body>section[aria-labelledby^="section-"] { max-width:900px; margin-inline:auto; }
.article-title-row { gap:14px; margin-bottom:12px; }
.article-title-row h1,.overview-heading h1 { font-size:30px; }
.article-title-row .category-art { width:46px!important; height:46px!important; border-radius:10px; }
.article-title-row .category-art svg { width:24px; height:24px; }
.breadcrumb { margin-bottom:22px; }
.lead { font-size:15px; }
.article-body section { margin:28px 0; }
.article-body h2 { font-size:21px; margin-bottom:12px; }
.article-body p { max-width:84ch; margin:12px 0; line-height:1.8; }
html[lang=ar] .article-body p { line-height:1.9; }
.guide-page main>.product-capture { max-width:720px; margin:24px auto 30px; }
.guide-page main>.product-capture img { height:auto; }
.toc { top:106px; font-size:12px; }
.toc>a { padding-block:6px; }
.nav-overview { font-size:13px; margin-bottom:12px; }
.nav-section summary { padding:9px 10px; }
.nav-section summary>.ui-icon { flex:0 0 14px; }
.nav-category-label>span { white-space:nowrap; }
#sidebar .nav-link { font-size:12px; padding:7px 10px; }
.sidebar-footer { margin-top:16px; }
.page-nav { margin-top:36px; }
@media(max-width:1250px) {
  .layout { grid-template-columns:minmax(0,1fr); padding-inline:28px; }
}
@media(max-width:800px) {
  #sidebar { width:260px; }
  .layout { margin:0; padding:24px 20px; }
  .article-title-row h1,.overview-heading h1 { font-size:27px; }
  .guide-page main>.product-capture { margin-block:20px 26px; }
}

.community-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px}.community-cards article{padding:16px;border:1px solid var(--line);border-radius:10px}.community-cards h3{margin:0 0 8px}.community-cards p{margin:0 0 14px}.community-actions{align-items:center}.sidebar-footer{display:grid;gap:14px}.landing>.community-callout{margin-top:48px}


.desktop-downloads{max-width:860px;margin:0 auto 42px;padding:22px 24px;text-align:center;scroll-margin-top:100px}
.desktop-downloads h2{font-size:22px;margin:0 0 16px}.download-os-tabs{display:flex;justify-content:center;gap:8px}.download-os-tabs [aria-pressed=true]{background:var(--text);color:var(--bg);border-color:var(--text)}
.download-os-panel[hidden]{display:none}.download-os-panel>p{line-height:1.8;color:var(--muted);margin:18px 0}.download-options{display:flex;justify-content:center;gap:12px}.download-options>a{display:flex;flex:1;flex-direction:column;align-items:center;gap:5px;padding:14px 16px;white-space:normal}.download-options strong{font-size:14px}.download-options small{font-size:12px;font-weight:400;line-height:1.6;color:var(--muted)}
.download-help{text-align:start;max-width:680px;margin:18px auto}.download-help summary{cursor:pointer;color:var(--text);font-weight:600}.download-help p,.download-help li{line-height:1.8;color:var(--muted)}.download-help li+li{margin-top:6px}.download-instructions{font-size:13px}.download-guide-link{display:inline-block;font-size:13px;margin-top:8px;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
@media(max-width:600px){.desktop-downloads{padding:16px 0}.download-options{flex-direction:column}.download-os-tabs>button{flex:1}.download-help{padding-inline:8px}}
/* One introduction joins the app story and the actual download choices. */
.home-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,.95fr);gap:56px;align-items:center;margin:30px 0 38px}
.home-intro .hero{margin:0;text-align:start}.home-intro .hero h1{font-size:clamp(34px,3.5vw,52px);line-height:1.12;max-width:620px;margin:16px 0}.home-intro .hero .lead{font-size:18px;margin-inline:0}.home-intro .hero-actions{justify-content:flex-start;margin-top:24px}
.home-intro .desktop-downloads{width:100%;min-width:0;margin:0;padding:24px;border-radius:18px;background:var(--surface);text-align:start}.download-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.download-heading h2{margin:0}.download-heading .download-version{font-size:12px;padding:4px 8px;background:var(--soft);border-radius:6px}.download-os-tabs{justify-content:flex-start}.download-os-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:1}.download-os-panel .download-button{width:100%;justify-content:center}.download-options{flex-direction:column}.download-options>a{align-items:flex-start}.download-options small{line-height:1.5}.download-help{margin:16px 0}.download-instructions{margin-bottom:0!important}.download-guide-link{margin-top:14px}
.platform-mark--windows{--platform-mark:url('/assets/platforms/windows.svg')}.platform-mark--macos{--platform-mark:url('/assets/platforms/apple.svg')}.platform-mark--linux{--platform-mark:url('/assets/platforms/linux.svg')}
.community-invitation{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px 0!important;border:0!important;background:transparent!important}.community-invitation h2{margin:10px 0}.community-invitation p{max-width:680px}.community-invitation-actions{display:grid;gap:16px;flex-shrink:0}.community-page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px}.community-page-heading h1{font-size:36px;margin:12px 0}.community-page .community-library{margin-top:30px}.community-page .community-library>h2{display:none}.catalog-card:target,.catalog-card[data-selected=true]{outline:2px solid var(--green);outline-offset:4px;scroll-margin-top:110px}
@media(max-width:1000px){.home-intro{gap:28px;grid-template-columns:minmax(0,1fr) minmax(330px,1fr)}}
@media(max-width:760px){.home-intro{display:block;margin-top:12px}.home-intro .hero{margin-bottom:26px}.home-intro .hero h1{font-size:38px}.home-intro .desktop-downloads{padding:20px}.community-invitation,.community-page-heading{display:block}.community-invitation-actions{margin-top:20px;justify-items:start}.community-page-heading>.secondary-button{margin-top:12px}}
.guide-control{color:var(--text);font-weight:650}.guide-path{display:inline-flex;align-items:center;flex-wrap:wrap;gap:3px 6px;max-width:100%;vertical-align:middle;margin:2px 3px;line-height:1.65}.guide-path-step{background:var(--soft);border-radius:5px;color:var(--text);font-size:.9em;font-weight:600;padding:1px 7px}.guide-path-arrow{color:var(--muted);font-size:18px}[dir=rtl] .guide-path-arrow{transform:scaleX(-1)}
.guide-value{display:inline-block;max-width:100%;overflow-wrap:anywhere;padding:1px 6px;background:var(--soft);color:var(--text);border-radius:4px;font-size:.88em}.guide-copy{display:inline-flex;align-items:center;gap:14px;max-width:100%;padding:8px 10px 8px 14px;background:var(--surface);border:1px solid var(--line);border-radius:8px;vertical-align:middle}.guide-copy code{min-width:0;overflow-wrap:anywhere;color:var(--text);font-size:13px;user-select:all}.guide-copy button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:32px;padding:5px 9px;color:var(--text);background:var(--soft);border:0;border-radius:5px;cursor:pointer}.guide-copy svg{width:15px;height:15px}.guide-copy button:hover{background:var(--line)}.guide-copy button:focus-visible{outline:2px solid var(--green);outline-offset:3px}.guide-copy-status{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.article-body .guide-steps,.article-body .guide-list{padding-inline-start:26px;max-width:80ch;margin:14px 0 22px}.guide-steps li,.guide-list li{padding-inline-start:6px;line-height:1.8;color:var(--muted);margin:12px 0}.guide-steps li::marker{color:var(--text);font-weight:700;font-variant-numeric:tabular-nums}.article-body .guide-note{padding:12px 16px;border-radius:8px;background:var(--surface);font-size:13px}.guide-reference a{text-decoration:underline;text-underline-offset:4px}.article-body>section[aria-labelledby] p+p{margin-top:16px}.article-body kbd{display:inline-block;direction:ltr;font-size:12px;background:var(--soft);color:var(--text);padding:0 5px;border-radius:4px}
.catalog-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}.catalog-sound{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:22px;background:var(--surface);color:var(--text)}.catalog-sound strong{font-size:24px}.catalog-sound p,.catalog-sound small{margin:0;position:static;background:transparent;color:var(--muted)}.catalog-compatibility{font-size:12px;color:var(--muted);line-height:1.6}.download-os-tabs button{min-width:0;flex:1 1 0;padding:10px 8px;font-size:13px;gap:6px}.download-os-tabs .platform-mark{width:16px;height:16px;flex-basis:16px}
@media(max-width:600px){.download-os-tabs button{font-size:12px;padding:10px 5px}.download-os-tabs{gap:6px}.home-intro .desktop-downloads{padding:20px 16px}.hero-actions{flex-wrap:wrap}.community-home .topbar .top-link[href$='/community/']{display:inline-flex;font-size:12px}}
.home-intro{display:block;margin:48px auto 38px}.home-intro .hero{text-align:center;margin:0 auto;max-width:920px}.home-intro .hero h1{font-size:clamp(40px,4.6vw,64px);line-height:1.08;max-width:900px;letter-spacing:-.045em;margin:20px auto}.home-intro .hero .lead{max-width:650px;font-size:19px;margin:22px auto}.home-intro .hero-actions{justify-content:center;margin-top:28px}.hero-download-button{gap:11px}.hero-platforms{display:flex;justify-content:center;gap:10px;margin-top:19px}.hero-platforms button{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;padding:8px 12px;border-radius:7px;cursor:pointer}.hero-platforms button:hover{background:var(--surface);color:var(--text)}.hero-platforms .platform-mark{width:15px;height:15px;flex-basis:15px}.hero-download-button .download-version{padding:2px 6px;background:color-mix(in srgb,currentColor 12%,transparent);border-radius:4px;font-size:11px}
#download-dialog{width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);overflow:auto}#download-dialog::backdrop{background:#0009;backdrop-filter:blur(5px)}#download-dialog .desktop-downloads{padding:26px;margin:0;text-align:start}#download-dialog .download-heading{padding-inline-end:34px}#download-dialog .download-close{position:absolute;inset-inline-end:12px;top:12px}.home>.landing>.product-capture{margin-top:0}
@media(max-width:600px){.home-intro{margin:26px auto 28px}.home-intro .hero h1{font-size:38px}.home-intro .hero .lead{font-size:16px;line-height:1.75}.home-intro .hero-actions{display:grid;gap:10px}.hero-actions>a{justify-content:center}.hero-platforms{gap:6px}.hero-platforms button{padding:8px 10px}#download-dialog .desktop-downloads{padding:22px 16px}.home-intro .hero{margin-bottom:0}}
.nav-category-label{display:flex;align-items:center;gap:10px;min-width:0}.nav-category-icon{width:17px;height:17px;flex:0 0 17px;color:var(--muted)}.nav-section[open] .nav-category-icon{color:var(--green)}.nav-section-links{padding-inline-start:28px}

@media(max-width:360px){.community-home .topbar .top-link[href$='/community/']{display:none}}
.download-version[hidden] { display: none !important; }

/* Preserve the official badge artwork and adapt only the selected theme. */
.microsoft-store-badge{display:inline-flex;flex:none;align-items:center;padding:0;border:0;background:none;line-height:0;border-radius:8px}
.microsoft-store-badge img{display:block;width:200px;max-width:100%;height:auto}
.microsoft-store-badge .store-badge-light{display:none}
[data-theme="light"] .microsoft-store-badge .store-badge-dark{display:none}
[data-theme="light"] .microsoft-store-badge .store-badge-light{display:block}
.microsoft-store-badge:focus-visible{outline:2px solid var(--text);outline-offset:5px}
.hero-download-button[hidden]{display:none!important}

.topbar .top-link{align-items:center;gap:7px;white-space:nowrap}.topbar .top-link>.ui-icon{width:16px;height:16px;flex:none}
@media(min-width:801px){.topbar .top-link{display:inline-flex}}

.topbar .language-switch{display:inline-flex;align-items:center;gap:7px;flex:none;font-size:13px;font-weight:500;line-height:1.5;min-height:36px}
.topbar .language-switch>.ui-icon{width:16px;height:16px;flex:none}
.language-switch>span[lang="ar"]{font-family:NotoArabic,Inter,sans-serif}
.language-switch>span[lang="en"]{font-family:Inter,sans-serif}
