@charset "UTF-8";
/**
 * Skin: Crossword Puzzles — Fresh Sage Green + Charcoal (Site 014)
 *
 * Archetype: minimal-clean / editorial
 * Primary: #16a34a (sage green)  Accent: #1e293b (charcoal)
 * Heading: Libre Baskerville, Georgia, serif — newspaper crossword heritage
 * NYT Crossword meets modern web design. Clean, intellectual, sophisticated.
 * All colors reference tokens.css — zero hardcoded hex values.
 *
 * @layer skin
 */

/* ========================================
   Base Overrides
   ======================================== */

body {
  background: linear-gradient(160deg, var(--site-primary-light) 0%, var(--site-background) 50%, var(--site-background-alt) 100%);
  color: var(--site-text);
  font-family: var(--font-body);
}

/* Reduced motion — mandatory */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Text selection */
::selection      { background: var(--site-primary-light); color: var(--site-primary-dark); }
::-moz-selection { background: var(--site-primary-light); color: var(--site-primary-dark); }

/* Focus ring */
*:focus-visible {
  outline: 2px solid var(--site-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Custom scrollbar */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--site-background-alt); }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--site-primary) 30%, transparent);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--site-primary) 50%, transparent);
}

/* ========================================
   Typography
   ======================================== */

.page-header h1,
.hero h1,
.crossword-title,
.section-header h2,
.clue-title,
.card-title {
  font-family: var(--font-heading);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--site-primary-dark);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ========================================
   Page Header
   ======================================== */

.page-header {
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--site-primary) 2%, white) 100%);
  border-bottom: 2px solid var(--site-primary-border);
}

/* ========================================
   Hero — Clean editorial, left-aligned
   ======================================== */

.hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--site-primary-light) 100%);
  border-bottom: 2px solid var(--site-primary-border);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative circle — green toned */
.hero::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.06) 0%, transparent 70%);
  top: -140px;
  right: -100px;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--site-primary-dark);
  line-height: 1.2;
  letter-spacing: -0.025em;
  position: relative;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--site-text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Hero stats */
.hero-stats  { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }

.stat-item {
  text-align: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--site-primary-light) 100%);
  border: 1.5px solid var(--site-primary-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-lift);
}
.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.stat-number { display: block; font-size: 1.6rem; font-weight: 700; color: var(--site-primary); font-family: var(--font-heading); }
.stat-label  { display: block; font-size: 0.85rem; color: var(--site-text-muted); margin-top: 0.2rem; }

/* ========================================
   Breadcrumb
   ======================================== */

.breadcrumb {
}

.breadcrumb ol {
  font-size: 0.875rem;
  color: var(--site-text-muted);
}

.breadcrumb a { color: var(--site-primary); text-decoration: none; }
.breadcrumb a:hover { color: var(--site-primary-hover); text-decoration: underline; }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--site-border-dark); margin-left: 0.3rem; }
.breadcrumb li:last-child { color: var(--site-text); font-weight: 600; }

/* ========================================
   Variant Chips
   ======================================== */

.variant-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  color: var(--site-primary);
  background: var(--site-primary-light);
  border: 1px solid var(--site-primary-border);
}

/* ========================================
   Set Switcher
   ======================================== */

.set-switcher {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.set-switcher-label { font-size: 1rem; font-weight: 600; color: var(--site-text); }

.set-btn {
  background: var(--site-surface);
  border: 2px solid var(--site-border);
  border-radius: var(--radius-button);
  color: var(--site-text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.set-btn:hover {
  border-color: var(--site-primary);
  background: var(--site-primary-light);
  transform: translateY(-1px);
}
.set-btn.active {
  background: var(--site-primary);
  color: #ffffff;
  border-color: var(--site-primary-dark);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--site-primary) 28%, transparent);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius-button);
  background: var(--site-surface);
  color: var(--site-text);
  box-shadow: var(--shadow-sm);
  min-height: 44px;
  transition: background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:hover {
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
}
.btn:active {
  transform: scale(0.98) translateY(0);
  box-shadow: var(--shadow-btn-active);
}

.btn-primary {
  background: linear-gradient(180deg, var(--site-primary) 0%, var(--site-primary-hover) 100%);
  color: #ffffff;
  border-color: var(--site-primary-dark);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--site-primary-hover) 0%, var(--site-primary-dark) 100%);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-2px);
}

