/* Course catalogue, level path and certificate page. */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s5); margin-top: var(--s5); }
.cat-card { display: grid; align-content: start; gap: var(--s2); padding: var(--s5); background: var(--card); border: 1px solid var(--line-hi); border-top: 3px solid var(--accent); border-radius: 4px; }
.cat-card h3 { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; font-weight: 600; margin: 0; }
.cat-card h3 a { color: var(--text-hi); text-decoration: none; }
.cat-card h3 a:hover { text-decoration: underline; }
.cat-card p { margin: 0; color: var(--muted); }
.cat-tag { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: 0 0 var(--s2); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.cat-card .cat-tag { color: var(--accent-ink); margin: 0; }
.cat-status { padding: 2px var(--s2); border: 1px solid var(--line-hi); border-radius: 3px; color: var(--muted); letter-spacing: 0.08em; }
.cat-status.is-live { border-color: var(--accent); color: var(--text-hi); }
.cat-go { margin-top: var(--s2); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.cat-go:hover { text-decoration: underline; }

.lvl-path { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.lvl-path a { display: grid; gap: 2px; padding: var(--s3); min-height: 44px; border: 1px solid var(--line-hi); border-radius: 4px; text-decoration: none; color: var(--muted); height: 100%; }
.lvl-path b { font-family: var(--serif); font-size: 1.4rem; color: var(--text-hi); }
.lvl-path span { font-size: var(--text-sm); color: var(--text); }
.lvl-path i { font-style: normal; font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.lvl-path .is-here a { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.lvl-wrap { padding-block: var(--s4) 0; }

.syl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--s5); margin-top: var(--s5); }
.syl-m { border-top: 2px solid var(--line-hi); padding-top: var(--s3); }
.syl-m h3 { display: grid; gap: 2px; margin: 0 0 var(--s2); color: var(--text-hi); }
.syl-m h3 span { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); font-weight: 400; }
.syl-m ol, .lab-steps, .cert-criteria { margin: var(--s3) 0 0; padding-left: 1.3em; display: grid; gap: var(--s2); }
.lab-checks, .facts-list { margin: var(--s3) 0 0; padding-left: 1.2em; display: grid; gap: var(--s2); color: var(--text); }

.cert-page { max-width: 760px; margin: var(--s6) auto; }
.cert-card { padding: var(--s7) var(--s6); border: 2px solid var(--accent); border-radius: 6px; background: var(--card); text-align: center; display: grid; gap: var(--s3); }
.cert-card .cert-issuer { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-ink); margin: 0; }
.cert-card .cert-name { font-family: var(--serif); font-size: clamp(2rem, 6vw, 3rem); color: var(--text-hi); margin: 0; line-height: 1.15; overflow-wrap: anywhere; }
.cert-card .cert-course { font-family: var(--serif); font-size: clamp(1.3rem, 3.4vw, 1.8rem); color: var(--text-hi); margin: 0; }
.cert-card p { margin: 0; color: var(--muted); }
.cert-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s5); font-size: var(--text-sm); }
.cert-valid { display: inline-block; justify-self: center; padding: 2px var(--s3); border: 1px solid var(--accent); border-radius: 3px; color: var(--text-hi); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; }
.cert-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.cert-actions .btn { min-height: 44px; }
.cert-note { margin-top: var(--s4); }

.cc-box { display: grid; gap: var(--s3); }
.cc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.cc-list li { display: flex; justify-content: space-between; gap: var(--s3); }
.cc-list .ok { color: var(--text-hi); font-weight: 600; }
.cc-row { display: grid; gap: var(--s2); }
.cc-row input { min-height: 44px; padding: 0 var(--s3); background: transparent; color: var(--text-hi); border: 1px solid var(--line-hi); border-radius: 4px; font: inherit; }

