/* Shared design tokens + site chrome (header, footer, nav, ad zones). Tool-specific
   CSS lives in merger.css / teleprompter.css and is enqueued only on that page. */
:root {
  --slg-cream: #EFEAE1;
  --slg-paper: #FBF9F4;
  --slg-black: #111111;
  --slg-ink-2: #1A1713;
  --slg-maroon: #5D1B34;
  --slg-maroon-deep: #441325;
  --slg-gold: #D2B68A;
  --slg-gold-hover: #E2CBA5;
  --slg-muted: #5B6875;
  --slg-line: #CBD3DC;
  --slg-danger: #B42318;
  --slg-on-dark: #E6D9DD;
  --slg-font-display: "Playfair Display", Georgia, serif;
  --slg-font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--slg-font-body); background: var(--slg-cream); color: var(--slg-black); }
a { color: inherit; }
img, video { max-width: 100%; }

/* Header */
.slg-site-header { background: var(--slg-black); border-bottom: 1px solid #000; }
.slg-site-header__bar {
  max-width: 80rem; margin: 0 auto; padding: 0.9rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.slg-brand { display: flex; align-items: center; text-decoration: none; }
.slg-brand__word { font-family: var(--slg-font-display); font-weight: 700; font-size: 1.3rem; color: var(--slg-gold); letter-spacing: -0.01em; }
.slg-brand__logo { height: 34px; display: block; }
.slg-nav { display: flex; gap: 1.5rem; }
.slg-nav a {
  text-decoration: none; color: var(--slg-on-dark); font-size: 0.92rem; font-weight: 600;
  padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.slg-nav a:hover { color: var(--slg-gold-hover); }
.slg-nav a[aria-current="page"] { color: var(--slg-gold); border-color: var(--slg-gold); }

/* Footer */
.slg-site-footer { max-width: 80rem; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; color: var(--slg-muted); font-size: 0.85rem; text-align: center; }
.slg-site-footer a { color: var(--slg-maroon); text-decoration: none; }
.slg-site-footer a:hover { text-decoration: underline; }

/* Ad banners (full-width, header/footer) */
.slg-banner { display: flex; justify-content: center; background: var(--slg-paper); }
.slg-banner--header { border-bottom: 1px solid var(--slg-line); }
.slg-banner--footer { border-top: 1px solid var(--slg-line); }
.slg-banner .slg-ad-card { width: 100%; max-width: 80rem; }
.slg-banner .slg-ad-card--image img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.slg-banner .slg-ad-card--text { max-width: 80rem; margin: 0 auto; text-align: center; align-items: center; }

/* Ad cards: base + shared variants, reused in rails, banners and landing zones */
.slg-ad-card { position: relative; display: block; text-decoration: none; color: inherit; border-radius: 12px; overflow: hidden; border: 1px solid var(--slg-line); background: var(--slg-paper); cursor: pointer; }
.slg-ad-card--image, .slg-ad-card--video { padding: 0; }
.slg-ad-card--image img, .slg-ad-card--video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slg-ad-card:hover { border-color: var(--slg-gold); }
.slg-ad-card:focus-visible { outline: 3px solid var(--slg-maroon); outline-offset: 2px; }

.slg-ad-card--text { padding: 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.slg-ad-card__eyebrow { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slg-maroon); }
.slg-ad-card__title { font-size: 1rem; }
.slg-ad-card__subtitle { color: var(--slg-muted); font-size: 0.82rem; }

.slg-ad-card--video { border: 0; width: 100%; text-align: left; }
.slg-ad-card__scrim {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,14,20,.78) 0%, rgba(10,14,20,.1) 55%, rgba(10,14,20,.25) 100%);
  display: flex; align-items: center; justify-content: center;
}
.slg-ad-card__play { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--slg-black); display: flex; align-items: center; justify-content: center; }
.slg-ad-card__play svg { margin-left: 2px; }
.slg-ad-card__label { position: absolute; left: 0; right: 0; bottom: 0.6rem; text-align: center; color: #fff; font-size: 0.78rem; font-weight: 600; }

.slg-ad-card--image .slg-ad-card__overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem;
  background: linear-gradient(to top, rgba(10,14,20,.78), transparent);
  display: flex; flex-direction: column; gap: 0.15rem; color: #fff;
}
.slg-ad-card--image .slg-ad-card__eyebrow { color: var(--slg-gold); }
.slg-ad-card--image .slg-ad-card__subtitle { color: var(--slg-on-dark); }

.slg-ad-card--html { border: 0; background: none; cursor: default; }

/* Default promo HTML (the "four cards" grid) */
.slg-cardlink { display: block; text-decoration: none; color: inherit; }
.slg-cardgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.slg-minicard {
  aspect-ratio: 3 / 4; border-radius: 8px; border: 1px solid var(--slg-line); overflow: hidden; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0.5rem;
  background-color: var(--bg); background-image: var(--tex); background-size: cover; background-position: center; color: var(--fg);
}
.slg-minicard__kind { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.75; display: block; }
.slg-minicard__title { font-size: 0.78rem; font-weight: 700; line-height: 1.15; display: block; }
.slg-cardlink__caption { display: block; text-align: center; margin-top: 0.5rem; font-size: 0.82rem; color: var(--slg-muted); }
.slg-cardlink:hover .slg-cardlink__caption { color: var(--slg-maroon); }

/* Shared video modal */
.slg-video-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.slg-video-modal[hidden] { display: none; }
.slg-video-modal__backdrop { position: absolute; inset: 0; background: rgba(10,14,20,0.8); }
.slg-video-modal__panel { position: relative; width: min(100%, 24rem); background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.slg-video-modal__panel video { width: 100%; max-height: 82vh; display: block; }
.slg-video-modal__close {
  position: absolute; top: 0.6rem; right: 0.6rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; z-index: 2;
  background: rgba(0,0,0,0.55); color: #fff; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.slg-video-modal__close:hover { background: rgba(0,0,0,0.75); }

/* Home */
.slg-home { max-width: 46rem; margin: 0 auto; padding: 3.5rem 1.25rem 4rem; text-align: center; }
.slg-home h1 { font-family: var(--slg-font-display); font-size: 2.2rem; margin: 0 0 0.5rem; }
.slg-home__tagline { color: var(--slg-muted); margin: 0 0 2.5rem; }
.slg-home__grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .slg-home__grid { grid-template-columns: 1fr 1fr; } }
.slg-home__card {
  display: flex; flex-direction: column; gap: 0.4rem; text-align: left; text-decoration: none; color: inherit;
  background: var(--slg-paper); border: 1px solid var(--slg-line); border-radius: 14px; padding: 1.5rem;
}
.slg-home__card:hover { border-color: var(--slg-maroon); }
.slg-home__card strong { font-size: 1.15rem; }
.slg-home__card span { color: var(--slg-muted); font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
