/*
Theme Name: Nevada Armed Guard Guide
Theme URI: https://nevadaarmedguardtraining.com/
Author: Condition Zero Tactical
Description: Las Vegas armed guard training guide. One-page homepage with an interactive provider comparison, reviews, course walkthrough, requirements and questions, plus an Articles page. Edit everything under Appearance > Customize > Training Guide · Homepage.
Version: 1.8.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nevada-armed-guard-guide
*/

/* ---------- Tokens ---------- */
:root {
  /* Brand colors, editable in the Customizer */
  --navy: #10283f;
  --blue: #075ec8;
  --red: #c92520;
  /* Roles */
  --bg: #fff;
  --card: #fff;
  --ink: #16283b;
  --heading: var(--navy);
  --muted: #526476;
  --line: #dce4ed;
  --pale: #f2f6fa;
  --tint: #eef5fd;
  --dark: var(--navy);
  --accent: var(--blue);
  --button: var(--blue);
  --button-ink: #fff;
  --star: #f5a623;
  --star-off: #cdd6e0;
  --gold: #f6b21b;
  --green: #00b67a;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(16, 40, 63, .06), 0 8px 24px rgba(16, 40, 63, .08);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible, input:focus-visible { outline: 3px solid #e7ac2d; outline-offset: 3px; }
button, input, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 16px; color: var(--heading); }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); font-weight: 800; text-transform: uppercase; line-height: .98; color: #fff; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
p { margin: 0 0 20px; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 68px; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 14px; }
.icon { flex-shrink: 0; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 13px 24px; min-height: 50px; background: var(--button); color: var(--button-ink); font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.2; text-align: center; border: 0; border-radius: 4px; text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s; }
.button:hover { filter: brightness(.92); text-decoration: none; }
.button:hover .icon-arrow { transform: translateX(3px); }
.button .icon { width: 20px; height: 20px; transition: transform .15s; }
.button.red { background: var(--red); color: #fff; }
.button.big { font-size: 1.3rem; padding: 16px 28px; }
.button.light { background: #fff; color: #10283f; }
.button.ghost { background: transparent; color: var(--heading); box-shadow: inset 0 0 0 2px var(--heading); }

.stars { display: inline-block; font-family: Arial, sans-serif; font-size: 1.15rem; line-height: 1; letter-spacing: 1px; background: linear-gradient(90deg, var(--star) calc(var(--r) / 5 * 100%), var(--star-off) 0); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 4px 18px rgba(16, 40, 63, .14); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { flex-shrink: 0; max-width: 340px; }
.brand a { text-decoration: none; color: var(--heading); display: flex; align-items: center; gap: 12px; font-family: var(--display); }
.brand strong { font-size: 2.5rem; font-weight: 800; letter-spacing: .01em; line-height: .9; display: block; }
.brand-text > span { display: block; font-size: .98rem; font-weight: 700; letter-spacing: .03em; margin-top: 3px; }
.custom-logo-link img { max-width: 250px; max-height: 70px; width: auto; display: block; }
.menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 26px; }
.menu li { position: relative; }
.menu a { font-size: .92rem; font-weight: 600; color: var(--heading); text-decoration: none; display: block; padding: 10px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a.is-current { color: var(--accent); border-bottom-color: var(--accent); }
.menu ul { display: none; position: absolute; z-index: 8; top: 100%; left: 0; list-style: none; margin: 0; padding: 12px; background: var(--card); box-shadow: var(--shadow); min-width: 200px; }
.menu li:hover > ul, .menu li:focus-within > ul { display: block; }
.header-cta { font-size: 1.05rem; padding: 10px 18px; min-height: 46px; }
.nav-cta { display: none; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 12px 10px; background: none; border: 0; border-radius: 4px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 3px; border-radius: 2px; background: var(--heading); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero-photo, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 42%; }
.hero-shade { background: linear-gradient(90deg, rgba(9, 24, 39, .96) 0%, rgba(9, 24, 39, .82) 36%, rgba(9, 24, 39, .14) 68%, rgba(9, 24, 39, .12) 100%); }
/* Wider screens crop more off the top of the photo, so the crop moves up to keep his whole head in frame */
/* Small laptops: keep the text column clear of his face */
@media (min-width: 1041px) and (max-width: 1179px) { .hero .hero-copy { max-width: 540px; } }
@media (min-width: 1600px) { .hero-photo { object-position: 68% 37%; } }
@media (min-width: 1800px) { .hero-photo { object-position: 68% 34%; } }
@media (min-width: 2100px) { .hero-photo { object-position: 68% 32%; } }
@media (min-width: 2400px) { .hero-photo { object-position: 68% 30%; } }
@media (min-width: 3000px) { .hero-photo { object-position: 68% 28%; } }
.hero-inner { position: relative; min-height: 520px; display: flex; flex-direction: column; justify-content: center; padding-block: 64px; }
.hero-copy { max-width: 640px; }
.hero-intro { max-width: 520px; font-size: 1.15rem; color: #edf3f9; margin-bottom: 28px; }
.hero-motto { position: absolute; bottom: 60px; right: 0; margin: 0; font-family: var(--display); font-size: 1.35rem; line-height: 1.15; font-weight: 700; text-transform: uppercase; border-top: 3px solid var(--red); padding-top: 12px; text-shadow: 0 1px 8px #000; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 40px 0 0; padding: 0; font-size: .92rem; font-weight: 600; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges .icon { width: 20px; height: 20px; }

/* ---------- Provider table ---------- */
.section-heading { max-width: 820px; margin: 0 auto 30px; text-align: center; }
.section-heading h2 { margin-bottom: 10px; }
.section-heading p { color: var(--muted); margin: 0; }
.table-card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: var(--card); }
.providers { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; }
.providers th, .providers td { padding: 20px 18px; vertical-align: middle; }
.providers thead th { background: var(--dark); color: #fff; font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: .03em; padding-block: 13px; white-space: nowrap; }
.sort { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.sort::after { content: "↕"; font-family: Arial, sans-serif; font-size: .8rem; opacity: .55; }
[aria-sort="ascending"] .sort::after { content: "↑"; opacity: 1; }
[aria-sort="descending"] .sort::after { content: "↓"; opacity: 1; }
.provider-row { border-top: 1px solid var(--line); transition: background .15s; }
.provider-row:has(.expand) { cursor: pointer; }
.provider-row:hover { background: var(--pale); }
.provider.is-top .provider-row, .provider.is-top .provider-detail { background: var(--tint); }
/* Numbers and verdicts sit centred under their headings; names and course lists read left to right */
.providers .c-rank, .providers .c-rating, .providers .c-count, .providers .c-verdict { text-align: center; }
.c-rank { white-space: nowrap; width: 1%; }
.rank { font-family: var(--display); font-size: 1.7rem; font-weight: 800; color: var(--heading); vertical-align: middle; }
.c-rank .icon { color: var(--gold); width: 26px; height: 26px; margin-left: 6px; vertical-align: middle; }
th.c-name { font-weight: 400; }
tbody .c-name { min-width: 250px; }
.name-wrap { display: flex; align-items: center; gap: 14px; text-align: left; }
.row-logo { width: 54px; height: 54px; object-fit: contain; flex-shrink: 0; }
.provider-name { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1.1; color: var(--heading); text-transform: uppercase; letter-spacing: .01em; }
.provider-tagline { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.c-rating { white-space: nowrap; }
.c-rating strong { font-size: 1.05rem; margin-left: 6px; vertical-align: 1px; }
.c-count strong { font-size: 1.15rem; }
.c-courses { line-height: 1.45; color: var(--muted); min-width: 220px; }
.course { display: block; white-space: nowrap; }
td.c-verdict { white-space: nowrap; }
.verdict { display: block; font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.provider.is-top .verdict { font-size: 1.25rem; }
.expand { margin-top: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 5px 10px 5px 14px; font-size: .82rem; font-weight: 600; color: var(--heading); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.expand:hover { border-color: var(--accent); color: var(--accent); }
.expand .icon { width: 16px; height: 16px; transition: transform .2s; }
.is-open .expand .icon { transform: rotate(180deg); }
.provider-detail > td { padding: 0 18px 24px; }
.detail-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; padding: 24px 26px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); animation: nag-open .25s ease-out; }
.detail-inner h3 { font-size: 1.3rem; margin-bottom: 8px; }
.detail-inner .button { margin-top: 2px; }
.detail-points, .checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; align-content: start; }
.detail-points li, .checklist li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.detail-points .icon, .checklist .icon { color: var(--green); width: 20px; height: 20px; margin-top: 2px; stroke-width: 3; }
.table-note { font-size: .82rem; padding: 14px 18px; background: var(--pale); border-top: 1px solid var(--line); color: var(--muted); margin: 0; line-height: 1.55; }
/* Booking button under the comparison table */
.providers-cta { text-align: center; margin: 30px 0 0; }
.providers-cta .button { min-width: 280px; }
@keyframes nag-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Featured provider ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 68px; background: var(--card); }
.feature.has-reviews { grid-template-columns: 1fr 1.15fr .95fr; }
.feature-photo { position: relative; min-height: 380px; background: var(--dark); }
.feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; display: block; }
.feature-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(9, 24, 39, .85), transparent); }
.feature-caption { position: absolute; z-index: 1; left: 22px; bottom: 20px; margin: 0; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; }
.feature-copy { padding: 34px 34px 36px; align-self: center; }
.badge { display: inline-block; background: var(--gold); color: #10283f; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 3px; margin-bottom: 16px; }
.feature-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.feature-brand h2 { margin: 0; font-size: 2rem; text-transform: uppercase; }
.provider-logo { width: 70px; height: 70px; object-fit: contain; flex-shrink: 0; }
.feature-rating { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feature-rating strong { font-size: 1.15rem; }
.feature-rating span:last-child { color: var(--muted); font-size: .9rem; }
.feature-rating .stars { font-size: 1.3rem; }
.feature-copy h3 { margin-bottom: 8px; }
.feature-copy > p:not(.badge):not(.feature-rating) { color: var(--muted); font-size: .95rem; }
.feature-reviews { padding: 30px 28px; border-left: 1px solid var(--line); background: var(--pale); }
.reviews-source { font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--heading); margin: 0 0 4px; line-height: 1; }
.tp-star { color: var(--green); }
.reviews-score { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.reviews-score strong { font-size: 1.1rem; }
.reviews-score > span:last-child { flex-basis: 100%; font-size: .82rem; color: var(--muted); }
.reviews-score .stars { background-image: linear-gradient(90deg, var(--green) calc(var(--r) / 5 * 100%), var(--star-off) 0); }
.review { display: flex; gap: 12px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.avatar { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0 0 6px; font-size: .88rem; line-height: 1.5; }
.review figcaption { font-size: .78rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); }

/* ---------- Highlights ---------- */
.benefits-band { background: var(--pale); border-block: 1px solid var(--line); }
.benefits { display: grid; grid-template-columns: repeat(5, 1fr); }
.benefits article { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.benefits article:last-child { border-right: 0; }
.benefits .icon { width: 38px; height: 38px; color: var(--accent); margin-bottom: 10px; stroke-width: 1.8; }
.benefits h3 { font-size: 1.3rem; margin-bottom: 6px; }
.benefits p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- What to expect ---------- */
.tabs { max-width: 1000px; margin-inline: auto; }
.tab-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tab-list button { background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; padding: 14px 16px 12px; text-align: left; cursor: pointer; color: var(--muted); border-top: 4px solid transparent; }
.tab-list button strong { display: block; font-family: var(--display); font-size: 1.45rem; line-height: 1.1; text-transform: uppercase; color: var(--heading); }
.tab-list button span { font-size: .82rem; }
.tab-list button:hover { background: var(--pale); }
.tab-list button[aria-selected="true"] { background: var(--tint); border-top-color: var(--red); }
.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 32px; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--tint); animation: nag-open .25s ease-out; }
.tab-panel[hidden] { display: none; }
.panel-text h3 { font-size: 1.9rem; text-transform: uppercase; }
.panel-text h3 small { display: block; font-family: var(--body); font-size: .9rem; font-weight: 600; text-transform: none; color: var(--accent); margin-top: 6px; }
.panel-text p { font-size: 1.05rem; }
.panel-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.panel-list h4 { margin-bottom: 14px; }

/* ---------- Requirements ---------- */
.requirements-band { background: var(--pale); border-block: 1px solid var(--line); }
.requirements { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; padding-block: 68px; align-items: start; }
.req-copy p { color: var(--muted); }
.req-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.req-note { font-size: .82rem; margin: 0; }
.req-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.req-steps li { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; line-height: 1.4; }
.step-n { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--dark); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.25rem; display: grid; place-items: center; }

/* ---------- Questions ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { border-color: var(--accent); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.2; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--accent); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- About and footer ---------- */
.about-band { background: var(--dark); color: #fff; }
.about-inner { padding-block: 54px; display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.about-inner > div { max-width: 730px; }
.about-inner h2 { color: #fff; }
.about-inner .eyebrow { color: #c5d8ef; }
.about-inner p:not(.eyebrow) { color: #d6e3f1; margin: 0; }
.about-inner .button { flex-shrink: 0; }
.site-footer { padding: 36px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; font-size: .82rem; }
.footer-grid strong { font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; color: var(--heading); }
.footer-grid p { margin: 6px 0; }
.disclosure { color: var(--muted); }
.footer-grid .menu { justify-content: flex-end; flex-wrap: wrap; }
.footer-grid > div:last-child > a { display: inline-block; margin-top: 8px; }

/* Booking bar pinned to the bottom of phone screens */
.sticky-cta { display: none; }

/* ---------- Articles and pages ---------- */
.page-content { max-width: 860px; min-height: 45vh; }
.page-content h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--heading); line-height: 1.02; }
.page-content img { height: auto; }
.page-content .alignwide { max-width: 1100px; }
.entry { margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.entry h2 a { text-decoration: none; color: var(--heading); }
.entry h2 a:hover { color: var(--accent); }
.entry-date { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.extra-content { padding-block: 50px; }
.page-content input { padding: 10px; border: 1px solid var(--line); max-width: 100%; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 15px; background: #fff; color: #000; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .85rem; }
.alignleft { float: left; margin: 0 24px 20px 0; }
.alignright { float: right; margin: 0 0 20px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.sticky { border-left: 3px solid var(--accent); padding-left: 20px; }
.bypostauthor { font-weight: inherit; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1160px) {
  .header-inner { gap: 16px; }
  .menu { gap: 18px; }
  .menu a { font-size: .85rem; }
  .brand strong { font-size: 2.1rem; }
  .brand-text > span { font-size: .82rem; }
  .header-cta { font-size: .95rem; padding: 8px 14px; }
  .feature.has-reviews { grid-template-columns: 1fr 1.2fr; }
  .feature.has-reviews .feature-reviews { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 26px; }
  .feature-reviews .reviews-source, .feature-reviews .reviews-score { grid-column: 1 / -1; }
  .feature-reviews .review { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 1040px) {
  .header-inner { min-height: 68px; }
  .header-cta { display: none; }
  .has-js .menu-toggle { display: flex; }
  /* The menu opens as a panel under the header */
  .has-js #site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(16, 40, 63, .16); padding: 6px 32px 20px; }
  .has-js #site-nav.is-open { display: block; }
  .menu { flex-direction: column; gap: 0; }
  .menu a { font-family: var(--display); font-size: 1.45rem; font-weight: 700; text-transform: uppercase; padding: 13px 2px; border-bottom: 1px solid var(--line); }
  .menu a:hover, .menu a.is-current { border-bottom-color: var(--line); }
  .menu ul { position: static; box-shadow: none; padding-block: 0; display: block; }
  .nav-cta { display: flex; margin-top: 18px; }
  .hero-motto { display: none; }
  .hero-shade { background: linear-gradient(90deg, rgba(9, 24, 39, .96), rgba(9, 24, 39, .7) 50%, rgba(9, 24, 39, .15)); }
  .about-inner { align-items: flex-start; flex-direction: column; gap: 24px; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .benefits article { border-bottom: 1px solid var(--line); }
  .requirements { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 1099px) {
  /* The table becomes a stack of cards */
  .providers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .providers, .providers tbody, .providers tr, .providers td, .providers th { display: block; }
  .providers tr[hidden] { display: none; }
  .providers tbody.provider { border-top: 1px solid var(--line); }
  .providers tbody.provider:first-of-type { border-top: 0; }
  .providers .provider-row { border-top: 0; display: grid; grid-template-columns: auto 1fr 1fr; gap: 16px 14px; padding: 22px 20px 20px; }
  .providers .provider-row > * { padding: 0; }
  .c-rank { width: auto; grid-area: 1 / 1; align-self: center; }
  .c-rank .icon { display: none; }
  tbody .c-name { min-width: 0; grid-area: 1 / 2 / auto / -1; align-self: center; }
  .providers td[data-label], .providers .c-rank { white-space: normal; text-align: left; }
  .providers td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
  .providers td.c-rating { grid-area: 2 / 1 / auto / 3; white-space: nowrap; }
  .providers td.c-count { grid-area: 2 / 3; }
  .c-count strong { font-size: 1.05rem; }
  .providers td.c-courses { grid-area: 3 / 1 / auto / -1; line-height: 1.2; }
  .providers td.c-courses { min-width: 0; }
  .course { display: inline-block; margin: 0 6px 6px 0; padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--pale); color: var(--ink); font-size: .82rem; }
  .provider.is-top .course { background: var(--card); }
  .providers td.c-verdict { grid-area: 4 / 1 / auto / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
  .providers td.c-verdict::before { grid-area: 1 / 1; margin-bottom: 2px; }
  .verdict { grid-area: 2 / 1; }
  .expand { grid-area: 1 / 2 / 3 / 3; margin: 0; padding: 10px 14px 10px 18px; font-size: .9rem; }
  .provider-detail > td { padding: 0 14px 18px; }
  .detail-inner { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
}
@media (max-width: 860px) {
  .feature, .feature.has-reviews { grid-template-columns: 1fr; }
  .feature-photo { min-height: 300px; }
  .feature.has-reviews .feature-reviews { display: block; }
  .feature-reviews .review { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .tab-panel { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 76px; }
  body { font-size: 16px; padding-bottom: 74px; }
  .wrap { width: calc(100% - 36px); }
  .section { padding-block: 46px; }
  .header-inner { min-height: 60px; }
  .brand strong { font-size: 1.7rem; }
  .brand-text > span { font-size: .66rem; margin-top: 2px; }
  /* Photo on top, message and button straight under it, all on the first screen */
  h1 { font-size: 2.35rem; }
  .hero-intro { font-size: 1rem; margin-bottom: 18px; }
  .hero .button.big { width: 100%; font-size: 1.2rem; padding: 14px 20px; }
  .hero-badges { gap: 10px 18px; margin-top: 22px; font-size: .8rem; }
  .section-heading { text-align: left; }
  .feature { margin-bottom: 46px; }
  .feature-copy { padding: 26px 22px; }
  .feature-reviews { padding: 26px 22px; }
  .tab-panel { padding: 22px 20px; }
  .panel-list { padding: 18px 18px; }
  .feature-copy .button, .panel-text .button, .req-actions .button, .providers-cta .button { width: 100%; min-width: 0; }
  .providers-cta { margin-top: 22px; }
  .benefits { grid-template-columns: 1fr; padding-block: 10px; }
  .benefits article { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; align-items: center; text-align: left; padding: 16px 0; border-right: 0; }
  .benefits article:last-child { border-bottom: 0; }
  .benefits .icon { grid-row: 1 / 3; width: 32px; height: 32px; margin: 0; }
  .benefits h3 { margin: 0 0 2px; }
  .tab-list { grid-template-columns: auto auto 1fr; gap: 6px; }
  .tab-list button { padding: 12px 18px 10px; }
  .tab-list button strong { font-size: 1.2rem; }
  .tab-list button span { display: none; }
  .requirements { padding-block: 46px; }
  .faq summary { font-size: 1.15rem; padding: 14px 16px; }
  .faq details p { padding: 0 16px 16px; }
  .about-inner { padding-block: 40px; }
  .about-inner .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid .menu { justify-content: flex-start; }
  .page-content { overflow-wrap: anywhere; }
  .sticky-cta { display: block; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 40, 63, .14); transform: translateY(110%); transition: transform .25s ease-out; }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .button { width: 100%; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Polish from the 2026-10-04 review ---------- */
/* Short pages: footer sits at the bottom of the window */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.site-footer { border-top: 1px solid var(--line); }
.footer-grid strong { display: block; line-height: 1.1; text-wrap: balance; }
.footer-grid > div:last-child > a { padding-block: 12px; margin-top: 0; }
/* Headings never end on a single orphan word */
h2, h3, .provider-name, .faq summary span { text-wrap: balance; }
/* Clearer hover on the red buttons */
.button.red:hover { background: #a51c18; filter: none; }
/* Tabs: every panel takes the height of the tallest, so nothing below jumps when switching */
.tabs { display: grid; }
.tab-list { grid-row: 1; }
.tab-panel { grid-row: 2; grid-column: 1; }
.tab-panel[hidden] { display: grid; visibility: hidden; }
.tab-list button[aria-selected="false"] { box-shadow: 0 -1px 0 var(--line); }
/* Privacy policy and other text pages */
.page-content li + li { margin-top: 10px; }
.entry-empty { margin-bottom: 28px; }
/* Desktop table: fixed columns, so nothing shifts when a row opens */
@media (min-width: 1100px) {
  .providers { table-layout: fixed; }
  .providers thead .c-rank { width: 92px; }
  .providers thead .c-rating { width: 170px; }
  .providers thead .c-count { width: 140px; }
  .providers thead .c-courses { width: 230px; }
  .providers thead .c-verdict { width: 140px; }
}
@media (min-width: 1100px) and (max-width: 1160px) {
  .providers th, .providers td { padding-inline: 12px; }
  .providers thead .c-rating { width: 150px; }
  .providers thead .c-count { width: 125px; }
  .providers thead .c-courses { width: 210px; }
  .providers thead .c-verdict { width: 130px; }
}
@media (min-width: 1041px) {
  .requirements { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1041px) and (max-width: 1160px) {
  .benefits h3 { font-size: 1.15rem; }
  .benefits article { padding-inline: 14px; }
}
/* Tablets: 3 highlights on the first row, 2 wider ones underneath */
@media (min-width: 701px) and (max-width: 1040px) {
  .benefits { grid-template-columns: repeat(6, 1fr); }
  .benefits article { grid-column: span 2; }
  .benefits article:nth-child(n+4) { grid-column: span 3; border-bottom: 0; }
  .benefits article:nth-child(3) { border-right: 0; }
}
@media (max-width: 860px) {
  .feature-reviews .review:last-child { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 700px) {
  .has-js #site-nav { padding-inline: 18px; }
  .detail-inner .button, .feature-copy .button { width: 100%; font-size: 1.02rem; padding-inline: 14px; gap: 8px; }
  .page-content ul, .page-content ol { padding-left: 22px; }
}
/* Small phones */
@media (max-width: 380px) {
  .tab-list button { padding: 12px 10px 10px; }
  .tab-list button strong { font-size: 1.1rem; white-space: nowrap; }
  .providers td[data-label]::before { letter-spacing: .04em; white-space: nowrap; }
}
@media (max-width: 359px) { h1 { font-size: 2.05rem; } }

/* Spotlight with Thomas's photo: keep his face in frame */
.photo-thomas .feature-photo img { object-position: 38% 0; }

/* ---------- Tablets and phones: photo on top, text underneath, so the text never covers his face ---------- */
@media (max-width: 1040px) {
  body:not(.hero-split) .hero { --hp: clamp(230px, 42vw, 400px); }
  body:not(.hero-split) .hero-inner { min-height: 0; padding-top: calc(var(--hp) - 34px); padding-bottom: 30px; justify-content: flex-end; }
  body:not(.hero-split) .hero-photo { height: var(--hp); object-position: 74% 28%; }
  body:not(.hero-split) .hero-shade { background: linear-gradient(0deg, rgba(9, 24, 39, 1) 0%, rgba(9, 24, 39, 1) calc(100% - var(--hp)), rgba(9, 24, 39, .05) calc(100% - var(--hp) + 120px)); }
}
@media (max-width: 700px) { body:not(.hero-split) .hero-inner { padding-bottom: 26px; } }

/* ---------- Split banner: text on a solid panel, photo on the right ---------- */
.hero-split .hero-photo { left: auto; right: 0; width: min(54%, 780px); object-position: 30% 0; }
.hero-split .hero-shade { background: linear-gradient(90deg, var(--dark) 0%, var(--dark) calc(100% - min(54%, 780px)), rgba(9, 24, 39, 0) calc(100% - min(54%, 780px) + 70px)); }
.hero-split .hero-copy { max-width: min(600px, 46%); }
.hero-split .hero-motto { display: none; }
@media (max-width: 1040px) {
  .hero-split .hero-photo { width: 50%; }
  .hero-split .hero-shade { background: linear-gradient(90deg, var(--dark) 0%, var(--dark) 50%, rgba(9, 24, 39, 0) calc(50% + 50px)); }
  .hero-split .hero-copy { max-width: 48%; }
}
@media (max-width: 700px) {
  .hero-split .hero-inner { padding-top: 290px; }
  .hero-split .hero-photo { width: 100%; height: 320px; object-position: 35% 0; }
  .hero-split .hero-shade { background: linear-gradient(0deg, var(--dark) 0%, var(--dark) calc(100% - 320px), rgba(9, 24, 39, 0) calc(100% - 200px)); }
  .hero-split .hero-copy { max-width: none; }
}
