/* Grammar Practice.

   The pages are built from components the site already has, so this file only
   adds what those do not:
     hub         css/practice-exercises.css  px-hero, px-how, px-secs, px-card
     skill page  css/lesson.css               lesson-hero, lesson-shell, lesson-block,
                                              lesson-table, lesson-paywall
   It loads last on both. Anything inside .lesson-main has to beat that file's
   (0,1,1) element rules, which is why some selectors below carry two classes. */

.gp-page {
  --px-navy: #031f42; --px-blue: #005bff; --px-teal: #00e2c5; --px-gold: #ffd25d;
  --px-muted: #5b6d84; --px-line: #e6efff; --px-canvas: #f4f9ff;
  --px-ok: #16a34a; --px-ok-bg: #ecfdf5; --px-no: #e5484d; --px-no-bg: #fef2f2;
  --px-r-sm: 10px; --px-r: 16px; --px-r-lg: 24px;
  --px-shadow: 0 1px 2px rgba(3, 31, 66, .06), 0 8px 24px rgba(3, 31, 66, .08);
  --gp-lift: 0 18px 44px rgba(3, 31, 66, .07);
}
#gp-app, #gp-check { scroll-margin-top: 92px; }
.gp-page button:disabled { cursor: default; }

/* ------------------------------------------------------------ page layout */
.gp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.gp-band { padding: 64px 0; background: #fff; }
.gp-band-alt { background: var(--px-canvas); }
@media (min-width: 1024px) { .gp-band { padding: 84px 0; } }
.gp-head { max-width: 720px; margin: 0 0 30px; }
.gp-h2 {
  margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.2;
  letter-spacing: -.02em; color: var(--px-navy); text-wrap: balance;
}
.gp-lede { margin: 0; font-size: 16px; line-height: 1.7; color: var(--px-muted); max-width: 65ch; }
.gp-band a:not([class]), .gp-after a { color: var(--px-blue); text-decoration: underline; text-underline-offset: 2px; }
.gp-band a:not([class]):hover, .gp-after a:hover { color: #0047c7; }

.gp-crumbs { margin: 0 0 22px; }
.gp-crumbs a { color: inherit; }
.gp-hero h1 { max-width: 20ch; }
.gp-chip-free { background: rgba(0, 226, 197, .14) !important; border-color: rgba(0, 226, 197, .4) !important; color: var(--px-teal) !important; }
.gp-cta-band .px-hero-btn { justify-content: center; }

/* ------------------------------------------------------- hub: the check */
.gp-check-band { background: #fff; padding: 64px 0; }
@media (min-width: 1024px) { .gp-check-band { padding: 84px 0; } }
.gp-check-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
#gp-check > .gp-player:not(.gp-check-intro) { max-width: 880px; margin: 0 auto; }
.gp-check-intro { display: flex; gap: 24px; align-items: center; padding: 32px 36px; border-radius: 20px; box-shadow: var(--gp-lift); }
.gp-check-icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--px-navy); color: var(--px-teal);
  display: inline-flex; align-items: center; justify-content: center;
}
.gp-check-copy { flex: 1 1 auto; min-width: 0; }
.gp-player .gp-check-eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0b7f70; }
.gp-check-intro .gp-player-title { font-size: 24px; letter-spacing: -.015em; margin-bottom: 8px; }
.gp-check-intro p { line-height: 1.6; margin: 0; }
.gp-check-intro .gp-actions { flex: none; margin-top: 0; }
@media (max-width: 899px) {
  .gp-check-intro { flex-wrap: wrap; }
  .gp-check-intro .gp-actions { flex-basis: 100%; padding-left: 76px; }
}

