/* Shared shell for the hand-built campaign pages in /public.
   Injected by scripts/legacy-shell.mjs. Loaded after each page's own styles,
   it aligns them with the main site: same palette, header, footer and type. */

:root {
  --bg: #f3f2ee;
  --surface: #fbfaf7;
  --text: #121211;
  --muted: #6b6a65;
  --border: #d9d7cf;
  --tag-bg: #eae8e2;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --ls-line: #d9d7cf;
  --ls-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme='dark'] {
  --bg: #0c0c0b;
  --surface: #161615;
  --text: #eeede8;
  --muted: #9b9992;
  --border: #262624;
  --tag-bg: #1b1b1a;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --ls-line: #262624;
}
html, body { background: var(--bg) !important; }
body { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; }

/* type: one family, no serif display, no shouting labels */
h1, h2, h3, h4 { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important; }
h1 { letter-spacing: -0.045em !important; }
.badge-pill, .guide-badge, .eyebrow, .section-eyebrow {
  text-transform: none !important; letter-spacing: 0 !important; font-family: 'Inter', sans-serif !important;
}

/* replaced by the shared header */
.back-home, .theme-toggle-btn, #themeToggleBtn, #themeToggle, #themeBtn, .theme-btn { display: none !important; }
.tool-top-bar:not(:has(> :not(.back-home))) { display: none !important; }
.grid-header:not(:has(> div > :not(.back-home):not(.theme-btn):not(.lang-btn))) { display: none !important; }

/* ── header ── */
.ls-hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--ls-line);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}
.ls-in { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4.2vw, 64px); }
.ls-hdr .ls-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.ls-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.ls-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 11.5px; font-weight: 600; transition: background-color 400ms var(--ls-ease); }
.ls-brand:hover .ls-mark { background: var(--accent); color: #fff; }
.ls-nav { display: flex; align-items: center; gap: 4px; }
.ls-nav a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--muted); text-decoration: none; transition: color 200ms; }
.ls-nav a:hover, .ls-nav a.on { color: var(--text); }
.ls-theme { display: grid; place-items: center; width: 38px; height: 38px; margin-left: 6px; border-radius: 999px; border: 1px solid var(--ls-line); background: none; color: var(--text); cursor: pointer; }
.ls-theme svg { width: 16px; height: 16px; transition: transform 700ms var(--ls-ease); }
:root[data-theme='dark'] .ls-theme svg { transform: rotate(180deg); }
@media (max-width: 860px) { .ls-crumb { display: none; } }
@media (max-width: 640px) { .ls-brand .ls-name { display: none; } .ls-nav a { padding: 8px 9px; } }

.ls-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ls-narrow { max-width: 1120px; }
.ls-crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.ls-crumb a { color: var(--muted); text-decoration: none; }
.ls-crumb a:hover { color: var(--text); }
.ls-crumb span[aria-hidden] { opacity: 0.5; }

/* ── footer ── (reset the old site-wide `footer {}` rule in css/style.css) */
footer.ls-ftr {
  display: block !important; padding: 0 !important; text-align: left !important;
  background: transparent !important; color: var(--text) !important; border-top: 1px solid var(--ls-line) !important;
  font-size: 16px !important; flex-direction: initial !important;
}
.theme-toggle-floating { display: none !important; }
.ls-ftr { margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--ls-line); font-family: 'Inter', sans-serif; color: var(--text); }
.ls-more { padding: clamp(48px, 6vw, 80px) 0 40px; }
.ls-more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.ls-more-head h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; margin: 0; color: var(--text); }
.ls-more-head a { font-size: 14.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ls-more-head a:hover { color: var(--text); }
.ls-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ls-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--ls-line); border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 300ms var(--ls-ease), transform 400ms var(--ls-ease); }
.ls-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ls-card small { font-size: 13px; color: var(--muted); }
.ls-card strong { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.ls-card span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.ls-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding: 22px 24px; border-radius: 16px; background: var(--text); color: var(--bg); }
.ls-cta p { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.ls-cta a { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.ls-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0 32px; border-top: 1px solid var(--ls-line); font-size: 13.5px; color: var(--muted); }
.ls-bottom a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.ls-bottom a:hover { color: var(--text); }
@media (max-width: 860px) { .ls-cards { grid-template-columns: 1fr; } }
@media print { .ls-hdr, .ls-ftr, .ls-crumb { display: none !important; } }
