/* ======================================================================
   Size Guide page CSS — scoped under .sks-guide-size
   Adapted from ui/size-guide-popup.html, calculator section removed.
   ====================================================================== */

/* RESET — wipe Dawn's bleed inside our scope, then rebuild.
   IMPORTANT: skip SVG descendants. SVG elements style themselves via
   presentation attributes (fill="..." stroke="..."); applying all:revert
   to <line>/<path>/<circle> overrides those attributes with user-agent
   CSS defaults (black fill / no stroke), hiding the entire diagram. */
.sks-guide-size,
.sks-guide-size *:not(svg *),
.sks-guide-size *:not(svg *)::before,
.sks-guide-size *:not(svg *)::after { all: revert; box-sizing: border-box; }
.sks-guide-size *:not(svg *) { margin: 0; padding: 0; }

/* ROOT — full-width escape so the sand bg covers the viewport */
.sks-guide-size {
  --sand: #E6DDCB; --cream: #F3EEE4; --cream-2: #FBF8F2; --paper: #FFFDF9;
  --ink: #2A2620; --ink-soft: #6E665A; --ink-faint: #938A7B;
  --terra: #BD5A28; --terra-dk: #9C481D; --line: #D9D0BF; --line-soft: #E7DFCF;
  --waist: #3B6CA8; --hip: #C0392B; --fell: #9C7A3C; --length: #5E8A4F;
  --shadow: 0 1px 2px rgba(42,38,32,.05), 0 18px 50px rgba(42,38,32,.16);

  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--sand) !important;
  font-family: "Hanken Grotesk", system-ui, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--ink-soft) !important;
  -webkit-font-smoothing: antialiased;
  padding: 0 0 56px;
  overflow-x: hidden;
}

.sks-guide-size h1,
.sks-guide-size h2,
.sks-guide-size h3,
.sks-guide-size .serif {
  font-family: "Playfair Display", Georgia, serif !important;
  color: var(--ink) !important;
  letter-spacing: -.01em;
  line-height: 1.15 !important;
  font-weight: 600 !important;
}
.sks-guide-size .eyebrow {
  font-family: "Hanken Grotesk", sans-serif !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terra) !important;
}
.sks-guide-size p,
.sks-guide-size span,
.sks-guide-size div,
.sks-guide-size td,
.sks-guide-size th { font-family: "Hanken Grotesk", system-ui, sans-serif !important; }
.sks-guide-size a { color: var(--terra); text-decoration: none; }
.sks-guide-size a:hover { color: var(--terra-dk); }

/* CONTAINER */
.sks-guide-size .container {
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 24px 0;
}

/* HEADER */
.sks-guide-size .ghead { text-align: center; margin-bottom: 32px; }
.sks-guide-size .ghead .eyebrow { display: block; margin-bottom: 12px; }
.sks-guide-size .ghead h2 {
  font-size: clamp(36px, 5.4vw, 56px) !important;
  margin: 0 0 12px;
}
.sks-guide-size .ghead h2 em { font-style: normal; color: var(--terra) !important; }
.sks-guide-size .ghead p {
  font-size: 18px !important;
  max-width: 580px;
  margin: 0 auto;
  color: var(--ink-soft) !important;
  line-height: 1.6 !important;
}

/* WARNING CALLOUT */
.sks-guide-size .warn {
  display: flex;
  gap: 14px;
  background: #FBEFE6;
  border: 1px solid #E8C9B2;
  border-radius: 14px;
  padding: 20px 22px;
  margin: 30px 0 36px;
}
.sks-guide-size .warn .ic {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--terra);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700 !important;
  font-family: "Playfair Display", serif !important;
  font-size: 20px !important;
}
.sks-guide-size .warn p {
  font-size: 16px !important;
  margin: 0;
  color: var(--ink-soft) !important;
  line-height: 1.55 !important;
}
.sks-guide-size .warn b { color: var(--ink) !important; font-weight: 600 !important; }

/* 2-COLUMN LAYOUT: figure + steps */
.sks-guide-size .cols {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}
.sks-guide-size .figwrap {
  position: sticky;
  top: 20px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 22px 18px 16px;
}
.sks-guide-size .figwrap svg { width: 100%; height: auto; display: block; }
.sks-guide-size .mline { transition: opacity .2s; }
.sks-guide-size .figwrap.focus .mline { opacity: .16; }
.sks-guide-size .figwrap.focus .mline.on { opacity: 1; }
.sks-guide-size .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.sks-guide-size .legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px !important;
  color: var(--ink-soft) !important;
}
.sks-guide-size .legend i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