.btn-success,
.btn-answers {
  background: var(--site-accent);
  color: #ffffff;
  border-color: var(--site-accent-dark);
}
.btn-success:hover,
.btn-answers:hover {
  background: var(--site-accent-hover);
}

.btn-check          { background: var(--site-primary); color: #ffffff; border-color: var(--site-primary-dark); }
.btn-check:hover    { background: var(--site-primary-hover); }

.btn:focus-visible  { outline: 3px solid var(--site-primary); outline-offset: 3px; }

/* ========================================
   Crossword Puzzle Container — skin-level only
   Full grid/cell/clue styles live in crossword.css
   ======================================== */

.crossword-puzzle {
  border: 1px solid var(--site-primary-border);
  border-radius: var(--radius-card);
  background: var(--site-surface);
  box-shadow: var(--shadow-card);
}

.crossword-header { border-bottom: 2px solid var(--site-primary-border); }
.crossword-title  { color: var(--site-primary-dark); }

.puzzle-title {
  color: var(--site-primary-dark);
  font-family: var(--font-heading);
}

/* ========================================
   Toolbar
   ======================================== */

.detail-toolbar {
  background: var(--site-background-alt);
  border: 1px solid var(--site-border);
  border-radius: var(--radius-card);
}

/* ========================================
   Body Content / Worksheet
   ======================================== */

.body-content {
  background: var(--site-surface);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  border: 1px solid var(--site-border);
  border-top: none;
}

.problems-grid { border-top: 2px solid var(--site-primary-border); }
.problem       { border-bottom: 1px solid var(--site-background-alt); font-size: 1.125rem; color: var(--site-text); }

/* ========================================
   Intro Section
   ======================================== */

.intro {
  background: var(--site-primary-light);
  border: 1px solid var(--site-primary-border);
  border-left: 4px solid var(--site-primary);
  border-radius: var(--radius-card);
}
.intro h3 { font-weight: 700; color: var(--site-primary-dark); font-family: var(--font-heading); }
.intro p  { color: var(--site-text-muted); line-height: 1.65; }

/* Intro section (homepage variant) */
.intro-section {
  border-left: 5px solid var(--site-primary);
  border-radius: 0 var(--radius-button) var(--radius-button) 0;
  background: var(--site-primary-light);
  border-color: var(--site-primary-border);
  border-left-color: var(--site-primary);
}

/* ========================================
   Page Navigation
   ======================================== */

.page-nav,
.page-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.page-nav a,
.btn-nav {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-button);
  color: var(--site-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--dur-fast) var(--ease);
}
.page-nav a:hover,
.btn-nav:hover    { background: var(--site-primary-light); }
.btn-nav.disabled { color: var(--site-text-muted); cursor: not-allowed; }

/* ========================================
   Section Headers
   ======================================== */

.section-header    { margin: 1.5rem 0 1rem; }
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--site-text);
  position: relative;
  padding-bottom: 0.6rem;
}
/* Accent underline rule */
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--site-primary), var(--site-primary-border));
}
.section-header p { color: var(--site-text-muted); margin-top: 0.25rem; }

/* ========================================
   Homepage / Category Pages
   ======================================== */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

/* Category cards — white, 1px green border, 12px radius */
.category-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--site-surface);
  border: 1px solid var(--site-primary-border);
  border-left: 4px solid var(--site-primary);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: var(--transition-lift), border-left-color var(--dur-normal) var(--ease);
  animation: fadeInUp 400ms ease-out both;
}

/* Sliding accent bar on hover */
.category-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--site-primary), var(--site-primary-border));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-left-color: var(--site-primary-hover);
}
.category-card:hover::after { transform: scaleX(1); }

.category-icon    { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }
.category-card h3 { font-weight: 700; font-size: 1.05rem; color: var(--site-text); margin: 0 0 0.25rem; font-family: var(--font-heading); }
.category-card p  { font-size: 0.85rem; color: var(--site-text-muted); line-height: 1.4; margin: 0; }
.category-meta    {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--site-primary);
  margin-top: 0.5rem;
  background: color-mix(in srgb, var(--site-primary) 8%, transparent);
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.35rem;
  display: inline-block;
}

