/*
 * ICE CUBE v2 – styleguide.css (foundation). Layout of the living style guide (styleguide.html) only.
 * Nothing here is a component: page builders use components.css. The .sg-force-* classes freeze a
 * hover / press / focus state for the gallery and mirror the real rules in components.css.
 */

/* ------------------------------------------------------------------ page frame */
.sg__intro { padding: 24px 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.sg__intro-inner { display: grid; gap: 16px 32px; align-items: center; }
.sg__intro p { color: var(--text-2); font-size: 15px; max-width: 72ch; }
.sg__intro code, .sg-code {
  font-family: var(--font-ui); font-size: 0.875em; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 1px 6px; border-radius: var(--radius-xs); background: var(--bg-3); color: var(--text); white-space: nowrap;
}
.on-navy .sg-code { background: var(--hover-on-navy); color: var(--on-navy); }
@media (max-width: 479px) { .sg__intro code, .sg-code { white-space: normal; overflow-wrap: anywhere; } }
.sg__theme { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.sg__theme-label { font-size: 14px; font-weight: 600; color: var(--text-2); }
@media (min-width: 1024px) { .sg__intro-inner { grid-template-columns: minmax(0, 1fr) auto; } }

.sg__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: var(--section-y); }
.sg__toc { font-size: 14px; }
.sg__toc details { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.sg__toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; font-weight: 700; list-style: none; }
.sg__toc summary::-webkit-details-marker { display: none; }
.sg__toc summary .icon { width: 20px; height: 20px; transition: transform var(--dur-base) var(--ease-standard); }
.sg__toc details[open] summary .icon { transform: rotate(180deg); }
.sg__toc-groups { display: grid; gap: 18px; padding: 4px 16px 18px; }
.sg__toc-title { margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.01em; color: var(--text-3); }
.sg__toc a { display: flex; align-items: center; min-height: 32px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.sg__toc a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.sg__toc a.is-active { color: var(--text); font-weight: 700; }
@media (min-width: 1024px) {
  .sg__layout { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 48px; }
  .sg__toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .sg__toc details { border: 0; background: none; }
  .sg__toc summary { display: none; }
  .sg__toc-groups { padding: 0; }
}

.sg-group + .sg-group { margin-top: 72px; }
.sg-group__title { padding-bottom: 16px; border-bottom: 2px solid var(--text); }
.sg-group__lead { margin-top: 12px; color: var(--text-2); max-width: 68ch; }
.sg-sec { padding-top: 40px; }
.sg-sec + .sg-sec { margin-top: 40px; border-top: 1px solid var(--line); }
.sg-sec__title { margin-bottom: 8px; }
.sg-sec__lead { color: var(--text-2); max-width: 68ch; margin-bottom: 20px; }
.sg-sec__lead + .sg-sec__lead { margin-top: -12px; }
.sg-sub { margin-top: 28px; margin-bottom: 12px; }
.sg-note { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--text-2); max-width: 80ch; }
.sg-note strong { color: var(--text); }
.on-navy .sg-note { color: var(--on-navy-2); }
.on-navy .sg-note strong { color: var(--on-navy); }
.sg-sec > .sg-note { margin-bottom: 16px; }
ul.sg-rules { display: grid; gap: 6px; align-content: start; margin-top: 12px; padding-left: 1.2em; list-style: disc; color: var(--text-2); font-size: 15px; max-width: 80ch; }
.sg-rules li::marker { color: var(--text-3); }

/* Demo panels */
.sg-demo { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg); color: var(--text); }
.sg-sec > .sg-demo, .sg-demo + .sg-demo, .sg-demo + .sg-note + .sg-demo { margin-top: 16px; }
.sg-cols > .sg-demo, .sg-cols > .sg-stack { margin-top: 0; }
.sg-demo--tint { background: var(--bg-2); border-color: transparent; }
.sg-demo--navy { background: var(--navy); border-color: transparent; color: var(--on-navy); --ring: var(--focus-on-navy); }
.sg-demo--deep { background: var(--navy-deep); border-color: transparent; color: var(--on-navy); --ring: var(--focus-on-navy); }
.sg-demo--hero { background: var(--hero-gradient); border-color: transparent; color: var(--on-navy); --ring: var(--focus-on-navy); overflow: hidden; }
.sg-demo--yellow { background: var(--band-yellow); border-color: transparent; color: var(--on-yellow); --ring: var(--on-yellow); }
.sg-demo--flush { padding: 0; overflow: hidden; }
.sg-demo__label { margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.01em; color: var(--text-3); }
.on-navy .sg-demo__label, .sg-demo--navy .sg-demo__label, .sg-demo--deep .sg-demo__label, .sg-demo--hero .sg-demo__label { color: var(--on-navy-2); }
.sg-demo--yellow .sg-demo__label { color: var(--on-yellow); opacity: 0.8; }

