/* One document and one set of assets. Desktop: 08; compact mobile: m01. */
.mobile-only, .booking-float { display: none; }
.responsive-fold > summary { list-style: none; }
.responsive-fold > summary::-webkit-details-marker { display: none; }
.contact-field { min-width: 0; }
.contact-method { display: flex; gap: 6px; min-width: 0; border: 0; margin: 0 0 6px; padding: 0; }
.contact-method label { position: relative; flex: 1; min-width: 0; cursor: pointer; }
.contact-method input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.contact-method span { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px; border-radius: 15px; font-size: 14px; border: 1px solid var(--line); }
.contact-method input:checked + span { background: var(--wash); border-color: var(--accent); color: var(--accent); }
.contact-method input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
button, a { touch-action: manipulation; }

@media (max-width: 760px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
  html { scroll-padding-top: 16px; }
  body { font-size: 16px; padding-top: env(safe-area-inset-top, 0px); padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .wrap { width: calc(100% - 44px); max-width: 540px; }
  .site-header { min-height: 70px; gap: 14px; }
  .wordmark { font-size: 25px; }
  .header-book { padding: 0; border: 0; color: var(--accent); font-size: 14px; }
  .eyebrow { font-size: 12px; font-weight: 550; letter-spacing: .055em; color: var(--muted); }
  .button { min-height: 48px; font-weight: 500; }
  .profile-section { grid-template-columns: minmax(0, 1fr) 124px; gap: 0 14px; align-items: center; background: none; padding: 18px 0 22px; border-radius: 0; margin-top: 0; }
  .profile-copy { min-width: 0; }
  .profile-copy .eyebrow { font-size: 11px; }
  .profile-copy h1 { font-size: 43px; line-height: 1.13; letter-spacing: -.045em; margin: 10px 0 0; }
  .profile-copy .intro-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 9px; margin-top: 14px; border-radius: 99px; background: var(--wash); color: var(--accent); font-size: 11px; }
  .profile-album { padding: 0; }
  .portrait-photo { padding: 0; transform: none; box-shadow: none; border-radius: 0; background: none; }
  .portrait-photo img { width: 124px; height: 162px; border-radius: 70px 70px 30px 30px; object-position: 50% 37%; }
  .portrait-photo figcaption, .city-photo { display: none; }
  .intro-lead { grid-column: 1 / -1; font-size: 17px; line-height: 1.55; margin-top: 19px; max-width: 360px; }
  .life-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 18px 20px; border-radius: 24px; background: var(--wash); color: var(--accent); }
  .life-note p { font-size: 20px; line-height: 1.35; letter-spacing: -.035em; }
  .life-note strong { font-weight: 500; }
  .soft-dot { width: 26px; height: 38px; background: #d4bdce; border-radius: 50%; transform: rotate(24deg); flex-shrink: 0; }
  .story-section { padding: 0; }
  .diary-fold, .credentials { border: 1px solid var(--line); border-radius: 24px; background: var(--paper); overflow: hidden; }
  .fold-summary { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 17px; cursor: pointer; }
  .fold-summary strong { display: block; font-size: 16px; font-weight: 500; line-height: 1.35; }
  .fold-summary small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
  .fold-summary::after { content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); margin: 0 3px 5px auto; border-radius: 1px; }
  [open] > .fold-summary::after { transform: rotate(225deg); margin-top: 8px; }
  .diary-symbol { width: 58px; height: 64px; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
  .fold-content { padding: 0 17px 17px; }
  .story-section .section-header, .margin-note, .teaching-note { display: none; }
  .story-layout { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
  .train-photo { order: 0; }
  .train-photo img { height: 160px; border-radius: 19px; }
  .train-photo figcaption { display: none; }
  .story-copy h2 { font-size: 23px; }
  .story-copy > p { font-size: 15px; line-height: 1.6; margin: 9px 0 0; color: var(--muted); }
  .story-copy .text-link, .photo-note .text-link { font-size: 14px; }
  .diary-notes { display: block; margin-top: 15px; border-top: 1px solid var(--line); padding-top: 18px; }
  .photo-note { display: block; }
  .photo-note img { width: 100%; height: 160px; transform: none; border-radius: 19px; margin-bottom: 14px; }
  .diary-notes h3 { font-size: 21px; margin-bottom: 9px; }
  .diary-notes p { font-size: 15px; color: var(--muted); }
  .why-section { padding: 27px 0 0; border: 0; }
  .section-heading { margin: 0 0 19px; gap: 0; }
  .section-heading h2 { margin-top: 8px; font-size: 25px; }
  .section-heading > p { display: none; }
  .reasons { gap: 14px; }
  .reasons article { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 5px 12px; padding: 0; border-radius: 0; background: none; align-items: start; }
  .reason-number { width: 30px; height: 30px; font-size: 12px; margin: 0; background: var(--wash); grid-row: 1 / 3; }
  .reasons h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.025em; margin: 2px 0 0; }
  .reasons h3 br { display: none; }
  .reasons article > p { grid-column: 2; font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; }
  .reason-note, .reasons .text-link { display: none; }
  .credentials { margin-top: 19px; }
  .credentials-heading { margin-bottom: 16px; }
  .credentials-heading h3, .credentials-heading > span { display: none; }
  .credentials-heading p { font-size: 13px; margin: 0; }
  .certificate-list { --certificate-columns: 2; gap: 10px; }
  .certificate-card { padding: 10px; border-radius: 18px; }
  .certificate-card img { width: 100%; height: 95px; border-radius: 10px; }
  .certificate-card strong { font-size: 14px; margin: 9px 0 0; line-height: 1.35; }
  .certificate-card > span { font-size: 12px; margin: 3px 0 0; }
  .certificate-expand { border-radius: 18px; padding: 12px 7px; }
  .certificate-expand strong { font-size: 14px; }
  .certificate-expand > span:last-child { font-size: 12px; }
  .expand-icon { width: 32px; height: 32px; }
  .examples-section { display: flex; flex-direction: column; padding: 27px 0 0; background: none; border-radius: 0; }
  .examples-section .eyebrow, .examples-note { display: none; }
  .examples-section .section-heading h2 { margin-top: 0; }
  .examples-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .example-card { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 22px; }
  .example-image { width: 86px; height: 76px; padding: 0; border-radius: 14px; background: var(--wash); }
  .example-image img { height: 76px; width: 86px; aspect-ratio: auto; border-radius: 14px; background: none; }
  .image-count { display: none; }
  .example-caption { padding: 0; }
  .example-caption h3 { font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; margin: 0; }
  .example-caption h3 br { display: none; }
  .example-caption p { display: none; }
  .gallery-link { background: none; min-height: 28px; font-size: 13px; padding: 5px 0 0; }
  .message-fold { order: 3; margin-top: 13px; }
  .message-fold > summary { display: flex; gap: 8px; align-items: center; min-height: 48px; cursor: pointer; font-size: 14px; color: var(--muted); }
  .message-fold > summary::before { content: "+"; font-size: 21px; color: var(--accent); }
  .message-fold[open] > summary::before { content: "−"; }
  .lesson-message { padding: 15px; background: var(--wash); border-radius: 20px; margin: 0; }
  .lesson-message p { font-size: 15px; }
  .lesson-message cite { font-size: 13px; }
  .message-avatar { display: none; }
  .enrollment-section { margin: 0 auto; padding: 27px 0 0; }
  .enrollment-section > .section-header { border: 0; padding: 0; margin: 0 0 9px; }
  .enrollment-section .section-aside { display: none; }
  .booking-grid { display: grid; gap: 18px; }
  .booking-copy { display: block; padding: 0; border-radius: 0; background: none; color: var(--ink); }
  .booking-copy h2 { font-size: 30px; margin: 0; }
  .booking-copy h2 br { display: none; }
  .booking-copy h2 span { color: var(--accent); }
  .booking-description { font-size: 15px; line-height: 1.55; margin-top: 9px; color: var(--muted); }
  .booking-steps, .booking-note { display: none; }
  .booking-card { border-radius: 26px; padding: 19px; scroll-margin-top: 0; }
  .form-heading { margin-bottom: 16px; }
  .form-heading h3 { font-size: 26px; }
  .form-fieldset { margin-bottom: 10px; }
  .form-fieldset legend { font-size: 14px; }
  .format-options { gap: 10px; }
  .format-option > span { grid-template-columns: 1fr; padding: 12px; border-radius: 19px; gap: 5px; min-height: 0; }
  .format-option strong { font-size: 15px; margin: 0; }
  .option-price { font-size: 26px; }
  .format-option small { font-size: 12px; }
  .lesson-duration { font-size: 14px; padding: 7px 12px; min-height: 36px; }
  .selection-note { margin: 8px 0 12px; font-size: 13px; min-height: 20px; }
  .form-fields { grid-template-columns: 1fr; gap: 11px; }
  .field { font-size: 14px; gap: 5px; }
  .field input, .field select { font-size: 16px; height: 46px; border-radius: 14px; }
  .contact-method { margin-bottom: 6px; }
  .booking-preferences { margin: 12px 0 7px; }
  .booking-preferences summary { min-height: 62px; padding: 10px 12px; font-size: 15px; }
  .preferences-label small { font-size: 12px; }
  .preference-fields { grid-template-columns: 1fr; }
  .field-hint { font-size: 12px; }
  .submit-booking { margin-top: 5px; }
  .receipt h3 { font-size: 29px; }
  .receipt-intro, .receipt-delivery { font-size: 16px; }
  .receipt dl > div { font-size: 14px; gap: 10px; }
  .site-footer { padding: 20px 0 26px; gap: 12px; border: 0; flex-wrap: nowrap; }
  .site-footer .wordmark { font-size: 19px; }
  .site-footer p { display: none; }
  .site-footer .text-link { font-size: 13px; }
  .booking-float { display: inline-flex; position: fixed; right: max(18px, calc((100vw - 540px) / 2)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 5; gap: 10px; min-height: 48px; padding: 12px 22px; box-shadow: 0 5px 22px #30283930; font-size: 15px; }
  .calendar-icon { position: relative; display: block; width: 19px; height: 18px; border: 1.6px solid currentColor; border-radius: 5px; }
  .calendar-icon::before { content: ""; position: absolute; left: -1px; right: -1px; top: 4px; border-top: 1.6px solid currentColor; }
  .calendar-icon::after { content: ""; position: absolute; top: -4px; left: 4px; width: 2px; height: 5px; border-radius: 2px; background: currentColor; box-shadow: 6px 0 currentColor; }
  .viewer-open .booking-float { display: none; }
  .media-viewer { width: calc(100% - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); border-radius: 24px; padding: 14px; padding-top: max(14px, env(safe-area-inset-top, 0px)); padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
  .media-viewer[open] { gap: 12px; }
  .viewer-heading { gap: 10px; align-items: flex-start; }
  .viewer-heading h2 { font-size: 20px; }
  .viewer-group { font-size: 12px; }
  .viewer-button, .viewer-file { min-height: 44px; padding: 9px 14px; font-size: 14px; }
  .viewer-stage { border-radius: 16px; }
  .viewer-footer > p { font-size: 14px; margin-bottom: 10px; }
  .viewer-controls { flex-wrap: wrap; justify-content: center; gap: 9px; }
  .viewer-counter { min-width: 45px; }
  .viewer-file { margin-left: 0; background: transparent; text-decoration: underline; }
}
@media (max-width: 350px) {
  .wrap { width: calc(100% - 36px); }
  .profile-section { grid-template-columns: minmax(0, 1fr) 104px; gap: 0 10px; }
  .portrait-photo img { width: 104px; height: 145px; }
  .profile-copy h1 { font-size: 39px; }
  .profile-copy .intro-chip { font-size: 10px; }
  .booking-card { padding: 16px; }
  .format-option strong { font-size: 14px; }
  .format-option > span { padding-inline: 10px; }
  .lesson-duration { font-size: 13px; gap: 6px; }
}