/* ------------------------------------------------------- hub: the cards */
.gp-skills.px-secs { background: var(--px-canvas); border-top: 1px solid var(--px-line); }
.gp-skills .px-secs-inner { padding: 64px 20px 28px; }
@media (min-width: 1024px) { .gp-skills .px-secs-inner { padding-top: 84px; } }
.gp-skills .px-sec-head h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--px-navy); letter-spacing: -.01em; }
.gp-skills .px-sec-meta, .gp-card .px-card-meta { color: #5b6d84; }
.gp-card .px-card-meta span { opacity: 1; }
@media (max-width: 480px) {
  .gp-skills .px-sec-head { flex-wrap: wrap; row-gap: 2px; }
  .gp-skills .px-sec-head h3 { flex: 1 1 0; min-width: 0; font-size: 18px; line-height: 1.3; }
  .gp-skills .px-sec-meta { flex-basis: 100%; margin-left: 49px; text-align: left; }
  .gp-hero .px-hero-stats { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 40px; }
}
.gp-card-list { list-style: none; margin: 0; padding: 0; }
.gp-card-list > li { display: flex; min-width: 0; }
.gp-card-list > li > .px-card { flex: 1 1 auto; min-width: 0; }
/* Tags run one or two lines; the button sits on the card's floor either way. */
.gp-card .px-card-cta { margin-top: auto; }
.gp-card .px-card-prog { margin-bottom: 14px; }
/* The tile on the coloured field: the skill's own words, drawn from the
   attribute so it is decoration, not text. */
.gp-glyph::before {
  content: attr(data-glyph); position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap;
  color: var(--ink, var(--sec));
}
.gp-skill-state:empty { display: none; }
.gp-skill-state, .gp-skill-state.is-weak {
  flex: none; padding: 2px 9px; border-radius: 999px; background: #fef3f2; color: #b42318;
  font-size: 11px; font-weight: 700; line-height: 1.6;
}

/* ------------------------------------------------------- hub: the data */
.gp-split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .gp-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.gp-split-text p { margin: 0 0 15px; font-size: 16px; line-height: 1.75; color: #46596f; }
.gp-split-text p:last-child { margin-bottom: 0; }
.gp-data-card { background: #fff; border: 1px solid var(--px-line); border-radius: 18px; padding: 10px 22px 14px; box-shadow: var(--gp-lift); }
.gp-table-wrap { overflow-x: auto; }
.gp-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.gp-table th, .gp-table td { text-align: left; padding: 12px 4px; border-bottom: 1px solid var(--px-line); color: var(--px-navy); vertical-align: top; }
.gp-table tr:last-child td { border-bottom: 0; }
.gp-data-table th { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--px-muted); }
.gp-data-table td:first-child { font-weight: 600; padding-right: 16px; }
.gp-data-table td:last-child { width: 44%; font-size: 13.5px; color: var(--px-muted); }
.gp-bar { display: block; position: relative; height: 8px; margin: 5px 0 7px; border-radius: 999px; background: var(--px-line); overflow: hidden; }
.gp-bar::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); border-radius: 999px; background: var(--px-blue); }

.gp-reading {
  display: grid; gap: 18px 36px; margin-top: 44px; padding: 26px 28px; border-radius: 18px;
  background: #f0fdfa; border: 1px solid #b9ece4; border-left: 4px solid var(--px-teal);
}
@media (min-width: 860px) { .gp-reading { grid-template-columns: 210px minmax(0, 1fr); align-items: center; } }
.gp-reading p { margin: 0; font-size: 15.5px; line-height: 1.75; color: #46596f; }
.gp-reading .gp-reading-stat b { display: block; font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #0b7f70; }
.gp-reading .gp-reading-stat span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--px-muted); }

