:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #29465e;
  background: #eaf4fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
  flex: 1;
}

.product-page { display: flex; flex-direction: column; padding-top: clamp(32px, 6vw, 72px); }
h1 { margin: 0; font-size: clamp(24px, 5vw, 40px); font-weight: 600; overflow-wrap: anywhere; }
.product-actions { margin-top: auto; padding-top: 48px; text-align: center; }
.site-header, .site-footer { width: min(100% - 32px, 960px); margin-inline: auto; }
.site-header { padding: 16px 0; border-bottom: 1px solid #cddfeb; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; font-size: 22px; font-weight: 700; }
.site-brand img { display: block; object-fit: contain; image-rendering: pixelated; }
.site-brand:hover { color: #1e557e; }
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; gap: 12px 24px; padding: 20px 0; margin-top: 24px; border-top: 1px solid #cddfeb; text-align: center; color: #59778f; font-size: 14px; }
.footer-details { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 16px; min-width: 0; }
.site-version-group { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.site-credit { margin: 0 auto 0 0; font-size: 14px; color: #59778f; text-align: left; }
.site-amethyst-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.site-amethyst-link img { display: block; width: 40px; height: 40px; object-fit: contain; }
.site-amethyst-link:hover { color: #1e557e; }
.language-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }

button, .back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.language-switch { font-size: 14px; }
.site-footer .language-switch button { padding: 0; border: 0; border-radius: 0; color: #1e557e; }
.site-footer .language-switch button[hidden] { display: none; }
.site-footer .language-switch button:hover { background: transparent; text-decoration: underline; }
button[aria-pressed="true"], .back-button { background: #fff; border-color: #c5dced; color: #1e557e; }
button:hover, .back-button:hover { background: #dbeaf6; }
a:focus-visible, button:focus-visible { outline: 2px solid #286a9c; outline-offset: 4px; }

@media (max-width: 480px) {
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-details { justify-content: center; }
  .site-credit { margin-inline: 0; text-align: center; }
}
