/* 03 Path page (Figma 211:342 / 211:610), 08 Certificate form (216:981 / 216:1106), 09 Certificate ready (216:1209 / 216:1347) */
.i-lock { --i: url(/img/icons/lock.svg); } .i-edit { --i: url(/img/icons/edit.svg); } .i-copy { --i: url(/img/icons/copy.svg); }
.i-calendar { --i: url(/img/icons/calendar.svg); } .i-ext { --i: url(/img/icons/ext.svg); }
.i-20 { width: 20px; height: 20px; }
.t-m17 { font-size: 17px; line-height: 27px; }
.pth-h1 { font: 600 48px/54px var(--display); letter-spacing: -1px; }
.pth .d { } /* desktop-only text, hidden on phones */

/* Layout */
.pth-grid { display: grid; grid-template-columns: minmax(0, 792px) 360px; gap: 48px; justify-content: space-between; align-items: start; padding-top: 48px; padding-bottom: 80px; }
.pth-main { display: grid; gap: 28px; min-width: 0; }
.pth-side { display: grid; gap: 20px; position: sticky; top: 100px; }
.pth-crumbs { display: flex; gap: 8px; }
.pth-crumbs a { color: var(--muted); text-decoration: none; } .pth-crumbs a:hover { text-decoration: underline; }
.pth-head { display: grid; gap: 12px; justify-items: start; }
.pth-head .pth-landing { margin: 0; }
.pth-meta { display: none; }

/* Set-up panel */
.pth-setup { padding: 32px; box-shadow: var(--shadow-card); }
#setup-form { display: grid; gap: 22px; }
.pth-setup-head { display: grid; gap: 6px; }
.pth-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pth-choice { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.pth-choice:hover { border-color: var(--line-strong); }
.pth-choice .radio { width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; flex: none; }
.pth-choice .txt { display: grid; gap: 2px; min-width: 0; }
.pth-choice b { font-size: 17px; line-height: 27px; font-weight: 600; }
.pth-choice .txt span { font-size: 13px; line-height: 19px; color: var(--muted); }
.pth-choice:has(input:checked) { background: var(--teal-soft); border: 2px solid var(--accent); padding: 15px 19px; }
.pth-choice input:checked + .radio { border-color: var(--accent); }
.pth-choice input:checked + .radio::after { content: ''; width: 10px; height: 10px; border-radius: 5px; background: var(--ink); }
.pth-choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

.pth-firm { border-top: 1px solid var(--line); padding-top: 22px; }
.pth-firm > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; }
.pth-firm > summary::-webkit-details-marker { display: none; }
.pth-firm > summary .txt { display: grid; gap: 2px; }
.pth-firm > summary .i { color: var(--ink-2); transition: transform .2s; }
.pth-firm[open] > summary .i { transform: rotate(180deg); }
.pth-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.pth .field label { font: 600 15px/23px var(--ui); color: var(--ink); }
.pth .field .input { font-size: 17px; line-height: 27px; }
.pth .field .input::placeholder { color: var(--muted); opacity: 1; }
.pth .field { gap: 8px; }

.pth-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--tint); color: var(--ink-2); font-size: 13px; line-height: 19px; }
.pth-note .i { margin-top: 1px; }
.pth-setup-foot { display: flex; gap: 16px; align-items: center; }
.pth-setup-foot > .btn { flex: none; }
.pth-oliver { display: flex; gap: 12px; align-items: flex-start; flex: 1; min-width: 0; }
.pth-oliver img { width: 40px; height: 40px; border-radius: 20px; background: var(--tint); flex: none; }
.pth-oliver .bubble { flex: 1; display: grid; gap: 4px; padding: 12px 16px; background: var(--tint); border-radius: 4px 16px 16px 16px; }
.pth-oliver b { font-size: 13px; line-height: 19px; color: var(--ink-2); }
.pth-oliver p { font-size: 15px; line-height: 23px; }

.card.pth-summary { display: grid; gap: 10px; padding: 16px 20px; }
.pth-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pth .btn.quiet .i-edit { width: 16px; height: 16px; }

/* Modules */
.pth-mods { display: grid; gap: 12px; }
.pth-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pth-mod { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pth-mod.current { border: 2px solid var(--accent); padding: 17px 19px; }
.pth-mod .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 20px; background: var(--tint); color: var(--ink-2); font: 600 15px/23px var(--ui); flex: none; }
.pth-mod.current .n { background: var(--deep); color: var(--on-deep); }
.pth-mod.done .n { background: var(--ok-bg); color: var(--ok-fg); }
.pth-mod .txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pth-mod .txt a { font: 600 17px/27px var(--ui); color: var(--ink); text-decoration: none; }
.pth-mod .txt a:hover { text-decoration: underline; }
.pth-mod .meta { font-size: 13px; line-height: 19px; color: var(--muted); }
.pth-mod .st { flex: none; }
.pth-mod .pth-tag { display: inline-flex; align-items: center; vertical-align: middle; margin-right: 8px; color: var(--muted); }
.pth-mod .pth-tag .badge { font-size: 12px; }
.pth-mod .pth-tag[hidden] { display: none; }

