/* Toprated design (Top Rated Traffic School): dark navy and bright green, driver-at-sunset photo hero, condensed uppercase headlines, laptop classroom mock and a fee breakdown card. */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900&family=Inter:wght@400;500;600;700&display=swap');

body.design-toprated {
    --ink: #070b11;
    --navy: #0b1018;
    --navy-soft: #101722;
    --surface: #111923;
    --surface-high: #16212d;
    --green: #19c765;
    --green-bright: #25dc75;
    --green-dark: #0c7f43;
    --white: #ffffff;
    --muted: #9ca9b8;
    --line: rgba(255, 255, 255, 0.1);
    --display: 'Barlow Condensed', Impact, sans-serif;
    --body: 'Inter', Arial, sans-serif;
    /* The court picker (main.css) in the card's green, with the buttons' corners */
    --ce-accent: #19c765;
    --ce-accent-text: #04130b;
    --ce-radius: 8px;
    min-width: 320px;
    margin: 0;
    padding: 0;
    background: var(--navy);
    color: var(--white);
    font: 400 16px/1.5 'Inter', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.design-toprated #page { box-sizing: border-box; width: calc(100% - 32px); max-width: 1024px; margin: 40px auto 56px; border-top: 4px solid var(--green); border-radius: 0 0 14px 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); color: #333333; font-size: 14px; color-scheme: light; }
.design-toprated.design-home #page { width: auto; max-width: none; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; font-size: inherit; color-scheme: dark; }
.design-toprated .BEF_Container { box-sizing: border-box; max-width: 100%; }
/* The home page's admin login ends the footer links (FooterInfo's liAdminLogin) and looks like one of them. */
.tp-footer .footer-admin .content { width: auto; }
.tp-footer ul#affiliate-links { display: block; margin: 0; padding: 0; border: 0; list-style: none; }
.tp-footer ul#affiliate-links li { display: block; padding: 0; font-weight: inherit; text-transform: none; }
.tp-footer ul#affiliate-links li:first-child { display: none; }
.tp-footer ul#affiliate-links li.admin-login { float: none; padding: 0; background: none; }
.tp-footer ul#affiliate-links li.admin-login a { display: block; color: #8793a2; font: 600 11px/1.5 'Inter', Arial, sans-serif; text-transform: uppercase; transition: color 180ms ease; cursor: pointer; text-decoration: none; }
.tp-footer ul#affiliate-links li.admin-login a:hover { color: var(--green); }

/* Tailwind-preflight-style reset for the design's own markup (not #page content or the cost estimator) */
:where(.tp-header, .tp-home, .tp-footer) :where(*:not(.price-box, .price-box *)), :where(.tp-header, .tp-home, .tp-footer) :where(*:not(.price-box, .price-box *))::before, :where(.tp-header, .tp-home, .tp-footer) :where(*:not(.price-box, .price-box *))::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
:where(.price-box, .price-box *) { box-sizing: content-box; }
:where(.tp-header, .tp-home, .tp-footer) p { margin: 0; color: inherit; font: inherit; }
:where(.tp-header, .tp-home, .tp-footer) :is(h1, h2, h3, h4, h5, h6) { margin: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; text-shadow: none; }
:where(.tp-header, .tp-home, .tp-footer) :is(ul, ol) { list-style: none; }
:where(.tp-header, .tp-home, .tp-footer) a, :where(.tp-header, .tp-home, .tp-footer) a:hover { color: inherit; text-decoration: none; }
:where(.tp-header, .tp-home, .tp-footer) :where(img, svg) { display: block; max-width: 100%; }
:where(.tp-header, .tp-home, .tp-footer) button { background: none; color: inherit; font: inherit; }

/* Shared */
.tp-home { min-width: 320px; overflow-x: clip; background: var(--navy); }
.tp-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 8px; font-family: var(--display); font-weight: 800; letter-spacing: 0.08em; line-height: 1; text-transform: uppercase; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.tp-btn:hover { transform: translateY(-2px); }
.tp-btn svg, .tp-text-link svg, .tp-resource-links svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.tp-btn-solid, .tp-btn-solid:hover { background: var(--green); color: #04130b; box-shadow: 0 12px 32px rgba(25, 199, 101, 0.15); }
.tp-btn-solid:hover { background: var(--green-bright); box-shadow: 0 14px 36px rgba(25, 199, 101, 0.25); }
.tp-btn-outline, .tp-btn-outline:hover { border-color: rgba(25, 199, 101, 0.55); background: rgba(4, 12, 9, 0.32); color: var(--green); }
.tp-btn-outline:hover { border-color: var(--green); background: rgba(25, 199, 101, 0.08); }
.tp-btn-small { min-height: 34px; padding: 0 15px; border-radius: 7px; font-size: 10px; }
.tp-btn-large { min-height: 58px; padding: 0 29px; font-size: 14px; }
.tp-btn-wide { width: 100%; min-height: 55px; font-size: 13px; }
.tp-eyebrow { margin: 0 0 20px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }

/* Header */
.tp-header { position: relative; z-index: 50; font: 400 16px/1.5 'Inter', Arial, sans-serif; }
.tp-utility { position: relative; z-index: 50; height: 30px; border-bottom: 1px solid rgba(25, 199, 101, 0.25); background: #080d14; color: #748295; font-size: 10px; }
.tp-utility-inner { display: flex; align-items: center; height: 100%; gap: 12px; }
.tp-utility-inner > span { width: 1px; height: 11px; background: #37414d; }
.tp-phone-links { margin-left: auto; font-size: 0; }
.tp-phone-links span { font-size: 10px; }
.tp-phone-links span + span { margin-left: 25px; }
.tp-phone-links strong { font-weight: inherit; }
.tp-site-header { position: relative; z-index: 50; height: 74px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); background: rgba(7, 11, 17, 0.98); }
.tp-header-inner { display: flex; align-items: center; height: 100%; gap: 20px; }
.tp-wordmark { display: block; width: 250px; flex: none; }
.tp-wordmark img { width: 100%; height: 62px; object-fit: contain; object-position: left center; }
.tp-menu { flex: 1; display: flex; justify-content: center; }
.tp-nav { display: flex; justify-content: center; gap: 7px; }
.tp-nav a { display: block; padding: 10px 12px; border-radius: 5px; color: #8995a5; font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; transition: color 180ms ease, background 180ms ease; }
.tp-nav a:hover, .design-home .tp-nav li:first-child a { color: var(--green); }
.design-home .tp-nav li:first-child a { background: rgba(25, 199, 101, 0.08); }
.tp-header-actions { display: flex; justify-content: flex-end; gap: 8px; flex: none; }
.tp-header-actions .tp-btn { white-space: nowrap; }
.tp-menu-button, .tp-mobile-login, .tp-mobile-register { display: none; }

/* Hero */
.tp-hero { position: relative; min-height: min(785px, calc(100vh - 104px)); isolation: isolate; display: flex; align-items: center; overflow: hidden; }
.tp-hero-photo, .tp-hero-shade, .tp-hero-glow { position: absolute; inset: 0; z-index: -3; }
.tp-hero-photo { background-image: url(img/driver-sunset.jpg); background-position: center 53%; background-size: cover; filter: saturate(0.95) contrast(1.04) brightness(1.06); transform: scale(1.015); }
.tp-hero-shade { z-index: -2; background: linear-gradient(180deg, rgba(7, 11, 17, 0.34) 0%, rgba(7, 11, 17, 0.12) 42%, rgba(7, 11, 17, 0.65) 100%), linear-gradient(90deg, rgba(4, 9, 15, 0.24) 0%, rgba(8, 14, 23, 0.14) 55%, rgba(3, 8, 14, 0.3) 100%); }
.tp-hero-glow { z-index: -1; background: radial-gradient(ellipse 36% 52% at 50% 55%, rgba(5, 9, 14, 0.56) 0%, rgba(5, 9, 14, 0.3) 58%, transparent 100%); }
.tp-hero-content { margin-top: 54px; text-align: center; }
.tp-home .tp-hero .tp-eyebrow { opacity: 0; margin-bottom: 14px; }
.tp-home h1, .tp-home .tp-section h2, .tp-home .tp-final-cta h2 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; text-transform: uppercase; }
.tp-home h1 { font-size: clamp(58px, 6.2vw, 90px); line-height: 0.82; text-shadow: 0 5px 30px rgba(0, 0, 0, 0.32); }
.tp-home h1 span { display: inline-block; margin-top: 15px; color: var(--green); }
.tp-hero-copy { max-width: 600px; margin: 27px auto 0; color: #bec7d1; font-size: 15px; line-height: 1.75; }
/* The two register buttons side by side, with the login link centered below them. */
/* As Zach has it: Register and Student Login, with the Spanish registration as a line below them */
.tp-hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }
.tp-hero-actions .tp-btn:first-child { min-width: 285px; }
.tp-hero-actions .tp-btn-login { min-width: 205px; text-transform: none; }
.tp-spanish-link { margin: 20px 0 0; color: #8793a2; font-size: 11px; }
.tp-spanish-link a { color: #b9c2cc; text-decoration: underline; text-underline-offset: 3px; }
.tp-spanish-link a:hover { color: var(--green); }
.tp-scroll-cue { position: absolute; bottom: 25px; left: 50%; display: grid; width: 24px; height: 38px; transform: translateX(-50%); place-items: start center; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 20px; }
.tp-scroll-cue span { width: 3px; height: 7px; margin-top: 7px; border-radius: 2px; background: var(--green); animation: tp-scroll 1.8s infinite; }
@keyframes tp-scroll {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(9px); }
}

/* Sections */
.tp-section { padding: 96px 0; }
.tp-section-heading { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.tp-home .tp-section h2, .tp-home .tp-final-cta h2 { font-size: clamp(43px, 4.5vw, 65px); line-height: 0.96; }
.tp-section-heading > p:last-child, .tp-benefit-card p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.tp-section-heading > p:last-child { margin: 18px 0 0; }

/* Benefits */
.tp-benefits { position: relative; background: #101827; }
.tp-benefits::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(25, 199, 101, 0.38), transparent); content: ''; }
.tp-benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1100px; margin: 0 auto; gap: 18px; }
.tp-benefit-card { min-height: 210px; padding: 26px 24px; border: 1px solid #26303c; border-top: 3px solid #19c765; border-radius: 14px; background: #171e26; }
.tp-benefit-icon { display: grid; width: 40px; height: 40px; margin-bottom: 20px; place-items: center; border-radius: 10px; background: rgba(25, 199, 101, 0.1); color: #19c765; }
.tp-benefit-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.tp-home .tp-benefit-card h3 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.5; letter-spacing: 0.01em; text-transform: uppercase; }
.tp-benefit-card p { margin: 10px 0 0; font-size: 13px; line-height: 1.6; }

/* How it works */
.tp-process { position: relative; overflow: hidden; background: #090e15; }
.tp-process::after { position: absolute; right: -180px; bottom: -260px; width: 600px; height: 600px; border: 1px solid rgba(25, 199, 101, 0.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(25, 199, 101, 0.018), 0 0 0 140px rgba(25, 199, 101, 0.014); content: ''; }
.tp-process .tp-container { position: relative; z-index: 1; }
.tp-process-road { position: relative; width: calc(66.666% + 14px); height: 3px; margin: 0 auto -17px; overflow: hidden; background: #2a3541; }
.tp-process-road::after { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--green) 0 32px, transparent 32px 46px); content: ''; opacity: 0.8; }
.tp-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 65px; }
.tp-step { position: relative; text-align: center; }
.tp-step-number { display: block; margin-bottom: 15px; color: rgba(255, 255, 255, 0.16); font-family: var(--display); font-size: 68px; font-weight: 800; line-height: 1; }
.tp-step-marker { position: relative; z-index: 2; display: block; width: 30px; height: 30px; margin: 0 auto 25px; border: 7px solid #090e15; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green), 0 0 25px rgba(25, 199, 101, 0.38); }
.tp-home .tp-process-grid h3 { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1.5; letter-spacing: 0.02em; text-transform: uppercase; }
.tp-process-grid p { max-width: 315px; margin: 13px auto 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Online classroom */
.tp-classroom { position: relative; background: radial-gradient(circle at 80% 50%, rgba(25, 199, 101, 0.09), transparent 28%), #101827; }
.tp-classroom-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; align-items: center; gap: 90px; }
.tp-home .tp-classroom-copy h2 { margin: 0; max-width: 480px; font-size: clamp(48px, 5vw, 72px); line-height: 0.92; }
.tp-classroom-copy > p:not(.tp-eyebrow) { margin: 25px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.tp-laptop-scene { position: relative; padding: 30px 22px 38px; perspective: 1200px; }
.tp-laptop-screen { position: relative; z-index: 2; aspect-ratio: 16 / 10; padding: 12px; transform: rotateY(-4deg) rotateX(1deg); border: 2px solid #46515d; border-radius: 18px 18px 8px 8px; background: linear-gradient(145deg, #313c47, #10151b 55%); box-shadow: 35px 35px 70px rgba(0, 0, 0, 0.42), -15px 5px 45px rgba(25, 199, 101, 0.08); }
.tp-laptop-screen::before { position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; transform: translateX(-50%); border-radius: 50%; background: #020405; content: ''; }
.tp-course-ui { height: 100%; overflow: hidden; border-radius: 8px; background: #0d131c; }
.tp-course-topbar { display: grid; grid-template-columns: 28px 1fr 45px; align-items: center; height: 44px; padding: 0 13px; gap: 10px; border-bottom: 1px solid #26303a; color: #cbd3dc; font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tp-course-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 6px; background: var(--green); color: #05120a; font-family: var(--display); font-size: 12px; font-weight: 900; }
.tp-course-topbar i { height: 6px; border-radius: 4px; background: #2a3540; }
.tp-course-body { display: grid; grid-template-columns: 54px 1fr; height: calc(100% - 44px); }
.tp-course-sidebar { display: flex; flex-direction: column; align-items: center; padding-top: 20px; gap: 19px; border-right: 1px solid #202a34; background: #101721; }
.tp-course-sidebar span { width: 9px; height: 9px; border: 2px solid #41505f; border-radius: 50%; }
.tp-course-sidebar .tp-complete { border-color: var(--green); background: var(--green); }
.tp-course-sidebar .tp-active { border-color: var(--green); box-shadow: 0 0 0 5px rgba(25, 199, 101, 0.12); }
.tp-course-content { padding: 20px 22px; }
.tp-course-content > p { margin: 0 0 13px; color: #e8edf2; font-family: var(--display); font-size: 16px; font-weight: 700; text-transform: uppercase; }
.tp-course-video { aspect-ratio: 16 / 8.5; overflow: hidden; border: 1px solid #33404d; border-radius: 8px; box-shadow: 0 12px 25px rgba(0, 0, 0, 0.28); }
.tp-road-preview { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(rgba(3, 10, 8, 0.42), rgba(3, 10, 8, 0.64)), url(img/driver-sunset.jpg) center 65% / cover; }
.tp-play-button { display: grid; width: 48px; height: 48px; padding-left: 3px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; background: var(--green); color: #06140b; font-size: 14px; box-shadow: 0 8px 28px rgba(25, 199, 101, 0.28); }
.tp-course-meta { display: grid; grid-template-columns: 1fr 0.5fr 0.35fr; margin-top: 16px; gap: 12px; }
.tp-course-meta span { height: 6px; border-radius: 5px; background: #283540; }
.tp-course-meta span:first-child { background: linear-gradient(90deg, var(--green) 68%, #283540 68%); }
.tp-laptop-base { position: relative; z-index: 1; width: 108%; height: 22px; margin: -3px 0 0 -4%; transform: rotateY(-4deg); border-radius: 3px 3px 16px 16px; background: linear-gradient(180deg, #78838d 0%, #303b45 35%, #141a20 100%); box-shadow: 0 24px 25px rgba(0, 0, 0, 0.32); }
.tp-laptop-base::after { position: absolute; top: 0; left: 42%; width: 16%; height: 6px; border-radius: 0 0 7px 7px; background: #1b232a; content: ''; }
.tp-concept-note { margin: 23px 0 0; color: #687687; font-size: 9px; letter-spacing: 0.1em; text-align: center; text-transform: uppercase; }

/* Pricing and the cost estimator */
.tp-pricing { background: #0a0e14; }
.tp-pricing-layout { display: block; max-width: 720px; }
.tp-pricing-heading { margin-bottom: 38px; }
.tp-price-card { overflow: hidden; padding: 0; border: 1px solid rgba(25, 199, 101, 0.32); border-radius: 14px; background: #171e26; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); }
.tp-price-card-label { margin: 0; padding: 17px 24px; border-bottom: 1px solid rgba(25, 199, 101, 0.24); background: rgba(7, 41, 28, 0.52); color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; }
.tp-price-card .price-box-title { display: none; }
.tp-price-card .price-box table { border-collapse: collapse; border-spacing: 0; }
.tp-price-card .price-box table[width] > tbody > tr > td { padding: 0; }
/* Each fee on one line, then the court picker, then the court's fee and the total */
.tp-price-card .tblCostEstimator, .tp-price-card .tblCostEstimator > tbody { display: block; width: 100%; }
.tp-price-card .tblCostEstimator > tbody { display: grid; grid-template-columns: minmax(max-content, 1fr) auto; }
.tp-price-card .tblCostEstimator tr { display: contents; }
.tp-price-card .tblCostEstimator th, .tp-price-card .tblCostEstimator td { display: flex; flex-direction: column; justify-content: center; min-height: 31px; padding: 14px 24px; border: 0; border-bottom: 1px solid #28323e; color: #eef2f6; font: 600 13px/1.5 'Inter', Arial, sans-serif; text-align: left; }
.tp-price-card .tblCostEstimator td { align-items: flex-end; padding-left: 20px; color: var(--white); font: 600 18px/1.5 'Barlow Condensed', Impact, sans-serif; text-align: right; }
.tp-price-card .price-box table[width] td.tblCostEstimatorSelectCourt { padding: 20px 24px 12px; border: 0; color: var(--green); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.tp-price-card .tblCostEstimatorSelectCourt span { color: var(--green) !important; font-weight: 700 !important; }
.tp-price-card .ceCourtPicker { margin: 0 24px 20px; }
.tp-price-card .RadComboBox, .tp-price-card .RadComboBox .rcbInput { font-family: 'Inter', Arial, sans-serif; }
.tp-price-card .tblCostEstimator .amtDue { min-height: 42px; border-top: 1px solid #28323e; background: rgba(25, 199, 101, 0.055); }
.tp-price-card .tblCostEstimator td.amtDue { color: var(--green); font-size: 26px; line-height: 1.2; }
/* When a changing court fee's totals don't fit beside their label, they take the row under it (ce-stacked, main.css) */
.tp-price-card .ce-stacked .tblCostEstimator td.amtDue:has(br) { min-height: 0; padding-top: 4px; border-top: 0; }
.tp-price-note { margin: 14px 0 0; color: #8fa0b4; font-size: 11px; line-height: 1.65; text-align: center; }
.tp-pricing-button { margin-top: 24px; }

/* Eligibility and requirements */
.tp-text-link, .tp-text-link:hover { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 5px; border-bottom: 1px solid rgba(25, 199, 101, 0.4); color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.tp-resources { background: #101827; }
.tp-resources-inner { max-width: 820px; }
.tp-resource-heading { margin-bottom: 42px; }
.tp-resource-links { display: grid; gap: 12px; }
.tp-resource-links a, .tp-resource-links a:hover { display: grid; grid-template-columns: 46px 1fr 20px; align-items: center; min-height: 86px; padding: 14px 20px; gap: 18px; border: 1px solid #27313c; border-radius: 13px; background: #171e26; color: #d9dee5; transition: border-color 180ms ease, transform 180ms ease; }
.tp-resource-links a:hover { transform: translateY(-2px); border-color: #19c765; }
.tp-resource-icon { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid color-mix(in srgb, #19c765 28%, transparent); border-radius: 12px; background: rgba(25, 199, 101, 0.09); color: #19c765; }
.tp-resource-links .tp-resource-icon svg { width: 21px; height: 21px; stroke-width: 1.7; }
.tp-resource-copy { display: flex; flex-direction: column; gap: 4px; }
.tp-resource-copy strong { color: var(--white); font-size: 13px; font-weight: 700; }
.tp-resource-copy small { color: #8796a9; font-size: 11px; line-height: 1.45; }
.tp-resource-links > a > svg { color: #19c765; opacity: 0.55; }

/* FAQs */
.tp-faq { background: #090e15; }
.tp-faq-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; align-items: start; gap: 95px; }
.tp-faq-intro { position: sticky; top: 35px; }
.tp-faq-intro > p:not(.tp-eyebrow) { margin: 23px 0 27px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.tp-faq-list { border-top: 1px solid #2a343f; }
.tp-faq-list details { border-bottom: 1px solid #2a343f; }
.tp-faq-list summary { position: relative; padding: 24px 52px 24px 0; color: #eef2f5; font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.5; letter-spacing: 0.015em; list-style: none; cursor: pointer; }
.tp-faq-list summary::-webkit-details-marker { display: none; }
.tp-faq-list summary::before, .tp-faq-list summary::after { position: absolute; top: 50%; right: 9px; width: 16px; height: 2px; background: var(--green); content: ''; transition: transform 180ms ease; }
.tp-faq-list summary::after { transform: rotate(90deg); }
.tp-faq-list details[open]:not(.faq-closing) summary::after { transform: rotate(0); }
.tp-faq-list details > p { margin: -7px 50px 23px 0; color: #94a1b1; font-size: 12px; line-height: 1.75; }
.tp-faq-list details a, .tp-faq-list details a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* Final call to action */
.tp-final-cta { position: relative; min-height: 475px; display: flex; align-items: center; text-align: center; isolation: isolate; }
.tp-final-cta-photo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(6, 11, 17, 0.86), rgba(6, 11, 17, 0.91)), url(img/driver-sunset.jpg) center 69% / cover; filter: saturate(0.75); }
.tp-home .tp-final-cta h2 { font-size: clamp(58px, 6.8vw, 90px); line-height: 0.96; }
.tp-final-cta-content > p:not(.tp-eyebrow) { max-width: 620px; margin: 20px auto 0; color: #aeb9c6; font-size: 14px; line-height: 1.7; }
.tp-final-cta-actions { display: flex; justify-content: center; gap: 13px; margin-top: 32px; }
.tp-final-cta-actions .tp-btn { min-width: 190px; }

/* Footer */
.tp-footer { border-top: 1px solid rgba(25, 199, 101, 0.16); background: #070b10; color: #8793a2; font: 400 16px/1.5 'Inter', Arial, sans-serif; }
/* Zach's logo, link row and contact column. The home page's admin login ends the link row, and the
   two are centred together between the logo and the contact column. */
.tp-footer-grid { display: grid; grid-template-areas: "logo . nav admin . contact" "details details details details details spanish"; grid-template-columns: 260px 1fr auto auto 1fr 200px; align-items: center; }
.tp-footer-logo { grid-area: logo; padding: 40px 0; }
.tp-footer-logo img { width: 230px; height: auto; }
.tp-footer-nav { grid-area: nav; display: flex; justify-content: center; flex-wrap: wrap; gap: 13px 22px; }
/* FooterInfo's list holds only the home page's admin login */
.tp-footer .footer-links { grid-area: admin; display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; }
.tp-footer .footer-links > li { margin: 0 0 0 22px; padding: 0; font-size: 11px; line-height: 1.5; list-style: none; }
.tp-footer-nav a, .tp-footer-nav a:hover { color: #8793a2; font-size: 11px; font-weight: 600; line-height: 1.5; text-decoration: none; text-transform: uppercase; transition: color 180ms ease; }
.tp-footer-nav a:hover, .tp-footer-contact a:hover, .tp-footer .footer-details a:hover, .tp-footer-spanish:hover { color: var(--green); }
.tp-footer-contact { grid-area: contact; display: flex; flex-direction: column; align-items: flex-end; min-height: 175px; justify-content: center; gap: 6px; }
.tp-footer-contact > span { color: #687687; font-size: 9px; text-transform: uppercase; }
.tp-footer-phone { font-size: 0; text-align: right; }
.tp-footer-phone span { display: block; color: #bbc3cd; font: 600 16px/1.5 'Barlow Condensed', Impact, sans-serif; }
.tp-footer-phone span + span { margin-top: 6px; }
.tp-footer-phone strong { font-weight: inherit; }
.tp-footer-contact > div { display: flex; margin-top: 5px; gap: 13px; }
.tp-footer-contact > div a, .tp-footer-contact > div a:hover { color: var(--green); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
.tp-footer .footer-details { grid-area: details; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 22px 0; border-top: 1px solid var(--line); color: #536171; font: 400 9px/1.5 'Inter', Arial, sans-serif; text-transform: uppercase; }
.tp-footer .footer-details a { color: inherit; text-decoration: none; }
.tp-footer-spanish, .tp-footer-spanish:hover { grid-area: spanish; align-self: stretch; padding: 22px 0; border-top: 1px solid var(--line); color: #536171; font-size: 9px; line-height: 1.5; text-align: right; text-transform: uppercase; }

/* Header: tighter links below 1240px, the menu button once the six links and the button no longer fit */
@media (max-width: 1240px) {
    .tp-wordmark { width: 215px; }
    .tp-nav { gap: 1px; }
    .tp-nav a { padding-inline: 8px; font-size: 9px; }
}
@media (max-width: 1080px) {
    .tp-header-actions { display: none; }
    .tp-header-inner { justify-content: space-between; }
    .tp-menu-button { display: flex; flex-direction: column; justify-content: center; width: 42px; height: 42px; padding: 0 10px; gap: 5px; border: 1px solid rgba(25, 199, 101, 0.35); border-radius: 7px; background: transparent; cursor: pointer; }
    .tp-menu-button span { display: block; width: 100%; height: 1px; background: var(--green); transition: transform 180ms ease; }
    .tp-menu { position: absolute; top: 74px; right: 0; left: 0; display: grid; justify-content: stretch; visibility: hidden; padding: 14px 24px 24px; transform: translateY(-10px); opacity: 0; border-top: 1px solid var(--line); background: rgba(7, 11, 17, 0.99); transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease; }
    .tp-menu-open .tp-menu { visibility: visible; transform: translateY(0); opacity: 1; }
    .tp-nav { display: grid; justify-content: stretch; gap: 0; }
    .tp-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: #a9b3c0; font-size: 11px; letter-spacing: 0.08em; white-space: normal; }
    .design-home .tp-nav li:first-child a { background: none; }
    .tp-mobile-login, .tp-mobile-login:hover { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); color: #a9b3c0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
    .tp-mobile-register, .tp-mobile-register:hover { display: block; margin-top: 14px; padding: 16px; border-radius: 7px; background: var(--green); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
}

/* Responsive page */
@media (max-width: 1080px) {
    .tp-classroom-layout { gap: 45px; }
    /* The links wrap here, so the admin login goes centred under them */
    .tp-footer-grid { grid-template-areas: "logo . . . contact" "logo . nav . contact" "logo . admin . contact" "logo . . . contact" "details details details details spanish"; grid-template-columns: 260px 1fr auto 1fr 200px; grid-template-rows: 1fr auto auto 1fr auto; }
    .tp-footer .footer-links > li { margin: 13px 0 0; }
}
@media (max-width: 820px) {
    .tp-utility { display: none; }
    .tp-site-header { height: 70px; }
    .tp-menu { top: 70px; }
    .tp-hero { min-height: calc(100svh - 70px); }
    .tp-hero-content { margin-top: 0; }
    .tp-home h1 { font-size: clamp(55px, 12.5vw, 78px); }
    .tp-benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .tp-benefit-card { padding: 28px; }
    .tp-process-grid { gap: 30px; }
    .tp-classroom-layout, .tp-faq-layout { grid-template-columns: 1fr; gap: 55px; }
    .tp-classroom-copy { max-width: 620px; }
    .tp-laptop-scene { width: min(100%, 690px); margin: auto; }
    .tp-faq-intro { position: static; max-width: 620px; }
    .tp-footer-grid { grid-template-areas: "logo contact" "nav nav" "admin admin" "details details" "spanish spanish"; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .tp-footer-logo { padding-bottom: 0; }
    .tp-footer-contact { min-height: 0; padding-top: 40px; }
    .tp-footer-nav { justify-content: flex-start; margin: 0; padding-top: 28px; }
    .tp-footer .footer-links { justify-content: flex-start; margin: 0; padding-bottom: 28px; }
    .tp-footer .footer-links > li { margin: 13px 0 0; }
    .tp-footer-spanish, .tp-footer-spanish:hover { padding-top: 0; border-top: 0; text-align: left; }
}
@media (max-width: 620px) {
    .tp-container { width: min(100% - 36px, 1180px); }
    .tp-wordmark { width: 210px; }
    .tp-wordmark img { height: 56px; }
    .tp-hero { min-height: 770px; align-items: flex-start; }
    .tp-hero-photo { background-position: 48% center; filter: saturate(0.9) contrast(1.04) brightness(0.95); }
    .tp-hero-shade { background: linear-gradient(180deg, rgba(7, 11, 17, 0.38) 0%, rgba(7, 11, 17, 0.2) 38%, rgba(7, 11, 17, 0.72) 100%), rgba(5, 9, 14, 0.14); }
    .tp-hero-content { padding-top: 106px; padding-bottom: 60px; }
    .tp-home .tp-hero .tp-eyebrow { opacity: 1; font-size: 9px; }
    .tp-home h1 { font-size: clamp(51px, 16vw, 67px); line-height: 0.84; }
    .tp-home h1 span { margin-top: 13px; }
    .tp-hero-copy { max-width: 380px; margin-top: 24px; font-size: 13px; line-height: 1.65; }
    .tp-hero-actions { flex-direction: column; width: min(100%, 360px); margin-inline: auto; gap: 10px; }
    .tp-hero-actions .tp-btn { width: 100%; min-width: 0 !important; }
    .tp-btn-large { min-height: 54px; font-size: 12px; }
    .tp-scroll-cue { display: none; }
    .tp-section { padding: 80px 0; }
    .tp-section-heading { margin-bottom: 38px; }
    .tp-home .tp-section h2 { font-size: 43px; }
    .tp-benefit-grid { grid-template-columns: 1fr; }
    .tp-benefit-card { min-height: 0; padding: 28px; }
    .tp-process-road { position: absolute; top: 182px; bottom: 10px; left: 32px; width: 3px; height: auto; margin: 0; }
    .tp-process-road::after { background: repeating-linear-gradient(180deg, var(--green) 0 25px, transparent 25px 38px); }
    .tp-process-grid { grid-template-columns: 1fr; gap: 34px; }
    .tp-step { display: grid; grid-template-columns: 64px 1fr; text-align: left; }
    .tp-step-number { grid-column: 2; margin: 0 0 -42px; font-size: 52px; }
    .tp-step-marker { grid-column: 1; grid-row: 1 / 4; margin: 14px auto 0; }
    .tp-process-grid h3, .tp-process-grid p { grid-column: 2; }
    .tp-process-grid p { max-width: none; margin-left: 0; }
    .tp-home .tp-classroom-copy h2 { font-size: 50px; }
    .tp-laptop-scene { padding-inline: 0; }
    .tp-course-content { padding: 14px; }
    .tp-course-sidebar { display: none; }
    .tp-course-body { grid-template-columns: 1fr; }
    .tp-price-card .tblCostEstimator th, .tp-price-card .tblCostEstimator td, .tp-price-card-label { padding-inline: 20px; }
    .tp-price-card .price-box table[width] td.tblCostEstimatorSelectCourt { padding-inline: 20px; }
    .tp-price-card .ceCourtPicker { margin-inline: 20px; }
    .tp-resource-links a, .tp-resource-links a:hover { grid-template-columns: 42px 1fr 17px; padding: 13px 15px; gap: 13px; }
    .tp-resource-icon { width: 42px; height: 42px; }
    .tp-resource-copy small { font-size: 10px; }
    .tp-faq-list summary { padding-block: 20px; font-size: 18px; }
    .tp-final-cta-actions { flex-direction: column; width: min(100%, 330px); margin-inline: auto; }
    .tp-final-cta { min-height: 400px; }
    .tp-home .tp-final-cta h2 { font-size: 56px; }
    .tp-footer-grid { grid-template-areas: "logo" "nav" "admin" "contact" "details" "spanish"; grid-template-columns: 1fr; text-align: center; }
    .tp-footer-logo { padding-top: 45px; }
    .tp-footer-logo img { width: 240px; margin: auto; }
    .tp-footer-contact { align-items: center; padding-top: 32px; }
    .tp-footer-phone { text-align: center; }
    .tp-footer-nav, .tp-footer .footer-links { justify-content: center; }
    .tp-footer-nav { padding-top: 32px; }
    .tp-footer .footer-links { padding-bottom: 0; }
    .tp-footer .footer-details { flex-direction: column; align-items: center; gap: 6px; margin-top: 32px; }
    .tp-footer-spanish, .tp-footer-spanish:hover { padding-bottom: 32px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    body.design-toprated *, body.design-toprated *::before, body.design-toprated *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
