:root {
  font-family: Inter, "PingFang SC", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  color: #2d2925;
  background: #f8f1ed;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: #f8f1ed; }
body { margin: 0; }
main { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 72px; }
a { color: #a94340; text-underline-offset: 3px; }

.brand {
  display: inline-flex;
  gap: 7px;
  margin-bottom: 52px;
  color: inherit;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand span { color: #a94340; }
.legal-header { margin-bottom: 30px; }
.eyebrow {
  margin: 0 0 10px;
  color: #a94340;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(34px, 7vw, 56px); letter-spacing: -.05em; line-height: .98; }
h1 span { color: #746a62; font-size: .72em; font-weight: 650; }
.updated, .lede { color: #6d635c; line-height: 1.75; }
.updated { margin: 16px 0 0; font-size: 13px; }
.lede { margin: 14px 0 0; max-width: 680px; }
section {
  margin-top: 14px;
  padding: 24px;
  border: 1px solid rgba(45, 41, 37, .09);
  border-radius: 20px;
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 12px 32px rgba(87, 59, 48, .035);
}
h2 { margin: 0 0 10px; font-size: 17px; line-height: 1.4; }
h2 span { display: block; color: #746a62; font-size: 14px; font-weight: 600; }
p { margin: 0; line-height: 1.75; }
section p + p { margin-top: 11px; padding-top: 11px; border-top: 1px solid rgba(45, 41, 37, .07); color: #5f5650; }
.contact-link { font-size: clamp(17px, 5vw, 22px); font-weight: 750; }
footer { margin-top: 36px; color: #746a62; font-size: 13px; }
.footer-links { display: flex; gap: 18px; }

.download-options { padding: 0 24px; }
.download-feature-grid {
  container: page-downloads / inline-size;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, .4);
}
.download-feature {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: start;
  min-width: 0;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(169, 67, 64, .18);
  border-radius: 16px;
  color: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,232,224,.76));
  box-shadow: 0 12px 28px rgba(87, 59, 48, .07);
  text-decoration: none;
}
.download-feature > img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 16px rgba(62,43,38,.14); }
.download-feature div { display: grid; align-content: start; min-width: 0; }
.download-feature strong { margin-top: 2px; font-size: 21px; line-height: 1.15; }
.download-feature small { margin-top: 7px; color: #746a62; font-size: 12px; line-height: 1.5; }
.download-feature-action {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  box-sizing: border-box;
  align-self: end;
  gap: 12px;
  white-space: nowrap;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  background: #292622;
  font-size: 12px;
  font-weight: 800;
}
.download-feature-action b { font-size: 16px; font-weight: 500; }
.download-feature:hover { border-color: rgba(169,67,64,.36); transform: translateY(-1px); }
.download-feature:focus-visible { outline: 2px solid #b84237; outline-offset: 3px; }
.cn-region-only { display: none; }
html[data-region='cn'] .download-feature-grid { grid-template-columns: 1fr; }
html[data-region='cn'] .international-region-only { display: none; }
html[data-region='cn'] .cn-region-only { display: flex; }
.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  border-bottom: 1px dotted rgba(45, 41, 37, .16);
}
.download-row-link { color: inherit; text-decoration: none; }
.download-row-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.download-row:last-child { border-bottom: 0; }
.download-row div { display: grid; gap: 3px; }
.download-row strong { font-size: 18px; }
.download-row small { color: #746a62; font-size: 12px; line-height: 1.45; }
.download-platform { color: #746a62; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.download-status { display: inline-flex; min-height: 34px; padding: 0 12px; align-items: center; justify-content: center; border-radius: 999px; color: #8a6411; background: #fff4d6; font-size: 11px; font-weight: 800; white-space: nowrap; }
.download-status-available { color: #236b48; border: 1px solid rgba(35, 107, 72, .2); background: #e6f5ec; }
.download-row-link:hover .download-status-available { border-color: rgba(35, 107, 72, .34); background: #d9efe2; }
.download-row-link:focus-visible { outline: 2px solid #b84237; outline-offset: 3px; }
.download-checksum code { overflow-wrap: anywhere; font-size: 12px; }
.download-home { display: inline-block; margin-top: 14px; font-weight: 800; text-decoration: none; border-bottom: 1.5px solid currentColor; }

@media (max-width: 520px) {
  main { padding-top: 28px; }
  .brand { margin-bottom: 40px; }
  section { padding: 20px; border-radius: 18px; }
  .download-feature-grid { grid-template-columns: 1fr; padding: 10px; }
  .download-feature { padding: 16px; }
  .download-options { padding: 0 20px; }
  .download-row { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
html[data-cn-site='true'] .international-only {
  display: none !important;
}

html:not([data-cn-site='true']) .cn-only {
  display: none !important;
}

html:not([data-locale='ja']) .ja-only { display: none !important; }
html[data-locale='ja'] .international-only { display: none !important; }
html[data-locale='ja'] { font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif; }
html[data-locale='ja'] h1 { line-height: 1.4; letter-spacing: -.02em; }
.language-picker { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 24px; }
.language-picker[hidden] { display: none; }
.language-picker select { padding: 8px; font: inherit; color: inherit; background: #fff8f0; border: 1px solid #746a62; border-radius: 8px; }
.footer-links { flex-wrap: wrap; }

.compliance-footer { margin-top: 40px; padding-bottom: 20px; }
.footer-card { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(45, 41, 37, .08); box-shadow: 0 8px 24px rgba(87, 59, 48, .04); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; color: #2d2925; }
.footer-tag { font-size: 11px; color: #746a62; background: rgba(45, 41, 37, .06); padding: 2px 8px; border-radius: 6px; }
.footer-info-grid { display: grid; gap: 8px; font-size: 13px; line-height: 1.6; color: #5f5650; margin-bottom: 14px; }
.footer-info-item { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-info-label { color: #746a62; }
.footer-info-val a { color: #a94340; text-decoration: none; }
.footer-info-val a:hover { text-decoration: underline; }
.footer-nav { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(45, 41, 37, .07); font-size: 13px; }
.footer-nav a { color: #a94340; font-weight: 600; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav .dot { color: #a09790; }
.copyright { margin-top: 10px; font-size: 11px; color: #a09790; }

/* Use the card group's actual width, including translated copy, for reflow. */
@container page-downloads (max-width: 575px) {
  .download-feature { grid-column: 1 / -1; }
}
@container page-downloads (min-width: 480px) {
  html[data-region='cn'] .download-feature-grid > .download-feature {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
  }
  html[data-region='cn'] .download-feature-grid .download-feature-action { grid-column: 3; align-self: center; }
}
@container page-downloads (min-width: 480px) and (max-width: 575px) {
  .download-feature {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
  }
  .download-feature-action { grid-column: 3; align-self: center; }
}
