/* ============================================================
   SuperCrowd Impact Newsroom — styles
   Brand tokens lifted from the SuperCrowd Hub (Nunito + indigo).
   ============================================================ */
:root {
  --primary: #2e0052;            /* deep indigo */
  --primary-container: #4b0082;  /* indigo */
  --primary-hover: #622599;
  --secondary: #5d4cbf;          /* slate indigo */
  --soft-lilac: #f4e6ff;
  --impact-sky: #71c1f4;
  --power-pink: #ca0362;
  --background: #faf9f8;
  --surface-low: #f4f3f3;
  --on-background: #1b1c1c;
  --on-surface-variant: #4c4451;
  --outline: rgba(46, 0, 82, .16);
  --outline-soft: rgba(46, 0, 82, .08);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-background);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 1024px) { .container { padding-inline: 40px; } }

/* ----- Skip link (a11y) ----- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }

/* ============================== Universe bar ============================== */
.universe {
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
}
.universe__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 9px; flex-wrap: wrap;
}
.universe__home { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.01em; }
.universe__home img { height: 24px; width: 24px; border-radius: 9999px; }
.universe__links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.universe__links a { color: rgba(255,255,255,.82); font-weight: 600; transition: color .2s; }
.universe__links a:hover { color: #fff; }
.universe__links a.is-active { color: var(--impact-sky); }

/* ============================== Masthead ============================== */
.masthead-wrap { background: #fff; } /* clean white band; suits a white-bg logo */
.masthead { text-align: center; padding-top: 24px; }
.masthead__logo { display: inline-block; line-height: 0; }
.masthead__logo img { height: 92px; width: auto; max-width: 100%; }
.masthead__tagline {
  margin-top: 12px;
  font-size: 14px; color: var(--on-surface-variant);
  font-weight: 600; letter-spacing: .01em;
}
@media (max-width: 640px) {
  .masthead { padding-top: 18px; }
  .masthead__logo img { height: 56px; }
  .masthead__tagline { margin-top: 8px; font-size: 13px; }
}

/* ----- Section / utility bar ----- */
.sectionbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  padding-block: 9px;
  font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--on-surface-variant);
}
.sectionbar__mid { color: var(--power-pink); }
.sectionbar span:last-child { text-align: right; }
@media (max-width: 560px) { .sectionbar { font-size: 10.5px; letter-spacing: .06em; } }

/* ============================== Page layout ============================== */
.main { padding-block: 36px 64px; }
.layout { display: grid; grid-template-columns: 1fr; gap: 34px; }
@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr) 304px; gap: 44px; }
}
.rail { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 980px) { .rail { position: sticky; top: 18px; align-self: start; } }

/* ============================== Feed cards ============================== */
.cardgrid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .cardgrid { grid-template-columns: repeat(2, 1fr); } }

.story {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--soft-lilac); border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.story:hover { box-shadow: 0 10px 30px rgba(113,193,244,.20); transform: translateY(-2px); border-color: rgba(113,193,244,.6); }
.story__imgwrap { aspect-ratio: 16 / 9; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 16px; border-bottom: 1px solid var(--soft-lilac); }
.story__imgwrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.story__noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--secondary); background: var(--soft-lilac); font-weight: 800; }
.story__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.story__kicker { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); }
.story__title { font-size: 19px; font-weight: 800; line-height: 1.25; color: var(--primary); }
.story__dek { font-size: 14.5px; line-height: 1.5; color: var(--on-surface-variant); }
.story__meta { margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 700; color: var(--on-surface-variant); display: flex; gap: 8px; align-items: center; }
.story__pin { background: var(--soft-lilac); color: var(--primary); border-radius: 6px; padding: 1px 8px; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
.story__src { color: var(--secondary); }

/* Lead (first) story spans the grid and goes horizontal on wide screens */
@media (min-width: 640px) {
  .story--lead { grid-column: span 2; flex-direction: row; }
  .story--lead .story__imgwrap { aspect-ratio: auto; width: 42%; flex: none; border-bottom: none; border-right: 1px solid var(--soft-lilac); }
  .story--lead .story__body { padding: 26px 28px; gap: 10px; justify-content: center; }
  .story--lead .story__title { font-size: 27px; line-height: 1.18; }
  .story--lead .story__dek { font-size: 16px; }
}

/* ============================== Wire banner (paid CTA) ============================== */
.wire {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--primary-container), var(--primary));
  color: #fff; border-radius: 18px; padding: 26px 24px;
}
.wire__blob { position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 9999px; background: rgba(113,193,244,.18); }
.wire__eyebrow { position: relative; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--impact-sky); }
.wire__title { position: relative; font-size: 22px; font-weight: 900; line-height: 1.15; margin-top: 10px; }
.wire__text { position: relative; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.85); margin-top: 10px; }
.wire__btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  background: var(--power-pink); color: #fff; font-weight: 800; font-size: 15px;
  padding: 12px 24px; border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(202,3,98,.4); transition: opacity .25s ease;
}
.wire__btn:hover { opacity: .92; }
.wire__fine { position: relative; margin-top: 14px; font-size: 11.5px; color: rgba(255,255,255,.6); }

