/* Phone and tablet refinements to the existing S.V. Crown design. */
@media (min-width: 1241px) and (pointer: coarse) {
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 10px; font-size: .875rem; }
  .card-link { display: block; min-height: 44px; padding: 10px 0; }
  .detail > a { min-height: 44px; padding: 8px 0; }
  .footer a:not(.brand) { min-height: 44px; padding: 10px 0; margin-bottom: 4px; font-size: .875rem; }
  .footer .footer-bottom a { display: inline-flex !important; align-items: center; padding: 8px 4px; }
  a, button { touch-action: manipulation; }
}
@media (max-width: 1240px) {
  body { font-size: 1rem; }
  .container {
    width: calc(100% - 40px);
    width: calc(100% - max(20px, env(safe-area-inset-left)) - max(20px, env(safe-area-inset-right)));
  }
  .nav { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .nav .brand { min-width: 0; max-width: 100%; flex-shrink: 1; }
  .brand-symbol { flex-shrink: 0; }
  .brand-name { font-size: 1.3125rem; white-space: normal; }
  .menu-btn { display: none; }
  .js .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--navy);
    font-size: .875rem;
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
  }
  .menu-btn[aria-expanded="true"] { background: var(--soft); }
  .nav-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0;
  }
  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: #fff;
    border-block: 1px solid var(--line);
    box-shadow: 0 12px 24px rgb(9 31 59 / 10%);
    max-height: calc(100vh - var(--header-bottom, 90px));
    max-height: calc(100dvh - var(--header-bottom, 90px) - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .js .nav-links.open { display: flex; }
  .nav-links a {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
  }
  .nav-links a[aria-current="page"] { background: var(--soft); }
  .nav-links .academy-link { align-self: stretch; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--gold); }
  .nav-links .nav-cta { margin-top: 4px; padding: 12px; }
  .cards, .cards.two, .process, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { gap: 24px; }
  .card p, .hero p, .page-hero p, .lead { font-size: 1rem; }
  .card-link { display: block; min-height: 44px; padding: 10px 0; font-size: .9375rem; line-height: 1.5; }
  .small, .mini span, .detail > span { font-size: .875rem; }
  .kicker, .eyebrow { font-size: .75rem; }
  .btn { min-height: 48px; font-size: .9375rem; line-height: 1.5; }
  .detail > a { padding: 8px 0; min-height: 44px; }
  .footer a:not(.brand) { min-height: 44px; padding: 10px 0; margin-bottom: 4px; font-size: .875rem; line-height: 1.5; }
  .footer .footer-bottom a { display: inline-flex !important; align-items: center; padding: 8px 4px; }
  .footer-bottom > span:last-child { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; }
  .footer { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  a, button { touch-action: manipulation; }
}
@media (max-width: 1024px) {
  .split, .contact-grid, .band-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .brand-name { font-size: 1.25rem; }
  .cards, .cards.two, .mini-grid, .process, .footer-grid, .form-row { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px; }
  .card h3 { font-size: 1.5rem; }
  .hero { min-height: 0; }
  .hero .container { padding: 52px 0; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .page-hero { padding: 40px 0; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.375rem); }
  h2 { font-size: clamp(1.75rem, 7vw, 2rem); }
  .prose h2, .cta h2 { font-size: 1.75rem; }
  .section, .page-body { padding: 44px 0; }
  .intro-panel, .mini, .quote, .form { padding: 24px; }
  .actions { gap: 12px; margin-top: 24px; }
  .actions .btn, .cta-inner > .btn, .form > .btn { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
