/* Shared geometry replaces competing percentage-based header positions. */
html[data-guest-theme] .app-header{
  display:grid;grid-template-columns:minmax(132px,1fr) 62px minmax(76px,1fr);
  grid-template-rows:82px 26px minmax(28px,auto);gap:0;
  height:auto;min-height:136px;aspect-ratio:auto;margin:0 10px;padding:0 6px 6px;
  align-items:center;isolation:isolate;
}
html[data-guest-theme] .app-header::before{
  inset:0 0 auto;height:82px;background-size:100% 100%;
}
html[data-guest-theme] .header-brand{display:contents;position:static;min-height:0}
html[data-guest-theme] .header-logo-wrap{
  position:static;grid-column:2;grid-row:1;transform:none;justify-self:center;align-self:center;
  display:flex;align-items:center;justify-content:center;width:54px;height:54px;
  min-width:0;min-height:0;aspect-ratio:1;padding:2px;overflow:hidden;
}
html[data-guest-theme] .header-logo{
  display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;
}
html[data-guest-theme] .header-brand #guest-cafe-name{
  position:static;grid-column:1/-1;grid-row:2;max-width:100%;width:100%;
  margin:0;align-self:center;justify-self:center;text-align:center;
  font-size:23px;line-height:26px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
html[data-guest-theme] .header-brand #guest-table-line{
  position:static;grid-column:1/-1;grid-row:3;justify-self:center;align-self:center;
  display:block;width:auto;max-width:100%;min-height:24px;margin:0;padding:3px 9px;
  font-size:10px;line-height:18px;white-space:normal;text-align:center;overflow-wrap:anywhere;
}
html[data-guest-theme] .guest-header-topline{
  position:static;grid-column:3;grid-row:1;justify-self:end;align-self:center;margin:0;
}
html[data-guest-theme] .guest-language-picker{direction:ltr;min-height:44px}
html[data-guest-theme] .guest-language-select{width:44px;max-width:44px;min-height:44px;padding:2px;font-size:12px}
html[data-guest-theme] .guest-hero-social-links{
  position:static;grid-column:1;grid-row:1;justify-self:start;align-self:center;
  display:flex;gap:0;width:132px;max-width:100%;height:44px;z-index:2;
}
html[data-guest-theme] .guest-hero-social-links a{flex:0 0 44px;width:44px;height:44px;min-width:44px}
html[data-guest-theme="berry"] .header-brand #guest-table-line{border:1px solid var(--line);border-radius:16px;background:var(--white)}
html[data-guest-theme="ribbon"] .header-logo-wrap,html[data-guest-theme="blue-current"] .header-logo-wrap{grid-column:1;justify-self:start;margin-left:8px;width:64px;height:48px;aspect-ratio:auto}
html[data-guest-theme="ribbon"] .guest-hero-social-links,html[data-guest-theme="blue-current"] .guest-hero-social-links{grid-column:2;justify-self:center;width:132px;max-width:none;transform:translateX(-5px)}
html[data-guest-theme="ribbon"] .app-header,html[data-guest-theme="blue-current"] .app-header{grid-template-columns:80px minmax(132px,1fr) 70px}
html[data-guest-theme] .content-area{padding-top:6px}
/* The entire uploaded banner stays visible, including lettering near its edges. */
html[data-guest-theme] .guest-banner-track{border-radius:8px;align-items:stretch}
html[data-guest-theme] .guest-banner-card{
  display:block;position:relative;box-sizing:border-box;width:100%;min-width:100%;
  flex:0 0 100%;aspect-ratio:1.95;height:auto;min-height:0;padding:12px;
  border:0;border-radius:8px;background:var(--white);overflow:hidden;
}
html[data-guest-theme] .guest-banner-card img{
  display:block;width:100%;height:100%;max-width:100%;min-height:0;
  object-fit:contain;object-position:center;border-radius:4px;background:var(--white);
}
html[data-guest-theme] .guest-banner-card::after{
  content:'';position:absolute;inset:0;z-index:2;pointer-events:none;
  border:12px solid transparent;border-image:var(--banner-rim) 40 / 12px / 0 stretch;background:none;
}
html[data-guest-theme="mint"]{--banner-rim:url('../guest-mint-assets/frame.webp')}
html[data-guest-theme="berry"]{--banner-rim:url('berry/photo-thin.webp')}
html[data-guest-theme="ribbon"]{--banner-rim:url('ribbon/photo-thin.webp')}
html[data-guest-theme="blue-current"]{--banner-rim:url('blue-current/photo-thin.webp')}
html[data-guest-theme] .guest-banner-card em{right:10px;bottom:10px;min-height:28px;padding:4px 12px;display:flex;align-items:center;line-height:18px}
html[data-guest-theme] .guest-banner-dots{left:19px;bottom:18px;padding:3px;background:#1b293944;border-radius:8px}
@media(max-width:350px){
 html[data-guest-theme] .app-header{margin-inline:8px;padding-inline:3px;grid-template-columns:minmax(132px,1fr) 54px 70px}
 html[data-guest-theme="ribbon"] .app-header,html[data-guest-theme="blue-current"] .app-header{grid-template-columns:70px minmax(132px,1fr) 66px}
 html[data-guest-theme="ribbon"] .header-logo-wrap,html[data-guest-theme="blue-current"] .header-logo-wrap{margin-left:3px;width:57px}
 html[data-guest-theme] .header-logo-wrap{width:48px;height:48px}
 html[data-guest-theme] .header-brand #guest-cafe-name{font-size:21px}
}
