/*
 * Casa-inspired inner-screen presentation. Load after the shared styles.
 * All rules are scoped away from the landing page; no interaction or data changes.
 */

body:not(.is-home) {
  --interior-surface: #f7f7f2;
  --interior-line: #e4e4de;
  --interior-muted: #676862;
  --interior-white: #fff;
  --interior-serif: var(--font-display, 'Libre Caslon Text', Georgia, serif);
  --interior-sans: var(--font-body, 'DM Sans', Arial, sans-serif);
  background: var(--interior-white);
  color: var(--ink, #252624);
}

body:not(.is-home) .page {
  width: 100%;
  max-width: 1200px;
  padding: 76px 40px 120px;
}

body:not(.is-home) .page-header { margin-bottom: 58px; }
body:not(.is-home) .page-header .eyebrow { margin-bottom: 22px; }
body:not(.is-home) .display-title {
  max-width: 850px;
  font: 400 clamp(46px, 5.5vw, 76px)/1.08 var(--interior-serif);
  letter-spacing: -.052em;
  text-wrap: balance;
}
body:not(.is-home) .lede {
  max-width: 610px;
  color: var(--interior-muted);
  font-size: 17px;
  line-height: 1.7;
}
body:not(.is-home) .page-header .lede { margin-top: 26px; }
body:not(.is-home) .page-header-row { gap: 32px; }
body:not(.is-home) .page-header-row > .button { flex-shrink: 0; }
body:not(.is-home) .page-header.split {
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
  gap: 48px;
  align-items: end;
}
body:not(.is-home) .page-header.split > .button { justify-self: end; }
body:not(.is-home) .back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--interior-muted);
  margin-bottom: 28px;
  font-size: 13px;
}
body:not(.is-home) .panel,
body:not(.is-home) .checkout-gate {
  min-width: 0;
  background: var(--interior-surface);
  border: 1px solid transparent;
  border-radius: 40px;
  padding: 36px;
  box-shadow: none;
}
body:not(.is-home) .panel h2,
body:not(.is-home) .checkout-gate h2 {
  font: 400 clamp(26px, 2.7vw, 36px)/1.2 var(--interior-serif);
  letter-spacing: -.04em;
}
body:not(.is-home) .panel h3 {
  font: 500 19px/1.4 var(--interior-sans);
  letter-spacing: -.025em;
}
body:not(.is-home) .panel-green { background: var(--interior-surface); }
body:not(.is-home) .split,
body:not(.is-home) .account-grid,
body:not(.is-home) .review-layout { gap: 24px; }
body:not(.is-home) .split > *,
body:not(.is-home) .review-layout > *,
body:not(.is-home) .account-grid > *,
body:not(.is-home) .form-grid > * { min-width: 0; }
body:not(.is-home) .stack { gap: 24px; }
body:not(.is-home) .muted,
body:not(.is-home) .small.muted { color: var(--interior-muted); }
body:not(.is-home) .small { font-size: 13px; line-height: 1.7; }
body:not(.is-home) .notice {
  background: #f4f4ee;
  border: 1px solid var(--interior-line);
  border-radius: 20px;
  color: #4d4e48;
  font-size: 13px;
  line-height: 1.7;
  padding: 18px 22px;
  overflow-wrap: anywhere;
}
body:not(.is-home) .panel .notice,
body:not(.is-home) .checkout-gate .notice {
  background: var(--interior-white);
  border-color: transparent;
}
body:not(.is-home) .notice-error,
body:not(.is-home) .form-error {
  background: #fcf1ed;
  color: #8e3a2c;
  border-color: #edd4cb;
}
body:not(.is-home) .pill {
  border-radius: 999px;
  background: transparent;
  border-color: #dcdcd4;
  color: #585a52;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .01em;
}
body:not(.is-home) .pill-green,
body:not(.is-home) .pill-success,
body:not(.is-home) .pill-soft { background: #eceee6; border-color: #eceee6; }
body:not(.is-home) .pill-amber,
body:not(.is-home) .pill-warm { background: #efeee6; border-color: #efeee6; }
body:not(.is-home) .input,
body:not(.is-home) .select {
  min-width: 0;
  min-height: 54px;
  border: 1px solid #d8d9d1;
  border-radius: 14px;
  background: var(--interior-white);
  padding: 14px 16px;
  font-size: 15px;
}
body:not(.is-home) .field { gap: 9px; }
body:not(.is-home) .field-label { font-size: 12px; font-weight: 500; }
body:not(.is-home) .form-grid { gap: 24px 20px; }
body:not(.is-home) .check-label { min-height: 44px; font-size: 14px; }
body:not(.is-home) .check-label input,
body:not(.is-home) .learning-choice input { accent-color: #252624; }
body:not(.is-home) .form-error { border-radius: 14px; padding: 14px 18px; }
body:not(.is-home) .empty-state { max-width: 800px; padding: 52px 0 80px; }
body:not(.is-home) .empty-state .display-title { margin-inline: auto; }
body:not(.is-home) .empty-state p { margin: 30px auto; max-width: 500px; font-size: 16px; }

/* The working range and individual products. */
body:not(.is-home) .shop-controls {
  gap: 10px;
  border-color: var(--interior-line);
  padding-bottom: 28px;
  margin-bottom: 40px;
}
body:not(.is-home) .filter-button {
  min-height: 46px;
  padding: 11px 19px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--interior-line);
  color: var(--ink, #252624);
  font-size: 12px;
}
body:not(.is-home) .filter-button:hover { background: var(--interior-surface); }
body:not(.is-home) .filter-button.active { background: #252624; color: #fff; border-color: #252624; }
body:not(.is-home) .shop-note { font-size: 11px; line-height: 1.7; }
body:not(.is-home) .products-grid { gap: 44px 28px; }
body:not(.is-home) .product-image {
  aspect-ratio: 1;
  border-radius: 36px;
  background: var(--interior-surface);
}
body:not(.is-home) .product-image img { padding: 12px; }
body:not(.is-home) .product-code { top: 24px; left: 24px; font-size: 9px; letter-spacing: .1em; }
body:not(.is-home) .product-info { padding: 24px 2px 0; }
body:not(.is-home) .product-title-row { gap: 12px; align-items: baseline; }
body:not(.is-home) .product-title-row h3 {
  font: 400 24px/1.22 var(--interior-serif);
  letter-spacing: -.04em;
}
body:not(.is-home) .product-price { font-size: 13px; }
body:not(.is-home) .product-info p { margin: 12px 0 14px; font-size: 12px; color: var(--interior-muted); }
body:not(.is-home) .product-actions { gap: 16px; flex-wrap: wrap; }
body:not(.is-home) .product-actions a { font-size: 12px; }
body:not(.is-home) .product-actions .button { min-height: 44px; padding: 10px 20px; border-radius: 999px; font-size: 12px; }
body:not(.is-home) .product-detail { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 64px; }
body:not(.is-home) .detail-art { background: var(--interior-surface); border-radius: 40px; }
body:not(.is-home) .detail-art img { padding: 24px; }
body:not(.is-home) .detail-art figcaption { padding: 0 28px 28px !important; font-size: 11px; }
body:not(.is-home) .detail-copy { padding-top: 18px; }
body:not(.is-home) .detail-copy h1 {
  font: 400 clamp(42px, 4.8vw, 62px)/1.12 var(--interior-serif);
  letter-spacing: -.05em;
  margin: 20px 0 24px;
}
body:not(.is-home) .detail-copy .lede { font-size: 16px; }
body:not(.is-home) .detail-price { margin-top: 30px; font-size: 26px; letter-spacing: -.03em; }
body:not(.is-home) .detail-copy .button-row { margin: 28px 0; gap: 22px; }
body:not(.is-home) .detail-list { margin: 30px 0; }
body:not(.is-home) .detail-list li { font-size: 13px; padding: 12px 0; border-color: var(--interior-line); }

/* Basket, setup, review and the returning-company workspace. */
body:not(.is-home) .basket-layout { grid-template-columns: minmax(0, 1.45fr) minmax(310px, 1fr); gap: 48px; }
body:not(.is-home) .basket-line { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 22px; padding: 28px 0; border-color: var(--interior-line); }
body:not(.is-home) .basket-line img { width: 96px; height: 110px; background: var(--interior-surface); border-radius: 24px; }
body:not(.is-home) .basket-line h2 { font: 400 23px/1.25 var(--interior-serif); letter-spacing: -.035em; }
body:not(.is-home) .basket-line p { margin: 9px 0 16px; font-size: 11px; }
body:not(.is-home) .line-side { padding-top: 4px; }
body:not(.is-home) .line-price { font-size: 14px; }
body:not(.is-home) .quantity-control { background: #fff; border-color: #deded7; border-radius: 999px; }
body:not(.is-home) .quantity-control button { width: 44px; height: 44px; font-size: 18px; }
body:not(.is-home) .quantity-control output { min-width: 28px; }
body:not(.is-home) .remove-line { font-size: 11px; }
body:not(.is-home) .basket-summary { top: 28px; }
body:not(.is-home) .basket-summary h2 { margin-top: 20px; }
body:not(.is-home) .summary-row { font-size: 13px; padding: 12px 0; }
body:not(.is-home) .summary-row > * { min-width: 0; }
body:not(.is-home) .summary-row > :last-child { text-align: right; }
body:not(.is-home) .summary-row.total { font-size: 16px; font-weight: 500; border-color: var(--interior-line); padding-top: 22px; }
body:not(.is-home) .basket-summary .button { margin-top: 24px; }
body:not(.is-home) .basket-summary .small { line-height: 1.75; }
body:not(.is-home) .setup-layout { max-width: 840px; }
body:not(.is-home) .setup-layout .panel { padding: 40px; }
body:not(.is-home) .setup-layout form { margin-top: 32px; }
body:not(.is-home) .setup-layout .button-row { margin-top: 32px; }
body:not(.is-home) .step-line { gap: 24px; flex-wrap: wrap; font-size: 11px; margin-bottom: 36px; color: var(--interior-muted); }
body:not(.is-home) .step-line strong { font-weight: 500; color: #252624; }
body:not(.is-home) .review-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
body:not(.is-home) .review-line { padding: 16px 0; border-color: var(--interior-line); font-size: 13px; }
body:not(.is-home) .review-line > :last-child { flex-shrink: 0; }
body:not(.is-home) .review-state { gap: 12px; line-height: 1.6; color: var(--interior-muted); }
body:not(.is-home) .status-circle { width: 40px; height: 40px; flex-shrink: 0; background: #fff; }
body:not(.is-home) .checkout-gate h2 { font-size: clamp(30px, 3vw, 40px); margin: 24px 0; }
body:not(.is-home) .checkout-gate p { font-size: 14px; line-height: 1.75; }
body:not(.is-home) .account-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
body:not(.is-home) .order-card { padding: 30px 0; border-color: var(--interior-line); }
body:not(.is-home) .order-card:first-child { padding-top: 12px; }
body:not(.is-home) .order-card h3 { font: 400 30px/1.25 var(--interior-serif); }
body:not(.is-home) .order-card p { font-size: 13px; line-height: 1.7; margin: 14px 0 18px; }
body:not(.is-home) .order-card .button { min-height: 46px; padding: 12px 20px; font-size: 12px; }

/* The system explanation and private-preview scope use the same quiet cards. */
body:not(.is-home) .process-grid { gap: 40px; }
body:not(.is-home) .process-step { min-width: 0; border-color: var(--interior-line); padding-top: 28px; }
body:not(.is-home) .process-step .eyebrow { margin-bottom: 28px; color: var(--interior-muted); }
body:not(.is-home) .process-step h2 { font: 400 30px/1.25 var(--interior-serif); letter-spacing: -.04em; margin-bottom: 22px; }
body:not(.is-home) .process-step p { font-size: 14px; line-height: 1.8; color: var(--interior-muted); }
body:not(.is-home) .system-callout { margin-top: 72px; padding: 48px; background: var(--interior-surface); border-radius: 40px; gap: 36px; }
body:not(.is-home) .system-callout h2 { font: 400 42px/1.15 var(--interior-serif); letter-spacing: -.045em; }
body:not(.is-home) .system-callout .button { flex-shrink: 0; }
body:not(.is-home) .table-wrap { max-width: 100%; scrollbar-width: thin; scrollbar-color: #c9cac2 transparent; }
body:not(.is-home) table { font-size: 13px; }
body:not(.is-home) th,
body:not(.is-home) td { padding: 18px 10px; border-color: var(--interior-line); }
body:not(.is-home) th { color: var(--interior-muted); font-size: 10px; letter-spacing: .055em; font-weight: 500; }
body:not(.is-home) th[scope='row'] { width: 34%; }

/* Team learning: useful operational information with the Casa editorial rhythm. */
body:not(.is-home) .learning-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
body:not(.is-home) .learning-grid > * { min-width: 0; }
body:not(.is-home) .learning-card { padding: 36px; border-radius: 40px; background: var(--interior-surface); border-color: transparent; }
body:not(.is-home) .learning-card h2,
body:not(.is-home) .learning-card h3 { font: 400 32px/1.22 var(--interior-serif); letter-spacing: -.04em; margin-bottom: 18px; }
body:not(.is-home) .learning-card p { font-size: 14px; line-height: 1.8; }
body:not(.is-home) .learning-card > .pill + h2 { margin-top: 24px; }
body:not(.is-home) .learning-card > .section-heading { gap: 16px; margin-bottom: 22px; }
body:not(.is-home) .learning-card > .section-heading h2 { margin: 0; }
body:not(.is-home) .learning-meta { align-content: end; justify-content: flex-start; gap: 16px; margin: 0; }
body:not(.is-home) .learning-meta p { font-size: 15px; }
body:not(.is-home) .learning-meta .button { margin-top: 4px; }
body:not(.is-home) .learning-stat-grid { gap: 20px; margin: 28px 0 32px; }
body:not(.is-home) .learning-stat { padding: 26px 30px; border-radius: 28px; font-size: 12px; line-height: 1.7; }
body:not(.is-home) .learning-stat strong { font: 400 48px/1.15 var(--interior-serif); letter-spacing: -.05em; margin: 8px 0; }
body:not(.is-home) .learning-person { gap: 12px; }
body:not(.is-home) .learning-person strong { font-size: 13px; font-weight: 500; }
body:not(.is-home) .learning-person small { font-size: 10px; white-space: normal; }
body:not(.is-home) .learning-avatar { width: 36px; height: 36px; background: #eaece3; font-weight: 500; }
body:not(.is-home) .learning-card .table-wrap { margin: 0; }
body:not(.is-home) .learning-card table { min-width: 470px; }
body:not(.is-home) .learning-card th,
body:not(.is-home) .learning-card td { padding: 18px 8px; }
body:not(.is-home) .learning-card th:first-child,
body:not(.is-home) .learning-card td:first-child { padding-left: 0; }
body:not(.is-home) .learning-card th:last-child,
body:not(.is-home) .learning-card td:last-child { padding-right: 0; }
body:not(.is-home) .learning-card .learning-row-actions .button { min-height: 44px; font-size: 11px; padding: 10px 0; text-align: left; }
body:not(.is-home) .learning-card .progress { height: 4px; margin-top: 12px; background: #e0e2d8; }
body:not(.is-home) .learning-card .progress > span { background: #777a70; }
body:not(.is-home) .learning-card .learning-footnote { font-size: 11px; line-height: 1.75; margin-top: 24px; }
body:not(.is-home) .learning-card form.stack { margin-top: 28px; gap: 22px; }
body:not(.is-home) .learning-stepper { gap: 28px; margin: 0 0 32px; padding: 0; font-size: 12px; }
body:not(.is-home) .learning-stepper li { gap: 10px; }
body:not(.is-home) .learning-stepper li > span { width: 34px; height: 34px; background: #fff; border-color: var(--interior-line); font-size: 11px; }
body:not(.is-home) .learning-stepper .is-current > span { background: #252624; color: #fff; border-color: #252624; }
body:not(.is-home) .learning-stepper .is-done > span { background: #eceee6; }
body:not(.is-home) .learning-stepper [aria-current='step'] { font-weight: 500; }
body:not(.is-home) .learning-choice { gap: 13px; min-height: 56px; padding: 17px 18px; background: #fff; border: 1px solid #deded6; border-radius: 18px; font-size: 14px; line-height: 1.7; }
body:not(.is-home) .learning-choice:has(input:checked) { border-color: #75796c; background: #fcfcf8; }
body:not(.is-home) .learning-choice input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
body:not(.is-home) .learning-choice small { margin-top: 8px; font-size: 11px; line-height: 1.7; }
body:not(.is-home) .learning-video-placeholder { min-height: 220px; padding: 32px 24px; margin: 28px 0; background: #efefe8; border: 1px solid #e1e1d8; border-radius: 26px; color: var(--interior-muted); }
body:not(.is-home) .learning-video-placeholder svg { width: 48px; height: 48px; margin-bottom: 6px; }
body:not(.is-home) .learning-video-placeholder strong { font-size: 15px; font-weight: 500; color: #252624; }
body:not(.is-home) .learning-video-placeholder p { font-size: 12px; line-height: 1.7; max-width: 310px; margin: 0 auto; }
body:not(.is-home) .learning-lesson-list { margin: 30px 0; padding-left: 20px; }
body:not(.is-home) .learning-lesson-list li { padding: 0 0 26px 8px; font-size: 14px; }
body:not(.is-home) .learning-lesson-list li::marker { color: var(--interior-muted); }
body:not(.is-home) .learning-lesson-list li:last-child { padding-bottom: 0; }
body:not(.is-home) .learning-lesson-list p { margin-top: 8px; }
body:not(.is-home) .learning-details { margin: 24px 0; font-size: 12px; }
body:not(.is-home) .learning-details > div { grid-template-columns: 1fr 1.25fr; gap: 20px; padding: 15px 0; border-color: var(--interior-line); }
body:not(.is-home) .learning-details dd { overflow-wrap: anywhere; }
body:not(.is-home) .learning-actions { gap: 12px; margin-top: 28px; }
body:not(.is-home) .learning-card .learning-actions .button { margin: 0; }
body:not(.is-home) .learning-quiz { max-width: 820px; padding: 42px; }
body:not(.is-home) .learning-question { min-width: 0; margin: 0; padding: 22px; background: transparent; border: 1px solid #dcded2; border-radius: 24px; }
body:not(.is-home) .learning-question legend { max-width: 100%; padding: 0 10px; font-size: 15px; line-height: 1.65; }
body:not(.is-home) .learning-question legend .eyebrow { margin-bottom: 10px; }
body:not(.is-home) .learning-options { gap: 12px; margin: 14px 0 0; }
body:not(.is-home) .learning-feedback { background: #eaece2; color: #45493e; font-size: 13px; border-radius: 16px; padding: 16px 18px; margin-top: 18px; }
body:not(.is-home) .learning-complete-mark { width: 64px; height: 64px; background: #252624; color: #fff; margin-bottom: 30px; font-size: 26px; }
body:not(.is-home) .learning-notice-preview { padding-left: 20px; margin: 28px 0; border-left: 1px solid #bfc3b4; font: 400 27px/1.5 var(--interior-serif); letter-spacing: -.03em; }
body:not(.is-home) .learning-guide-grid { gap: 24px; margin-top: 32px; }
body:not(.is-home) .learning-guide { min-height: 350px; gap: 20px; padding: 30px; }
body:not(.is-home) .learning-guide h2 { font-size: 30px; margin: 0; }
body:not(.is-home) .learning-guide .eyebrow { margin: 0; }
body:not(.is-home) .learning-guide .pill { margin-top: auto; }
body:not(.is-home) .learning-guide p { font-size: 13px; line-height: 1.75; }
body:not(.is-home) .learning-guide p.muted { font-size: 12px; }
body:not(.is-home) .learning-language-panel { grid-template-columns: 1fr 1.4fr; gap: 52px; margin-top: 24px; padding: 40px; }
body:not(.is-home) .learning-language-tags { gap: 8px; margin-top: 26px; }
body:not(.is-home) .learning-bottom-link { margin-top: 32px; min-height: 44px; display: flex; align-items: center; line-height: 1.7; }

@media (max-width: 1050px) {
  body:not(.is-home) .page { padding-top: 56px; }
  body:not(.is-home) .product-detail { gap: 40px; }
  body:not(.is-home) .basket-layout { gap: 28px; grid-template-columns: minmax(0, 1.3fr) minmax(290px, 1fr); }
  body:not(.is-home) .basket-line { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; }
  body:not(.is-home) .basket-line img { width: 76px; height: 94px; border-radius: 20px; }
  body:not(.is-home) .basket-line h2 { font-size: 21px; }
  body:not(.is-home) .learning-grid { grid-template-columns: 1fr; }
  body:not(.is-home) .learning-aside { max-width: none; }
  body:not(.is-home) .learning-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.is-home) .learning-meta { display: grid; justify-items: start; }
  body:not(.is-home) .process-grid { gap: 24px; }
  body:not(.is-home) .process-step h2 { font-size: 27px; }
}

@media (max-width: 760px) {
  body:not(.is-home) .page { padding: 42px 20px 80px; }
  body:not(.is-home) .page-header { margin-bottom: 36px; }
  body:not(.is-home) .page-header .eyebrow { margin-bottom: 18px; }
  body:not(.is-home) .display-title { font-size: clamp(40px, 8.6vw, 58px); line-height: 1.12; letter-spacing: -.05em; }
  body:not(.is-home) .page-header .lede { margin-top: 22px; font-size: 15px; }
  body:not(.is-home) .page-header-row { display: flex; align-items: start; flex-direction: column; gap: 24px; }
  body:not(.is-home) .page-header-row > .button { margin: 0; }
  body:not(.is-home) .page-header.split { grid-template-columns: 1fr; gap: 26px; }
  body:not(.is-home) .page-header.split > .button { justify-self: start; }
  body:not(.is-home) .panel,
  body:not(.is-home) .checkout-gate,
  body:not(.is-home) .learning-card { border-radius: 30px; padding: 28px; }
  body:not(.is-home) .panel h2,
  body:not(.is-home) .learning-card h2 { font-size: 30px; }
  body:not(.is-home) .split,
  body:not(.is-home) .review-layout,
  body:not(.is-home) .account-grid,
  body:not(.is-home) .basket-layout,
  body:not(.is-home) .product-detail { grid-template-columns: 1fr; gap: 26px; }
  body:not(.is-home) .notice { padding: 17px 20px; border-radius: 18px; font-size: 12px; }
  body:not(.is-home) .empty-state { padding: 34px 0 60px; }
  body:not(.is-home) .empty-state p { font-size: 15px; margin-block: 24px; }
  body:not(.is-home) .shop-controls { gap: 8px; padding-bottom: 24px; margin-bottom: 28px; }
  body:not(.is-home) .filter-button { font-size: 11px; padding: 10px 15px; }
  body:not(.is-home) .shop-note { flex-basis: 100%; margin: 6px 0 0; }
  body:not(.is-home) .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
  body:not(.is-home) .product-image { border-radius: 26px; aspect-ratio: .9; }
  body:not(.is-home) .product-image img { padding: 5px; }
  body:not(.is-home) .product-code { top: 18px; left: 16px; font-size: 8px; }
  body:not(.is-home) .product-info { padding: 18px 1px 0; }
  body:not(.is-home) .product-title-row { flex-direction: column; gap: 7px; }
  body:not(.is-home) .product-title-row h3 { font-size: 22px; }
  body:not(.is-home) .product-price { font-size: 12px; }
  body:not(.is-home) .product-info p { font-size: 10px; line-height: 1.7; }
  body:not(.is-home) .product-actions { gap: 8px; }
  body:not(.is-home) .product-actions a { font-size: 11px; }
  body:not(.is-home) .product-actions .button { padding: 10px 15px; font-size: 11px; }
  body:not(.is-home) .detail-art { border-radius: 30px; }
  body:not(.is-home) .detail-art img { padding: 18px; max-height: 550px; }
  body:not(.is-home) .detail-copy { padding-top: 8px; }
  body:not(.is-home) .detail-copy h1 { font-size: clamp(40px, 8.5vw, 56px); }
  body:not(.is-home) .basket-line { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 18px; padding: 24px 0; }
  body:not(.is-home) .basket-line img { width: 84px; height: 105px; }
  body:not(.is-home) .basket-line h2 { font-size: 23px; }
  body:not(.is-home) .basket-summary { position: static; }
  body:not(.is-home) .setup-layout .panel { padding: 28px; }
  body:not(.is-home) .form-grid { grid-template-columns: 1fr; gap: 22px; }
  body:not(.is-home) .input,
  body:not(.is-home) .select { font-size: 16px; }
  body:not(.is-home) .step-line { gap: 12px 20px; margin-bottom: 26px; font-size: 10px; }
  body:not(.is-home) .process-grid { grid-template-columns: 1fr; gap: 36px; }
  body:not(.is-home) .process-step { padding-top: 24px; }
  body:not(.is-home) .process-step .eyebrow { margin-bottom: 22px; }
  body:not(.is-home) .process-step h2 { font-size: 32px; }
  body:not(.is-home) .system-callout { padding: 32px; border-radius: 30px; margin-top: 44px; display: block; }
  body:not(.is-home) .system-callout h2 { font-size: 36px; }
  body:not(.is-home) .system-callout .button { margin-top: 28px; }
  body:not(.is-home) .learning-meta { display: flex; gap: 12px; flex-wrap: wrap; }
  body:not(.is-home) .learning-meta p { flex-basis: 100%; margin-top: 0; }
  body:not(.is-home) .learning-stat-grid { gap: 10px; margin: 24px 0; }
  body:not(.is-home) .learning-stat { border-radius: 22px; padding: 20px 15px; font-size: 10px; }
  body:not(.is-home) .learning-stat strong { font-size: 38px; margin-block: 8px; }
  body:not(.is-home) .learning-stepper { gap: 14px 20px; margin-bottom: 28px; font-size: 11px; }
  body:not(.is-home) .learning-stepper li { gap: 7px; }
  body:not(.is-home) .learning-stepper li > span { width: 30px; height: 30px; }
  body:not(.is-home) .learning-card > .section-heading { align-items: start; flex-wrap: wrap; }
  body:not(.is-home) .learning-details > div { grid-template-columns: 1fr 1.2fr; gap: 18px; }
  body:not(.is-home) .learning-question { padding: 18px 14px; border-radius: 20px; }
  body:not(.is-home) .learning-question legend { padding-inline: 8px; font-size: 14px; }
  body:not(.is-home) .learning-choice { padding: 15px; font-size: 13px; border-radius: 16px; }
  body:not(.is-home) .learning-video-placeholder { padding: 28px 20px; border-radius: 22px; }
  body:not(.is-home) .learning-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  body:not(.is-home) .learning-guide { min-height: 360px; padding: 26px; gap: 18px; }
  body:not(.is-home) .learning-guide h2 { font-size: 27px; }
  body:not(.is-home) .learning-language-panel { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  body:not(.is-home) .page { padding-top: 34px; }
  body:not(.is-home) .panel,
  body:not(.is-home) .checkout-gate,
  body:not(.is-home) .learning-card,
  body:not(.is-home) .setup-layout .panel { padding: 24px; border-radius: 28px; }
  body:not(.is-home) .products-grid { gap: 30px 14px; }
  body:not(.is-home) .product-image { border-radius: 22px; }
  body:not(.is-home) .product-title-row h3 { font-size: 20px; }
  body:not(.is-home) .product-code { left: 12px; top: 14px; letter-spacing: .04em; }
  body:not(.is-home) .product-actions { display: grid; justify-items: start; gap: 0; }
  body:not(.is-home) .product-actions .button { min-width: 75px; }
  body:not(.is-home) .basket-line { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; }
  body:not(.is-home) .basket-line img { width: 68px; height: 92px; border-radius: 18px; }
  body:not(.is-home) .basket-line h2 { font-size: 22px; }
  body:not(.is-home) .line-side { grid-column: 2; display: flex; justify-content: space-between; align-items: center; text-align: left; padding-top: 0; margin-top: -8px; }
  body:not(.is-home) .line-price { font-size: 13px; }
  body:not(.is-home) .review-line { font-size: 12px; gap: 14px; }
  body:not(.is-home) .summary-row { gap: 14px; font-size: 12px; }
  body:not(.is-home) .summary-row.total { font-size: 15px; }
  body:not(.is-home) .learning-stat-grid { gap: 8px; }
  body:not(.is-home) .learning-stat { padding: 17px 12px; border-radius: 20px; }
  body:not(.is-home) .learning-stat strong { font-size: 34px; }
  body:not(.is-home) .learning-stat > span:last-child { display: block; font-size: 9px; line-height: 1.6; }
  body:not(.is-home) .learning-stepper { gap: 14px; font-size: 10px; }
  body:not(.is-home) .learning-stepper li { gap: 6px; }
  body:not(.is-home) .learning-stepper li > span { width: 27px; height: 27px; }
  body:not(.is-home) .learning-guide-grid { grid-template-columns: 1fr; gap: 16px; }
  body:not(.is-home) .learning-guide { min-height: 300px; gap: 18px; }
  body:not(.is-home) .learning-guide h2 { font-size: 30px; }
  body:not(.is-home) .learning-actions { align-items: stretch; }
  body:not(.is-home) .learning-actions .button { width: 100%; }
  body:not(.is-home) .learning-details > div { grid-template-columns: 1fr; gap: 6px; }
  body:not(.is-home) .learning-question { padding: 16px 10px; }
  body:not(.is-home) .learning-choice { gap: 10px; padding: 14px; }
  body:not(.is-home) .learning-notice-preview { font-size: 25px; padding-left: 16px; }
}

/* Keep the real table markup and headings, but bring every row action into view. */
@media (max-width: 600px) {
  body:not(.is-home) .learning-card table { min-width: 0; }
  body:not(.is-home) .learning-card thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body:not(.is-home) .learning-card tbody { display: block; }
  body:not(.is-home) .learning-card tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--interior-line);
  }
  body:not(.is-home) .learning-card td,
  body:not(.is-home) .learning-card td:first-child,
  body:not(.is-home) .learning-card td:last-child {
    min-width: 0;
    padding: 0;
    border: 0;
  }
  body:not(.is-home) .learning-card td:first-child { grid-column: 1 / -1; padding-bottom: 18px; }
  body:not(.is-home) .learning-card td:nth-child(2) { align-self: center; }
  body:not(.is-home) .learning-card td:nth-child(3) { align-self: center; }
  body:not(.is-home) .learning-card .learning-row-actions .button { font-size: 11px; line-height: 1.6; }
  body:not(.is-home) .learning-person strong { font-size: 15px; }
  body:not(.is-home) .learning-person small { font-size: 11px; }
  body:not(.is-home) .learning-card .progress { margin-top: 9px; }
}