/* --------------------------------------------------- hub: why it works */
.gp-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 780px) { .gp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gp-feature { background: #fff; border: 1px solid var(--px-line); border-radius: 16px; padding: 24px; }
.gp-feature-icon {
  width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--px-blue) 11%, #fff); color: var(--px-blue);
}
.gp-feature p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--px-muted); }
.gp-feature .gp-feature-title { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; color: var(--px-navy); }
.gp-after { margin: 28px 0 0; font-size: 15.5px; line-height: 1.7; color: #46596f; }

/* ------------------------------------------------- skill: the practice band */
.gp-practice { background: var(--px-canvas); border-bottom: 1px solid var(--px-line); padding: 44px 0 52px; }
@media (min-width: 1024px) { .gp-practice { padding: 56px 0 64px; } }

.gp-ladder-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; margin-bottom: 18px; }
.gp-ladder-title { font-size: 22px; font-weight: 800; letter-spacing: -.015em; color: var(--px-navy); margin: 0; }
.gp-ladder-sub { margin: 0; color: var(--px-muted); font-size: 14px; }
.gp-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .gp-ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gp-ladder > li { display: flex; min-width: 0; }
.gp-level {
  position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  text-align: left; padding: 16px; min-height: 124px; background: #fff; border: 1px solid var(--px-line);
  border-radius: var(--px-r); cursor: pointer; color: var(--px-navy); font: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.gp-level:hover { border-color: color-mix(in srgb, var(--sec, var(--px-blue)) 45%, #fff); box-shadow: 0 10px 26px rgba(3, 31, 66, .08); transform: translateY(-2px); }
.gp-level:focus-visible { outline: 2px solid var(--px-blue); outline-offset: 2px; }
.gp-level-n {
  flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; background: var(--px-teal); color: var(--px-navy);
}
.gp-level.is-shut .gp-level-n, .gp-level.is-paid .gp-level-n { background: var(--px-canvas); color: var(--px-muted); box-shadow: inset 0 0 0 1px var(--px-line); }
.gp-level-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gp-level-name { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.gp-level-band { font-size: 12px; color: var(--px-muted); }
.gp-level .gp-stars, .gp-level-tag { position: absolute; top: 16px; right: 14px; }
.gp-level .gp-stars { top: 27px; }
.gp-level-tag { padding: 2px 8px; border-radius: 999px; background: var(--px-canvas); font-size: 11px; font-weight: 700; color: var(--px-muted); }
.gp-note { background: #fff8e6; border: 1px solid #ffe7ad; color: #7a5a00; border-radius: var(--px-r-sm); padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }
.gp-review { margin-top: 14px; width: 100%; }

.gp-stars { display: inline-flex; gap: 3px; flex: none; }
.gp-star { width: 12px; height: 12px; background: var(--px-line); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.gp-star.is-on { background: var(--px-gold); }
.gp-result .gp-stars { margin: 4px 0 10px; }
.gp-result .gp-star { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- player */
.gp-player { background: #fff; border: 1px solid var(--px-line); border-radius: var(--px-r-lg); box-shadow: var(--px-shadow); padding: 26px; }
.gp-player-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 16px; }
.gp-player-title { margin: 0; font-weight: 800; color: var(--px-navy); font-size: 17px; }
.gp-player-progress { margin: 0; color: var(--px-muted); font-size: 13px; flex: none; }
.gp-player p { color: var(--px-navy); }
.gp-sentence { font-size: 19px; line-height: 1.6; color: var(--px-navy); margin: 0 0 16px; }
.gp-gap { display: inline-block; min-width: 64px; border-bottom: 2px solid var(--px-blue); }
.gp-instruction { font-size: 14px; margin: 0 0 10px; color: var(--px-muted) !important; }
.gp-options { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gp-option, .gp-part, .gp-tile { font: inherit; color: var(--px-navy); background: #fff; border: 1.5px solid var(--px-line); border-radius: var(--px-r-sm); cursor: pointer; }
.gp-option { min-height: 48px; padding: 10px 12px; font-weight: 600; }
.gp-option:hover:not(:disabled), .gp-part:hover:not(:disabled), .gp-tile:hover:not(:disabled) { border-color: var(--px-blue); }
.gp-spot { font-size: 19px; line-height: 2.2; margin: 0 0 12px; }
.gp-part { padding: 4px 8px; font-size: 18px; }
.gp-option.is-right, .gp-part.is-right, .gp-type input.is-right { border-color: var(--px-ok); background: var(--px-ok-bg); }
.gp-option.is-wrong, .gp-part.is-wrong, .gp-type input.is-wrong { border-color: var(--px-no); background: var(--px-no-bg); }
.gp-type input { font: inherit; color: var(--px-navy); width: 110px; padding: 2px 8px; margin: 0 4px; border: 1.5px solid var(--px-line); border-radius: 8px; text-align: center; }
.gp-type input:focus { outline: 2px solid var(--px-blue); outline-offset: 1px; }
/* the Complete the Words box: same metric as .px-ctw-slot, one dash per letter */
.gp-ctw { white-space: nowrap; }
.gp-ctw-stem { font-weight: 700; }
.gp-ctw-slot { position: relative; display: inline-block; vertical-align: baseline; margin: 0 2px 0 0; border-radius: 6px; }
.gp-ctw-slot input { position: relative; z-index: 1; width: auto; margin: 0; padding: 2px 6px 3px; border: 0; background: transparent; text-align: left; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 16px; font-weight: 600; letter-spacing: .35em; color: var(--px-blue); }
.gp-ctw-slot input:focus { outline: none; }
.gp-ctw-slot input:focus + .gp-ctw-dashes { color: var(--px-blue); }
.gp-ctw-dashes { position: absolute; left: 6px; right: 6px; bottom: 0; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 16px; font-weight: 600; letter-spacing: .35em; color: #9db4d4; pointer-events: none; }
.gp-ctw-slot.is-right { background: var(--px-ok-bg); box-shadow: inset 0 -2.5px 0 var(--px-ok); }
.gp-ctw-slot.is-wrong { background: var(--px-no-bg); box-shadow: inset 0 -2.5px 0 var(--px-no); }
.gp-ctw-slot.is-right .gp-ctw-dashes, .gp-ctw-slot.is-wrong .gp-ctw-dashes { display: none; }
.gp-built { font-size: 18px; line-height: 1.9; min-height: 56px; margin: 0 0 12px; padding: 10px 12px; background: var(--px-canvas); border-radius: var(--px-r-sm); }
.gp-slot { display: inline; }
.gp-slot:empty::before { content: '...'; color: var(--px-muted); }
.gp-tray { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; min-height: 42px; }
.gp-tile { padding: 8px 12px; font-size: 16px; margin: 2px; }
.gp-clock { height: 5px; background: var(--px-line); border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.gp-clock i { display: block; height: 100%; width: 100%; background: var(--px-blue); }

.gp-fb { margin-top: 16px; padding: 14px 16px; border-radius: var(--px-r-sm); }
.gp-fb.is-right { background: var(--px-ok-bg); }
.gp-fb.is-wrong { background: var(--px-no-bg); }
.gp-fb p { margin: 0 0 8px; }
.gp-fb-title { font-weight: 800; }
.gp-fb-answer { font-weight: 600; }
.gp-fb-why { font-size: 15px; line-height: 1.55; }

.gp-btn { font: inherit; font-size: 15px; font-weight: 700; min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1.5px solid var(--px-line); background: #fff; color: var(--px-navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.gp-btn:hover { border-color: var(--px-blue); }
.gp-btn-primary { background: var(--px-navy); border-color: var(--px-navy); color: #fff; }
.gp-btn-primary:hover { background: #0a2f5e; border-color: #0a2f5e; color: #fff; }
.gp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.gp-result { text-align: center; }
.gp-result .gp-actions { justify-content: center; }
.gp-result-score { font-size: 42px; font-weight: 800; color: var(--px-navy); margin: 0; line-height: 1.1; }
.gp-result-line { margin: 0 0 12px; color: var(--px-muted) !important; }
.gp-small { font-size: 13px; color: var(--px-muted) !important; margin: 12px 0 0; }

.gp-weak-list { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; }
.gp-weak { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--px-line); border-radius: 12px; margin-bottom: 8px; color: var(--px-navy); font-weight: 700; text-decoration: none; background: #fff; }
.gp-weak b { font-weight: 600; color: var(--px-muted); font-size: 13px; text-align: right; }
.gp-weak:hover { border-color: var(--px-blue); }
.gp-plan { background: #fff; border: 1px solid var(--px-line); border-radius: var(--px-r); padding: 18px 20px; margin-top: 16px; }
.gp-plan-title { font-weight: 800; color: var(--px-navy); margin: 0; }

/* ------------------------------------------------------ skill: the body */
.gp-skill-main { counter-reset: gprule gpq; }
.gp-stat {
  display: flex; gap: 22px; align-items: center; margin: 0 0 24px; padding: 22px 26px; border-radius: 10px;
  background: #f0fdfa; border: 1px solid #b9ece4; border-left: 4px solid var(--px-teal);
}
.gp-stat-n { flex: none; font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #0b7f70; white-space: nowrap; }
.lesson-main .gp-stat p { margin: 0; line-height: 1.6; }
.lesson-main .gp-stat .gp-stat-label { margin: 0 0 4px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #0b7f70; }

/* tutors */
.gp-tips { display: grid; gap: 16px; }
@media (min-width: 720px) { .gp-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gp-tip { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 20px; background: #fff; border: 1px solid var(--px-line); border-radius: var(--px-r); box-shadow: 0 1px 2px rgba(3, 31, 66, .04); }
.gp-tip-face { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--px-teal); color: var(--px-navy); }
.gp-tip-kailash .gp-tip-face { background: var(--px-gold); }
.gp-tip p, .lesson-main .gp-tip p { margin: 0; font-size: 15px; line-height: 1.65; color: #1c3350; }
.gp-tip .gp-tip-name, .lesson-main .gp-tip .gp-tip-name { margin: 0 0 3px; font-size: 14px; font-weight: 800; color: var(--px-navy); }

/* rules: one numbered card each, numbered across the locked part too */
.gp-rules { display: grid; gap: 16px; }
.gp-rule { counter-increment: gprule; background: #fff; border: 1px solid var(--px-line); border-radius: var(--px-r); padding: 24px 26px; box-shadow: 0 1px 2px rgba(3, 31, 66, .04); }
.gp-rule .gp-rule-title { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--px-navy); }
.gp-rule .gp-rule-title::before {
  content: counter(gprule); flex: none; width: 30px; height: 30px; margin-top: -3px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--px-navy); color: var(--px-teal); font-size: 14px; font-weight: 800;
}
.lesson-main .gp-rule p { margin: 0 0 14px; }
.lesson-main .gp-examples, .lesson-main .gp-fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lesson-main .gp-fixes { gap: 12px; }
.lesson-main .gp-examples + .gp-fixes { margin-top: 12px; }
.lesson-main .gp-fixes li { margin: 0; display: grid; gap: 4px; }
@media (min-width: 640px) { .lesson-main .gp-fixes li { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.lesson-main .gp-examples li, .gp-fixes .gp-ex-wrong, .gp-fixes .gp-ex-right {
  position: relative; display: block; margin: 0; padding: 9px 12px 9px 40px; border-radius: 10px;
  font-size: 15px; line-height: 1.55; color: var(--px-navy);
}
.gp-ex-right { background: var(--px-ok-bg); }
.gp-ex-wrong { background: var(--px-no-bg); }
.gp-ex-right::before, .gp-ex-wrong::before {
  position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff;
}
.gp-ex-right::before { content: '\2713'; content: '\2713' / ''; background: #16a34a; }
.gp-ex-wrong::before { content: '\2715'; content: '\2715' / ''; background: #e5484d; }
.gp-ex-label { font-weight: 700; margin-right: 6px; }
.gp-ex-right .gp-ex-label { color: #11753a; }
.gp-ex-wrong .gp-ex-label { color: #b42318; }

/* first-language notes */
.gp-lang-table tbody th { background: transparent; color: var(--px-navy); font-weight: 700; width: 30%; vertical-align: top; border-bottom: 1px solid var(--px-line); padding: .7rem .85rem; }
.lesson-table.gp-lang-table tbody tr:nth-child(even) th { background: transparent; }

/* locked body: the same collapse as .lesson-locked, under the lesson gate */
[data-locked-body] { margin-top: 16px; }
.gp-locked {
  position: relative; max-height: 260px; overflow: hidden; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}

/* level 1 with answers */
.gp-answers-block { padding: 30px; border-radius: 20px; background: var(--px-canvas); border: 1px solid var(--px-line); }
.lesson-main .gp-answers { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.lesson-main .gp-answers > li {
  counter-increment: gpq; position: relative; margin: 0; padding: 18px 20px 18px 62px;
  background: #fff; border: 1px solid var(--px-line); border-radius: 14px; line-height: 1.6; color: var(--px-navy);
}
.gp-answers > li::before {
  content: counter(gpq); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
  background: var(--px-canvas); color: var(--px-navy); box-shadow: inset 0 0 0 1px var(--px-line);
}
.gp-answers .gp-small { margin: 0; }
.gp-answers details { margin-top: 10px; }
.gp-answers summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none; padding: 10px 16px; border-radius: 999px;
  background: #eaf2ff; color: #0b5bcb; font-size: 14px; font-weight: 700;
}
.gp-answers summary::-webkit-details-marker { display: none; }
.gp-answers details[open] summary { background: var(--px-navy); color: #fff; }
.lesson-main .gp-answers details p { margin: 10px 0 0; font-size: 15px; }
.lesson-main .gp-answers details p:first-of-type { padding: 9px 12px; border-radius: 10px; background: var(--px-ok-bg); }
.lesson-main a.gp-answers-go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 12px 20px; border-radius: 10px;
  background: var(--px-navy); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none;
}
.lesson-main a.gp-answers-go:hover { background: #0a2f5e; color: #fff; }
.gp-answers-go .px-card-arrow { color: var(--px-teal); }

/* FAQ, two columns on a wide screen as on the lesson pages */
.gp-faq-item > summary { min-height: 44px; padding: 20px; }
.gp-faq-item > summary::-webkit-details-marker { display: none; }
.gp-faq-item > .gp-faq-a { padding: 0 20px 20px; }
.gp-faq .gp-faq-item { display: block; margin: 0 0 12px; break-inside: avoid; }
@media (min-width: 1024px) { .gp-faq { columns: 2; column-gap: 28px; } }

/* the lesson page sets every h2 at one size; the two headings outside
   .lesson-main follow it */
.gp-skill .gp-h2, .gp-skill .gp-ladder-title { font-size: 1.625rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.gp-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.gp-head-center .gp-lede { margin: 0 auto; }

/* every skill, as small tiles */
.gp-mini-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gp-mini-grid > li { display: flex; min-width: 0; }
.gp-mini {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--px-line); border-radius: 14px; color: var(--px-navy); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.gp-mini:hover { border-color: color-mix(in srgb, var(--sec) 45%, #fff); box-shadow: 0 10px 24px rgba(3, 31, 66, .08); transform: translateY(-1px); }
.gp-mini.is-current { background: var(--px-canvas); border-style: dashed; }
.gp-mini-glyph {
  flex: none; width: 44px; height: 44px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--sec) 10%, #fff); color: var(--ink, var(--sec)); font-size: 14px; font-weight: 800; letter-spacing: -.01em;
}
.gp-mini-glyph::before { content: attr(data-glyph); }
.gp-mini-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gp-mini-body b { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.gp-mini-body span { font-size: 12px; color: var(--px-muted); }
.gp-mini .px-card-arrow { flex: none; color: var(--ink, var(--sec)); transition: transform .15s; }
a.gp-mini:hover .px-card-arrow { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .gp-level, .gp-mini { transition: none; }
  .gp-level:hover, a.gp-mini:hover { transform: none; }
}

@media (max-width: 640px) {
  .gp-skill .gp-h2, .gp-skill .gp-ladder-title { font-size: 1.35rem; }
  .gp-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gp-mini { padding: 10px; gap: 10px; }
  .gp-mini-glyph { width: 38px; height: 38px; font-size: 13px; }
  .gp-mini .px-card-arrow { display: none; }
  .gp-mini-body b { font-size: 13.5px; }
  .gp-player { padding: 18px; }
  .gp-sentence, .gp-spot { font-size: 17px; }
  .gp-check-intro { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .gp-check-intro .gp-actions { padding-left: 0; }
  .gp-check-intro .gp-player-title { font-size: 21px; }
  .gp-stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; }
  .gp-stat-n { font-size: 30px; }
  .gp-rule { padding: 20px 18px; }
  .gp-rule .gp-rule-title { font-size: 17px; }
  .gp-answers-block { padding: 20px 16px; }
  .lesson-main .gp-answers > li { padding: 16px 16px 16px 54px; }
  .gp-answers > li::before { left: 14px; }
  .gp-reading { padding: 22px 20px; }
  .gp-level { min-height: 112px; padding: 14px; }
  /* two short columns read better stacked than scrolled sideways */
  .lesson-table.gp-lang-table { min-width: 0; }
  .gp-lang-table thead { display: none; }
  .gp-lang-table tr, .gp-lang-table th, .gp-lang-table td { display: block; width: auto; }
  .gp-lang-table tbody th { border-bottom: 0; padding-bottom: 0; }
}
