/* SemperEd Digital Products: the store's pages, on top of ed.css (same tokens, light and dark). */
.store main { background: var(--bg); }
.store-crumbs { padding-top: 22px; }
.store-crumbs .crumbs { color: var(--muted); font-size: .92rem; }
.store-crumbs .crumbs a { color: var(--link); }
.store-hero { background: var(--green); color: #fff; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.store-hero h1 { font: 700 clamp(2rem, 4.4vw, 3.1rem)/1.12 var(--head); margin: 0 0 16px; max-width: 22ch; color: #fff; }
.store-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #dbe7df; font-size: .98rem; }
.store-points li::before { content: '✓'; color: var(--gold); font-weight: 700; margin-right: 8px; }
.store-section { padding: clamp(32px, 5vw, 56px) 0; }
.store-section h1 { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--head); margin: 0 0 12px; color: var(--ink); }
.store-section h2, .product-main h2 { font: 600 1.3rem/1.25 var(--head); margin: 32px 0 12px; color: var(--ink); }
.wrap.narrow { width: min(720px, 100% - 32px); }
.lead.dark { color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chips a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chips a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.pcard { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1); }
.pcard-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-body h3 { font: 600 1.08rem/1.3 var(--head); margin: 0; }
.pcard-body h3 a { color: var(--ink); text-decoration: none; }
.pcard-body p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.pcard-cat { font-size: .74rem !important; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--gold-ink) !important; }
.pcard-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font: 700 1.2rem var(--head); color: var(--ink); }
.sbadge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.sbadge.soon { background: var(--gold-soft); color: var(--gold-ink); }
.sbadge.big { font-size: .95rem; padding: 8px 14px; }
.bgrid { display: grid; gap: 16px; }
.bcard { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 20px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.bcard h3 { font: 600 1.12rem var(--head); margin: 0 0 6px; }
.bcard h3 a { color: var(--ink); text-decoration: none; }
.bcard p { margin: 0; font-size: .93rem; }
.bcard .eyebrow { margin-bottom: 6px; }
.bcard-price { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.save { font-size: .85rem; color: var(--ok); font-weight: 600; }
.product { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(24px, 4vw, 56px); padding: 26px 0 64px; align-items: start; }
.product-media { position: sticky; top: 90px; }
.product-cover { width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--shadow-2); display: block; }
.previews { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.previews img { width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid var(--rule); display: block; }
.product-main h1 { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--head); margin: 0 0 10px; color: var(--ink); }
.product-main .lead { color: var(--ink-2); }
.product-main p, .product-main li { color: var(--ink-2); }
.product-main h3 { font: 600 1.02rem var(--head); margin: 18px 0 10px; }
.buy-box { margin: 24px 0 8px; padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow-1); display: grid; gap: 14px; }
.buy-box.wide { max-width: 560px; }
.buy-price { display: flex; flex-direction: column; gap: 2px; }
.buy-price .price { font-size: 1.7rem; }
.buy-box form { margin: 0; }
.buy-notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.store-form { display: grid; gap: 16px; margin-top: 18px; }
.store-form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); }
.store-form label small { font-weight: 400; color: var(--muted); }
.store-form input:not([type=checkbox]) { min-height: 48px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); font: inherit; }
.store-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); }
.store-form label.check input { margin-top: 4px; width: 18px; height: 18px; }
.store-form button { justify-self: start; }
.summary { border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); margin: 18px 0; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.summary-row:last-child { border-bottom: 0; }
.summary-row.total { font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.alert { background: rgba(155, 44, 44, .1); color: var(--err); padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; }
.okay { background: var(--green-soft); color: var(--ok); padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600; }
.lib-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lib-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px; margin: 16px 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
.lib-item img { width: 120px; height: auto; border-radius: var(--r-sm); }
.lib-item h2 { margin: 0 0 4px !important; font-size: 1.15rem !important; }
.files { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.files li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--ink-2); font-size: .93rem; }
.orders { width: 100%; border-collapse: collapse; font-size: .93rem; }
.orders th, .orders td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.orders th { color: var(--ink); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0; }
.kv dt { font-weight: 700; color: var(--ink); }
.kv dd { margin: 0; color: var(--ink-2); }
.store-note { margin-top: 24px; padding: 22px 24px; border-radius: var(--r); background: var(--gold-soft); }
.store-note h2 { margin-top: 0 !important; }
.store-note p { margin: 0; color: var(--ink-2); }
.store-note a { color: var(--link); font-weight: 600; }
@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; }
  .product-media { position: static; }
  .bcard-price { align-items: flex-start; }
  .lib-item { grid-template-columns: 72px 1fr; padding: 14px; gap: 14px; }
  .lib-item img { width: 72px; }
  .orders th:nth-child(2), .orders td:nth-child(2) { display: none; }
}
@media print {
  .top, .footer, .btn { display: none !important; }
  .receipt { width: 100%; }
}