.sg-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 24px; }
.sg-row--center { align-items: center; }
.sg-row--end { align-items: flex-end; }
.sg-cell { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.sg-cell--grow { flex: 1 1 240px; justify-items: stretch; }
.sg-label { font-size: 12px; line-height: 1.35; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.on-navy .sg-label, .sg-demo--navy .sg-label, .sg-demo--deep .sg-label, .sg-demo--hero .sg-label { color: var(--on-navy-2); }
.sg-cols { display: grid; gap: 20px; }
@media (min-width: 768px) { .sg-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sg-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .sg-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) and (max-width: 1279px) { .sg-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* State matrix (buttons) */
.sg-matrix { width: 100%; border-collapse: collapse; }
.sg-matrix th { padding: 0 12px 12px 0; font-size: 12px; font-weight: 700; color: var(--text-3); text-align: left; white-space: nowrap; vertical-align: bottom; }
.sg-matrix td { padding: 10px 12px 10px 0; vertical-align: middle; }
.sg-matrix tbody th { padding-top: 10px; vertical-align: middle; color: var(--text-2); font-size: 13px; }
.on-navy .sg-matrix th, .sg-demo--navy .sg-matrix th { color: var(--on-navy-2); }

/* ------------------------------------------------------------------ Alapok */
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.sg-swatch { display: grid; gap: 2px; align-content: start; min-width: 0; }
.sg-swatch__chip { display: block; width: 100%; height: 72px; margin-bottom: 8px; padding: 0; border: 0; border-radius: var(--radius-s); background: var(--c); box-shadow: inset 0 0 0 1px var(--line); cursor: copy; }
.sg-swatch__chip:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.sg-swatch__name { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.sg-swatch__value { font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.sg-swatch__role { font-size: 12px; line-height: 1.4; color: var(--text-3); }
.sg-gradient { height: 96px; border-radius: var(--radius-s); background: var(--hero-gradient); }

.sg-contrast td { vertical-align: middle; }
.sg-contrast td.num { white-space: nowrap; }
.sg-contrast__pair { display: inline-flex; align-items: center; gap: 10px; }
.sg-contrast__sample { display: inline-grid; place-items: center; flex: none; width: 44px; height: 30px; border-radius: var(--radius-xs); font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.sg-contrast__ui { width: 22px; height: 12px; border-radius: 2px; }
.sg-contrast__names { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; }
.sg-contrast__on { font-size: 12px; color: var(--text-3); }
.sg-contrast td { overflow-wrap: normal; }
.sg-contrast .sg-code { white-space: nowrap; overflow-wrap: normal; }
.sg-contrast__bg { white-space: nowrap; }
@media (max-width: 599px) {
  /* Phone: the pair, the ratio and an icon-only verdict (the word stays for screen readers). */
  .sg-contrast th:nth-child(3), .sg-contrast td:nth-child(3) { display: none; }
  .sg-contrast th, .sg-contrast td { padding-left: 8px; padding-right: 8px; }
  .sg-contrast__pair { gap: 8px; }
  .sg-contrast__names { flex-direction: column; align-items: flex-start; }
  .sg-contrast .tag { padding: 0 6px; }
  .sg-contrast__verdict { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}

.sg-type { display: grid; gap: 4px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sg-type:first-child { border-top: 1px solid var(--line); }
.sg-type__meta { font-size: 13px; line-height: 1.5; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sg-type__meta b { display: block; color: var(--text); font-size: 14px; }
.sg-type__live { color: var(--text-3); }
.sg-type__sample { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 1024px) { .sg-type { grid-template-columns: 220px minmax(0, 1fr); align-items: baseline; } }

.sg-space-list { display: grid; gap: 4px; }
.sg-space { display: grid; grid-template-columns: 104px 56px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 28px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sg-space .sg-code { justify-self: start; }
.sg-space__bar { height: 12px; width: var(--w); max-width: 100%; border-radius: 2px; background: var(--blue); }
.sg-gridcols.grid > * { grid-column: auto; min-height: 56px; display: grid; place-items: center; border-radius: var(--radius-xs); background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--text-2); font-size: 12px; font-weight: 700; }

.sg-radii { display: flex; flex-wrap: wrap; gap: 20px; }
.sg-radius { display: grid; place-items: center; width: 112px; height: 80px; border: 1.5px solid var(--field); background: var(--surface); font-size: 13px; font-weight: 700; }
.sg-shadows { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 32px 24px; }
.sg-shadow { display: grid; place-items: center; height: 112px; border-radius: var(--radius-m); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--text-2); }

.sg-motion { display: grid; gap: 12px; }
.sg-motion__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sg-motion__track { position: relative; height: 28px; border-radius: var(--radius-round); background: var(--bg-3); }
.sg-motion__dot { position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--sel); transition-property: transform; transition-duration: var(--d, 200ms); transition-timing-function: var(--e, ease); }
.sg-motion.is-moved .sg-motion__dot { transform: translateX(calc(var(--track-w, 300px) - 28px)); }
@media (max-width: 599px) { .sg-motion__row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

.sg-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.sg-icon { display: grid; justify-items: center; gap: 8px; padding: 16px 8px 12px; border-radius: var(--radius-s); background: var(--bg-2); color: var(--text); text-align: center; }
.sg-icon span { font-size: 12px; line-height: 1.3; color: var(--text-2); overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ Márkaelemek */
.sg-bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
@media (min-width: 768px) { .sg-bgs { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.sg-bg { display: grid; place-items: center; gap: 10px; min-height: 150px; padding: 20px; border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.sg-bg .logo { height: 60px; }
.sg-bg__name { font-size: 12px; font-weight: 600; }
.sg-bg--navy { background: var(--navy); color: var(--on-navy-2); box-shadow: none; }
.sg-bg--hero { background: var(--hero-gradient); color: var(--on-navy-2); box-shadow: none; }
.sg-bg--deep { background: var(--navy-deep); color: var(--on-navy-2); box-shadow: none; }
.sg-bg--white { background: var(--logo-tile); color: var(--on-sky); }
.sg-bg--tint { background: var(--bg-2); color: var(--text-2); }
.sg-bg--studio { background: linear-gradient(var(--studio-back-top), var(--studio-back-mid) 62%, var(--studio-floor) 62%); color: var(--on-navy-2); box-shadow: none; }
.sg-logo-sizes { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 32px; }
.sg-logo-sizes .logo { display: block; }
.sg-clear { display: inline-block; padding: 12px; outline: 1.5px dashed var(--sky); outline-offset: 0; border-radius: var(--radius-xs); }
.sg-clear .logo { height: 60px; display: block; }

.sg-mascots { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 40px; }
.sg-motif { position: relative; height: 180px; border-radius: var(--radius-m); overflow: hidden; }
.sg-motif .hero__mtn { height: 120px; }
.sg-motif--hero { background: var(--hero-gradient); }
.sg-motif--back { background: var(--hero-gradient); }
.sg-motif--back .mtn-back { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 140px; }
.sg-motif--edge { background: var(--band-yellow); display: flex; flex-direction: column; justify-content: flex-end; }
.sg-motif--edge .edge { color: var(--navy); }
.sg-motif--edge::after { content: ""; display: block; height: 40px; background: var(--navy); }

.sg-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 768px) { .sg-images { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sg-image { margin: 0; display: grid; gap: 8px; align-content: start; }
.sg-image > img, .sg-image > .img-pending { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--radius-m); background: var(--studio-stage); }
.sg-image figcaption { font-size: 12px; line-height: 1.4; color: var(--text-2); }
.sg-image figcaption b { display: block; color: var(--text); font-size: 13px; }
.sg-hero-studio { display: grid; place-items: center; padding: 24px; }
.sg-hero-studio img { width: min(100%, 560px); height: auto; }
.sg-photos { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; }
.sg-photos .sg-packshot { width: auto; max-height: 300px; }

/* ------------------------------------------------------------------ Komponensek */
.sg-narrow { width: 100%; max-width: 220px; }
@media (min-width: 1024px) { .sg__content .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .sg__content .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sg-card-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
.sg-card-row--states { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 479px) { .sg-card-row--states { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.sg-card-cell { justify-items: stretch; }
.sg-compact-cell { flex: 1 1 150px; max-width: 200px; justify-items: stretch; }
.sg-form { max-width: 560px; }
.sg-meter { max-width: 560px; }
.sg-meter + .sg-meter { margin-top: 28px; padding-top: 28px; border-top: 1px dashed var(--line-2); }
.sg-meter > .sg-label { margin-bottom: 10px; }
.sg-meters { display: grid; gap: 28px 48px; }
.sg-meters > .sg-meter { max-width: none; margin-top: 0; padding-top: 20px; border-top: 1px dashed var(--line-2); }
@media (min-width: 1280px) { .sg-meters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sg-meter-live { margin-top: 28px; }
.sg-meter-live > .sg-meter { max-width: 640px; margin-top: 24px; }
.sg-static-toast .toast { animation: none; }
.sg-drawer-preview { max-width: 420px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; }
.sg-drawer-preview .empty-state { padding: 32px 16px; }
.sg-drawer-preview__body { padding: 0 20px; }
.sg-breadcrumbs-mobile .breadcrumbs__list { display: none; }
.sg-breadcrumbs-mobile .breadcrumbs .breadcrumbs__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text-2); text-decoration: none; font-weight: 600; }
.sg-shop-header { border-radius: var(--radius-m); overflow: hidden; }
.sg-page-header { border-radius: var(--radius-m); overflow: hidden; }

/* Frozen states for the gallery (mirror components.css). */
.btn--primary.sg-force-hover { background: var(--yellow-hover); }
.btn--primary.sg-force-active { background: var(--yellow-press); box-shadow: none; transform: translateY(1px); }
.btn--secondary.sg-force-hover { background: var(--btn-2-hover); }
.btn--secondary.sg-force-active { background: var(--btn-2-press); transform: translateY(1px); }
.btn--ghost.sg-force-hover { background: var(--bg-2); }
.btn--ghost.sg-force-active { background: var(--bg-3); }
.on-navy .btn--ghost.sg-force-hover, .btn--ghost-navy.sg-force-hover, .on-navy .btn--store.sg-force-hover { background: var(--hover-on-navy); }
.on-navy .btn--ghost.sg-force-active, .btn--ghost-navy.sg-force-active, .on-navy .btn--store.sg-force-active { background: var(--press-on-navy); }
.btn--text.sg-force-hover { color: var(--link-hover); text-decoration-thickness: 2px; }
.on-navy .btn--text.sg-force-hover { color: var(--on-navy); }
.btn--danger-text.sg-force-hover { text-decoration: underline; text-underline-offset: 3px; }
.btn--store.sg-force-hover { background: var(--navy); border-color: var(--navy); }
.icon-btn.sg-force-hover { background: var(--bg-2); }
.icon-btn.sg-force-active { background: var(--bg-3); }
.on-navy .icon-btn.sg-force-hover { background: var(--hover-on-navy); }
.on-navy .icon-btn.sg-force-active { background: var(--press-on-navy); }
.sg-force-focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.input.sg-force-hover, .select.sg-force-hover, .textarea.sg-force-hover { border-color: var(--text-3); }
.input.sg-force-focus, .select.sg-force-focus, .textarea.sg-force-focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 25%, transparent); }
.chip.sg-force-hover { background: var(--bg-2); }
.stepper.sg-force-focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 25%, transparent); }
.product-card.sg-force-hover { border-color: var(--line-2); box-shadow: var(--e1); }
.product-card.sg-force-hover .product-card__img { transform: scale(1.02); }
.radio-card.sg-force-focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.check input.sg-force-focus, .radio input.sg-force-focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.segmented__label.sg-force-focus { outline: 2px solid var(--ring); outline-offset: 1px; }
.link-arrow.sg-force-hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }
.link-arrow.sg-force-hover .icon { transform: translateX(3px); }

/* ------------------------------------------------------------------ Minták */
.sg-pattern-label { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 13px; color: var(--text-2); }
.sg-pattern-label strong { color: var(--text); }
.sg-patterns-intro { padding-block: 48px 32px; }
.sg-patterns { border-top: 1px solid var(--line); }
.sgp-route { position: relative; }
/* The loupe sits on the top edge of the navy band and overlaps the yellow band above; beside the header on desktop. */
.sgp-route__head { display: grid; }
.sgp-lens { order: -1; display: flex; justify-content: flex-end; margin-top: calc(-1 * var(--section-y)); margin-bottom: 16px; }
@media (min-width: 1024px) {
  .sgp-route__head { grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: start; margin-bottom: 32px; }
  .sgp-lens { order: 0; margin-bottom: 0; }
}

/* ------------------------------------------------------------------ gallery helpers used by styleguide.html */
.sg-p { margin-top: 14px; }
.sg-spaced { margin-top: 32px; }
.sg-actions { margin-top: 16px; }
.sg-stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.sg-row--spaced { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line-2); }
.sg-kv { max-width: 760px; }
@media (max-width: 479px) { .sg-demo { padding: 16px; } }

/* Typography specimens */
.sg-type__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; }
.sg-font-button { font-size: 16px; line-height: 1.2; font-weight: 700; }
.sg-font-nav { font-size: 16px; line-height: 1.2; font-weight: 600; }
.sg-font-utility { font-size: 13px; line-height: 1.2; font-weight: 500; color: var(--text-2); }

/* Icons, favicons */
.sg-icon-sizes { margin-bottom: 20px; }
.sg-favicons { margin-top: 20px; }
.sg-favicons img { border-radius: var(--radius-s); }

/* Fields and choices */
.sg-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px; align-items: start; }
.sg-field--wide { grid-column: 1 / -1; max-width: 560px; }
.sg-fields .sg-label { margin-top: 2px; }
.sg-choices { display: grid; gap: 2px; align-content: start; min-width: 0; }
/* A floated legend is laid out like a normal first row, so it never cuts the demo panel's border. */
.sg-legend { float: left; width: 100%; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.01em; color: var(--text-3); }
.sg-demo--navy .sg-legend { color: var(--on-navy-2); }
.sg-radio-cards { max-width: 760px; }
@media (min-width: 768px) { .sg-radio-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sg-stepper-value { display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.sg-stock { gap: 10px 24px; }

/* Navigation parts */
.sg-dropdown { margin-top: 24px; }
.sg-dropdown .dropdown { position: static; animation: none; max-width: 100%; }
.sg-tabpanel { padding: 16px 4px 0; color: var(--text-2); }

/* Product page parts */
.sg-pdp { display: grid; gap: 32px; }
.sg-pdp .gallery { max-width: 480px; }
.sg-pdp__buy { display: grid; gap: 16px; align-content: start; min-width: 0; }
.sg-pdp__buy > .sg-label { margin-top: -8px; }
@media (min-width: 1024px) { .sg-pdp { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; } }

/* Cart and checkout parts */
.sg-coupon { margin-top: 16px; }
.sg-coupon__row { display: flex; gap: 8px; }
.sg-coupon__row .input { flex: 1 1 auto; min-width: 0; }
.sg-coupon__row .btn { flex: none; }

/* Account */
.sg-account { display: grid; gap: 24px; }
@media (min-width: 1024px) { .sg-account { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; } }

/* Layers: static copies of the skip link and the cookie panel */
.skip.sg-skip-static { position: static; justify-self: start; display: inline-block; outline: 2px solid var(--on-yellow); outline-offset: 2px; }
.cookie.sg-cookie-static { position: static; width: auto; max-width: 420px; animation: none; z-index: auto; }
.sg-dialog-text { margin-top: 12px; color: var(--text-2); }
/* The list row exists from 768 px; below that the page shows the compact card instead. */
.sg-phone-note { display: none; }
@media (max-width: 767px) { .sg-list-demo { display: none; } .sg-phone-note { display: block; } }
