/* Officer Test Prep Enhancements — front end.
   Override any --otpe-* variable in your theme's Additional CSS to match brand colors. */
.otpe {
	--otpe-navy: #0b1f3a;
	--otpe-ink: #14213d;
	--otpe-muted: #5b6577;
	--otpe-line: #dfe3ea;
	--otpe-bg: #ffffff;
	--otpe-soft: #f4f6f9;
	--otpe-accent: #018af7;
	--otpe-accent-ink: #ffffff;
	--otpe-good: #1f7a4d;
	--otpe-warn: #b7791f;
	--otpe-bad: #b42318;
	--otpe-radius: 12px;
	color: var(--otpe-ink);
	font: inherit;
	line-height: 1.55;
}
.otpe *, .otpe *::before, .otpe *::after { box-sizing: border-box; }
.otpe h2, .otpe h3 { color: var(--otpe-navy); line-height: 1.2; }
.otpe-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.otpe-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.otpe-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--otpe-accent); margin: 0 0 .5rem; }
.otpe-muted, .otpe-fine { color: var(--otpe-muted); }
.otpe-fine { font-size: .875rem; }
.otpe-tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--otpe-soft); color: var(--otpe-navy); margin: 0; }

/* Buttons */
.otpe-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.25rem; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s ease; }
.otpe-btn:active { transform: translateY(1px); }
.otpe-btn:disabled { opacity: .45; cursor: not-allowed; }
.otpe-btn:focus-visible { outline: 3px solid var(--otpe-accent); outline-offset: 2px; }
.otpe-btn--primary { background: var(--otpe-navy); color: #fff !important; }
.otpe-btn--primary:hover { background: #142f57; }
.otpe-btn--ghost { background: transparent; color: var(--otpe-navy) !important; border-color: var(--otpe-line); }
.otpe-btn--ghost:hover { border-color: var(--otpe-navy); }
.otpe-btn--choice { background: var(--otpe-bg); color: var(--otpe-navy) !important; border-color: var(--otpe-line); justify-content: flex-start; text-align: left; padding: 1rem 1.25rem; }
.otpe-btn--choice:hover { border-color: var(--otpe-accent); background: #fffaf0; }
.otpe-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.otpe-actions--split { justify-content: space-between; }

/* Catalog */
.otpe-catalog__heading { margin-bottom: 1.25rem; }
.otpe-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .otpe-grid--2, .otpe-grid--3, .otpe-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .otpe-grid--3 { grid-template-columns: repeat(3, 1fr); } .otpe-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.otpe-card { position: relative; display: flex; flex-direction: column; background: var(--otpe-bg); border: 1px solid var(--otpe-line); border-radius: var(--otpe-radius); padding: 1.5rem; }
.otpe-card--featured { border: 2px solid var(--otpe-accent); box-shadow: 0 10px 30px rgba(11,31,58,.08); }
.otpe-card__badge { position: absolute; top: -12px; left: 1.5rem; background: var(--otpe-accent); color: var(--otpe-accent-ink); font-size: .75rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.otpe-card__eyebrow { font-size: .75rem; font-weight: 700; color: var(--otpe-muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .35rem; }
.otpe-card__title { font-size: 1.2rem; margin: 0 0 .5rem; }
.otpe-card__desc { color: var(--otpe-muted); margin: 0 0 1rem; }
.otpe-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-bottom: .35rem; }
.otpe-card__amount { font-size: 2rem; font-weight: 800; color: var(--otpe-navy); letter-spacing: -.02em; }
.otpe-card__amount--quote { font-size: 1.25rem; }
.otpe-card__compare { color: var(--otpe-muted); font-size: 1rem; }
.otpe-card__note { color: var(--otpe-muted); font-size: .85rem; width: 100%; }
.otpe-card__meta { font-size: .9rem; font-weight: 600; color: var(--otpe-navy); margin: .25rem 0 1rem; }
.otpe-card__features { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.otpe-card__features li { position: relative; padding: .3rem 0 .3rem 1.6rem; border-top: 1px solid var(--otpe-soft); }
.otpe-card__features li::before { content: ""; position: absolute; left: 0; top: .72rem; width: .9rem; height: .5rem; border-left: 2px solid var(--otpe-good); border-bottom: 2px solid var(--otpe-good); transform: rotate(-45deg); }
.otpe-card__cta { margin-top: auto; width: 100%; }

/* Empty state + lead form */
.otpe-empty { background: var(--otpe-soft); border-radius: var(--otpe-radius); padding: 1.5rem; }
.otpe-empty p { margin-top: 0; }
.otpe-lead__row { display: flex; flex-wrap: wrap; gap: .6rem; }
.otpe-lead input[type="text"], .otpe-lead input[type="email"] { flex: 1 1 180px; min-width: 0; padding: .75rem .9rem; border: 1px solid var(--otpe-line); border-radius: 8px; font: inherit; background: #fff; color: var(--otpe-ink); }
.otpe-lead input:focus { outline: 2px solid var(--otpe-accent); outline-offset: 1px; border-color: transparent; }
.otpe-lead__fine { font-size: .8rem; color: var(--otpe-muted); margin: .5rem 0 0; }
.otpe-lead__msg { margin: .5rem 0 0; font-weight: 600; min-height: 1.2em; }
.otpe-lead__msg.is-success { color: var(--otpe-good); }
.otpe-lead__msg.is-error { color: var(--otpe-bad); }

/* Diagnostic */
.otpe-diag__lead { font-size: 1.05rem; }
.otpe-diag__choices { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.otpe-panel { background: var(--otpe-bg); border: 1px solid var(--otpe-line); border-radius: var(--otpe-radius); padding: 1.5rem; margin: 0 0 1.25rem; }
.otpe-panel__title { font-size: 1.25rem; margin: 0 0 .5rem; }
.otpe-alert { background: #fff4f2; color: var(--otpe-bad); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.otpe-progress { height: 6px; background: var(--otpe-soft); border-radius: 999px; overflow: hidden; margin-bottom: .75rem; }
.otpe-progress__bar { height: 100%; background: var(--otpe-accent); transition: width .2s ease; }
.otpe-qmeta { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-size: .875rem; color: var(--otpe-muted); margin-bottom: .75rem; }
.otpe-question { margin: 0; }
.otpe-question__stem { font-size: 1.1rem; font-weight: 600; color: var(--otpe-navy); margin-bottom: 1rem; padding: 0; float: left; width: 100%; }
.otpe-option { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem; border: 1px solid var(--otpe-line); border-radius: 10px; margin-bottom: .6rem; cursor: pointer; clear: both; transition: border-color .12s ease, background .12s ease; }
.otpe-option:hover { border-color: var(--otpe-navy); }
.otpe-option.is-selected { border-color: var(--otpe-navy); background: #eef3fa; }
.otpe-option input { position: absolute; opacity: 0; pointer-events: none; }
.otpe-option input:focus-visible + .otpe-option__letter { outline: 3px solid var(--otpe-accent); outline-offset: 2px; }
.otpe-option__letter { flex: 0 0 auto; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--otpe-soft); color: var(--otpe-navy); }
.otpe-option.is-selected .otpe-option__letter { background: var(--otpe-navy); color: #fff; }
.otpe-option__text { padding-top: .15rem; }

.otpe-result { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.otpe-result__score { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 140px; height: 140px; border-radius: 50%; border: 8px solid var(--otpe-line); }
.otpe-result__score.is-pass { border-color: var(--otpe-good); }
.otpe-result__score.is-below { border-color: var(--otpe-warn); }
.otpe-result__pct { font-size: 2.2rem; font-weight: 800; color: var(--otpe-navy); line-height: 1; }
.otpe-result__frac { font-size: .8rem; color: var(--otpe-muted); margin-top: .3rem; }
.otpe-result__summary { flex: 1 1 260px; }

.otpe-roadmap { list-style: none; counter-reset: rm; margin: 0; padding: 0; }
.otpe-roadmap__item { counter-increment: rm; padding: .75rem 0; border-top: 1px solid var(--otpe-soft); }
.otpe-roadmap__item:first-child { border-top: 0; }
.otpe-roadmap__top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.otpe-roadmap__topic { font-weight: 700; }
.otpe-roadmap__topic::before { content: counter(rm) ". "; color: var(--otpe-muted); }
.otpe-roadmap__status { font-size: .875rem; font-weight: 600; }
.is-priority .otpe-roadmap__status { color: var(--otpe-bad); }
.is-review .otpe-roadmap__status { color: var(--otpe-warn); }
.is-strong .otpe-roadmap__status { color: var(--otpe-good); }
.otpe-roadmap__track { position: relative; height: 8px; background: var(--otpe-soft); border-radius: 999px; }
.otpe-roadmap__fill { height: 100%; border-radius: 999px; }
.is-priority .otpe-roadmap__fill { background: var(--otpe-bad); }
.is-review .otpe-roadmap__fill { background: var(--otpe-warn); }
.is-strong .otpe-roadmap__fill { background: var(--otpe-good); }
.otpe-roadmap__mark { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--otpe-navy); }

.otpe-rec { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.otpe-rec__item { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border: 1px solid var(--otpe-line); border-radius: 10px; }
.otpe-rec__price { color: var(--otpe-muted); font-size: .9rem; }

.otpe-review summary { cursor: pointer; font-weight: 700; color: var(--otpe-navy); }
.otpe-review__item { border-top: 1px solid var(--otpe-soft); padding-top: 1rem; margin-top: 1rem; }
.otpe-review__stem { font-weight: 600; margin: .5rem 0; }
.otpe-review__yours { color: var(--otpe-bad); margin: .25rem 0; }
.otpe-review__correct { color: var(--otpe-good); font-weight: 600; margin: .25rem 0; }
.otpe-review__why { color: var(--otpe-muted); margin: .25rem 0 0; }

/* Rank pages */
.otpe-rank__hero { padding: 2rem 0 1rem; }
.otpe-rank__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .75rem; }
.otpe-rank__lead { font-size: 1.15rem; max-width: 46rem; color: var(--otpe-muted); }
.otpe-rank section { padding: 2rem 0; border-top: 1px solid var(--otpe-line); }
.otpe-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; }
.otpe-chips li { padding: .45rem .85rem; border-radius: 999px; background: var(--otpe-soft); color: var(--otpe-navy); font-weight: 600; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { .otpe * { transition: none !important; } }

/* ---------- Guides (SEO pages) ---------- */
.otpe-guide { max-width: 860px; margin: 0 auto; }
.otpe-guide section { padding: 1.75rem 0; border-top: 1px solid var(--otpe-line); }
.otpe-guide__hero { padding: .5rem 0 1.5rem; }
.otpe-guide__hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); line-height: 1.15; color: var(--otpe-navy); margin: 0 0 .75rem; }
.otpe-guide__lead { font-size: 1.15rem; color: var(--otpe-muted); max-width: 44rem; }
.otpe-guide h2 { font-size: 1.45rem; margin: 0 0 .75rem; }
.otpe-guide h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.otpe-cite { font-size: .8rem; white-space: nowrap; }
.otpe-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: var(--otpe-muted); }
.otpe-crumbs li + li::before { content: "›"; margin-right: .4rem; }
.otpe-crumbs a { color: var(--otpe-muted); }
.otpe-table-wrap { overflow-x: auto; margin: .5rem 0 .75rem; }
.otpe-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.otpe-table caption { text-align: left; font-weight: 700; color: var(--otpe-navy); padding-bottom: .5rem; }
.otpe-table th, .otpe-table td { border-bottom: 1px solid var(--otpe-line); padding: .65rem .75rem; text-align: left; vertical-align: top; }
.otpe-table thead th { background: var(--otpe-soft); color: var(--otpe-navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.otpe-table tbody th { font-weight: 600; color: var(--otpe-navy); }
.otpe-cols { columns: 2 260px; column-gap: 2rem; padding-left: 1.1rem; }
.otpe-cols li { break-inside: avoid; margin-bottom: .5rem; }
.otpe-steps { padding-left: 1.25rem; }
.otpe-steps li { margin-bottom: .6rem; }
.otpe-faq__item { border: 1px solid var(--otpe-line); border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: .6rem; background: var(--otpe-bg); }
.otpe-faq__item summary { cursor: pointer; font-weight: 700; color: var(--otpe-navy); }
.otpe-faq__a p { margin: .6rem 0 0; color: var(--otpe-ink); }
.otpe-related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.otpe-related a { display: inline-block; padding: .5rem .9rem; border: 1px solid var(--otpe-line); border-radius: 999px; text-decoration: none; color: var(--otpe-navy); font-weight: 600; font-size: .9rem; }
.otpe-related a:hover { border-color: var(--otpe-navy); }
.otpe-guide__sources ul { padding-left: 1.1rem; font-size: .9rem; }
.otpe-card--link { text-decoration: none !important; color: inherit; transition: border-color .15s ease; }
.otpe-card--link:hover { border-color: var(--otpe-navy); }

/* ---------- Membership ---------- */
.otpe-member-cta { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: center; background: var(--otpe-navy); color: #e8eef7; border-radius: var(--otpe-radius); padding: 2rem; margin: 2rem 0; }
@media (min-width: 760px) { .otpe-member-cta { grid-template-columns: 1.6fr 1fr; } }
.otpe-member-cta h2 { color: #fff !important; margin: 0 0 1rem; }
.otpe-member-cta .otpe-card__features li { border-top-color: rgba(255,255,255,.12); color: #e8eef7; }
.otpe-member-cta .otpe-card__features li::before { border-color: #6fd39b; }
.otpe-member-cta__price { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 1.5rem; }
.otpe-member-cta__price .otpe-card__amount { color: #fff; font-size: 2.6rem; }
.otpe-member-cta__price .otpe-card__note { color: #c5d2e6; }
.otpe-member-cta .otpe-btn--primary { background: var(--otpe-accent); color: var(--otpe-accent-ink) !important; width: 100%; }
.otpe-member-cta .otpe-btn--primary:hover { background: #0077d9; }
.otpe-join, .otpe-account { max-width: 760px; margin: 0 auto; }
.otpe-fields { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.25rem 0; }
@media (min-width: 640px) { .otpe-fields { grid-template-columns: 1fr 1fr; } }
.otpe-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; color: var(--otpe-navy); }
.otpe-field input, .otpe-field select { width: 100%; padding: .7rem .8rem; border: 1px solid var(--otpe-line); border-radius: 8px; font: inherit; background: #fff; color: var(--otpe-ink); }
.otpe-field input:focus, .otpe-field select:focus { outline: 2px solid var(--otpe-accent); outline-offset: 1px; }
.otpe-field small { display: block; color: var(--otpe-muted); margin-top: .25rem; font-size: .8rem; }
.otpe-check { display: flex; gap: .6rem; align-items: flex-start; margin: .75rem 0; font-size: .92rem; }
.otpe-check input { margin-top: .25rem; flex: 0 0 auto; }
.otpe-join__pay { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--otpe-line); padding-top: 1.25rem; margin-top: 1.25rem; }
.otpe-alert--info { background: #eef5ff; color: #12406f; }
.otpe-alert--warn { background: #fff8e6; color: #7a4b00; }
.otpe-account__status.is-active { border-color: var(--otpe-good); }
.otpe-panel summary { cursor: pointer; font-weight: 700; color: var(--otpe-navy); }
.otpe-panel details[open] summary, .otpe-panel[open] summary { margin-bottom: 1rem; }

/* ---------- Plans (Find My Exam) ---------- */
.otpe-plans { max-width: 1140px; margin: 0 auto; }
.otpe-plans__hero { text-align: center; max-width: 760px; margin: 0 auto 2.5rem; }
.otpe-plans__hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; color: var(--otpe-navy); margin: 0 0 .75rem; }
.otpe-plans__hero .otpe-guide__lead { margin: 0 auto; }
.otpe-plans__grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .otpe-plans__grid { grid-template-columns: 1.15fr 1fr; } }
.otpe-plans__side { display: grid; gap: 1.25rem; }
.otpe-plan { position: relative; background: var(--otpe-bg); border: 1px solid var(--otpe-line); border-radius: 16px; padding: 1.5rem; }
.otpe-plan p { margin: 0 0 1rem; color: var(--otpe-muted); }
.otpe-plan--featured { border: 2px solid var(--otpe-navy); box-shadow: 0 18px 40px rgba(11,31,58,.12); padding: 2rem; }
.otpe-plan__title { font-size: 1.3rem; margin: 0 0 .5rem; color: var(--otpe-navy); }
.otpe-plan--featured .otpe-plan__title { font-size: 1.6rem; }
.otpe-plan__for { font-size: .95rem; }
.otpe-plan__per { color: var(--otpe-muted); font-weight: 600; }
.otpe-plan--featured .otpe-card__amount { font-size: 3rem; }
.otpe-plan__cta { width: 100%; padding: 1rem 1.25rem; font-size: 1.05rem; margin-top: .5rem; }
.otpe-plan__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.otpe-plan__links a { font-weight: 600; color: var(--otpe-navy); }
.otpe-plans__more, .otpe-plans__how { margin-top: 3rem; }
.otpe-plans__how h2 { text-align: center; color: var(--otpe-navy); margin-bottom: 1.25rem; }
.otpe-plans__steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.otpe-plans__steps li { counter-increment: st; background: var(--otpe-soft); border-radius: 12px; padding: 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.otpe-plans__steps li::before { content: counter(st); width: 2rem; height: 2rem; border-radius: 50%; background: var(--otpe-navy); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: .25rem; }
.otpe-plans__steps strong { color: var(--otpe-navy); }
.otpe-plans__steps span { color: var(--otpe-muted); font-size: .95rem; }
.otpe-plan__cta { background: var(--otpe-accent); }
.otpe-plan__cta:hover { background: #0077d9; }
