/* Last-loaded site-wide responsive layer */

html { -webkit-text-size-adjust: 100%; }

img, video, iframe, svg, canvas {
  max-width: 100%;
}

.btn,
.banner-actions,
.buy-row,
.hero-actions {
  max-width: 100%;
}

.talk-bubble,
.quote p,
.banner-lead,
.banner-ideal,
.page-hero h1,
.page-film h1,
.lesson-track span {
  overflow-wrap: anywhere;
}

.banner-learn-copy,
.banner-overview-copy,
.banner-learn-grid > *,
.banner-overview-grid > *,
.page-film .container,
.nav-shell > * {
  min-width: 0;
}

.page-film h1 {
  max-width: 100%;
}

.price-row,
.pdp-thumbs,
.audio-controls {
  flex-wrap: wrap;
}

.nav-shell {
  grid-template-columns: minmax(0, 1fr) auto;
}

.brand {
  min-width: 0;
}

.nav-tools {
  min-width: 0;
}

.buy-row > *,
.banner-actions > *,
.hero-actions > * {
  min-width: 0;
}

.buy-row .btn,
.buy-row .btn-amazon,
.banner-actions .btn,
.banner-actions .btn-amazon {
  max-width: 100%;
}

.stripe-card {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .book-banner-viewport,
  .book-banner-slide.is-on {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .banner-learn-grid,
  .banner-overview-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .banner-learn-copy,
  .banner-overview-copy {
    justify-content: flex-start;
    max-width: 100%;
  }

  .banner-learn-copy .banner-lead,
  .banner-learn-copy .banner-ideal,
  .banner-overview-copy .banner-lead,
  .banner-overview-copy .banner-ideal,
  .banner-learn-list {
    max-width: 100%;
  }

  .banner-portrait {
    height: auto;
    min-height: 0;
  }

  .banner-portrait img {
    height: auto;
    min-height: min(52vh, 480px);
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .banner-product {
    width: min(100%, 420px);
  }

  .book-banner-ui {
    padding: 8px 16px 12px;
  }

  .quote-grid,
  .pdp-grid,
  .checkout-wrap,
  .about-collage,
  .book-shelf,
  .overlap {
    grid-template-columns: 1fr;
  }

  .film-band-copy {
    width: min(calc(100% - 40px), 720px);
    margin-left: auto;
    margin-right: auto;
  }

  .buy-row {
    width: 100%;
  }

  .buy-row .btn,
  .buy-row .btn-amazon {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
    white-space: normal;
    text-align: center;
    min-height: 48px;
    height: auto;
    padding-block: 10px;
    line-height: 1.25;
  }

  .buy-row .qty {
    flex: 1 1 140px;
  }

  .banner-actions {
    width: 100%;
  }

  .banner-actions .btn,
  .banner-actions .btn-amazon {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .container,
  .container-wide {
    width: min(calc(100% - 24px), var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .site-header {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .site-header.is-inner .nav-shell,
  .site-header.is-solid .nav-shell,
  .page-home .nav-shell {
    height: 52px;
    padding: 0 4px 0 10px;
    min-width: 0;
  }

  .brand img {
    height: 28px;
    max-width: min(128px, 34vw);
  }

  .btn:not(.nav-cta) {
    height: auto;
    padding-block: 10px;
  }

  .nav-cta {
    display: inline-flex;
    flex-shrink: 0;
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .nav-tools {
    justify-self: end;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .banner-learn h1,
  .banner-overview h2 {
    font-size: clamp(32px, 9vw, 48px);
  }

  .banner-learn-copy,
  .banner-overview-copy {
    padding: calc(var(--nav-h) + 18px) 20px 32px;
  }

  .banner-portrait img {
    min-height: 340px;
  }

  .banner-portrait figcaption {
    padding-bottom: 24px;
  }

  .banner-overview-aside {
    padding: 8px 20px 28px;
  }

  .banner-product {
    width: 100%;
  }

  .banner-qr {
    grid-template-columns: 72px 1fr;
  }

  .banner-qr img {
    width: 72px;
    height: 72px;
  }

  .banner-actions {
    width: 100%;
  }

  .banner-actions .btn,
  .banner-actions .btn-amazon {
    flex: 1 1 100%;
    justify-content: center;
  }

  .measure-row {
    width: min(calc(100% - 24px), 1360px);
    grid-template-columns: 1fr 1fr;
  }

  .feature-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .buy-row {
    width: 100%;
  }

  .buy-row .btn,
  .buy-row .btn-amazon,
  .buy-row .qty {
    flex: 1 1 100%;
    justify-content: center;
    min-height: 48px;
  }

  .qty {
    width: 100%;
    justify-content: space-between;
  }

  .pdp {
    padding: 24px 0 96px;
  }

  .pdp-thumbs button {
    width: 64px;
    height: 64px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px 16px;
  }

  .panel .btn {
    width: 100%;
    white-space: normal;
    line-height: 1.25;
  }

  .page-hero {
    padding: 112px 16px 36px;
  }

  .page-film {
    min-height: 38vh;
    padding: 112px 16px 32px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .page-film h1 {
    font-size: clamp(28px, 8.4vw, 48px);
    max-width: 100%;
  }

  .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-row input,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .search-row input {
    min-width: 0;
  }

  .footer-blurb,
  .footer-copy {
    padding: 0 8px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .product-grid,
  .page-shop .product-grid {
    grid-template-columns: 1fr;
  }

  .cart-drawer {
    width: 100%;
  }

  .audio-controls {
    gap: 8px;
  }

  .audio-controls .btn {
    width: auto;
    flex: 1 1 auto;
  }

  .audio-player input[type="range"] {
    min-width: 0;
    flex: 1 1 80px;
  }

  .card-actions {
    flex-wrap: wrap;
  }

  .card-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 12px;
    font-size: 12px;
  }

  .toast-stack {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .toast {
    min-width: 0;
    max-width: 100%;
  }

  .film-band {
    min-height: 0;
  }

  .film-band-copy {
    width: min(calc(100% - 28px), 720px);
    margin: 0 auto;
    padding: 28px 0 40px;
  }
}

@media (max-width: 640px) {
  .banner-learn-copy,
  .banner-overview-copy {
    padding: calc(var(--nav-h) + 14px) 16px 28px;
  }

  .banner-meta {
    gap: 6px 12px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .icon-btn svg {
    width: 17px;
    height: 17px;
  }

  .talk-line {
    max-width: 100%;
  }

  .btn:not(.nav-cta) {
    white-space: normal;
    text-align: center;
  }

  .page-account .page-hero h1 {
    font-size: clamp(26px, 8vw, 40px);
    word-break: break-word;
  }

  .nav-cta {
    padding: 0 10px;
  }

  .nav-icons {
    gap: 0;
  }

  .lesson-track {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .lesson-track small {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .brand img {
    height: 24px;
    max-width: min(110px, 36vw);
  }

  .banner-learn-copy,
  .banner-overview-copy {
    padding: calc(var(--nav-h) + 12px) 16px 24px;
  }

  .banner-portrait img {
    min-height: 280px;
  }

  .book-banner-arrow {
    width: 40px;
    height: 40px;
  }

  .measure-row {
    grid-template-columns: 1fr;
  }

  .measure-row > div + div::before {
    display: none;
  }

  .measure-row > div {
    padding: 18px 0;
  }

  .measure-row > div + div {
    border-top: 1px solid rgba(11, 31, 51, 0.08);
    padding-left: 0;
  }

  .nav-shell {
    gap: 4px;
  }

  .nav-cta {
    padding: 0 8px;
    font-size: 10px;
  }
}

@media (max-width: 1100px) and (max-height: 700px) {
  .book-banner-viewport,
  .book-banner-slide.is-on {
    height: auto;
    min-height: 0;
  }

  .banner-portrait img {
    min-height: 240px;
  }
}
