/* Skiliograph look on top of Kadence */

html:root {
  --sk-ink: #1F2A44;
  --sk-soft: #5A6275;
  --sk-body: #4A5263;
  --sk-cream: #FBF7F0;
  --sk-paper: #FFFDF9;
  --sk-sand: #F3E6D2;
  --sk-line: #E6DCCB;
  --sk-chip-line: #D9CDB8;
  --sk-orange: #E8780C;
  --sk-accent: #F7941D;
  --sk-rust: #A8500A;
  --sk-sun: #FDB913;

  /* Kadence global palette */
  --global-palette1: #E8780C;
  --global-palette2: #A8500A;
  --global-palette3: #1F2A44;
  --global-palette4: #1F2A44;
  --global-palette5: #4A5263;
  --global-palette6: #5A6275;
  --global-palette7: #F3E6D2;
  --global-palette8: #FBF7F0;
  --global-palette9: #FFFDF9;
  --global-palette-highlight: #A8500A;
  --global-palette-highlight-alt: #1F2A44;
  --global-palette-btn-bg: #1F2A44;
  --global-palette-btn-bg-hover: #A8500A;
  --global-palette-btn: #FBF7F0;
  --global-palette-btn-hover: #FBF7F0;
  --global-body-font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  --global-heading-font-family: 'Lora', Georgia, serif;
  --global-content-width: 1240px;
}

body, .editor-styles-wrapper {
  background: var(--sk-cream);
  color: var(--sk-ink);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
.site, .content-bg, body.content-style-unboxed .site { background: var(--sk-cream); }
h1, h2, h3, h4, h5, h6, .entry-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  color: var(--sk-ink);
  letter-spacing: -0.3px;
}
a { color: var(--sk-ink); }
a:hover, a:focus { color: var(--sk-rust); }
.sk-orange { color: var(--sk-orange); }

/* ---------- Header ---------- */
.site-header-wrap, .site-header-row-container-inner, .site-main-header-wrap .site-header-row-container-inner {
  background: var(--sk-cream);
}
.site-main-header-wrap { border-bottom: 1px solid var(--sk-line); }
.site-branding .site-title, .site-branding .site-title a {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--sk-ink);
  text-transform: lowercase;
}
.sk-wm-a { color: var(--sk-accent); }
.site-branding .site-description {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sk-soft);
  margin-top: 6px;
}
.main-navigation .primary-menu-container > ul > li.menu-item > a,
.header-navigation .header-menu-container > ul > li.menu-item > a {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: lowercase;
  color: var(--sk-ink);
}
.header-navigation .header-menu-container > ul > li.menu-item > a:hover,
.header-navigation .header-menu-container > ul > li.current-menu-item > a { color: var(--sk-rust); }
.header-navigation .sub-menu { background: var(--sk-paper); box-shadow: 0 8px 24px rgba(31, 42, 68, .1); }
.header-navigation .sub-menu li a { color: var(--sk-ink); font-size: 15px; }

/* ---------- Page basics ---------- */
.entry-hero .entry-title, .entry-header .entry-title { font-size: 44px; }
.entry-content > .sk-section-lead, .sk-section-lead {
  font-size: 19px;
  color: var(--sk-body);
  max-width: 720px;
}
.sk-more { font-weight: 700; letter-spacing: .6px; }
.sk-more a { color: var(--sk-rust); text-decoration: none; }

