/* ============================================================================
   SN PAGES — editorial design layer for content, info & legal pages.
   Hand-authored (no build step). Uses the theme's @theme var(--*) tokens that
   Tailwind emits to :root, so it matches the rest of 360SportNews exactly.
   All new selectors are namespaced .sn-* to avoid collisions with app.css.
   Prose typography uses :where() (zero specificity) so shortcode/widget CSS
   always wins inside content.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. PAGE HERO  (branded header band for every enhanced page)
   -------------------------------------------------------------------------- */
.sn-hero {
  --sn-accent: var(--color-brand);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 12% -10%, color-mix(in srgb, var(--sn-accent) 22%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, var(--color-ink) 0%, #0c1118 55%, #0a0f15 100%);
  color: #fff;
  padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(2rem, 4.5vw, 3.25rem);
  border-bottom: 3px solid var(--sn-accent);
}
.sn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, color-mix(in srgb, #fff 6%, transparent) 1px, transparent 1px);
  background-size: 56px 100%;
  opacity: .25;
  pointer-events: none;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.sn-hero__inner { position: relative; z-index: 1; max-width: 60rem; }
.sn-hero__crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-size: var(--text-xs); color: rgba(255,255,255,.62);
  margin-bottom: 1.1rem;
}
.sn-hero__crumbs a { color: rgba(255,255,255,.78); text-decoration: none; transition: color .15s; }
.sn-hero__crumbs a:hover { color: #fff; }
.sn-hero__crumbs svg { width: .7rem; height: .7rem; opacity: .5; }
.sn-hero__kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body);
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  background: var(--sn-accent);
  padding: .32rem .7rem; border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.sn-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .005em;
  font-size: clamp(2.4rem, 6vw, 4rem);
  text-transform: uppercase;
  margin: 0;
}
.sn-hero__dek {
  font-size: clamp(1rem, 1.6vw, var(--text-xl));
  line-height: 1.5;
  color: rgba(255,255,255,.82);
  max-width: 44rem;
  margin: 1rem 0 0;
}
.sn-hero--legal { background: linear-gradient(135deg, #11161d 0%, #0c1118 100%); }

/* ----------------------------------------------------------------------------
   2. SHELL  (content + sidebar layout)
   -------------------------------------------------------------------------- */
.sn-shell { padding: clamp(2rem, 4vw, 3.25rem) 0; }
.sn-shell__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 1024px) {
  .sn-shell__grid--sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
}
.sn-shell__main { min-width: 0; }
.sn-shell__aside { min-width: 0; }
@media (min-width: 1024px) {
  .sn-shell__aside-sticky { position: sticky; top: 5.5rem; display: grid; gap: 1.25rem; }
}

/* ----------------------------------------------------------------------------
   3. PROSE  (long-form content styling — :where() = zero specificity)
   -------------------------------------------------------------------------- */
.sn-prose { color: var(--color-ink); font-size: var(--text-base); line-height: 1.75; max-width: 46rem; }
.sn-prose.sn-prose--full { max-width: none; }
.sn-prose :where(p) { margin: 0 0 1.15em; }
.sn-prose :where(a) { color: var(--color-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.sn-prose :where(a):hover { color: var(--color-brand-deep); }
.sn-prose :where(strong) { color: var(--color-ink); font-weight: 700; }
.sn-prose :where(h2) {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .01em; line-height: 1.08;
  font-size: clamp(1.5rem, 3vw, var(--text-3xl));
  color: var(--color-ink);
  margin: 2.1em 0 .6em;
  padding-top: .2em;
}
.sn-prose :where(h2)::after {
  content: ""; display: block; width: 2.5rem; height: 3px;
  background: var(--color-brand); border-radius: 2px; margin-top: .55rem;
}
.sn-prose :where(h3) {
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--text-xl); color: var(--color-ink);
  margin: 1.8em 0 .5em;
}
.sn-prose :where(h4) { font-weight: 700; font-size: var(--text-lg); margin: 1.5em 0 .4em; }
.sn-prose :where(ul, ol) { margin: 0 0 1.3em; padding-left: 0; }
.sn-prose :where(ul) { list-style: none; }
.sn-prose :where(ul) > li {
  position: relative; padding-left: 1.6rem; margin-bottom: .55em;
}
.sn-prose :where(ul) > li::before {
  content: ""; position: absolute; left: .15rem; top: .62em;
  width: .5rem; height: .5rem; border-radius: 2px;
  background: var(--color-brand); transform: rotate(45deg);
}
.sn-prose :where(ol) { list-style: decimal; padding-left: 1.4rem; }
.sn-prose :where(ol) > li { margin-bottom: .55em; padding-left: .25rem; }
.sn-prose :where(ol) > li::marker { color: var(--color-brand); font-weight: 700; }
.sn-prose :where(blockquote) {
  margin: 1.6em 0; padding: .25rem 0 .25rem 1.4rem;
  border-left: 4px solid var(--color-accent);
  font-size: var(--text-lg); line-height: 1.55; color: var(--color-ink);
  font-style: italic;
}
.sn-prose :where(blockquote) cite { display: block; margin-top: .5rem; font-size: var(--text-sm); font-style: normal; color: var(--color-muted); }
.sn-prose :where(hr) { border: 0; border-top: 1px solid var(--color-border); margin: 2.25em 0; }
.sn-prose :where(table) { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: var(--text-sm); }
.sn-prose :where(th, td) { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--color-border); }
.sn-prose :where(th) { font-weight: 700; background: var(--color-surface); }
.sn-prose :where(img) { max-width: 100%; height: auto; border-radius: var(--radius-lg); }
.sn-prose > p:empty { display: none; }
.sn-prose > :first-child { margin-top: 0; }
/* neutralise prose paragraph margins inside structured cards */
.sn-prose :where(.sn-feature, .sn-stat, .sn-contact, .sn-step, .sn-person) p { margin: 0; }
.sn-prose .sn-features, .sn-prose .sn-stats, .sn-prose .sn-contacts, .sn-prose .sn-steps, .sn-prose .sn-roster { list-style: none; }
.sn-prose .sn-feature p::before, .sn-prose .sn-stat p::before, .sn-prose .sn-contact p::before, .sn-prose .sn-step p::before { display: none; }

/* ----------------------------------------------------------------------------
   4. SIDEBAR CARDS
   -------------------------------------------------------------------------- */
.sn-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(2,8,20,.07));
}
.sn-card--brand {
  background: linear-gradient(160deg, var(--color-brand) 0%, var(--color-brand-deep) 100%);
  border-color: transparent; color: #fff;
}
.sn-card__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; font-size: var(--text-lg);
  margin: 0 0 1rem; display: flex; align-items: center; gap: .5rem;
}
.sn-card--brand .sn-card__title { color: #fff; }
.sn-side-item { display: block; padding: .7rem 0; border-bottom: 1px solid var(--color-border); }
.sn-side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sn-side-item:first-of-type { padding-top: 0; }
.sn-side-item__title {
  font-size: var(--text-sm); font-weight: 600; color: var(--color-ink);
  line-height: 1.4; text-decoration: none; display: block;
  transition: color .15s;
}
.sn-side-item__title:hover { color: var(--color-brand); }
.sn-side-item__meta { font-size: var(--text-xs); color: var(--color-muted); margin-top: .2rem; }
.sn-card--brand p { color: rgba(255,255,255,.85); font-size: var(--text-sm); line-height: 1.55; margin: 0 0 1rem; }
.sn-chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.sn-chip {
  font-size: var(--text-xs); font-weight: 600;
  padding: .35rem .7rem; border-radius: var(--radius-full);
  background: var(--color-surface); color: var(--color-ink);
  border: 1px solid var(--color-border); text-decoration: none;
  transition: all .15s;
}
.sn-chip:hover { border-color: var(--color-brand); color: var(--color-brand); }

/* ----------------------------------------------------------------------------
   5. FEATURE GRID / STATS / CONTACTS / STEPS  (usable from page content HTML)
   -------------------------------------------------------------------------- */
.sn-features, .sn-stats, .sn-contacts, .sn-steps {
  display: grid; gap: 1rem; margin: 1.6em 0;
}
.sn-features { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sn-stats    { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sn-contacts { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.sn-feature {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.35rem; position: relative;
  border-top: 3px solid var(--color-brand);
}
.sn-feature__icon { font-size: 1.5rem; line-height: 1; margin-bottom: .6rem; display: block; }
.sn-feature__title { font-weight: 700; font-size: var(--text-base); margin: 0 0 .35rem; color: var(--color-ink); }
.sn-feature__text { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.55; margin: 0; }

.sn-stat {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.3rem 1rem; text-align: center;
}
.sn-stat__num {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; color: var(--color-brand);
  display: block;
}
.sn-stat__label {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .07em;
  color: var(--color-muted); margin-top: .5rem; font-weight: 600;
}

.sn-contact {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.35rem; border-left: 3px solid var(--color-accent);
}
.sn-contact__label { font-weight: 700; font-size: var(--text-base); margin: 0 0 .3rem; color: var(--color-ink); }
.sn-contact__text { font-size: var(--text-sm); color: var(--color-muted); margin: 0 0 .6rem; line-height: 1.5; }
.sn-contact__link { font-weight: 600; font-size: var(--text-sm); color: var(--color-brand); text-decoration: none; }
.sn-contact__link:hover { text-decoration: underline; }

.sn-steps { counter-reset: snstep; grid-template-columns: 1fr; gap: .75rem; }
.sn-step {
  position: relative; padding: 1.1rem 1.1rem 1.1rem 3.6rem;
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.sn-step::before {
  counter-increment: snstep; content: counter(snstep);
  position: absolute; left: 1rem; top: 1rem;
  width: 1.9rem; height: 1.9rem; border-radius: var(--radius-full);
  background: var(--color-brand); color: #fff;
  font-family: var(--font-display); font-size: 1rem;
  display: grid; place-items: center;
}
.sn-step__title { font-weight: 700; font-size: var(--text-base); margin: 0 0 .25rem; color: var(--color-ink); }
.sn-step__text { font-size: var(--text-sm); color: var(--color-muted); margin: 0; line-height: 1.55; }

/* ----------------------------------------------------------------------------
   6. NOTE / CALLOUT
   -------------------------------------------------------------------------- */
.sn-note {
  background: var(--color-brand-light);
  border: 1px solid color-mix(in srgb, var(--color-brand) 25%, transparent);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem; margin: 1.6em 0;
  font-size: var(--text-sm); line-height: 1.6; color: var(--color-ink);
}
.sn-note strong { color: var(--color-brand-deep); }
.sn-note--warn {
  background: color-mix(in srgb, var(--color-accent) 10%, #fff);
  border-color: color-mix(in srgb, var(--color-accent) 35%, transparent);
}
.sn-note--warn strong { color: var(--color-accent-deep); }

/* ----------------------------------------------------------------------------
   7. CLOSING CTA  (reuses brand gradient; standalone so any page can use it)
   -------------------------------------------------------------------------- */
.sn-pagecta {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(120% 130% at 85% -20%, color-mix(in srgb, var(--color-accent) 30%, transparent), transparent 55%),
    linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-deep) 100%);
  border-radius: var(--radius-2xl, 1.5rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff; text-align: center;
}
.sn-pagecta__eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); margin: 0 0 .5rem; }
.sn-pagecta__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.05; margin: 0 0 .6rem; }
.sn-pagecta__text { color: rgba(255,255,255,.85); max-width: 34rem; margin: 0 auto 1.25rem; font-size: var(--text-sm); line-height: 1.6; }
.sn-pagecta__form { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 30rem; margin: 0 auto; }
.sn-pagecta__input { flex: 1 1 12rem; padding: .8rem 1rem; border-radius: var(--radius-full); border: 0; font-size: var(--text-sm); color: var(--color-ink); }
.sn-pagecta__btn {
  flex: 0 0 auto; padding: .8rem 1.5rem; border-radius: var(--radius-full); border: 0;
  background: var(--color-accent); color: #fff; font-weight: 700; font-size: var(--text-sm);
  cursor: pointer; transition: background .15s;
}
.sn-pagecta__btn:hover { background: var(--color-accent-deep); }

/* ----------------------------------------------------------------------------
   8. ROSTER / TEAM  (illustrated initials avatars — no photos)
   NB: container class is .sn-roster (NOT .sn-team) — .sn-team is owned by the
   sn-sports.css live-score widget, and sharing the name clobbered its match rows.
   -------------------------------------------------------------------------- */
.sn-roster { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1.6em 0; }
.sn-person {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.25rem;
}
.sn-person__avatar {
  flex: 0 0 auto; width: 3.25rem; height: 3.25rem; border-radius: var(--radius-full);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.15rem; color: #fff;
  background: linear-gradient(140deg, var(--color-brand), var(--color-brand-deep));
}
.sn-person__name { font-weight: 700; font-size: var(--text-base); margin: 0; color: var(--color-ink); }
.sn-person__role { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--color-accent-deep); font-weight: 700; margin: .15rem 0 .5rem; }
.sn-person__bio { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.55; margin: 0; }

/* sn-sports score/standings widgets render inside .sn-prose on the wide hub
   pages; stop the prose <img> rule from rounding/resizing their 22px crests. */
.sn-prose .sn-logo { width: 22px; height: 22px; max-width: none; border-radius: 0; }

/* ----------------------------------------------------------------------------
   9. LEGAL DOCUMENT LAYOUT
   -------------------------------------------------------------------------- */
.sn-legal { padding: clamp(2rem, 4vw, 3.25rem) 0; }
.sn-legal__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 1024px) {
  .sn-legal__grid { grid-template-columns: 260px minmax(0, 1fr); }
}
.sn-legal__rail { min-width: 0; }
@media (min-width: 1024px) {
  .sn-legal__rail-sticky { position: sticky; top: 5.5rem; }
}
.sn-legal__toc-title {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em;
  font-weight: 700; color: var(--color-muted); margin: 0 0 .85rem;
}
.sn-legal__toc { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--color-border); }
.sn-legal__toc li { margin: 0; }
.sn-legal__toc a {
  display: block; padding: .4rem 0 .4rem 1rem; margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: var(--text-sm); color: var(--color-muted); text-decoration: none;
  line-height: 1.35; transition: all .15s;
}
.sn-legal__toc a:hover { color: var(--color-brand); border-left-color: var(--color-brand); }
.sn-legal__body { min-width: 0; }
.sn-legal__updated {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--text-sm); color: var(--color-muted);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-full); padding: .4rem .9rem; margin-bottom: 1.25rem;
}
.sn-legal__updated b { color: var(--color-ink); font-weight: 700; }
/* numbered legal sections */
.sn-legal__body .sn-prose { counter-reset: snsec; max-width: 48rem; }
.sn-legal__body .sn-prose :where(h2) { scroll-margin-top: 6rem; }
.sn-legal__body .sn-prose :where(h2)::before {
  counter-increment: snsec; content: counter(snsec) ". ";
  color: var(--color-brand); -webkit-text-fill-color: var(--color-brand);
}

