/* ==========================================================================
   Bright Bulletin Desk - site.css
   Mobile-first. Breakpoints: 480px, 768px, 1024px.
   Art direction: sober news-desk feature - white page, single 736px column,
   bold uppercase headline, teal navigation and table header, black imprint.
   ========================================================================== */

:root {
  --ink: #0a0b0d;
  --text: #191d22;
  --muted: #4d5661;
  --line: #d8dee3;
  --tint: #eef4f7;
  --teal: #0b6b8c;
  --teal-dark: #074d66;
  --orange: #f58a3c;
  --navy: #14233a;
  --black: #0b0c0e;
  --on-dark: #c9d0d6;

  --gutter: clamp(16px, 4.4vw, 24px);
  --measure: 46rem;
  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --fs-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --fs-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  --fs-dek: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-h2: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
  --fs-h1: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);

  --section-gap: clamp(2.25rem, 5vw, 3.25rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

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

[id] {
  scroll-margin-top: 16px;
}

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

.masthead__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  width: 100%;
  max-width: 69rem;
  min-height: 68px;
  margin: 0 auto;
  padding: 10px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 36px;
  height: 36px;
}

.brand__name {
  display: flex;
  flex-direction: column;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand__desk {
  font-weight: 600;
  color: var(--teal);
}

.masthead__label {
  margin: 0;
  padding: 4px 6px;
  background: #fff3e8;
  border: 1.5px solid var(--orange);
  color: #5a2a00;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.masthead__toggle:hover {
  background: var(--tint);
}

.masthead__toggle-icon,
.masthead__toggle-icon::before,
.masthead__toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.masthead__toggle-icon {
  position: relative;
}

.masthead__toggle-icon::before,
.masthead__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.masthead__toggle-icon::before {
  top: -7px;
}

.masthead__toggle-icon::after {
  top: 7px;
}

.masthead__toggle[aria-expanded="true"] .masthead__toggle-icon {
  background: transparent;
}

.masthead__toggle[aria-expanded="true"] .masthead__toggle-icon::before {
  transform: translateY(7px) rotate(45deg);
}

.masthead__toggle[aria-expanded="true"] .masthead__toggle-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

.masthead__nav {
  display: none;
  flex: 0 0 100%;
  order: 5;
  border-top: 1px solid var(--line);
}

.masthead__nav.is-open {
  display: block;
}

.masthead__nav ul {
  margin: 0;
  padding: 0.25rem 0 0.5rem;
  list-style: none;
}

.masthead__nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s ease;
}

.masthead__nav a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (min-width: 480px) {
  .brand__name {
    font-size: 1.3125rem;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .masthead__bar {
    gap: 0 12px;
  }

  .masthead__label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 5px 10px;
  }
}

@media (min-width: 1024px) {
  .masthead__bar {
    min-height: 94px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    margin-right: 0;
  }

  .brand__name {
    font-size: 1.625rem;
  }

  .brand__mark {
    width: 48px;
    height: 48px;
  }

  .masthead__toggle {
    display: none;
  }

  .masthead__nav {
    display: block;
    flex: 1 1 auto;
    order: 2;
    border-top: 0;
  }

  .masthead__nav ul {
    display: flex;
    justify-content: center;
    gap: 2.75rem;
    padding: 0;
  }

  .masthead__nav a {
    min-height: 44px;
    font-size: 1.0625rem;
  }

  .masthead__label {
    order: 3;
  }
}

/* ---------- Article column ---------- */
.story {
  display: block;
}

