/* ==========================================================================
   Bright Digest Desk - site.css
   Loads after Bulma (CDN). Mobile-first: base rules target a 360px screen,
   wider layouts are layered on at 480 / 768 / 1024px.
   Written to stand on its own, so the page looks the same with or without Bulma.
   ========================================================================== */

:root {
  --ink: #0b0d0f;
  --text: #20272d;
  --muted: #58626c;
  --teal: #0b6a88;
  --teal-dark: #074f66;
  --teal-deep: #12616c;
  --tint: #f1f7f8;
  --line: #d3e2e5;
  --orange: #f58634;
  --navy: #10202e;
  --radius: 4px;
  --gutter: 1.125rem;
  --col: 46rem;
  --font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
  background: #fff;
  font-size: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol, figure, dl, dd, table { margin: 0; }
ul, ol { padding: 0; }
img, video { display: block; max-width: 100%; height: auto; }

a { color: var(--teal); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Masthead ---------- */
.masthead {
  position: relative;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--ink);
}

.masthead__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  width: 100%;
  max-width: 63rem;
  min-height: 4.25rem;
  margin: 0 auto;
  padding: 0.5rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  min-height: 2.75rem;
  color: var(--navy);
  text-decoration: none;
}
.brand svg { flex: none; width: 2.5rem; height: 2.5rem; }
.brand__word {
  display: flex;
  flex-direction: column;
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.brand:hover .brand__word { color: var(--teal); }

.ad-label {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #3d4750;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover { background: var(--tint); border-color: var(--teal); }
.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.masthead__nav {
  display: none;
  flex: 0 0 100%;
  order: 5;
}
.masthead__nav.is-open { display: block; }
.masthead__nav ul { list-style: none; padding: 0.25rem 0 0.5rem; }
.masthead__nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.masthead__nav a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 4px; }

/* simple masthead (legal pages): one visible link, no toggle */
.masthead--simple .brand { margin-right: 0; }
.masthead--simple .masthead__nav {
  display: block;
  flex: 0 0 auto;
  order: 0;
  margin-left: auto;
}
.masthead--simple .masthead__nav ul { display: flex; padding: 0; }
.masthead--simple .masthead__nav a { border-top: 0; font-size: 0.8125rem; }

/* ---------- Article column ---------- */
.section.story,
.section.article-top,
.section.closing {
  padding: 0;
  background: transparent;
}

.container.container--narrow {
  width: 100%;
  /* !important: Bulma's :not()-chained container max-width has higher specificity */
  max-width: calc(var(--col) + (var(--gutter) * 2)) !important;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section.article-top { padding-top: 1.75rem; padding-bottom: 2rem; }

.article h1 {
  color: var(--ink);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.125rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dek {
  margin-top: 1.25rem;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
}

.figure-lead { margin-top: 1.75rem; }

.flow > * + * { margin-top: 1.125rem; }
.flow > figure,
.flow > .figure-pair,
.flow > .table-wrap { margin-top: 2rem; }
.flow > figure + *,
.flow > .figure-pair + *,
.flow > .table-wrap + * { margin-top: 2rem; }

.article h2 {
  margin-top: 2.75rem;
  color: var(--ink);
  font-size: clamp(1.3125rem, 1.1rem + 0.9vw, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  scroll-margin-top: 1.5rem;
}
.flow > h2 + * { margin-top: 0.875rem; }
.flow > h2:first-child { margin-top: 2.75rem; }

.article p,
.article li { color: var(--text); }
.article strong { color: var(--ink); font-weight: 700; }
.article p a, .article li a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.article p a:hover, .article li a:hover { color: var(--teal-dark); }

.bullets { list-style: disc; padding-left: 1.25rem; }
.bullets li + li { margin-top: 0.5rem; }
.bullets li::marker { color: var(--teal); }

.steps { list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  min-height: 4rem;
  padding: 0.2rem 0 1.375rem 3.25rem;
  counter-increment: step;
}
.steps li:last-child { min-height: 2.25rem; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.125rem - 1px);
  top: 2.5rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--line);
}
.flow > .steps li + li { margin-top: 0; }

/* ---------- Media ---------- */
.frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #dfe8ea;
  border-radius: var(--radius);
}
.frame--lead { aspect-ratio: 1200 / 630; }
.frame--wide { aspect-ratio: 1.84 / 1; }
.frame--card { aspect-ratio: 3 / 2; }
.frame img,
.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.frame--top img { object-position: center 30%; }

.caption {
  margin-top: 0.625rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.article .figure-pair.columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}
.article .figure-pair .column {
  display: block;
  width: auto;
  min-width: 0;
  padding: 0;
  flex: none;
}
.kicker {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}
.card-cap {
  margin-top: 0.75rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ---------- Table (stacked on mobile) ---------- */
.table-wrap { width: 100%; }

.data-table {
  display: block;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}
.data-table thead {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.data-table tbody { display: block; }
.data-table tr {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.data-table tr + tr { margin-top: 0.875rem; }
.data-table tbody tr:nth-child(even) { background: var(--tint); }
.data-table tbody th {
  display: block;
  padding: 0.7rem 0.9rem;
  background: var(--teal-deep);
  border: 0;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: left;
}
.data-table tbody td {
  display: block;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.data-table tbody td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Calls to action ---------- */
.flow > .cta-block { margin-top: 2rem; }
.cta-lead {
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
}
.flow > .cta-block + * { margin-top: 2rem; }

.button.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.25rem;
  height: auto;
  padding: 0.85rem 1.25rem;
  background: var(--teal);
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.button.cta::after {
  content: "\2192";
  content: "\2192" / "";
  flex: none;
  font-size: 1.15em;
  transition: transform 0.2s ease;
}
.button.cta:hover,
.button.cta:active {
  background: var(--teal-dark);
  border: 0;
  color: #fff;
}
.button.cta:hover::after { transform: translateX(3px); }
.button.cta:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  box-shadow: none;
  color: #fff;
}

/* ---------- Closing band ---------- */
.section.closing {
  margin-top: 3rem;
  padding: 3rem 0 3.25rem;
  background: var(--tint);
  border-top: 1px solid var(--line);
}
.closing .flow { text-align: center; }
.closing h2 {
  margin-top: 0;
  padding-top: 1.25rem;
  position: relative;
}
.closing h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 3rem;
  height: 4px;
  margin-left: -1.5rem;
  background: var(--orange);
}
.closing .flow > h2:first-child { margin-top: 0; }
.closing p { max-width: 34rem; margin-left: auto; margin-right: auto; }
.closing .flow > .button.cta { margin-top: 1.75rem; }

/* ---------- Legal pages ---------- */
.article--legal { padding-bottom: 3rem; }
.article--legal .section.article-top { padding-bottom: 0; }
.article--legal .flow > h2:first-child { margin-top: 2rem; }
.article--legal h2 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
}
.article--legal .dek { font-size: 1.0625rem; color: var(--muted); }
.article--legal .meta-line {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.address-block {
  font-style: normal;
  padding-left: 1rem;
  border-left: 3px solid var(--orange);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-foot {
  margin-top: 0;
  padding: 3rem 0 2.5rem;
  background: #0a0a0a;
  color: #c3cbd2;
  text-align: center;
}
.site-foot .container {
  width: 100%;
  max-width: 58rem !important;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-foot__company {
  margin: 0 auto;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #2c333a;
  color: #c3cbd2;
  font-size: 0.875rem;
  line-height: 1.7;
}
.site-foot__company strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.site-foot__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 1.25rem;
  margin-top: 1rem;
}
.site-foot__legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.1rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.site-foot__legal-links a:hover { color: #ffb677; text-decoration: underline; text-underline-offset: 4px; }
.site-foot__legal-links a:focus-visible { outline-color: #ffb677; }
.about-line {
  max-width: 40rem;
  margin: 1rem auto 0;
  padding: 0;
  background: none;
  border: 0;
  color: #b4bdc5;
  font-size: 0.8125rem;
  line-height: 1.65;
}

/* ==========================================================================
   >= 480px
   ========================================================================== */
@media (min-width: 480px) {
  :root { --gutter: 1.5rem; }

  .button.cta {
    display: inline-flex;
    width: auto;
    padding: 0.9rem 1.75rem;
  }
  .closing .button.cta { margin-left: auto; margin-right: auto; }
  .closing .flow { display: block; }
  .closing .flow > .button.cta { display: inline-flex; }

  .site-foot__legal-links { gap: 0 1.5rem; }
}

/* ==========================================================================
   >= 768px
   ========================================================================== */
@media (min-width: 768px) {
  body { font-size: 1.125rem; line-height: 1.65; }

  .masthead__bar {
    flex-wrap: nowrap;
    gap: 1.25rem;
    min-height: 5.875rem;
  }
  .brand { margin-right: 0; }
  .brand svg { width: 2.875rem; height: 2.875rem; }
  .brand__word { font-size: 1.375rem; }

  .nav-toggle { display: none; }

  .masthead__nav {
    display: block;
    flex: 1 1 auto;
    order: 0;
  }
  .masthead__nav ul {
    display: flex;
    justify-content: center;
    gap: 0.25rem 1.5rem;
    padding: 0;
  }
  .masthead__nav a {
    border-top: 0;
    font-size: 0.9375rem;
  }
  .masthead--simple .masthead__nav { flex: 0 0 auto; }
  .masthead--simple .masthead__nav a { font-size: 0.9375rem; }

  .section.article-top { padding-top: 3rem; padding-bottom: 2.5rem; }

  .dek {
    margin-top: 1.625rem;
    font-size: 1.1875rem;
    line-height: 1.6;
  }

  .figure-lead { margin-top: 2.25rem; }

  .flow > * + * { margin-top: 1.25rem; }
  .flow > figure,
  .flow > .figure-pair,
  .flow > .table-wrap,
  .flow > figure + *,
  .flow > .figure-pair + *,
  .flow > .table-wrap + * { margin-top: 2.5rem; }
  .article h2,
  .flow > h2:first-child { margin-top: 3.25rem; }
  .flow > h2 + * { margin-top: 1rem; }
  .flow > .cta-block { margin-top: 2.25rem; }

  .caption { font-size: 0.9375rem; }

  .article .figure-pair.columns {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  /* real table */
  .data-table {
    display: table;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 1rem;
  }
  .data-table thead {
    position: static;
    display: table-header-group;
    width: auto; height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }
  .data-table tbody { display: table-row-group; }
  .data-table tr {
    display: table-row;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .data-table tr + tr { margin-top: 0; }
  .data-table thead th {
    padding: 0.9rem 1rem;
    background: var(--teal-deep);
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
  }
  .data-table thead th:first-child { border-left: 0; }
  .data-table tbody tr:nth-child(odd) { background: #fff; }
  .data-table tbody tr:nth-child(even) { background: var(--tint); }
  .data-table tbody th,
  .data-table tbody td {
    display: table-cell;
    padding: 0.95rem 1rem;
    border: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    vertical-align: top;
  }
  .data-table tbody th:first-child,
  .data-table tbody td:first-child { border-left: 0; }
  .data-table tbody th {
    width: 26%;
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
  }
  .data-table tbody td::before { display: none; }

  .button.cta { font-size: 1.0625rem; }

  .section.closing { margin-top: 4rem; padding: 4.5rem 0 4.75rem; }

  .article--legal { padding-bottom: 4.5rem; }
  .article--legal .section.article-top { padding-bottom: 0; }
  .article--legal h2 { font-size: 1.375rem; }
  .article--legal .flow > h2:first-child { margin-top: 2.5rem; }

  .site-foot { padding: 3.5rem 0 3rem; }
  .site-foot__legal-links { gap: 0 1.75rem; }
}

/* ==========================================================================
   >= 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  .masthead__bar { gap: 2rem; }
  .masthead__nav ul { gap: 0.25rem 2.375rem; }
  .masthead__nav a { font-size: 1.0625rem; }
  .ad-label { font-size: 0.8125rem; padding: 0.35rem 0.8rem; }

  .section.article-top { padding-top: 3.5rem; }
  .dek { font-size: 1.25rem; }

  .article .figure-pair.columns { gap: 2rem; }
  .card-cap { font-size: 1.1875rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