.syl + .muted { margin-top: 2rem; max-width: 70ch; }
@media (max-width: 1100px) { .lvl-path { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .lvl-path { grid-template-columns: minmax(0, 1fr); } }
@media print {
  header, footer, .subnav, .cert-actions, .cert-note, #shell-header, #shell-footer { display: none !important; }
  body { background: #fff !important; }
  .cert-card { border-color: #000; background: #fff; }
  .cert-card * { color: #000 !important; }
}
.track { margin-top: var(--s7, 56px); }
.track h3 { font-size: var(--text-xl, 1.5rem); margin: 0 0 var(--s2); }
.track > .sub { max-width: 62ch; }
.t-hero-actions { padding-block: 0 var(--s5); }
.feat { border: 1px solid var(--line-hi); border-left: 3px solid var(--accent); border-radius: 4px; padding: var(--s6) var(--s5); background: var(--card); }
.feat h2 a { color: var(--text-hi); text-decoration: none; }
.feat h2 a:hover { text-decoration: underline; }
.feat-line { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 var(--s3); max-width: 46rem; }

/* Training hero: full-width introduction and three balanced portfolio cards. */
.t-hero-index { display: block; }
.t-hero-index .t-hero-copy { max-width: none; padding-bottom: var(--s5); }
.t-hero-index h1 { max-width: 26ch; }
.t-hero-index .lead { max-width: 76ch; }
.t-hero-index .actions { align-items: center; }
.hero-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); align-items: stretch; }
.tile-group { display: flex; flex-direction: column; min-width: 0; height: 100%; padding: var(--s5); border: 1px solid var(--line-hi); border-top: 3px solid var(--accent); border-radius: 4px; background: var(--card); }
.hero-card-kicker { margin: 0 0 var(--s2); font-family: var(--mono); font-size: var(--text-xs); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.hero-card-title { min-height: 2.4em; margin: 0 0 var(--s2); font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.2; color: var(--text-hi); }
.hero-card-title a { color: inherit; text-decoration: none; }
.hero-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-card-lead { min-height: 3em; margin: 0 0 var(--s4); color: var(--muted); font-size: var(--text-sm); line-height: 1.5; max-width: 34ch; }
.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: auto; }
.tile { display: flex; align-items: center; gap: var(--s3); min-width: 0; min-height: 46px; padding: 0 var(--s3); border: 1px solid var(--line-hi); border-radius: 4px; background: var(--bg); color: var(--text-hi); text-decoration: none; transition: border-color .15s, background .15s; }
.tile::after { content: "\2192"; margin-left: auto; color: var(--muted); transition: transform .15s, color .15s; }
.tile:hover, .tile:focus-visible { border-color: var(--accent); background: var(--card); }
.tile:hover::after, .tile:focus-visible::after { color: var(--accent-ink); transform: translateX(3px); }
.tile-top { flex: none; width: 2.2em; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-ink); }
.tile-name { display: grid; gap: 1px; font-size: var(--text-sm); line-height: 1.25; font-weight: 600; overflow-wrap: normal; word-break: normal; hyphens: manual; padding-block: 8px; }
.tile-note { font-size: var(--text-xs); font-weight: 400; color: var(--accent-ink); }
.tile.is-course-level { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-hi)); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
@media (max-width: 1050px) { .hero-card-title, .hero-card-lead { min-height: 0; } .hero-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* four academies */
@media (max-width: 680px) { .hero-tiles { grid-template-columns: minmax(0, 1fr); } .tile-group:last-child { grid-column: auto; } .tile-group:last-child .tiles { grid-template-columns: minmax(0, 1fr); } .hero-card-lead { max-width: none; min-height: 0; } .hero-card-title { min-height: 0; } }
/* two wide academy cards */
.cat-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat-grid-wide .cat-card { display: flex; flex-direction: column; }
.cat-grid-wide .cat-card .cat-go { margin-top: auto; padding-top: var(--s3); }
@media (max-width: 760px) { .cat-grid-wide { grid-template-columns: minmax(0, 1fr); } }
.btn-link { background: none; border: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding-inline: var(--s2); }
.btn-link:hover { color: var(--accent); }
.sn-code { font-size: var(--text-sm); color: var(--accent); white-space: nowrap; }
.subnav .sn-code { margin-left: auto; }
.cat-price { margin-left: var(--s3); color: var(--text-hi); font-weight: 600; letter-spacing: 0; text-transform: none; }
.mycourses { max-width: 640px; }
.mine { margin-bottom: var(--s6); }
.mine-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.mine-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
@media (max-width: 860px) { .t-hero-index { grid-template-columns: minmax(0, 1fr); } }

/* Hero artwork intentionally omitted: the three academy/course cards are the primary navigation. */

.learning-evidence { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); }
.learning-evidence > ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4); list-style: none; padding: 0; margin: var(--s3) 0 0; }
.learning-evidence li { display: grid; align-content: start; gap: 4px; padding: var(--s3); border: 1px solid var(--line); border-radius: 5px; background: var(--card); }
.learning-evidence li strong { color: var(--text-hi); }
.learning-evidence li > span { color: var(--muted); font-size: var(--text-xs); }
.learning-evidence li p { margin: var(--s1) 0; font-size: var(--text-sm); }
.learning-evidence li a { font-size: var(--text-sm); text-underline-offset: 3px; }

