/* Croatian storefront hierarchy, shared by every language. */
@layer rituals-palette {
  html body{font-family:"DM Sans",Arial,sans-serif}
  html body :is(h1,h2) :where(span,em,strong),
  html body :is(h1,h2){font-weight:750!important}
  html body :is(h3,h4,.eyebrow,.hero-tags,.section-kicker,.hc-eyebrow):not(.brand *){font-weight:600!important}
  html body :is(.order-product,.menu-product,.product-card,.table-product) :is(h3,h3 span,.product-details-trigger){font-weight:650!important}
  html body :is(nav a,button,input,select,textarea):not(:where(.brand,.brand *,.wordmark,.wordmark *,.logo,.logo *)){
    font-family:"DM Sans",Arial,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;font-weight:500!important
  }
  html body :is(.button,.pill,.ct-button,.hc-primary,.landing-secondary,.my-mojo-vote,.mf-inline-trigger,.rituals-order,
    .landing-quick-menu a,.category-bar button,.category-tabs button,.table-categories button,.product-go,.detail-add,
    .mobile-order-cart,.mobile-basket-toggle,.table-cart-open,.auth-tabs button){font-weight:600!important;letter-spacing:normal!important;text-transform:none!important}
  html body :is(.button,.pill,.ct-button,.hc-primary,.landing-secondary,.my-mojo-vote,.rituals-order,
    .landing-quick-menu a,.category-bar button,.category-tabs button,.table-categories button){line-height:1.28!important}
  html body :is(.landing-quick-menu a,.category-bar button,.category-tabs button,.table-categories button,.mobile-order-cart,.mobile-basket-toggle) :where(span,em){
    font-family:"DM Sans",Arial,sans-serif!important;font-weight:inherit!important;text-transform:none!important;letter-spacing:normal!important
  }
  html body :is(.category-button,[role=tab]):is(.active,[aria-selected=true],[aria-pressed=true]){font-weight:700!important}
  html body :is(main,.mojo-site-footer) :where(p,figcaption,.eyebrow) :where(span,em){text-transform:inherit!important}
  html body :is(main,.mojo-site-footer) :is(p:not(.eyebrow),figcaption,.menu-footnote,.payment-note){text-transform:none!important}
  html body :is(.product-nutrition,.detail-copy,.order-product-dialog,.table-detail-copy) :is(p,small){overflow-wrap:anywhere}
  html body .product-nutrition h3{font-weight:650!important;font-size:1.0625rem!important}
  html body .product-nutrition p{font-size:.9375rem!important;margin-block:.35rem}
  html body .product-nutrition .nutrition-numeric{font-weight:700!important;font-variant-numeric:tabular-nums}
  html body #my-mojo-preview .my-mojo-label{font-size:.875rem!important;font-weight:650!important}
  html body #my-mojo-vote-status{font-size:.875rem!important;background:none!important;color:#36383b!important;-webkit-text-fill-color:currentColor!important}
  html body #my-mojo-preview{background:#f5f5f6!important}
  html body .menu-footnote{font-size:.875rem!important;line-height:1.45!important;max-width:68rem;margin:1.2rem auto 1.65rem;padding:0 1rem}
  html body :is(.shop-layout,.menu-content,.table-main) > *{min-width:0}
  html body .landing-quick-menu a{min-width:0}
  @media(forced-colors:none){
    html body .product-nutrition .nutrition-numeric[data-nutrient=energy]{color:#a32236!important;-webkit-text-fill-color:currentColor!important}
    html body .product-nutrition .nutrition-numeric[data-nutrient=protein]{color:#1e633f!important;-webkit-text-fill-color:currentColor!important}
    html body .product-nutrition .nutrition-numeric[data-nutrient=fiber]{color:#464477!important;-webkit-text-fill-color:currentColor!important}
  }
  @media(max-width:760px){
    html body :is(.category-bar,.category-tabs,.table-categories){overflow-x:auto;overscroll-behavior-x:contain;scroll-padding-inline:1rem}
    html body :is(.category-bar,.category-tabs,.table-categories) button{min-height:44px}
    html body :is(.card-quantity,.qty-control,.stepper) button{min-width:44px!important;min-height:44px!important}
    html body :is(.auth-tabs,.buyer-switch){min-width:0;gap:.45rem}
    html body :is(.auth-tabs,.buyer-switch) button{white-space:normal;overflow-wrap:anywhere;min-height:44px}
    html body :is(.landing-concept-copy,.order-hero,.menu-panel,.cart-panel) h1{font-size:clamp(2rem,8vw,3rem)!important}
    html body .landing-quick-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
    html body :is(input:not([type=checkbox],[type=radio]),select,textarea):not(#language-select){font-size:16px!important}
    html body .mojo-site-header .rituals-menu-panel :is(a,button){min-height:44px;display:flex;align-items:center}
  }
  @media(max-width:500px){
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)){
      grid-template-columns:44px minmax(0,1fr) max-content!important;grid-template-rows:58px!important;height:58px!important;padding-inline:5px!important
    }
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) > .brand{
      grid-area:1 / 2!important;scale:1!important;justify-self:start;min-width:0;gap:3px!important
    }
    html body .mojo-site-header.has-rituals-menu > .brand b{font-size:clamp(1.35rem,6.6vw,1.9rem)!important}
    html body[data-mojo-page] .mojo-site-header.has-rituals-menu > .brand :is(.brand-rituals,.landing-brand-word){font-size:.48rem!important}
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) > .header-actions{grid-area:1 / 3!important;gap:0!important;justify-self:end}
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) > .rituals-menu-toggle{grid-area:1 / 1!important}
    html body .mojo-site-header.has-rituals-menu .rituals-order{font-size:.82rem!important;min-height:44px;display:inline-flex;align-items:center}
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) .rituals-login{
      position:relative!important;left:auto;top:auto;transform:none!important;min-width:44px!important;
      width:44px!important;height:44px!important;padding:0!important;max-width:44px!important;white-space:nowrap;overflow:hidden!important;
      text-indent:-100vw;text-align:left!important
    }
    html body .mojo-site-header.has-rituals-menu .rituals-login::after{
      content:"";position:absolute;inset:12px;width:20px;height:20px;background:currentColor;
      mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.4'/%3E%3Cpath d='M4.6 20c0-3.6 3.2-6 7.4-6s7.4 2.4 7.4 6'/%3E%3C/svg%3E")
    }
    html body .mojo-site-header.has-rituals-menu .rituals-login svg{visibility:hidden}
  }
}
@layer rituals-palette{
  html body #menu-title{font-size:clamp(1.7rem,5.5vw,3rem)!important;margin:0;padding:1rem clamp(1rem,4vw,2.4rem) .5rem;line-height:1.1!important}
  html body .menu-intro{max-width:70rem;margin:.5rem auto 1rem;padding-inline:1rem}
  html body .mojo-hotel-landmark{scroll-margin-top:5rem}
  html body #my-mojo-preview{scroll-margin-top:5rem}
}
@layer rituals-palette{
  html body #my-mojo-title{text-transform:uppercase!important}
  @media(max-width:600px){
    html body .menu-view .menu-banner{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:.45rem!important;height:auto!important;padding:.65rem 1rem!important}
    html body .menu-view .menu-banner #menu-title{padding:.35rem 0}
    html body .menu-view .menu-banner .pickup-bar{width:100%!important;max-width:100%!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
    html body .menu-view .pickup-bar :is(.pickup-location,.pickup-hours){min-width:0!important;min-height:44px!important}
    html body .menu-view .pickup-bar strong{white-space:normal!important;overflow-wrap:anywhere}
  }
  @media(max-width:500px){
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) .rituals-login{inset:auto!important}
  }
}
@layer rituals-palette{
  html body[data-mojo-page] .mojo-site-header .brand :is(.brand-rituals,.landing-brand-word){text-transform:uppercase!important}
  html body :is(.mojo-site-header,.order-header,.ritual-dashboard,.admin-overview) button:focus-visible{outline:2px solid #7d2340;outline-offset:3px}
  html body[data-admin] :is(#admin-tabs button,.admin-overview button){min-height:44px;text-transform:none!important}
  html body[data-admin] :is(.admin-overview-heading p,.inventory-message,.stock-feedback,.admin-tab-label){text-transform:none!important;letter-spacing:normal}
  html body .mojo-site-header .brand{min-width:0}
  @media(max-width:600px){
    html body .ritual-dashboard .ritual-actions{flex-wrap:wrap}
    html body[data-admin] #admin-tabs{max-width:100%;overflow-x:auto}
    html body[data-admin] .admin-overview-heading p{line-height:1.45}
  }
}

/* Size the lockup as part of the layout, not as a visual-only transform. */
@layer rituals-palette {
  html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) {
    --mojo-brand-height: 96px;
    --mojo-logo-size: 88.8px;
    --mojo-rituals-size: 12px;
    box-sizing: border-box;
    grid-template-rows: minmax(0,1fr) !important;
    height: var(--mojo-brand-height) !important;
    min-height: var(--mojo-brand-height) !important;
  }
  html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled) {
    --mojo-brand-height: 72px;
    --mojo-logo-size: 53.28px;
    --mojo-rituals-size: 9px;
  }
  html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) > .brand {
    scale: 1 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    gap: clamp(4px, .75vw, 11px) !important;
    padding: 0 !important;
    white-space: nowrap;
  }
  html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) > .brand b {
    font-size: var(--mojo-logo-size) !important;
    line-height: .8 !important;
  }
  html body[class] .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) > .brand :is(.brand-rituals,.landing-brand-word) {
    position: static !important;
    height: auto !important;
    align-self: baseline !important;
    margin: 0 !important;
    font: 700 var(--mojo-rituals-size)/1.1 'DM Sans',Arial,sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: .22em !important;
    padding: 0;
  }
  @media(max-width:720px) {
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) {
      --mojo-brand-height: 76px;
      --mojo-logo-size: clamp(37px,7vw,50px);
      --mojo-rituals-size: 9px;
      grid-template-columns: 44px minmax(0,1fr) max-content !important;
    }
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) > .brand {
      grid-area: 1 / 2 !important;
      justify-self: start;
    }
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled) {
      --mojo-brand-height: 65px;
      --mojo-logo-size: 37px;
    }
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) .rituals-login {
      position: relative !important;
      inset: auto !important;
      transform: none !important;
      max-width: 90px;
    }
  }
  @media(max-width:500px) {
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) {
      --mojo-brand-height: 65px;
      --mojo-logo-size: clamp(28px,8.5vw,41px);
      --mojo-rituals-size: 8px;
      grid-template-columns: 44px minmax(0,1fr) max-content !important;
    }
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) .rituals-login {
      max-width: 44px !important;
    }
  }
}

