/* /tahun-1/ Year 1 at six checker. Own palette (HANDOFF section 7), not the Jemur one. */
/* Atkinson Hyperlegible (Braille Institute, SIL OFL 1.1: /assets/fonts/OFL-AtkinsonHyperlegible.txt), Latin subset, self-hosted. */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/AtkinsonHyperlegible-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/AtkinsonHyperlegible-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #14213D;
  --muted: #4F5D75;
  --line: #D6DEEA;
  --wash: #F2F5FA;
  --paper: #FFFFFF;
  --blue: #1F5FAE;
  --blue-soft: #D3E2F6;
  --green: #0F7B63;
  --green-soft: #D2EEE4;
  --pencil: #F6C643;
  --note: #FFF7DB;
  --font: "Atkinson Hyperlegible", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pencil); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.num { font-variant-numeric: tabular-nums; }

.stale { background: var(--note); border-bottom: 1px solid #EAD9A0; font-size: 15px; font-weight: 700; }
.stale .wrap { padding-top: 10px; padding-bottom: 10px; }

/* Hero on exercise-book lines, with the red margin just left of the text column. */
.hero {
  background: repeating-linear-gradient(180deg, var(--wash) 0, var(--wash) 31px, #DCE5F2 31px, #DCE5F2 32px);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { position: relative; padding-top: 4px; padding-bottom: 36px; }
.hero .wrap::before { content: ""; position: absolute; top: 0; bottom: 0; left: 8px; width: 2px; background: rgba(214, 80, 80, .22); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 7px; }
.langs { display: flex; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { font-size: 14px; color: var(--muted); padding: 6px 12px; border-radius: 999px; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 700; }
.audience { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 4px 12px 4px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); }
.audience img { flex: none; }
.students { display: block; width: 100%; max-width: 300px; height: auto; margin: 8px 0 0; }
/* Below 1000px the hero is one column in reading order: tag, students, question, intro, picker. */
@media (max-width: 999px) {
  .hero .wrap { display: flex; flex-direction: column; }
  .hero-copy, .hero-side { display: contents; }
  .hero .audience { order: 1; align-self: flex-start; }
  .hero .students { order: 2; }
  .hero h1 { order: 3; }
  .hero .lede { order: 4; }
  .hero .hero-checked { order: 5; }
  .hero .picker { order: 6; }
}
@media (min-width: 900px) {
  .students { position: absolute; right: -30px; top: 96px; width: 360px; max-width: none; margin: 0; }
  .hero h1 { max-width: 12ch; }
  .hero .lede { max-width: 40ch; }
}
h1 { font-size: clamp(30px, 7vw, 46px); line-height: 1.12; letter-spacing: -.015em; margin: 12px 0 14px; max-width: 15ch; text-wrap: balance; }
.lede { color: var(--muted); margin: 0 0 10px; max-width: 54ch; }
.hero-checked { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.pick-label { font-weight: 700; margin: 0 0 10px; font-size: 16px; }
.years { display: flex; gap: 10px; flex-wrap: wrap; }
.year {
  font: inherit; font-size: clamp(22px, 5vw, 28px); font-weight: 700; font-variant-numeric: tabular-nums;
  border: 2px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 14px;
  padding: 10px 20px 12px; cursor: pointer; position: relative; min-width: 104px;
}
.year:hover { border-color: var(--blue); }
.year[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.year[aria-pressed="true"]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 4px; border-radius: 2px; background: var(--pencil); }
.jan1 { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 15px; color: var(--muted); cursor: pointer; max-width: 52ch; }
.jan1 input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.jan1:has(input:disabled) { cursor: default; opacity: .7; }

/* Result: two paths on one shared axis. */
.result { padding: 28px 0 8px; }
.cohort { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.note { font-size: 15px; margin: -8px 0 18px; padding: 10px 12px; border-radius: 10px; background: var(--note); }
.cohort b { color: var(--ink); font-variant-numeric: tabular-nums; }
.path { margin: 0 0 24px; }
.path-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.path-name { font-weight: 700; font-size: 19px; margin: 0; }
.path-tag { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; background: #FFF1C2; color: #5E4500; }
.path-tag[data-tag="now"] { background: #DDF1EA; color: #0B5E4B; }
.path-tag[data-tag="past"] { background: #EAEEF3; color: var(--muted); }
.track { position: relative; height: 34px; background: var(--wash); border-radius: 10px; overflow: hidden; }
.seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font-size: 12px; font-weight: 700; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg.pri { border-radius: 10px 0 0 10px; }
.seg.sec { border-radius: 0 10px 10px 0; }
.six .seg.pri { background: var(--blue); color: #fff; }
.six .seg.sec { background: var(--blue-soft); color: #123D73; }
.seven .seg.pri { background: var(--green); color: #fff; }
.seven .seg.sec { background: var(--green-soft); color: #0A4F40; }
.path[data-tag="past"] .seg.pri { background: #6B778C; }
.path[data-tag="past"] .seg.sec { background: #E1E6ED; color: var(--muted); }
.path[data-tag="past"] .path-name, .path[data-tag="past"] .facts-line { color: var(--muted); }
.track-years { position: relative; height: 20px; margin-top: 4px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.track-years span { position: absolute; top: 0; white-space: nowrap; }
.track-years .ty-end { transform: translateX(-100%); }
.born2020 { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.facts-line { margin: 10px 0 0; padding: 0; list-style: none; font-size: 15px; }
.facts-line li { padding: 2px 0; }
.facts-line b { font-variant-numeric: tabular-nums; }
.status { margin: 10px 0 0; font-size: 15px; padding: 10px 12px; border-radius: 10px; background: var(--wash); }
@media (prefers-reduced-motion: no-preference) {
  .grow .seg { animation: grow .55s cubic-bezier(.2, .7, .2, 1) both; }
  .grow .seg.sec { animation-delay: .12s; }
  @keyframes grow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* Sections */
section.block { padding: 30px 0; border-top: 1px solid var(--line); }
h2 { font-size: 24px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -.01em; }
.next p { margin: 0 0 14px; max-width: 60ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 17px;
  background: var(--blue); color: #fff; text-decoration: none; border: 0; border-radius: 12px; padding: 12px 20px; cursor: pointer; min-height: 48px; text-align: center;
}
.btn:hover { background: #174C8C; }
.btn.ghost { background: var(--paper); color: var(--ink); border: 2px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn[aria-disabled="true"] { background: #E4E9F0; color: var(--muted); cursor: default; }
.small { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.ready { margin-top: 18px; font-size: 16px; }

.answers { list-style: none; margin: 0 0 16px; padding: 0; }
.answers li { padding: 6px 0 6px 14px; border-left: 3px solid var(--blue-soft); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.glance-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 16px; }
.glance-table th, .glance-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.glance-table thead th { font-size: 14px; color: var(--muted); font-weight: 700; }
.glance-table tbody th { font-weight: 700; }
.share-result { margin: 4px 0 18px; padding: 16px; border-radius: 14px; background: var(--wash); border: 1px solid var(--line); }
.share-h { font-weight: 700; margin: 0 0 10px; }
.share-msg { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 15px; margin: 0 0 12px; overflow-wrap: anywhere; }
.btn.wa { background: #128C4A; }
.btn.wa:hover { background: #0E7340; }
.share-result .small { margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 8px 0 0; max-width: 60ch; }
.faq .src { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.checked { font-size: 14px; color: var(--muted); margin: -4px 0 14px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 12px 0 12px 18px; border-left: 3px solid var(--blue-soft); margin-bottom: 6px; }
.facts p { margin: 0; }
.facts .src { font-size: 14px; color: var(--muted); margin-top: 4px; }

.report { background: var(--note); border-radius: 16px; padding: 22px 20px; }
.report .who { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.report .who img { flex: none; border-radius: 10px; }
.report h2 { margin: 0; font-size: 21px; }
.report p { margin: 0 0 16px; max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.log { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.log li { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; }

.t1-foot { background: var(--wash); border-top: 1px solid var(--line); margin-top: 30px; }
.t1-foot > .wrap { padding-top: 24px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.t1-notes p { margin: 0 0 8px; max-width: 62ch; }
.t1-foot .oa-foot { margin-top: 20px; padding-top: 24px; }
.t1-foot .oa-foot .oa-h { font-size: 13px; line-height: 1.4; letter-spacing: .06em; }
.bar .oa-brand { color: var(--oa-brand, #14504C); }

/* Desktop: use the width. Text keeps its line length (ch limits above); the checker result sits beside its
   share box, and the sections below pair up in two columns. Phones are unchanged. */
@media (min-width: 1000px) {
  .wrap { max-width: 1080px; padding: 0 32px; }
  .hero .wrap { padding-bottom: 44px; }
  /* Hero in two columns, centred against each other: the question on the left; the students standing on the
     year picker card on the right. */
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 440px; column-gap: 64px; align-items: center; }
  .hero .bar { grid-column: 1 / -1; }
  .hero .audience { margin-top: 0; }
  .hero .hero-checked { margin-bottom: 0; }
  .hero-side { display: flex; flex-direction: column; }
  .hero-side > * { flex: none; }
  .students { position: relative; top: auto; right: auto; width: 84%; align-self: center; margin: 0 0 -10px; z-index: 1; }
  .picker { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 18px; box-shadow: 0 2px 0 var(--line); }
  .picker .year { flex: 1 1 0; min-width: 0; padding: 10px 8px 12px; }
  .picker .jan1 { max-width: none; }
  .hero h1 { max-width: 13ch; font-size: 52px; }
  .hero .lede { max-width: 46ch; }
  main.wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; }
  main.wrap > #result-live, main.wrap > #updates { grid-column: 1 / -1; }
  .result { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 40px; align-items: start; }
  .result > * { grid-column: 1; }
  .result > .share-result { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: 20px; margin-top: 0; }
}
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 15px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .year { min-width: 0; flex: 1 1 0; padding: 10px 8px 12px; }
  .log li { grid-template-columns: 1fr; gap: 0; }
  .seg { font-size: 11px; padding: 0 6px; }
}

/* Age on the first school day (optional birth month). */
.month { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; }
.month label { font-size: 15px; font-weight: 700; }
.month select { font: inherit; font-size: 16px; min-height: 44px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.month select:disabled { opacity: .7; }
.month .small { flex-basis: 100%; margin: 0; }
.age-day { margin: 8px 0 0; font-size: 15px; }
.age-day b { font-variant-numeric: tabular-nums; }

/* Documents checklist: tick on the phone, or print it. */
.checklist ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.checklist li label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; min-height: 44px; }
.checklist input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.checklist .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.print-foot { display: none; }
@media print {
  body > *:not(main), main > *:not(.checklist), .checklist .actions, .checklist .small { display: none !important; }
  .checklist li label { border: 0; padding: 4px 0; }
  .print-foot { display: block; margin-top: 24px; font-size: 12px; color: var(--muted); }
}
