/* 1631 — Size Chart (/size-chart). Bespoke rp-UI page: hero + video, three clickable dimension tables
   (Stand Up / Flat Bottom / 3-Side Seal), CTA. Scoped to .rp-sizechart. Shares breadcrumb/container
   from rp-industry-builder.css. */

.rp-sizechart {
  --red: #db0f16;
  --red-dark: #b50c12;
  --red-soft: #fdeff0;
  --ink: #1c1c1c;
  --muted: #6b6b68;
  --line: #e6e3de;
  --cream: #f7f4ef;
  --panel: #faf8f4;
  --green: #1a7a35;
  --radius: 16px;
  color: var(--ink);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
}
.rp-sizechart *,
.rp-sizechart *::before,
.rp-sizechart *::after { box-sizing: border-box; }

.rp-sizechart .container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- shared bits ---------- */
.rp-sizechart .sc-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.rp-sizechart .sc-btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; line-height: 1;
  transition: background .15s, color .15s, border-color .15s, transform .08s; white-space: nowrap;
}
.rp-sizechart .sc-btn:active { transform: translateY(1px); }
.rp-sizechart .sc-btn--primary { background: var(--red); color: #fff; }
.rp-sizechart .sc-btn--primary:hover { background: var(--red-dark); }
.rp-sizechart .sc-btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.rp-sizechart .sc-btn--ghost:hover { border-color: var(--ink); }
.rp-sizechart .sc-btn--line { background: #fff; color: var(--ink); border: 1px solid rgba(255,255,255,.55); }

/* ---------- hero ---------- */
.rp-sizechart .sc-hero { padding: 34px 0 26px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--cream), #fff); }
.rp-sizechart .sc-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
/* force deterministic placement (a global .container/figure rule can otherwise reverse auto-flow) */
.rp-sizechart .sc-hero__copy { grid-column: 1; float: none; }
.rp-sizechart .sc-video { grid-column: 2; float: none; }
.rp-sizechart .sc-hero__title { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
.rp-sizechart .sc-hero__intro { font-size: 16px; line-height: 1.65; color: #44423e; max-width: 44ch; }
.rp-sizechart .sc-hero__intro p { margin: 0 0 10px; }
.rp-sizechart .sc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- video ---------- */
.rp-sizechart .sc-video { margin: 0; }
.rp-sizechart .sc-video__frame {
  position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); border: 1px solid var(--line);
}
.rp-sizechart .sc-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rp-sizechart .sc-video__cap { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }

/* ---------- tabs ---------- */
.rp-sizechart .sc-main { padding: 34px 0 10px; }
.rp-sizechart .sc-tabinput { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.rp-sizechart .sc-tabbar { display: inline-flex; gap: 6px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 24px; flex-wrap: wrap; }
.rp-sizechart .sc-tab {
  cursor: pointer; font-weight: 600; font-size: 15px; padding: 10px 20px; border-radius: 999px;
  color: var(--muted); transition: background .15s, color .15s; user-select: none;
}
.rp-sizechart .sc-tab:hover { color: var(--ink); }
.rp-sizechart #sc-standup:checked ~ .sc-tabbar .sc-tab[for="sc-standup"],
.rp-sizechart #sc-flat:checked    ~ .sc-tabbar .sc-tab[for="sc-flat"],
.rp-sizechart #sc-three:checked   ~ .sc-tabbar .sc-tab[for="sc-three"] { background: var(--red); color: #fff; }
/* keyboard focus visibility on the labels' inputs */
.rp-sizechart .sc-tabinput:focus-visible ~ .sc-tabbar .sc-tab { outline: none; }

.rp-sizechart .sc-panel { display: none; }
.rp-sizechart #sc-standup:checked ~ .sc-panel--standup,
.rp-sizechart #sc-flat:checked    ~ .sc-panel--flat,
.rp-sizechart #sc-three:checked   ~ .sc-panel--three { display: block; }

/* ---------- panel head ---------- */
.rp-sizechart .sc-panelhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.rp-sizechart .sc-panelhead__ttl { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px; }
.rp-sizechart .sc-panelhead__sub { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 60ch; }
.rp-sizechart .sc-viewall {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--red);
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.rp-sizechart .sc-viewall:hover { color: var(--red-dark); }
.rp-sizechart .sc-viewall svg { transition: transform .15s; }
.rp-sizechart .sc-viewall:hover svg { transform: translateX(3px); }

/* ---------- table ---------- */
.rp-sizechart .sc-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
.rp-sizechart .sc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 1000px; }
/* dimension-only tables (Flat Bottom / 3-Side Seal): compact, not stretched across the full width */
.rp-sizechart .sc-scroll--slim { max-width: 560px; }
.rp-sizechart .sc-table--slim { min-width: 0; }
.rp-sizechart .sc-code--dim { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.rp-sizechart .sc-table thead th {
  background: var(--ink); color: #fff; font-weight: 600; font-size: 12.5px; text-align: center;
  padding: 12px 12px; vertical-align: middle; border-bottom: 1px solid var(--ink);
}
.rp-sizechart .sc-table thead .sc-th-group { background: var(--red); border-left: 1px solid rgba(255,255,255,.18); border-right: 1px solid rgba(255,255,255,.18); font-size: 12px; letter-spacing: .02em; }
.rp-sizechart .sc-table .sc-th-size { text-align: left; padding-left: 18px; }
.rp-sizechart .sc-table .sc-th-note { font-weight: 400; font-size: 11px; opacity: .7; }
.rp-sizechart .sc-table .sc-th-go { width: 44px; }
.rp-sizechart .sc-table tbody td { padding: 12px; text-align: center; border-bottom: 1px solid var(--line); color: #3a3833; white-space: nowrap; }
.rp-sizechart .sc-table tbody tr:last-child td { border-bottom: 0; }
.rp-sizechart .sc-table tbody tr[data-href] { cursor: pointer; transition: background .12s; }
.rp-sizechart .sc-table tbody tr[data-href]:hover { background: var(--red-soft); }
.rp-sizechart .sc-td-size { text-align: left !important; padding-left: 18px !important; }
.rp-sizechart .sc-td-dim { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.rp-sizechart .sc-td-muted { font-weight: 500; color: var(--muted); }
.rp-sizechart .sc-blank { color: #c3bfb6; }  /* empty capacity/thickness cell — awaiting supplier figures */
.rp-sizechart .sc-code {
  display: inline-block; font-weight: 700; color: var(--ink); text-decoration: none;
  background: var(--cream); border: 1px solid var(--line); padding: 4px 11px; border-radius: 7px; font-size: 13.5px;
}
.rp-sizechart tr[data-href]:hover .sc-code { background: #fff; border-color: var(--red); color: var(--red); }
.rp-sizechart .sc-td-go { width: 44px; }
.rp-sizechart .sc-go { color: var(--line); font-size: 16px; transition: color .12s, transform .12s; display: inline-block; }
.rp-sizechart tr[data-href]:hover .sc-go { color: var(--red); transform: translateX(3px); }

/* ---------- disclaimer ---------- */
.rp-sizechart .sc-disclaimer {
  margin: 22px 0 6px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--red); border-radius: 10px; font-size: 13.5px; line-height: 1.6; color: var(--muted);
}

/* ---------- CTA ---------- */
.rp-sizechart .sc-cta { margin-top: 36px; background: var(--ink); color: #fff; }
.rp-sizechart .sc-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 16px; flex-wrap: wrap; }
.rp-sizechart .sc-cta__ttl { font-size: 24px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; color: #fff; } /* 1782 — white for contrast on the dark CTA (beats the global h1..h6{color:#444}) */
.rp-sizechart .sc-cta__sub { font-size: 15px; color: rgba(255,255,255,.72); margin: 0; max-width: 52ch; }
.rp-sizechart .sc-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rp-sizechart .sc-cta .sc-btn--line:hover { background: rgba(255,255,255,.1); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .rp-sizechart .sc-hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .rp-sizechart .sc-hero__intro { max-width: none; }
  .rp-sizechart .sc-panelhead { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rp-sizechart .sc-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .rp-sizechart .sc-tabbar { display: flex; width: 100%; }
  .rp-sizechart .sc-tab { flex: 1; text-align: center; padding: 10px 10px; font-size: 13.5px; }
  .rp-sizechart .sc-btn { width: 100%; justify-content: center; }
  .rp-sizechart .sc-hero__actions, .rp-sizechart .sc-cta__actions { width: 100%; }
}