/* Side */
.pth-progress, .pth-atend, .pth-team { display: grid; gap: 14px; }
.pth-atend { gap: 12px; }
.pth-side h2 { display: flex; align-items: center; gap: 10px; }
.pth-bar { height: 10px; border-radius: 5px; background: var(--tint); overflow: hidden; }
.pth-bar span { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--accent); transition: width .3s; }
.pth-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pth-ticks li { display: flex; align-items: center; gap: 8px; font: 600 15px/23px var(--ui); }
.pth-ticks.plain li { font-weight: 400; gap: 10px; align-items: flex-start; }
.pth-lock { display: none; }
.pth-team { background: var(--deep); color: var(--on-deep); border: 0; gap: 12px; }
.pth-team p { color: var(--on-deep-muted); }
.pth-team .btn { width: 100%; }
.pth-team .btn.secondary { background: var(--surface); color: var(--ink); }
.pth-team .btn.secondary:hover { background: var(--tint); }
.pth-getcert { width: 100%; }
.pth-faq .faq-list { max-width: 860px; margin-top: 24px; }

/* 08 Certificate form */
.pth-cert { padding-top: 48px; padding-bottom: 96px; }
.pth-cert:focus { outline: none; }
.pth-cform { max-width: 1040px; margin: 0 auto; display: flex; gap: 48px; align-items: flex-start; padding: 40px 48px; border-radius: 24px; }
.pth-cform-main { flex: 1; min-width: 0; display: grid; gap: 18px; justify-items: start; }
.pth-cfields { display: grid; gap: 18px; width: 100%; }
.pth-cform-side { width: 340px; flex: none; display: grid; gap: 16px; }
.pth-firmsum { padding: 16px; border-radius: 14px; background: var(--ground); display: grid; gap: 8px; }
.pth-firmsum .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 23px; }
.pth-firmsum .head .btn { height: 23px; }
.pth-firmsum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; line-height: 19px; color: var(--ink-2); }
.pth-mini { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 18px 20px; background: var(--paper); border: 2px solid var(--accent); border-radius: 6px; }
.pth-mini .nm { font: 600 22px/28px var(--display); letter-spacing: -.2px; max-width: 100%; overflow-wrap: anywhere; }
.pth-mini i { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--line); }
.pth-back { max-width: 1040px; margin: 16px auto 0; text-align: center; }

/* 09 Certificate ready */
.pth-ready { max-width: 960px; margin: 0 auto; display: grid; gap: 24px; }
.pth-ready > .pth-back { margin-top: -8px; }
.pth-hero { display: flex; gap: 32px; align-items: center; padding: 32px 40px; border-radius: 24px; }
.pth-hero img { width: 140px; height: 140px; object-fit: contain; flex: none; }
.pth-hero .txt { flex: 1; min-width: 0; display: grid; gap: 10px; justify-items: start; }
.pth-hero .badge { white-space: normal; height: auto; min-height: 28px; padding-top: 4px; padding-bottom: 4px; }
.pth-id { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--ground); }
.pth-id > div { display: grid; }
.pth-id b { font: 600 20px/20px var(--ui); letter-spacing: 1.5px; }
.pth-iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.pth-iconbtn:hover, .pth-iconbtn.copied { background: var(--tint); }
.pth-iconbtn.copied .i { --i: url(/img/icons/check.svg); color: var(--ok-fg); }
.pth-dl, .pth-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pth-dl .card { display: flex; flex-direction: column; gap: 12px; border-radius: 20px; }
.pth-dl h2 { display: flex; align-items: center; gap: 12px; }
.pth-dl .icon-tile { width: 44px; height: 44px; }
.pth-dl p { flex: 1; }
.pth-dl .btn { width: 100%; }
.pth-more .card { display: flex; gap: 14px; align-items: center; padding: 16px 20px; color: var(--ink-2); }
.pth-more .card > div { display: grid; gap: 2px; min-width: 0; }
.pth-more b { font-size: 15px; line-height: 23px; color: var(--ink); }
.pth-more a { overflow-wrap: anywhere; }
.pth-send { display: flex; gap: 16px; align-items: center; padding: 24px 28px; border-radius: 20px; background: var(--deep); color: var(--on-deep); }
.pth-send .txt { flex: 1; display: grid; gap: 4px; }
.pth-send p { color: var(--on-deep-muted); }
.pth-send .btn.secondary { background: var(--surface); color: var(--ink); flex: none; } .pth-send .btn.secondary:hover { background: var(--tint); }

