.button {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--fg);
}
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

.section { padding: 24px 0; }
.section h2 { font-size: 24px; margin: 0 0 16px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 4px 0; }

.content-body { max-width: 72ch; overflow-wrap: anywhere; }
.seo-cover { display: block; max-width: 100%; height: auto; margin-top: 1rem; }
.content-body pre { overflow-x: auto; padding: 1rem; border: 1px solid currentColor; }
.content-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.content-body th, .content-body td { padding: 0.45rem 0.8rem; border-bottom: 1px solid currentColor; }
.content-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }

.main-nav { flex-wrap: wrap; }
.shop-summary { white-space: pre-line; overflow-wrap: anywhere; }
.store-categories { margin: 1.5rem 0; }
[data-catalog-layout="compute"] > .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
[data-product-layout="compute"] .shop-bill { max-width: 36rem; }
[data-product-layout="compute"] dt, [data-product-layout="compute"] dd { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.section .shop-card-title { margin: 0 0 0.5rem; font-size: 1.15rem; }
.shop-table { overflow-x: auto; margin: 1.5rem 0; }
.shop-table table { width: 100%; border-collapse: collapse; text-align: start; }
.shop-table caption { text-align: start; font-weight: 600; margin-bottom: 0.5rem; }
.shop-table th, .shop-table td { padding: 0.65rem; border-bottom: 1px solid var(--line); text-align: start; }
.shop-table td { font-variant-numeric: tabular-nums; }
.shop-form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem; margin: 1.5rem 0; }
.shop-form[hidden] { display: none; }
.shop-form label { display: grid; gap: 0.35rem; }
.shop-form input, .shop-form select {
  max-width: min(100%, 24rem); padding: 0.6rem; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px;
}
.shop-form button, .shop-cart-items button { font: inherit; cursor: pointer; }
.shop-form button:disabled { opacity: 0.65; cursor: wait; }
.shop-cart-items { display: grid; gap: 1rem; padding: 0; list-style: none; }
.shop-cart-items form { margin-top: 0.75rem; }
.shop-bill { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.3rem 1rem; }
.shop-bill dd { margin: 0; overflow-wrap: anywhere; }
.shop-alert { padding: 0.65rem 0.9rem; border-inline-start: 3px solid var(--accent); background: var(--card); }
@media (max-width: 600px) {
  .header-inner { padding-top: 0.7rem; padding-bottom: 0.7rem; }
  .main-nav { order: 3; flex-basis: 100%; gap: 0.65rem 1rem; }
  .lang-nav { margin-inline-start: auto; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .shop-form label { min-width: min(100%, 15rem); }
}

/* 05server public storefront */
:root {
  --bg: #f6f8fc;
  --fg: #16243c;
  --muted: #50617a;
  --line: #d9e3f0;
  --card: #fff;
  --accent: #234fa7;
}
.container { max-width: 1240px; padding-inline: clamp(16px, 4vw, 40px); }
.site-header { background: var(--card); }
.header-inner { min-height: 74px; gap: 1rem 1.5rem; }
.brand { letter-spacing: -.045em; }
.main-nav a { color: var(--fg); font-weight: 600; font-size: .92rem; }
.hero.home-hero {
  padding: clamp(2rem, 7vw, 5.25rem) clamp(1.25rem, 6vw, 4.75rem);
  margin-block: clamp(1rem, 3vw, 2rem);
  border-radius: clamp(14px, 2.5vw, 24px);
  color: #f5f8ff;
  background: radial-gradient(ellipse at 85% 0%, #285397, transparent 65%), #112441;
}
.home-hero h1 { max-width: 17ch; font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -.035em; }
.home-hero .lead { color: #cbdaf0; max-width: 58ch; }
.home-hero .button { color: #fff; border-color: #91abd7; }
.home-hero .button.primary { background: #e6efff; border-color: #e6efff; color: #173c80; }
.button { border-radius: 9px; font-weight: 650; }
.section { padding-block: clamp(1.25rem, 3.4vw, 2.4rem); }
.cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 218px), 1fr)); gap: 15px; }
.card { border-radius: 14px; padding: 1.4rem; }
.card h3 { letter-spacing: -.015em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.home-hero a:focus-visible { outline-color: #fff; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1726; --fg: #edf3fd; --muted: #acbbd1; --line: #34445a; --card: #172438; --accent: #92b7ff; --accent-fg: #102040; }
}

/* Product-first home page */
.hero.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(430px, 47vw, 570px);
  background-color: #081524;
  background-image: linear-gradient(90deg, #081524 6%, #081524ed 32%, #08152438 76%),
    url("../images/server-racks.webp"), radial-gradient(ellipse at 82% 28%, #1b62a2, #081524 65%);
  background-size: cover;
  background-position: center, center right, center;
  border: 1px solid #233e5a;
}
.home-hero-content { max-width: 40rem; }
.home-hero h1 { max-width: 19ch; text-wrap: balance; font-size: clamp(2.2rem, 5.6vw, 4.5rem); }
.home-hero .lead { max-width: 52ch; }
.home-hero .button { padding: .85rem 1.25rem; min-height: 48px; }
.home-hero .button.primary { background: #6fe1ff; border-color: #6fe1ff; color: #092539; }
.home-hero .button.primary:hover { background: #b5f0ff; }
.home-hero .actions { margin-bottom: 0; }
.home-products .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); }
.home-product { border-top: 3px solid var(--accent); }
.home-product h3 a { display: flex; justify-content: space-between; gap: .8rem; color: var(--fg); }
.home-product h3 a span { color: var(--accent); flex: none; }
.home-product:focus-within { border-color: var(--accent); }
@media (max-width: 640px) {
  .hero.home-hero {
    min-height: 460px;
    align-items: end;
    background-image: linear-gradient(0deg, #081524 9%, #081524e8 44%, #08152438 90%),
      url("../images/server-racks.webp"), radial-gradient(ellipse at 82% 28%, #1b62a2, #081524 65%);
    background-position: center, 70% center, center;
  }
}
/* Full-width public catalog and navigation. Reading pages keep their own text measure. */
.container {
  --site-gutter: clamp(1rem, 4vw, 5rem);
  width: 100%;
  max-width: none;
  padding-inline: var(--site-gutter);
}
.container.storefront-main { padding-inline: 0; }