/* cp38: small title, cards first, buttons at the bottom of each card, course boxes in academy heroes */
.t-title-sm { font-size: clamp(1.5rem, 2.2vw, 1.9rem) !important; line-height: 1.15; letter-spacing: -0.015em; max-width: none !important; margin: 0 0 var(--s2); }
.t-hero-index .t-hero-copy { padding-bottom: var(--s3); }
.t-hero-index .eyebrow { margin-bottom: var(--s1, 4px); }
.tile-group .tiles { flex: 1 1 auto; }
.tile-cta { margin-top: var(--s4); align-self: stretch; text-align: center; justify-content: center; }
.t-hero-actions { margin: var(--s5) 0 var(--s6); justify-content: center; }
.hero-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s2, 8px); margin-top: var(--s4); padding: 0; list-style: none; }
.hero-boxes a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; border: 1px solid var(--line-hi); border-radius: 4px; background: var(--card); color: inherit; text-decoration: none; }
.hero-boxes a:hover { border-color: var(--accent); }
.hero-boxes b { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.hero-boxes span { font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.hero-boxes i { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.hero-boxes .is-open { border-left: 3px solid var(--accent); }
.t-hero-index .t-title-sm { margin-top: var(--s2); }

/* cp39: academy hero is two columns, the level or course boxes sit on the right */
.t-hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); max-width: none; align-items: center; gap: var(--s6); }
.t-hero-split .t-hero-copy { max-width: 56ch; }
.t-hero-side { min-width: 0; }
.t-hero-side .hero-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.t-hero-side .hero-boxes li { margin: 0; padding: 0; list-style: none; }
.t-hero-side .hero-boxes a { padding: 12px 14px; background: var(--card); box-shadow: 4px 4px 0 var(--line); transition: transform .12s, box-shadow .12s, border-color .12s; }
.t-hero-side .hero-boxes a:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--accent); }
.t-hero-side .hero-boxes i { margin-top: 2px; }
.t-hero-side .hero-boxes .is-open i { color: var(--text-hi); font-weight: 600; }
@media (max-width: 860px) { .t-hero-split { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } .t-hero-split .t-hero-copy { max-width: none; } }
@media (max-width: 460px) { .t-hero-side .hero-boxes { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .t-hero-side .hero-boxes a { transition: none; } }

/* cp39: open-now cards, lab flow */
.open-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.open-card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); background: var(--card); border: 1px solid var(--line-hi); border-left: 4px solid var(--accent); border-radius: 4px; }
.open-card h3 { margin: 0; } .open-card h3 a { color: var(--text-hi); text-decoration: none; } .open-card h3 a:hover { text-decoration: underline; }
.open-card p { margin: 0; }
.open-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s1) 0; padding: 0; list-style: none; }
.open-facts li { padding: 2px 10px; border: 1px solid var(--line-hi); border-radius: 999px; font-size: var(--text-xs); color: var(--text); }
.open-price { font-weight: 700; font-size: 1.25rem; color: var(--text-hi); margin-top: auto !important; }
.open-card .actions { margin-top: var(--s2); }
.lab-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin: var(--s4) 0; padding: 0; list-style: none; }
.lab-flow li { display: flex; flex-direction: column; gap: 4px; padding: var(--s3); border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.lab-flow strong { color: var(--text-hi); } .lab-flow span { font-size: var(--text-sm); color: var(--text); }
@media (max-width: 860px) { .open-grid, .lab-flow { grid-template-columns: minmax(0, 1fr); } }

/* My pathway: progress across the six levels, and the printable transcript */
.pw-page { max-width: 880px; margin: var(--s6) auto; display: grid; gap: var(--s5); }
.pw-screen { display: grid; gap: var(--s4); }
.pw-meters { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pw-meter-l { display: flex; justify-content: space-between; gap: var(--s3); margin: 0 0 var(--s1); font-size: var(--text-sm); }
.pw-track { height: 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); overflow: hidden; }
.pw-track i { display: block; height: 100%; background: var(--accent); }
.pw-levels { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.pw-level { display: grid; grid-template-columns: 2.2rem 1fr; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.pw-level.is-done { border-color: var(--accent); }
.pw-n { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid var(--line); border-radius: 50%; font-weight: 700; color: var(--text-hi); }
.pw-body { display: grid; gap: var(--s2); min-width: 0; }
.pw-body h3, .pw-body p { margin: 0; }
.pw-st { justify-self: start; padding: 1px var(--s3); border: 1px solid var(--line); border-radius: 3px; font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pw-st.is-done, .pw-st.is-next { border-color: var(--accent); color: var(--text-hi); }
.pw-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pw-actions .btn, .pw-add .btn { min-height: 44px; }
.pw-more { border: 1px solid var(--line); border-radius: 6px; padding: var(--s3) var(--s4); }
.pw-add { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.pw-add input { min-height: 44px; padding: 0 var(--s3); font: inherit; }
.pw-transcript { padding: var(--s6); border: 2px solid var(--accent); border-radius: 6px; background: var(--card); display: grid; gap: var(--s3); }
.pw-transcript p { margin: 0; }
.pw-t-title { font-family: var(--serif); margin: 0; color: var(--text-hi); }
.pw-t-name { font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--text-hi); overflow-wrap: anywhere; }
.pw-t-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.pw-t-table th, .pw-t-table td { text-align: left; vertical-align: top; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
@media (max-width: 640px) { .pw-transcript { padding: var(--s4); overflow-x: auto; } .pw-t-table { min-width: 560px; } }
@media print {
  .pw-screen { display: none !important; }
  .pw-page { margin: 0; max-width: none; }
  .pw-page h1 { display: none; }
  .pw-transcript { border-color: #000; background: #fff; padding: 0 0 0 0; }
  .pw-transcript * { color: #000 !important; }
  .pw-t-table tr { break-inside: avoid; }
}
.subnav .sn-code + .sn-code { margin-left: var(--s4); }
.pw-t-table td:first-child { width: 2.5rem; }
.pw-t-table td:nth-child(2) { min-width: 15rem; }
.pw-t-table td:nth-child(3) { white-space: nowrap; }
.pw-t-table td:nth-child(2) .small { word-break: break-all; }

/* Hall of Achievement */
.hall-row { display: grid; grid-template-columns: 2.2rem 1fr; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: 6px; background: var(--card); list-style: none; }
.hall-pill { margin-left: var(--s2); }
.hall-certs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); font-size: var(--text-sm); }
.hall-certs .pw-st { margin-left: var(--s2); }

/* Find your path */
.st-q{border:1px solid var(--line,#d9dde3);border-radius:12px;padding:1rem 1.1rem;margin:1.25rem 0;display:grid;gap:.5rem}
.st-q legend{font-weight:700;padding:0 .4rem}
.st-opt{display:flex;gap:.7rem;align-items:flex-start;padding:.55rem .6rem;border-radius:8px;cursor:pointer}
.st-opt:hover{background:rgba(127,127,127,.09)}
.st-opt input{margin-top:.3rem}
.st-result{border:2px solid var(--accent,#1f6feb);border-radius:14px;padding:1.2rem 1.4rem;margin:1.5rem 0}
.st-result h2{margin-top:0}
.st-list{padding-left:1.2rem;display:grid;gap:.4rem}