/* Marketplace */
.store-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.store-search input[type=search] { flex: 1 1 260px; min-height: 46px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); font: inherit; }
.store-search select { min-height: 46px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); font: inherit; }
.chips.small a { padding: 5px 12px; font-size: .86rem; }
.pcard-by { font-size: .85rem !important; color: var(--muted) !important; }
.pcard-by a, .by-line a { color: var(--link); }
.stars { color: var(--gold-ink); font-size: .9rem; white-space: nowrap; }
.stars .muted { font-size: .85rem; }
.by-line { margin: 0 0 6px; color: var(--ink-2); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.buy-actions form { margin: 0; }
.reviews { display: grid; gap: 12px; }
.review { padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--surface); }
.review p { margin: 0 0 6px; }
.review-form { max-width: 560px; }
.store-form textarea, .store-form select { padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); font: inherit; }
.store-form select { min-height: 48px; }
.store-form fieldset { border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.store-form legend { font-weight: 600; color: var(--ink); padding: 0 4px; }
form.inline { display: inline; margin-left: 10px; }
.linkish { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.cart-row span:last-child { white-space: nowrap; }
.steps-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 8px 0 18px; }
.steps-3 > div { padding: 18px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); }
.steps-3 h3 { margin: 0 0 6px; font: 600 1.05rem var(--head); color: var(--ink); }
.kpis-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
.kpis-row > div { padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); display: grid; gap: 4px; }
.kpis-row span { color: var(--muted); font-size: .88rem; }
.kpis-row strong { font: 700 1.3rem var(--head); color: var(--ink); }
.two-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 18px; }
.uploads { display: grid; gap: 18px; margin: 12px 0 20px; }
.uploads > div { padding: 16px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); }
.uploads h3 { margin: 0 0 8px; }
.uploads img { border-radius: var(--r-sm); border: 1px solid var(--rule); height: auto; }
.uploads .previews { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.uploads figure { margin: 0; display: grid; gap: 4px; }
.file-btn { cursor: pointer; display: inline-flex; margin-top: 8px; }
.seller-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.seller-actions form { margin: 0; }
@media (max-width: 820px) {
  .product-cover { max-width: 260px; margin: 0 auto; }
  .previews { grid-template-columns: repeat(4, 1fr); }
}

/* Sales representatives (sempered.ng/reps, /rep) */
.reps .rep-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reps .store-hero .btn.line { color: #fff; border-color: rgba(255,255,255,.6); }
.rep-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 20px; padding: 6px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); }
.rep-tabs a { padding: 9px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.rep-tabs a:hover { background: var(--surface-2); }
.rep-tabs a[aria-current] { background: var(--green); color: #fff; }
.rep-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #1b1406; font-size: .75rem; }
.rep-todo { padding: 12px 16px; border-radius: var(--r-sm); background: var(--gold-soft); color: var(--gold-ink); margin-bottom: 16px; }
.rep-todo a { color: inherit; font-weight: 700; }
.rep-link { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r); border: 1px dashed var(--green-3); background: var(--green-soft); margin: 8px 0 16px; overflow-wrap: anywhere; }
.rep-link > span { font-size: .85rem; color: var(--muted); }
.rep-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.rep-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rep-list li { padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--surface); }
.rep-card { padding: 20px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); margin: 20px 0; max-width: 680px; }
.rep-card h2 { margin-top: 0 !important; }
.rep-card fieldset, .store-form fieldset { border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 14px; }
.store-form legend { font-weight: 700; padding: 0 6px; color: var(--ink); }
.rep-table { overflow-x: auto; }
.rep-table table { min-width: 640px; }
.rep-calc { padding: 14px 16px; border-radius: var(--r-sm); background: var(--green-soft); color: var(--ink); line-height: 1.6; margin: 0; }
.rep-agreement { max-height: 460px; overflow-y: auto; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); }
.rep-agreement h3 { font: 600 1rem var(--head); margin: 14px 0 4px; color: var(--ink); }
.rep-sign { font-style: italic; font-size: 1.2rem; }
.rep-thread { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; max-width: 760px; }
.rep-thread li { padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--surface); }
.rep-thread li.from-hq { background: var(--green-soft); border-color: transparent; margin-right: 40px; }
.rep-thread li.from-me { margin-left: 40px; }
.rep-pre { white-space: pre-line; margin-top: 4px; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.rep-examples td:nth-child(n+2), .rep-examples th:nth-child(n+2) { text-align: right; }
.ticks { padding-left: 1.2rem; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { padding: 12px 16px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--surface); }
.faq-list summary { cursor: pointer; font-weight: 600; color: var(--ink); }

/* Sales force: payment warning, verification checklist, ID card, public checks (honeypot hidden). */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.rep-pay-warning { margin: 24px 0 8px; border-left: 4px solid var(--warn); background: var(--gold-soft); color: var(--ink); font-weight: 500; }
.rep-check { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.rep-check li.done { color: var(--ok); } .rep-check li.todo { color: var(--ink-2); }
.rep-photo { display: inline-block; vertical-align: middle; margin-left: 12px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule-2); }
.rep-idcard { max-width: 420px; margin: 16px 0; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--rule); }
.rep-idcard-head { background: var(--green); color: #fff; padding: 12px 16px; display: flex; gap: 10px; align-items: baseline; }
.rep-idcard-head small { margin-left: auto; color: var(--gold-2); font-weight: 600; }
.rep-idcard-body { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.rep-idcard-body img { width: 96px; height: 120px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule-2); }
.rep-nophoto { width: 96px; height: 120px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .8rem; color: var(--muted); border: 1px dashed var(--rule-2); border-radius: 6px; padding: 6px; }
.rep-idcard-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 16px 16px; }
.rep-idcard-qr small { color: var(--muted); }
.rep-verify { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: var(--r); margin: 12px 0 20px; border: 2px solid; }
.rep-verify.ok { border-color: var(--ok); background: var(--green-soft); } .rep-verify.no { border-color: var(--err); background: rgba(155, 44, 44, .07); }
.rep-verify img { width: 120px; height: 150px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule-2); flex: none; }
.rep-verify h1 { margin: 0 0 4px; font-size: clamp(1.4rem, 4vw, 2rem); }
.rep-verify-status { font-weight: 700; font-size: 1.1rem; margin: 10px 0 0; }
.rep-verify.ok .rep-verify-status { color: var(--ok); } .rep-verify.no .rep-verify-status { color: var(--err); }
@media (max-width: 560px) { .rep-verify { flex-direction: column; } .rep-idcard-body { flex-direction: column; } }
@media print { .top, .footer, .rep-tabs, .lib-head form, .rep-pay-warning { display: none !important; } .rep-idcard { box-shadow: none; } }

