/* Shared editorial and practice surfaces. Keep the puzzle larger than its chrome. */
.sudoku-learning-page { --learning-ink: #17201d; --learning-muted: #52635b; --learning-line: #d5dfd9; --learning-green: #075d46; }
.learning-panel { width: 100%; max-width: 1100px; margin: 40px auto; padding: 28px 0; border: 0; border-top: 1px solid var(--learning-line, #d5dfd9); border-radius: 0; color: var(--learning-ink, #17201d); scroll-margin-top: 24px; }
.learning-panel h2 { margin: 0 0 12px; font: 600 clamp(1.55rem, 3vw, 2.15rem)/1.16 Georgia, serif; letter-spacing: -.025em; }
.learning-panel h3 { margin: 0 0 12px; font-size: 1.1rem; line-height: 1.4; }
.learning-panel p, .learning-panel li, .learning-panel summary { line-height: 1.6; }
.learning-panel p { max-width: 67ch; }
.learning-panel a { color: #075d46; font-weight: 700; text-underline-offset: 3px; }
.learning-eyebrow { margin: 0 0 8px; color: #52635b; font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.learning-caption { margin: 12px 0 0; color: #52635b; font-size: .85rem; line-height: 1.5; }
.learning-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; align-items: center; }
:where(.learning-panel) :where(button:not(.lesson-board button):not(.variant-board button), input, select), .learning-actions a { border: 1px solid #a9b9b0; border-radius: 8px; padding: 10px 14px; min-height: 46px; font: inherit; background: #fff; color: #17201d; }
:where(.learning-panel) :where(button) { cursor: pointer; font-weight: 650; }
.learning-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 650; }
.learning-actions a:first-child, .learning-panel button.learning-primary { background: #075d46; color: #fff; border-color: #075d46; }
.learning-actions a:hover, .learning-panel button:not(.variant-cell):not(.lesson-board button):hover { background: #edf5f0; color: #17201d; }
.learning-actions a:first-child:hover, .learning-panel button.learning-primary:hover { background: #034231; color: #fff; }
.learning-panel button:disabled { opacity: .55; cursor: default; }
.learning-panel :focus-visible { outline: 3px solid #087f5b; outline-offset: 3px; }
.learning-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.learning-panel form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.learning-panel label { display: grid; gap: 6px; font-size: .9rem; font-weight: 650; }
.learning-panel input { width: 100px; }
.learning-panel details { border-top: 1px solid #d5dfd9; padding: 0; }
.learning-panel summary { display: list-item; min-height: 48px; padding: 12px 0; cursor: pointer; font-weight: 650; }
.learning-panel details > p { margin-top: 0; }
.learning-status { min-height: 48px; margin: 12px 0; padding: 12px; border-left: 3px solid #a9b9b0; border-radius: 0 6px 6px 0; background: #f0f4f1; font-size: .9rem; line-height: 1.5; }
.learning-status[data-state="success"] { border-color: #087f5b; background: #e2f3e9; color: #07513e; font-weight: 650; }
.learning-status[data-state="error"] { border-color: #a03a1b; background: #fff0e7; color: #843114; }
.learning-status[data-state="revealed"] { border-color: #4e668a; background: #edf2fa; }
.learning-explanation { font-size: .9rem; color: #52635b; }
.learning-panel .learning-text-button { min-height: 44px; border: 0; padding-left: 0; background: transparent; color: #52635b; text-decoration: underline; text-underline-offset: 3px; }
.learning-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Compact the introductory illustration, retaining the full teaching asset in desktop context. */
.sudoku-learning-page--technique .strategic-hero { padding: 28px 0 24px; background: #edf5f0; }
.sudoku-learning-page--technique .strategic-hero__inner { max-width: 1100px; padding: 0 24px; gap: 32px; grid-template-columns: minmax(0, 1fr) 230px; align-items: center; }
.sudoku-learning-page--technique .strategic-hero__copy .poster-hero__brand, .sudoku-learning-page--technique .poster-hero__facts { display: none; }
.sudoku-learning-page--technique .strategic-hero h1 { max-width: 25ch; margin: 0; font: 650 clamp(1.8rem, 3.5vw, 2.7rem)/1.12 Georgia, serif; letter-spacing: -.035em; }
.sudoku-learning-page--technique .poster-hero__eyebrow { margin: 0 0 10px; }
.sudoku-learning-page--technique .poster-hero__lede { margin: 12px 0 0; max-width: 62ch; font-size: .95rem; line-height: 1.55; }
.sudoku-learning-page--technique .poster-hero__actions { margin-top: 16px; }
.sudoku-learning-page--technique .poster-hero__actions a { min-height: 44px; padding: 10px 16px; border-radius: 8px; }
.sudoku-learning-page--technique .strategic-hero__visual { margin: 0; width: 230px; box-shadow: none; border-radius: 8px; }
.sudoku-learning-page--technique .strategic-hero__visual img { display: block; width: 100%; height: auto; }
.sudoku-learning-page--technique .strategic-hero__visual figcaption { display: none; }
.sudoku-learning-page--technique .seo-shell { width: min(1100px, calc(100% - 48px)); max-width: 1100px; margin: 0 auto; gap: 40px; }
.practice-heading { max-width: 68ch; margin-bottom: 24px; }
.practice-heading > p:last-child { margin: 0; }
.practice-layout { grid-template-columns: minmax(0, 1.16fr) minmax(290px, .84fr); }
.practice-sidebar { padding-top: 2px; }
.practice-short-task { font-size: .9rem; color: #52635b; margin: 0 0 12px; }
.practice-actions { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.practice-actions button { width: 100%; }
.candidate-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-bottom: 16px; }
.candidate-choices button { min-height: 48px; padding: 8px 4px; font-variant-numeric: tabular-nums; }
.candidate-choices button[aria-pressed="true"] { border: 2px solid #ad4a12; background: #fff1de; text-decoration: line-through; color: #843114; }
.lesson-board { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); grid-template-rows: repeat(9, minmax(0, 1fr)); aspect-ratio: 1; width: 100%; max-width: 560px; border: 2px solid #17201d; background: #fff; }
.lesson-cell { position: relative; display: grid; place-items: center; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); min-width: 0; min-height: 0; line-height: 1; border-right: 1px solid #b2bcb6; border-bottom: 1px solid #b2bcb6; font-size: clamp(10px, 1.3vw, 15px); }
.lesson-cell:not(:has(span)) { display: flex; align-items: center; justify-content: center; font-size: clamp(18px, 3vw, 28px); font-weight: 700; }
.lesson-cell.box-left { border-left: 2px solid #17201d; }
.lesson-cell.box-top { border-top: 2px solid #17201d; }
.lesson-cell--pattern { background: #dcece4; box-shadow: inset 0 0 0 2px #087f5b; }
.lesson-cell button { border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }
.lesson-cell button::after { content: ''; position: absolute; inset: 0; }
.lesson-cell--selected { box-shadow: inset 0 0 0 3px #ad4a12; background: #fff1de; }
.lesson-cell--selected .lesson-candidate, .lesson-cell--removed .lesson-candidate { text-decoration: line-through; color: #9c3318; font-weight: 800; }
.lesson-candidate { font-weight: 800; color: #075d46; }
.lesson-cell button:focus-visible { outline-offset: -2px; }

.sudoku-learning-page--mini .seo-main { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding-top: 24px; }
.sudoku-learning-page--mini .seo-shell { width: 100%; margin: 0; gap: 32px; }
.mini-heading { margin: 0 0 20px; }
.mini-heading h1 { margin: 0; font: 600 clamp(2rem, 4vw, 3rem)/1.1 Georgia, serif; letter-spacing: -.04em; }
.mini-heading > p:last-child { margin: 10px 0 0; color: #52635b; font-size: .95rem; }
#mini-play { margin: 0; padding: 0; border: 0; }
#mini-play .learning-columns { grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); }
.mini-host { max-width: 560px; min-width: 0; }
.mini-host .variant-game { border-radius: 12px; box-shadow: none; padding: 16px; background: #fff; }
.mini-host .variant-game__topbar { margin-bottom: 12px; }
.mini-host .variant-game__label { font-size: .68rem; }
.mini-host .variant-control, .mini-host .variant-pad button { min-height: 46px; padding: 6px; border-radius: 8px; }
.mini-host .variant-control--primary { background: #075d46; color: #fff; border-color: #075d46; }
.mini-host .variant-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mini-host .variant-pad { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.mini-host .variant-game__status { min-height: 40px; margin: 12px 0 0; font-size: .85rem; line-height: 1.45; }
.mini-host .variant-game:has([data-variant-start]:disabled) [data-variant-check] { background: #075d46; color: #fff; border-color: #075d46; }
.mini-host .learning-actions { margin: 12px 0 0; }
.mini-host [data-mini-new] { min-height: 44px; padding: 8px 14px; }
.mini-help { padding-top: 12px; }
.mini-help > h3 { margin-top: 28px; }
.mini-help details[open] > p { padding-bottom: 12px; }

#killer-guide { margin-top: 48px; }
#killer-guide .learning-columns { margin-bottom: 32px; }
#killer-guide .learning-columns > div + div { border-left: 1px solid #d5dfd9; padding-left: 32px; }
#killer-guide form { margin: 18px 0; }
.cage-results { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; padding: 16px; background: #edf5f0; border-radius: 8px; }
.cage-results > strong, .cage-results > small { width: 100%; }
.cage-results > strong { margin-bottom: 4px; }
.cage-results > small { color: #52635b; line-height: 1.5; }
.cage-results[data-state="error"] { background: #fff0e7; color: #843114; }
.cage-combination { border: 1px solid #b6cdbf; border-radius: 5px; background: #fff; padding: 6px 10px; font-variant-numeric: tabular-nums; }
.killer-tool-link a { color: #075d46; font-weight: 700; text-underline-offset: 3px; }
.killer-answer { display: grid; grid-template-columns: repeat(9, 1fr); max-width: 450px; border: 2px solid #17201d; }
.killer-answer span { text-align: center; padding: 8px; border: 1px solid #b2bcb6; }
.learning-resource-list { display: grid; gap: 0; }
.learning-resource-list a { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(0, 1.3fr) auto; align-items: center; gap: 16px; min-height: 72px; padding: 14px 0; border-bottom: 1px solid #d5dfd9; text-decoration: none; }
.learning-resource-list a > span { color: #52635b; font-weight: 400; }
.learning-resource-list a > small { text-decoration: underline; text-underline-offset: 3px; }
.learning-resource-list a:hover { background: #edf5f0; }
.app--daily-landing .news-card, .app--daily-landing .community-card, .app--daily-landing .desktop-news-rail, .app--daily-landing .desktop-community-rail { display: none; }

@media (max-width: 700px) {
  .learning-panel { margin: 28px 0; padding: 24px 0; }
  .learning-columns, .practice-layout, #mini-play .learning-columns { grid-template-columns: 1fr; gap: 24px; }
  .sudoku-learning-page--technique .strategic-hero { padding: 20px 0; }
  .sudoku-learning-page--technique .strategic-hero__inner { display: block; width: 100%; padding: 0 16px; }
  .sudoku-learning-page--technique .strategic-hero__visual { display: none; }
  .sudoku-learning-page--technique .strategic-hero h1 { font-size: 1.85rem; }
  .sudoku-learning-page--technique .poster-hero__lede { font-size: .9rem; }
  .sudoku-learning-page--technique .poster-hero__actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .sudoku-learning-page--technique .poster-hero__actions a { flex: 1 1 140px; font-size: .85rem; }
  .sudoku-learning-page--technique .seo-shell { width: calc(100% - 32px); margin: 0 16px; gap: 28px; }
  .practice-heading { margin-bottom: 16px; }
  .practice-heading h2 { font-size: 1.5rem; }
  .practice-heading > p:last-child { font-size: .9rem; }
  .practice-sidebar { padding-top: 0; }
  .practice-sidebar h3 { margin-bottom: 6px; }
  .lesson-cell { font-size: 11px; }
  .practice-actions { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .practice-actions button { padding-inline: 8px; }
  .sudoku-learning-page--mini .seo-main { width: calc(100% - 32px); padding-top: 20px; }
  .mini-heading { margin-bottom: 16px; }
  .mini-heading h1 { font-size: 2rem; }
  .mini-heading > p:last-child { margin-top: 8px; font-size: .9rem; }
  .mini-host .variant-game { padding: 10px; }
  .mini-host .variant-control, .mini-host .variant-pad button { min-height: 44px; }
  .mini-help { padding-top: 0; }
  #killer-guide .learning-columns > div + div { padding: 24px 0 0; border-left: 0; border-top: 1px solid #d5dfd9; }
  .learning-resource-list a { grid-template-columns: 1fr auto; gap: 4px 12px; min-height: 88px; }
  .learning-resource-list a > span { grid-row: 2; font-size: .9rem; }
  .learning-resource-list a > small { grid-row: 1 / 3; grid-column: 2; }
}
@media (max-width: 360px) {
  .mini-host .variant-pad { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:has([data-learning-guide]) .conversion-panel { display: flex; flex-direction: column; align-items: stretch; }
  body:has([data-learning-guide]) .conversion-panel__actions { width: 100%; min-width: 0; }
  body:has([data-learning-guide]) .conversion-panel__actions a { max-width: 100%; }
}
@media print {
  body:has([data-mini-host]) .seo-header, body:has([data-mini-host]) .site-footer,
  body:has([data-mini-host]) .ios-app-banner, body:has([data-mini-host]) .mini-heading,
  body:has([data-mini-host]) .signal-band, body:has([data-mini-host]) .editorial-section,
  body:has([data-mini-host]) .editorial-links, body:has([data-mini-host]) #mini-play > h2,
  body:has([data-mini-host]) .mini-help, body:has([data-mini-host]) .learning-actions { display: none !important; }
  body:has([data-mini-host]) .learning-panel, body:has([data-mini-host]) .seo-main { margin: 0; padding: 0; border: 0; width: 100%; }
  body:has([data-mini-host]) .seo-shell { display: block; width: 100%; margin: 0; padding: 0; gap: 0; }
  body:has([data-mini-host]) .learning-columns { display: block; }
  body:has([data-mini-host]) { min-height: 0; background: #fff; }
  .mini-host .variant-game__status { display: none; }
  .mini-host .variant-board { width: 6in; max-width: 100%; }
  .mini-host .variant-cell { background: #fff !important; color: #000; box-shadow: none !important; }
}