/* Home page: sections at a 1240px column */
.home .entry-content-wrap, .home .content-container.site-container { padding: 0; }
.home .entry-content > .wp-block-group.alignfull { margin-top: 0; margin-bottom: 0; }
.sk-section > *, .sk-hero > *, .sk-news > * {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.sk-section { padding: 56px 24px 24px; }

/* Hero */
.sk-hero { padding: 32px 24px 0; }
.sk-hero-inner {
  background: var(--sk-sand);
  border-radius: 6px;
  min-height: 420px;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-sizing: border-box;
}
.sk-hero-inner > * { max-width: 720px; margin: 0 !important; }
.sk-script, .sk-script-title, .sk-script-inline {
  font-family: 'Caveat', cursive !important;
  color: var(--sk-orange);
  font-weight: 500;
  letter-spacing: 0;
}
.sk-script { font-size: 34px; line-height: 1; }
.sk-hero-title { font-size: clamp(38px, 6vw, 56px) !important; line-height: 1.12; }
.sk-hero-text { font-size: 19px; color: var(--sk-body); max-width: 560px !important; }
.sk-script-title { font-size: 52px !important; line-height: 1; margin: 0 0 28px !important; }
.sk-center { justify-content: center; }

/* Buttons */
.wp-block-button.sk-btn-dark .wp-block-button__link,
.wp-block-button.sk-btn-outline .wp-block-button__link,
.wp-block-button.sk-btn-sun .wp-block-button__link {
  border-radius: 999px;
  padding: 14px 28px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: none;
}
.wp-block-button.sk-btn-dark .wp-block-button__link { background: var(--sk-ink); color: var(--sk-cream); border: 1.5px solid var(--sk-ink); }
.wp-block-button.sk-btn-dark .wp-block-button__link:hover { background: var(--sk-rust); border-color: var(--sk-rust); color: var(--sk-cream); }
.wp-block-button.sk-btn-outline .wp-block-button__link { background: transparent; color: var(--sk-ink); border: 1.5px solid var(--sk-ink); }
.wp-block-button.sk-btn-outline .wp-block-button__link:hover { background: var(--sk-ink); color: var(--sk-cream); }
.wp-block-button.sk-btn-sun .wp-block-button__link { background: var(--sk-accent); color: var(--sk-ink); border: none; font-weight: 800; }
.wp-block-button.sk-btn-sun .wp-block-button__link:hover { background: var(--sk-sun); color: var(--sk-ink); }

/* Game cards */
.sk-games { gap: 28px !important; }
.sk-game-card {
  height: 100%;
  background: var(--sk-paper);
  border: 1px solid var(--sk-line);
  border-radius: 18px;
  padding: 24px !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sk-game-card > * { margin: 0 !important; max-width: none !important; }
.sk-game-card .wp-block-buttons { margin-top: auto !important; padding-top: 6px; }
.sk-game-art {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.sk-game-math .sk-game-art { background: #FFF1A8; }
.sk-game-spell .sk-game-art { background: #DCCBFF; }
.sk-game-wf .sk-game-art { background: #A9DCFF; }
.sk-card-title { font-size: 21px !important; line-height: 1.35; margin: 0 !important; }
.sk-card-title a { text-decoration: none; color: var(--sk-ink); }
.sk-card-title a:hover { color: var(--sk-rust); }
.sk-card-text { font-size: 16px; color: var(--sk-body); }
.sk-section-lead { margin-bottom: 28px !important; }
.sk-games-section .sk-script-title { margin-bottom: 8px !important; }

/* Resource cards with drawn worksheet previews */
.sk-resources { gap: 28px !important; }
.sk-resources .wp-block-column > * { margin-top: 0; margin-bottom: 14px; }
.sk-kicker { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--sk-soft); margin-bottom: 6px !important; }
.sk-res-art {
  display: flex; align-items: center; justify-content: center; position: relative;
  aspect-ratio: 4 / 3; background: #FDF0DE; text-decoration: none;
}
.sk-res-cut { background: #FCE3C3; }
.sk-res-doll { background: #EFE6D7; }
.sk-res-paid { background: #E4E8EF; }
.sk-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--sk-ink); color: var(--sk-cream);
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 999px;
}
.sk-badge-paid { background: var(--sk-cream); color: var(--sk-ink); }
.sk-sheet {
  width: 50%; aspect-ratio: 8.5 / 11; background: #fff;
  box-shadow: 0 6px 18px rgba(31, 42, 68, .12);
  padding: 10px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 6px;
  transform: rotate(-2deg);
}
.sk-sheet-cut { transform: rotate(2deg); }
.sk-sheet-doll { transform: rotate(-1deg); }
.sk-sheet-paid { transform: rotate(3deg); }
.sk-sheet-bar { height: 6px; width: 55%; background: var(--sk-accent); }
.sk-sheet-paid .sk-sheet-bar { background: var(--sk-ink); }
.sk-sheet-cut .sk-sheet-bar { background: var(--sk-sun); }
.sk-sheet-hl { height: 9px; background: #FDD9A8; }
.sk-sheet-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px 8px; margin-top: 2px; }
.sk-sheet-lines.short { grid-template-columns: 1fr; gap: 5px; }
.sk-sheet-lines i { display: block; height: 3px; background: #E6E1D8; }
.sk-sheet-dots { display: flex; gap: 4px; }
.sk-sheet-dots b { width: 8px; height: 8px; border-radius: 50%; background: var(--sk-accent); }
.sk-sheet-shapes { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; justify-items: center; }
.sk-sheet-shapes b { border: 2px dashed var(--sk-accent); }
.sk-sheet-shapes .o { width: 70%; aspect-ratio: 1; border-radius: 50%; }
.sk-sheet-shapes .r { width: 70%; aspect-ratio: 1.4; border-radius: 8px; }
.sk-sheet-shapes .t { width: 55%; aspect-ratio: .7; border-radius: 10px 10px 4px 4px; }
.sk-sheet-shapes .d { width: 70%; aspect-ratio: 1; border-radius: 50% 50% 50% 0; }
.sk-sheet-doll > span { display: block; flex: 1; margin: 0 auto; width: 40%; border: 2px solid var(--sk-ink); border-radius: 40% 40% 10px 10px; }
.sk-sheet-doll > em { display: block; height: 26px; width: 60%; margin: 0 auto; border: 2px dashed var(--sk-accent); border-radius: 8px; background: #FDF0DE; }
.sk-sheet-doll { padding-bottom: 14px; }
.sk-sheet .sk-sheet-doll { flex: 1; display: flex; flex-direction: column; gap: 6px; }

/* Topic chips */
.sk-topics {
  border-top: 1px solid var(--sk-line);
  border-bottom: 1px solid var(--sk-line);
  padding: 40px 0 !important;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px;
}
.sk-topics > * { margin: 0 !important; max-width: none !important; }
.sk-topics-title { font-size: 30px !important; flex: 0 0 auto; }
.sk-chips { flex: 1 1 500px; gap: 12px !important; }
.wp-block-button.sk-chip .wp-block-button__link {
  background: var(--sk-paper); color: var(--sk-ink);
  border: 1px solid var(--sk-chip-line); border-radius: 999px;
  padding: 10px 20px; font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 600;
  text-transform: none; letter-spacing: 0; box-shadow: none; text-decoration: none;
}
.wp-block-button.sk-chip .wp-block-button__link:hover { border-color: var(--sk-ink); background: var(--sk-paper); color: var(--sk-ink); }

/* Stories */
.sk-stories { gap: 32px !important; }
.sk-photo {
  aspect-ratio: 3 / 2; background: #EFE6D7; color: #6B5A43;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; text-align: center; padding: 16px; box-sizing: border-box; margin-bottom: 12px;
}
.sk-stories + .sk-more { margin-top: 20px; padding-bottom: 48px; }

/* Newsletter band */
.sk-news { background: var(--sk-ink); color: var(--sk-cream); padding: 72px 24px; margin-top: 24px; }
.sk-news > * { max-width: 900px !important; }
.sk-news-title { color: var(--sk-cream) !important; font-size: clamp(32px, 5vw, 44px) !important; line-height: 1.2; }
.sk-script-inline { color: var(--sk-sun); font-size: 1.25em; }
.sk-news-text { color: #D5D9E2; font-size: 17px; max-width: 620px !important; }
.sk-news-small { color: #B9BFCC; font-size: 13px; margin-top: 16px !important; }

/* Footer */
.site-footer, .site-footer .site-footer-wrap, .site-bottom-footer-wrap .site-footer-row-container-inner,
.site-middle-footer-wrap .site-footer-row-container-inner, .site-top-footer-wrap .site-footer-row-container-inner {
  background: var(--sk-cream);
  color: var(--sk-soft);
}
.site-footer a { color: var(--sk-soft); text-decoration: none; }
.site-footer a:hover { color: var(--sk-ink); }
.footer-navigation .footer-menu-container > ul > li > a { font-size: 14px; }

/* Game pages: keep the game centered, no extra card around it */
.skm-game, .sks-game, .skw-game { margin-top: 8px; }

@media (max-width: 781px) {
  .sk-section { padding: 40px 16px 16px; }
  .sk-hero { padding: 16px 16px 0; }
  .sk-hero-inner { min-height: 0; padding: 48px 20px; }
  .sk-script-title { font-size: 44px !important; }
  .sk-news { padding: 56px 16px; }
  .sk-resources { flex-wrap: wrap !important; }
  .sk-resources > .wp-block-column { flex-basis: calc(50% - 14px) !important; }
}
@media (max-width: 520px) {
  .sk-resources > .wp-block-column { flex-basis: 100% !important; }
}

/* ---------- Rotating homepage banner ---------- */
.sk-slider { position: relative; padding: 32px 24px 0; margin-top: 0 !important; margin-bottom: 0 !important; }
.sk-slider > .sk-slides { max-width: 1240px; margin: 0 auto; }
.sk-slides { display: grid; }
.sk-slide {
  grid-area: 1 / 1;
  border-radius: 6px;
  padding: 56px 56px 72px;
  box-sizing: border-box;
  min-height: 460px;
  display: flex;
  align-items: center;
  margin: 0 !important;
}
.sk-slide > .sk-slide-cols { width: 100%; margin: 0 !important; gap: 48px; }
.sk-slide-name  { background: #F3E6D2; }
.sk-slide-table { background: #FCE3C3; }
.sk-slide-play  { background: #E4E8EF; }
.sk-slide-text > * { margin-top: 0 !important; margin-bottom: 16px !important; max-width: 560px; }
.sk-slide-text .wp-block-buttons { margin-top: 24px !important; }
.sk-slide .sk-hero-title { font-size: clamp(36px, 5vw, 54px) !important; line-height: 1.12; }
.sk-slide .sk-hero-text { font-size: 19px; color: var(--sk-body); }
.sk-slide-visual { display: flex; justify-content: center; }

/* Without JavaScript the slides stack; with it they cross-fade. */
.sk-slider:not(.is-ready) .sk-slide { grid-area: auto; margin-bottom: 16px !important; }
.sk-slider.is-ready .sk-slide { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.sk-slider.is-ready .sk-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; z-index: 1; }

/* skil + io + graph tiles */
.sk-tiles { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.sk-tiles > * { margin: 0 !important; }
.sk-tile {
  background: var(--sk-paper); border-radius: 18px; padding: 18px 18px 14px; min-width: 120px;
  text-align: center; box-shadow: 0 6px 0 rgba(31, 42, 68, .08);
  display: flex; flex-direction: column; gap: 4px;
}
.sk-tile > * { margin: 0 !important; }
.sk-tile-word { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.5px; color: var(--sk-ink); }
.sk-tile-skil .sk-tile-word { color: var(--sk-accent); }
.sk-tile-label { font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--sk-soft); }
.sk-tile-plus { font-family: 'Caveat', cursive; font-size: 40px; line-height: 1; color: var(--sk-orange); }
.sk-tile-io { transform: rotate(-2deg); }
.sk-tile-graph { transform: rotate(1.5deg); }

/* Drawn visuals for slides 2 and 3 */
.sk-slide-art { position: relative; width: 100%; max-width: 380px; aspect-ratio: 5 / 4; }
.sk-art-sheets .sk-sheet { position: absolute; width: 46%; }
.sk-art-sheets .sk-sheet:nth-child(1) { left: 10%; top: 8%; transform: rotate(-6deg); }
.sk-art-sheets .sk-sheet:nth-child(2) { right: 10%; top: 14%; transform: rotate(5deg); }
.sk-art-timer {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%) rotate(-3deg);
  background: var(--sk-ink); color: var(--sk-cream); border-radius: 999px; padding: 8px 18px;
  font-family: 'Caveat', cursive; font-size: 30px; line-height: 1;
}
.sk-art-games { display: grid; place-items: center; }
.sk-art-card {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 46%; aspect-ratio: 4 / 3; border-radius: 18px;
  font-family: 'Baloo 2', 'Nunito', sans-serif; font-weight: 800; font-size: clamp(24px, 3vw, 36px); color: var(--sk-ink);
  box-shadow: 0 6px 0 rgba(31, 42, 68, .12);
}
.sk-art-card b { color: #c46a12; }
.sk-art-card.c1 { background: #FFF1A8; left: 4%; top: 6%; transform: rotate(-6deg); }
.sk-art-card.c2 { background: #DCCBFF; right: 4%; top: 22%; transform: rotate(4deg); }
.sk-art-card.c3 { background: #A9DCFF; left: 24%; bottom: 2%; transform: rotate(-2deg); color: #c98a00; letter-spacing: 2px; }

/* Controls */
.sk-slider-controls {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 253, 249, .9); border-radius: 999px; padding: 4px 6px;
  box-shadow: 0 2px 10px rgba(31, 42, 68, .1);
}
.sk-slider-arrow, .sk-slider-pause {
  width: 40px; height: 40px; border: none; border-radius: 50%; background: transparent; color: var(--sk-ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.sk-slider-arrow:hover, .sk-slider-pause:hover { background: var(--sk-sand); color: var(--sk-ink); }
.sk-slider-dots { display: flex; gap: 2px; }
.sk-dot { width: 32px; height: 40px; border: none; background: transparent; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.sk-dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: #CFC4AD; transition: width .25s, background .25s; }
.sk-dot[aria-current="true"]::before { width: 24px; background: var(--sk-ink); }
.sk-dot:hover { background: transparent; }
.sk-slider button:focus-visible { outline: 3px solid var(--sk-ink); outline-offset: 2px; }
.sk-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sk-slider:not(.is-ready) .sk-slider-controls { display: none; }

/* Our Story */
.sk-story-sum { font-size: 20px; margin-top: 8px; }
.entry-content .sk-tiles { justify-content: flex-start; margin: 8px 0 28px !important; }

@media (max-width: 781px) {
  .sk-slider { padding: 16px 16px 0; }
  .sk-slide { padding: 36px 24px 84px; min-height: 0; align-items: flex-start; }
  .sk-slide > .sk-slide-cols { gap: 24px; }
  .sk-slide-visual { order: -1; }
  .sk-slide-art { max-width: 300px; }
  .sk-tile { min-width: 0; padding: 14px 12px 10px; }
  .sk-tile-word { font-size: 34px; }
  .sk-tile-label { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-slider.is-ready .sk-slide, .sk-dot::before { transition: none; }
}

/* Keep skil + io + graph on one line */
.sk-tiles { flex-wrap: nowrap; gap: 8px; width: 100%; max-width: 560px; }
.sk-tile { flex: 1 1 0; min-width: 0; max-width: 170px; padding: 16px 10px 12px; }
.sk-tile-word { font-size: clamp(28px, 3.6vw, 46px); }
.sk-tile-label { font-size: clamp(10px, 1vw, 12px); letter-spacing: .5px; line-height: 1.25; }
.sk-tile-plus { flex: 0 0 auto; font-size: clamp(28px, 3vw, 40px); }
@media (max-width: 781px) {
  .sk-tile { padding: 12px 6px 10px; border-radius: 14px; }
  .sk-tile-word { font-size: 28px; }
  .sk-tile-label { font-size: 10px; }
  .sk-tile-plus { font-size: 26px; }
}

/* Photos in the banner and on Our Story */
.sk-slide-visual .wp-block-image.sk-slide-photo { margin: 0 !important; width: 100%; max-width: 480px; }
.sk-slide-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 18px; box-shadow: 0 10px 30px rgba(31, 42, 68, .14);
}
.sk-slide-table .sk-slide-photo img { transform: rotate(1.5deg); }
.sk-slide-play .sk-slide-photo img { transform: rotate(-1.5deg); }
.wp-block-image.sk-story-photo { margin: 8px 0 32px; }
.sk-story-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
@media (max-width: 781px) {
  .sk-slide-visual .wp-block-image.sk-slide-photo { max-width: 340px; }
}
@media (min-width: 782px) { .sk-slide { padding-bottom: 92px; } }

/* Classic themes (Kadence) wrap group contents in .wp-block-group__inner-container.
 * Make that wrapper transparent inside our layout groups so flex/grid apply. */
.sk-slider > .wp-block-group__inner-container,
.sk-slides > .wp-block-group__inner-container,
.sk-slide > .wp-block-group__inner-container,
.sk-tiles > .wp-block-group__inner-container,
.sk-tile > .wp-block-group__inner-container,
.sk-game-card > .wp-block-group__inner-container,
.sk-topics > .wp-block-group__inner-container,
.sk-hero-inner > .wp-block-group__inner-container { display: contents; }
.sk-slide > .wp-block-group__inner-container > .sk-slide-cols { width: 100%; margin: 0 !important; gap: 48px; }
.sk-section > .wp-block-group__inner-container, .sk-news > .wp-block-group__inner-container {
  max-width: 1240px; margin-left: auto; margin-right: auto;
}
.sk-news > .wp-block-group__inner-container { max-width: 900px; }
.sk-news > .wp-block-group__inner-container > * { margin-left: auto; margin-right: auto; }
.sk-section > .wp-block-group__inner-container > .sk-section-lead { max-width: 720px; }
@media (max-width: 781px) {
  .sk-slide > .wp-block-group__inner-container > .sk-slide-cols { gap: 24px; }
}
.sk-tiles > .wp-block-group__inner-container > *,
.sk-tile > .wp-block-group__inner-container > *,
.sk-hero-inner > .wp-block-group__inner-container > * { margin: 0 !important; }
.sk-game-card > .wp-block-group__inner-container > *,
.sk-topics > .wp-block-group__inner-container > * { margin: 0 !important; max-width: none !important; }
.sk-tile { align-self: center; }

/* ---------- Banner: keep to the page width, closer together ---------- */
.sk-slider .sk-slides { max-width: 1240px; margin-left: auto; margin-right: auto; }
.sk-slide .sk-slide-cols { gap: 40px !important; }
.sk-slide .sk-slide-text { flex: 1 1 52% !important; }
.sk-slide .sk-slide-visual { flex: 1 1 48% !important; justify-content: center; }

/* ---------- Banner: slide-in animation ---------- */
@keyframes sk-rise   { from { opacity: 0; transform: translateY(22px); } }
@keyframes sk-slidein { from { opacity: 0; transform: translateX(60px) rotate(4deg) scale(.94); } }
@keyframes sk-pop    { from { opacity: 0; transform: translateY(26px) scale(.85) rotate(-6deg); } }
@keyframes sk-plus   { from { opacity: 0; transform: scale(.3); } }

.sk-slider.is-ready .sk-slide.is-active .sk-slide-text > * { animation: sk-rise .7s cubic-bezier(.2, .8, .25, 1) both; }
.sk-slider.is-ready .sk-slide.is-active .sk-slide-text > *:nth-child(2) { animation-delay: .08s; }
.sk-slider.is-ready .sk-slide.is-active .sk-slide-text > *:nth-child(3) { animation-delay: .16s; }
.sk-slider.is-ready .sk-slide.is-active .sk-slide-text > *:nth-child(4) { animation-delay: .24s; }

.sk-slider.is-ready .sk-slide.is-active .sk-slide-photo,
.sk-slider.is-ready .sk-slide.is-active .sk-slide-art { animation: sk-slidein .9s cubic-bezier(.2, .8, .25, 1) .1s both; }

.sk-slider.is-ready .sk-slide.is-active .sk-tile { animation: sk-pop .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.sk-slider.is-ready .sk-slide.is-active .sk-tile:nth-of-type(1) { animation-delay: .15s; }
.sk-slider.is-ready .sk-slide.is-active .sk-tile:nth-of-type(2) { animation-delay: .32s; }
.sk-slider.is-ready .sk-slide.is-active .sk-tile:nth-of-type(3) { animation-delay: .49s; }
.sk-slider.is-ready .sk-slide.is-active .sk-tile-plus { animation: sk-plus .4s ease-out .55s both; }

/* Photos: a slow gentle zoom while the slide is showing */
@keyframes sk-drift { from { transform: scale(1.06); } }
.sk-slide-photo { overflow: hidden; border-radius: 18px; }
.sk-slider.is-ready .sk-slide.is-active .sk-slide-photo img { animation: sk-drift 5s ease-out both; }
.sk-slide-table .sk-slide-photo, .sk-slide-play .sk-slide-photo { box-shadow: 0 10px 30px rgba(31, 42, 68, .14); }
.sk-slide-table .sk-slide-photo { rotate: 1.5deg; }
.sk-slide-play .sk-slide-photo { rotate: -1.5deg; }
.sk-slide .sk-slide-photo img { transform: none; box-shadow: none; border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  .sk-slider.is-ready .sk-slide.is-active *, .sk-slider.is-ready .sk-slide.is-active .sk-slide-photo img { animation: none !important; }
}
@media (max-width: 781px) {
  .sk-slide .sk-slide-cols { gap: 24px !important; }
}

/* ---------- Algebra Growth Path ---------- */
.sk-gp-section .sk-script-title { margin-bottom: 20px !important; }
.sk-gp-card {
  background: var(--sk-paper);
  border: 1px solid var(--sk-line);
  border-radius: 22px;
  padding: 36px 40px !important;
  box-sizing: border-box;
}
.sk-gp-card > .wp-block-group__inner-container { display: contents; }
.sk-gp-card .sk-gp-cols { gap: 48px; margin: 0 !important; }
.sk-gp-text { flex-basis: 44% !important; display: flex; flex-direction: column; gap: 12px; }
.sk-gp-text > * { margin: 0 !important; }
.sk-gp-visual { flex-basis: 56% !important; min-width: 0; }
.sk-gp-title { font-size: clamp(26px, 3vw, 34px) !important; line-height: 1.18; text-wrap: balance; }
.sk-gp-ticks { font-size: 15px; font-weight: 700; color: var(--sk-ink); }
.sk-gp-text .wp-block-buttons { padding-top: 6px; }

/* Rising columns: each stage one step taller, like a growth chart. */
.sk-gp-chart {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end;
  background-image: repeating-linear-gradient(to top, var(--sk-line) 0 1px, transparent 1px 44px);
}
.sk-gp-step { margin: 0; min-width: 0; }
.sk-gp-bar {
  display: flex; flex-direction: column; gap: 3px;
  min-height: calc(110px + var(--n) * 38px);
  padding: 12px 12px 14px; box-sizing: border-box;
  border-radius: 12px 12px 4px 4px;
  background: var(--sk-cream); border: 2px dashed var(--sk-chip-line); color: var(--sk-ink);
}
.sk-gp-step.is-open .sk-gp-bar { background: var(--sk-orange); border: 2px solid var(--sk-orange); color: #fff; }
.sk-gp-num { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; opacity: .75; }
.sk-gp-name { font-family: 'Lora', Georgia, serif; font-size: 17px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.sk-gp-ages { font-weight: 800; font-size: 14px; }
.sk-gp-chip {
  align-self: flex-start; margin-top: auto;
  font-size: 11px; font-weight: 800; letter-spacing: .3px; white-space: nowrap;
  padding: 2px 9px; border-radius: 999px;
  background: var(--sk-paper); color: var(--sk-soft); border: 1px solid var(--sk-line);
}
.sk-gp-step.is-open .sk-gp-chip { color: var(--sk-rust); border-color: #fff; }
.sk-gp-summit { font-family: 'Caveat', cursive; font-size: 24px; color: var(--sk-orange); text-align: right; margin: 6px 2px 0 !important; line-height: 1; }

@media (max-width: 1080px) {
  .sk-gp-card .sk-gp-cols { flex-wrap: wrap !important; }
  .sk-gp-card .sk-gp-cols > .wp-block-column { flex-basis: 100% !important; }
}
@media (max-width: 640px) {
  .sk-gp-card { padding: 22px 16px !important; }
  .sk-gp-chart { grid-template-columns: 1fr; background: none; gap: 8px; }
  .sk-gp-bar {
    min-height: 0; width: calc(72% + var(--n) * 5.6%);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 1px; padding: 10px 12px;
  }
  .sk-gp-bar .sk-gp-chip { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .sk-gp-summit { text-align: left; }
}

/* Growth Path page: one row per stage. */
.sk-gp-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.sk-gp-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start;
  margin: 0; padding: 16px 18px; border-radius: 16px;
  background: var(--sk-paper); border: 1px solid var(--sk-line);
}
.sk-gp-row.is-open { border: 2px solid var(--sk-orange); }
.sk-gp-mini { display: flex; align-items: flex-end; gap: 3px; height: 40px; padding-top: 4px; }
.sk-gp-mini i { display: block; width: 8px; height: calc(var(--b) * 7px + 5px); border-radius: 2px; background: var(--sk-sand); }
.sk-gp-mini i.on { background: var(--sk-orange); }
.sk-gp-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-gp-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sk-gp-row-head b { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: 20px; }
.sk-gp-row .sk-gp-chip { margin: 0; }
.sk-gp-row.is-open .sk-gp-chip { background: var(--sk-orange); border-color: var(--sk-orange); color: #fff; }
.sk-gp-row-ages { font-weight: 800; font-size: 15px; color: var(--sk-ink); }
.sk-gp-row-what { font-size: 16px; color: var(--sk-body); }
.sk-gp-note { font-size: 15px; color: var(--sk-soft); max-width: 720px; }
.sk-gp-steps li, .sk-gp-facts li { margin-bottom: 10px; }
.sk-gp-steps li::marker { color: var(--sk-orange); font-weight: 800; }
#start { scroll-margin-top: 90px; }

/* Practice makes perfect: the method, set apart on the Growth Path page. */
.sk-gp-practice {
  background: var(--sk-sand);
  border-radius: 22px;
  padding: 28px 32px !important;
  margin-block: 40px !important;
  box-sizing: border-box;
}
.sk-gp-practice > * , .sk-gp-practice > .wp-block-group__inner-container > * { max-width: 720px; }
.sk-gp-practice .sk-gp-practice-title { margin-top: 0 !important; font-size: 30px; }
.sk-gp-practice .sk-gp-practice-title::before {
  content: "practice, practice, practice"; display: block;
  font-family: 'Caveat', cursive; font-size: 26px; line-height: 1; color: var(--sk-orange); margin-bottom: 6px;
}
.sk-gp-practice ul { margin-bottom: 0; }
@media (max-width: 640px) { .sk-gp-practice { padding: 22px 18px !important; } }

/* 1.6.0: stage links on the Growth Path overview, back link on stage pages */
.sk-gp-go { align-self: flex-start; margin-top: 6px; font-weight: 800; font-size: 15px; color: #fff; background: var(--sk-orange); border-radius: 999px; padding: 6px 14px; text-decoration: none; }
.sk-gp-go:hover, .sk-gp-go:focus { background: var(--sk-ink); color: #fff; }
.sk-gp-back { font-weight: 700; font-size: 15px; margin: 0 0 10px; }
.sk-gp-back a { color: var(--sk-ink); text-decoration: none; }
.sk-gp-back a:hover { text-decoration: underline; }

/* 1.7.0 / 1.7.1: each stage's status is a ribbon across the top-right corner of its row,
   so "Available now" and "Coming soon" always sit in the same place.
   The ribbon's centre sits on the corner's 45° diagonal (same distance D from the top and right
   edges), so the part you see is centred on the label: top = D − height/2, right = D − width/2. */
.sk-gp-row { position: relative; overflow: hidden; padding-right: 96px; }
.sk-gp-row .sk-gp-chip {
  --d: 50px; --h: 22px; --w: 200px;
  position: absolute; top: calc(var(--d) - var(--h) / 2); right: calc(var(--d) - var(--w) / 2);
  width: var(--w); height: var(--h); line-height: var(--h); margin: 0; padding: 0 0 0 .8px;
  box-sizing: border-box; transform: rotate(45deg); transform-origin: 50% 50%;
  text-align: center; border: 0; border-radius: 0; white-space: nowrap;
  font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  background: var(--sk-sand); color: var(--sk-soft);
  box-shadow: 0 2px 6px rgba(31, 42, 68, .12);
}
.sk-gp-row.is-open .sk-gp-chip { background: var(--sk-orange); border: 0; color: #fff; }
@media (max-width: 640px) {
  .sk-gp-row { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 14px 70px 14px 12px; }
  .sk-gp-mini { transform: scale(.8); transform-origin: left top; }
  .sk-gp-row-head b { font-size: 18px; }
  .sk-gp-row .sk-gp-chip { --d: 40px; --h: 18px; --w: 170px; font-size: 9px; letter-spacing: .5px; padding-left: .5px; }
}

/* 1.7.1: homepage chart on wider screens. Each bar is taller than the one before by the same step
   (Stage 1 no longer stretches to Stage 2's height), names don't break mid-word, and the
   status badge always fits inside its bar (it wraps onto two lines rather than spilling out). */
@media (min-width: 641px) {
  .sk-gp-bar { min-height: calc(150px + var(--n) * 44px); }
  .sk-gp-name { font-size: 15px; overflow-wrap: normal; word-break: normal; hyphens: manual; }
  .sk-gp-bar .sk-gp-chip {
    max-width: 100%; box-sizing: border-box; white-space: normal; text-align: center;
    font-size: 10.5px; line-height: 1.2; padding: 3px 7px; letter-spacing: .2px;
  }
}

/* ---------- Science Discovery Path (1.8.0) ---------- */
.sk-sdp-section .sk-script-title { margin-bottom: 20px !important; }
.sk-sdp-strands { width: 100%; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sk-sdp-strand { margin: 0; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #D8F3DC; color: var(--sk-ink); min-width: 0; }
.sk-sdp-strand.is-earth { background: #DBEAFE; }
.sk-sdp-strand.is-physical { background: #FFF1C9; }
.sk-sdp-ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 28px; line-height: 1; }
.sk-sdp-strand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-sdp-strand-text b { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: 19px; line-height: 1.2; }
.sk-sdp-strand-text span { font-size: 14px; line-height: 1.35; color: var(--sk-soft); font-weight: 600; }
.sk-sdp-summit { font-family: 'Caveat', cursive; font-size: 24px; color: #2f8f4f; text-align: right; margin: 8px 2px 0 !important; line-height: 1; }
