/* #97 B1: a café's own page on its subdomain. Only applies once cafe-page.js has set a server-clamped theme;
   the apex and unthemed cafés never match. The card faces themselves are untouched (lane H). */
html[data-cafe-theme] header .logo .cc-wordmark{display:none}
html[data-cafe-theme] .cafe-brand{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:max-content;max-width:min(168px,100%);flex:none;min-width:0;min-height:48px;padding:0;border-radius:0;transition:transform .16s cubic-bezier(.2,.8,.2,1),background-color .16s}
html[data-cafe-theme] .logo:active .cafe-brand{transform:scale(.96);background:color-mix(in srgb,var(--cafe-accent) 12%,transparent)}
html[data-cafe-theme] .cafe-logo{flex:none;width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--cc-white);box-shadow:0 0 0 2px var(--cafe-accent),0 4px 10px rgba(46,30,12,.18)}
html[data-cafe-theme] .cafe-name{font:700 0.75rem/1.15 "DM Sans",Arial,sans-serif;letter-spacing:0;color:var(--cafe-accent-deep);overflow-wrap:anywhere;max-width:168px}
/* #375: the coffee shop's logo sits top-left, with its name and a line of room for text under it. The My Coffee Club wordmark, heart and lockup font stay as they are. */
html[data-cafe-theme] .cafe-brand-text{display:flex;flex-direction:column;gap:1px;min-width:0}
html[data-cafe-theme] .cafe-brand .cafe-tagline{min-height:1.15em;font:400 0.6875rem/1.15 "DM Sans",Arial,sans-serif;color:var(--cafe-accent-deep);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media (max-width:480px){html[data-cafe-theme] .cafe-name{font-size:0.9375rem}}
html[data-cafe-theme] body:not([data-role=customer]):not([data-role=welcome]) .cafe-brand{padding:0}
html[data-cafe-theme] body[data-role=customer] .shop-label{display:none}

/* The café's own line and menu, between the header and the greeting. */
.cafe-hero{display:none}
html[data-cafe-theme] body:is([data-role=welcome],[data-role=customer][data-route=home]) .cafe-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:480px;margin:0 auto 14px;padding:0 22px}
html[data-cafe-theme] .cafe-menu{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border-radius:999px;background:var(--cafe-accent);color:var(--cafe-accent-ink);font:600 0.875rem/1 var(--cc-font-body);text-decoration:none;box-shadow:0 2px 0 var(--cafe-accent-deep);transition:transform .14s cubic-bezier(.2,.8,.2,1),box-shadow .14s,background-color .14s;-webkit-tap-highlight-color:transparent}
html[data-cafe-theme] .cafe-menu:active,html[data-cafe-theme] .cafe-menu.is-opening{transform:translateY(2px) scale(.97);box-shadow:0 0 0 var(--cafe-accent-deep);background:var(--cafe-accent-deep)}
html[data-cafe-theme] .cafe-menu:focus-visible,html[data-cafe-theme] .logo:focus-visible{outline:3px solid var(--cafe-accent);outline-offset:3px}

/* The café's colour carries the primary actions and the active tab around the cards. */
html[data-cafe-theme] .btn:not(.light){background:var(--cafe-accent);color:var(--cafe-accent-ink)}
html[data-cafe-theme] .btn:not(.light):active:not(:disabled){background:var(--cafe-accent-deep)}
html[data-cafe-theme] body[data-role] :is(#sign-in,#simulate,#provider-checkout):not(.light):not(:disabled){background:var(--cafe-accent);color:var(--cafe-accent-ink)}
html[data-cafe-theme] body[data-role] :is(#sign-in,#simulate,#provider-checkout):not(.light):active:not(:disabled){background:var(--cafe-accent-deep)}
html[data-cafe-theme] .show-card{border-color:var(--cafe-accent)}
html[data-cafe-theme] .show-card:active{background:color-mix(in srgb,var(--cafe-accent) 10%,transparent)}
html[data-cafe-theme] body[data-role=customer] #nav a.active{background:var(--cafe-accent-soft);color:var(--cafe-accent-deep)}
@media (prefers-reduced-motion:reduce){html[data-cafe-theme] .cafe-brand,html[data-cafe-theme] .cafe-menu{transition:none}}

/* #409: keep the café name on one line, with ellipsis for longer names. */
html[data-cafe-theme] .cafe-brand .cafe-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