/* Staggered card animation */
.category-card:nth-child(1)  { animation-delay:   0ms; }
.category-card:nth-child(2)  { animation-delay:  60ms; }
.category-card:nth-child(3)  { animation-delay: 120ms; }
.category-card:nth-child(4)  { animation-delay: 180ms; }
.category-card:nth-child(5)  { animation-delay: 240ms; }
.category-card:nth-child(6)  { animation-delay: 300ms; }

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.subcategory-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1rem;
  background: var(--site-surface);
  border: 1px solid var(--site-primary-border);
  border-top: 3px solid var(--site-primary);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: var(--transition-lift), border-top-color var(--dur-normal) var(--ease);
  animation: fadeInUp 400ms ease-out both;
}

.subcategory-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--site-primary), var(--site-primary-border));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
.subcategory-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-top-color: var(--site-primary-hover);
}
.subcategory-card:hover::after  { transform: scaleX(1); }
.subcategory-card h3   { font-weight: 700; color: var(--site-text); font-family: var(--font-heading); }
.subcategory-card p    { font-size: 0.85rem; color: var(--site-text-muted); }
.subcategory-arrow     { font-size: 0.85rem; font-weight: 700; color: var(--site-primary); margin-top: auto; }

/* Staggered subcategory animation */
.subcategory-card:nth-child(1) { animation-delay:   0ms; }
.subcategory-card:nth-child(2) { animation-delay:  60ms; }
.subcategory-card:nth-child(3) { animation-delay: 120ms; }
.subcategory-card:nth-child(4) { animation-delay: 180ms; }
.subcategory-card:nth-child(5) { animation-delay: 240ms; }
.subcategory-card:nth-child(6) { animation-delay: 300ms; }

/* Worksheet list cards */
.worksheets-grid { display: flex; flex-direction: column; gap: 0.5rem; }

.worksheet-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--radius-button);
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.worksheet-card:hover { background: var(--site-primary-light); border-color: var(--site-primary-border); }
.worksheet-number     { font-weight: 700; font-size: 1rem; color: var(--site-primary); min-width: 60px; }
.worksheet-card h3    { font-size: 0.9rem; margin: 0; flex: 1; }
.worksheet-problems   { font-size: 0.8rem; color: var(--site-text-muted); }

/* ========================================
   Activity Cards (clue card grid)
   ======================================== */

.activity-card {
  background: #ffffff;
  border: 1px solid var(--site-border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
  position: relative;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.activity-card:hover {
  border-color: var(--site-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.activity-card .card-front {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--site-text);
}

.activity-card .card-back {
  display: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--site-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 8px;
}

.activity-card.flipped .card-front { display: none; }
.activity-card.flipped .card-back  {
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-card.flipped {
  background: var(--site-primary-light);
  border-color: var(--site-primary);
}

/* Across/Down direction markers */
.activity-card[data-group="across"] { border-left: 3px solid var(--site-primary); }
.activity-card[data-group="down"]   { border-left: 3px solid var(--site-accent); }

/* Revealed state */
.activity-card.revealed .card-back  {
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-card.revealed .card-front {
  font-size: 0.85rem;
  color: var(--site-text-muted);
  margin-bottom: 6px;
  display: block;
}
.activity-card.revealed {
  background: linear-gradient(135deg, var(--site-primary-light) 0%, #ffffff 100%);
  border-color: var(--site-primary);
}

/* Card meta badges */
.card-meta .stat-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--site-background-alt);
  border: 1px solid var(--site-border);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--site-text-muted);
  font-weight: 500;
}

/* ========================================
   SEO Components
   ======================================== */

.seo-components { border-top: 2px solid var(--site-primary-border); padding-top: 1.25rem; margin: 1.5rem 0; }
.seo-components--primary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.seo-more-grid           { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }

.seo-block {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--radius-card);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-normal) var(--ease), transform var(--dur-normal) var(--ease);
}
.seo-block:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* SEO card header band */
.seo-card { background: var(--site-background-alt); border-color: var(--site-border); border-top: none; }
.seo-card::before {
  background: linear-gradient(90deg, var(--site-primary) 0%, color-mix(in srgb, var(--site-primary) 60%, var(--site-accent)) 100%);
}
.seo-card:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-primary) 15%, transparent); }

