:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #152837;
  background: #f5f8fa;
  --accent: #164e69;
  --muted: #526573;
  --line: #d9e4e9;
  --wash: #eaf2f6;
}
* { box-sizing: border-box; }
body { margin: 0; }
body.peptides { --accent: #235e4b; --muted: #52665e; --line: #d9e4dc; --wash: #e8f2ed; background: #f6f8f5; color: #193229; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; width: 100%; object-fit: cover; }
p, li { line-height: 1.67; color: var(--muted); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .45em; }
h1 { font-family: Georgia, serif; font-size: clamp(2.65rem, 6vw, 5.2rem); font-weight: 500; letter-spacing: -.055em; overflow-wrap: anywhere; }
h2 { font-family: Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -.03em; }
h3 { font-size: 1.18rem; }
header, footer { background: #fff; border-bottom: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); border-bottom: 0; margin-top: auto; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.bar, .section { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }
.bar { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-weight: 720; font-size: 1.08rem; white-space: nowrap; text-decoration: none; }
.mark { width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 46% 54% 48% 52%; display: inline-grid; place-items: center; }
.mark::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
nav { display: flex; gap: 24px; flex-wrap: wrap; }
nav a { text-decoration: none; font-weight: 600; font-size: .92rem; }
nav a:hover, .card-body a:hover { text-decoration: underline; }
.preview { background: var(--wash); color: var(--accent); text-align: center; padding: 9px 16px; font-size: .875rem; }
.section { padding-block: 42px; }
.section.compact { padding-block: 16px 42px; }
.narrow { max-width: 780px; }
.hero { display: grid; grid-template-columns: 1.06fr .94fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.hero-copy { padding: clamp(25px, 5vw, 62px); align-self: center; }
.hero-copy p { max-width: 36ch; margin-block: 20px 26px; font-size: 1.06rem; }
.hero-media { position: relative; background: var(--wash); }
.hero-media img { height: 100%; min-height: 320px; position: absolute; inset: 0; }
.hero-media span { position: absolute; bottom: 13px; right: 13px; padding: 5px 9px; background: #fff; border-radius: 6px; font-size: .8rem; }
.eyebrow, .meta { font-size: .875rem; font-weight: 700; color: var(--accent); }
.eyebrow { letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.meta { margin-bottom: 10px; }
.actions, .section-title { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.section-title { justify-content: space-between; margin-bottom: 16px; }
.section-title h2, .section-title p { margin: 0; }
.button, button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 17px; min-height: 44px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; text-decoration: none; font: inherit; font-weight: 650; cursor: pointer; }
.button:hover, button:hover { filter: brightness(1.13); }
.secondary { background: transparent; color: var(--accent); }
.cards, .journeys, .admin-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.journeys, .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.journeys a, .panel, .product-card { border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.journeys a { padding: 14px; text-decoration: none; }
.journeys img { height: 220px; border-radius: 7px; margin-bottom: 14px; }
.journeys p { margin: 0; }
.panel { padding: clamp(18px, 3vw, 32px); min-width: 0; }
.panel p:last-child, .card-body p { margin-bottom: 0; }
.product-card { overflow: hidden; }
.product-photo { display: block; }
.product-photo img { aspect-ratio: 1.65; }
.card-body { padding: 22px; }
.card-body a { text-decoration: none; }
.card-body small { color: var(--muted); display: block; margin-top: 10px; }
.lookup { background: var(--wash); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.search { display: flex; gap: 10px; align-items: end; }
.search label:first-child { flex: 1; }
.catalog { margin-bottom: 24px; }
label { display: grid; gap: 7px; font-weight: 630; min-width: 0; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; background: #fff; border: 1px solid #a8bbb9; border-radius: 6px; color: inherit; font: inherit; font-weight: 400; }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid #3191ad; outline-offset: 3px; }
.stack { display: grid; gap: 15px; }
.stack button { justify-self: start; }
.flow, .records, .detail, .admin-grid + .admin-grid, .admin-grid + .panel { margin-top: 22px; }
.flow li { margin-block: 8px; }
.detail { margin-bottom: 20px; }
.detail h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
dl { display: grid; gap: 10px 18px; grid-template-columns: auto 1fr; margin-bottom: 22px; }
dd { margin: 0; }
dt { font-weight: 650; }
.hint { font-size: .9rem; }
.tag { display: inline-block; padding: 3px 7px; background: var(--wash); border-radius: 5px; font-size: .8rem; color: var(--accent); }
.notice { background: var(--wash); padding: 12px; border-radius: 6px; }
.records article { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding: 14px 0; overflow-wrap: anywhere; }
.records article p { margin: 4px 0 0; }
.records article .button { flex-shrink: 0; }
.admin-links { margin: 12px 0 24px; }
.preserve { white-space: pre-wrap; }
@media (max-width: 825px) {
  .bar { flex-wrap: wrap; gap: 12px; padding-block: 13px; }
  header nav { width: 100%; order: 3; gap: 15px; }
  .hero, .lookup { grid-template-columns: 1fr; }
  .hero-media img { position: static; aspect-ratio: 1.8; min-height: 0; }
}
@media (max-width: 555px) {
  .bar, .section { width: calc(100% - 28px); }
  .section { padding-block: 28px; }
  .cards, .journeys, .admin-grid { grid-template-columns: 1fr; }
  .search, .records article { flex-wrap: wrap; }
  .search label { flex: 1 0 100%; }
  nav a, .bar .button { font-size: .875rem; }
}