.prose {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.story__header {
  padding-top: clamp(1.75rem, 5vw, 2.75rem);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  flex: none;
  width: 28px;
  height: 4px;
  background: var(--orange);
}

.article__title {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: pretty;
}

.byline {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: var(--fs-small);
}

.dek {
  margin: 0 0 clamp(1.75rem, 4vw, 2.25rem);
  color: var(--ink);
  font-size: var(--fs-dek);
  line-height: 1.55;
}

.prose p {
  margin: 0 0 1.15em;
}

.prose h2 {
  margin: var(--section-gap) 0 0.7rem;
  color: var(--ink);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.22;
  text-wrap: pretty;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.45em 0;
  padding-left: 0.3rem;
}

.prose li::marker {
  color: var(--teal);
}

.prose li strong {
  color: var(--ink);
}

/* ---------- Figures & media ---------- */
.figure {
  margin: 2rem 0;
}

.figure--wide {
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
}

.figure--wide figcaption {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.figure__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #dfe6ea;
}

.figure__media img,
.figure__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-3x2 {
  aspect-ratio: 3 / 2;
}

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.ratio-wide {
  aspect-ratio: 40 / 21;
}

.ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.figure figcaption {
  padding-top: 0.6rem;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.45;
}

.figure__kicker {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.figure-pair {
  display: grid;
  gap: 1.75rem;
  margin: 2rem 0;
}

.figure-pair .figure {
  margin: 0;
}

/* ---------- Call to action ---------- */
.cta {
  margin: 2.5rem 0;
}

.cta::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: 1rem;
  background: var(--orange);
}

.cta__lead {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.prose .cta .cta__lead {
  margin-bottom: 1rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 54px;
  padding: 0.85rem 1.5rem;
  background: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 2px;
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn::after {
  content: "";
  flex: none;
  width: 0.55em;
  height: 0.55em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.btn:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  box-shadow: 0 6px 16px rgba(7, 77, 102, 0.22);
}

.btn:hover::after {
  transform: translateX(3px) rotate(45deg);
}

.btn:focus-visible {
  outline-color: var(--ink);
}

@media (min-width: 480px) {
  .btn {
    display: inline-flex;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ---------- Data table ---------- */
.table-block {
  margin: 2rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  line-height: 1.45;
}

.data-table caption {
  padding: 0 0 0.75rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

/* Mobile: stacked blocks, header row kept for assistive tech only */
.data-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.data-table tbody,
.data-table tr,
.data-table td {
  display: block;
}

.data-table tr {
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--ink);
}

.data-table td {
  padding: 0.65rem 0.9rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.data-table td + td {
  border-top: 1px solid var(--line);
}

.data-table td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.15rem;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td:first-child {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.data-table td:first-child::before {
  display: none;
}

@media (min-width: 768px) {
  .data-table thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .data-table tbody {
    display: table-row-group;
  }

  .data-table tr {
    display: table-row;
    margin: 0;
    border-bottom: 0;
  }

  .data-table th,
  .data-table td {
    display: table-cell;
  }

  .data-table th {
    padding: 0.85rem 1rem;
    background: var(--teal);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
  }

  .data-table td,
  .data-table td + td {
    padding: 1.05rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
  }

  .data-table td + td {
    border-left: 1px solid var(--ink);
  }

  .data-table td::before {
    display: none;
  }

  .data-table td:first-child {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
    font-size: inherit;
    font-weight: 700;
  }
}

/* ---------- FAQ band (accordion) ---------- */
.band {
  margin-top: var(--section-gap);
  padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(2.5rem, 6vw, 4.25rem);
  background: var(--tint);
}

.band h2 {
  margin-top: 0;
}

.faq {
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid #b7c3cb;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0.85rem 0;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.faq summary:hover {
  color: var(--teal);
}

.faq summary:hover::after {
  background: var(--teal-dark);
}

.faq details[open] summary::after {
  content: "\2212";
  background: var(--ink);
}

.faq__answer {
  padding: 0 0 1.2rem;
}

.faq__answer p {
  margin: 0;
  padding-right: 0;
  color: var(--text);
  font-size: 1.0625rem;
}

@media (min-width: 768px) {
  .faq__answer p {
    padding-right: 3.5rem;
  }
}

/* ---------- Legal / about pages ---------- */
.postal {
  margin: 0 0 1.5em;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--teal);
  font-style: normal;
  line-height: 1.6;
}

/* ---------- Footer (publisher imprint) ---------- */
.footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(2.25rem, 6vw, 3.5rem) var(--gutter) clamp(2rem, 5vw, 3rem);
  background: var(--black);
  color: var(--on-dark);
  font-size: 0.8125rem;
  line-height: 1.65;
  text-align: center;
}

.footer :focus-visible {
  outline-color: #fff;
}

.footer .company {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  color: var(--on-dark);
}

.footer .company p {
  margin: 0;
}

.footer .company p:first-child {
  margin-bottom: 0.15rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.25rem;
  max-width: 56rem;
  margin: 0 auto 1.25rem;
}

.page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.15rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s ease;
}

.page-links a:hover {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-note {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--on-dark);
  font-size: 0.8125rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .page-links {
    gap: 0 1.75rem;
  }
}

/* ---------- Tablet / desktop layout refinements ---------- */
@media (min-width: 768px) {
  .figure--wide {
    margin-left: 0;
    margin-right: 0;
  }

  .figure--wide figcaption {
    padding-left: 0;
    padding-right: 0;
  }

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

  .cta {
    margin: 3rem 0;
  }
}

@media (min-width: 1024px) {
  .story__header {
    padding-top: 3.25rem;
  }

  .figure {
    margin: 2.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