/* Tablet */
@media (max-width: 1100px) {
  .pth-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .pth-cform { flex-direction: column; } .pth-cform-side { width: 100%; }
}
@media (max-width: 900px) {
  .pth-grid { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding-top: 24px; padding-bottom: 32px; }
  .pth-main, .pth-side { display: contents; }
  .pth-crumbs { order: 1; } .pth-head { order: 2; } .pth-setup, .pth-summary { order: 3; } .pth-progress { order: 4; }
  .pth-mods { order: 5; } .pth-lock { order: 6; } .pth-team { order: 7; } .pth-atend, .pth-qs { display: none; }
  .pth-signup { order: 3; }
  .pth-head { gap: 18px; } .pth-head .badge, .pth-lede { display: none; }
  .pth-meta { display: block; font: 600 15px/23px var(--ui); color: var(--ink-2); }
  .pth .d { display: none; }
  .card.pth-progress { background: none; border: 0; padding: 0; gap: 8px; }
  .pth-progress h2 { display: none; }
  .pth-progress #prog-text { font-weight: 600; color: var(--ink-2); }
  .card.pth-lock { display: flex; gap: 12px; align-items: center; padding: 16px; box-shadow: none; font-size: 15px; line-height: 23px; color: var(--ink-2); }
  .pth-lock[hidden] { display: none; }
  .card.pth-team { background: none; padding: 0; } .pth-team h2, .pth-team p { display: none; }
  .pth-mods { gap: 18px; } .pth-list { gap: 18px; }
}
@media (max-width: 640px) {
  .pth-h1 { font-size: 36px; line-height: 42px; letter-spacing: -.6px; }
  .pth-setup { padding: 20px; }
  .pth-choices, .pth-fields { grid-template-columns: 1fr; }
  .pth-setup-foot { flex-direction: column; align-items: stretch; } .pth-setup-foot > .btn { width: 100%; }
  .card.pth-summary { padding: 16px; }
  .pth-mod { flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 18px 20px; }
  .pth-mod .txt { flex: 1 1 calc(100% - 50px - 90px); }
  .pth-mod.current .st, .pth-mod:not(.done) .st { flex: 1 1 100%; padding-left: 50px; }
  .pth-mod:not(.done) .st .btn { width: 100%; }
  .pth-cert { padding: 24px 20px 48px; }
  .pth-cform { padding: 20px; gap: 32px; border-radius: 24px; }
  .pth-hero { flex-direction: column; text-align: center; gap: 12px; padding: 20px; }
  .pth-hero .txt { justify-items: center; }
  .pth-hero .badge { justify-content: center; }
  .pth-id { text-align: left; } .pth-id b { font-size: 18px; letter-spacing: 1px; }
  .pth-dl, .pth-more { grid-template-columns: 1fr; }
  .pth-dl .card { padding: 24px; }
  .pth-send { flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .pth-send .btn { width: 100%; }
  .pth-cfields button[type="submit"] { width: 100%; }
  .pth-ready .ab-card { align-items: flex-start; } .pth-ready .ab-card .txt { flex: 1 1 200px; }
}

/* Dark mode: --deep is close to --surface, so deep blocks get an outline to stay visible. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.pth-send, .card.pth-team, .pth-dl .icon-tile.deep) { box-shadow: inset 0 0 0 1px var(--line-strong); } }
:root[data-theme="dark"] :is(.pth-send, .card.pth-team, .pth-dl .icon-tile.deep) { box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (max-width: 900px) { .card.pth-team { box-shadow: none !important; } }
.pth-price { font-size: 15px; line-height: 23px; color: var(--muted); margin: 0; } .pth-price b { color: var(--ink); }

/* Certificate section (4 Nov 2026) */
.pth-exam { display: grid; gap: 14px; margin-top: 32px; }
.pth-exam > * { margin: 0; }
.pth-exam-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.pth-mods > p { margin: 0; }
.pth-progress > a { display: inline-block; margin-top: 8px; }
@media (max-width: 640px) { .pth-exam-ctas .btn { width: 100%; justify-content: center; } }
@media (max-width: 900px) { .pth-exam { order: 5; margin-top: 0; } .pth-lock { display: none !important; } }

/* Accounts (4 Nov 2026): sign-up card for signed-out visitors, locked modules, demo unlock */
.pth-signup { padding: 32px; box-shadow: var(--shadow-card); display: grid; gap: 10px; } .pth-signup > * { margin: 0; }
.pth-signup-ctas { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 8px !important; }
.pth-mod.locked .n { opacity: .6; } .pth-mod.locked .txt a { color: var(--muted); }
.pth-mod .st .i-lock, .pth-exam .i-lock { --i: url(/img/icons/lock.svg); }
.pth-demo { border-style: dashed; }
@media (max-width: 640px) { .pth-signup { padding: 22px; } }
#team-url { font-size: 16px; } /* visually hidden copy source: 16px so iOS never zooms if it gets focus */
/* Course page (design review 5 Nov 2026): locked rows show a label, not a button; price box for signed-out visitors */
.pth-locked { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.pth-pricebox { display: grid; gap: 10px; } .pth-pricebox h2, .pth-pricebox p { margin: 0; }
.pth-pb-acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* Box review (6 Nov 2026): "Get the full course" for signed-out visitors: the two buttons full width, like the
   team box under it, so they line up instead of being two widths. */
.pth-pb-acts { display: grid; gap: 8px; } .pth-pb-acts .btn { width: 100%; justify-content: center; }
