/* Educational-page layout; controls and the prepared demo reuse the shared V1 layer. */
[hidden] { display: none !important; }
body { --border-default: var(--border-width) var(--border-style) var(--border-color); }
.ux-skip { position: fixed; top: -80px; left: 16px; z-index: 2000; padding: 12px 20px; background: var(--bg-primary); color: var(--text-primary); border: 2px solid var(--color-corp-blue); }
.ux-skip:focus { top: 8px; }
.ux-header .header-left { min-width: 0; gap: 16px; }
.ux-header img { display: block; width: 194px; height: auto; }
.ux-page-title { border-left: 1px solid var(--border-color); padding-left: 24px; font-weight: 600; font-size: 17px; white-space: nowrap; }
.ux-header-actions { display: flex; align-items: center; gap: 12px; }
.ux-system-link { color: var(--text-primary); font-size: 14px; text-underline-offset: 4px; }
.ux-header .kb-button { white-space: nowrap; }
.ux-sidebar .sidebar-group-title { margin: 14px 0 12px; color: var(--text-secondary); }
.ux-sidebar .sidebar-group-title:not(:first-child) { margin-top: 28px; }
.ux-nav-link { display: flex; gap: 14px; padding: 11px 12px; border-radius: 8px; color: var(--sidebar-text); text-decoration: none; font-size: 14px; line-height: 22px; }
.ux-nav-link span { font-size: 12px; min-width: 20px; }
.ux-nav-link:hover { background: var(--sidebar-active-bg); }
.ux-nav-link[aria-current="location"] { background: var(--sidebar-active-bg); color: var(--sidebar-text-active); font-weight: 600; }
.ux-session-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.ux-main { gap: 56px; min-width: 0; margin-top: var(--header-height); }
.ux-main :is(h2,h3,h4) { color: var(--text-primary); }
.ux-main h2 { font-size: clamp(25px,2.3vw,34px); line-height: 1.25; letter-spacing: -.02em; }
.ux-main h3 { font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.ux-main h4 { font-size: 16px; margin-bottom: 8px; }
.ux-main p { line-height: 1.7; }
.ux-main a:not(.kb-button) { color: var(--text-primary); text-underline-offset: 4px; }
.ux-step { scroll-margin-top: 100px; min-width: 0; gap: 24px; }
.ux-section-heading { display: grid; gap: 10px; }
.ux-eyebrow { font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; color: var(--color-corp-blue); }
body.dark-mode .ux-eyebrow { color: #a3c9ff; }
.ux-hero { display: grid; gap: 20px; }
.ux-hero h1 { font-size: clamp(34px,3.7vw,54px); line-height: 1.14; letter-spacing: -.035em; color: var(--color-corp-blue); }
body.dark-mode .ux-hero h1 { color: var(--text-primary); }
.ux-lead { color: var(--text-secondary); font-size: 18px; line-height: 1.6; max-width: 790px; }
.ux-definition { font-size: clamp(20px,2vw,27px); font-weight: 600; line-height: 1.5; margin: 10px 0 20px; }
.ux-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ux-session-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 24px; border: var(--border-default); border-radius: 12px; font-size: 14px; background: var(--bg-secondary); }
.ux-card { min-width: 0; padding: 24px; border: var(--border-default); border-radius: 12px; background: var(--bg-primary); }
.ux-card p + p { margin-top: 12px; }
.ux-two, .ux-three { display: grid; gap: 20px; }
.ux-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ux-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ux-three p { font-size: 14px; color: var(--text-secondary); }
.ux-three h3 { font-size: 16px; }
.ux-discuss { padding: 24px; background: var(--bg-secondary); border-left: 3px solid var(--color-corp-blue); border-radius: 0 12px 12px 0; }
.ux-discuss p { color: var(--text-secondary); }
.ux-small { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.ux-ketchup-photo { background: white; border: var(--border-default); border-radius: 14px; overflow: hidden; }
.ux-ketchup-photo img { width: 100%; height: 390px; display: block; object-fit: contain; }
.ux-ketchup-photo figcaption { padding: 12px 20px; color: #334155; background: #f8fafc; font-size: 12px; line-height: 1.6; }
.ux-fit { align-self: flex-start; }
.ux-feedback { color: var(--text-secondary); font-size: 14px; min-height: 24px; }
[data-bottle][aria-pressed="true"] { background: var(--kb-action-toolbar-background); color: var(--kb-action-toolbar-text); border-color: var(--kb-action-primary-border); }
.ux-reveal { border-left: 3px solid var(--color-corp-blue); }
.ux-reveal .ux-two { margin: 20px 0; }
.ux-question { font-size: 20px; font-weight: 600; }
.ux-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.ux-picker .kb-chip { text-align: center; }
.ux-loop { padding: 16px; border: 1px dashed var(--border-color); border-radius: 8px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.ux-product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.ux-product-layout .ux-discuss { margin-top: 24px; }
.ux-main dl { margin: 16px 0 20px; }
.ux-main dt { color: var(--text-secondary); font-size: 12px; margin-top: 14px; }
.ux-main dd { font-size: 15px; margin-top: 4px; line-height: 1.6; }
.ux-concept { background: var(--bg-secondary); align-self: start; }
.ux-concept-choices { align-items: stretch; }
.ux-wire-choice { display: flex; flex-direction: column; align-items: stretch; gap: 16px; min-width: 0; font: inherit; color: var(--text-primary); text-align: left; padding: 20px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-primary); cursor: pointer; }
.ux-wire-choice > span:last-child { font-size: 14px; line-height: 1.6; }
.ux-wire-choice[aria-pressed="true"] { border-color: var(--kb-choice-border-selected); box-shadow: 0 0 0 2px var(--kb-template-choice-selection-ring); }
.ux-wireframe { height: 160px; display: flex; gap: 12px; padding: 16px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 6px; }
.ux-wire-nav { width: 25%; background: var(--border-color); border-radius: 3px; }
.ux-wire-tiles { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ux-wire-task { flex: 1; display: grid; grid-template-rows: 1fr 2fr 1fr; gap: 8px; }
.ux-wireframe i { display: block; background: var(--border-color); border-radius: 3px; }
.ux-map { display: grid; gap: 8px; text-decoration: none; }
.ux-map strong { font-size: 17px; }
.ux-map span { font-size: 14px; color: var(--text-secondary); }
.ux-map:hover { border-color: var(--color-highlight-blue); }
.ux-main details { margin-top: 16px; }
.ux-main summary { cursor: pointer; font-size: 14px; margin-bottom: 16px; }
#starter-prompt { font-family: ui-monospace, monospace; font-size: 13px; line-height: 20px; }
.ux-demo-canvas { padding: 24px; border-radius: 16px; background: var(--kb-background-page); color: var(--kb-text-primary); font-family: var(--kb-font-family-ui); }
.ux-demo-canvas :is(h3,h4) { color: inherit; }
.ux-demo-canvas .kb-field { margin: 20px 0; }
.ux-demo-canvas .kb-inset { margin-top: 20px; }
.ux-demo-canvas [role="status"] { margin-top: 16px; }
.ux-checklist { padding: 0; border: 0; margin: 24px 0; }
.ux-checklist legend { font-weight: 600; margin-bottom: 12px; }
.ux-checklist label { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.ux-checklist input { width: 18px; height: 18px; accent-color: var(--kb-field-focus-border); }
.ux-record { padding: 16px; border-top: 1px solid var(--kb-surface-border); margin-top: 16px; overflow-wrap: anywhere; }
.ux-record p { white-space: pre-wrap; }
.ux-footer { font-size: 12px; line-height: 1.8; color: var(--text-secondary); }
.ux-presenter-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1001; padding: 12px 24px; background: var(--bg-primary); border-top: var(--border-default); display: flex; align-items: center; justify-content: center; gap: 24px; }
.ux-presenter-nav p { font-size: 14px; text-align: center; }
body.presenter .ux-sidebar, body.presenter .ux-footer { display: none; }
body.presenter .ux-main { margin-left: auto; margin-right: auto; width: min(1160px,100%); padding: 32px 32px 130px; gap: 0; }
body.presenter .ux-step { border: 0; min-height: calc(100vh - 240px); justify-content: center; margin-bottom: 0; }
@media (max-width:1200px) { .ux-page-title { display: none; } }
@media (max-width:767px) { .ux-two, .ux-three, .ux-product-layout { grid-template-columns: 1fr; } .ux-main { gap: 40px; } .ux-ketchup-photo img { height: 280px; } .ux-lead { font-size: 16px; } .ux-card, .ux-discuss { padding: 20px; } .ux-session-strip { justify-content: flex-start; padding: 16px; } .ux-demo-canvas { padding: 12px; } .ux-header img { width: 154px; } .ux-header-actions { gap: 8px; } .ux-system-link { display: none; } body.presenter .ux-main { padding: 24px 16px 120px; } .ux-presenter-nav { padding: 10px 12px; gap: 12px; } .ux-presenter-nav p { font-size: 12px; } }
@media (max-width:480px) { .ux-presenter-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); } .ux-header #presenter-toggle { width: 40px; height: 40px; padding: 11px; } .ux-header #ux-theme { width: 40px; height: 40px; } .ux-header .header-left { gap: 8px; } .ux-header img { width: 138px; } .ux-header { padding: 0 12px; } .ux-hero h1 { font-size: 34px; } .ux-ketchup-photo img { height: 230px; } .ux-actions > .kb-button { width: 100%; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } .site-main, body { transition: none; } }

/* Full-page consumer mapping: shared tokens, without changing the documentation shell. */
body.ux-page,
body.ux-page.dark-mode {
  --bg-primary: var(--kb-surface-content);
  --bg-secondary: var(--kb-surface-inset);
  --text-primary: var(--kb-text-primary);
  --text-secondary: var(--kb-surface-text-muted);
  --border-color: var(--kb-surface-border);
  --border-default: 1px solid var(--kb-surface-border);
  --sidebar-text: var(--kb-text-primary);
  --sidebar-active-bg: var(--kb-action-toolbar-background);
  --sidebar-text-active: var(--kb-text-link);
  background: var(--kb-background-page);
  background-attachment: fixed;
  color: var(--kb-text-primary);
  font-family: var(--kb-font-family-ui);
}
.ux-page :is(.ux-header, .ux-sidebar, .ux-presenter-nav) {
  background: var(--kb-surface-chrome);
  border-color: var(--kb-surface-chrome-border);
  backdrop-filter: blur(var(--kb-surface-chrome-blur));
}
.ux-page .ux-card {
  background: var(--kb-surface-content);
  border: 1px solid var(--kb-surface-border);
  border-radius: var(--kb-card-radius-small);
  backdrop-filter: blur(var(--kb-surface-backdrop-blur));
  box-shadow: none;
}
.ux-page :is(.ux-session-strip, .ux-discuss, .ux-concept) {
  background: var(--kb-panel-background);
  border-radius: var(--kb-panel-radius);
  backdrop-filter: none;
}
.ux-page .ux-discuss { border-left-color: var(--kb-text-link); }
.ux-page .ux-wire-choice {
  background: var(--kb-choice-background);
  border-color: var(--kb-choice-border);
}
.ux-page .ux-wire-choice[aria-pressed="true"] {
  border-color: var(--kb-choice-border-selected);
}
.ux-page .ux-wire-choice:hover:not([aria-pressed="true"]) { border-color: var(--kb-choice-border-hover); }
.ux-page .ux-ketchup-photo { background: var(--kb-surface-content); }
/* Preserve the photograph's white plate; its caption belongs to the themed UI. */
.ux-page .ux-ketchup-photo img { background: white; }
.ux-page .ux-ketchup-photo figcaption {
  background: var(--kb-surface-inset);
  color: var(--kb-surface-text-muted);
}
.ux-page .ux-eyebrow { color: var(--kb-text-link); }
.ux-page .ux-skip { background: var(--kb-field-option-background); }
.ux-page .menu-toggle { color: var(--kb-text-primary); }
@media (min-width:640px) {
  .ux-page .ux-card { border-radius: var(--kb-card-radius-large); }
  .ux-page .ux-concept { border-radius: var(--kb-panel-radius); }
}
