/* 2026 NCEA Maths Answer Checker (/ncea-2026/) */
.checker-page .chk-card { margin: 16px 0; }
.chk-step { display: flex; align-items: center; gap: 10px; margin: 0 0 12px !important; color: var(--ink) !important; font-size: 1.12rem !important; }
.chk-step span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--coral), var(--violet)); color: #1a1024; font-weight: 800; font-size: .95rem; }

.paper-picker { display: grid; gap: 12px; }
.paper-group h3 { margin: 4px 0 6px !important; font-size: .8rem !important; letter-spacing: .07em; text-transform: uppercase; color: var(--soft); }
.paper-row { display: flex; flex-wrap: wrap; gap: 8px; }
.paper-opt { border: 2px solid #3a3150; background: #1f1a2e; color: var(--ink); border-radius: 14px; padding: 8px 12px; cursor: pointer; text-align: left; display: grid; gap: 2px; font: inherit; min-width: 0; }
.paper-opt b { font-size: .95rem; }
.paper-opt small { font-size: .78rem; font-weight: 800; color: var(--soft); }
.paper-opt.active small { color: #9be7a8; }
.paper-opt:hover { border-color: #5a4a80; }
.paper-opt[aria-checked="true"] { border-color: var(--gold); background: #2a2233; box-shadow: 0 0 0 3px rgba(255, 197, 61, .15); }
.coming-soon { margin: 14px 0 0; background: #2a2233; border: 1px solid #7a5a1a; border-radius: 16px; padding: 12px 14px; }
.coming-soon p { margin: 0 0 6px; }
.coming-soon p:last-child { margin: 0; }
.coming-soon a, .paper-link a, .scheme a { color: var(--gold); font-weight: 800; overflow-wrap: anywhere; }
.paper-link { margin: 12px 0 0; font-size: .92rem; color: var(--soft); }

.drop { border: 2px dashed #5a4a80; border-radius: 18px; padding: 22px 14px; text-align: center; background: #16121f; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--gold); background: #211a2c; }
.drop-big { margin: 0 0 4px; font-weight: 800; font-size: 1.08rem; }
.drop-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs:empty { display: none; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #3a3150; background: #000; aspect-ratio: 3 / 4; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(17,14,25,.85); color: #fff; cursor: pointer; font-weight: 800; }
.thumb span { position: absolute; left: 6px; bottom: 6px; background: rgba(17,14,25,.85); color: #ffe7b0; font-size: .75rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.thumb.busy::after { content: "Shrinking..."; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17,14,25,.7); color: var(--soft); font-weight: 800; font-size: .85rem; }

.focus-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.focus-pills button { font: inherit; font-weight: 800; border-radius: 999px; padding: 8px 16px; border: 2px solid #3a3150; background: #1f1a2e; color: #d9ccff; cursor: pointer; }
.focus-pills button[aria-checked="true"] { border-color: var(--gold); background: #3a2d14; color: #ffe7b0; }
.chk-go { width: 100%; font-size: 1.12rem; padding: 15px 20px; }
.chk-go.loading { position: relative; }

.results h2 { margin-top: 0 !important; }
.loading-box { text-align: center; padding: 10px 0; }
.loading-box .dots { display: inline-flex; gap: 6px; margin: 6px 0 10px; }
.loading-box .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite ease-in-out; }
.loading-box .dots i:nth-child(2) { animation-delay: .2s; } .loading-box .dots i:nth-child(3) { animation-delay: .4s; }
.res-summary { font-size: 1.05rem; color: #e6def4; }
.grade-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }
.grade-chip { background: #2a2233; border: 1px solid #7a5a1a; border-radius: 16px; padding: 8px 14px; display: grid; gap: 2px; min-width: 96px; }
.grade-chip b { font-size: 1.5rem; color: var(--gold); line-height: 1.1; }
.grade-chip span { font-size: .8rem; color: var(--soft); font-weight: 700; }
.part-res { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.part-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.part-head h3 { margin: 0 !important; font-size: 1.08rem !important; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; border-radius: 8px; padding: 2px 8px; background: #2d2550; color: #e3d8ff; }
.code.t { background: #3b2a12; color: #ffd98a; } .code.r { background: #22304a; color: #a9d1ff; } .code.u { background: #1f3a2a; color: #9be7a8; }
.status { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; }
.status.correct { background: #1f3a2a; color: #9be7a8; } .status.slip { background: #3a1d28; color: #ffb3b3; }
.status.incomplete, .status.unclear { background: #2a2233; color: var(--soft); }
.part-res ul { margin: 8px 0; padding-left: 1.2rem; }
.part-res li { margin: 0 0 6px; }
.ok-li::marker { content: "✓  "; color: #9be7a8; }
.slip-li::marker { content: "!  "; color: var(--coral); font-weight: 800; }
.ans { margin: 6px 0; color: #e6def4; }
.ans .lbl { color: var(--soft); font-size: .88rem; font-weight: 800; margin-right: 6px; }
.res-disclaimer { margin-top: 14px; font-size: .85rem; color: var(--soft); }

.scheme { margin: 16px 0; }
.scheme summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; color: var(--gold); list-style-position: inside; }
.scheme-note { background: #2a2233; border: 1px solid #7a5a1a; border-radius: 14px; padding: 10px 12px; margin: 14px 0; font-size: .92rem; }
.scheme-note p { margin: 0 0 6px; } .scheme-note p:last-child { margin: 0; }
.scheme-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.scheme-table th, .scheme-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.scheme-table th { color: var(--soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.scheme-table td:first-child { font-weight: 800; white-space: nowrap; }
.scheme-table p { margin: 0 0 4px; }
.scheme-table .muted { color: var(--soft); font-size: .86rem; }
.scheme .katex { font-size: 1.04em; }
@media (max-width: 620px) {
  .scheme-table thead { display: none; }
  .scheme-table, .scheme-table tbody, .scheme-table tr, .scheme-table td { display: block; width: 100%; }
  .scheme-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .scheme-table td { border: 0; padding: 4px 0; }
  .paper-opt { flex: 1 1 140px; }
}

/* Tried & Tested by Teachers */
.badge-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 0 0 8px; }
.badge-row .free-teachers-badge { margin: 0; }
.tt-badge { display: inline-block; background: #1f3a2a; border: 2px solid #9be7a8; color: #c9f5d1; font-weight: 800; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; text-decoration: none; line-height: 1.2; }
.tt-badge::before { content: "✓ "; }
.unofficial-badge { display: inline-block; margin: 0 0 14px; background: #2a2233; border: 1px solid #7a5a1a; color: #ffd98a; font-weight: 800; font-size: .85rem; padding: 5px 12px; border-radius: 12px; }
.soft a, .contribute a:not(.btn) { color: var(--gold); font-weight: 800; }
.coming-soon .btn { margin-top: 6px; text-decoration: none; display: inline-block; }
.contribute { margin: 16px 0; border: 2px solid #9be7a8; }
.contribute h2 { margin-top: 0 !important; color: var(--ink) !important; }
.contribute .kicker { color: #9be7a8; }
.tt-steps { padding-left: 1.25rem; margin: 8px 0 16px; }
.tt-steps li { margin: 0 0 8px; }
.tt-form { display: grid; gap: 12px; }
.tt-form .field.small { margin: 0; }
.tt-form select, .tt-form textarea { font: inherit; font-size: 1rem; padding: 11px 14px; border-radius: 14px; border: 1px solid #3a3150; background: #120f1a; color: var(--ink); width: 100%; }
.tt-form textarea { resize: vertical; min-height: 110px; }
.tt-photo-btns { justify-content: flex-start; margin-top: 2px; }
.tt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tt-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; color: #e6def4; cursor: pointer; }
.tt-check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--gold); }
.tt-done { background: #1f3a2a; border: 1px solid #9be7a8; color: #d8f7de; border-radius: 14px; padding: 12px 14px; font-weight: 700; }
@media (max-width: 520px) { .tt-two { grid-template-columns: 1fr; } }
