/* Mobile/tablet readability floor. Loaded last on every page.
   Most visitors are on phones, so text and tap targets are sized up
   (not down) at small widths. */

/* Headings/main with tabindex="-1" only receive focus from script (intro
   closing, skip link, back-to-top) -- they aren't controls, so never draw a
   focus ring on them. */
[tabindex="-1"]:focus { outline: none; }

/* even out heading line breaks (no lone last word on phones) */
h1, h2, h3 { text-wrap: balance; }

/* 12px floor at every width (these were 10-11px even on iPad) */
.footer-top h3, .text-link, .pdp-category, .pcv2-category, .pcv2-cta,
.footer-bottom, .theme-toggle span { font-size: 12px; }
.footer-policies a { font-size: 13px; }

/* Touch screens wide enough for the desktop nav (e.g. iPad landscape):
   the nav and breadcrumb links are ~20px tall. Grow their tappable area
   with padding, cancelled by negative margin so nothing moves visually. */
@media (hover: none) and (pointer: coarse) {
  .site-nav a, .v2-navbar a, .breadcrumbs a, .footer-policies a {
    padding-block: 12px;
    margin-block: -12px;
  }
}

/* Inner pages: same mobile menu as the home page -- dark bar with the MM
   seal on the left, menu button on the right, and a full-width panel with
   the links stacked in a column on the right. (Home page: styles-v2.css.) */
.header-seal-mob { display: none; }
@media (max-width: 820px) {
  :root { --header: 77px; }
  .site-header:not(.v2-header) {
    flex-wrap: nowrap; min-height: 77px; padding: 10px 20px;
    background: #11241a; border-bottom: 1px solid #e8c46a26; backdrop-filter: none;
  }
  .site-header:not(.v2-header) .header-seal { display: none; }
  .site-header:not(.v2-header) .header-seal-mob { display: block; width: 86px; height: auto; }
  .site-header:not(.v2-header) .site-wordmark { line-height: 0; }
  .site-header:not(.v2-header) .menu-toggle {
    color: #f4eddb; border-color: #e8c46a70; background: linear-gradient(180deg, #115e3f, #002716);
  }
  /* compact dropdown under the Menu button, links right-aligned */
  .site-header.menu-ready.is-open:not(.v2-header) .site-nav {
    position: absolute; right: 16px; left: auto; top: calc(100% + 8px);
    display: grid; grid-template-columns: 1fr; justify-content: stretch; justify-items: stretch; align-content: start;
    width: max-content; max-height: calc(100dvh - 100px); overflow-y: auto;
    padding: 6px 0 10px;
    background: rgba(10, 44, 28, .06); -webkit-backdrop-filter: blur(2.5px) saturate(130%) brightness(.8); backdrop-filter: blur(2.5px) saturate(130%) brightness(.8);
    border: 1px solid rgba(232, 196, 106, .38); border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 22, 13, .45), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .04);
  }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header.menu-ready.is-open:not(.v2-header) .site-nav { background: #133d2c; }
  }
  .site-header.menu-ready.is-open:not(.v2-header) .site-nav > a { justify-content: flex-end; text-align: right; padding: 0 18px 0 22px; text-shadow: 0 1px 2px rgba(0, 20, 10, .95), 0 0 8px rgba(0, 20, 10, .8), 0 0 16px rgba(0, 20, 10, .5); }
  .site-header.menu-ready.is-open:not(.v2-header) .site-nav .nav-book { justify-content: center; min-height: 44px; margin: 8px 12px 0; padding: 0 16px; }
  .site-header:not(.v2-header) .site-nav > a {
    display: flex; align-items: center; justify-content: center; min-height: 30px; margin: 0; padding: 0 6px;
    border: 0; font-size: 19px; font-weight: 400; letter-spacing: .4px; color: #f4eddb; text-decoration: none;
  }
  .site-header:not(.v2-header) .site-nav > a[aria-current="page"] { color: #e8c46a; text-decoration: none; }
  .site-header:not(.v2-header) .site-nav > a:hover { color: #e8c46a; }
  .site-header:not(.v2-header) .site-nav .nav-book {
    margin-top: 12px; padding: 0 22px; border: 1px solid #e8c46a; border-radius: 999px; color: #e8c46a;
  }
}

@media (max-width: 900px) {
  /* labels & kickers: were shrunk to 10px */
  .section-kicker,
  .service-card > .section-kicker,
  .celebration-card > .section-kicker,
  .product-copy .section-kicker,
  .footer-top h3 { font-size: 12px; }

  /* buttons: were shrunk to 11px */
  .gold-link,
  .service-actions .gold-link { font-size: 13px; min-height: 48px; }

  .text-link { font-size: 14px; }
  .page-note { font-size: 13px; }
  .product-copy > p:not(.section-kicker) { font-size: 14px; }

  /* product pages */
  .pdp-category { font-size: 12px; }
  .breadcrumbs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; }

  /* shop grid cards: were 8.5px / 9px */
  .pcv2-category { letter-spacing: 1px; }
  .pcv2-cta { min-height: 40px; }

  /* footer policy links were 18px tall -- too small to tap */
  .footer-policies a { display: inline-flex; align-items: center; min-height: 40px; }
}

