/* easytyger.com palette: midnight navy, Manrope, blue accent. Dark-only, like the site. */
:root {
  --bg: #050d1c;
  --surface: #0b1729;
  --sunk: #10203c;
  --line: #38537870;
  --ink: #f1f5ff;
  --muted: #a4b3cc;
  --dim: #7f91ad;
  --accent: #3762df;
  --accent-hover: #3d68e8;
  --accent-ink: #ffffff;
  --accent-soft: #4876ff2e;
  --blue: #86baff;
  --ok: #5fd39a;
  --ok-soft: #1a3b2e;
  --bad: #ff8a80;
  --bad-soft: #3d1f22;
  --flag: #f0b458;
  --flag-soft: #3a2c14;
  --d1: #86baff;
  --d2: #4876ff;
  --d3: #b58cff;
  --d4: #f0b458;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:
    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 11px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-inline: 0;
  padding-block: 0 48px;
}
.wrap {
  padding-inline: 16px;
}
.wrap {
  max-width: 860px;
  margin: 0 auto;
}
h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
  line-height: 1.2;
}
h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 650;
  letter-spacing: -1px;
}
h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.mono {
  font-family: var(--mono);
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  color: #afbfda;
}
.eyebrow a {
  color: var(--blue);
}
.muted {
  color: var(--muted);
}
a {
  color: var(--blue);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn {
  border: 1px solid var(--line);
  background: #0f1d35;
  padding: 10px 18px;
  border-radius: var(--r);
  font-weight: 550;
  font-size: 14px;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.btn:hover {
  border-color: #6692df;
  background: #132444;
}
.btn.primary {
  background: var(--accent);
  border-color: #6389ff55;
  color: var(--accent-ink);
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 #ffffff25,
    0 6px 30px #2254cf15;
}
.btn.primary:hover {
  background: var(--accent-hover);
  border-color: #6389ff88;
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.flagged {
  border-color: var(--flag);
  color: var(--flag);
  background: var(--flag-soft);
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* start */
/* site header, copied from easytyger.com's index.css so the page reads as part of the site */
.site-header {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 29px;
  letter-spacing: -1.6px;
  font-weight: 750;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-dot {
  color: #78abff;
}
.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 14px;
  color: #b7c6df;
}
.site-header nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: #fff;
}
@media (max-width: 1000px) {
  .site-header {
    width: calc(100% - 64px);
  }
}
@media (max-width: 700px) {
  .site-header {
    width: calc(100% - 40px);
    height: 86px;
  }
  .wordmark {
    font-size: 26px;
    gap: 8px;
  }
  .site-header nav {
    gap: 21px;
    font-size: 12px;
  }
}
@media (max-width: 420px) {
  .site-header {
    height: auto;
    flex-wrap: wrap;
    padding-block: 18px 6px;
    row-gap: 2px;
  }
  .site-header nav {
    width: 100%;
    gap: 22px;
  }
}
header.top {
  padding-block: 36px 20px;
  display: grid;
  gap: 10px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}
.facts b {
  color: var(--ink);
  font-weight: 600;
}
.panel {
  background: linear-gradient(125deg, #10203c, #081226 60%);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 24px;
}
.stack {
  display: grid;
  gap: 18px;
}
.stack > *,
.wf-row > *,
.rv > *,
.ans-line > * {
  min-width: 0;
}
.rv,
.ans-line {
  overflow-wrap: anywhere;
}
.wf-axis div:nth-child(2) {
  overflow: visible;
}
.topics span,
.note,
.explain {
  overflow-wrap: anywhere;
}
.bp {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.bp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
}
.bp-name {
  font-weight: 500;
}
.bp-meta {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bp-bar {
  grid-column: 1/-1;
  height: 8px;
  background: #0b172b;
  border-radius: 4px;
  overflow: hidden;
}
.bp-bar i {
  display: block;
  height: 100%;
}
.bp-sub {
  grid-column: 1/-1;
  font-size: 13px;
  color: var(--muted);
}
.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.mode {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  background: #0b172b;
  transition: border-color 0.2s;
}
.mode:hover {
  border-color: #6692df;
}
.mode:has(input:checked) {
  border-color: #6692df;
  background: var(--accent-soft);
}
.mode input {
  accent-color: var(--accent);
  margin: 0 8px 0 0;
}
.mode span.d {
  font-size: 13px;
  color: var(--muted);
}
.opt-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  margin-top: 14px;
}
.seg {
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  justify-self: start;
}
.seg label {
  cursor: pointer;
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg span {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  font-family: var(--mono);
  border-right: 1px solid var(--line);
}
.seg label:last-child span {
  border-right: 0;
}
.seg input:checked + span {
  background: var(--accent);
  color: #fff;
}
.seg input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
@media (max-width: 480px) {
  .opt-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .opt-group .note:not(:first-child) {
    margin-top: 8px;
  }
}
.domfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.domfilter label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}
.domfilter input {
  accent-color: var(--accent);
}
table.hist {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
table.hist th,
table.hist td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
table.hist th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.tablewrap {
  overflow-x: auto;
}
.note {
  font-size: 13px;
  color: var(--muted);
}
.note a {
  color: var(--blue);
}

/* exam */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: #050d1cf2;
  backdrop-filter: blur(8px);
  padding-block: 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.bar .row {
  justify-content: space-between;
}
.timer {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--sunk);
  border: 1px solid var(--line);
}
.timer.low {
  background: var(--bad-soft);
  color: var(--bad);
}
.progress {
  height: 4px;
  background: var(--sunk);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--blue);
  transition: width 0.2s;
}
.qmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: normal;
  max-width: 100%;
}
.spanid {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
}
.qtext {
  overflow-wrap: anywhere;
  font-size: 19px;
  font-weight: 550;
  line-height: 1.45;
  margin: 0 0 18px;
  letter-spacing: -0.2px;
}
.qtext p {
  margin: 0 0 10px;
}
.qtext p:last-child {
  margin-bottom: 0;
}
.qtext pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 12px;
  margin: 0 0 10px;
  overflow-x: auto;
  white-space: pre;
  overflow-wrap: normal;
}
.opts {
  display: grid;
  gap: 10px;
}
.opt {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  text-align: left;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #0b172b;
  overflow-wrap: anywhere;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.opt:hover {
  border-color: #6692df;
  background: #0f1d35;
}
.opt .k {
  font-family: var(--mono);
  font-weight: 600;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--sunk);
  font-size: 13px;
  color: var(--muted);
}
.opt.sel {
  border-color: #6692df;
  background: var(--accent-soft);
}
.opt.sel .k {
  background: var(--accent);
  color: #fff;
}
.opt.right {
  border-color: var(--ok);
  background: var(--ok-soft);
}
.opt.right .k {
  background: var(--ok);
  color: #06201b;
}
.opt.wrong {
  border-color: var(--bad);
  background: var(--bad-soft);
}
.opt.wrong .k {
  background: var(--bad);
  color: #2a0c0a;
}
.opt[disabled] {
  cursor: default;
}
.explain {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  background: var(--sunk);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 14px;
}
.explain b {
  display: block;
  margin-bottom: 4px;
}
.explain a {
  color: var(--blue);
}
.nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 6px;
  margin-top: 12px;
}
.cell {
  font-family: var(--mono);
  font-size: 12px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #0b172b;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  position: relative;
}
.cell.ans {
  background: var(--accent-soft);
  border-color: #6692df;
  color: var(--ink);
}
.cell.flag {
  border-color: var(--flag);
  box-shadow: inset 0 -3px 0 var(--flag);
}
.cell.cur {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  color: var(--ink);
}
.cell.right {
  background: var(--ok-soft);
  border-color: var(--ok);
}
.cell.wrong {
  background: var(--bad-soft);
  border-color: var(--bad);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: #0b172b;
  vertical-align: -2px;
  margin-right: 5px;
}
details.navg summary {
  cursor: pointer;
  font-weight: 500;
}
.kbd {
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid #38537899;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 5px;
  color: var(--muted);
}

