:root {
  --ink: #16211f;
  --muted: #52615d;
  --surface: #ffffff;
  --surface-alt: #f5f7f6;
  --line: #d9e0dd;
  --teal: #087568;
  --teal-dark: #075a51;
  --gold: #d29b13;
  --coral: #d96d4f;
  --focus: #173bff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #993f2b;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.header-inner > *,
.site-main > *,
.card,
.notice,
.recommendation,
.product-card-media {
  min-width: 0;
}

.site-main,
.notice,
.recommendation,
.card {
  overflow-wrap: anywhere;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 0.85rem;
}

.main-nav,
.language-switcher,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  align-items: center;
}

.main-nav {
  justify-content: center;
}

.main-nav a,
.language-switcher a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
}

.main-nav a[aria-current='page'],
.language-switcher a[aria-current='true'] {
  background: var(--surface-alt);
  color: var(--teal-dark);
  font-weight: 700;
}

.language-switcher {
  justify-content: flex-end;
  font-size: 0.9rem;
}

.site-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy,
.article-header,
.recommendation,
.notice,
.content-section,
.grid-section,
.faq,
.step {
  max-width: 780px;
}

.eyebrow {
  color: var(--teal-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 0.6rem;
}

h1,
h2,
h3 {
  line-height: 1.14;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 4.8rem);
  max-width: 11ch;
}

.article h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 62ch;
}

.section-intro {
  color: var(--muted);
  max-width: 68ch;
}

.media-panel {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-alt);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--teal);
  color: #fff;
}

.button-primary:hover {
  background: var(--teal-dark);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.button-disabled {
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-alt);
}

.text-link {
  font-weight: 700;
}

.offer-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.offer-link-list .cta-row {
  margin: 0;
}

.grid-section,
.article,
.content-section,
.recommendation,
.faq,
.table-wrap,
.steps,
.split-list {
  margin-top: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
}

.card p {
  color: var(--muted);
}

.product-card {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.product-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-alt);
}

.product-card-image {
  width: 100%;
  height: 100%;
  padding: 0.5rem;
}

.product-card-image.image-fit-cover {
  padding: 0;
}

.product-meta {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.product-meta div {
  display: grid;
  gap: 0.15rem;
}

.product-meta dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-meta dd {
  margin: 0;
}

.wide-article {
  max-width: none;
}

.notice,
.recommendation {
  border-left: 5px solid var(--gold);
  background: #fff9e8;
  padding: 1rem;
  border-radius: 8px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

caption {
  caption-side: top;
  padding: 0.85rem 0.9rem;
  text-align: left;
  color: var(--muted);
  font-weight: 700;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--surface-alt);
  font-size: 0.92rem;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-image-status {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
  gap: 1.25rem;
  align-items: center;
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface-alt);
}

.product-image-status h2 {
  max-width: 18ch;
}

.compact-media {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
}

.product-hero-image {
  width: 100%;
  height: 100%;
  padding: 0.75rem;
}

.product-hero-image.image-fit-cover {
  padding: 0;
}

.image-fit-contain {
  object-fit: contain;
}

.image-fit-cover {
  object-fit: cover;
}

.split-list section,
.step {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.split-list ul {
  margin: 0;
  padding-left: 1.2rem;
}

.steps {
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.microcopy {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.site-footer > * {
  max-width: 1180px;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

  .main-nav,
  .language-switcher {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid-3,
  .split-list,
  .product-image-status,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-main {
    padding-top: 1.2rem;
  }

  .main-nav,
  .language-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.35rem;
  }

  .language-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-nav a,
  .language-switcher a {
    justify-content: center;
    min-height: 2.55rem;
    padding: 0.4rem 0.35rem;
    text-align: center;
  }

  h1 {
    max-width: none;
  }

  .button {
    width: 100%;
  }

  .step {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .language-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