/* Rail "more" list */
.morelist__head { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--on-surface-variant); border-bottom: 1px solid var(--outline); padding-bottom: 8px; }
.morelist a { display: block; padding: 12px 0; font-weight: 700; line-height: 1.3; color: var(--primary); border-bottom: 1px solid var(--outline-soft); transition: color .2s; }
.morelist a:hover { color: var(--power-pink); }

/* ============================== Article page ============================== */
.article { max-width: 74ch; }
.article__kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); }
.article__title { font-size: clamp(28px, 4.5vw, 40px); font-weight: 900; line-height: 1.14; letter-spacing: -.015em; color: var(--primary); margin-top: 10px; }
.article__dek { font-size: clamp(17px, 2.4vw, 20px); line-height: 1.5; color: var(--on-surface-variant); margin-top: 14px; }
.article__attrib { margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--outline); font-size: 13px; font-weight: 700; color: var(--on-surface-variant); }
.article__attrib .pill { display: inline-block; background: var(--soft-lilac); color: var(--primary); border-radius: 6px; padding: 2px 9px; margin-right: 8px; letter-spacing: .03em; text-transform: uppercase; font-size: 11px; }
.article__hero { margin: 22px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--soft-lilac); }
.article__hero img { width: 100%; }

.article__body { margin-top: 6px; font-size: 17px; line-height: 1.75; color: #2a2730; }
.article__body p { margin: 0 0 18px; }
.article__body h2 { font-size: 24px; font-weight: 800; color: var(--primary); margin: 30px 0 12px; letter-spacing: -.01em; }
.article__body h3 { font-size: 20px; font-weight: 800; color: var(--primary); margin: 24px 0 10px; }
.article__body ul, .article__body ol { margin: 0 0 18px; padding-left: 22px; }
.article__body li { margin-bottom: 8px; }
.article__body a { color: var(--power-pink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.article__body a:hover { color: var(--primary); }
.article__body img { margin: 22px auto; border-radius: 12px; }
.article__body blockquote {
  margin: 22px 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--impact-sky);
  color: var(--primary); font-size: 20px; font-weight: 700; line-height: 1.45;
}
.article__back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; font-weight: 800; color: var(--secondary); }
.article__back:hover { color: var(--primary); }
.article__foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--outline); font-size: 13px; color: var(--on-surface-variant); }

