/* Shared sizing across all routes. Keep browser text scaling and form focus
   from changing the visual viewport on mobile devices. */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
body { min-width: 0; width: 100%; margin: 0; }
header, main, footer { width: 100%; min-width: 0; }
img { max-width: 100%; }
/* Photography has its own grid cell: copy never covers faces. */
.reference-hero { background: #101816; min-height: 0; }
.reference-hero::before, .everyday::before { display: none; }
.hero-inner { display: grid; grid-template-columns: 44% 56%; align-items: center; min-height: 0; padding-top: 0; padding-bottom: 0; }
.reference-hero .hero-copy { width: 100%; max-width: none; padding: 45px 20px 45px 0; }
.reference-hero h1 { font-size: clamp(54px, 6vw, 88px); }
.hero-scene { display: block; width: 100%; height: 630px; object-fit: cover; object-position: right center; }
.hero-support { border-top: 1px solid #344039; border-bottom: 1px solid #344039; background: #142019; }
.hero-support .hero-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; margin: 0 auto; padding-top: 25px; padding-bottom: 25px; }
.hero-support .hero-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: none; padding: 0; margin: 0; gap: 18px; }
.hero-support .hero-promise { display: block; text-align: center; padding: 0; background: none; font-size: 15px; line-height: 1.8; }
.hero-promise span { display: inline-block; }
.hero-support .hero-promise em { margin-top: 3px; font-size: 23px; }
.everyday { background: #f1f0ec; min-height: 0; }
.everyday .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; padding-top: 35px; padding-bottom: 35px; }
.everyday-copy { width: 100%; max-width: none; }
.everyday-scene { width: 100%; height: 370px; object-fit: cover; object-position: right center; border-radius: 6px; }
.bio-photo { align-self: start; }
.bio-photo img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 1; object-fit: contain; }
.founding-ring small { font-size: 10px; }
.founding-ring span { font-size: 16px; }
.founding-choice { display: flex; align-items: flex-start; gap: 18px; padding: 24px; margin: 24px 0 10px; border: 2px solid #657e42; border-radius: 10px; background: #e6edda; cursor: pointer; }
.founding-choice:hover { background: #dce7ca; }
.founding-choice:has(input:checked) { background: #d7e5bf; border-color: #314d20; box-shadow: 0 0 0 2px #314d2020; }
.founding-choice:has(input:focus-visible) { outline: 3px solid #446f28; outline-offset: 4px; }
.form-panel .founding-choice input { appearance: auto; width: 30px; height: 30px; min-width: 30px; flex: 0 0 30px; margin: 4px 0 0; accent-color: #365424; cursor: pointer; }
.founding-choice > span { display: block; min-width: 0; color: #172615; }
.founding-choice-title { display: block; font-size: 22px; line-height: 1.3; }
.founding-choice-price { display: block; font-size: 38px; line-height: 1.3; margin: 8px 0; }
.founding-choice-price small { font-size: 20px; font-weight: 500; }
.founding-choice-terms { display: block; font-size: 18px; line-height: 1.5; font-weight: 600; }
.founding-choice-hint { display: block; font-size: 15px; line-height: 1.5; margin-top: 12px; }
.founding-details { margin: 0 0 26px; font-size: 16px; }
.founding-choice:has(input:disabled) { opacity: .65; cursor: default; }
.session-description h3 { margin-bottom: 8px; }
.session-description p { font-size: 17px; }
.adaptive-intro p { max-width: 850px; font-size: 18px; }
.wrap { width: 100%; min-width: 0; }
.grid > *, .split > *, .bio-layout > *, .form-layout > *,
.form-row > *, .founding-grid > *, .area-home > * { min-width: 0; }
.grid.two, .split, .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.table-wrap { max-width: 100%; }
input, select, textarea { min-width: 0; max-width: 100%; }
.prose, .card, .notice, .success, .admin-item, .footer-links { overflow-wrap: anywhere; }
header > .brand { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 760px) {
  :root { --mobile-gutter: 20px; }
  html { scrollbar-gutter: auto; }
  body { font-size: 16px; }
  header {
    height: 80px;
    min-height: 80px;
    padding: 16px var(--mobile-gutter);
    gap: 12px;
  }
  header > .brand { font-size: 19px; gap: 10px; line-height: 1.25; }
  header > .brand small { font-size: 8px; letter-spacing: .15em; }
  header .brand-symbol {
    width: 44px;
    height: 34px;
    margin-right: 3px;
    flex: 0 0 44px;
    transform: scale(1.2);
  }
  header .menu {
    flex: 0 0 64px;
    width: 64px;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }
  header nav { top: 80px; padding: 24px var(--mobile-gutter); }
  .wrap, footer { padding-left: var(--mobile-gutter); padding-right: var(--mobile-gutter); }
  .page-head { padding-top: 36px; padding-bottom: 28px; }
  .page-head h1 { font-size: 42px; line-height: 1.12; overflow-wrap: anywhere; }
  .page-head p { font-size: 16px; }
  .page-body { padding-bottom: 56px; }
  .grid.two, .grid.three, .split, .bio-layout, .form-layout,
  .form-row, .admin-shell .form-row { grid-template-columns: minmax(0, 1fr); }
  .card, .form-panel { padding: 22px; }
  .trainer-card { padding: 0; }
  .form-panel input, .form-panel select, .form-panel textarea,
  .admin-shell input, .admin-shell select, .admin-shell textarea,
  #area-city { font-size: 16px; }
  .booking-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .booking-steps span { padding: 8px 5px; font-size: 11px; }
  .button { max-width: 100%; white-space: normal; }
  .reference-hero .hero-copy { width: 100%; max-width: none; }
  .reference-hero h1 { font-size: clamp(52px, 16vw, 69px); }
  .hero-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-benefits > div { gap: 6px; }
  .location-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .location-strip a { min-width: 0; padding-left: 3px; padding-right: 3px; }
  .founding-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell { padding-left: var(--mobile-gutter); padding-right: var(--mobile-gutter); }
  .admin-shell nav.admin-nav { width: 100%; }
  .admin-shell .admin-head { flex-wrap: wrap; }
}
@media (max-width: 359px) {
  :root { --mobile-gutter: 16px; }
  header > .brand { font-size: 16px; gap: 8px; }
  header > .brand small { font-size: 7px; }
  header .brand-symbol { width: 36px; flex-basis: 36px; margin-right: 0; }
  header .menu { flex-basis: 58px; width: 58px; }
  .page-head h1 { font-size: 38px; }
  .card, .form-panel { padding: 18px; }
  .trainer-card { padding: 0; }
  .hero-benefits { padding-left: 6px; padding-right: 6px; }
  .hero-benefits strong, .hero-benefits small { font-size: 10px; }
}
@media (max-width: 760px) {
  .hero-inner { display: flex; flex-direction: column; min-height: 0; padding-top: 0; padding-bottom: 0; }
  .reference-hero { min-height: 0; background-image: none; }
  .reference-hero .hero-copy { padding: 35px 0 25px; }
  .hero-scene { width: 100%; height: auto; aspect-ratio: 1.1; object-fit: cover; border-radius: 6px; }
  .hero-support .hero-aside { grid-template-columns: 1fr; gap: 22px; }
  .hero-support .hero-benefits { gap: 10px; }
  .hero-support .hero-benefits strong, .hero-support .hero-benefits small { font-size: 13px; }
  .hero-support .hero-promise { font-size: 14px; }
  .everyday .wrap { grid-template-columns: 1fr; gap: 25px; }
  .everyday-scene { height: auto; aspect-ratio: 1.2; object-fit: cover; }
  .bio-photo img { height: auto; max-height: none; object-fit: contain; }
  .founding-choice { padding: 18px 14px; gap: 12px; }
  .founding-choice-title { font-size: 21px; }
  .founding-choice-terms { font-size: 18px; }
  .founding-ring span { font-size: 13px; }
  .founding-ring small { font-size: 8px; }
}
