/* Test Pro Training. Scoped under .tptc so it sits safely inside any theme.
   Look: highway guide-sign green, safety amber, clean federal-form typography. */
.tptc {
  --g-900: #0b3d28;
  --g-800: #0f5e3c;
  --g-700: #17724b;
  --g-100: #e4f0e8;
  --g-50:  #f3f8f4;
  --amber: #f2b320;
  --amber-600: #d99a06;
  --ink: #142019;
  --ink-2: #3d4b43;
  --dim: #66756c;
  --line: #dde5df;
  --card: #ffffff;
  --bad: #a4262c;
  --bad-50: #fcefef;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 40, 28, .06), 0 8px 24px -12px rgba(15, 40, 28, .18);
  --shadow-lg: 0 2px 4px rgba(15, 40, 28, .06), 0 22px 48px -20px rgba(15, 40, 28, .30);
  --font-display: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  max-width: 1160px;
  margin: 0 auto;
}
.tptc *, .tptc *::before, .tptc *::after { box-sizing: border-box; }
.tptc h1, .tptc h2, .tptc h3 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
.tptc h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; line-height: 1.15; }
.tptc h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.tptc p { margin: 0; }
.tptc a { color: var(--g-800); }
.tptc :focus-visible { outline: 3px solid #1d67c9; outline-offset: 2px; border-radius: 6px; }
.tptc-icon { flex: none; }
.tptc-kicker { font-family: var(--font-display); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--g-700); }
.tptc-dim, .tptc-muted { color: var(--dim); font-size: .95rem; }
.tptc-center { text-align: center; }

/* Hide the theme's page title on plugin pages that draw their own header. */
body.tptc-page .wp-block-post-title, body.tptc-page .entry-title, body.tptc-page .page-title { display: none; }

/* Buttons */
.tptc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--amber); color: #1b1505 !important; border: 2px solid var(--amber);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1.2;
  padding: .75em 1.35em; border-radius: 10px; text-decoration: none !important; cursor: pointer;
  box-shadow: 0 2px 0 var(--amber-600); transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.tptc-btn:hover { background: #f5c13d; transform: translateY(-1px); box-shadow: 0 3px 0 var(--amber-600); }
.tptc-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--amber-600); }
.tptc-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.tptc-btn-lg { font-size: 1.08rem; padding: .9em 1.6em; }
.tptc-btn-small { padding: .5em .95em; font-size: .9rem; }
.tptc-btn-ghost { background: transparent; border-color: var(--line); color: var(--ink) !important; box-shadow: none; }
.tptc-btn-ghost:hover { background: var(--g-50); border-color: var(--g-700); box-shadow: none; }
.tptc-btn-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff !important; box-shadow: none; }
.tptc-btn-light:hover { background: rgba(255,255,255,.12); box-shadow: none; }