/* ---- Representatives: product training (src/reps/pages.ts) ---- */
.rep-badge.gold { background: var(--gold); color: #1b1408; }
progress.tr-bar { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--surface-2, #eef0ec); overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule); color: var(--green); }
progress.tr-bar::-webkit-progress-bar { background: var(--surface-2, #eef0ec); border-radius: 99px; }
progress.tr-bar::-webkit-progress-value { background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 99px; transition: width .5s ease; }
progress.tr-bar::-moz-progress-bar { background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 99px; }
progress.tr-bar.big { height: 14px; }
.tr-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; margin: 16px 0 4px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; }
.tr-strip:hover { border-color: var(--gold); }
.tr-strip-r { color: var(--gold-ink); font-weight: 700; white-space: nowrap; }
.tr-head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.tr-head > div { max-width: 720px; } .tr-head h2 { margin-top: 0; }
.tr-progress { margin: 18px 0; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); display: grid; gap: 10px; }
.tr-progress-top, .tr-progress-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tr-progress-top span { font: 700 1.3rem var(--head); color: var(--gold-ink); }
.tr-progress-foot { color: var(--muted); font-size: .92rem; }
.tr-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0 0 8px; }
.tr-badge { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px dashed var(--rule-2, var(--rule)); border-radius: var(--r); color: var(--muted); }
.tr-badge strong { display: block; color: var(--ink); font-size: .92rem; } .tr-badge small { font-size: .8rem; }
.tr-badge.got { border-style: solid; border-color: var(--gold); background: var(--gold-soft); }
.tr-medal { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2, #eef0ec); font-weight: 700; color: var(--muted); }
.tr-badge.got .tr-medal { background: transparent; font-size: 1.5rem; }
.tr-part { margin: 26px 0 10px; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tr-card { display: grid; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.tr-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.tr-card.done { border-color: color-mix(in srgb, var(--gold) 55%, var(--rule)); }
.tr-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #16191d; }
.tr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-time { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.72); color: #fff; font-size: .78rem; font-weight: 600; }
.tr-star { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #1b1408; font-size: 1.05rem; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.tr-body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.tr-body > small:first-child { color: var(--gold-ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.tr-body strong { line-height: 1.3; }
.tr-stars { color: var(--gold); letter-spacing: 2px; }
.tr-watch .crumbs, .tr-cert-wrap .crumbs { font-size: .9rem; color: var(--muted); }
.tr-watch-head { display: flex; gap: 20px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.tr-watch-head h1 { margin: 0 0 6px; }
.tr-mini { min-width: 170px; display: grid; gap: 6px; text-align: right; } .tr-mini strong { font: 700 1.4rem var(--head); } .tr-mini small { color: var(--gold-ink); font-weight: 700; }
.tr-player { position: relative; margin: 18px 0 12px; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow-2); }
.tr-player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.tr-toast { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); max-width: 90%; padding: 10px 16px; border-radius: 99px; background: rgba(22,25,29,.92); color: #fff; font-weight: 600; font-size: .95rem; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: tr-pop .35s ease; }
.tr-toast.star { background: var(--gold); color: #1b1408; font-size: 1.05rem; }
.tr-toast b { font-size: 1.3rem; }
@keyframes tr-pop { from { opacity: 0; transform: translate(-50%, -8px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.tr-status { display: grid; gap: 8px; } .tr-earned { color: var(--gold-ink); }
.tr-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.tr-cert { max-width: 900px; margin: 18px auto; padding: 14px; background: #fffdf7; border: 2px solid var(--gold); border-radius: 6px; color: #16191d; }
.tr-cert-in { border: 1px solid rgba(201,164,92,.6); padding: 46px 40px 34px; text-align: center; display: grid; gap: 8px; justify-items: center; background: radial-gradient(circle at 50% 0%, rgba(201,164,92,.12), transparent 60%); }
.tr-cert-mark { width: 56px; height: 56px; }
.tr-cert-k { letter-spacing: .24em; text-transform: uppercase; font-size: .74rem; font-weight: 700; color: #7a5c22; margin: 6px 0 0; }
.tr-cert h1 { font-family: var(--head); color: #0c4a2e; margin: 4px 0 10px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.tr-cert p { margin: 0; max-width: 620px; color: #2b3036; }
.tr-cert-name { font-family: var(--head); font-size: clamp(1.8rem, 4.5vw, 2.8rem) !important; color: #16191d !important; border-bottom: 2px solid #c9a45c; padding: 4px 30px 8px; margin: 6px 0 10px !important; }
.tr-cert-title { font: 700 1.25rem var(--head); color: #0c4a2e !important; margin-top: 10px !important; }
.tr-cert-stars { color: #c9a45c !important; font-size: 1.5rem; letter-spacing: 6px; }
.tr-cert-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(201,164,92,.5); }
.tr-cert-foot small { display: block; color: #6b7078; font-size: .78rem; margin-top: 2px; }
@media (max-width: 640px) { .tr-strip { grid-template-columns: 1fr; } .tr-cert-in { padding: 28px 16px; } .tr-cert-foot { grid-template-columns: 1fr; } .tr-mini { text-align: left; } }
@media print { .page-top, .footer, .no-print, .skip, .rep-pay-warning { display: none !important; } body { background: #fff !important; } .tr-cert { margin: 0 auto; box-shadow: none; } main { padding: 0 !important; } }
/* The training challenge (before 3 schools) */
.tr-strip.challenge { border-color: color-mix(in srgb, var(--gold) 60%, var(--rule)); background: var(--gold-soft); }
.tr-challenge { padding: 26px 28px; border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--rule)); border-radius: var(--r); background: radial-gradient(circle at 100% 0%, var(--gold-soft), transparent 55%), var(--surface); }
.tr-challenge h2 { margin: 4px 0 10px; max-width: 760px; } .tr-challenge > p { max-width: 760px; }
.tr-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tr-step { display: grid; justify-items: center; gap: 4px; min-width: 96px; flex: 1 1 96px; padding: 10px 8px; border: 1px dashed var(--rule-2, var(--rule)); border-radius: var(--r); font: 700 1.25rem var(--head); color: var(--muted); text-align: center; }
.tr-step small { font: 600 .78rem var(--body, inherit); color: var(--muted); line-height: 1.25; }
.tr-step.got { border-style: solid; border-color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); }
.tr-step.got small { color: var(--ink); }
.tr-step.lock { border-color: var(--gold); color: var(--gold-ink); }
.tr-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.tr-how > div { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2, #eef0ec); }
.tr-how span { color: var(--muted); font-size: .92rem; }

/* Representatives' landing page (sempered.ng/reps) */
.rl-hero { background: radial-gradient(120% 90% at 85% 0%, var(--green-3) 0%, transparent 55%), linear-gradient(160deg, var(--green) 0%, #082f1d 100%); color: #fff; padding: clamp(44px, 7vw, 92px) 0 clamp(44px, 6vw, 80px); }
.rl-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.rl-hero h1 { font: 700 clamp(2.05rem, 4.6vw, 3.4rem)/1.08 var(--head); letter-spacing: -.01em; margin: 0 0 18px; color: #fff; max-width: 16ch; }
.rl-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: #d6e4dc; max-width: 46ch; margin: 0 0 26px; }
.rl-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0 0; color: #cfe0d6; font-size: .95rem; }
.rl-points li::before { content: '✓'; color: var(--gold); font-weight: 700; margin-right: 8px; }
.rl-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.rl-card p { margin: 0; }
.rl-card-k { font: 600 .8rem var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.rl-card-sub { color: #b9cdc1; font-size: .95rem; margin-top: 4px !important; }
.rl-card-big { display: grid; gap: 2px; margin: 18px 0 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.14); }
.rl-card-big strong { font: 700 clamp(2.2rem, 4vw, 2.9rem)/1 var(--head); color: #fff; }
.rl-card-big span { color: #cfe0d6; }
.rl-card-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: #cfe0d6; font-size: .95rem; }
.rl-card-row strong { color: #fff; font-family: var(--head); white-space: nowrap; }
.rl-sec { padding: clamp(36px, 5.5vw, 64px) 0; }
.rl-sec + .rl-sec { padding-top: 0; }
.rl-h2 { font: 700 clamp(1.45rem, 1.2rem + 1vw, 1.9rem)/1.2 var(--head); margin: 0 0 18px; color: var(--ink); }
.rl-sub { color: var(--muted); margin: -8px 0 20px; }
.rl-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rl-steps li { counter-increment: s; position: relative; padding: 20px 18px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--rule); }
.rl-steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font: 700 .95rem var(--head); margin-bottom: 12px; }
.rl-steps h3 { margin: 0 0 4px; font: 600 1.08rem var(--head); color: var(--ink); }
.rl-steps p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.rl-band { background: var(--surface-2); padding: 0 !important; }
.rl-band + .rl-sec { padding-top: clamp(36px, 5.5vw, 64px); }
.rl-earn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 14px; }
.rl-earn > div { display: grid; gap: 4px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--rule); }
.rl-earn > div.on { border: 2px solid var(--gold); box-shadow: var(--shadow-1); }
.rl-earn span { color: var(--muted); font-size: .92rem; }
.rl-earn strong { font: 700 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.1 var(--head); color: var(--ink); }
.rl-earn small { color: var(--ink-2); font-size: .9rem; }
.rl-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start; }
.rl-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rl-ticks li { position: relative; padding-left: 32px; color: var(--ink-2); line-height: 1.45; }
.rl-ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--ok); font-weight: 700; font-size: .8rem; }
.rl-grow { padding: 24px; border-radius: var(--r-lg); background: var(--gold-soft); border: 1px solid rgba(201,164,92,.35); }
.rl-grow h3 { font: 700 1.2rem/1.3 var(--head); margin: 0 0 8px; color: var(--ink); }
.rl-grow p:last-child { margin: 0; color: var(--ink-2); }
.rl-grow .eyebrow { margin-bottom: 8px; }
.rl-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.rl-faq p { margin: 8px 0 2px; color: var(--ink-2); }
.rl-final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: clamp(24px, 4vw, 36px); border-radius: var(--r-lg); background: linear-gradient(160deg, var(--green) 0%, #082f1d 100%); color: #fff; margin-bottom: 22px; }
.rl-final h2 { font: 700 1.6rem var(--head); margin: 0 0 4px; color: #fff; }
.rl-final p { margin: 0; color: #cfe0d6; }
.rl-final a:not(.btn) { color: #fff; }
.rl-final .rep-cta { margin: 0; }
.rl-foot { margin-top: 14px; }
@media (max-width: 900px) {
  .rl-hero-in, .rl-two { grid-template-columns: 1fr; }
  .rl-card { max-width: 460px; }
  .rl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .rl-steps, .rl-earn, .rl-faq { grid-template-columns: 1fr; }
  .rl-steps { gap: 10px; }
  .rl-steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 14px 16px; }
  .rl-steps li::before { grid-row: span 2; margin: 0; }
  .rl-hero .rep-cta .btn { flex: 1 1 auto; }
  .rl-final .rep-cta, .rl-final .rep-cta .btn { width: 100%; }
}

/* Representative's ID card (Nov 2026): front and back side by side, with downloads. */
.rep-cardpair { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.rep-cardpair img { width: min(270px, 44vw); height: auto; border-radius: 12px; box-shadow: 0 16px 36px -18px rgba(0,0,0,.4); background: #fff; }
.rep-cardactions { display: flex; gap: 10px; flex-wrap: wrap; }
