/* HazwoperOSHA.org - safety red & white: red header bar, white cards, light grey bands, graphite text */
:root {
  --red: #c8102e;
  --red-dk: #8e0b20;
  --red-soft: #fdecee;
  --ink: #1e1e1e;
  --body: #3a3a3a;
  --mute: #666666;
  --line: #e2e2e2;
  --grey: #f2f2f2;
  --white: #ffffff;
  --ok: #157a3c;
  --bad: #c8102e;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.06);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dk); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; color: var(--red); padding: 8px 12px; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.muted { color: var(--mute); }
.small { font-size: .9rem; }
.mt { margin-top: 48px; }
.mt-sm { margin-top: 10px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--red); color: #fff; box-shadow: 0 2px 0 var(--red-dk); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
.logo { text-decoration: none; display: inline-flex; flex: none; }
.wm { display: inline-flex; align-items: center; gap: 9px; }
.wm-mark { flex: none; display: block; }
.wm-text { font-family: var(--head); font-weight: 800; font-size: 1.35rem; color: #fff; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.wm-text b { font-weight: 800; }
.wm-text small { font-family: var(--sans); font-weight: 600; font-size: .62em; opacity: .85; margin-left: 1px; }
.site-search { flex: 1 1 240px; max-width: 340px; }
.site-search input { width: 100%; padding: 9px 14px; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border: 0; border-radius: 6px; }
.site-search input::placeholder { color: #8a8a8a; }
.site-search input:focus { outline: 3px solid rgba(255,255,255,.55); outline-offset: 1px; }
header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; order: 3; }
header nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
header nav a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.nav-phone { opacity: .95; }
.nav-cart { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--red) !important; padding: 6px 12px; border-radius: 6px; font-weight: 700 !important; }
.nav-cart:hover { text-decoration: none !important; background: var(--grey); }
.cart-count { display: inline-block; min-width: 1.5em; text-align: center; background: var(--red); color: #fff; border-radius: 999px; font-size: .78rem; line-height: 1.5; padding: 0 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--red); color: #fff; font: 700 .98rem/1.2 var(--sans); text-decoration: none; padding: 11px 18px; border-radius: 6px; border: 2px solid var(--red); white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--red-dk); border-color: var(--red-dk); color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-sm { padding: 6px 12px; font-size: .86rem; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark { background: #fff; color: var(--red); border-color: #fff; }
.btn-dark:hover { background: var(--grey); color: var(--red-dk); border-color: var(--grey); }
.btn-block { display: flex; width: 100%; }
button.btn:disabled { opacity: .6; cursor: progress; }
a.btn.in-cart { background: var(--red-soft); color: var(--red-dk); border-color: var(--red-soft); }
.link { font-weight: 700; font-size: .95rem; color: var(--red); }

/* ---------- hero ---------- */
.hero { background: var(--grey); border-bottom: 1px solid var(--line); padding: 56px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.hero .eyebrow { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 5px 10px; border-radius: 4px; }
.lead { font-size: 1.12rem; color: var(--body); max-width: 62ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; font-weight: 600; font-size: .95rem; }
.trust li, .checks li { position: relative; padding-left: 26px; }
.trust li::before, .checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3 7 10.7l4.6-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.quick { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.quick h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 6px; }
.quick-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.quick-row strong { color: var(--red); white-space: nowrap; }
.quick-row:hover span { text-decoration: underline; }
.quick-note { font-size: .9rem; color: var(--mute); margin: 12px 0 0; }

/* ---------- sections ---------- */
.which { padding: 64px 16px 40px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--ink); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
tbody tr:nth-child(even) td { background: #fafafa; }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 600; }

/* learning path */
.path h2 { margin-bottom: 4px; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font: 800 1rem/1 var(--head); margin-bottom: 12px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--body); font-size: .96rem; }

/* courses */
.courses { background: var(--grey); padding: 56px 0 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.courses-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; }
.courses-head h2 { margin: 0; }
.search { flex: 1 1 260px; display: flex; justify-content: flex-end; }
.search input { width: min(420px, 100%); padding: 11px 14px; font: inherit; border: 1px solid #cfcfcf; border-radius: 6px; background: #fff; }
.search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.15); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.jump a { font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.jump a:hover { border-color: var(--red); color: var(--red); }
.group { padding-top: 40px; scroll-margin-top: 90px; }
.group h2 { display: flex; align-items: center; gap: 12px; }
.group h2::before { content: ""; flex: none; width: 6px; height: 1.1em; background: var(--red); border-radius: 2px; }
.group-blurb { color: var(--mute); margin: -4px 0 18px; }
.noresults { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-top: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: #cfcfcf; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.pill { background: var(--red-soft); color: var(--red-dk); font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 4px; white-space: nowrap; }
.pill-soft { background: var(--grey); color: var(--ink); }
.price { font-family: var(--head); font-weight: 800; font-size: 1.25rem; color: var(--ink); white-space: nowrap; }
.card h3 { font-size: 1.02rem; line-height: 1.3; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--red); text-decoration: underline; }
.cite { color: var(--mute); font-size: .88rem; margin: 0 0 16px; }
.card-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card .btn { padding: 8px 14px; font-size: .9rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { margin: 8px 0; }

.resources { padding: 64px 16px 24px; }
.res-list { padding-left: 20px; }
.res-list li { margin: 6px 0; }
.about { padding: 48px 16px 64px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.about p { color: var(--body); }

/* faq */
.faq { background: var(--grey); padding: 64px 0; border-top: 1px solid var(--line); }
.faq .wrap { max-width: 860px; }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; padding: 15px 48px 15px 18px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; color: var(--red); }
details[open] summary::after { content: "\2013"; }
details[open] summary { border-bottom: 1px solid var(--line); }
details p { margin: 0; padding: 14px 18px 16px; color: var(--body); }
.cta-band { background: var(--red); color: #fff; padding: 48px 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.cta-row h2 { margin: 0; color: #fff; }
.cta-row > div { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.cta-row .btn-ghost:hover { background: #fff; color: var(--red); }

/* ---------- course page ---------- */
.crumbs { font-size: .88rem; color: var(--mute); padding-top: 18px; }
.crumbs a { color: var(--mute); }
.course-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 44px; padding-top: 18px; padding-bottom: 36px; align-items: start; }
.course-hero .eyebrow { text-transform: none; letter-spacing: .01em; font-size: .92rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 24px 0 0; }
.facts div { background: var(--grey); border-radius: 6px; padding: 12px 14px; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); font-weight: 700; }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.buy { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.buy-price { font-family: var(--head); font-size: 2.6rem; font-weight: 800; margin: 0 0 14px; line-height: 1; }
.buy .checks { margin-top: 16px; }
.buy-note { font-size: .9rem; color: var(--mute); margin: 10px 0 0; }
.course-body { padding-bottom: 64px; }
.course-body h2 { margin-top: 36px; font-size: 1.45rem; }

/* ---------- lessons ---------- */
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 48px; padding-top: 18px; padding-bottom: 24px; align-items: start; }
.guide { max-width: 72ch; min-width: 0; }
.guide .eyebrow { line-height: 1.6; }
.guide h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.guide h2 { margin-top: 40px; font-size: 1.5rem; scroll-margin-top: 100px; }
.guide p, .guide li { color: var(--body); }
.guide li { margin: 6px 0; }
.guide .table-wrap { margin: 18px 0; }
.toc { background: var(--grey); border-left: 4px solid var(--red); border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; margin: 22px 0; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.disclaimer { font-size: .86rem !important; color: var(--mute) !important; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 36px; }
.guide-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.side-box h2 { font-size: 1.1rem; }
.side-quiz { background: var(--red); border-color: var(--red); color: #fff; }
.side-quiz h2 { color: #fff; }
.side-quiz p { color: #fff; }
.side-quiz .btn { background: #fff; color: var(--red); border-color: #fff; }
.side-quiz .btn:hover { background: var(--grey); }
.side-course { padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-course:last-child { border-bottom: 0; }
.side-course > a { font-weight: 700; text-decoration: none; color: var(--ink); }
.side-course > a:hover { color: var(--red); }
.side-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: .9rem; color: var(--mute); }
ul.todo { list-style: none; padding-left: 0; }

/* ---------- quizzes ---------- */
.quiz-wrap { padding-top: 18px; padding-bottom: 24px; max-width: 820px; }
.q { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 0 0 14px; min-width: 0; }
/* Float keeps the legend inside the box instead of on its border. */
.q legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font-family: var(--head); font-weight: 700; font-size: 1.06rem; line-height: 1.35; }
.q legend + * { clear: both; }
.qn { color: var(--red); margin-right: 2px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; margin: 6px 0; cursor: pointer; }
.opt:hover { border-color: #bdbdbd; background: #fafafa; }
.opt input { margin: 4px 0 0; accent-color: var(--red); flex: none; }
.explain { display: none; margin: 12px 0 0; padding: 12px 14px; background: var(--grey); border-left: 4px solid var(--ink); border-radius: 0 6px 6px 0; }
.quiz.done .explain { display: block; }
.quiz.done .q.is-right { border-color: var(--ok); box-shadow: inset 4px 0 0 var(--ok); }
.quiz.done .q.is-wrong { border-color: var(--bad); box-shadow: inset 4px 0 0 var(--bad); }
.quiz.done .opt-correct { background: #e8f5ec; border-color: var(--ok); font-weight: 600; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.quiz-result { background: var(--ink); color: #fff; border-radius: var(--r); padding: 24px; margin-top: 24px; }
.quiz-result p { color: #e6e6e6; }
.quiz-result a:not(.btn) { color: #fff; }
.quiz-result .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.score { font-family: var(--head); font-size: 2rem; font-weight: 800; color: #fff !important; margin: 0 0 6px; }

/* ---------- search ---------- */
.search-page { padding-top: 32px; max-width: 880px; }
.search-big { display: flex; gap: 10px; margin: 16px 0; }
.search-big input { flex: 1; min-width: 0; padding: 13px 16px; font: inherit; font-size: 1.05rem; border: 2px solid var(--ink); border-radius: 6px; }
.search-big input:focus { outline: none; border-color: var(--red); }
.results { list-style: none; padding: 0; margin: 0; }
.results li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.results li > a:not(.btn) { display: block; font-family: var(--head); font-weight: 700; font-size: 1.15rem; margin-top: 6px; color: var(--ink); text-decoration: none; }
.results li > a:not(.btn):hover { color: var(--red); text-decoration: underline; }
.results p { margin: 4px 0 10px; color: var(--body); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c9c9c9; padding: 52px 0 22px; border-top: 6px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--sans); font-size: .8rem; color: #fff; text-transform: uppercase; letter-spacing: .14em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #e9e9e9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin-top: 12px; }
.legal { border-top: 1px solid #333; margin-top: 30px; padding-top: 16px; font-size: .85rem; }

/* ---------- checkout & cart ---------- */
.checkout-wrap { padding-top: 32px; padding-bottom: 64px; }
.checkout-header p { color: var(--mute); max-width: 70ch; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 20px; }
.checkout-section { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.checkout-section h2, .summary h2 { font-size: 1.2rem; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.req { color: var(--red); }
.form-control { width: 100%; padding: 11px 12px; font: inherit; border: 1px solid #c4c4c4; border-radius: 6px; background: #fff; color: var(--ink); }
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.15); }
.hint { color: var(--mute); font-size: .88rem; margin: 8px 0 0; }
.card-field { border: 1px solid #c4c4c4; border-radius: 6px; padding: 14px 12px; margin-bottom: 14px; }
.pay-error { background: var(--red-soft); color: var(--red-dk); border: 1px solid #f5c2c9; border-radius: 6px; padding: 10px 12px; margin-bottom: 14px; }
.summary { position: sticky; top: 96px; background: var(--grey); border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: var(--r); padding: 22px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum-line span { display: block; color: var(--mute); font-size: .88rem; }
.sum-line > span { color: var(--ink); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; }
.sum-total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; font-family: var(--head); font-weight: 800; font-size: 1.3rem; }
.summary .checks { margin-top: 14px; font-size: .92rem; }
.done-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); max-width: 760px; }
.done-card pre { white-space: pre-wrap; background: var(--grey); border: 1px solid var(--line); border-radius: 6px; padding: 14px; font-size: .88rem; }
.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "info qty amount remove"; gap: 12px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-info { grid-area: info; min-width: 0; }
.cart-info strong { display: block; }
.cart-qty { grid-area: qty; display: flex; align-items: center; gap: 6px; }
.cart-qty input { width: 80px; padding: 8px; }
.cart-amount { grid-area: amount; font-weight: 700; text-align: right; white-space: nowrap; }
.link-btn { grid-area: remove; background: none; border: 0; padding: 4px; font: inherit; font-size: .86rem; color: var(--red); text-decoration: underline; cursor: pointer; justify-self: end; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero { padding: 36px 0; }
  .hero-grid, .cols, .course-hero, .guide-layout, .checkout-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .buy, .guide-side, .summary { position: static; }
  header nav a:not(.nav-cart) { display: none; }
  header nav { order: 2; margin-left: auto; }
  .site-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-row { min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .wm-text { font-size: 1.2rem; }
  .search { justify-content: flex-start; }
  .toc ol { columns: 1; }
  .checkout-sidebar { order: -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .trust { grid-template-columns: 1fr; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-grid, .form-row { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .cta-row > div, .cta-row .btn { width: 100%; }
  th, td { padding: 10px; font-size: .9rem; }
  .guide table th, .guide table td { padding: 9px 8px; }
  .cart-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info info" "qty amount" "remove remove"; }
  .link-btn { justify-self: start; padding-left: 0; }
  .search-big { flex-direction: column; }
}

/* keep the three hero buttons on one row on desktop; keep the lesson date line from splitting on phones */
.hero-ctas { gap: 10px; }
.hero-ctas .btn-lg { padding: 13px 18px; font-size: 1rem; }
@media (max-width: 600px) {
  .guide .eyebrow { font-size: .7rem; letter-spacing: .05em; }
}
