/* Shared phone layout. Load after the original design and palette styles. */
@media (max-width:760px) {
  html { -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-padding-bottom:100px; }
  body { font-size:15px; }
  .container,.wrap { width:calc(100% - 40px); }
  .section { padding-block:52px; }
  h1,h2,h3 { overflow-wrap:break-word; line-break:strict; }
  .heading-phrase { display:inline-block; max-width:100%; }
  .catalog-hero h1,.home-hero h1,.lp-hero h1,.page-title h1,.gallery-intro h1,.salon-hero h1,.shop-hero h1,.hero-copy h1 {
    font-size:clamp(26px,7.3vw,32px); line-height:1.6; letter-spacing:0; margin-top:16px;
  }
  .section-heading h2,.split h2,.callout h2,.work-detail h2,.narrow>h2,.gallery-about h2,.booking-area h2,.story h2,.news h2,.faq h2,.catalog-guide h2,.consult-block h2 {
    font-size:clamp(24px,6.6vw,28px); line-height:1.65; letter-spacing:0;
  }
  /* Body copy flows naturally on phones instead of keeping desktop line breaks. */
  main p:not(.eyebrow) br,.site-footer p br,.footer-note p br { display:none; }
  .demo-top,.demo-bar { padding:10px 20px; gap:5px; font-size:12px; line-height:1.65; }
  .demo-top a,.catalog-return { font-size:13px; min-height:44px; display:flex; align-items:center; }
  .demo-top a { align-self:flex-start; }
  .catalog-return { padding:10px 20px; }
  .site-head,.header { height:auto; min-height:88px; gap:12px; padding-block:18px; }
  .brand { font-size:clamp(18px,5vw,22px); letter-spacing:0; white-space:normal; }
  .brand small,.logo small { font-size:9px; letter-spacing:.08em; }
  .logo { font-size:clamp(18px,5vw,22px); gap:8px; letter-spacing:0; }
  .logo img { width:30px; height:30px; }
  .mobile-nav { flex-shrink:0; }
  .mobile-nav>summary { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:10px 0 10px 8px; font-size:13px; }
  .mobile-nav nav { top:100%; width:min(260px,calc(100vw - 40px)); max-height:65dvh; overflow-y:auto; }
  .mobile-nav nav a { font-size:15px; min-height:48px; }
  .eyebrow,.hero-copy .eyebrow,.lp-hero .eyebrow,.card-body .eyebrow { font-size:11px; letter-spacing:.1em; }
  .button { font-size:15px; min-height:52px; padding:16px 18px; gap:16px; max-width:100%; }
  .text-link,.text-button,.under-link { font-size:14px; min-height:48px; }
  .section-heading>p,.split p,.home-hero p:not(.eyebrow),.numbered p,.callout p,.page-title>p:not(.eyebrow),.process p,.work-detail>p,.consult-block>p,.lp-hero p:not(.eyebrow),.narrow>p:not(.eyebrow),.gallery-intro>p,.gallery-about>p:not(.eyebrow),.salon-hero p:not(.eyebrow),.shop-hero p:not(.eyebrow),.service-cards p,.booking-area>.container>p:not(.eyebrow),.product>p:not(.eyebrow),.story-copy p,.hero-copy>p:not(.eyebrow),.muted,.news-list details>p,.faq details>p {
    font-size:15px; line-height:1.95; letter-spacing:0;
  }
  .notice,.small-note,.sample-note,.demo-notice,.site-footer p,.footer-note,.footer-note a,.menu-photo figcaption,.map figcaption,.lp-hero small,.demo-form>small,.cart-totals>p,.product-bottom small,#slot-message { font-size:12px; line-height:1.85; }
  .site-footer,.site-footer>a,.footer-main nav { font-size:13px; }
  .site-footer>a,.footer-main nav a,.footer-note a { min-height:44px; display:inline-flex; align-items:center; }
  .site-footer p,.footer-note p { overflow-wrap:anywhere; }
  .catalog-head { height:88px; gap:14px; }
  .catalog-head .brand { font-size:28px; }
  .catalog-head .brand small { font-size:9px; }
  .catalog-head .text-link { font-size:12px; }
  .catalog-hero { padding-block:22px 40px; }
  .catalog-hero p:not(.eyebrow),.card-body>p:not(.eyebrow),.guide-grid p { font-size:15px; }
  .catalog-section-head p { font-size:13px; }
  .card-body { padding:20px; }
  .card-body h2 { font-size:23px; }
  .card-tags span { display:inline-block; font-size:12px; }
  .card-body .card-action { font-size:13px!important; line-height:1.8; }
  .card-body .text-link { font-size:14px; min-height:52px; }
  .home-hero,.lp-hero,.shop-hero { gap:26px; padding-block:12px 30px; }
  .home-hero>img,.lp-hero>img,.salon-hero>img { aspect-ratio:1.4; max-height:320px; object-fit:cover; }
  .home-hero .button,.lp-hero .button,.salon-hero .button,.shop-hero .button { width:100%; }
  .page-title { padding-block:22px 32px; }
  .process { grid-template-columns:1fr; gap:24px; }
  .process b { font-size:16px; }
  .process p { margin-top:10px; }
  .facts>div { grid-template-columns:80px minmax(0,1fr); font-size:14px; gap:12px; }
  .consult-block { padding:22px 18px; }
  .pill { font-size:12px; }
  .offer span { font-size:12px; }
  .demo-form label,.demo-form legend { font-size:15px; }
  .demo-form input,.demo-form select,.cart-item input { font-size:16px; min-height:48px; }
  details>summary,.faq summary { font-size:15px; }
  details>p { font-size:14px; }
  .filter-bar { gap:8px; }
  .filter-bar button { min-height:44px; font-size:14px; padding-inline:14px; }
  .filter-bar small { font-size:11px; }
  .filter-bar>span { width:100%; margin:4px 0 0; font-size:12px; }
  .gallery-item figcaption { flex-direction:column; align-items:flex-start; gap:8px; }
  .gallery-item figcaption>span { max-width:100%; font-size:14px; }
  .gallery-item figcaption small { font-size:11px; }
  .photo-open>span { width:44px; height:44px; }
  .salon-hero>div { position:static; max-width:none; padding:24px 0 0; margin:0; }
  .booking-summary { padding:22px 18px; }
  .booking-summary dl>div,.booking-summary dd { font-size:14px; }
  .slots { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
  .slots span { font-size:15px; min-height:48px; }
  .slots input { min-height:0; }
  .product-image>span { font-size:12px; }
  .add-button { font-size:14px; min-height:48px; padding:12px; }
  .product-bottom { flex-wrap:wrap; }
  .cart-item { grid-template-columns:52px minmax(0,1fr) 60px; gap:10px; }
  .cart-item img { width:52px; height:52px; }
  .cart-item h3 { font-size:15px; }
  .cart-item label { font-size:12px; }
  .cart-item .text-button { font-size:13px; min-height:44px; }
  .cart-totals { padding:22px 18px; }
  .cart-totals dl>div,.checkout-row { font-size:14px; }
  .cart-totals>.button { font-size:14px; }
  dialog { width:calc(100% - 24px); max-height:calc(100dvh - 32px); padding:60px 20px 24px; }
  dialog h2 { font-size:24px; line-height:1.6; }
  dialog>p:not(.eyebrow) { font-size:15px; }
  .dialog-close { width:44px; height:44px; }
  .photo-dialog { padding-top:60px; }
  .photo-dialog-info { flex-wrap:wrap; }
  .photo-dialog-info p { font-size:13px; }
  .photo-dialog-info button { min-width:44px; height:44px; }
  /* Cafe: give the photograph and text their own space. */
  .hero { margin-inline:20px; }
  .hero-photo { aspect-ratio:1.4; max-height:300px; }
  .hero-copy { margin:0; padding:24px 0 0; }
  .hero-foot { margin:0; font-size:9px; flex-wrap:wrap; }
  .hero-foot a { min-height:44px; align-items:center; }
  .story-title { display:block; position:relative; }
  .story-title .leaf { display:none; }
  .section-label,.section-label small { font-size:12px; }
  .section-label p br { display:none; }
  .interlude span { font-size:10px; }
  .menu-photo figcaption span { font-size:10px; }
  .menu-list dt { font-size:15px; }
  .menu-list small { font-size:12px; }
  .menu-list dd { font-size:20px; }
  .news-list summary { grid-template-columns:minmax(0,1fr) 24px; gap:6px 12px; font-size:15px; }
  .news-list time { grid-column:1; font-size:12px; }
  .news-list summary>span:not(.tag):not(.plus) { grid-column:1; }
  .news-list .plus { grid-column:2; grid-row:1 / 3; }
  .shop-info dl>div { grid-template-columns:76px minmax(0,1fr); font-size:14px; }
  .shop-info dd small { font-size:12px; }
  /* Palette: two readable columns, independently scrollable options, fixed close controls. */
  body.palette-enabled { padding-bottom:calc(88px + env(safe-area-inset-bottom,0px)); }
  #palette-toggle { right:12px; bottom:calc(12px + env(safe-area-inset-bottom,0px)); font-size:13px; min-height:48px; }
  #palette-panel { display:flex; flex-direction:column; right:12px; bottom:calc(76px + env(safe-area-inset-bottom,0px)); width:calc(100% - 24px); max-width:420px; max-height:calc(100dvh - 96px - env(safe-area-inset-bottom,0px)); padding:16px; overflow:hidden; }
  #palette-panel[hidden] { display:none; }
  #palette-panel .palette-panel-top { flex-shrink:0; }
  #palette-panel .palette-close { width:44px; height:44px; min-width:44px; }
  #palette-panel h2 { font-size:18px; }
  #palette-panel p { font-size:12px; margin:8px 0 12px; line-height:1.65; flex-shrink:0; }
  #palette-panel .palette-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px!important; overflow-y:auto; overscroll-behavior:contain; min-height:70px; padding:3px; }
  #palette-panel .palette-choice { padding:10px; min-height:108px; gap:6px; }
  #palette-panel .palette-name { font-size:13px; }
  #palette-panel .palette-description { font-size:11px; }
  #palette-panel #palette-status { font-size:12px; margin:10px 0 4px; }
  #palette-panel .palette-storage-note { font-size:11px; margin:0 0 10px; }
  #palette-panel .palette-done { font-size:14px; min-height:48px; flex-shrink:0; }
}
@media (max-width:360px) {
  .container,.wrap { width:calc(100% - 32px); }
  .hero { margin-inline:16px; }
  .demo-top,.demo-bar,.catalog-return { padding-inline:16px; }
  .catalog-head .brand { font-size:25px; }
  .catalog-head .text-link { font-size:11px; }
  .card-body { padding:18px; }
  .card-body h2 { font-size:21px; }
  .facts>div { grid-template-columns:1fr; gap:5px; }
  #palette-panel { padding:12px; }
  #palette-panel .palette-choice { padding:8px; }
}
@media (max-width:760px) and (max-height:500px) {
  #palette-panel { bottom:10px; max-height:calc(100dvh - 20px); }
  #palette-panel>p:not(#palette-status) { display:none; }
  #palette-panel .palette-choice { min-height:90px; }
}
