/* Chess is expressed through the board, with the family theme tokens intact. Since 2026-11-02 the page is on the family template (photo hero, film, iOS section); these rules style the sample position, the study grid, and the offline library inside it. */
.chess-page{--chess-blue:#2E6B9E;--chess-navy:#1B2A4A;--chess-mist:#E2E8F0;--chess-cloud:#F8FAFC;--chess-ink:#0F172A;font-family:'Plus Jakarta Sans',sans-serif;overflow:clip}
.chess-wrap{width:min(1200px,calc(100% - 64px));margin-inline:auto}
.chess-hero{padding:80px 0 96px;background:linear-gradient(180deg,hsl(var(--muted)/.7),hsl(var(--background)))}
.hero-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:72px;align-items:center}
.hero-copy{padding-bottom:32px}.development-status{display:inline-flex;align-items:center;gap:10px;color:hsl(var(--accent));font-size:.875rem;font-weight:700;margin:0 0 28px}.development-status span{width:8px;height:8px;border:2px solid currentColor;border-radius:50%}
.hero-copy h1{font-size:clamp(2.5rem,4.5vw,3.75rem);line-height:1.12;letter-spacing:-.045em;font-weight:800;max-width:11ch;margin:0 0 28px}.hero-lead{font-size:1.25rem;line-height:1.6;font-weight:500;max-width:34ch;margin:0 0 20px}.hero-copy>p:not(.hero-lead):not(.development-status){max-width:46ch;color:hsl(var(--muted-foreground));line-height:1.85}.hero-copy .availability-note{font-size:.8125rem;margin-top:28px;max-width:42ch!important}.hero-actions{display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin-top:32px}
.chess-button{display:inline-flex;justify-content:center;align-items:center;min-height:48px;border:1px solid transparent;border-radius:6px;background:var(--chess-blue);color:var(--chess-cloud);padding:12px 20px;font-size:.875rem;font-weight:700;text-decoration:none;line-height:1.5;cursor:pointer}.chess-button:hover{background:var(--chess-navy)}.chess-button:disabled{cursor:default;opacity:.7}.chess-text-link{display:inline-block;min-height:44px;padding:10px 0;color:hsl(var(--accent));text-decoration:underline;text-underline-offset:5px;font-weight:600;font-size:.875rem;line-height:1.6;cursor:pointer;background:none;border:0}.chess-page :focus-visible{outline:3px solid hsl(var(--accent));outline-offset:5px}.chess-page [hidden]{display:none!important}
.sample-study{margin:0;padding:24px 24px 20px;border:1px solid hsl(var(--border));border-radius:16px;background:hsl(var(--card));box-shadow:0 16px 36px hsl(var(--foreground)/.08);scroll-margin-top:104px}.study-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:0 4px 12px}.sample-label{font-size:.75rem;color:hsl(var(--muted-foreground));margin:0 0 6px}.study-heading h2,.study-heading h3{font-size:1.25rem;font-weight:700;letter-spacing:-.025em;line-height:1.4;margin:0}.move-label{font-size:.6875rem;font-weight:600;white-space:nowrap;border:1px solid hsl(var(--border));border-radius:4px;padding:6px 8px;color:hsl(var(--muted-foreground))}.chess-board{display:block;width:100%;height:auto;overflow:visible}.board-frame{fill:var(--chess-navy)}.square-light{fill:var(--chess-mist)}.square-dark{fill:var(--chess-blue)}.board-coordinate{fill:hsl(var(--muted-foreground));font-family:inherit;font-size:13px;font-weight:600}.piece{stroke-linecap:round;stroke-linejoin:round;stroke-width:2.5}.piece-white{fill:var(--chess-cloud);stroke:var(--chess-navy)}.piece-black{fill:var(--chess-navy);stroke:var(--chess-cloud)}.board-square.is-destination{fill:#DBEAFE;stroke:var(--chess-navy);stroke-width:3}.sample-study figcaption{padding:8px 4px 0}.sample-answer{min-height:80px;line-height:1.75;font-size:.875rem;color:hsl(var(--muted-foreground))}.sample-answer strong{display:block;font-weight:700;color:hsl(var(--foreground));font-size:1rem;margin-bottom:6px}.sample-controls{display:flex;gap:24px;align-items:center;margin-top:12px}.sample-disclaimer{font-size:.6875rem;color:hsl(var(--muted-foreground));line-height:1.7;margin-top:16px;max-width:56ch}
.chess-section{padding:88px 0;scroll-margin-top:80px;border-top:1px solid hsl(var(--border))}.section-label{font-size:.8125rem;font-weight:600;color:hsl(var(--accent));margin:0 0 16px}.section-intro{max-width:720px;margin-bottom:56px}.chess-section h2,.chess-closing h2{font-size:clamp(1.875rem,3vw,2.5rem);font-weight:700;letter-spacing:-.035em;line-height:1.25;margin:0 0 24px}.section-intro>p:last-child,.offline-copy>p:not(.section-label){line-height:1.85;color:hsl(var(--muted-foreground));max-width:64ch}.learning-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}.learning-item{border-top:3px solid hsl(var(--border));padding-top:24px}.feature-icon{display:block;font-family:'Arial Unicode MS','Segoe UI Symbol',serif;font-size:2rem;color:hsl(var(--accent));line-height:1.4;margin-bottom:20px}.learning-item h3{font-size:1.125rem;line-height:1.45;font-weight:700;letter-spacing:-.02em;min-height:3em;margin:0 0 16px}.learning-item p{font-size:.875rem;line-height:1.9;color:hsl(var(--muted-foreground))}.learning-item .feature-state{font-size:.6875rem;color:hsl(var(--accent));font-weight:600;margin-top:24px}
.offline-section{background:hsl(var(--muted)/.6)}.offline-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.8fr);gap:96px;align-items:center}.offline-copy h2{max-width:17ch}.offline-copy>p{margin-bottom:20px}.offline-copy strong{font-weight:600;color:hsl(var(--foreground))}.library-preview{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:10px;padding:24px}.library-top{display:flex;gap:12px;align-items:center;font-size:.8125rem;font-weight:700;padding-bottom:20px;border-bottom:1px solid hsl(var(--border))}.library-mark{font-size:1.5rem;color:hsl(var(--accent))}.planned-label{font-size:.625rem;font-weight:500;color:hsl(var(--muted-foreground));margin-left:auto}.library-row{display:flex;flex-direction:column;gap:8px;padding:20px 0;border-bottom:1px solid hsl(var(--border));font-size:.875rem;font-weight:600}.library-row span:last-child{font-size:.75rem;font-weight:400;color:hsl(var(--muted-foreground))}.library-preview>p{font-size:.6875rem;line-height:1.9;color:hsl(var(--muted-foreground));margin:20px 0 0}
.questions-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:96px}.questions-list details{padding:24px 0;border-bottom:1px solid hsl(var(--border))}.questions-list details:first-child{padding-top:0}.questions-list summary{cursor:pointer;font-size:1rem;font-weight:600;line-height:1.7;padding-right:12px;min-height:36px}.questions-list details p{color:hsl(var(--muted-foreground));line-height:1.9;font-size:.875rem;margin:16px 0 0;max-width:65ch}.chess-closing{background:var(--chess-navy);color:var(--chess-cloud);padding:72px 0}.chess-closing .development-status{color:#60A5FA;margin-bottom:24px}.chess-closing h2{margin-bottom:20px}.chess-closing p:not(.development-status){font-size:1rem;line-height:1.8;color:var(--chess-mist);margin-bottom:28px}.chess-closing .chess-button{background:var(--chess-cloud);color:var(--chess-navy)}.chess-closing .chess-button:hover{background:var(--chess-mist)}.chess-page+footer{margin-top:0}
.dark .chess-hero{background:linear-gradient(180deg,hsl(var(--muted)/.5),hsl(var(--background)))}.dark .sample-study{box-shadow:none}.dark .board-coordinate{fill:hsl(var(--muted-foreground))}.dark .chess-closing{background:var(--chess-ink)}
@media(max-width:1100px){.hero-layout{gap:40px}.hero-copy h1{font-size:3rem}.hero-actions{gap:12px}.sample-study{padding:20px 16px}.learning-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}.learning-item h3{min-height:0}.offline-layout,.questions-layout{gap:48px}}
@media(max-width:760px){.chess-wrap{width:calc(100% - 40px)}.chess-hero{padding:48px 0 56px}.hero-layout,.offline-layout,.questions-layout{grid-template-columns:1fr;gap:40px}.hero-copy{padding:0}.hero-copy h1{max-width:13ch;font-size:clamp(2.5rem,9vw,3.75rem)}.hero-copy>p:not(.hero-lead):not(.development-status){max-width:56ch}.development-status{margin-bottom:20px}.hero-lead{font-size:1.125rem}.hero-actions{gap:12px 24px}.availability-note{margin-bottom:0}.sample-study{width:min(100%,480px);justify-self:center;padding:20px 16px}.study-heading{padding-inline:8px}.sample-answer{min-height:0}.sample-controls{gap:20px}.chess-section{padding:56px 0}.section-intro{margin-bottom:36px}.learning-grid{gap:32px 24px}.learning-item h3{font-size:1rem}.learning-item p{font-size:.8125rem}.learning-item .feature-state{font-size:.625rem}.offline-copy h2{max-width:23ch}.questions-layout{gap:20px}.chess-closing{padding:56px 0}}
@media(max-width:400px){.chess-wrap{width:calc(100% - 32px)}.study-heading{gap:8px}.study-heading h2,.study-heading h3{font-size:1.125rem}.sample-label{font-size:.625rem}.move-label{font-size:.625rem;padding:5px}.learning-grid{grid-template-columns:1fr}.feature-icon{margin-bottom:12px}.learning-item{padding-top:16px}.learning-item .feature-state{margin-top:16px}.sample-study{padding:16px 12px}}
@media(prefers-reduced-motion:reduce){.chess-page *, .chess-page *::before,.chess-page *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.learning-item .chess-text-link{margin-top:8px}
