/* Masque: Apple-style black and white. Loaded after site.css.
   One typeface family: the system UI font (SF Pro on Apple devices), Inter elsewhere. */
html.light {
  --mq-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "__Inter_d8ebd1", Inter, Arial, sans-serif;
  --font-inter: var(--mq-font);
  --font-canela: var(--mq-font);
  --font-ufficio: var(--mq-font);
  --mq-ink: #1d1d1f;
  --mq-grey: #6e6e73;
  --mq-surface: #f5f5f7;
  --mq-card: #fff;
  --mq-radius: 22px;
}
body { background: var(--mq-card); color: var(--mq-ink); font-family: var(--mq-font); -webkit-font-smoothing: antialiased; }
.font-canela { font-weight: 600; letter-spacing: -0.022em; }
.font-ufficio { letter-spacing: -0.01em; }

/* ---------- Simplified (one-product) storefront: html[data-brand="masque"] ---------- */
html[data-brand="masque"] body:not(:has(main.hm)),
html[data-brand="masque"] main:not(.hm) { background: var(--mq-surface); }

/* Sections sit on the grey page; their panels become white rounded cards. Dark sections stay dark. */
html[data-brand="masque"] main:not(.hm) section:not(.bg-void):not([class*="bg-black"]):not(.bg-ember):not(.text-paper):not(.text-white):not([class*="text-white"]),
html[data-brand="masque"] main:not(.hm) > div > section:not(.bg-void):not(.bg-ember):not(.text-paper):not(.text-white):not([class*="text-white"]) { background-color: transparent !important; }
html[data-brand="masque"] main:not(.hm) section :is(.bg-bone, .bg-paper, .bg-white, [class*="bg-bone/"], [class*="bg-gray-50"], [class*="bg-gray-100"]):not(button):not(a):not(span) {
  background-color: var(--mq-card) !important;
}
html[data-brand="masque"] main:not(.hm) :is([class*="rounded-"], [class*="rounded "]):not([class*="rounded-full"]):not(button):not(input):not(select):not(textarea):not(span):not(a) {
  border-radius: var(--mq-radius) !important;
}
html[data-brand="masque"] main:not(.hm) img:not([class*="rounded-full"]) { border-radius: 18px; }
html[data-brand="masque"] main:not(.hm) video { border-radius: 18px; }

/* No hairlines or divider rules; form fields and outlined buttons keep their edges. */
html[data-brand="masque"] main:not(.hm) *:not(button):not(a):not(input):not(select):not(textarea):not(label) { border-color: transparent !important; }
html[data-brand="masque"] main:not(.hm) hr { display: none; }
html[data-brand="masque"] main:not(.hm) table { border-collapse: separate; border-spacing: 0; }

