/* The toolkit is a set of real, bounded interactive examples. */
.toolkit { content-visibility: visible; padding-bottom: 8rem; }
.toolkit-heading { margin: 4rem 0; grid-template-columns: 1.45fr .7fr; }
.toolkit-heading .section-title { font-size: clamp(3.5rem, 6.5vw, 7rem); }
.toolkit-experience { display: block; border: 1px solid var(--line); background: #eeede5; }
.toolkit-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-right: 0; }
.toolkit-list button { grid-template-columns: 1.5rem 1fr; gap: .5rem; min-height: 5rem; padding: 1rem; border-right: 1px solid var(--line); line-height: 1.4; }
.toolkit-list button small { display: none; }
.toolkit-list button:nth-child(4n) { border-right: 0; }
.toolkit-list button[aria-selected="true"] { padding-left: 1rem; background: var(--forest); color: var(--paper); }
.toolkit-list button[aria-selected="true"] > span { color: #dcc397; }
.toolkit-list button:hover:not([aria-selected="true"]) { background: #dedfd2; color: var(--ink); }
.toolkit-list button:focus-visible { position: relative; z-index: 2; outline-offset: -4px; outline-color: #bd9056; }
.toolkit-panel { grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); grid-template-rows: auto auto; overflow: visible; background: var(--paper); }
.skill-copy { align-self: center; padding: clamp(1.5rem, 3.5vw, 4rem); }
.skill-copy h3 { font-weight: 400; font-size: clamp(3rem, 4.5vw, 5rem); line-height: .92; }
.skill-copy > p[data-skill-description] { color: var(--muted); font-size: 1rem; line-height: 1.85; }
.skill-copy .skill-try { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--clay); font-size: .875rem; line-height: 1.7; }
.skill-details > div { grid-template-columns: 5rem minmax(0, 1fr); padding: 1.2rem 1.5rem; font-size: .875rem; }
.skill-details dd a { text-underline-offset: .2em; }
.skill-demo { min-width: 0; display: flex; flex-direction: column; background: #13271d; color: #f4f2eb; border-left: 1px solid var(--line); }
.demo-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: 1.2rem 1.5rem; border-bottom: 1px solid #3e5142; color: #cbd4c6; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.demo-stage { position: relative; display: flex; flex: 1; min-height: 31rem; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; overflow: hidden; padding: 2.5rem; perspective: 900px; }
.demo-feedback { min-height: 5.7rem; margin-top: auto; padding: 1.2rem 1.5rem; border-top: 1px solid #3e5142; color: #d0d9c9; font-size: .875rem; line-height: 1.65; }
.skill-demo :focus-visible { outline: 3px solid #d4aa65; outline-offset: 4px; }
.sample-card { --sample-bg: #f4f2eb; --sample-ink: #182a1d; --sample-muted: #515d50; --sample-accent: #75462f; width: min(100%, 22rem); border: 1px solid #bac4b2; background: var(--sample-bg); color: var(--sample-ink); transition: transform .4s ease, background .4s ease, color .4s ease; }
.sample-image { height: 10rem; overflow: hidden; }
.sample-image img { width: 100%; height: 100%; object-fit: cover; }
.sample-body { padding: 1.4rem; }
.sample-eyebrow { display: block; color: var(--sample-muted, #c3d0bc); font-size: .75rem; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; }
.sample-card h4 { margin: .8rem 0; font-family: var(--display); font-size: 2.5rem; font-weight: 400; letter-spacing: -.04em; line-height: .93; }
.sample-card h4 em { color: var(--sample-accent); }
.sample-body > p { color: var(--sample-muted); font-size: 1rem; line-height: 1.6; }
.sample-action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 2.8rem; margin-top: 1.2rem; padding: .8rem 0; border-top: 1px solid currentColor; background: transparent; font-size: .875rem; cursor: pointer; text-align: left; }
.sample-details { padding-top: .75rem; }
.sample-details p { font-size: .875rem; line-height: 1.6; }
.demo-stage[data-demo="frontend"] .sample-card { transform: rotateX(var(--demo-y, 0deg)) rotateY(var(--demo-x, 0deg)); }
.demo-button, .demo-switches button, .ux-choices button, .accessible-choices button { min-height: 2.8rem; padding: .7rem 1rem; border: 1px solid #7f9578; background: transparent; color: #f4f2eb; font-size: .875rem; cursor: pointer; transition: background .25s ease, border-color .25s ease; }
.demo-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-width: 11rem; position: relative; z-index: 2; }
.demo-button:hover, .demo-switches button:hover, .ux-choices button:hover, .accessible-choices button:hover { background: #294333; }
.demo-switches { display: flex; gap: .7rem; }
.demo-switches button[aria-pressed="true"], .ux-choices button[aria-pressed="true"], .accessible-choices button[aria-pressed="true"] { background: #e6d3ab; border-color: #e6d3ab; color: #14231a; }
.theme-example { width: min(100%, 22rem); }
.theme-example[data-theme="forest"] .sample-card { --sample-bg: #1c3627; --sample-ink: #f4f2eb; --sample-muted: #ccd8c5; --sample-accent: #e3c48f; border-color: #869d7d; }
.ux-example, .performance-example, .accessibility-example { width: min(100%, 25rem); }
.ux-example h4, .accessibility-example h4 { margin: 1.2rem 0; font-family: var(--display); font-size: clamp(2.4rem, 3vw, 3.2rem); line-height: .95; font-weight: 400; letter-spacing: -.025em; }
.ux-example > p:not(.sample-eyebrow), .accessibility-example > p:not(.sample-eyebrow) { color: #cfdbc8; font-size: 1rem; }
.ux-progress { display: flex; gap: .5rem; margin-block: 1.5rem; }
.ux-progress span { width: 50%; height: 2px; background: #4d604a; transition: background .3s ease; }
.ux-progress .is-done { background: #dfc396; }
.ux-example .ux-step { font-size: .75rem; letter-spacing: .06em; }
.ux-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 2rem; }
.ux-route { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-block: 2rem; padding-block: 1rem; border-block: 1px solid #68775f; }
.motion-space { display: grid; place-items: center; width: 100%; min-height: 20rem; }
.motion-card { position: relative; width: min(85%, 20rem); height: 18rem; overflow: hidden; box-shadow: 0 1.5rem 3rem #07100a; transform: translate(var(--move-x, 0px), var(--move-y, 0px)); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.motion-card img { width: 100%; height: 100%; object-fit: cover; }
.motion-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(5,16,9,.9)); }
.motion-card > span { position: absolute; z-index: 1; bottom: 1.5rem; left: 1.5rem; font-family: var(--display); font-size: 2.4rem; line-height: .9; }
.motion-card em { color: #ead1a3; }
.creative-field { position: absolute; inset: 2rem; display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(7, 1fr); place-items: center; opacity: .8; }
.creative-field span { width: .3rem; height: .3rem; border-radius: 50%; background: #c5b984; opacity: .3; transition: transform .3s ease, opacity .3s ease; }
.creative-label { position: relative; padding: 1.5rem; color: #f4f2eb; font-family: var(--display); font-size: clamp(2.8rem, 4vw, 4rem); line-height: .93; text-align: center; text-shadow: 0 2px 12px #13271d; }
.creative-label em { color: #ead1a3; }
.deferred-image { display: flex; width: 100%; aspect-ratio: 3 / 2; flex-direction: column; justify-content: center; align-items: center; gap: .8rem; border: 1px dashed #849678; text-align: center; }
.deferred-image > span { color: #ead1a3; font-family: var(--display); font-size: 2rem; }
.deferred-image > p { color: #c3d0bc; font-size: .875rem; }
.deferred-image img { width: 100%; height: 100%; object-fit: cover; }
.performance-notes { display: grid; gap: .7rem; padding-block: 1.3rem .4rem; color: #c3d0bc; font-size: .875rem; }
.performance-example button:disabled { cursor: default; color: #bac8b3; }
.accessibility-example h4 em { color: #e0c593; }
.accessible-choices { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.accessible-choices button[aria-pressed="true"]::before { content: "✓ "; }
.accessibility-example.is-large > p:not(.sample-eyebrow), .accessibility-example.is-large button { font-size: 1.25rem; }
.accessibility-example.is-large .accessible-choices { flex-direction: column; }
.responsive-controls { display: grid; grid-template-columns: 1fr auto; gap: 1rem; width: 100%; color: #d5dece; font-size: .875rem; }
.responsive-controls input { grid-column: 1 / -1; width: 100%; min-height: 2.75rem; margin: 0; accent-color: #dcc397; cursor: ew-resize; }
.responsive-stage { display: flex; width: 100%; justify-content: center; align-items: start; }
.responsive-window { flex-shrink: 0; container-type: inline-size; transform-origin: top center; }
.sample-browser { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; border: 1px solid #bac4b2; background: #e4e6da; color: #344c37; font-size: .75rem; }
.sample-browser > span:first-child { font-size: .75rem; letter-spacing: .06em; }
.responsive-window .sample-card { display: grid; width: 100%; max-width: none; }
.responsive-window .sample-image { height: 8rem; }
.responsive-window .sample-card h4 { font-size: 2rem; }
@container (min-width: 420px) { .responsive-window .sample-card { grid-template-columns: 1fr 1fr; } .responsive-window .sample-image { height: 100%; min-height: 15rem; } }
@media (max-width: 1000px) { .toolkit-list button { font-size: .8rem; } .toolkit-panel { grid-template-columns: 1fr 1.15fr; } .demo-stage { padding: 1.5rem; } .skill-details { grid-template-columns: 1fr; } .skill-details > div + div { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 800px) {
  .toolkit-heading { grid-template-columns: 1fr; gap: 2rem; }
  .toolkit-list { display: flex; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); scroll-snap-type: x proximity; }
  .toolkit-list::-webkit-scrollbar { display: block; height: 4px; }
  .toolkit-list button, .toolkit-list button[aria-selected="true"] { flex: 0 0 auto; width: auto; min-height: 4.5rem; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 0; font-size: .875rem; scroll-snap-align: start; }
  .toolkit-panel { grid-template-columns: 1fr; }
  .skill-copy { padding: 2rem 1.5rem; }
  .skill-copy h3 { margin-block: .8rem 1.2rem; font-size: 3rem; }
  .skill-copy .skill-try { margin-top: 1.2rem; }
  .skill-demo { border-left: 0; }
  .demo-stage { min-height: 29rem; padding: 1.5rem; }
  .demo-topline, .demo-feedback { padding-inline: 1.25rem; }
  .skill-details > div { grid-template-columns: 4rem minmax(0, 1fr); padding-inline: 1.25rem; }
}
@media (max-width: 380px) { .demo-stage { padding: 1rem; } .sample-body { padding: 1rem; } .ux-choices { grid-template-columns: 1fr; } .toolkit-heading .section-title { font-size: 2.9rem; } }
@media (prefers-reduced-motion: reduce) { .demo-stage .sample-card, .motion-card, .creative-field span { transform: none !important; } }