/* Hero */
.tptc-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.5rem; align-items: center;
  background: radial-gradient(1200px 400px at 100% 0%, #1a7a50 0%, transparent 60%), linear-gradient(135deg, var(--g-900), var(--g-800));
  color: #fff; border-radius: 22px; padding: clamp(2rem, 5vw, 3.6rem);
  box-shadow: var(--shadow-lg);
}
.tptc-hero::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px); pointer-events: none; }
.tptc-hero .tptc-kicker { color: #bfe3cf; }
.tptc-hero-copy { position: relative; z-index: 1; display: grid; gap: 1.1rem; }
.tptc-hero-title { color: #fff !important; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.02em; }
.tptc-hero-lede { font-size: 1.12rem; color: #dcece2; max-width: 34em; }
.tptc-hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }

.tptc-sign { position: relative; z-index: 1; display: grid; justify-items: end; }
.tptc-sign-tab { margin-right: 22px; background: var(--g-800); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .08em; padding: 6px 14px 4px; border: 2px solid #fff; border-bottom: 0; border-radius: 8px 8px 0 0; position: relative; top: 2px; }
.tptc-sign-panel { width: 100%; max-width: 420px; background: var(--g-800); border: 3px solid #fff; outline: 6px solid var(--g-800); border-radius: 14px; padding: 18px 20px 16px; display: grid; gap: 12px; box-shadow: 0 30px 50px -25px rgba(0,0,0,.6); transform: rotate(-1.2deg); }
.tptc-sign-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.25); }
.tptc-sign-arrow { font-size: 1.5rem; line-height: 1; }
.tptc-sign-name { font-size: 1.15rem; line-height: 1.15; }
.tptc-sign-dist { font-size: 1rem; white-space: nowrap; }
.tptc-sign-strip { background: var(--amber); color: #1b1505; text-align: center; font-family: var(--font-display); font-weight: 900; letter-spacing: .06em; font-size: .95rem; padding: 7px 8px 5px; border-radius: 6px; }

/* Trust bar */
.tptc-trust { list-style: none; margin: 1.4rem 0 0; padding: 1.1rem 1.2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tptc-trust li { display: flex; gap: .7rem; align-items: flex-start; color: var(--g-800); }
.tptc-trust span { display: grid; color: var(--dim); font-size: .9rem; line-height: 1.35; }
.tptc-trust strong { color: var(--ink); font-family: var(--font-display); font-size: 1rem; }

/* Sections */
.tptc-section { padding: clamp(2.6rem, 6vw, 4.2rem) 0 0; }
.tptc-section-tint { margin-top: clamp(2.6rem, 6vw, 4.2rem); padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.2rem, 4vw, 2.6rem); background: var(--g-50); border-radius: 22px; }
.tptc-section-head { display: grid; gap: .6rem; max-width: 46em; margin-bottom: 1.8rem; }
.tptc-section-head > p:last-child { color: var(--ink-2); }

/* Course cards */
.tptc-course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; align-items: stretch; }
.tptc-course { position: relative; display: flex; flex-direction: column; gap: .9rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.tptc-course:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tptc-course-featured { border: 2px solid var(--g-800); }
.tptc-course-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.tptc-course-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--g-100); color: var(--g-800); }
.tptc-course-icon-light { background: rgba(255,255,255,.14); color: #fff; }
.tptc-badge { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: #eef1ef; color: var(--ink-2); white-space: nowrap; }
.tptc-badge-req { background: var(--g-800); color: #fff; }
.tptc-course-sum { color: var(--ink-2); font-size: .97rem; }
.tptc-meta { list-style: none; margin: 0; padding: .7rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.tptc-meta li { display: inline-flex; align-items: center; gap: .35rem; }
.tptc-meta .tptc-icon { color: var(--g-700); }
.tptc-lessons summary { cursor: pointer; font-weight: 600; color: var(--g-800); font-size: .95rem; list-style: none; }
.tptc-lessons summary::-webkit-details-marker { display: none; }
.tptc-lessons summary::after { content: " +"; }
.tptc-lessons[open] summary::after { content: " –"; }
.tptc-lessons ol { margin: .6rem 0 0; padding-left: 1.2rem; font-size: .9rem; display: grid; gap: .3rem; }
.tptc-lessons li span:first-child { margin-right: .4rem; }
.tptc-course-buy { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding-top: .4rem; }
.tptc-price { display: flex; align-items: baseline; gap: .5rem; }
.tptc-price-num { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; line-height: 1; letter-spacing: -0.02em; }
.tptc-price-unit { font-size: .8rem; color: var(--dim); line-height: 1.25; }

.tptc-bundle { margin-top: 1.4rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.4rem; align-items: center; padding: 1.5rem 1.8rem; border-radius: 18px; background: linear-gradient(120deg, var(--g-800), var(--g-700)); color: #fff; box-shadow: var(--shadow-lg); }
.tptc-bundle h3 { color: #fff; }
.tptc-bundle p { color: #d7ebdf; }
.tptc-bundle .tptc-kicker { color: var(--amber); }
.tptc-bundle-buy { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.tptc-bundle .tptc-price-unit { color: #d7ebdf; }

/* Steps */
.tptc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; counter-reset: step; }
.tptc-steps li { position: relative; background: var(--card); border-radius: var(--radius); padding: 1.4rem 1.2rem 1.2rem; border: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; }
.tptc-steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 14px; right: 16px; font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--g-100); line-height: 1; }
.tptc-step-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--amber); color: #1b1505; }
.tptc-steps p { color: var(--ink-2); font-size: .95rem; }

/* Why */
.tptc-why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: start; }
.tptc-why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.tptc-why-list li { display: flex; gap: .8rem; padding: 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--g-800); }
.tptc-why-list div { display: grid; gap: .25rem; align-content: start; }
.tptc-why-list strong { color: var(--ink); font-family: var(--font-display); }
.tptc-why-list span { color: var(--ink-2); font-size: .93rem; }

/* Tables */
.tptc-scroll { overflow-x: auto; }
.tptc-price-table, .tptc-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; }
.tptc-price-table th, .tptc-price-table td, .tptc-table th, .tptc-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.tptc-price-table thead th, .tptc-table thead th { background: var(--g-800); color: #fff; font-family: var(--font-display); font-size: .85rem; letter-spacing: .03em; }
.tptc-price-table td { font-weight: 700; font-size: 1.05rem; }
.tptc-price-table tbody tr:last-child > *, .tptc-table tbody tr:last-child > * { border-bottom: 0; }
.tptc-row-hl > * { background: #fff8e1; }
.tptc-section-tint .tptc-dim { margin-top: 1rem; }

/* FAQ */
.tptc-faq { display: grid; gap: .7rem; max-width: 860px; }
.tptc-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 1.2rem; }
.tptc-faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.tptc-faq summary::-webkit-details-marker { display: none; }
.tptc-faq summary::after { content: "+"; position: absolute; right: 0; top: .7rem; font-size: 1.5rem; color: var(--g-700); }
.tptc-faq details[open] summary::after { content: "–"; }
.tptc-faq details p { padding: 0 0 1.1rem; color: var(--ink-2); }

/* Final CTA */
.tptc-cta { margin-top: clamp(2.6rem, 6vw, 4.2rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 2rem 2.2rem; border-radius: 22px; background: var(--ink); color: #fff; }
.tptc-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.tptc-cta p { color: #c9d4cd; }
.tptc-cta-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.tptc-cta-phone { display: inline-flex; gap: .45rem; align-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff; }

/* Page header used on inner pages */
.tptc-pagehead { display: grid; gap: .4rem; margin-bottom: 1.6rem; }
.tptc-pagehead h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 900; }

/* Forms and checkout */
.tptc-checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 2rem; align-items: start; }
.tptc-panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); }
.tptc-form { display: grid; gap: .35rem; }
.tptc-form label { font-weight: 600; font-size: .95rem; margin-top: .75rem; }
.tptc-form input, .tptc-form select { font: inherit; padding: .75em .85em; border: 1.5px solid var(--line); border-radius: 10px; width: 100%; background: #fff; color: var(--ink); transition: border-color .12s ease, box-shadow .12s ease; }
.tptc-form input:focus, .tptc-form select:focus { outline: none; border-color: var(--g-700); box-shadow: 0 0 0 4px rgba(23, 114, 75, .15); }
.tptc-form .tptc-btn { margin-top: 1.2rem; justify-self: start; }
.tptc-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; }
.tptc-form-row > div { display: grid; gap: .35rem; }
.tptc-summary { position: sticky; top: 24px; display: grid; gap: 1rem; }
.tptc-summary-course { display: flex; gap: .9rem; align-items: center; }
.tptc-summary dl { margin: 0; display: grid; gap: .5rem; }
.tptc-summary dl div { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.tptc-summary dt { color: var(--dim); }
.tptc-summary dd { margin: 0; font-weight: 600; }
.tptc-summary .tptc-total-row { border-top: 1px solid var(--line); padding-top: .7rem; font-size: 1.25rem; }
.tptc-summary .tptc-total-row dd { font-family: var(--font-display); font-weight: 900; }
.tptc-includes { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .93rem; color: var(--ink-2); }
.tptc-includes li { display: flex; gap: .5rem; align-items: flex-start; }
.tptc-includes .tptc-icon { color: var(--g-700); margin-top: 2px; }
.tptc-secure { display: flex; gap: .5rem; align-items: center; font-size: .88rem; color: var(--dim); }

.tptc-alert { padding: .9rem 1.1rem; border-radius: 12px; background: #fff7e0; border: 1px solid #f0d58a; }
.tptc-alert-good { background: var(--g-100); border-color: #b6d6c3; }
.tptc-alert-bad { background: var(--bad-50); border-color: #ebbcbe; color: var(--bad); }

/* Success / status page */
.tptc-status { max-width: 680px; margin: 0 auto; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.tptc-status-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--g-100); color: var(--g-800); }

/* My Training */
.tptc-dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.tptc-dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.3rem; }
.tptc-enr { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; box-shadow: var(--shadow); display: grid; gap: .9rem; }
.tptc-enr-top { display: flex; gap: .9rem; align-items: center; }
.tptc-enr > div:last-child { display: flex; gap: .6rem; flex-wrap: wrap; }
.tptc-enr-stats { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); }
.tptc-enr-stats strong { color: var(--ink); }
.tptc-bar { height: 10px; background: var(--g-100); border-radius: 999px; overflow: hidden; }
.tptc-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--g-700), var(--g-800)); border-radius: 999px; }
.tptc-done-pill { display: inline-flex; gap: .35rem; align-items: center; font-size: .8rem; font-weight: 700; background: var(--g-100); color: var(--g-800); padding: 3px 10px; border-radius: 999px; }
.tptc-empty { text-align: center; padding: 2.5rem 1rem; background: var(--g-50); border-radius: 18px; display: grid; gap: .8rem; justify-items: center; }

/* Course player */
.tptc-player-head { background: linear-gradient(135deg, var(--g-900), var(--g-800)); color: #fff; border-radius: 18px; padding: 1.5rem 1.6rem; display: grid; gap: .7rem; margin-bottom: 1.4rem; }
.tptc-player-head h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.tptc-player-head .tptc-kicker { color: #bfe3cf; }
.tptc-player-head .tptc-dim { color: #cfe2d6; }
.tptc-player-head .tptc-bar { background: rgba(255,255,255,.18); }
.tptc-player-head .tptc-bar span { background: var(--amber); }
.tptc-modules { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; }
.tptc-mod { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.tptc-mod-n { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; background: var(--g-100); color: var(--g-800); }
.tptc-mod-complete .tptc-mod-n { background: var(--g-800); color: #fff; }
.tptc-mod-available, .tptc-mod-in_progress { border-color: var(--g-700); box-shadow: 0 0 0 3px rgba(23, 114, 75, .1); }
.tptc-mod-locked { opacity: .55; }
.tptc-mod-t { display: grid; }
.tptc-mod-t strong { font-family: var(--font-display); }
.tptc-mod-t small { color: var(--dim); }
.tptc-lock { font-size: .85rem; color: var(--dim); }
.tptc-exam-card { background: var(--card); border: 2px dashed var(--line); border-radius: 18px; padding: 1.4rem; display: grid; gap: .7rem; }
.tptc-exam-ready { border: 2px solid var(--amber); background: #fffaf0; }

.tptc-lesson-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.tptc-lesson-top a { font-weight: 600; text-decoration: none; }
.tptc-lesson-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; margin: .1rem 0 1rem !important; }
.tptc-slidebar { display: flex; gap: 4px; margin: 0 0 1.2rem; }
.tptc-slidebar span { flex: 1; height: 6px; border-radius: 3px; background: var(--g-100); }
.tptc-slidebar span.on { background: var(--g-700); }
.tptc-slidebar span.cur { background: var(--amber); }
.tptc-goalbox { background: var(--g-50); border: 1px solid var(--g-100); border-radius: 14px; padding: 1rem 1.2rem; margin: 0 0 1.2rem; }
.tptc-goals { margin: .4rem 0 0; padding-left: 1.2rem; }
.tptc-slide { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); display: grid; gap: .9rem; }
.tptc-slide h3 { font-size: 1.3rem; }
.tptc-slide p { max-width: 70ch; color: var(--ink-2); }
.tptc-screen { background: linear-gradient(135deg, var(--g-800), var(--g-700)); color: #fff !important; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.35; padding: 1.2rem 1.4rem; border-radius: 12px; border-left: 6px solid var(--amber); }
.tptc-clip { border-radius: 12px; background: #fffaf0; border: 1px solid #f3dca2; padding: 1rem 1.2rem; display: grid; gap: .3rem; }
.tptc-clip p { margin: 0; font-style: italic; color: var(--ink) !important; }
.tptc-clip-label { display: inline-flex; gap: .4rem; align-items: center; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #8a6200; }
.tptc-bullet { position: relative; padding-left: 1.3em; }
.tptc-bullet::before { content: ""; position: absolute; left: .2em; top: .7em; width: .45em; height: .45em; border-radius: 50%; background: var(--g-700); }
.tptc-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1rem 0 .4rem; }
.tptc-auto { font-size: .95rem; color: var(--dim); display: inline-flex; gap: .4rem; align-items: center; }
.tptc-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; }
.tptc-count { color: var(--dim); font-variant-numeric: tabular-nums; font-weight: 600; }
.tptc-timer { display: flex; gap: .5rem; align-items: center; font-size: .9rem; color: var(--dim); background: var(--g-50); border-radius: 10px; padding: .6rem .9rem; }
.tptc-video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin-bottom: 1.2rem; background: #000; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.tptc-video iframe, .tptc-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tptc-quiz { display: grid; gap: 1rem; }
.tptc-q { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; margin: 0; background: var(--card); }
.tptc-q legend { font-family: var(--font-display); font-weight: 800; padding: 0 .3em; font-size: 1.05rem; }
.tptc-q label { display: flex; gap: .6rem; align-items: flex-start; padding: .55em .7em; border-radius: 10px; cursor: pointer; border: 1px solid transparent; margin-top: .35rem; }
.tptc-q label:hover { background: var(--g-50); border-color: var(--g-100); }
.tptc-q input { margin-top: .3em; accent-color: var(--g-800); }
.tptc-right { border-color: #8cc3a3; background: #f6fbf8; }
.tptc-wrong { border-color: #e2a3a6; background: #fffafa; }
.tptc-answer { background: var(--g-100); font-weight: 700; }
.tptc-why { margin: .6rem 0 0 !important; color: var(--ink-2); font-size: .95rem; }
.tptc-quiz .tptc-btn { justify-self: start; }
.tptc-result { display: grid; gap: .8rem; justify-items: start; }

/* Certificate */
.tptc-cert-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.tptc-certificate { background: #fffdf7; padding: 14px; max-width: 980px; margin: 0 auto; box-shadow: var(--shadow-lg); border-radius: 4px; }
.tptc-cert-inner { position: relative; border: 2px solid var(--g-800); outline: 1px solid var(--g-800); outline-offset: -8px; padding: clamp(1.6rem, 4vw, 3rem) clamp(1.2rem, 5vw, 3.4rem); text-align: center; display: grid; gap: .45rem; background: radial-gradient(600px 300px at 50% 0%, rgba(15, 94, 60, .06), transparent 70%); }
.tptc-cert-brand { font-family: var(--font-display); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--g-800); font-size: .9rem; }
.tptc-cert-title { font-family: "Cormorant Garamond", Georgia, serif !important; font-size: clamp(2.2rem, 5vw, 3.2rem) !important; font-weight: 700 !important; letter-spacing: .01em; margin: .2rem 0 .6rem !important; color: var(--ink) !important; }
.tptc-cert-small { color: var(--dim); }
.tptc-cert-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2rem, 4.6vw, 2.8rem); font-weight: 700; margin: .1rem 0; border-bottom: 1.5px solid var(--g-800); justify-self: center; padding: 0 2rem .25rem; }
.tptc-cert-course { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; margin: .3rem 0; }
.tptc-cert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem 1rem; margin: 1.4rem 0 .6rem; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.tptc-cert-grid dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.tptc-cert-grid dd { margin: .15rem 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tptc-cert-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: end; text-align: left; margin-top: 1rem; }
.tptc-cert-seal { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle, var(--amber) 0 56%, #e0a50f 57% 60%, var(--amber) 61%); color: #3d2c00; font-family: var(--font-display); font-weight: 900; font-size: .72rem; letter-spacing: .06em; line-height: 1.2; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); justify-self: center; }
.tptc-cert-sign { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.8rem; margin: 0; border-bottom: 1px solid var(--ink-2); display: inline-block; padding: 0 1rem 0 0; }
.tptc-cert-id { font-size: .78rem; color: var(--dim); word-break: break-all; margin-top: .4rem !important; }
.tptc-qr { width: 96px; height: 96px; justify-self: end; }

@media print {
  body * { visibility: hidden !important; }
  .tptc-certificate, .tptc-certificate * { visibility: visible !important; }
  .tptc-certificate { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
}

@media (max-width: 960px) {
  .tptc-hero, .tptc-checkout, .tptc-why { grid-template-columns: minmax(0, 1fr); }
  .tptc-sign { justify-items: start; }
  .tptc-course-grid { grid-template-columns: minmax(0, 1fr); }
  .tptc-steps, .tptc-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tptc-bundle { grid-template-columns: minmax(0, 1fr); }
  .tptc-summary { position: static; }
}
@media (max-width: 600px) {
  .tptc { font-size: 16px; }
  .tptc-steps, .tptc-trust, .tptc-why-list, .tptc-form-row { grid-template-columns: minmax(0, 1fr); }
  .tptc-hero { border-radius: 16px; }
  .tptc-sign-panel { transform: none; }
  .tptc-mod { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .tptc-mod > :last-child { grid-column: 2; justify-self: start; }
  .tptc-cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tptc-cert-foot { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .tptc-qr { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tptc *, .tptc *::before, .tptc *::after { transition: none !important; }
}

/* My Training dashboard */
.tptc-dash-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.6rem; align-items: center; padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: 22px; color: #fff; background: radial-gradient(900px 300px at 100% 0%, #1a7a50 0%, transparent 60%), linear-gradient(135deg, var(--g-900), var(--g-800)); box-shadow: var(--shadow-lg); }
.tptc-dash-hero h1 { color: #fff !important; font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; }
.tptc-dash-hero p { color: #d7ebdf; }
.tptc-dash-hero .tptc-kicker { color: var(--amber); }
.tptc-dash-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); gap: .7rem; }
.tptc-dash-stats li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: .8rem .9rem; display: grid; gap: .1rem; }
.tptc-dash-stats strong { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; line-height: 1.1; color: #fff; white-space: nowrap; }
.tptc-dash-stats span { font-size: .78rem; color: #cfe2d6; text-transform: uppercase; letter-spacing: .06em; }

.tptc-resume { margin-top: 1.6rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.8rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem; box-shadow: var(--shadow); }
.tptc-resume-media { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--g-800); }
.tptc-resume-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tptc-resume-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; }
.tptc-resume-ph .tptc-icon { width: 64px; height: 64px; }
.tptc-resume-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }
.tptc-resume-play .tptc-icon { width: 64px; height: 64px; background: var(--amber); color: #1b1505; border-radius: 50%; padding: 12px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.5); }
.tptc-resume-copy { display: grid; gap: .7rem; padding-right: .6rem; }
.tptc-resume-copy h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }

.tptc-ring { flex: none; }
.tptc-enr-facts { list-style: none; margin: 0; padding: .7rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.tptc-enr-facts li { display: flex; gap: .4rem; align-items: center; }
.tptc-enr-facts .tptc-icon { color: var(--g-700); }
.tptc-next { font-size: .95rem; background: var(--g-50); border-radius: 10px; padding: .6rem .8rem; }
.tptc-enr h3 { margin-bottom: .3rem; }
.tptc-pill-amber { background: #fff3cf; color: #7a5600; }
.tptc-pill-grey { background: #eef1ef; color: var(--ink-2); }
.tptc-pill-bad { background: var(--bad-50); color: var(--bad); }

.tptc-cert-list, .tptc-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .9rem; }
.tptc-cert-card, .tptc-more-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none !important; color: var(--ink) !important; transition: border-color .12s ease, box-shadow .12s ease; }
.tptc-cert-card:hover, .tptc-more-item:hover { border-color: var(--g-700); box-shadow: var(--shadow); }
.tptc-cert-card-seal { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #3d2c00; }
.tptc-cert-card-go { font-family: var(--font-display); font-weight: 800; color: var(--g-800); white-space: nowrap; }

.tptc-dash-bottom { margin-top: 2.4rem; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.tptc-dash-bottom h3 { margin-bottom: .9rem; }
.tptc-dash-bottom .tptc-more { grid-template-columns: minmax(0, 1fr); }
.tptc-help { background: var(--g-50); border: 1px solid var(--g-100); border-radius: 18px; padding: 1.4rem; display: grid; gap: .5rem; justify-items: start; }
.tptc-help .tptc-status-icon { width: 56px; height: 56px; }
.tptc-help-phone { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: var(--g-800); }

@media (max-width: 960px) {
  .tptc-dash-hero, .tptc-resume, .tptc-dash-bottom { grid-template-columns: minmax(0, 1fr); }
  .tptc-dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tptc-enr-facts { grid-template-columns: minmax(0, 1fr); }
  .tptc-cert-list, .tptc-more { grid-template-columns: minmax(0, 1fr); }
}

/* Video speed / skip controls */
.tptc-vbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: -.4rem 0 1rem; }
.tptc-chip { font: inherit; font-size: .88rem; font-weight: 700; padding: .4em .8em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.tptc-chip:hover { border-color: var(--g-700); }
.tptc-chip.on { background: var(--g-800); border-color: var(--g-800); color: #fff; }
.tptc-vbar-label { margin-left: .6rem; font-size: .85rem; color: var(--dim); font-weight: 600; }
.tptc-vbar-note { flex-basis: 100%; font-size: .82rem; color: var(--dim); }

/* ---------- Site header and footer (dedicated training site) ---------- */
.tptc-site-head, .tptc-site-foot {
  --g-900: #0b3d28; --g-800: #0f5e3c; --g-100: #e4f0e8; --amber: #f2b320; --ink: #142019; --line: #dde5df;
  font-family: "Public Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}
.tptc-site-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.tptc-site-head { background: #fff; border-bottom: 1px solid var(--line); border-top: 4px solid var(--g-800); position: sticky; top: 0; z-index: 50; margin-block-start: 0 !important; }
.admin-bar .tptc-site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .tptc-site-head { top: 0; position: relative; } }
.tptc-site-head .tptc-site-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.tptc-site-brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Overpass", "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink) !important; text-decoration: none !important; margin: 0; letter-spacing: -.01em; }
.tptc-site-brand b { color: var(--g-800); font-weight: 900; }
.tptc-site-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--g-800); color: #fff; }
.tptc-site-nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.tptc-site-nav a { color: var(--ink) !important; text-decoration: none !important; font-weight: 600; font-size: .98rem; padding: 8px 12px; border-radius: 8px; }
.tptc-site-nav a:hover, .tptc-site-nav a:focus-visible { background: var(--g-100); color: var(--g-900) !important; }
.tptc-site-nav a[aria-current="page"] { color: var(--g-800) !important; box-shadow: inset 0 -3px 0 var(--amber); border-radius: 8px 8px 0 0; }
.tptc-site-nav a.tptc-site-call { background: var(--amber); color: #2b2100 !important; font-weight: 800; }
.tptc-site-nav a.tptc-site-call:hover { background: #d99a06; color: #1f1800 !important; }
@media (max-width: 640px) {
  .tptc-site-nav { width: 100%; justify-content: space-between; }
  .tptc-site-nav a { padding: 6px 8px; font-size: .92rem; }
}
.tptc-site-foot { background: var(--g-900); color: #d7ebdf; margin-top: 64px; padding: 48px 0 24px; }
.tptc-site-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .tptc-site-cols { grid-template-columns: 1fr; gap: 24px; } }
.tptc-site-foot .tptc-site-brand { color: #fff !important; }
.tptc-site-foot .tptc-site-brand b { color: var(--amber); }
.tptc-site-foot .tptc-site-mark { background: rgba(255,255,255,.12); }
.tptc-site-foot p { margin: 12px 0 0; max-width: 46ch; line-height: 1.55; }
.tptc-site-foot .tptc-site-dim { color: #9fc2ae; font-size: .92rem; }
.tptc-site-foot h2 { font-family: "Overpass", "Helvetica Neue", Arial, sans-serif; color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 12px; font-weight: 800; }
.tptc-site-foot a:not(.tptc-site-brand) { display: block; color: #d7ebdf !important; text-decoration: none !important; padding: 4px 0; }
.tptc-site-foot a:not(.tptc-site-brand):hover { color: #fff !important; text-decoration: underline !important; }
.tptc-site-legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px !important; font-size: .88rem; color: #9fc2ae; }