/* ============================== Empty / notice ============================== */
.notice { background: #fff; border: 1px solid var(--soft-lilac); border-radius: 16px; padding: 40px 28px; text-align: center; color: var(--on-surface-variant); }
.notice h2 { color: var(--primary); font-size: 22px; font-weight: 800; margin-bottom: 8px; }

/* ============================== Footer ============================== */
.footer { background: var(--primary); color: #fff; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: 48px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; } }
.footer__brand .row { display: flex; align-items: center; gap: 10px; }
.footer__brand img { height: 34px; width: 34px; border-radius: 9999px; }
.footer__brand .name { font-size: 21px; font-weight: 800; }
.footer__brand p { color: rgba(255,255,255,.78); max-width: 38ch; margin-top: 12px; line-height: 1.55; }
.footer__col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--impact-sky); margin-bottom: 12px; font-weight: 800; }
.footer__col a { display: block; color: rgba(255,255,255,.8); padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__copy { border-top: 1px solid rgba(255,255,255,.16); padding-block: 18px; font-size: 12.5px; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }

/* ============================== Desk nav (News / Filings) ============================== */
.desknav { display: flex; gap: 26px; margin-top: 16px; }
.desknav a { padding: 8px 2px; font-size: 15px; font-weight: 800; color: var(--on-surface-variant); border-bottom: 3px solid transparent; transition: color .2s; }
.desknav a:hover { color: var(--primary); }
.desknav a.is-active { color: var(--primary); border-bottom-color: var(--impact-sky); }

/* ============================== Filings page ============================== */
.filings-intro { margin: 28px 0 4px; }
.filings-intro__title { font-size: clamp(24px, 4vw, 34px); font-weight: 900; letter-spacing: -.015em; line-height: 1.1; color: var(--primary); }
.filings-intro__sub { font-size: 16px; line-height: 1.5; color: var(--on-surface-variant); margin-top: 8px; max-width: 60ch; }

.filinglist { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.filing { display: block; background: #fff; border: 1px solid var(--soft-lilac); border-left: 4px solid var(--secondary); border-radius: 10px; padding: 14px 16px; transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.filing:hover { box-shadow: 0 8px 24px rgba(113,193,244,.18); transform: translateY(-1px); }
.filing--new { border-left-color: var(--impact-sky); }
.filing--report { border-left-color: #2e8b6f; }
.filing--closed { border-left-color: #9a93a3; }
.filing--portal { border-left-color: #c98a02; }
.filing__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.filing__badge { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 5px; padding: 2px 8px; color: #fff; background: var(--secondary); }
.filing__badge--new { background: var(--impact-sky); color: #0e3a57; }
.filing__badge--update { background: #6b5fd6; }
.filing__badge--report { background: #2e8b6f; }
.filing__badge--closed { background: #9a93a3; }
.filing__badge--portal { background: #c98a02; }
.filing__date { font-size: 12px; font-weight: 700; color: var(--on-surface-variant); }
.filing__name { font-size: 18px; font-weight: 900; line-height: 1.25; color: var(--primary); margin-top: 8px; }
.filing__meta { font-size: 12.5px; font-weight: 600; color: var(--on-surface-variant); }
.filing__facts { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-top: 8px; font-size: 13.5px; color: var(--on-background); }
.filing__facts b { color: var(--secondary); font-weight: 800; }
.filings-foot { text-align: center; font-size: 11.5px; color: var(--on-surface-variant); margin-top: 22px; }

/* ----- Filing detail ----- */
.filingdetail { max-width: 64ch; }
.filingdetail__name { font-size: clamp(24px, 3.5vw, 32px); font-weight: 900; line-height: 1.15; color: var(--primary); margin-top: 12px; }
.filingdetail__sub { font-size: 14px; color: var(--on-surface-variant); margin-top: 8px; }
.filingdetail__sub a { color: var(--secondary); font-weight: 700; }
.filingdetail__facts { width: 100%; border-collapse: collapse; margin: 22px 0; }
.filingdetail__facts th { text-align: left; width: 38%; padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--secondary); border-bottom: 1px solid var(--outline); vertical-align: top; }
.filingdetail__facts td { padding: 10px 12px; font-size: 15px; font-weight: 700; color: var(--on-background); border-bottom: 1px solid var(--outline); }
.filingdetail__note { color: var(--on-surface-variant); font-size: 14px; margin: 18px 0; }
.btn-edgar { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; font-weight: 800; padding: 12px 22px; border-radius: 9999px; margin-top: 6px; transition: background-color .2s ease; }
.btn-edgar:hover { background: var(--primary-hover); }
.filingdetail__disclaimer { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--outline); font-size: 12.5px; line-height: 1.6; color: var(--on-surface-variant); }

/* ----- Filings search + pagination ----- */
.filsearch { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.filsearch__q { flex: 1; min-width: 200px; padding: 11px 15px; border: 1px solid var(--outline); border-radius: 9999px; font: inherit; font-size: 15px; background: #fff; color: var(--on-background); }
.filsearch__q:focus { outline: 2px solid var(--impact-sky); border-color: var(--impact-sky); }
.filsearch__form { padding: 11px 14px; border: 1px solid var(--outline); border-radius: 9999px; font: inherit; font-size: 14px; background: #fff; color: var(--on-background); }
.filsearch__btn { padding: 11px 24px; border: none; border-radius: 9999px; background: var(--secondary); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; transition: background-color .2s ease; }
.filsearch__btn:hover { background: var(--primary); }
.filsearch__clear { align-self: center; color: var(--on-surface-variant); font-weight: 700; font-size: 13.5px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 26px 0 6px; }
.pager__btn { font-weight: 800; color: var(--secondary); padding: 8px 14px; border-radius: 9999px; }
.pager__btn:hover { background: var(--soft-lilac); color: var(--primary); }
.pager__btn.is-off { color: var(--outline); pointer-events: none; }
.pager__info { font-size: 13.5px; font-weight: 700; color: var(--on-surface-variant); }

/* ----- Filing detail: form-type explainer + documents list ----- */
.filingdetail__explain { font-size: 15px; line-height: 1.55; color: var(--on-surface-variant); margin-top: 12px; max-width: 62ch; }
.docs { margin: 22px 0; }
.docs__head { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); margin-bottom: 10px; }
.docs__item { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 15px; background: #fff; border: 1px solid var(--soft-lilac); border-radius: 10px; margin-bottom: 8px; transition: border-color .2s ease, box-shadow .2s ease; }
.docs__item:hover { border-color: rgba(113,193,244,.6); box-shadow: 0 4px 14px rgba(113,193,244,.15); }
.docs__name { font-weight: 800; color: var(--primary); word-break: break-word; }
.docs__meta { font-size: 12px; font-weight: 700; color: var(--on-surface-variant); white-space: nowrap; }