/* Small phones get a separate controls row, never a split wordmark. */
@layer rituals-palette {
  @media(max-width:350px) {
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) {
      --mojo-brand-height: 96px;
      grid-template-rows: 40px 44px !important;
    }
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) > .brand {
      grid-area: 1 / 1 / 2 / -1 !important;
      justify-self: center;
    }
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) > .header-actions {
      grid-area: 2 / 2 / 3 / -1 !important;
    }
    html body .mojo-site-header.has-rituals-menu:is(.logo-scrolled,:not(.logo-scrolled)) > .rituals-menu-toggle {
      grid-area: 2 / 1 !important;
    }
  }
}

/* Account links are not purchase buttons. Keep the primary form actions red. */
@layer rituals-palette {
  html body #auth-dialog :is(#login-tab,#signup-tab,#forgot-password,#auth-close),
  html body .mojo-site-header :is(#logout,#admin-link,.rituals-login,#account-open,.home-account),
  html body .rituals-menu-panel :is(button,a) {
    background: transparent !important;
    color: var(--rituals-red,#a51d28) !important;
    -webkit-text-fill-color: currentColor !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  html body #auth-dialog .auth-tabs button.active {
    border-bottom-color: var(--rituals-red,#a51d28) !important;
    font-weight: 700 !important;
  }
  html body #auth-dialog #forgot-password { text-decoration: underline; text-underline-offset: .2em; }
  html body #auth-dialog .auth-tabs { display: flex; flex-wrap: wrap; column-gap: 1.15rem; }
  html body #auth-dialog #auth-close { border-radius: 50%; min-width: 44px; min-height: 44px; }
  html body #auth-dialog :is(#login-tab,#signup-tab,#forgot-password) { min-height:44px; }
  html body .mojo-site-header :is(#logout,#admin-link)[hidden] { display: none !important; }
  html body .mojo-site-header .rituals-menu-panel :is(a,button) {
    background: transparent !important;
    color: var(--mojo-ink,#202020) !important;
    -webkit-text-fill-color: currentColor !important;
    border-bottom: 1px solid var(--mojo-divider,#d8dce5) !important;
  }
  html body .mojo-site-header .rituals-menu-panel :is(a,button):is(:hover,:focus-visible) {
    color: var(--rituals-red,#a51d28) !important;
  }
  html body #ritual-dashboard :is(.ritual-tutorial-actions,.ritual-actions,.ritual-items li > div) {
    display:flex; flex-wrap:wrap; gap:.45rem; align-items:center;
  }
  html body #ritual-dashboard .ritual-items li button { margin-inline-start:0; }
  html body #ritual-dashboard :is(.ritual-header,.ritual-pick,#ritual-editor,.ritual-card) { min-width:0; }
  html body #ritual-dashboard :is(.ritual-card h3,.ritual-items li span) { overflow-wrap:anywhere; }
  html body[data-mojo-page="ordering"] #my-orders > .section-title {
    display:flex; flex-wrap:wrap; gap:.65rem; align-items:center;
  }
  @media(max-width:760px) {
    html body[data-mojo-page="ordering"]:has(#ritual-dashboard:not([hidden])) #mobile-cart { display:none !important; }
    html body #ritual-dashboard :is(.ritual-header,.ritual-actions) > button { max-width:100%; white-space:normal; }
  }
  @media(max-width:430px) {
    html body #auth-dialog > :is(h2,p) { padding-inline-end: 2rem; }
  }
}

/* Letter case is visual; product IDs, prices and order records are unchanged. */
@layer rituals-palette {
  html body:not([data-admin]) :is(
    .product-card h3, .menu-product h3, .order-product h3, .landing-product h3,
    .hc-title, .signature-caption h2, [data-mojo-page="content"] .tile h3,
    #detail-name, #order-detail-name, #table-detail-title,
    .cart-line-top b, .basket-item-label strong, .table-cart-item strong
  ) { text-transform: uppercase !important; overflow-wrap: anywhere; }
}