/* Per-type band colors */
.seo-card.features::before        { background: linear-gradient(90deg, var(--site-primary), color-mix(in srgb, var(--site-primary) 60%, var(--site-accent))); }
.seo-card.benefits::before        { background: var(--site-accent); }
.seo-card.faq::before             { background: var(--site-primary-dark); }
.seo-card.tips::before            { background: #f59e0b; }
.seo-card.steps::before           { background: var(--site-accent-hover); }
.seo-card.tutorial::before        { background: var(--site-accent); }
.seo-card.examples::before        { background: #06b6d4; }
.seo-card.use-cases::before       { background: #ec4899; }
.seo-card.common-mistakes::before { background: #ef4444; }
.seo-card.practice::before        { background: #f97316; }
.seo-card.requirements::before    { background: #6366f1; }
.seo-card.resources::before       { background: #14b8a6; }
.seo-card.next-steps::before      { background: var(--site-primary); }
.seo-card.summary::before         { background: #64748b; }
.seo-card.related::before         { background: #a855f7; }

.seo-block h2, .seo-block h3 { font-weight: 700; color: var(--site-text); font-family: var(--font-heading); }
.seo-block p,  .seo-block li { font-size: 0.9375rem; color: var(--site-text-muted); line-height: 1.6; }
.seo-block a                 { color: var(--site-primary); text-decoration: none; }
.seo-block a:hover           { text-decoration: underline; }

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn   { from { opacity: 0; }                           to { opacity: 1; } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.fade-in  { animation: fadeIn  300ms ease-out; }
.slide-up { animation: slideUp 300ms ease-out; }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  .hero h1            { font-size: 1.8rem; }
  .hero .subtitle     { max-width: 100%; }
  .hero-stats         { gap: 1.2rem; }
  .stat-number        { font-size: 1.3rem; }
  .categories-grid    { grid-template-columns: 1fr; }
  .subcategories-grid { grid-template-columns: 1fr; }
  .seo-components--primary { grid-template-columns: 1fr; }
  .seo-more-grid      { grid-template-columns: 1fr; }
  .page-navigation    { flex-wrap: wrap; justify-content: center; }
  .puzzle-content     { grid-template-columns: 1fr; }

  /* Mobile crossword cells: 44×44px touch target */
  .crossword-cell {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .hero         { padding: 1.5rem 1rem; }
  .hero h1      { font-size: 1.5rem; }
  .hero-stats   { flex-direction: column; gap: 0.8rem; }
}

/* ========================================
   Print — Crossword Worksheet
   Clean output: grid + clues only
   ======================================== */

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  * { box-shadow: none !important; text-shadow: none !important; }

  /* Hide all UI chrome */
  .page-header,
  .hero,
  .breadcrumb,
  .btn:not(.btn-toggle-answer),
  .set-switcher,
  .page-nav,
  .page-navigation,
  .seo-components,
  .categories-section,
  .worksheets-section,
  .subcategories-section,
  .detail-toolbar,
  .btn-toggle-answer,
  .cw-check-panel,
  .cw-hint-budget,
  .cw-pencil-toggle,
  .cw-timer,
  .crossword-cell-input { display: none !important; }

  .crossword-puzzle {
    page-break-inside: avoid;
    break-inside: avoid;
    border: 1.5pt solid #333 !important;
  }

  .crossword-grid {
    background: #000 !important;
    border-color: #000 !important;
  }

  .crossword-cell {
    min-width: 24px;
    min-height: 24px;
    background: #ffffff !important;
  }
  .crossword-cell.blocked { background: #000 !important; }
  .crossword-cell.is-focused,
  .crossword-cell.is-highlighted { background: #ffffff !important; outline: none !important; }

  .cell-number  { color: #000 !important; }
  .cell-content { color: #000 !important; }

  .crossword-grid.answers-visible { page-break-before: always; }
  .crossword-grid.answers-visible::before {
    content: "Answer Key";
    display: block;
    font-size: 14pt;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
  }

  .clue-section {
    background: #f9f9f9 !important;
    border: 1pt solid #ccc !important;
  }

  .clue-title { color: #000 !important; }
  .clue-item  { color: #333 !important; }

  .activity-card {
    border: 1pt solid #999 !important;
    padding: 8px 10px;
    page-break-inside: avoid;
  }
  .activity-card .card-back { display: none !important; }

  .card-grid { grid-template-columns: 1fr 1fr !important; }

  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ========================================
   Dark Mode — Deep forest green base
   ======================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --site-background:     #0a1a0c;
    --site-background-alt: #111f13;
    --site-surface:        #162719;
    --site-text:           #e8f5e9;
    --site-text-muted:     #86a88a;
    --site-text-light:     #5a7a5e;
    --site-border:         #1f3a22;
    --site-border-dark:    #2d5033;
    --site-primary-light:  rgba(22, 163, 74, 0.15);
    --site-primary-border: rgba(22, 163, 74, 0.25);
    --cell-blocked-bg:     #374151;
    --cell-selected-bg:    rgba(254, 249, 195, 0.20);
    --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md:   0 4px 6px rgba(0, 0, 0, 0.45);
    --shadow-lg:   0 10px 15px rgba(0, 0, 0, 0.55);
    --shadow-card:       0 2px 8px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.35);
    --shadow-btn-hover:  0 4px 14px rgba(22, 163, 74, 0.35);
    --shadow-btn-active: 0 1px 4px rgba(0, 0, 0, 0.35);
  }

  body { background: var(--site-background); }

  .hero {
    background: linear-gradient(135deg, var(--site-surface) 0%, rgba(22, 163, 74, 0.06) 100%);
    border-bottom-color: var(--site-border);
  }
  .hero h1       { color: var(--site-text); }
  .hero .subtitle { color: var(--site-text-muted); }
  .hero::before  { background: radial-gradient(circle, rgba(22, 163, 74, 0.12) 0%, transparent 70%); }

  .stat-item {
    background: linear-gradient(135deg, var(--site-surface) 0%, rgba(22, 163, 74, 0.08) 100%);
    border-color: var(--site-border);
  }

  .page-header {
    background: linear-gradient(180deg, var(--site-surface) 0%, var(--site-background) 100%);
    border-bottom-color: var(--site-border);
  }
  .page-header h1 { color: var(--site-text); }

  .breadcrumb   { }
  .breadcrumb li:last-child { color: var(--site-text); }

  .category-card    { background: var(--site-surface); border-color: var(--site-border); }
  .category-card h3 { color: var(--site-text); }
  .subcategory-card    { background: var(--site-surface); border-color: var(--site-border); }
  .subcategory-card h3 { color: var(--site-text); }
  .worksheet-card   { background: var(--site-surface); border-color: var(--site-border); }
  .worksheet-card:hover { background: rgba(22, 163, 74, 0.08); }

  .body-content  { background: var(--site-surface); border-color: var(--site-border); }
  .intro {
    background: rgba(22, 163, 74, 0.08);
    border-color: var(--site-border);
    border-left-color: var(--site-primary);
  }

  .set-switcher  { background: var(--site-surface); border-color: var(--site-border); }
  .set-btn       { background: var(--site-surface); border-color: var(--site-border); color: var(--site-text); }
  .set-btn:hover { background: rgba(22, 163, 74, 0.10); }

  .page-nav,
  .page-navigation { background: var(--site-surface); border-color: var(--site-border); }

  .seo-block  { background: var(--site-surface); border-color: var(--site-border); }
  .seo-block h2, .seo-block h3 { color: var(--site-text); }
  .seo-block p,  .seo-block li { color: var(--site-text-muted); }
  .seo-card   { background: var(--site-background); }

  .section-header h2 { color: var(--site-text); }

  .btn { background: var(--site-surface); color: var(--site-text); }
  .variant-chip { background: rgba(22, 163, 74, 0.12); border-color: var(--site-border); }
  .problem { color: var(--site-text); }

  /* Dark crossword puzzle container */
  .crossword-puzzle { background: var(--site-surface); border-color: var(--site-border); }
  .crossword-header { border-bottom-color: var(--site-border); }
  .crossword-title  { color: var(--site-text); }

  .activity-card {
    background: var(--site-surface);
    border-color: var(--site-border);
    color: var(--site-text);
  }
  .activity-card:hover { border-color: var(--site-primary); }
  .activity-card.flipped {
    background: rgba(22, 163, 74, 0.10);
    border-color: var(--site-primary);
  }
  .activity-card .card-back { color: var(--site-primary); }

  .detail-toolbar { background: var(--site-surface); border-color: var(--site-border); }

  ::-webkit-scrollbar-track { background: var(--site-background); }
  ::-webkit-scrollbar-thumb { background: rgba(22, 163, 74, 0.30); }
  ::-webkit-scrollbar-thumb:hover { background: rgba(22, 163, 74, 0.50); }
}