/* Practice Studio is in the phone/tablet menu only, not the desktop nav bar */
@media (min-width: 821px) { .site-header:not(.v2-header) .site-nav .nav-practice { display: none; } }

/* About page: the updated portrait is a transparent cut-out with its own
   arched gold frame, so show it whole -- no crop, rounded top or offset line */
.portrait-wrap.portrait-cutout { aspect-ratio: auto; max-width: min(420px, 72vw); }
.portrait-wrap.portrait-cutout::after { content: none; }
.portrait-wrap.portrait-cutout img { height: auto; object-fit: contain; border-radius: 0; }

/* Inner-page heroes with .has-mandala (Learn & book, Shop, Design diary,
   About, Shopping bag, Sign in, Book your day, Booking request, Checkout): the home page's slowly turning mandala,
   centred on the hero's top-left corner so it fans out from there, in place
   of the lattice pattern */
.inner-page .page-intro.has-mandala::before { display: none; }
.page-intro-mandala {
  position: absolute; z-index: -1; top: 0; left: 0;
  width: clamp(460px, 66vw, 1000px); transform: translate(-50%, -50%); pointer-events: none;
}
.page-intro-mandala img { display: block; width: 100%; height: auto; opacity: .16; }
/* a second, smaller copy centred on the bottom-right corner */
.page-intro-mandala.is-bottom-right { top: auto; left: auto; right: 0; bottom: 0; width: clamp(300px, 42vw, 640px); transform: translate(50%, 50%); }
@media (prefers-reduced-motion: no-preference) {
  .page-intro-mandala img { animation: mandala-drift 240s linear infinite; }
}
@media (max-width: 820px) {
  .page-intro-mandala img { opacity: .15; }
}

/* Checkout's Payment card and the Shopping bag's Order summary use the light
   green band colour (#e3ecdf, the off-white + green theme's band) */
.order-summary.order-summary--green { background: #e3ecdf; }

/* Shop sort dropdown (built by pages.js): cream field + themed list, in place
   of the OS-drawn native menu */
.shop-sort-field.has-sort-select { position: relative; min-width: 190px; }
.sort-select-button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 46px; padding: 0 14px; cursor: pointer; text-align: left;
  border: 1px solid #a89e83; border-radius: 8px; background: #fffdf7; color: #234430;
  font: 15px MahiraSans, Arial, sans-serif;
}
.sort-select-button::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: -4px;
  border-right: 1.5px solid #9d860e; border-bottom: 1.5px solid #9d860e; transform: rotate(45deg);
  transition: transform .2s ease;
}
.shop-sort-field.is-open .sort-select-button::after { transform: translateY(4px) rotate(-135deg); }
.sort-select-button:hover { border-color: #496d4b; }
.sort-select-button:focus-visible { outline: 2px solid #496d4b; outline-offset: 2px; }
.sort-select-list {
  position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; min-width: 100%;
  margin: 0; padding: 6px; list-style: none; outline: none;
  background: #fffdf7; border: 1px solid #c9b88a; border-radius: 12px;
  box-shadow: 0 14px 32px rgba(35, 68, 48, .16);
}
.sort-select-list[hidden] { display: none; }
.sort-select-list li {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px 0 12px;
  border-radius: 8px; cursor: pointer; white-space: nowrap;
  font: 15px MahiraSans, Arial, sans-serif; color: #234430;
}
.sort-select-list li::before { content: ""; flex: none; width: 14px; text-align: center; color: #9d860e; }
.sort-select-list li[aria-selected="true"] { font-weight: 500; }
.sort-select-list li[aria-selected="true"]::before { content: "\2713"; }
.sort-select-list li.is-active { background: #e3ecdf; }
@media (max-width: 600px) {
  .shop-sort-field.has-sort-select { min-width: 0; }
  /* the sort field sits at the left on phones: open the list rightwards */
  .sort-select-list { left: 0; right: auto; }
}