/* results */
.score {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: flex-end;
}
.big {
  font-family: var(--mono);
  font-size: clamp(44px, 9vw, 64px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pill {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.pill.pass {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid #5fd39a44;
}
.pill.fail {
  background: var(--bad-soft);
  color: var(--bad);
  border: 1px solid #ff8a8044;
}
.wf {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.wf-row {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 78px;
  gap: 12px;
  align-items: center;
}
.wf-track {
  position: relative;
  height: 18px;
  background: #0b172b;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.wf-track i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 3px;
}
.wf-track .pm {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 0;
  border-left: 2px dashed var(--muted);
}
.wf-val {
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.wf-axis {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 78px;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.wf-axis div:nth-child(2) {
  position: relative;
  height: 14px;
}
.wf-axis span {
  position: absolute;
  transform: translateX(-50%);
}
@media (max-width: 560px) {
  .wf-row,
  .wf-axis {
    grid-template-columns: minmax(0, 1fr) 64px;
  }
  .wf-row .wf-name {
    grid-column: 1/-1;
  }
  .wf-axis div:first-child,
  .wf-axis div:last-child {
    display: none;
  }
}
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.topics span {
  font-size: 13px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bad-soft);
  color: var(--bad);
  border: 1px solid #ff8a8033;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filters button {
  border: 1px solid var(--line);
  background: #0b172b;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  color: var(--muted);
}
.filters button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  border-color: #6389ff88;
}
.rv {
  border-top: 1px solid var(--line);
  padding-block: 18px;
  display: grid;
  gap: 10px;
}
.rv .qtext {
  font-size: 16px;
  margin: 0;
}
.rv .qtext pre {
  font-size: 12.5px;
}
.ans-line {
  font-size: 14px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 4px 10px;
}
.ans-line .lbl {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-top: 2px;
}
.ans-line .bad {
  color: var(--bad);
}
.ans-line .good {
  color: var(--ok);
}
.src {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.dlg {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #050d1ccc;
  backdrop-filter: blur(4px);
}
[hidden] {
  display: none !important;
}
.dlg-box {
  background: linear-gradient(125deg, #10203c, #081226 60%);
  color: var(--ink);
  border: 1px solid #6692df66;
  border-radius: 17px;
  padding: 22px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 18px 50px #0006;
}
.dlg-box p {
  margin: 0 0 18px;
  white-space: pre-line;
  font-size: 15px;
}
.btn.primary.danger {
  background: #c0392b;
  border-color: #ff8a8055;
  color: #fff;
  box-shadow: none;
}
.btn.primary.danger:hover {
  background: #d6483a;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Shared certification catalog and longer domain labels. */
body {
  margin: 0;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.catalog-card h2 {
  font-size: 28px;
  margin: 0;
}
.catalog-card p {
  margin: 0;
  flex: 1;
}
.catalog-card:hover {
  border-color: var(--muted);
}
.catalog-card .text-link {
  margin-top: 8px;
  color: var(--blue);
}
.study-help li {
  margin-bottom: 12px;
}
.bp-name,
.chip,
.wf-name {
  overflow-wrap: anywhere;
}
.top h1 {
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .catalog {
    grid-template-columns: 1fr;
  }
  .site-header {
    flex-wrap: wrap;
    gap: 14px;
  }
  .site-header nav {
    flex-wrap: wrap;
  }
}