/* ----------------------------------------------------------------------------
   10. ARCHIVE + LATEST-NEWS FEED extras
   -------------------------------------------------------------------------- */
.sn-arc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1rem; }
.sn-arc-count {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.85); background: rgba(255,255,255,.14);
  padding: .3rem .75rem; border-radius: var(--radius-full);
}
.sn-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.sn-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem;
  padding: 0 .65rem; border-radius: var(--radius-md, .5rem);
  border: 1px solid var(--color-border); background: var(--color-card);
  color: var(--color-ink); font-weight: 600; font-size: var(--text-sm);
  text-decoration: none; transition: all .15s;
}
.sn-pagination .page-numbers:hover { border-color: var(--color-brand); color: var(--color-brand); }
.sn-pagination .page-numbers.current { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.sn-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

.sn-feed-lead {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(2,8,20,.07));
}
@media (min-width: 768px) { .sn-feed-lead { grid-template-columns: 1.4fr 1fr; } }
.sn-feed-lead__media { position: relative; min-height: 220px; background: var(--color-surface); }
.sn-feed-lead__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sn-feed-lead__ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(140deg, var(--color-brand), var(--color-brand-deep)); color: rgba(255,255,255,.9); font-family: var(--font-display); font-size: 2rem; }
.sn-feed-lead__body { padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; justify-content: center; }
.sn-feed-lead__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1.04; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: .75rem 0 .6rem; }
.sn-feed-lead__title a { color: var(--color-ink); text-decoration: none; }
.sn-feed-lead__title a:hover { color: var(--color-brand); }
.sn-feed-lead__dek { color: var(--color-muted); font-size: var(--text-base); line-height: 1.6; margin: 0 0 1rem; }
.sn-feed-lead__meta { font-size: var(--text-xs); color: var(--color-muted); display: flex; gap: .5rem; align-items: center; }

.sn-feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }

/* ----------------------------------------------------------------------------
   11. SECTION INTRO (shared small heading used above grids)
   -------------------------------------------------------------------------- */
.sn-section-intro { margin: 0 0 1.5rem; }
.sn-section-intro__eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-deep); margin: 0 0 .35rem; }
.sn-section-intro__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, var(--text-3xl)); line-height: 1.05; margin: 0; color: var(--color-ink); }
