/* Shared page palette and the existing trial and learning content. */
.pv.storefront {
  --plush-h-btn: 40px;
  --plush-h-btn-sm: 36px;
  --plush-h-chip: 34px;
  --paper: var(--plush-bg);
  --surface: var(--plush-surface);
  --ink: var(--plush-ink);
  --subtle: var(--plush-ink-2);
  --rule: var(--plush-line);
  --navy: var(--plush-accent);
  --store-title: "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.pv.storefront[data-mizu-page],
.pv.storefront.trial-page {
  --paper: var(--background);
  --surface: var(--card);
  --ink: var(--foreground);
  --subtle: var(--muted-foreground);
  --rule: var(--border);
  --navy: var(--primary);
}
.pv.storefront[data-mizu-page]:is(.catalogue-page, .shelf-page) {
  --paper: color-mix(in srgb, var(--background) 55%, var(--muted));
}
.pv.storefront.catalogue-page .mast {
  background-color: var(--paper);
}
.pv.storefront [data-slot="button"]:where(:not([data-pv-ui] *)) { border: 0; text-decoration: none; cursor: pointer; }
.pv.storefront [data-slot="button"]:where(:not([data-pv-ui] *))[data-size] { padding: .28rem .82rem; font-size: .875rem; }
.pv.storefront :is(a, button, input, textarea):where(:not([data-pv-ui] *)):focus-visible {
  outline: var(--plush-focus-width) solid var(--plush-focus-color);
  outline-offset: 3px;
}
.pv.storefront.learning-page main { width: min(100%, 44rem); padding-top: .9rem; }
.pv.storefront .book-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.pv.storefront.trial-page main { width: min(100%, 45rem); padding-top: 0; }
.pv.storefront .trial-caption { display: flex; gap: .35rem .65rem; flex-wrap: wrap; align-items: center; margin-top: .9rem; color: var(--subtle); font-size: .88rem; }
.pv.storefront .trial-text { margin-top: 1.05rem; }
.pv.storefront .trial-text h1, .pv.storefront .trial-text h2 { line-height: 1.3; margin-bottom: 1em; }
.pv.storefront .trial-end { margin-top: 1.9rem; padding: 1.05rem; background: var(--plush-panel); border: 1px solid var(--rule); border-radius: var(--plush-radius-card); }
.pv.storefront .trial-end h2 { margin-bottom: .75rem; font-family: var(--store-title); }
.pv.storefront #trial-note { z-index: 3; border-radius: var(--plush-radius-row); box-shadow: var(--plush-card-shadow); }
/* Match the neutral dark tokens from Plush UI's demo in app/globals.css. */
.pv.storefront[data-night] {
  --plush-bg: oklch(0.145 0 0);
  --plush-panel: oklch(0.205 0 0);
  --plush-panel-tint: oklch(0.269 0 0);
  --plush-surface: var(--plush-panel);
  --plush-fill: oklch(0.269 0 0);
  --plush-fill-strong: color-mix(in oklab, var(--plush-fill), var(--plush-ink) 12%);
  --plush-line: oklch(1 0 0 / 10%);
  --plush-ink: oklch(0.985 0 0);
  --plush-ink-2: oklch(0.708 0 0);
  --plush-ink-3: oklch(0.556 0 0);
  --plush-accent: oklch(0.922 0 0);
  --plush-on-accent: var(--plush-panel);
}
.pv.storefront .trial-text mark { background: var(--plush-select-fill); color: var(--plush-on-select); }

.pv.storefront [data-slot="button"]:where(:not([data-pv-ui] *))::after {
  content: "";
  position: absolute;
  inset: -5px 0;
}
@media (prefers-reduced-motion: reduce) {
  .pv.storefront [data-slot] { transition: none; }
}
