:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --surface: #fff;
  --ink: #172640;
  --muted: #53647c;
  --line: #dce4ee;
  --blue: #245bd6;
  --blue-hover: #1845b1;
  --soft: #eaf0ff;
  --badge: #edf3ff;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1421;
  --surface: #142135;
  --ink: #eef4ff;
  --muted: #b2c0d4;
  --line: #2b3d55;
  --blue: #9bbaff;
  --blue-hover: #bfd1ff;
  --soft: #1a2d4b;
  --badge: #203653;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.8rem, 5.3vw, 4.8rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 760; }
h2 { font-size: clamp(1.65rem, 2.7vw, 2.25rem); line-height: 1.2; letter-spacing: -.035em; }
h3 { font-size: 1.22rem; line-height: 1.4; letter-spacing: -.02em; }
p { color: var(--muted); }
a { color: inherit; text-underline-offset: 4px; }
button, select { font: inherit; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.shell { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; z-index: 50; inset-inline-start: 16px; top: 12px; transform: translateY(calc(-100% - 24px)); background: var(--surface); padding: 12px 18px; }
.skip:not(:focus) { clip-path: inset(50%); }
.skip:focus { transform: none; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 88px; gap: 24px; }
.brand { display: flex; flex-shrink: 0; text-decoration: none; }
.brand img { display: block; width: 164px; height: 60px; object-fit: cover; }
html[data-theme="dark"] .brand img { background: white; border-radius: 8px; }
.header-controls { display: flex; align-items: center; gap: 23px; }
.header-controls > a { font-size: .88rem; text-decoration: none; }
.header-controls > a[aria-current] { font-weight: 700; color: var(--blue); }
.language-control { display: flex; align-items: center; gap: 8px; }
.language-control > span { font-size: .8rem; color: var(--muted); }
.language-control select { max-width: 175px; padding: 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; }
.language-control .ptp-language-select { max-width: 175px; }
.theme-button { display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; background: var(--surface); color: var(--ink); }
.page-intro { padding-block: 56px 34px; }
.eyebrow { color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 14px; }
.lead { font-size: 1.1rem; max-width: 64ch; margin-top: 18px; }
.section-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.section-nav a { padding: 8px 15px; border: 1px solid var(--line); border-radius: 8px; font-size: .82rem; font-weight: 600; text-decoration: none; background: var(--surface); }
.section-nav a:hover { border-color: var(--blue); color: var(--blue); }
.section { padding-block: 38px; }
.section-heading { max-width: 760px; margin-bottom: 24px; }
.section-heading p { margin-top: 13px; }
.windows-card { display: grid; grid-template-columns: 1.6fr 1fr; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 12px 40px #19346608; overflow: hidden; }
.windows-copy { padding: 36px 40px; min-width: 0; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.platform { display: inline-flex; align-items: center; gap: 9px; font-size: .78rem; font-weight: 650; color: var(--muted); }
.platform svg { width: 18px; height: 18px; color: var(--blue); }
.badge { display: inline-flex; padding: 3px 9px; background: var(--badge); border-radius: 6px; font-size: .7rem; font-weight: 650; color: var(--blue); }
.windows-copy h2 { font-size: clamp(1.65rem, 2.7vw, 2.35rem); }
.windows-copy > p { margin-top: 16px; font-size: .96rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 12px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: .88rem; line-height: 1.5; font-weight: 650; text-decoration: none; }
.button svg { width: 20px; height: 20px; flex: none; }
.button:hover { border-color: var(--blue); color: var(--blue); }
.button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
html[data-theme="dark"] .button.primary { color: #0c1421; }
.windows-copy .button.primary { font-size: 1rem; min-height: 58px; padding: 15px 20px; }
.guide-link { font-size: .84rem; color: var(--blue); }
.package-meta { display: flex; flex-wrap: wrap; gap: 5px 16px; color: var(--muted); font-size: .75rem; margin-top: 17px; }
.package-meta bdi { white-space: nowrap; }
.compatibility { font-size: .78rem; line-height: 1.6; margin-top: 17px; }
.windows-visual { background: var(--soft); display: grid; align-content: center; justify-items: center; padding: 36px; min-width: 0; position: relative; }
.document-frame { width: min(100%, 260px); padding: 18px 24px 28px; background: #fff; box-shadow: 0 18px 40px #16305b1c; border: 1px solid #dce4ee; border-radius: 3px; transform: rotate(3deg); }
.paper-mark { font-size: 1.15rem; font-weight: 750; color: #172640; letter-spacing: -.04em; border-bottom: 2px solid #245bd6; padding-block: 10px 18px; }
.paper-title { width: 74%; height: 12px; background: #dbe6ff; margin-top: 28px; border-radius: 2px; }
.paper-line { height: 6px; background: #e8edf5; margin-top: 13px; border-radius: 2px; }
.paper-line.short { width: 64%; }
.paper-table { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #dce4ee; border-inline-start: 1px solid #dce4ee; margin-block: 23px 18px; }
.paper-table i { height: 22px; border-bottom: 1px solid #dce4ee; border-inline-end: 1px solid #dce4ee; }
.keyboard { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: center; margin-top: 26px; direction: ltr; color: var(--muted); font-size: .75rem; }
kbd { background: var(--surface); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 6px 9px; font: 600 .74rem/1.5 system-ui; color: var(--ink); }
.package-details { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 14px; font-size: .78rem; }
.package-details > summary { color: var(--muted); font-weight: 600; min-height: 28px; }
.package-details[open] > summary { margin-bottom: 14px; }
.package-details dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.package-details dt { color: var(--muted); }
.package-details dd { margin: 0; text-align: end; }
.checksum { margin-top: 14px; color: var(--muted); }
.checksum code { display: block; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: 11px/1.7 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; color: var(--ink); direction: ltr; text-align: left; }
.archive-download { margin-top: 18px; }
.archive-download > a { color: var(--blue); }
.archive-download .package-details { margin-top: 12px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.download-card { border: 1px solid var(--line); border-radius: 15px; padding: 28px; background: var(--surface); min-width: 0; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--soft); color: var(--blue); border-radius: 11px; margin-bottom: 17px; }
.card-icon svg { width: 24px; height: 24px; }
.download-card > p { font-size: .88rem; margin-top: 12px; }
.download-card > .guide-link { display: inline-block; margin-top: 15px; }
.mobile-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.mobile-card .card-icon { margin: 0; width: 58px; height: 58px; }
.mobile-card p { margin-top: 12px; font-size: .9rem; max-width: 68ch; }
.mobile-card .button { max-width: 260px; }
.developer-kit { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 24px; }
.developer-kit p { margin-top: 10px; font-size: .9rem; }
.developer-kit .package-details { grid-column: 1 / -1; margin-top: 0; }
.individual-packages { margin-top: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 18px 26px; }
.individual-packages > summary { font-size: .9rem; font-weight: 650; min-height: 28px; }
.package-row { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; padding-block: 23px; border-top: 1px solid var(--line); }
.package-row:first-of-type { margin-top: 17px; }
.package-row h3 { font-size: 1rem; overflow-wrap: anywhere; }
.package-row .package-meta { margin-top: 6px; }
.package-row .package-details { grid-column: 1 / -1; margin-top: 0; border-top: 0; padding-top: 0; }
.developer-guide { display: inline-block; margin-top: 18px; }
.release-note { border-top: 1px solid var(--line); padding-block: 26px 44px; margin-top: 24px; }
.release-note h2 { font-size: .9rem; letter-spacing: 0; }
.release-note p { margin-top: 9px; font-size: .8rem; max-width: 100ch; }
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 44px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.site-footer strong { font-size: .95rem; }
.site-footer p { margin-top: 8px; max-width: 32ch; font-size: .8rem; }
.site-footer nav { display: flex; align-content: flex-start; flex-wrap: wrap; gap: 13px 24px; font-size: .8rem; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: normal; }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 40px); }
  .header-controls { gap: 15px; }
  .header-controls > a:not([aria-current]), .language-control > span:not(.ptp-language-select) { display: none; }
  .windows-copy { padding: 30px; }
  .windows-visual { padding: 28px; }
  .mobile-card { grid-template-columns: auto 1fr; }
  .mobile-card > .button { grid-column: 2; justify-self: start; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 76px; gap: 12px; }
  .brand img { width: 140px; height: 52px; }
  .header-controls { gap: 9px; }
  .header-controls > a { display: none; }
  .language-control .ptp-language-select { max-width: 140px; }
  .page-intro { padding-block: 36px 16px; }
  .lead { font-size: 1rem; margin-top: 15px; }
  .section-nav { gap: 8px; margin-top: 22px; }
  .section-nav a { font-size: .75rem; padding: 7px 11px; }
  .section { padding-block: 25px; }
  .windows-card, .cards, .site-footer { grid-template-columns: 1fr; }
  .windows-copy { padding: 25px; }
  .windows-visual { display: none; }
  .windows-copy h2 { font-size: 1.75rem; }
  .windows-copy .actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .windows-copy .button { width: 100%; font-size: .95rem; }
  .card-top { margin-bottom: 14px; }
  .download-card { padding: 24px; }
  .mobile-card { gap: 18px; padding: 24px; }
  .mobile-card .card-icon { width: 42px; height: 42px; align-self: start; }
  .mobile-card > .button { grid-column: 1 / -1; max-width: none; justify-self: stretch; }
  .developer-kit { grid-template-columns: 1fr; gap: 20px; }
  .developer-kit > .button { justify-self: stretch; }
  .individual-packages { padding: 17px 22px; }
  .package-row { grid-template-columns: 1fr; gap: 15px; }
  .package-row > .button { justify-self: start; }
  .site-footer { gap: 25px; padding-block: 28px 36px; }
  .release-note { padding-block: 24px 32px; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 28px); }
  .brand img { width: 118px; height: 44px; }
  .header-controls { gap: 6px; }
  .theme-button { width: 31px; height: 31px; }
  .language-control .ptp-language-select { max-width: 126px; }
  .windows-copy, .download-card, .mobile-card { padding: 20px; }
  .mobile-card { grid-template-columns: 1fr; }
  .mobile-card > .button { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: #fff; color: #000; }
  .shell { width: 100%; }
  .site-header, .section-nav, .windows-visual, .site-footer { display: none; }
  .windows-card, .cards { display: block; }
  .section { padding-block: 15px; }
}
