.math-site-header{z-index:50;background:color-mix(in srgb, var(--surface) 92%, transparent);backdrop-filter:blur(16px);border-bottom:1px solid #0000000f;position:relative}.math-brand-full{display:inline-flex}.math-brand-compact{display:none}.math-site-header .nav-link{min-height:2.75rem}.math-page{width:min(100%,80rem);margin-inline:auto;padding:2.75rem 1.25rem 5rem}.math-page-wide{width:min(100%,90rem)}.math-hero{grid-template-columns:minmax(0,1.08fr) minmax(18rem,.82fr);align-items:center;gap:clamp(2rem,5vw,4.5rem);width:min(100%,80rem);margin-inline:auto;padding:clamp(3rem,7vw,6rem) 1.25rem 4rem;display:grid}.math-hero h1{letter-spacing:-.06em;text-wrap:balance;max-width:16ch;margin:0;font-size:clamp(2.8rem,6vw,5rem);line-height:.98}.math-hero-copy{max-width:41rem;color:var(--muted);margin-top:1.5rem;font-size:clamp(1.05rem,1.7vw,1.2rem);line-height:1.75}.math-action-row{flex-wrap:wrap;gap:.75rem;margin-top:1.75rem;display:flex}.math-hero-panel,.math-surface-card{background:#ffffffd6;border:1px solid #00000014;border-radius:2rem;box-shadow:0 24px 70px #3136271a}.math-hero-panel{padding:clamp(1.3rem,3vw,2rem)}.math-kicker{letter-spacing:.15em;text-transform:uppercase;color:var(--brand);margin:0 0 .55rem;font-size:.72rem;font-weight:800}.math-section{border-top:1px solid #0000000f;width:min(100%,80rem);margin-inline:auto;padding:clamp(3rem,6vw,5.5rem) 1.25rem}.math-section:first-child{border-top:0}.math-section-header{justify-content:space-between;align-items:end;gap:1.5rem;margin-bottom:1.6rem;display:flex}.math-section-header h2,.math-page-title{letter-spacing:-.05em;text-wrap:balance;margin:0;font-size:clamp(2rem,4vw,3.35rem);line-height:1.04}.math-section-header p,.math-page-intro{max-width:44rem;color:var(--muted);margin:.65rem 0 0;line-height:1.7}.math-grade-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;display:grid}.math-grade-card,.math-grade-button{text-align:left;background:#ffffffc7;border:1px solid #00000014;border-radius:1.35rem;flex-direction:column;justify-content:space-between;min-height:6.1rem;padding:1rem;display:flex}.math-grade-card[href],.math-grade-button[href]{text-decoration:none;transition:transform .15s,border-color .15s,background .15s}.math-grade-card[href]:hover,.math-grade-button[href]:hover{border-color:color-mix(in srgb, var(--brand) 55%, transparent);background:#fff;transform:translateY(-2px)}.math-grade-card:focus-visible,.math-grade-button:focus-visible,.math-skill-card:focus-visible,.math-topic-card:focus-visible,.math-sample-card:focus-visible{outline:2px solid var(--brand);outline-offset:3px}.math-grade-label{letter-spacing:-.04em;color:var(--ink);font-size:1.55rem;font-weight:850}.math-grade-note{color:var(--muted);margin-top:.35rem;font-size:.73rem;font-weight:700}.math-grade-card.is-planned{opacity:.62}.math-breadcrumbs{overflow-wrap:anywhere;margin-bottom:1.25rem}.math-breadcrumbs ol{color:var(--muted);flex-wrap:wrap;gap:.35rem .55rem;margin:0;padding:0;font-size:.82rem;font-weight:700;list-style:none;display:flex}.math-breadcrumbs li:not(:last-child):after{content:"/";color:#6870678c;margin-left:.55rem}.math-breadcrumbs a{color:inherit;text-decoration:none}.math-breadcrumbs a:hover{color:var(--brand-dark)}.math-grade-switcher{grid-template-columns:repeat(7,minmax(3rem,1fr));gap:.55rem;max-width:42rem;margin-top:1.75rem;display:grid}.math-grade-switcher a,.math-grade-switcher span{min-height:2.9rem;color:var(--ink);background:#ffffffb8;border:1px solid #00000014;border-radius:999px;place-items:center;font-size:.85rem;font-weight:800;text-decoration:none;display:grid}.math-grade-switcher [aria-current=page]{border-color:var(--brand-dark);background:var(--brand-dark);color:#fff}.math-grade-switcher span:not([aria-current]){opacity:.45}.math-sample-grid,.math-topic-grid,.math-skill-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;display:grid}.math-sample-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.math-sample-card,.math-topic-card,.math-skill-card{min-width:0;height:100%;color:inherit;background:#fffc;border:1px solid #00000014;border-radius:1.6rem;flex-direction:column;padding:1rem;text-decoration:none;transition:transform .15s,border-color .15s,box-shadow .15s;display:flex;box-shadow:0 12px 32px #3136270d}.math-sample-card:hover,.math-topic-card:hover,.math-skill-card:hover{border-color:color-mix(in srgb, var(--brand) 45%, transparent);transform:translateY(-2px);box-shadow:0 18px 40px #31362717}.math-mini-paper,.math-featured-thumbnail{aspect-ratio:8.5/11;background:#fff;border:1px solid #00000017;border-radius:.85rem;place-items:center;width:100%;display:grid;overflow:hidden;box-shadow:0 8px 18px #31362714}.math-featured-thumbnail{object-fit:cover;object-position:top;display:block}.math-mini-paper-inner{gap:.5rem;width:78%;display:grid}.math-mini-paper-line{background:#3343331a;border-radius:999px;height:.52rem}.math-mini-paper-line.is-short{width:58%}.math-mini-equation{letter-spacing:-.04em;color:var(--brand-dark);margin-block:.35rem;font-size:clamp(1.1rem,2vw,1.65rem);font-weight:850}.math-card-body{padding:1rem .2rem .25rem}.math-card-body h3{letter-spacing:-.025em;margin:0;font-size:1.08rem}.math-card-body p{color:var(--muted);margin:.55rem 0 0;font-size:.88rem;line-height:1.55}.math-tag-row{flex-wrap:wrap;gap:.35rem;margin-top:.85rem;display:flex}.math-tag{background:var(--surface-muted);min-height:1.75rem;color:var(--muted);border-radius:999px;align-items:center;padding:.2rem .6rem;font-size:.68rem;font-weight:800;display:inline-flex}.math-card-arrow{color:var(--brand-dark);margin-top:auto;padding-top:1rem;font-size:.82rem;font-weight:850}.math-progression-group+.math-progression-group{margin-top:3.5rem}.math-progression-heading{margin-bottom:1rem}.math-progression-heading h2{letter-spacing:-.04em;margin:0;font-size:1.65rem}.math-progression-heading p{max-width:48rem;color:var(--muted);margin:.45rem 0 0;line-height:1.6}.math-callout{background:color-mix(in srgb, var(--brand-cream) 70%, white);border:1px solid #00000014;border-radius:1.7rem;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1.5rem;padding:clamp(1.25rem,3vw,2rem);display:grid}.math-callout h2,.math-callout h3{letter-spacing:-.035em;margin:0}.math-callout p{max-width:46rem;color:var(--muted);margin:.5rem 0 0;line-height:1.6}.math-ready-workspace{grid-template-columns:minmax(0,1.55fr) minmax(17rem,.55fr);align-items:start;gap:1.25rem;margin-top:2rem;display:grid}.math-preview-column,.math-ready-actions{min-width:0}.math-preview-topline{justify-content:space-between;align-items:end;gap:1rem;margin-bottom:.85rem;display:flex}.math-preview-topline h2{letter-spacing:-.04em;margin:0;font-size:clamp(1.35rem,2.5vw,2rem)}.math-status-chip{min-height:2.15rem;color:var(--muted);background:#fff;border-radius:999px;flex:none;align-items:center;padding:.35rem .75rem;font-size:.72rem;font-weight:800;display:inline-flex;box-shadow:inset 0 0 0 1px #00000012}.math-paper-stage{background:#e8e7e0b8;border:1px solid #00000012;border-radius:1.6rem;place-items:center;min-height:clamp(32rem,63vw,52rem);padding:clamp(.8rem,2.5vw,1.8rem);display:grid;overflow:hidden}.math-paper-image{aspect-ratio:8.5/11;object-fit:contain;background:#fff;border:1px solid #0000001a;width:auto;max-width:100%;max-height:50rem;display:block;box-shadow:0 16px 42px #31362729}.math-paper-image[hidden]{display:none}.math-paper-placeholder,.math-preview-error{aspect-ratio:8.5/11;text-align:center;width:min(100%,34rem);color:var(--muted);background:#fff;border:1px solid #0000001a;place-content:center;gap:.7rem;padding:2rem;display:grid;box-shadow:0 16px 42px #3136271f}.math-paper-placeholder strong,.math-preview-error strong{color:var(--ink);font-size:1.05rem}.math-paper-placeholder-mark{color:var(--brand-soft);font-size:3rem;font-weight:900}.math-preview-error[hidden],.math-paper-placeholder[hidden]{display:none}.math-ready-actions{background:#ffffffdb;border:1px solid #00000014;border-radius:1.6rem;padding:1.35rem;position:sticky;top:1rem;box-shadow:0 15px 42px #31362714}.math-ready-actions h3{letter-spacing:-.04em;margin:0;font-size:1.45rem}.math-ready-summary{color:var(--muted);margin:.55rem 0 0;line-height:1.55}.math-meta-list{gap:.55rem;margin:1.15rem 0;display:grid}.math-meta-list div{border-bottom:1px solid #0000000f;justify-content:space-between;gap:1rem;padding-bottom:.55rem;display:flex}.math-meta-list dt{color:var(--muted)}.math-meta-list dd{text-align:right;margin:0;font-weight:800}.math-full-button{cursor:pointer;width:100%;min-height:2.85rem;margin-top:.6rem}.math-full-button:disabled,.math-card-download:disabled,.math-text-button:disabled,.math-generator-form button:disabled{cursor:not-allowed;opacity:.45;transform:none}.math-text-button,.math-card-download{min-height:2.75rem;font:inherit;color:var(--brand-dark);cursor:pointer;background:0 0;border:0;font-size:.8rem;font-weight:850}.math-text-button{width:100%;margin-top:.3rem}.math-small-note{color:var(--muted);margin:.9rem 0 0;font-size:.72rem;line-height:1.55}.math-page-tabs{justify-content:center;gap:.5rem;margin-top:.8rem;display:flex}.math-page-tabs[hidden]{display:none}.math-segment-button{min-height:2.75rem;font:inherit;color:var(--ink);cursor:pointer;background:#ffffffbd;border:1px solid #00000017;border-radius:999px;padding:.45rem .9rem;font-size:.8rem;font-weight:800}.math-segment-button.is-selected,.math-segment-button[aria-pressed=true]{border-color:var(--brand-dark);background:var(--brand-dark);color:#fff}.math-version-strip{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin-top:.25rem;display:grid}.math-version-card{background:#ffffffc2;border:1px solid #00000014;border-radius:1.25rem;min-width:0;padding:.75rem}.math-version-card.is-selected{border-color:var(--brand-dark);box-shadow:0 0 0 2px #33433314}.math-version-card.has-error{border-color:#9f463759}.math-version-select{text-align:left;width:100%;min-height:4.5rem;font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;grid-template-columns:4.3rem minmax(0,1fr);align-items:center;gap:.8rem;padding:0;display:grid}.math-version-select small{color:var(--muted);margin-top:.2rem;display:block}.math-version-thumb{aspect-ratio:8.5/11;color:var(--brand-soft);background:#fff;border:1px solid #00000014;border-radius:.45rem;place-items:center;font-weight:900;display:grid;overflow:hidden}.math-version-thumb img{object-fit:cover;object-position:top;width:100%;height:100%}.math-card-download{border-top:1px solid #0000000f;width:100%;margin-top:.35rem}.math-teaching-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;display:grid}.math-teaching-card{background:#ffffffa3;border:1px solid #00000012;border-radius:1.4rem;padding:1.25rem}.math-teaching-card h3{margin:0;font-size:1rem}.math-teaching-card p{color:var(--muted);margin:.5rem 0 0;font-size:.86rem;line-height:1.6}.math-generator-intro{justify-content:space-between;align-items:end;gap:2rem;display:flex}.math-local-note{max-width:24rem;color:var(--muted);background:#ffffff9e;border:1px solid #00000012;border-radius:1rem;padding:.8rem 1rem;font-size:.78rem;line-height:1.45}.math-generator-selectors{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:1.6rem;display:grid}.math-field{gap:.4rem;min-width:0;display:grid}.math-field>span,.math-control-label,.math-control-group legend{color:var(--ink);font-size:.78rem;font-weight:850}.math-field select,.math-field input[type=text],.math-control-select{width:100%;min-height:2.9rem;font:inherit;color:var(--ink);background:#fff;border:1px solid #0000001c;border-radius:.9rem;padding:.6rem .75rem}.math-generator-workspace{grid-template-columns:minmax(19rem,22rem) minmax(0,1fr);align-items:start;gap:1.2rem;margin-top:1rem;display:grid}.math-generator-form{background:#ffffffd1;border:1px solid #00000014;border-radius:1.55rem;padding:1.1rem;box-shadow:0 12px 36px #3136270f}.math-generator-form h2{letter-spacing:-.025em;margin:0 0 .2rem;font-size:1.1rem}.math-controls-stack{gap:1rem;margin-top:1.1rem;display:grid}.math-control-group{border:0;min-width:0;margin:0;padding:0}.math-control-group legend{margin-bottom:.45rem}.math-field-help{color:var(--muted);margin-top:.45rem;font-size:.72rem;line-height:1.4;display:block}.math-segmented-control{flex-wrap:wrap;gap:.35rem;display:flex}.math-segmented-control .math-segment-button{flex:auto}.math-toggle-row{background:var(--surface-muted);border:1px solid #00000012;border-radius:.9rem;justify-content:space-between;align-items:center;gap:1rem;min-height:2.85rem;padding:.55rem .75rem;display:flex}.math-toggle-row input{width:1.2rem;height:1.2rem;accent-color:var(--brand-dark)}.math-more-options{border-top:1px solid #00000012;margin-top:1rem;padding-top:.85rem}.math-more-options summary{cursor:pointer;min-height:2.75rem;color:var(--brand-dark);font-size:.83rem;font-weight:850}.math-generator-actions{gap:.55rem;margin-top:1.15rem;display:grid}.math-generator-actions .primary-button,.math-generator-actions .secondary-button{cursor:pointer;width:100%;min-height:2.9rem}.math-inline-status{min-height:1.3rem;color:var(--muted);margin:.65rem 0 0;font-size:.75rem;line-height:1.45}.math-generator-results{min-width:0}.math-stale-notice,.math-error-panel,.math-progress-panel{border:1px solid #00000014;border-radius:1rem;margin-bottom:.8rem;padding:.85rem 1rem;font-size:.82rem;line-height:1.5}.math-stale-notice{color:#645523;background:#fff6db}.math-error-panel{color:#743b31;background:#fff0ed}.math-progress-panel{color:var(--brand-dark);background:#eef4ec}.math-stale-notice[hidden],.math-error-panel[hidden],.math-progress-panel[hidden]{display:none}.math-generator-preview-card{background:#ffffffb3;border:1px solid #00000014;border-radius:1.55rem;padding:1rem}.math-generator-preview-header{justify-content:space-between;align-items:start;gap:1rem;margin-bottom:.8rem;display:flex}.math-generator-preview-header h2{letter-spacing:-.04em;margin:0;font-size:clamp(1.25rem,2.5vw,1.8rem)}.math-generator-preview-card .math-paper-stage{min-height:clamp(30rem,55vw,49rem)}.math-result-actions{flex-wrap:wrap;gap:.55rem;margin-top:.85rem;display:flex}.math-result-actions button{cursor:pointer;min-height:2.8rem}.math-active-version-picker{flex-wrap:wrap;gap:.4rem;margin:.75rem 0;display:flex}.math-active-version-picker[hidden]{display:none}.math-result-summary{color:var(--muted);margin:.7rem 0 0;font-size:.78rem;line-height:1.5}.math-result-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin-top:1rem;display:grid}.math-result-grid:empty{display:none}.math-result-card{background:#ffffffd1;border:1px solid #00000014;border-radius:1.25rem;min-width:0;padding:.75rem}.math-result-card.is-selected{border-color:var(--brand-dark)}.math-result-card.has-error{background:#fff8f6;border-color:#9f463759}.math-result-card-thumb{aspect-ratio:8.5/11;color:var(--muted);background:#fff;border:1px solid #00000014;border-radius:.65rem;place-items:center;display:grid;overflow:hidden}.math-result-card-thumb img{object-fit:cover;object-position:top;width:100%;height:100%}.math-result-card h3{margin:.7rem 0 0;font-size:.95rem}.math-result-card p{min-height:2.5rem;color:var(--muted);margin:.35rem 0 0;font-size:.72rem;line-height:1.45}.math-result-card-actions{grid-template-columns:1fr;gap:.35rem;margin-top:.65rem;display:grid}.math-result-card-actions button{background:var(--surface-muted);min-height:2.6rem;font:inherit;color:var(--ink);cursor:pointer;border:1px solid #00000014;border-radius:999px;font-size:.73rem;font-weight:850}.math-safe-boundary{border-top:1px solid #00000012;margin-top:3rem;padding-top:2.5rem}.math-studio-debug{overflow-wrap:anywhere;background:var(--surface-muted);color:var(--muted);border-radius:1rem;margin-top:1rem;padding:.8rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.72rem;line-height:1.55}@media (width<=1024px){.math-sample-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.math-generator-workspace{grid-template-columns:minmax(17rem,19rem) minmax(0,1fr)}}@media (width<=900px){.math-hero,.math-ready-workspace,.math-generator-workspace{grid-template-columns:1fr}.math-hero h1{max-width:18ch}.math-ready-actions{position:static}.math-version-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.math-generator-form{order:0}.math-generator-results{order:1}.math-generator-preview-card .math-paper-stage,.math-paper-stage{min-height:34rem}}@media (width<=720px){.math-page,.math-hero,.math-section{padding-inline:1rem}.math-page{padding-top:2rem}.math-section-header,.math-generator-intro,.math-preview-topline,.math-callout{display:block}.math-section-header .secondary-button,.math-callout .secondary-button,.math-callout .primary-button{margin-top:1rem}.math-grade-grid,.math-topic-grid,.math-skill-grid,.math-teaching-grid,.math-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.math-grade-switcher{grid-template-columns:repeat(4,minmax(0,1fr))}.math-generator-selectors{grid-template-columns:1fr}.math-local-note{margin-top:1rem}.math-version-strip{grid-template-columns:1fr}.math-version-select{grid-template-columns:3.8rem minmax(0,1fr)}.math-paper-stage,.math-generator-preview-card .math-paper-stage{min-height:0;padding:.65rem}.math-paper-placeholder,.math-preview-error{width:min(100%,29rem);min-height:25rem}.math-paper-image{width:100%;max-height:none}}@media (width<=460px){.math-hero{padding-top:2.5rem}.math-hero h1{font-size:clamp(2.45rem,13vw,3.4rem)}.math-action-row{display:grid}.math-action-row .primary-button,.math-action-row .secondary-button{width:100%}.math-grade-grid,.math-topic-grid,.math-skill-grid,.math-teaching-grid,.math-result-grid,.math-sample-grid{grid-template-columns:1fr}.math-grade-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.math-grade-card{min-height:5.2rem}.math-grade-switcher{grid-template-columns:repeat(4,minmax(0,1fr))}.math-generator-preview-header{display:block}.math-generator-preview-header .math-status-chip{margin-top:.55rem}.math-result-actions{display:grid}.math-result-actions .primary-button,.math-result-actions .secondary-button,.math-result-actions .math-text-button{width:100%}.math-result-card{grid-template-columns:5.5rem minmax(0,1fr);align-items:start;column-gap:.75rem;display:grid}.math-result-card-thumb{grid-row:1/span 3}.math-result-card h3{margin-top:.1rem}.math-result-card p{min-height:0;margin-top:.25rem}.math-result-card-actions{grid-column:2;margin-top:.45rem}.math-result-card-actions button{min-height:2.75rem}.math-paper-placeholder,.math-preview-error{min-height:22rem;padding:1.3rem}}@media (width<=360px){.math-brand-full{display:none}.math-brand-compact{display:inline-flex}}@media (width<=340px){.math-page,.math-hero,.math-section{padding-inline:.75rem}.math-grade-switcher{grid-template-columns:repeat(3,minmax(0,1fr))}.math-generator-form,.math-generator-preview-card{border-radius:1.2rem;padding:.75rem}}@media (prefers-reduced-motion:reduce){.math-grade-card[href],.math-grade-button[href],.math-sample-card,.math-topic-card,.math-skill-card{transition:none}}
