/* DAVE LEVINE — Design tokens. Edit these to change the visual theme. */
:root {
  --paper: #f7f5ef;
  --white: #fffefa;
  --ink: #213b33;
  --body: #48544d;
  --muted: #687169;
  --green: #193c34;
  --green-light: #dfe7d4;
  --line: #d6d8ce;
  --accent: #a65235;
  --warm: #eeede4;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --container: 1160px;
  --gutter: clamp(22px, 4.8vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; background: var(--paper); color: var(--body); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
button, a, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--white); background: var(--green); }
[hidden] { display: none !important; }
.container { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.05em; color: var(--ink); }
h1 em, h2 em, .panel-statement em { font-weight: 400; }
h2 { font-size: clamp(36px, 4.1vw, 55px); line-height: 1.11; }
h3 { color: var(--ink); font-size: 19px; line-height: 1.4; font-weight: 600; letter-spacing: -.025em; }
.visually-hidden { 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 { position: fixed; top: 12px; left: 16px; z-index: 200; transform: translateY(-160%); background: var(--white); color: var(--ink); padding: 12px 20px; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { display: flex; align-items: center; gap: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: .15em; font-size: 11px; line-height: 1.6; font-weight: 650; }
.eyebrow-line { width: 28px; height: 1px; background: currentColor; }
.text-link { display: inline-flex; align-items: center; gap: 17px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 550; }
.text-link span[aria-hidden] { font-size: 19px; line-height: 1; transition: transform .2s ease; }
.text-link:hover { color: var(--accent); }
.text-link:hover span[aria-hidden] { transform: translate(2px, -2px); }
.trademark { font-family: var(--sans); font-size: .43em; vertical-align: super; letter-spacing: 0; margin-left: 1px; }
.small-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; padding: 16px 23px; min-height: 53px; text-decoration: none; font-size: 14px; font-weight: 550; border-radius: 3px; transition: background .2s, transform .2s; }
.button-dark { color: var(--white); background: var(--green); border: 1px solid var(--green); }
.button-dark:hover { background: #295348; transform: translateY(-2px); }
.button span[aria-hidden] { font-size: 20px; }

/* Header and responsive navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,245,239,.97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { color: var(--ink); font-family: var(--serif); font-size: 30px; line-height: 1.2; letter-spacing: -.07em; text-decoration: none; white-space: nowrap; }
.wordmark-dot { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { color: var(--body); text-decoration: none; font-size: 13px; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="location"] { color: var(--accent); }
.site-nav .nav-newsletter { color: var(--ink); padding: 10px 0 10px 27px; border-left: 1px solid var(--line); }
.nav-newsletter span[aria-hidden] { margin-left: 12px; }
.menu-toggle { display: none; }

/* Hero */
.hero { padding: 24px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.32fr 1fr; gap: 58px; align-items: start; }
.hero-copy { padding: 0; }
h1 { font-size: clamp(38px, 4vw, 55px); line-height: 1.1; margin: 0 0 26px; }
h1 em { color: var(--accent); }
.hero-intro { max-width: 435px; font-size: 18px; line-height: 1.65; }
.hero-copy .text-link { margin-top: 31px; }
.hero-panel { color: var(--green-light); background: var(--green); padding: 26px 31px 11px; border-radius: 5px; }
.panel-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-transform: uppercase; font-size: 9px; font-weight: 500; letter-spacing: .13em; }
.panel-star { font-size: 27px; line-height: 1; }
.panel-statement { padding: 37px 0 32px; font-family: var(--serif); font-size: clamp(36px, 3.5vw, 49px); letter-spacing: -.04em; line-height: 1.12; }
.panel-statement em { color: #f4e2b9; }
.panel-rows a { display: grid; grid-template-columns: 22px 1fr 16px; align-items: center; gap: 13px; padding: 20px 0; text-decoration: none; border-top: 1px solid #526b58; transition: color .2s; }
.panel-rows a:hover { color: #fff9e8; }
.panel-number { font-size: 9px; opacity: .85; align-self: start; margin-top: 4px; }
.panel-rows small { display: block; text-transform: uppercase; font-size: 9px; font-weight: 400; letter-spacing: .12em; color: #b8cbb6; }
.panel-rows strong { display: block; font-size: 14px; font-weight: 450; margin-top: 2px; color: #f3f4df; }
.hero-footnote { display: flex; align-items: center; gap: 11px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 61px; padding: 20px 0; font-size: 12px; }
.hero-footnote .small-dot { color: var(--accent); }

/* About and credential */
.section { padding: 96px 0; }
.section-heading { margin-bottom: 43px; }
.section-heading .eyebrow { margin-bottom: 18px; }
.section-heading h2 em { color: var(--muted); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; }
.column-label { display: flex; align-items: center; gap: 15px; margin-bottom: 13px; }
.line-icon { font-size: 24px; color: var(--accent); font-weight: 300; }
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { position: relative; padding: 15px 0 15px 20px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.detail-list li::before { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #9aa58d; top: 25px; left: 1px; }
.referral-note { display: flex; gap: 9px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.referral-note span { color: var(--green); }
.credential-strip { display: flex; align-items: center; gap: 26px; background: var(--warm); padding: 23px 29px; margin-top: 45px; border-radius: 4px; }
.credential-image { flex: 0 0 90px; min-height: 88px; display: flex; align-items: center; justify-content: center; }
.credential-image img { width: 90px; height: 90px; object-fit: contain; }
.credential-text-fallback { color: var(--green); font-size: 32px; font-family: var(--serif); letter-spacing: -.06em; }
.credential-text-fallback span { font-family: var(--sans); font-size: 12px; vertical-align: super; letter-spacing: 0; }
.credential-copy { flex: 1; }
.credential-copy .eyebrow { font-size: 9px; }
.credential-copy h3 { font-size: 19px; margin: 5px 0 4px; }
.credential-copy p:last-child { font-size: 13px; color: var(--muted); }
.credential-link { font-size: 12px; flex-shrink: 0; }

/* Book */
.book-section { background: #eeeee5; border-top: 1px solid #e1e2d7; border-bottom: 1px solid #e1e2d7; }
.book-grid { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: 94px; }
.book-art { background: #e0e5d6; padding: 24px 32px 23px; border: 1px solid #d5daca; border-radius: 4px; }
.book-art-label { font-size: 9px; color: #59614c; text-transform: uppercase; letter-spacing: .18em; }
.book-image { width: 100%; height: 352px; object-fit: contain; margin: 14px 0; }
.book-image-fallback { min-height: 352px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 22px 6px; }
.fallback-overline { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--green); }
.book-type-title { font-family: var(--serif); font-size: 54px; color: var(--green); line-height: 1.08; letter-spacing: -.05em; margin-top: 24px; }
.book-type-title em { font-weight: 400; }
.fallback-rule { width: 47px; height: 2px; background: var(--accent); margin: 25px 0 19px; }
.image-unavailable { max-width: 260px; font-size: 11px; color: #59614c; }
.book-art-link { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #bfc6b2; padding-top: 16px; text-decoration: none; color: var(--green); font-size: 11px; }
.book-copy .eyebrow { margin-bottom: 22px; }
.book-copy h2 { font-size: clamp(50px, 5.2vw, 70px); line-height: 1.07; }
.book-copy h2 em { color: var(--accent); }
.book-byline { margin-top: 20px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.book-byline span { padding: 0 9px; color: #88927d; }
.section-intro { font-size: 18px; line-height: 1.75; }
.book-copy .section-intro { margin-top: 26px; max-width: 450px; font-size: 16px; }
.book-copy .button { margin-top: 31px; }
.book-review-link { display: flex; width: fit-content; margin-top: 20px; font-size: 12px; }
.reviews-section { border-top: 0; padding-top: 0; margin-top: 20px; }
.reviews-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.reviews-heading h3 { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.04em; margin-top: 8px; }
.reviews-heading > .text-link { font-size: 12px; margin-bottom: 5px; }
.embed-shell { min-width: 0; }
.reviews-shell { background: #f7f7ef; padding: 22px; border-radius: 4px; }
.embed-status { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 65px; color: var(--muted); text-align: center; font-size: 13px; }
.loading-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: soft-pulse 1.6s ease-in-out infinite; flex-shrink: 0; }
[data-state="unavailable"] .loading-dot { display: none; }
@keyframes soft-pulse { 50% { opacity: .25; } }

/* FirstFlex */
.firstflex-section { background: var(--paper); }
.firstflex-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 100px; align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; background: #e7eada; color: #4e5a3f; border-radius: 50px; font-size: 10px; }
.firstflex-copy h2 { margin: 23px 0 24px; font-size: 66px; line-height: 1; }
.firstflex-copy h2 > .trademark { font-size: 18px; vertical-align: top; display: inline-block; padding-top: 9px; margin-left: 5px; }
.firstflex-subtitle { display: block; font: 12px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-top: 13px; }
.firstflex-copy .section-intro { font-size: 17px; margin-bottom: 19px; }
.firstflex-copy > p:not(.status-pill):not(.section-intro) { font-size: 14px; line-height: 1.85; }
.firstflex-destination { border-left: 2px solid var(--accent); padding-left: 19px; margin-top: 29px; }
.firstflex-destination .eyebrow { font-size: 9px; }
.future-domain { display: flex; justify-content: space-between; max-width: 180px; color: var(--green); font-size: 18px; font-weight: 500; margin: 5px 0; }
.firstflex-destination p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.lesson-components { border: 1px solid var(--line); border-radius: 5px; padding: 30px 29px 10px; }
.lesson-components > .eyebrow { margin-bottom: 13px; font-size: 10px; }
.component { display: flex; gap: 21px; border-top: 1px solid var(--line); padding: 24px 0; }
.component-index { font: italic 24px/1.3 var(--serif); color: #7a856e; }
.component h3 { font-size: 16px; margin-bottom: 5px; }
.component p { color: var(--muted); font-size: 12px; line-height: 1.65; }

/* Newsletter */
.newsletter-section { padding: 75px 0 80px; background: var(--green); color: #d9e1d2; }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; }
.newsletter-copy > .eyebrow { color: #ced8ad; }
.newsletter-copy h2 { color: #f5f3e7; font-size: clamp(50px, 5.1vw, 68px); margin: 21px 0 23px; line-height: 1.05; }
.newsletter-copy h2 em { color: #dfdeb9; }
.newsletter-copy > p:last-child { max-width: 440px; font-size: 14px; line-height: 1.85; }
.newsletter-card { background: var(--paper); color: var(--body); padding: 34px; border-radius: 5px; min-width: 0; }
.newsletter-card > h3 { font-family: var(--serif); font-size: 29px; font-weight: 400; letter-spacing: -.045em; }
.newsletter-card-intro { font-size: 12px; margin: 10px 0 23px; line-height: 1.75; }
.kit-shell .embed-status { justify-content: flex-start; text-align: left; min-height: 50px; }
.newsletter-fallback-link { font-size: 12px; margin-top: 10px; }
.newsletter-privacy { color: var(--muted); font-size: 10px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
/* Keep the real Kit form intact. Only neutralize outer sizing and harmonize typography. */
#kit-form-container { max-width: 100%; }
#kit-form-container .formkit-form { width: 100% !important; max-width: 100% !important; box-shadow: none !important; border-radius: 0 !important; margin: 0 !important; }
#kit-form-container .formkit-form input, #kit-form-container .formkit-form button { font-family: var(--sans) !important; }
#kit-form-container .formkit-form input[type="email"], #kit-form-container .formkit-form input[type="text"] { min-width: 0; }

/* Footer */
.site-footer { padding: 35px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer .wordmark { font-size: 26px; }
.site-footer p { font-size: 11px; color: var(--muted); margin-top: 8px; }
.footer-meta { text-align: right; }
.footer-meta .text-link { font-size: 12px; }

/* Tablet */
@media (max-width: 1050px) {
  .hero-grid { gap: 35px; grid-template-columns: 1.2fr 1fr; }
  h1 { font-size: clamp(47px, 5.5vw, 62px); }
  .hero-panel { padding: 25px 25px 10px; }
  .panel-statement { font-size: 38px; }
  .about-grid { gap: 40px; }
  .book-grid { gap: 55px; }
  .firstflex-grid { gap: 50px; }
  .newsletter-grid { gap: 50px; }
  .credential-copy p:last-child { max-width: 345px; }
}
/* Mobile */
@media (max-width: 760px) {
  html { scroll-padding-top: 90px; }
  .header-inner { min-height: 73px; flex-wrap: wrap; gap: 0; }
  .wordmark { font-size: 27px; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 12px 24px; padding: 0 0 20px; }
  .site-nav .nav-newsletter { padding: 0; border-left: 0; }
  .has-js .menu-toggle { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); min-height: 44px; padding: 0 11px; border-radius: 3px; font-size: 12px; cursor: pointer; }
  .menu-lines { width: 15px; height: 10px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .has-js .site-nav { display: none; padding: 5px 0 19px; }
  .has-js .site-nav.is-open { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .has-js .site-nav a { display: block; padding: 12px 0; min-height: 44px; width: 100%; font-size: 14px; }
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(43px, 8.5vw, 63px); margin: 22px 0; }
  .hero-intro { max-width: 480px; font-size: 16px; }
  .hero-copy .text-link { margin-top: 24px; }
  .hero-panel { padding: 25px 27px 9px; }
  .panel-statement { font-size: 43px; padding: 29px 0; }
  .panel-rows a { padding: 19px 0; }
  .panel-rows strong { font-size: 14px; }
  .hero-footnote { margin-top: 32px; align-items: flex-start; font-size: 11px; padding: 18px 0; }
  .hero-footnote .small-dot { margin-top: 7px; }
  .section { padding: 61px 0; }
  h2 { font-size: clamp(34px, 6.4vw, 43px); }
  .section-heading { margin-bottom: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 35px; }
  .column-label h3 { font-size: 18px; }
  .detail-list li { font-size: 14px; }
  .credential-strip { flex-wrap: wrap; gap: 15px; padding: 23px 20px; margin-top: 34px; }
  .credential-image { flex-basis: 70px; min-height: 70px; }
  .credential-image img { width: 70px; height: 70px; }
  .credential-text-fallback { font-size: 28px; }
  .credential-copy { min-width: 170px; }
  .credential-copy h3 { font-size: 16px; line-height: 1.5; }
  .credential-copy p:last-child { font-size: 12px; }
  .credential-link { margin-left: 85px; }
  .book-grid { grid-template-columns: 1fr; gap: 35px; }
  .book-copy { order: -1; }
  .book-copy h2 { font-size: 56px; }
  .book-copy .section-intro { margin-top: 20px; font-size: 15px; }
  .book-byline { font-size: 10px; }
  .book-copy .button { margin-top: 24px; }
  .book-art { max-width: 470px; width: 100%; padding-inline: 27px; }
  .book-image { height: 310px; }
  .book-image-fallback { min-height: 310px; }
  .book-type-title { font-size: 53px; }
  .reviews-section { margin-top: 20px; padding-top: 0; }
  .reviews-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .reviews-heading h3 { font-size: 28px; }
  .reviews-shell { padding: 16px; }
  .firstflex-grid { grid-template-columns: 1fr; gap: 34px; }
  .firstflex-copy h2 { font-size: 60px; }
  .firstflex-copy .section-intro { font-size: 16px; }
  .lesson-components { padding: 25px 24px 3px; }
  .component { padding: 23px 0; }
  .newsletter-section { padding: 57px 0; }
  .newsletter-grid { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-copy h2 { font-size: 57px; }
  .newsletter-card { padding: 28px 25px; }
  .footer-inner { align-items: flex-start; }
  .site-footer p { max-width: 180px; font-size: 10px; }
  .footer-meta .text-link { font-size: 11px; white-space: nowrap; }
}
@media (max-width: 380px) {
  :root { --gutter: 20px; }
  h1 { font-size: 41px; }
  .hero-panel { padding-inline: 21px; }
  .panel-topline { font-size: 8px; }
  .panel-rows a { gap: 9px; grid-template-columns: 18px 1fr 13px; }
  .panel-rows strong { font-size: 13px; }
  .credential-copy { min-width: 150px; }
  .credential-link { margin-left: 0; }
  .book-copy h2 { font-size: 49px; }
  .book-type-title { font-size: 47px; }
  .button { gap: 17px; font-size: 13px; padding-inline: 17px; }
  .component { gap: 15px; }
  .component h3 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header { position: static; }
  .site-nav, .menu-toggle, .skip-link, .hero-panel, .newsletter-section, .reviews-shell { display: none !important; }
  .section { padding: 30px 0; }
  .hero-grid { display: block; }
  .hero { padding-top: 25px; }
  .hero-footnote { margin-top: 25px; }
  .container { width: 94%; }
  h1 { font-size: 48px; }
  h2 { font-size: 33px; }
  .book-grid, .firstflex-grid { gap: 30px; }
  .book-art { break-inside: avoid; }
  .credential-strip, .experience-column { break-inside: avoid; }
}


/* Supplied media assets */
.teaching-media { display: grid; grid-template-columns: minmax(220px,.75fr) minmax(326px,1fr); gap: 54px; align-items: center; padding: 40px 0 8px; margin-top: 42px; border-top: 1px solid var(--line); }
.teaching-media-copy h3 { margin: 10px 0 10px; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.teaching-media-copy p:last-child { max-width: 360px; font-size: 15px; color: var(--muted); }
.instagram-shell { display: flex; justify-content: center; min-width: 0; }
.instagram-shell .instagram-media { margin-inline: auto !important; min-width: 0 !important; width: 100% !important; max-width: 540px !important; }
.instagram-shell .instagram-media a { display: block; min-width: 0 !important; max-width: 100% !important; width: 100% !important; overflow: hidden; }
.image-link-fallback, .book-image-fallback { min-height: 120px; align-items: center; justify-content: center; text-align: center; padding: 20px; border: 1px dashed #b8bdaf; }
.image-link-fallback:not([hidden]), .book-image-fallback:not([hidden]) { display: flex; }
.image-link-fallback a, .book-image-fallback a { color: var(--green); font-size: 13px; text-decoration: none; }
.credential-image { flex-basis: 124px; }
.credential-image img { width: 120px; height: 120px; }
.book-image { height: auto; max-height: 470px; }

@media (max-width: 760px) {
  .teaching-media { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; margin-top: 34px; }
  .teaching-media-copy h3 { font-size: 27px; }
  .instagram-shell { justify-content: flex-start; overflow: hidden; }
  .credential-image { flex-basis: 92px; }
  .credential-image img { width: 90px; height: 90px; }
  .book-image { max-height: none; }
}

/* Real supplied headshot + teaching video */
.about-section { padding-top: 32px; padding-bottom: 32px; }
.book-section { padding-top: 32px; padding-bottom: 16px; }
.firstflex-section { padding-top: 16px; }
.about-heading-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: start; margin-bottom: 43px; }
.about-heading-grid .section-heading { margin-bottom: 0; }
.headshot-card { margin: 0; justify-self: end; width: min(100%, 360px); }
.headshot-card img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 34%; border-radius: 5px; border: 1px solid var(--line); background: var(--warm); }
.teaching-media { grid-template-columns: minmax(250px,.7fr) minmax(326px,1fr); }
.teaching-media-copy h3 { font-size: 32px; }

@media (max-width: 900px) {
  .about-heading-grid { grid-template-columns: 1fr .52fr; gap: 36px; }
  .headshot-card { width: min(100%, 300px); }
}

@media (max-width: 760px) {
  .about-heading-grid { grid-template-columns: 1fr; gap: 26px; margin-bottom: 35px; }
  .headshot-card { justify-self: start; width: min(100%, 420px); }
  .headshot-card img { aspect-ratio: 4 / 3; object-position: 50% 32%; }
}

/* Instagram video in the opening section. */
.hero-video { width: 100%; max-width: 440px; justify-self: end; }
.hero-video iframe { min-width: 0 !important; width: 100% !important; max-width: 100% !important; }
@media (max-width: 760px) { .hero-video { justify-self: center; } }

/* Keep navigation aligned after removing the header wordmark. */
.header-inner { justify-content: flex-end; }

/* Certification fits the left opening column. */
.hero-copy { container-type: inline-size; }
.hero-copy .credential-strip { display: grid; grid-template-columns: 120px minmax(0, 1fr) 180px; gap: 12px; padding: 16px; margin-top: 28px; }
.hero-copy .credential-image { grid-row: span 2; min-height: 0; }
.hero-copy .credential-image img { width: 120px; height: 120px; }
.hero-copy .credential-copy { min-width: 0; }
.hero-copy .credential-link { grid-column: 2; margin: 0; }
.credential-standards-badge { grid-column: 3; grid-row: 1 / span 2; width: 180px; height: auto; align-self: center; background: transparent; border: 0; }
@container (max-width: 540px) {
  .hero-copy .credential-strip { grid-template-columns: 120px minmax(0, 1fr); }
  .hero-copy .credential-copy { grid-column: 1 / -1; grid-row: 1; }
  .hero-copy .credential-image { grid-column: 1; grid-row: 2; }
  .credential-standards-badge { grid-column: 2; grid-row: 2; justify-self: end; }
  .hero-copy .credential-link { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 380px) {
  .hero-copy .credential-strip { grid-template-columns: 120px minmax(0, 1fr); gap: 8px; padding: 12px; }
  .credential-standards-badge { width: 128px; }
}

/* Replace Instagram's stale engagement footer with Dave's manual count. */
.hero-video { display: block; overflow: hidden; }
.hero-video iframe { clip-path: inset(0 0 150px); margin-bottom: -150px !important; }
.instagram-manual-footer { position: relative; background: #fff; padding: 16px; border: 1px solid #eee; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; color: #262626; font-size: 13px; }
.instagram-manual-footer a { color: #246aa5; text-decoration: none; }


/* Use the full credential card width for larger certificate images. */
.hero-copy .credential-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.hero-copy .credential-copy { grid-column: 1 / -1; grid-row: 1; }
.hero-copy .credential-image { grid-column: 1; grid-row: 2; width: 100%; }
.hero-copy .credential-image img { width: 100%; height: auto; }
.hero-copy .credential-standards-badge { grid-column: 2; grid-row: 2; width: 100%; height: auto; justify-self: stretch; transform: scale(1.45); }
.hero-copy .credential-link { grid-column: 1 / -1; grid-row: 3; }
.hero-copy .credential-strip { overflow: hidden; }

/* FirstFlex introduction and lesson offerings share one column. */
.firstflex-grid { grid-template-columns: 1fr; gap: 24px; align-items: start; }
.lesson-components { padding-top: 0; }
.lesson-components .component:first-child { border-top: 0; }

/* Compact, unboxed lesson offerings with unchanged text sizes. */
.lesson-offerings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 48px; margin: 0; padding-left: 22px; }
.lesson-offerings li { padding-left: 4px; margin: 0; }
.lesson-offerings li:last-child { margin-bottom: 0; }
.lesson-offerings li::marker { color: var(--accent); }
.lesson-offerings h3 { font-size: 16px; margin-bottom: 3px; }
.lesson-offerings p { color: var(--muted); font-size: 12px; line-height: 1.65; }
@media (max-width: 380px) { .lesson-offerings h3 { font-size: 15px; } }
@media (max-width: 640px) { .lesson-offerings { grid-template-columns: minmax(0, 1fr); } }

/* Full-width newsletter signup. */
.newsletter-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.newsletter-card-intro { font-size: 16px; margin: 0 0 24px; }
#kit-form-container form { width: 100% !important; max-width: none !important; }

/* Tight spacing between the lesson list and newsletter signup. */
.firstflex-section { padding-bottom: 20px; }
.newsletter-section { padding: 20px 0; }
.newsletter-card { padding: 22px; }
.newsletter-message > h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.12; margin: 0 0 10px; }
.newsletter-card-intro { margin: 0 0 16px; }

.newsletter-card-intro { margin-bottom: 4px; }

/* Keep the introduction beside the signup, with a compact phone layout. */
.about-content-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 75px; align-items: start; }
.about-education .section-heading { margin-bottom: 20px; }
.about-business .headshot-card { margin: 0 0 28px auto; }
@media (max-width: 900px) { .about-content-columns { gap: 40px; } }
@media (max-width: 760px) {
  .about-content-columns { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .about-business .headshot-card { margin-left: 0; }
}
.newsletter-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.newsletter-message, .newsletter-card .kit-shell { min-width: 0; }
#kit-form-container .formkit-form { padding: 0 !important; }
#kit-form-container .formkit-fields { margin-top: 0 !important; }
@media (max-width: 640px) {
  .newsletter-card { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