/* STEPS */
.sks-guide-size .steps { display: grid; gap: 14px; }
.sks-guide-size .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 20px 22px;
  text-align: left;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.sks-guide-size .step:hover {
  border-color: var(--terra);
  box-shadow: 0 8px 22px rgba(42,38,32,.07);
  transform: translateY(-1px);
}
.sks-guide-size .step .num {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  color: #fff !important;
  font-family: "Playfair Display", serif !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sks-guide-size .step[data-line="waist"] .num { background: var(--waist); }
.sks-guide-size .step[data-line="hip"] .num { background: var(--hip); }
.sks-guide-size .step[data-line="fell"] .num { background: var(--fell); }
.sks-guide-size .step[data-line="length"] .num { background: var(--length); }
.sks-guide-size .step h3 { font-size: 20px !important; margin-bottom: 4px; }
.sks-guide-size .step p {
  font-size: 15px !important;
  margin: 0;
  color: var(--ink-soft) !important;
  line-height: 1.55 !important;
}

/* SIZE CHART (always expanded — not a <details>) */
.sks-guide-size .chart {
  margin-top: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}
.sks-guide-size .chart-head {
  padding: 16px 22px;
  background: var(--cream-2);
  font-weight: 600 !important;
  color: var(--ink) !important;
  font-family: "Playfair Display", serif !important;
  font-size: 18px !important;
  border-bottom: 1px solid var(--line-soft);
}
.sks-guide-size .chart table { width: 100%; border-collapse: collapse; font-size: 15px !important; }
.sks-guide-size .chart th,
.sks-guide-size .chart td {
  padding: 12px 22px;
  text-align: left;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft) !important;
}
.sks-guide-size .chart th {
  background: var(--paper);
  font-size: 12px !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint) !important;
  font-weight: 600 !important;
  border-top: none;
}
.sks-guide-size .chart td:first-child {
  font-family: "Playfair Display", serif !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  font-size: 17px !important;
}
.sks-guide-size .chart .note {
  padding: 14px 22px;
  font-size: 13px !important;
  color: var(--ink-faint) !important;
  background: var(--cream-2);
  border-top: 1px solid var(--line-soft);
}

/* VIDEO CTA */
.sks-guide-size .vid {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  background: var(--ink);
  border-radius: 14px;
  padding: 20px 24px;
  color: #EDE6D9 !important;
  text-decoration: none !important;
  transition: transform .18s;
}
.sks-guide-size .vid:hover { transform: translateY(-1px); }
.sks-guide-size .vid .play {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sks-guide-size .vid .play svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }
.sks-guide-size .vid b {
  color: #FBF8F2 !important;
  font-family: "Playfair Display", serif !important;
  font-size: 18px !important;
  display: block;
  font-weight: 600 !important;
  margin-bottom: 2px;
}
.sks-guide-size .vid small { color: #C9BFAE !important; font-size: 14px !important; }
.sks-guide-size .vid .yt {
  margin-left: auto;
  font-size: 12px !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #C9BFAE !important;
  font-weight: 600 !important;
}

/* FULL GUIDE LINK */
.sks-guide-size .fulllink {
  display: block;
  text-align: center;
  margin-top: 28px;
  font-size: 15px !important;
  color: var(--terra) !important;
  text-decoration: none !important;
}
.sks-guide-size .fulllink:hover {
  color: var(--terra-dk) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* RESPONSIVE */
@media (max-width: 760px) {
  .sks-guide-size .container { padding: 44px 20px 0; }
  .sks-guide-size .cols { grid-template-columns: 1fr; gap: 28px; }
  .sks-guide-size .figwrap { position: static; max-width: 320px; margin: 0 auto; }
  .sks-guide-size .vid { flex-wrap: wrap; }
  .sks-guide-size .vid .yt { margin-left: 0; width: 100%; margin-top: 6px; }
}
@media (max-width: 520px) {
  .sks-guide-size .container { padding: 36px 16px 0; }
  .sks-guide-size .step { padding: 16px 18px; }
  .sks-guide-size .chart th,
  .sks-guide-size .chart td { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sks-guide-size * { transition: none !important; }
}
