:root {
  --ink: #232724;
  --cream: #f7f3e9;
  --paper: #fbfaf7;
  --line: #d4cdc0;
  --orange: #f06724;
  --blue: #6fa3d9;
  --yellow: #f2c848;
  --sage: #596d66;
  --orange-text: #8f350d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: none; }
a, button, summary { touch-action: manipulation; }
:where(a, button, summary, [tabindex="0"]):focus-visible { outline: 3px solid #1253a0; outline-offset: 4px; box-shadow: 0 0 0 6px var(--paper); }
main:focus, section:focus { outline: none; }

.skip-link { position: fixed; z-index: 20; top: 14px; left: 14px; transform: translateY(-160%); padding: 11px 14px; background: white; color: var(--ink); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 2; min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 12px clamp(20px, 6vw, 96px); background: var(--paper); border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 1.25rem; font-weight: 400; letter-spacing: -.04em; text-decoration: none; white-space: normal; max-width: 100%; }
.wordmark strong, .footer-name strong { color: var(--orange); font-weight: 400; }
.wordmark strong { color: var(--orange-text); }
.site-header nav { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 42px); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border-bottom: 1px solid transparent; color: var(--ink); font-size: 0.8125rem; font-weight: 800; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.site-header nav a:hover { color: var(--orange-text); border-bottom-color: var(--orange-text); }
.site-header nav a[aria-current="page"] { color: var(--sage); border-bottom-color: var(--sage); }

.site-shell { position: relative; }
.hero { position: relative; display: flex; align-items: center; min-height: clamp(390px, 55vw, 820px); padding: clamp(58px, 9vw, 150px) clamp(22px, 5.2vw, 90px); background: #010b16; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-image { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }

.welcome { display: grid; grid-template-columns: minmax(300px, .88fr) minmax(330px, 1.12fr); align-items: center; gap: clamp(46px, 10vw, 170px); padding: clamp(68px, 11vw, 155px) max(22vw, 144px) clamp(68px, 11vw, 155px) clamp(22px, 9vw, 144px); background: var(--cream); }
.welcome-note { position: relative; max-width: 470px; padding: 46px clamp(30px, 4.2vw, 62px) 52px; background: var(--yellow); box-shadow: 10px 11px 0 rgba(35, 39, 36, .12); transform: rotate(-1.2deg); }
.note-pin { position: absolute; top: 17px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); transform: translateX(-50%); }
.tiny-heading { margin: 0 0 19px; font-size: 0.8125rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.welcome h2, .library-heading h2, .questions h2 { margin-bottom: 24px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.6875rem, 5.3vw, 4.9375rem); font-weight: 400; letter-spacing: -.065em; line-height: 1.05; }
h2 em { color: var(--orange-text); font-weight: 400; }
.welcome-note > p:not(.tiny-heading) { max-width: 380px; margin-bottom: 28px; font-size: 1.0625rem; line-height: 1.55; }
.ink-link { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid currentColor; color: var(--ink); font-size: 0.75rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.ink-link:hover { color: var(--orange-text); }
.welcome-copy { max-width: 620px; }
.large-copy { margin-bottom: 37px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.4375rem, 2.5vw, 2.1875rem); letter-spacing: -.04em; line-height: 1.18; }
.three-words { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.driving-term { display: inline-flex; }
.term-label { display: inline-block; padding: 9px 13px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font-family: inherit; font-size: 0.75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; }
.driving-term:first-child .term-label { background: #424944; border-color: #424944; color: var(--cream); }
.driving-term:nth-child(2) .term-label { background: var(--blue); transform: rotate(2deg); }
.driving-term:nth-child(3) .term-label { background: var(--orange); color: var(--ink); transform: rotate(-2deg); }
.term-label:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.term-tooltip { position: absolute; z-index: 5; top: calc(100% + 12px); left: 0; width: min(320px, calc(100vw - 44px)); padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 6px 18px rgba(35, 39, 36, .16); font-size: 1rem; font-weight: 400; line-height: 1.5; letter-spacing: normal; text-transform: none; }
.term-tooltip::before { content: ''; position: absolute; bottom: 100%; left: 0; right: 0; height: 13px; }

.photo-lessons { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 calc((max(22vw, 75px) + clamp(22px, 4.5vw, 75px)) / 2) clamp(55px, 7vw, 105px); background: var(--ink); }
.photo-note { position: relative; margin-top: clamp(40px, 7vw, 100px); color: var(--ink); }
.photo-note:nth-child(1) { z-index: 3; transform: rotate(-1.3deg); }
.photo-note:nth-child(2) { z-index: 2; margin-top: clamp(77px, 11vw, 155px); transform: rotate(1.5deg); }
.photo-note:nth-child(3) { z-index: 1; transform: rotate(-.7deg); }
.photo-note img { width: 100%; aspect-ratio: 1.08; object-fit: cover; filter: saturate(.84); }
.photo-note > div { min-height: 234px; padding: 25px clamp(19px, 2.7vw, 39px) 31px; }
.photo-note-blue > div { background: var(--blue); }
.photo-note-cream > div { background: var(--cream); }
.photo-note-orange > div { background: var(--orange); color: var(--ink); }
.photo-note h2 { margin-bottom: 12px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 400; letter-spacing: -.05em; line-height: 1.1; }
.photo-note p { max-width: 340px; margin-bottom: 0; font-size: 0.9375rem; line-height: 1.43; }

.course-library { padding: clamp(78px, 10vw, 150px) max(22vw, 144px) clamp(78px, 10vw, 150px) clamp(22px, 9vw, 144px); background: var(--paper); }
.library-heading { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, .65fr); gap: 43px; padding-bottom: clamp(65px, 9vw, 120px); }
.library-heading > p { align-self: end; max-width: 430px; margin-bottom: 7px; color: #5e625d; font-size: 1rem; line-height: 1.55; }
.course-route { border-top: 2px solid var(--ink); }
.route-stop { display: grid; grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr); gap: clamp(28px, 7vw, 110px); padding: 36px 0; border-bottom: 1px solid var(--line); }
.route-stop h3 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; color: var(--sage); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.6875rem, 3vw, 2.5rem); font-weight: 400; letter-spacing: -.055em; line-height: 1.1; }
.group-number { flex-shrink: 0; font-size: 1em; line-height: inherit; font-variant-numeric: lining-nums tabular-nums; }
.route-stop-intro p { max-width: 310px; margin-bottom: 0; color: #5f635e; font-size: 0.875rem; line-height: 1.46; }
.course-list { display: grid; }
.course-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-width: 0; min-height: 110px; padding: 16px 12px; background: #f6f2e7; color: var(--ink); text-decoration: none; transition: background .2s; }
.course-list a + a { border-top: 1px solid var(--line); }
.course-list a:hover { background: var(--yellow); }
.course-list strong { font-size: 1rem; letter-spacing: -.02em; line-height: 1.35; }
.course-thumbnail { position: relative; flex: 0 0 clamp(7rem, 24%, 8rem); aspect-ratio: 1.65; overflow: hidden; border: 1px solid #91a093; border-radius: 10px; background: var(--paper); }
.course-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: auto; max-width: none; transform: translateY(-4%); }
.course-details { display: grid; flex: 1 1 10rem; min-width: 0; gap: 6px; }
@media (max-width: 560px) {
  .course-thumbnail { flex-basis: clamp(5.25rem, 22vw, 6rem); }
  .course-details { flex-basis: 8rem; }
}
.course-list small { font-size: 0.6875rem; font-weight: 800; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; }

.videos-page { min-height: 65vh; padding: clamp(60px, 8vw, 112px) clamp(22px, 9vw, 144px); background: var(--cream); }
.videos-intro { max-width: 760px; }
.videos-intro .tiny-heading { color: var(--sage); }
.videos-intro h1 { margin: 0 0 24px; color: var(--sage); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 400; line-height: 1.1; letter-spacing: -.06em; }
.videos-intro > p:last-child { max-width: 620px; margin-bottom: 42px; font-size: 1.1875rem; line-height: 1.55; }
.video-empty { max-width: 760px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-left: 4px solid var(--sage); background: var(--paper); }
.video-empty h2 { margin: 0 0 14px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.6875rem, 3vw, 2.25rem); font-weight: 400; line-height: 1.12; letter-spacing: -.035em; }
.video-empty p { max-width: 540px; margin-bottom: 22px; color: #5f635e; font-size: 1rem; line-height: 1.55; }

.belief { display: flex; align-items: center; min-height: 490px; padding: clamp(68px, 9vw, 130px) max(24vw, 190px) clamp(68px, 9vw, 130px) clamp(22px, 12vw, 190px); overflow: hidden; background: #061424; color: var(--paper); }
.belief blockquote { position: relative; z-index: 1; max-width: 850px; margin: 0; }
.belief blockquote p { margin-bottom: 33px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.25rem, 5vw, 4.375rem); font-weight: 400; letter-spacing: -.06em; line-height: 1.1; }
.belief blockquote em { color: var(--yellow); font-weight: 400; }
.belief blockquote footer { font-size: 0.8125rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.about-us { min-height: 60vh; align-content: start; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 7vw, 110px); padding: clamp(78px, 10vw, 150px) clamp(22px, 9vw, 144px); background: var(--cream); }
.about-heading h1 { margin: 0 0 28px; color: var(--sage); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.6875rem, 5.3vw, 4.9375rem); font-weight: 400; line-height: 1.1; letter-spacing: -.06em; }
.about-copy { max-width: 680px; }
.about-copy > p:not(.tiny-heading) { margin-bottom: 23px; font-size: 1.125rem; line-height: 1.65; }
.license-link { display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; text-align: inherit; cursor: pointer; text-decoration-line: underline; color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.license-link:hover { color: var(--ink); }
.license-link:focus-visible, .license-close:focus-visible, .license-agree a:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
body.license-is-open { overflow: hidden; }
.license-dialog { width: min(860px, calc(100% - 36px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 90px rgba(0, 0, 0, .3); }
.license-dialog::backdrop { background: rgba(6, 20, 36, .65); }
.license-frame { display: flex; flex-direction: column; max-height: 88vh; max-height: 88dvh; }
.license-header { display: flex; flex-shrink: 0; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 32px 22px; border-bottom: 1px solid var(--line); }
.license-header .tiny-heading { margin-bottom: 10px; color: var(--sage); }
.license-header h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; }
.license-close { display: inline-flex; flex-shrink: 0; align-items: center; gap: 9px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--cream); color: var(--ink); font: 700 .8125rem Arial, Helvetica, sans-serif; cursor: pointer; }
.license-close:hover { background: #e8e8dd; }
.license-close span { font-size: 1.4375rem; font-weight: 400; line-height: 1; }
.license-body:focus-visible { outline: 2px solid var(--sage); outline-offset: -6px; box-shadow: none; }
.license-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px 32px; overflow-wrap: anywhere; font-size: 0.9375rem; line-height: 1.65; }
.license-body p { margin-bottom: 20px; }
.license-body h3 { margin: 34px 0 17px; padding-top: 23px; border-top: 1px solid var(--line); color: var(--sage); font-family: Georgia, 'Times New Roman', serif; font-size: 1.6875rem; font-weight: 400; }
.license-subclause { margin-left: 24px; }
.license-agree { margin: 28px 0 0; }
.license-agree a { display: inline-block; padding: 12px 22px; border-radius: 5px; background: var(--sage); color: white; font-size: 0.8125rem; font-weight: 700; letter-spacing: .05em; text-decoration: none; }

.questions { display: grid; grid-template-columns: minmax(260px, .84fr) minmax(300px, 1.16fr); gap: clamp(50px, 13vw, 210px); padding: clamp(78px, 10vw, 150px) max(22vw, 144px) clamp(78px, 10vw, 150px) clamp(22px, 9vw, 144px); background: var(--cream); }
.questions .ink-link { margin-top: 13px; }
.question-list { border-top: 1px solid var(--ink); }
.question-list details { border-bottom: 1px solid var(--line); }
.question-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; font-family: Georgia, 'Times New Roman', serif; font-size: 1.125rem; letter-spacing: -.03em; list-style: none; }
.question-list summary:focus-visible { outline-offset: -4px; box-shadow: none; }
.question-list summary::-webkit-details-marker { display: none; }
.question-list summary span { color: var(--orange-text); font-size: 1.5625rem; line-height: .6; }
.question-list details[open] summary span { transform: rotate(45deg); }
.question-list p { max-width: 560px; margin-bottom: 0; padding-bottom: 24px; color: #5c615c; font-size: 0.9375rem; line-height: 1.5; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 30px; padding: 50px clamp(22px, 9vw, 144px) 27px; background: var(--ink); color: var(--cream); }
.site-footer > p { flex: 0 1 19rem; max-width: 100%; text-align: left; }
.footer-name { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.5625rem; letter-spacing: -.05em; }
.site-footer > p:not(.footer-name) { max-width: 100%; margin: 2px 0 0; color: rgba(255, 255, 255, .65); font-size: 0.875rem; line-height: 1.45; }
.site-footer div { display: flex; flex-direction: column; align-items: flex-end; max-width: 100%; gap: 11px; text-align: right; }
.site-footer a { display: inline-block; min-height: 32px; padding: 6px 0; overflow-wrap: anywhere; border-bottom: 1px solid rgba(255, 255, 255, .45); color: var(--cream); font-size: 0.8125rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.site-footer .footer-email { text-transform: none; letter-spacing: normal; overflow-wrap: normal; word-break: normal; hyphens: none; }
.footer-email span { white-space: nowrap; }
.site-footer a:hover { color: var(--yellow); }
.site-footer small { flex-basis: 100%; padding-top: 35px; border-top: 1px solid rgba(255, 255, 255, .18); color: #b9beb8; font-size: 0.75rem; letter-spacing: .09em; text-transform: uppercase; }

@media (max-width: 850px) {
  .site-header { height: auto; min-height: 76px; flex-wrap: wrap; gap: 12px 22px; padding-top: 16px; padding-bottom: 16px; }
  .welcome, .library-heading, .questions, .about-us { grid-template-columns: 1fr; }
  .photo-lessons { grid-template-columns: 1fr 1fr; gap: 18px; padding: 35px 22px 64px; }
  .photo-note, .photo-note:nth-child(2), .photo-note:nth-child(3) { margin-top: 0; transform: none; }
  .photo-note:nth-child(3) { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }
  .route-stop { grid-template-columns: 1fr; gap: 30px; }
  .belief { min-height: 420px; }
}

@media (max-width: 560px) {
  .site-header { height: auto; min-height: 68px; padding: 15px 18px; }
  .wordmark { font-size: 1.0625rem; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 0.75rem; }
  .hero { height: 330px; }
  .hero-media { inset: -5% -25% -12%; }
  .hero-image { object-position: 61% center; }
  .welcome { gap: 56px; padding: 64px 22px; background: var(--cream); }
  .welcome-note { padding: 43px 28px 46px; }
  .photo-lessons { grid-template-columns: 1fr; gap: 26px; padding: 35px 22px 64px; background: var(--ink); }
  .photo-note:nth-child(3) { grid-column: auto; width: auto; justify-self: stretch; }
  .photo-note > div { min-height: 0; }
  .course-library { padding: 70px 22px; background: var(--paper); }
  .belief { padding: 63px 22px; background: #061424; }
  .about-us { padding: 70px 22px; gap: 30px; }
  .about-copy > p:not(.tiny-heading) { font-size: 1.0625rem; }
  .license-dialog { width: calc(100% - 24px); }
  .license-frame { max-height: 92vh; max-height: 92dvh; }
  .license-header { gap: 12px; padding: 20px 18px 18px; }
  .license-header .tiny-heading { font-size: 0.75rem; }
  .license-header h2 { font-size: 1.5rem; }
  .license-close { gap: 6px; padding: 8px; }
  .license-body { padding: 22px 18px; }
  .questions { padding: 70px 22px; background: var(--cream); }
  .site-footer { grid-template-columns: minmax(0, 1fr); padding: 43px 22px 24px; }
  .site-footer small { padding-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Live text replaces the former image of text in the banner. */
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 11, 22, .2), transparent 70%); }
.hero-copy { position: relative; z-index: 1; max-width: 100%; color: #fff; }
.hero-copy h1 { width: fit-content; background: transparent; margin: 0 0 34px; max-width: 1320px; font-size: clamp(2.625rem, 7.6vw, 8.25rem); line-height: 1.08; font-weight: 750; letter-spacing: -.04em; text-shadow: 0 2px 7px #010b16; }
.hero-copy h1 span { display: block; color: #ff8b23; }
.hero-copy p { display: inline-block; max-width: 700px; margin: 0; padding: 5px 10px 5px 0; background: transparent; text-shadow: 0 2px 7px #010b16; font-size: clamp(1.375rem, 2.7vw, 2.875rem); line-height: 1.35; }
.ink-link { min-height: 32px; padding-top: 6px; line-height: 1.5; }
.term-label { min-height: 44px; }
.driving-term { position: relative; }
.term-tooltip { width: min(320px, calc(100vw - 44px)); }
.driving-term:nth-child(2) .term-tooltip { left: 50%; transform: translateX(-50%); }
.driving-term:nth-child(3) .term-tooltip { left: auto; right: 0; }
.questions > div > p { line-height: 1.5; }
.course-list a:focus-visible { background: var(--yellow); }
@media (max-width: 1100px) {
  .welcome, .course-library, .belief, .questions { padding-left: clamp(22px, 6vw, 96px); padding-right: clamp(22px, 6vw, 96px); }
  .welcome { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; }
  .library-heading { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .questions { grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: 6vw; }
}
@media (max-width: 850px) {
  .welcome, .library-heading, .questions { grid-template-columns: minmax(0, 1fr); }
  .welcome-note { max-width: 100%; }
}
@media (max-width: 560px) {
  .site-header nav { gap: 4px 18px; }
  .hero { height: auto; min-height: 410px; padding-bottom: 190px; }
  .hero-media { inset: 0; }
  .hero-image { position: absolute; bottom: 0; height: 180px; object-position: right bottom; }
  .hero-media::after { background: linear-gradient(to bottom, #010b16 calc(100% - 180px), transparent calc(100% - 140px)); }
  .hero-copy h1 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .hero-copy p { font-size: 1.375rem; }
  .hero-line-break { display: none; }
  .welcome-note { transform: none; padding: 43px 22px; }
  .three-words { gap: 10px; }
  .driving-term { position: static; }
  .driving-term .term-tooltip { left: 0; right: auto; transform: none; width: 100%; }
  .site-footer a { max-width: 100%; }
  .license-header { flex-wrap: wrap; gap: 10px; }
  .license-close { order: -1; margin-left: auto; }
}
@media (forced-colors: active) {
  a, button, summary { forced-color-adjust: auto; }
  :focus-visible { outline: 3px solid Highlight !important; box-shadow: none !important; }
  .term-label, .license-close, .license-dialog, .term-tooltip { border: 1px solid ButtonText; }
  .hero-media { display: none; }
}

/* Let changing content shrink and wrap inside the responsive grid cells. */
.site-header > *, .welcome > *, .library-heading > *, .route-stop > *, .questions > *, .about-us > *, .site-footer > * { min-width: 0; }
.course-list strong, .route-stop-intro p, .about-copy p, .video-empty p { overflow-wrap: normal; }
.hero-copy p { max-width: min(700px, 100%); }

/* Size card headings from their available space, keeping complete words together. */
.welcome-note { container-type: inline-size; }
.welcome-note h2 { font-size: clamp(1.625rem, 17cqi, 4.5rem); line-height: 1.1; }
.photo-note { container-type: inline-size; min-width: 0; }
.photo-note h2 { font-size: clamp(1.5rem, 10cqi, 2.75rem); }
.route-stop h3 > span:last-child { min-width: 0; }
@media (max-width: 1100px) and (min-width: 851px) {
  .welcome-note { padding-left: clamp(24px, 3vw, 36px); padding-right: clamp(24px, 3vw, 36px); }
  .photo-lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 48px clamp(22px, 6vw, 66px) 64px; }
  .photo-note, .photo-note:nth-child(2), .photo-note:nth-child(3) { margin-top: 0; transform: none; }
  .photo-note:nth-child(3) { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }
}

/* Distribute the three blocks across the full footer; stack them when space is limited. */
@media (max-width: 1100px) {
  .site-footer > p { flex-basis: 100%; }
  .site-footer div { margin-left: 0; align-items: flex-start; text-align: left; }
}

/* Full-page version of the existing agreement for legacy links and no-script access. */
.terms-page{max-width:1000px;margin:0 auto;padding:56px clamp(20px,5vw,64px) 72px;line-height:1.7}.terms-page h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.15;margin:12px 0 32px;overflow-wrap:break-word}.terms-page h2{margin:40px 0 16px}.terms-page p{margin:0 0 18px}.terms-page .license-subclause{padding-left:20px}.terms-page .license-agree{margin-top:36px}
