/* Slistr brand tokens and the shared Slistr look. Served from https://www.slistr.com/slistr-brand.css and loaded by every Slistr app after its
   own styles, so a change here reaches all of them. Source of truth: BRAND-TOKENS.md and the Slistr Brand Guide.
   White page first: Slistr lives on white and sand; charcoal is for type and the mark, never for page backgrounds.
   `html:root` outranks each app's own `:root` block. */
html:root {
  --page: #FFFFFF;
  --paper: #F6F4F1;
  --card: #FFFFFF;
  --ink: #231F20;
  --charcoal: #231F20;
  --text: #3A3536;
  --slate: #6E6767;
  --stone: #8F8885;
  --silver: #E7E3E0;
  --brand: #F05A28;
  --brand-strong: #F05A28;
  --brand-ink: #F05A28;
  --brand-soft: #FDEEE7;
  --brand-deep: #9C3514;
  --btn: #F05A28;
  --btn-fg: #FFFFFF;
  --cta: #F05A28;
  --cta-fg: #FFFFFF;
  --danger: #C02B1E;
  --success: #1E7A46;
  --warning: #9A6200;
  --info: #1F5FA8;
  color-scheme: light;
}
/* Dark mode is a user choice inside an app, never the default. The orange stays the same on dark. */
html[data-theme="dark"]:root {
  --page: #151314;
  --paper: #221F20;
  --card: #1C1A1B;
  --ink: #F4F1EF;
  --charcoal: #121011;
  --text: #E6E1DE;
  --slate: #A8A09C;
  --stone: #8A8380;
  --silver: #34302F;
  --brand-ink: #F05A28;
  --brand-soft: #3A2219;
  --btn: #F05A28;
  --btn-fg: #FFFFFF;
  --cta: #F05A28;
  --cta-fg: #FFFFFF;
  --danger: #F97066;
  --success: #47CD89;
  --warning: #F5B94A;
  --info: #7DB3F0;
  color-scheme: dark;
}
:focus-visible { outline-color: #F05A28; }

/* ---------------------------------------------------------------------------------------------------------------
   The Slistr look (8 Nov 2026): shared building blocks so every Slistr app looks like www.slistr.com.
   Classes start with sx- so they never clash with an app's own styles. Full guide: the Brand Guide's "Layout" and
   "Building blocks" chapters; BRAND-TOKENS.md "The Slistr look".
   - Pages use the full width of the window. Content sits inside the page gutter (--gut), never a fixed max-width,
     except reading text (sx-read, 720px) and forms (sx-narrow, 560px).
   - Desktop is laid out at 1440px and scaled by slistr-fit.js; the only width rule is the phone one below.
   --------------------------------------------------------------------------------------------------------------- */
html:root { --gut: clamp(16px, calc(3 * var(--vw, 1vw)), 48px); --sx-r-card: 20px; --sx-r-lift: 24px; --sx-r-panel: 28px;
  --sx-ring: 0 0 0 1px var(--silver); --sx-lift: 0 0 0 1px var(--silver), 0 24px 48px -28px rgba(35,31,32,.35);
  --sx-pop: rgba(35,31,32,.7) 0 1px 5px -4px, rgba(35,31,32,.14) 0 12px 32px 0; }

/* Layout */
.sx-wrap { box-sizing: border-box; width: 100%; padding-left: var(--gut); padding-right: var(--gut); }
.sx-sec { box-sizing: border-box; width: 100%; padding: 96px var(--gut) 0; }
.sx-read { max-width: 720px; }
.sx-narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.sx-head { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.sx-head > div { max-width: 720px; }
.sx-g2, .sx-g3, .sx-g4 { display: grid; gap: 16px; }
.sx-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }

/* Type */
.sx-kicker { margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #F05A28; }
.sx-h1 { margin: 0; font-family: 'Google Sans', system-ui, sans-serif; font-weight: 600; font-size: clamp(40px, calc(5 * var(--vw, 1vw)), 68px); line-height: 1.04; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.sx-h2 { margin: 0; font-family: 'Google Sans', system-ui, sans-serif; font-weight: 600; font-size: clamp(28px, calc(3 * var(--vw, 1vw)), 40px); line-height: 1.1; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.sx-h3 { margin: 0; font-family: 'Google Sans', system-ui, sans-serif; font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.sx-lead { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: var(--slate); text-wrap: pretty; }
.sx-hl { color: #F05A28; }

/* Drawn page banner: the hub's pgBanner. Inside: two <picture>s (light, dark), each an <img class="sx-ph-l|sx-ph-d"> of
   https://www.slistr.com/assets/heroes/<scene>-light.svg (or -dark.svg) with a
   <source media="(max-width:767px) and (orientation:portrait)" srcset="…-light-m.svg"> for phones; then the title. */
.sx-banner-wrap { padding: 24px var(--gut) 0; }
.sx-banner { position: relative; height: 240px; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 32px 8px; box-sizing: border-box; text-align: center; box-shadow: var(--sx-ring); background: var(--page); isolation: isolate; }
.sx-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: -1; }
.sx-banner h1, .sx-banner .sx-bt { position: relative; margin: 0; max-width: 760px; font-family: 'Google Sans', system-ui, sans-serif; font-weight: 600; letter-spacing: -.03em; font-size: 46px; line-height: 1.05; color: var(--ink); text-wrap: balance; }
.sx-banner p { position: relative; margin: 0; max-width: 760px; font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--text); }
/* Left-aligned banner (8 Nov 2026), for an app's home page: kicker and a big heading on the left, one drawn subject
   on the right. The art keeps to its right edge (preserveAspectRatio xMaxYMid meet) and fills the left with the theme
   background and ground band, so it suits any width. Phones stack: the words on top, the subject small below them. */
.sx-banner[data-align="left"] { height: auto; min-height: 400px; align-items: flex-start; justify-content: center; text-align: left; gap: 0; padding: 48px 56px; }
.sx-banner[data-align="left"] img { object-fit: fill; }
.sx-banner[data-align="left"] .sx-kicker { position: relative; }
.sx-banner[data-align="left"] h1 { max-width: 660px; font-size: clamp(44px, calc(4.4 * var(--vw, 1vw)), 64px); line-height: 1.04; }
.sx-ph-d { display: none !important; }
.sx-m { display: none !important; }
html[data-theme="dark"] .sx-ph-l { display: none !important; }
html[data-theme="dark"] .sx-ph-d { display: block !important; }

/* Surfaces */
.sx-card { position: relative; background: var(--card); border-radius: var(--sx-r-card); box-shadow: var(--sx-ring); padding: 24px; min-width: 0; }
a.sx-card, button.sx-card { color: inherit; text-decoration: none; text-align: left; border: none; font: inherit; cursor: pointer; }
a.sx-card:hover, button.sx-card:hover, .sx-card[data-hover]:hover { box-shadow: 0 0 0 1px #F05A28; text-decoration: none; }
.sx-lift { position: relative; background: var(--card); border-radius: var(--sx-r-lift); box-shadow: var(--sx-lift); padding: 28px 24px; min-width: 0; transition: transform .25s ease, box-shadow .25s ease; }
.sx-lift:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--silver), 0 32px 56px -28px rgba(35,31,32,.45); }
.sx-lift[data-hot="1"] { box-shadow: 0 0 0 2px #F05A28, 0 32px 60px -28px rgba(240,90,40,.55); }
.sx-panel { position: relative; background: var(--paper); border-radius: var(--sx-r-panel); padding: clamp(24px, calc(4 * var(--vw, 1vw)), 48px); overflow: hidden; isolation: isolate; }
.sx-warm { position: relative; border-radius: var(--sx-r-panel); padding: clamp(24px, calc(3 * var(--vw, 1vw)), 40px); background: color-mix(in srgb, #F05A28 8%, var(--card)); box-shadow: 0 0 0 1px color-mix(in srgb, #F05A28 22%, transparent); overflow: hidden; isolation: isolate; }
.sx-warm::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 9999px; background: radial-gradient(closest-side, rgba(240,90,40,.22), transparent 70%); z-index: -1; }
.sx-dark { position: relative; background: #231F20; color: #F4F1EF; overflow: hidden; isolation: isolate; --ink: #FFFFFF; --text: #E6E1DE; --slate: #DCD7D4; --silver: #3A3536; --card: #2C2728; --paper: #2C2728; }
.sx-tile { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: #F05A28; display: inline-flex; align-items: center; justify-content: center; }
.sx-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; background: var(--brand-soft); color: #9C3514; font-size: 12px; font-weight: 600; white-space: nowrap; }
html[data-theme="dark"] .sx-badge { color: #F6B59E; }
.sx-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 9999px; background: var(--paper); color: var(--text); font-size: 13px; white-space: nowrap; }

/* Controls */
.sx-btn, .sx-btn-ghost, .sx-btn-dark { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 9999px; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; border: none; box-sizing: border-box; }
.sx-btn { background: #F05A28; color: #FFFFFF; }
.sx-btn:hover { text-decoration: none; filter: brightness(1.05); transform: translateY(-1px); }
.sx-btn-ghost { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--silver); }
.sx-btn-ghost:hover { text-decoration: none; color: #F05A28; box-shadow: inset 0 0 0 1px #F05A28; }
.sx-btn-dark { background: #FFFFFF; color: #231F20; }
.sx-btn-dark:hover { text-decoration: none; color: #F05A28; }
.sx-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 9999px; border: 1px solid var(--silver); background: var(--card); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; }
.sx-chip:hover { border-color: #F05A28; text-decoration: none; }
.sx-chip[aria-pressed="true"], .sx-chip[aria-selected="true"], .sx-chip[aria-current="page"] { background: #F05A28; color: #FFFFFF; border-color: #F05A28; }
.sx-seg { display: inline-flex; padding: 4px; border-radius: 9999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--silver); }
.sx-seg > * { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 9999px; border: none; background: transparent; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.sx-seg > [aria-pressed="true"], .sx-seg > [aria-selected="true"] { background: #F05A28; color: #FFFFFF; }

/* Subtle graphics: the drawn style's halo, dots and ground line, for empty corners of sections and panels.
   Decorative only (aria-hidden), behind the content, never on top of words, gently animated. */
.sx-deco { position: absolute; pointer-events: none; z-index: -1; }
.sx-halo { position: absolute; pointer-events: none; z-index: -1; width: 420px; height: 420px; border-radius: 9999px; background: radial-gradient(closest-side, rgba(240,90,40,.14), transparent 70%); }
.sx-dots { position: absolute; pointer-events: none; z-index: -1; width: 72px; height: 40px; }
.sx-dots::before, .sx-dots::after, .sx-dots > i { content: ""; position: absolute; border-radius: 9999px; background: #F05A28; animation: sxTwinkle 3.4s ease-in-out infinite; }
.sx-dots::before { width: 10px; height: 10px; left: 0; top: 18px; }
.sx-dots::after { width: 7px; height: 7px; left: 30px; top: 0; animation-delay: .9s; opacity: .7; }
.sx-dots > i { width: 5px; height: 5px; left: 58px; top: 28px; animation-delay: 1.8s; opacity: .5; }
.sx-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; pointer-events: none; z-index: -1; background: linear-gradient(to top, var(--paper), transparent); }
.sx-ground::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 18px; height: 2px; border-radius: 2px; background: rgba(240,90,40,.35); }
.sx-float { animation: sxFloat 3.4s ease-in-out infinite; }
@keyframes sxTwinkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes sxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .sx-dots::before, .sx-dots::after, .sx-dots > i, .sx-float { animation: none; } }

/* Phones held upright: the one width rule (see slistr-fit.js). Everything stacks; the gutter is 16px. */
@media (max-width: 767px) and (orientation: portrait) {
  html:root { --gut: 16px; }
  .sx-sec { padding-top: 56px; }
  .sx-g2, .sx-g3, .sx-g4, .sx-split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sx-split { gap: 24px; }
  .sx-head { margin-bottom: 20px; }
  .sx-h1 { font-size: 36px; }
  .sx-h2 { font-size: 26px; }
  .sx-lead { font-size: 16px; }
  .sx-banner-wrap { padding: 12px 16px 0; }
  .sx-banner { height: auto; aspect-ratio: 3 / 1; border-radius: 16px; padding: 0 17%; gap: 2px; }
  .sx-banner img { object-position: 50% 100%; }
  .sx-banner h1, .sx-banner .sx-bt { font-size: 20px; }
  .sx-banner p { display: none; }
  .sx-banner[data-align="left"] { min-height: 0; aspect-ratio: auto; padding: 20px 20px 168px; }
  .sx-banner[data-align="left"] img { top: auto; bottom: 0; height: 168px; }
  .sx-banner[data-align="left"] h1 { font-size: 30px; line-height: 1.08; }
  .sx-banner[data-align="left"] .sx-kicker { margin-bottom: 10px; font-size: 12px; }
  .sx-d { display: none !important; }
  .sx-m { display: revert !important; }
  .sx-card { padding: 20px; }
  .sx-lift:hover { transform: none; }
  .sx-btn, .sx-btn-ghost, .sx-btn-dark { height: 48px; }
  .sx-halo { width: 260px; height: 260px; }
}

/* Page banners show as much of the photo as possible on computers (16 Nov 2026): the banner takes the photo's 4:1 shape
   (the art is 1584 × 396) instead of a fixed 240px strip. Phones keep their own 3:1 art. */
@media not ((max-width:767px) and (orientation:portrait)) { .sx-banner:not([data-align="left"]) { height: auto; min-height: 240px; aspect-ratio: 4 / 1; } }
