/* OR-30 · Every Tinsel Press page besides the builder home (sign-in, orders, checkout
   success/cancel, privacy, terms, errors, the /ornaments idea pages) wears the same
   snow-globe night as the home: navy sky with stars, Nunito, gold buttons, frosted
   glass cards, and a snowfield footer. It works by re-pointing the shared tokens
   (tokens.css) and the Tinsel tokens (--tp-*), so the shared views need no changes.
   Night in both light and dark mode, like the home. Unlayered, so it wins over the
   shared @layer components. */
body.storefront-tinsel:not(.tp-home) {
  --bg: #0E2142;
  --fg: #F4F7FB;
  --muted: #B4C4DB;
  --accent: #FFC46B;
  --highlight: #FFC46B;
  --on-accent: #3A2208;
  --on-highlight: #3A2208;
  --success: #7FD9A4;
  --on-success: #0E2142;
  --warning: #FFC46B;
  --danger: #FF9AA0;
  --on-danger: #2A0A0D;
  --font-display: "Nunito", "Inter", system-ui, sans-serif;
  --font-body: "Nunito", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* the idea pages' own tokens (tinsel.css), same values as the night home */
  --tp-bg: #0E2142; --tp-paper: rgb(255 255 255 / 0.06); --tp-ink: #F4F7FB; --tp-soft: #B4C4DB; --tp-line: rgb(255 255 255 / 0.16);
  --tp-red: #FFC46B; --tp-red-ink: #3A2208; --tp-green: #FFC46B; --tp-gold: #FFC46B;
  --tp-glass: linear-gradient(180deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.04));
  color-scheme: dark;
  min-height: 100vh;
  display: flex; flex-direction: column;
  color: var(--fg);
  font-family: var(--font-body);
  background-color: #0A1830;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 6%, #fff, transparent), radial-gradient(1px 1px at 22% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 38% 9%, #ffe9b8, transparent), radial-gradient(1px 1px at 52% 4%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 64% 15%, #fff, transparent), radial-gradient(1px 1px at 80% 7%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 91% 20%, #ffe9b8, transparent), radial-gradient(1px 1px at 6% 28%, #fff, transparent),
    radial-gradient(1px 1px at 46% 26%, #fff, transparent), radial-gradient(1.2px 1.2px at 72% 32%, #fff, transparent),
    radial-gradient(70rem 40rem at 75% 0%, #23467E 0%, transparent 60%),
    linear-gradient(#0A1830, #0E2142 32rem, #16305A 60rem);
  background-repeat: no-repeat;
  background-size: 100% 60rem, 100% 60rem, 100% 60rem, 100% 60rem, 100% 60rem, 100% 60rem, 100% 60rem, 100% 60rem, 100% 60rem, 100% 60rem, 100% 60rem, 100% 100%;
}
body.storefront-tinsel:not(.tp-home) > main { flex: 1 0 auto; width: 100%; }

/* header: the white-and-gold wordmark, nav in snow white */
body.storefront-tinsel:not(.tp-home) .wordmark-art .wm-on-light { display: none; }
body.storefront-tinsel:not(.tp-home) .wordmark-art .wm-on-dark { display: block; }
body.storefront-tinsel:not(.tp-home) .topbar { width: 100%; max-width: 76rem; border-bottom: 0; padding-inline: max(16px, 3vw); }
body.storefront-tinsel:not(.tp-home) .topbar a,
body.storefront-tinsel:not(.tp-home) .topbar .btn,
body.storefront-tinsel:not(.tp-home) .nav-link { color: var(--fg); }
body.storefront-tinsel:not(.tp-home) .wordmark { color: var(--fg); font-weight: 800; }

/* type */
body.storefront-tinsel:not(.tp-home) :is(h1, h2, h3) { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
body.storefront-tinsel:not(.tp-home) h1 { text-wrap: balance; }
body.storefront-tinsel:not(.tp-home) :is(.eyebrow, .tp-label) { color: var(--accent); font-weight: 800; letter-spacing: 0.16em; }
body.storefront-tinsel:not(.tp-home) a { color: var(--accent); }
body.storefront-tinsel:not(.tp-home) a.btn { text-decoration: none; }
body.storefront-tinsel:not(.tp-home) .tpl-hero h1,
body.storefront-tinsel:not(.tp-home) :is(.tpl-faq, .tpl-related) h2,
body.storefront-tinsel:not(.tp-home) .tp-hero h1 { font-family: "Nunito", sans-serif; font-weight: 800; }
body.storefront-tinsel:not(.tp-home) .tp-hero h1 em { color: var(--accent); text-shadow: 0 0 30px rgb(255 196 107 / 0.45); }

/* surfaces: frosted glass, like the workshop panel on the home */
body.storefront-tinsel:not(.tp-home) :is(.card, .viewer-card, .tpl-faq details, .tpl .tp-how ol li, .tp-how li) {
  background: var(--tp-glass); border: 1px solid var(--tp-line); border-radius: 22px;
  box-shadow: 0 18px 50px -30px rgb(0 0 0 / 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
body.storefront-tinsel:not(.tp-home) :is(.flash, .nudge, .draft-flag, .form-errors, .mail-preview) {
  background: rgb(255 255 255 / 0.07); border-radius: 14px; color: var(--fg);
}
body.storefront-tinsel:not(.tp-home) .flash-alert { background: rgb(255 120 130 / 0.12); }
body.storefront-tinsel:not(.tp-home) .support-banner { background: rgb(255 255 255 / 0.08); border-bottom-color: var(--tp-line); }
body.storefront-tinsel:not(.tp-home) .stage-banner { background: #FFC46B; color: #3A2208; }

/* buttons: the builder's gold "lamp" button */
body.storefront-tinsel:not(.tp-home) :is(.btn-primary, .tp-cta) {
  background: linear-gradient(#FFD58C, #F2AE47); color: #3A2208; font-weight: 800; border: 0;
  box-shadow: 0 8px 30px rgb(255 190 90 / 0.3), inset 0 -2px 0 rgb(0 0 0 / 0.12);
}
body.storefront-tinsel:not(.tp-home) :is(.btn-primary, .tp-cta):hover { filter: brightness(1.05); }
body.storefront-tinsel:not(.tp-home) .btn-quiet { background: rgb(255 255 255 / 0.07); border: 1.5px solid var(--tp-line); color: var(--fg); font-weight: 800; }
body.storefront-tinsel:not(.tp-home) .btn-dark { background: var(--fg); color: #0E2142; }
body.storefront-tinsel:not(.tp-home) .btn { font-family: var(--font-body); }

/* fields: dark wells, gold focus */
body.storefront-tinsel:not(.tp-home) :is(input:is([type=email], [type=text], [type=number], [type=search], [type=date], [type=url], [type=tel]), textarea, select) {
  background: rgb(0 0 0 / 0.25); border: 1.5px solid var(--tp-line); color: #fff; border-radius: 12px;
}
body.storefront-tinsel:not(.tp-home) ::placeholder { color: rgb(255 255 255 / 0.45); }
body.storefront-tinsel:not(.tp-home) :is(input, textarea, select):focus { border-color: var(--accent); outline: 3px solid rgb(255 196 107 / 0.35); outline-offset: 0; }

/* tables and rules */
body.storefront-tinsel:not(.tp-home) :is(table, th, td, hr) { border-color: var(--tp-line); }

/* order viewer: the ornament under a soft night glow */
body.storefront-tinsel:not(.tp-home) .viewer-card model-viewer { background: radial-gradient(120% 90% at 50% 20%, #23467E, #0E2142); }

/* footer: a snowdrift edge, then the snowfield, as at the bottom of the home */
body.storefront-tinsel:not(.tp-home) .site-footer {
  position: relative; max-width: none; width: 100%; margin: 4rem 0 0; border-top: 0;
  background: #F4F7FB; color: #4A5E7E; padding-block: 1.75rem 2rem;
}
body.storefront-tinsel:not(.tp-home) .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(2.5rem, 6vw, 4.5rem); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23F4F7FB' d='M0 80V52c60-14 120-30 210-26 80 4 120 30 210 30s150-38 250-40c90-2 130 26 220 28 90 2 140-34 220-34 40 0 70 8 90 14v56z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
body.storefront-tinsel:not(.tp-home) .site-footer a { color: #12284D; }

@media print {
  body.storefront-tinsel:not(.tp-home) { background: #fff; color: #12284D; --fg: #12284D; --muted: #4A5E7E; }
  body.storefront-tinsel:not(.tp-home) .card { background: #fff; box-shadow: none; }
}
