/* ursa.study (AP-4330). Colours and sizes: adult_kit SPEC.md section 1. Type: Inter where the device has it, else the
   system face; no font file is loaded from anywhere (Legal 6.2: no third-party fonts). */
:root {
  --ink: #2B1F1C; --brown: #6E4A3F; --berry: #9E0637; --grey: #74645F;
  --bg: #FBF8F2; --sand: #EFE7E1; --line: #E4DAD3; --card: #FFFFFF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.5;
}
a { color: var(--brown); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 2; }

/* app bar: boards s16-s23 (AP-4625): 60 high on a phone, 64 on a desktop; mark 32, name 18, motto 11.5; the ES/PT pill
   drawn 32 high, each language tappable 44 high (RESULT_AP-4612 build point 4) */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; padding: 0 16px; background: var(--card); border-bottom: 1px solid #E6DDD6; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand img { width: 32px; height: 32px; }
.brand b { display: block; font-size: 18px; line-height: 1.1; font-weight: 700; }
.brand small { display: block; font-size: 11.5px; color: #5A4A45; line-height: 1.3; font-weight: 500; }
.lang { display: flex; align-items: center; gap: 4px; background: var(--sand); border-radius: 16px; padding: 0 4px 0 9px; height: 32px; }
.lang svg { width: 16px; height: 16px; margin-right: 6px; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px;
  border-radius: 12px; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.lang span { background: var(--card); color: var(--ink); }
.lang a { color: var(--brown); position: relative; }
.lang a::after { content: ""; position: absolute; left: -2px; right: -2px; top: -10px; bottom: -10px; }  /* tap area 44 high, the pill stays 24 */

/* page */
main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; }
h1 { font-size: 30px; line-height: 1.15; font-weight: 700; margin: 8px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 700; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.kicker { display: inline-block; background: var(--sand); color: var(--brown); font-size: 13px; font-weight: 600;
  border-radius: 14px; padding: 4px 12px; margin: 0; }
.lead { font-size: 17px; color: var(--ink); }
.crumb { font-size: 13px; color: var(--grey); margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.motto { margin: 0 0 16px; }
.motto img { display: block; width: 100%; height: auto; }

.btn { display: block; width: 100%; min-height: 52px; margin: 16px 0 8px; border-radius: 26px; border: 2px solid var(--brown);
  background: var(--sand); color: var(--brown); font: inherit; font-size: 18px; font-weight: 600; cursor: default; }
.note { font-size: 15px; color: var(--grey); }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 17px; text-decoration: none; }

.tags { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--sand); color: var(--brown); border-radius: 16px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.honest { display: flex; align-items: center; gap: 12px; background: var(--sand); border-radius: 14px; padding: 14px 16px;
  font-weight: 700; margin: 16px 0; }
.honest svg { flex: none; width: 24px; height: 24px; }
.inside { margin-top: 16px; }
.inside dl { margin: 0; }
.inside .row { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.inside dt { font-weight: 600; color: var(--brown); }
.inside dd { margin: 0; }
.ver { font-size: 13px; color: var(--grey); font-weight: 600; margin: -6px 0 8px; }
.notin { margin-top: 16px; }
.notin ul { margin: 0; padding-left: 20px; }
.notin li { margin: 6px 0; }

.doc { max-width: 720px; }
.doc p { font-size: 16px; }
.slot { background: #FBE9EE; color: var(--berry); border-radius: 3px; white-space: nowrap; }

footer { max-width: 1120px; margin: 0 auto; padding: 16px 16px 40px; }
footer nav { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; font-size: 15px; color: var(--grey); }
footer a { color: var(--brown); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
footer .sep { display: none; }

.pick { max-width: 480px; }
.pick ul { list-style: none; padding: 0; }
.pick a { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 600; }

/* stage 2 (AP-4330 r5): level test and answer pages */
[hidden] { display: none !important; }
.s2 .card { margin: 16px 0; }
.ex ul, .qs { margin: 0; padding-left: 20px; }
.ex li { margin: 0 0 12px; }
.ex li p { margin: 0 0 4px; }
.ex li p:last-child { color: var(--grey); font-size: 15px; }
.qs li { margin: 0 0 12px; }
.qs fieldset { border: 0; margin: 0; padding: 0; }
.qs legend { font-weight: 600; padding: 0; margin: 0 0 4px; }
.qs label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.qs input { width: 22px; height: 22px; margin: 0; accent-color: var(--brown); }
.qs .key { margin: 4px 0 0; font-size: 15px; }
.qs .ok .key { color: #2F6B3A; }
.qs .no .key { color: var(--berry); }
.btn.go { background: var(--brown); color: #FFFFFF; cursor: pointer; }
.result { background: var(--sand); border-radius: 14px; padding: 14px 16px; margin: 8px 0 0; font-size: 17px; }
.result p:last-child, .keyall p:last-child { margin: 0; }
.keyall { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }

@media (min-width: 900px) {
  .bar { padding: 0 48px; }
  main { padding: 40px 48px 56px; }
  h1 { font-size: 44px; }
  .home { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .home .motto { order: 2; margin: 0; }
  .home .hero { order: 1; background: none; border: 0; padding: 0; }
  .btn { width: auto; display: inline-block; padding: 0 40px; }
  .course { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
  .course .inside { margin-top: 0; }
  footer { padding: 16px 48px 48px; }
  footer nav { flex-direction: row; flex-wrap: wrap; gap: 0 8px; font-size: 14px; }
  footer .sep { display: inline-flex; align-items: center; }
}

/* AP-4625: the redrawn first pages (boards s16-s23 of AP-4612). Phone first (375), desktop from 1100 (content 1088).
   One grid per first screen; the dark band is the grid's ::before over the rows it covers. */
.first { max-width: none; padding: 0; }
.first .hero, .first .below { max-width: 600px; margin: 0 auto; padding: 0 16px; }
.first .hero { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
.first .hero > * { position: relative; z-index: 1; min-width: 0; }
.first .hero::before { content: ""; position: absolute; z-index: 0; grid-column: 1 / -1; grid-row: 1 / 3; top: 0; bottom: 0;
  left: -16px; right: -16px; background: var(--ink); border-radius: 0 0 26px 26px; }  /* absolute: it takes no cell */
.first h1 { color: var(--bg); font-weight: 700; letter-spacing: -0.01em; }
.first h2 { font-size: 20px; line-height: 1.2; }
.tag { justify-self: start; display: inline-flex; align-items: center; height: 24px; padding: 0 11px; margin: 16px 0 0;
  border: 1px solid var(--bg); border-radius: 12px; color: var(--bg); font-size: 12px; font-weight: 600; }
.first .hero > .art { position: absolute; z-index: 1; pointer-events: none; }  /* beats .hero > *: the art takes no cell */
.art .bear, .art .stars { position: absolute; display: block; }
.stars { color: var(--bg); }
.art .stars.dk { display: none; }
.bear { height: auto; }

/* the one action: berry pill, white label, arrow (white on #9E0637 = 8.28:1) */
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 28px;
  background: var(--berry); color: #FFFFFF; font-size: 17px; font-weight: 700; text-decoration: none;
  box-shadow: 0 7px 16px rgba(158, 6, 55, 0.28); }
.cta .i { width: 20px; height: 20px; }
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sub { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: #5A4A45; font-weight: 500; text-align: center; }
.rel { margin: 1px 0 0; font-size: 12px; line-height: 1.4; color: var(--grey); font-weight: 500; text-align: center; }

/* the lesson card: live by CSS only; no berry on it */
.lesson { margin: 16px 0 0; }
.lesson-h { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 6px; font-size: 11.5px; color: var(--grey); }
.lesson-h span:first-child { font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.lesson-h .ltopic { font-weight: 600; }  /* not .lt: that is the level test's section (AP-4625 walk) */
.lcard { background: var(--card); border: 1px solid #E6DDD6; border-radius: 18px; padding: 15px;  /* + border = the board's 16 */
  box-shadow: 0 8px 18px rgba(43, 31, 28, 0.08); }
.lt-in { display: none; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--grey); }
.lcard fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lcard legend { padding: 0; font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.lcard input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.opts label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 6px;
  border: 1.5px solid #D9CFC9; border-radius: 22px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: center; }
.opts .i { width: 16px; height: 16px; flex: none; }
.opts label.right { border: 2px solid #2F6B4F; background: #E6F2EA; color: #2F6B4F; font-weight: 700; }
.r0:checked ~ .opts .o0:not(.right):not(.rok), .r1:checked ~ .opts .o1:not(.right):not(.rok), .r2:checked ~ .opts .o2:not(.right):not(.rok) {
  color: var(--grey); background: var(--sand); border-color: var(--sand); text-decoration: line-through; }
.r0:focus-visible ~ .opts .o0, .r1:focus-visible ~ .opts .o1, .r2:focus-visible ~ .opts .o2 { outline: 3px solid var(--ink); outline-offset: 2px; }
.expl { margin: 12px 0 0; padding: 9.5px 14px 9px 11px; background: #E6F2EA; border-left: 5px solid #2F6B4F; border-radius: 12px; }
.expl p { margin: 0; font-size: 13.5px; line-height: 1.42; color: var(--ink); }
.expl .okl { margin: 0 0 1.5px; font-size: 14.5px; color: #2F6B4F; }
.expl .k1 { display: none; }
/* AP-4694: the same card with no answer taken (boards s15): no explanation and no right-answer mark until a tap; a tap then
   marks exactly as the default card does (the right answer is class rok, not right, until a radio is checked; not rt, which is the result line's class) */
.fresh .expl { display: none; }
.fresh input:checked ~ .expl { display: block; }
.fresh .opts label.rok .i { display: none; }
.fresh input:checked ~ .opts label.rok { border: 2px solid #2F6B4F; background: #E6F2EA; color: #2F6B4F; font-weight: 700; }
.fresh input:checked ~ .opts label.rok .i { display: block; }
.nw { white-space: nowrap; }  /* a word with a hyphen breaks only at spaces, as the board sets it */
.lcard input:not(.ok):checked ~ .expl .k0 { display: none; }
.lcard input:not(.ok):checked ~ .expl .k1 { display: inline; }

/* figures and plain lines */
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 15px 0 0; padding: 0; }
.stats li { display: flex; flex-direction: column; padding: 2px 0 2px 14px; border-left: 1px solid #E6DDD6; }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats b { font-size: 21px; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.stats span { font-size: 12.5px; line-height: 1.3; color: #5A4A45; font-weight: 500; margin-top: 3px; }
.limits { margin: 5px 0 0; font-size: 12.5px; line-height: 1.4; color: #5A4A45; }

/* under the first screen */
.first .below { padding-bottom: 8px; }
.topics6 { margin: 47px 0 0; }
.topics6 h2 { margin: 0 0 13px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.chips a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; background: var(--card);
  border: 1px solid #E6DDD6; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.chips b { color: var(--grey); font-size: 12.5px; min-width: 10px; }
.more2 { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-size: 15px; font-weight: 600; text-decoration: none; }
.tblock { position: relative; margin: 12px 0 0; padding: 18.7px 20px 9.8px; background: #F6EFEA; border-radius: 20px; }
.tblock h2 { margin: 0 0 8.4px; }
.tblock p { margin: 0 0 16.9px; font-size: 14px; line-height: 1.4; color: #5A4A45; }
.tblock p.sub { margin: 6.7px -12px 0; font-size: 12.5px; line-height: 1.4; }  /* the board centres it under the block, wider than the button */
.tb-bear { position: absolute; right: 22px; top: -64px; width: 53px; }
.notin2 { margin: 30.6px 0 0; }
.notin2 h2 { font-size: 16px; margin: 0 0 9.3px; }
.notin2 p { margin: 0 0 4px; font-size: 14px; line-height: 1.4; color: #5A4A45; }

/* home, phone: band over tag and headline; the bear stands on the band's edge with the seven stars over its head */
.home2 h1 { font-size: 28px; line-height: 1.15; max-width: 256px; margin: 10px 0 20px; }
html[lang="pt-BR"] .home2 h1 { font-size: 26px; }
.home2 .who { margin: 13px 0 0; font-size: 14.5px; line-height: 1.4; color: #5A4A45; }
.home2 .art { grid-column: 1 / 2; grid-row: 1 / 3; inset: 0; }  /* both lines: an absolute item's auto line is the padding edge */
.home2 .art .bear { right: -10px; bottom: -12px; width: 97px; }
.home2 .art .stars { right: 2px; bottom: 131px; width: 72px; }
.home2 .act { margin: 11px 0 0; }
.home2 .lesson { margin-top: 6px; }
.spark { position: absolute; display: none; color: #C08170; }
.home2 .art .sp1 { display: block; left: 231.5px; top: 27.5px; width: 5px; }

/* course, phone: crumb, tag, headline, line and figures in the band */
.course2 .hero::before { grid-row: 1 / 6; }
.crumb2 { margin: 10.6px 0 0; line-height: 18px; font-size: 12px; color: #CDBFB7; font-weight: 500; }
.course2 .tag { margin-top: 7.4px; }
.course2 h1 { font-size: 25px; line-height: 1.15; margin: 10.5px 0 0; }
.csub { margin: 5.85px 0 0; font-size: 14px; line-height: 1.4; color: #E9DED6; }
.bstats { padding: 0 0 13.8px; }
.bstats .stats { margin-top: 15.75px; }
.bstats .stats li { border-left-color: #5A4A45; }
.bstats .stats b { color: var(--bg); font-size: 24px; }
.bstats .stats span { color: #CDBFB7; }
.bstats .lim { margin: 2.3px 0 0; line-height: 1.4; font-size: 12.5px; color: #CDBFB7; font-weight: 500; }
.course2 .art { display: none; }
.course2 .act { margin: 20px 0 0; }
.course2 .lesson { margin-top: 6px; }
.topics18 { margin: 26.7px 0 0; }
.topics18 h2 { margin: 0 0 9.3px; }
.topics18 ol { list-style: none; margin: 0; padding: 0; }
.topics18 li { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.topics18 b { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 15px;
  background: var(--sand); color: var(--brown); font-size: 12.5px; }
.topics18 span { flex: 1; align-self: stretch; display: flex; align-items: center; border-bottom: 1px solid #EFE7E1; font-size: 15.5px; font-weight: 600; }
.inside2 { position: relative; margin: 28px 0 0; padding: 17.7px 19px 9px 17px; background: var(--card); border: 1px solid #E6DDD6; border-radius: 18px; }
.inside2 h2 { font-size: 18px; margin: 0 0 15.7px 2px; }
.ver2 { position: absolute; right: 19px; top: 21.5px; margin: 0; font-size: 12.5px; color: var(--grey); font-weight: 500; }
.inside2 ul { list-style: none; margin: 0; padding: 0; }
.inside2 li { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.inside2 li .ib { margin-top: 4px; }
.inside2 li span { padding: 8.4px 0 13.6px; }  /* board: first baseline 24 under the row top, a row is 44 or its text + 22 */
.ib { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 15px; background: #F6EFEA; color: var(--brown); stroke-width: 2; }
.course2 .notin2 { margin-top: 28.6px; }
.course2 .tblock { margin-top: 88.9px; }  /* board: 70 under the limits block's last line box */

@media (min-width: 1100px) {
  .bar { height: 64px; padding: 0 max(16px, calc((100% - 1088px) / 2)); }
  .first .hero, .first .below { max-width: 1120px; }
  .first .hero::before { left: 0; right: 0; border-radius: 0; box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax); }
  .tag { height: 28px; padding: 0 12px; border-radius: 14px; font-size: 13.5px; }
  .cta { width: 330px; height: 60px; border-radius: 30px; font-size: 18px; }
  .stats b { font-size: 30px; }
  .stats span { font-size: 14px; }
  .lesson-h { font-size: 12.5px; }

  .home2 .hero { grid-template-columns: 560px minmax(0, 1fr) 312px; }
  .home2 .hero::before { grid-row: 1 / 4; }
  .home2 .tag { grid-column: 1; margin-top: 44px; }
  .home2 h1, html[lang="pt-BR"] .home2 h1 { grid-column: 1; font-size: 50px; line-height: 1.12; max-width: 540px; margin: 20px 0 0; }  /* 540: the board's line breaks */
  .home2 .who { grid-column: 1; margin: 14px 0 0; padding-bottom: 23px; font-size: 18px; line-height: 1.45; color: #E9DED6; max-width: 540px; }
  .home2 .art { grid-column: 2 / 3; grid-row: 1 / 4; }
  .home2 .art .sp1 { left: -60.5px; top: 245.5px; width: 9.1px; }
  .home2 .art .sp2 { display: block; left: 549.5px; top: 205.5px; width: 9.1px; }
  .home2 .art .sp3 { display: block; left: 490.6px; top: 40.6px; width: 6.8px; }
  .home2 .art .bear { left: -6px; right: auto; bottom: -26px; width: 207px; }
  .home2 .art .stars.ph { display: none; }
  .art .stars.dk { display: block; }
  .home2 .art .stars { left: 29px; right: auto; bottom: 273px; width: 137px; }
  .home2 .act { grid-column: 1 / 3; grid-row: 4; display: grid; grid-template-columns: 330px minmax(0, 1fr); grid-template-rows: 33px 27px;
    column-gap: 20px; margin: 36px 0 0; }
  .home2 .act .cta { grid-row: 1 / 3; }
  .home2 .act .sub, .home2 .act .rel { text-align: left; }
  .home2 .act .sub { grid-column: 2; margin: 12px 0 0; font-size: 15px; color: var(--ink); line-height: 1.4; }
  .home2 .act .rel { grid-column: 2; font-size: 13.5px; margin: 2.5px 0 0; }
  .home2 .lesson { grid-column: 3; grid-row: 1 / 7; align-self: start; margin: 30px 0 0; }
  .home2 .lesson-h { color: #E9DED6; padding-left: 4px; margin-bottom: 11px; }
  .home2 .stats { grid-column: 1; grid-row: 5; max-width: 520px; margin-top: 27px; }
  .home2 .stats span { margin-top: 1px; }
  .home2 .limits { grid-column: 1 / 3; grid-row: 6; max-width: 520px; margin-top: 7px; font-size: 13.5px; line-height: 1.45; }
  .home2 .topics6 { margin-top: 36px; }
  .chips { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .chips a { min-height: 44px; }  /* the board draws 40; AP-4625 Expected 5: every tap target 44 or more */

  .stack .ltopic { display: none; }
  .stack .lt-in { display: block; margin-bottom: 11.5px; }
  .stack .lcard { padding: 19.5px 22px 22px; border-radius: 22px; box-shadow: 0 14px 30px rgba(43, 31, 28, 0.3); border: 0; }
  .stack legend { font-size: 21px; }
  .stack .opts { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 21.5px; }
  .stack .expl { margin-top: 14px; }
  .stack .opts label { justify-content: space-between; min-height: 48px; padding: 0 16px 0 18px; border-radius: 14px; font-size: 17px; }
  .stack .opts .i { width: 24px; height: 24px; }
  .stack .expl p { font-size: 14.5px; }

  .course2 .hero { grid-template-columns: 540px minmax(0, 1fr) 524px; }
  .course2 .hero::before { grid-row: 1 / 5; }
  .crumb2 { grid-column: 1; margin-top: 25.5px; line-height: 19.5px; font-size: 13px; }
  .course2 .tag { grid-column: 1; margin-top: 11px; }
  .course2 h1 { grid-column: 1 / 3; font-size: 42px; line-height: 1.14; margin-top: 16.4px; }
  .course2 .csub { grid-column: 1; font-size: 17px; line-height: 1.45; margin: 10.8px 0 0; padding-bottom: 30.3px; }
  html[lang="pt-BR"] .course2 h1 { font-size: 38px; margin-top: 16.9px; }   /* board s19 pt: 38 in two lines, band 262 */
  html[lang="pt-BR"] .course2 .csub { margin-top: 11.7px; padding-bottom: 38.1px; }
  .course2 .bstats { grid-column: 3; grid-row: 1 / 5; align-self: start; padding: 75.8px 0 0 30px; }
  .course2 .bstats .stats { margin-top: 10px; }
  .course2 .bstats .stats b { font-size: 44px; line-height: 1.1; }
  .course2 .bstats .stats span { font-size: 16px; margin-top: 0; }
  .course2 .bstats .lim { font-size: 14.5px; margin-top: 19.5px; }
  .course2 .art { display: block; grid-column: 3 / 4; grid-row: 1 / 5; inset: 0; }
  .course2 .art .stars { left: 405.2px; top: 3.2px; width: 115px; }
  .course2 .art .bear { right: 0; bottom: -18px; width: 78px; }
  .course2 .act { grid-column: 1; grid-row: 5; margin: 36px 0 0; }
  .course2 .act .sub, .course2 .act .rel { text-align: left; }
  .course2 .act .sub { margin-top: 12.5px; font-size: 14.5px; color: var(--ink); }
  .course2 .act .rel { font-size: 13px; margin-top: 3.4px; }
  .course2 .lesson { grid-column: 1; grid-row: 6; max-width: 480px; margin-top: 11.7px; }
  .course2 .lesson-h { padding: 0 4px; margin-bottom: 7.2px; }
  .course2 .topics18 { grid-column: 3; grid-row: 5 / 8; margin: 34.8px 0 0; }
  .topics18 h2 { font-size: 22px; margin-bottom: 14px; }
  .topics18 ol { display: grid; grid-auto-flow: column; grid-template-rows: repeat(9, 36px); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .topics18 li { min-height: 36px; }
  .course2 .below { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
  .course2 .below .tblock { grid-column: 1 / -1; max-width: 560px; }
  .home2 .below .tblock, .home2 .below .notin2 { max-width: 560px; }
}

/* the level test, one question at a time, and its result on the same address: boards s20-s23 (AP-4625). Figures are the
   kit's (ap_ursa_site_test.py): a margin is the distance between two drawn baselines less the type's own offsets. */
.level2 { max-width: none; padding: 0; }
.level2 [hidden] { display: none !important; }
.lt, .rin { max-width: 600px; margin: 0 auto; padding: 0 16px; }
.lt { position: relative; padding-bottom: 24px; }
.lt-top h1 { margin: 21.8px 0 0; font-size: 23px; line-height: 1.2; }
.lead2 { margin: 9.7px 0 0; font-size: 13.5px; line-height: 1.42; color: #5A4A45; }
.prog { margin: 14px 0 0; }
.prog p { margin: 0; font-size: 13px; line-height: 1.2; font-weight: 700; }
.prog ol { list-style: none; display: flex; gap: 3px; margin: 6.9px 0 0; padding: 0; }
.prog li { flex: 1; height: 6px; border-radius: 3px; background: #E1D6CF; }
.prog li.d { background: var(--brown); }
.prog li.c { background: var(--ink); }
.qs2 { list-style: none; margin: 10px 0 0; padding: 0; }
.qs2 > li { background: var(--card); border: 1px solid #E6DDD6; border-radius: 20px; padding: 24.7px 19px 21px;
  box-shadow: 0 8px 18px rgba(43, 31, 28, 0.08); }
.lt:not(.js) .qs2 > li + li { margin-top: 16px; }
.lt.js .qs2 > li { display: none; }
.lt.js .qs2 > li.cur { display: block; }
.qs2 fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qs2 fieldset:focus { outline: none; }
.qs2 legend { padding: 0; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.qs2 label { display: block; position: relative; margin: 10px 0 0; cursor: pointer; }
.qs2 label:first-of-type { margin-top: 16.3px; }
.qs2 input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.qs2 label span { display: flex; align-items: center; height: 56px; padding: 0 18.5px; border: 1.5px solid #CFC3BC;
  border-radius: 16px; background: var(--card); font-size: 18px; line-height: 1.2; font-weight: 600; color: var(--ink); }
.qs2 input:checked + span { padding-left: 18px; border: 2px solid var(--ink); background: #F6EFEA; font-weight: 700; }  /* pressed */
.qs2 input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.honest2 { margin: 14.7px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--grey); }
.lt-art { position: relative; height: 0; display: none; }
.lt-art .stars, .lt-art .bear { position: absolute; display: block; }
.lt-art .stars { color: #C08170; right: -2.5px; top: 52px; width: 72px; }
.lt-art .bear { right: 0; top: 94px; width: 67px; }
.back { display: inline-flex; align-items: center; gap: 2px; height: 44px; margin: 6.5px 0 0 -4px; padding: 0 8px 0 0; border: 0;
  background: none; color: var(--brown); font: inherit; font-size: 15px; line-height: 1.2; font-weight: 600; cursor: pointer; }
.back .i { width: 20px; height: 20px; stroke-width: 2.2; }
.lt.mid { padding-bottom: 153.5px; }  /* the bear under «Anterior» stays on the page */
.lt.mid .lt-top { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lt.mid .prog { margin-top: 21.5px; }
.lt.mid .honest2 { display: none; }
.lt.mid .lt-art { display: block; }
.keyall2 { margin: 24px 0 0; font-size: 15px; }
.keyall2 ol, .keyall2 ul { padding-left: 22px; }

.lr { padding-bottom: 9px; }
.rband { background: var(--ink); border-radius: 0 0 26px 26px; }
.rband .rin { position: relative; padding-top: 25.7px; padding-bottom: 19.3px; }
.rband h2 { max-width: 240px; margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; color: var(--bg); letter-spacing: -0.01em; }
.rband h2:focus { outline: none; }
.rband p { max-width: 236px; margin: 23px 0 0; font-size: 12.5px; line-height: 1.4; color: #CDBFB7; }
.rband .art { position: absolute; inset: 0; pointer-events: none; }
.rband .art > * { position: absolute; display: block; }
.rband .r-st { display: none; }
.rband .r-bear { right: 10px; bottom: -8px; width: 72.6px; }
.rband .spark { color: var(--bg); }
.rband .sp1 { right: 54px; top: 13px; width: 5.9px; opacity: 0.9; }
.rband .sp2 { right: 82.7px; top: 27.7px; width: 4.5px; color: #C08170; }
.rband .sp3 { right: 23px; top: 32px; width: 4.1px; opacity: 0.7; }
.rgrid { padding-top: 30px; }
.start { background: var(--card); border: 1px solid #E6DDD6; border-radius: 20px; padding: 18.9px 19px 19.5px;
  box-shadow: 0 8px 18px rgba(43, 31, 28, 0.08); }
.rs { margin: 0; font-size: 12.5px; line-height: 1.2; font-weight: 700; color: var(--grey); }
.rt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; margin: 7.5px 0 0; line-height: 1.1; color: var(--ink); }
.rt b { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.rt span { font-size: 17px; font-weight: 600; }
.rt b span { font-size: inherit; font-weight: inherit; }
.path { display: flex; align-items: center; height: 18px; margin: 13.8px 6px 0; }
.path .dot { position: relative; flex: none; width: 0; height: 18px; }
.path .dot::before { content: ""; position: absolute; left: -4px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #E1D6CF; }
.path .dot.d::before { background: var(--brown); }
.path .dot.a::before { left: -9px; top: 0; width: 18px; height: 18px; background: var(--berry); }
.path .dot.a::after { content: ""; position: absolute; left: -3.2px; top: 5.8px; width: 6.4px; height: 6.4px; border-radius: 50%; background: #FFFFFF; }
.path .seg { flex: 1; height: 2px; background: #E1D6CF; }
.path .seg.d { background: var(--brown); }
.rof { margin: 4.8px 0 0; text-align: right; font-size: 12px; line-height: 1.3; font-weight: 500; color: var(--grey); }
.rc { margin: 6.1px 0 0; font-size: 13.5px; line-height: 1.42; color: #5A4A45; }
.ract { margin: 20px 0 0; }
.rel2 { margin: 7.7px 0 0; text-align: center; font-size: 12.5px; line-height: 1.4; font-weight: 500; color: #5A4A45; }
.again { display: flex; align-items: center; justify-content: center; width: fit-content; height: 44px; margin: -0.7px auto 0; padding: 0 16px;
  border: 0; background: none; color: var(--brown); font: inherit; font-size: 15px; line-height: 1.2; font-weight: 600; cursor: pointer; }
.ans { margin: 16.1px 0 0; }
.ans h2 { margin: 0; font-size: 18px; line-height: 1.2; }
.ans ol { list-style: none; margin: 15.75px 0 0; padding: 0; }
.ans li { position: relative; margin: 0 0 7px; padding: 1.57px 0 0 28px; }
.ans li > div { padding-bottom: 8.13px; border-bottom: 1px solid #EFE7E1; }
.ans li p { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.ans li b { color: #2F6B4F; font-weight: 700; }
.ans .i { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; display: none; }
.ans li.ok .i.ok { display: block; color: #2F6B4F; stroke-width: 2.6; }
.ans li.no .i.no { display: block; color: var(--ink); }
.ans .mine { display: none; margin: 1.94px 0 0; font-size: 13px; line-height: 1.3; font-weight: 600; color: #5A4A45; }
.ans .mine s { margin-right: 6.4px; font-weight: 500; color: var(--grey); }
.ans li.no .mine { display: block; }
.ans li.no > div { padding-bottom: 9.29px; }
/* the check date (not on the boards): the page's last line, in the column of the state shown */
.checked2 { max-width: 600px; margin: 0 auto; padding: 8px 16px 24px; font-size: 12px; line-height: 1.3; color: var(--grey); }

@media (min-width: 1100px) {
  .lt { max-width: 632px; padding-bottom: 48px; }
  .lt-top h1 { margin-top: 48px; font-size: 32px; }
  .lead2 { margin-top: 12px; font-size: 16px; line-height: 1.45; }
  .prog { margin-top: 24px; }
  .lt.mid { padding-bottom: 48px; }
  .lt.mid .prog { margin-top: 117.5px; }
  .prog p { font-size: 15px; }
  .prog ol { margin-top: 6.5px; }
  .qs2 { margin-top: 16px; }
  .qs2 > li { padding-top: 24.6px; }
  .qs2 legend { font-size: 28px; }
  .qs2 label:first-of-type { margin-top: 16.4px; }
  .honest2 { margin-top: 16px; font-size: 14px; }
  .lt-art, .lt.mid .lt-art { display: block; }
  .lt-art .stars { right: auto; left: 665px; top: -274.8px; width: 129.6px; }
  .lt-art .bear { right: auto; left: 660px; top: -200px; width: 139.7px; }
  .back { gap: 4px; margin-top: 12.2px; font-size: 16px; }
  .back .i { width: 22px; height: 22px; }

  .rin { max-width: 1120px; }
  .rband { border-radius: 0; }
  .rband .rin { height: 190px; padding-top: 58px; padding-bottom: 0; }
  .rband h2 { max-width: none; font-size: 46px; line-height: 1.1; }
  .rband p { max-width: none; margin-top: 17.5px; font-size: 15px; }
  .rband .spark { display: none; }
  .rband .r-st { display: block; left: 739.1px; top: 19.1px; width: 165.6px; color: var(--bg); }
  .rband .r-bear { right: auto; left: 930px; top: 20px; bottom: auto; width: 139.7px; }
  .rgrid { display: grid; grid-template-columns: 500px minmax(0, 1fr); column-gap: 64px; align-items: start; padding-top: 36px; }
  .ract { display: grid; grid-template-columns: 330px auto; column-gap: 26px; margin-top: 24px; }
  .ract .cta { grid-column: 1; grid-row: 1; }
  .ract .again { grid-column: 2; grid-row: 1; justify-self: start; margin: 8.2px 0 0; padding: 0; font-size: 16px; }
  .ract .rel2 { grid-column: 1 / -1; grid-row: 2; margin-top: 15.1px; text-align: left; font-size: 14px; }
  .ans { margin-top: 0.65px; }
  .checked2 { max-width: 632px; padding-bottom: 32px; }
  .lr:not([hidden]) ~ .checked2 { max-width: 1120px; }
}

/* AP-4694: the answer pages (board s15 of AP-4629) and the invited friend's page (board s13). Phone first; the action is a bar
   pinned to the bottom of the phone, a panel on the right from 1100 where the page's right column stays in sight. */
.answer2 { max-width: 640px; padding: 22px 16px 24px; }
.eyebrow { margin: 0; font-size: 12.5px; line-height: 1.3; font-weight: 700; color: var(--grey); }
.answer2 h1 { margin: 6px 0 0; font-size: 25px; line-height: 1.2; }
.quote { margin: 14px 0 0; padding: 16px 14px 14px 18px; background: #F6EFEA; border-left: 5px solid var(--brown); border-radius: 14px;
  font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.cline { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; }
.cline img { flex: none; width: 32px; height: 32px; }
.cline p { margin: 0; line-height: 1.25; }
.cline b { display: block; font-size: 14.5px; font-weight: 700; }
.cline span { display: block; font-size: 12.5px; color: #5A4A45; font-weight: 500; }
.panel .lesson { margin-top: 14px; }
.pinbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 12px 16px 10px; background: var(--card);
  border-top: 1px solid #E6DDD6; box-shadow: 0 -3px 12px rgba(43, 31, 28, 0.12); }
.pinbar .cta { height: 52px; border-radius: 26px; font-size: 16.5px; }
.pinbar .sub { margin: 8px 0 0; }
.slotcta { cursor: default; }
.pbear { display: none; }
.lab { margin: 0 0 8px; font-size: 11.5px; line-height: 1.3; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--grey); }
.mcheck { margin: 24px 0 0; }
.mcheck .lesson { margin-top: 12px; }
.exs { margin: 28px 0 0; }
.exs h2 { margin: 0 0 12px; font-size: 20px; }
.exl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.exc { background: var(--card); border: 1px solid #E6DDD6; border-radius: 14px; padding: 14px 16px; }
.exc p { margin: 0; }
.en { font-size: 16.5px; line-height: 1.3; color: var(--ink); }
.en b { font-weight: 700; }
.mk { background: #E6F2EA; border-radius: 6px; padding: 0 4px; }
.exx { margin: 9px 0 0; font-size: 14px; line-height: 1.4; color: #5A4A45; }
.fix .en { display: flex; align-items: flex-start; gap: 8px; }
.fix .i { flex: none; width: 16px; height: 16px; margin-top: 3px; stroke-width: 2.4; }
.fix .yes { color: #2F6B4F; }
.fix .nay { color: var(--grey); }
.fix .bad { margin-top: 2px; font-size: 15.5px; font-weight: 500; color: var(--grey); }
.fix .bad s { text-decoration: line-through; }
.close { position: relative; margin: 26px 0 0; padding: 18px 20px 14px; background: #F6EFEA; border-radius: 20px; }
.cl-h { margin: 0; padding-right: 64px; font-size: 16px; line-height: 1.3; font-weight: 700; }
.cl-rel { margin: 4px 0 0; padding-right: 140px; font-size: 14px; line-height: 1.4; color: #5A4A45; }
.close .stats { margin: 28px 0 0; padding-right: 0; }  /* board s15: the figures run under the bear, across the block */
.cl-h + .stats { margin-top: 14px; padding-right: 84px; }  /* from the release (no release line): the figures stand beside the bear */
.close .stats b { font-size: 19px; }
.close .stats span { font-size: 12px; }
.cbear { position: absolute; right: 18px; top: 16px; width: 59px; }
.answer2 .honest2 { margin: 18px 0 0; }
.adate { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--grey); font-weight: 500; }
body.pin footer { padding-bottom: 124px; }  /* the pinned bar never covers the page end */

/* the invited friend's page: the home's grid with the gift under the band */
.invited .who { display: none; }
.invited .art .sp1 { display: none; }  /* DESIGN_CHECK_AP-4694 F1: board s13 draws no star where the label's end reaches it at 375 */
.gift { margin: 22px 0 0; padding: 15px 16px 14px; background: #F6EFEA; border: 1px solid #EADFD8; border-radius: 16px;
  font-size: 15px; line-height: 1.45; color: #5A4A45; }
.gift p { margin: 0; }
.gift .gi { width: 22px; height: 22px; color: var(--brown); vertical-align: -5px; margin-right: 8px; stroke-width: 2; }
.gift b { color: var(--ink); font-weight: 700; }
.terms { position: relative; color: var(--brown); font-weight: 600; text-decoration: underline; }
.terms::after { content: ""; position: absolute; left: -6px; right: -6px; top: -12px; bottom: -12px; }  /* tap area 44 high */
.invited .act { margin: 14px 0 0; }
.invited .act .sub { margin: 8px -12px 0; }  /* board s13: one line under the button, wider than it (pt may wrap, note 12) */
.invited .lesson { margin-top: 12px; }  /* board s13: the label 27 px under the line below the button */
.giftagain { margin: 24px 0 0; }
.giftagain .gift { margin-top: 0; font-size: 14px; }
.giftagain .cta { margin-top: 12px; }

@media (min-width: 1100px) {
  .answer2 { max-width: 1088px; padding: 44px 0 40px; }
  .a-grid { display: grid; grid-template-columns: 640px 372px; justify-content: space-between; align-items: start; }
  .a-grid > * { grid-column: 1; }
  .exs { order: 1; margin-top: 40px; }
  .mcheck { order: 2; margin-top: 22px; }
  .close { order: 3; margin-top: 40px; }
  .a-grid > .honest2 { order: 4; }
  .adate { order: 5; }
  .eyebrow { font-size: 14px; }
  .answer2 h1 { margin-top: 20px; font-size: 40px; line-height: 1.15; }
  .quote { margin-top: 14px; padding: 24px 24px 20px; font-size: 18px; }
  .exs h2 { font-size: 22px; margin-bottom: 18px; }
  .exl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .mcheck .lesson { margin-top: 12px; }
  .close { padding: 26px 28px 24px; }
  .cl-h { padding-right: 0; font-size: 20px; }
  .cl-rel { padding-right: 0; font-size: 15.5px; }
  .close .stats { margin-top: 22px; padding-right: 0; max-width: 440px; }
  .close .stats b { font-size: 21px; }
  .close .stats span { font-size: 12.5px; }
  .cbear { display: none; }
  .answer2 .honest2 { margin-top: 20px; font-size: 13.5px; }
  .adate { font-size: 13.5px; }
  body.pin footer { padding-bottom: 48px; }
  .a-grid > .panel { grid-column: 2; grid-row: 1 / span 8; position: sticky; top: 24px; align-self: start; padding: 24px;
    background: var(--card); border: 1px solid #E6DDD6; border-radius: 22px; box-shadow: 0 12px 26px rgba(43, 31, 28, 0.16); }
  .panel .lesson { margin-top: 26px; }
  .panel .lesson-h { font-size: 12.5px; margin-bottom: 12px; }
  .panel .lcard { padding: 0; border: 0; box-shadow: none; border-radius: 0; }
  .panel legend { font-size: 21px; }
  .panel .opts { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
  .panel .opts label { justify-content: space-between; min-height: 48px; padding: 0 16px 0 18px; border-radius: 14px; font-size: 17px; }
  .panel .opts .i { width: 24px; height: 24px; }
  .pinbar { position: static; padding: 0; margin-top: 26px; background: none; border: 0; box-shadow: none; }
  .pinbar .cta { width: auto; height: 56px; border-radius: 28px; font-size: 17px; }
  .pinbar .sub { margin-top: 10px; }
  .pbear { display: block; position: absolute; right: 20px; top: 100%; width: 132px; height: 170px; margin-top: 6px; pointer-events: none; }
  .pbear .pbr { position: absolute; right: 0; bottom: 0; width: 92px; }
  .pbear .pst { position: absolute; right: 0; top: 0; width: 100px; color: #C08170; }

  .invited .who { display: block; }
  .invited .art .sp1 { display: block; }  /* at 1280 the star stands as on the home, away from the label */
  .invited .gift { grid-column: 1; grid-row: 4; max-width: 540px; margin: 30px 0 0; padding: 20px 22px 18px; font-size: 17px; }
  .invited .gift .gi { width: 24px; height: 24px; }
  .invited .act { grid-row: 5; margin-top: 20px; grid-template-rows: auto; align-items: center; }
  .invited .act .cta { grid-row: 1; }
  .invited .act .sub { margin: 0; }  /* board s13 at 1280: the line stands beside the button, centred on it */
  .invited .stats { grid-row: 6; }
  .invited .limits { grid-row: 7; }
  .invited .lesson { grid-row: 1 / 8; margin-top: 30px; }
  .giftagain { max-width: 560px; }
}