/* Buttons: solid, softly rounded. */
html[data-brand="masque"] main:not(.hm) :is(button, a)[class*="bg-void"],
html[data-brand="masque"] main:not(.hm) :is(button, a)[class*="bg-black"],
html[data-brand="masque"] main:not(.hm) :is(button, a)[class*="border-void"],
html[data-brand="masque"] main:not(.hm) :is(button, a)[class*="border-black"] { border-radius: 12px !important; }
html[data-brand="masque"] main:not(.hm) :is(button, a)[class*="border-void"]:not([class*="bg-void"]) { background: var(--mq-card); border-color: #d2d2d7 !important; }

/* Headings: Apple-like weight and tracking. */
html[data-brand="masque"] main:not(.hm) :is(h1, h2) { font-weight: 600 !important; letter-spacing: -0.025em; color: inherit; }
html[data-brand="masque"] main:not(.hm) h3 { font-weight: 600 !important; letter-spacing: -0.015em; }

/* ---------- Header ---------- */
.mq-header { position: fixed; inset: 0 0 auto; z-index: 900; font-family: var(--mq-font); }
.mq-header__bar {
  height: 48px; display: flex; align-items: center; gap: 24px; padding: 0 max(16px, calc((100vw - 1024px) / 2));
  background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.mq-header.is-scrolled .mq-header__bar { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.mq-logo { display: inline-flex; align-items: center; color: var(--mq-ink); height: 44px; }
.mq-logo svg { height: 28px; width: auto; }
.mq-nav { flex: 1; display: flex; justify-content: center; gap: 32px; }
.mq-nav a, .mq-menu a { color: var(--mq-ink); text-decoration: none; }
.mq-nav a { font-size: 12.5px; opacity: 0.86; }
.mq-nav a:hover, .mq-nav a[aria-current="page"] { opacity: 1; }
.mq-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mq-nav + .mq-actions { margin-left: 0; }
.mq-icon { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--mq-ink); background: none; border: 0; border-radius: 10px; cursor: pointer; }
.mq-icon:hover { background: rgba(0, 0, 0, 0.04); }
.mq-badge { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--mq-ink); color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; }
.mq-burger { display: none; }
.mq-menu { position: fixed; inset: 48px 0 0; background: #fff; overflow-y: auto; padding: 16px 40px 48px; }
.mq-menu nav { display: flex; flex-direction: column; gap: 6px; max-width: 640px; margin: 0 auto; }
.mq-menu a { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; padding: 6px 0; }
.mq-header.is-open .mq-header__bar { background: #fff; }
.mq-header-space { height: 48px; }
@media (max-width: 833px) {
  .mq-nav { display: none; }
  .mq-burger { display: inline-flex; }
  .mq-actions, .mq-nav + .mq-actions { margin-left: auto; }
}

/* ---------- Footer ---------- */
.mq-footer { background: var(--mq-surface); color: var(--mq-grey); font-family: var(--mq-font); font-size: 12px; line-height: 1.5; }
.mq-footer__inner { max-width: 980px; margin: 0 auto; padding: 32px 22px 24px; }
.mq-footer__note { padding-bottom: 16px; border-bottom: 1px solid #d2d2d7; margin: 0 0 20px; }
.mq-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.mq-footer__cols h2 { font-size: 12px; font-weight: 600; color: var(--mq-ink); margin: 0 0 8px; }
.mq-footer__cols a { display: block; color: var(--mq-grey); text-decoration: none; padding: 3px 0; }
.mq-footer__cols a:hover, .mq-footer__legal a:hover, .mq-footer__legal button:hover { color: var(--mq-ink); text-decoration: underline; }
.mq-region { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; white-space: nowrap; margin-top: 24px; color: var(--mq-grey); font-size: 12px; }
.mq-region select { font: inherit; font-size: 12px; color: var(--mq-ink); background: transparent; border: 1px solid #d2d2d7; border-radius: 980px; padding: 5px 12px; cursor: pointer; }
.hm-bag__region { margin-top: 14px; font-size: 14px; }
.hm-bag__region select { font-size: 14px; }
.mq-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 16px; border-top: 1px solid #d2d2d7; }
.mq-footer__legal p { margin: 0; }
.mq-footer__legal nav { display: flex; flex-wrap: wrap; gap: 4px 0; }
.mq-footer__legal nav > * { color: var(--mq-grey); text-decoration: none; background: none; border: 0; padding: 0 10px; font: inherit; cursor: pointer; border-left: 1px solid #d2d2d7; }
.mq-footer__legal nav > *:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 833px) {
  .mq-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Specification list (replaces the multi-brand comparison table). */
.mq-specs { list-style: none; margin: 0; padding: 8px 24px; background: var(--mq-card); border-radius: var(--mq-radius); font-family: var(--mq-font); }
.mq-specs li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; font-size: 15px; color: var(--mq-ink); }
.mq-specs span { color: var(--mq-grey); }
.mq-specs strong { font-weight: 600; text-align: right; }
/* 1px rule elements used as dividers. */
html[data-brand="masque"] main:not(.hm) :is([class*="h-px"], [class*="w-px"], [class*="h-[1px]"], [class*="w-[1px]"]):empty { display: none; }
/* Inside dark sections, labels that were brand red (now ink) or grey need to read as light grey. */
html[data-brand="masque"] main:not(.hm) :is(section.bg-void, section.bg-black, section.text-paper) :is(.text-void, .text-red-laser, .text-ember, .text-husk, .text-mercury, [class*="text-[#1D1D1F]"], [class*="text-[#1d1d1f]"]) { color: #a1a1a6 !important; }

/* Apple blue for actions and highlights on the other pages (red highlights in the original design). */
html[data-brand="masque"] main:not(.hm) :is(button, a)[class*="bg-void"]:not([aria-label*="color" i]),
html[data-brand="masque"] main:not(.hm) :is(button, a)[class*="bg-black"]:not([aria-label*="color" i]) { background-color: #0071e3 !important; color: #fff !important; border-radius: 980px !important; }
/* Light buttons on dark sections keep dark text (the dark-section rule above greys text-void). */
html[data-brand="masque"] main:not(.hm) :is(button, a).inline-flex:is([class*="bg-paper"], [class*="bg-white"]) { color: #1d1d1f !important; }
/* Every other button-shaped link or button is an Apple pill too (the light ones on dark sections were square). */
html[data-brand="masque"] main:not(.hm) :is(button, a).inline-flex[class*="px-"][class*="py-"]:is([class*="bg-paper"], [class*="bg-white"], [class*="border-"]):not([aria-label*="color" i]):not([role="tab"]) { border-radius: 980px !important; }
html[data-brand="masque"] main:not(.hm) :is(.text-red-laser, .text-ember, [class*="text-[#8E0E10]"], [class*="text-red-"]) { color: #0071e3 !important; }
html[data-brand="masque"] main:not(.hm) a[class*="underline"] { color: #0066cc; }

/* HiMask homepage: the global header scrolls away (as on Apple product pages); the page's own
   product bar takes over at the top. White header on the white hero. */
html[data-brand="masque"]:has(main.hm) .mq-header { position: absolute; }
html[data-brand="masque"] .mq-header__bar { background: rgba(255, 255, 255, 0.92); }
@media (min-width: 834px) {
  .mq-header__bar { gap: 0; }
  .mq-nav { justify-content: space-evenly; gap: 0; }
  .mq-nav a { padding: 0 8px; font-size: 12px; }
}
