/* ==========================================================================
   Clear Signal Weekly - overrides on top of Bulma 1.0.2 (loaded from CDN)
   Mobile-first: base rules target a 360px screen, wider layouts via min-width.
   Breakpoints: 480px, 768px, 1024px.
   ========================================================================== */

:root {
  --navy: #1a2748;
  --green: #1d4f20;
  --green-dark: #143a16;
  --mint: #2f8f5b;
  --ink: #222428;
  --muted: #5b6068;
  --paper: #ffffff;
  --canvas: #f4f4f4;
  --tint: #f2f6f0;
  --tint-line: #dbe4d6;
  --line: #e1e3df;
  --radius: 8px;
  --gutter: 16px;
  --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  color-scheme: light;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font);
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a:hover {
  color: var(--green-dark);
}

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

strong,
b {
  color: inherit;
  font-weight: 700;
}

em {
  font-style: italic;
}

/* ---------- Page card (white column on grey canvas) ---------- */

.page {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 18px var(--gutter) 40px;
  background: var(--paper);
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .page {
    margin-top: 40px;
    padding: 24px 24px 56px;
  }
}

/* ---------- Masthead ---------- */

.masthead {
  margin-bottom: 18px;
}

.masthead__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
}

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

.brand:hover {
  color: var(--navy);
}

.brand__mark {
  width: 26px;
  height: 32px;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.brand__name em {
  font-style: normal;
  color: var(--green);
}

.brand__tag {
  margin-top: 4px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.masthead__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}

.masthead__label {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* ---------- Headline block ---------- */

.headline {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 1.1rem + 1.75vw, 2.0625rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--navy);
  text-wrap: balance;
}

.dek {
  margin: 0 0 18px;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.5;
  color: #000;
}

/* ---------- Figures ---------- */

.figure {
  margin: 1.6rem 0;
}

.figure--hero {
  margin-top: 0;
}

.figure__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e7e7e4;
  aspect-ratio: 4 / 3;
}

.figure--hero .figure__media {
  aspect-ratio: 3 / 2;
}

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

.figure--wide .figure__media {
  aspect-ratio: 3 / 2;
}

.figure--video .figure__media {
  aspect-ratio: 1200 / 630;
}

@media (min-width: 768px) {
  .figure__media {
    aspect-ratio: 3 / 2;
  }

  .figure--hero .figure__media {
    aspect-ratio: 16 / 9;
  }

  .figure--wide .figure__media {
    aspect-ratio: 16 / 9;
  }

  .figure--hero img {
    object-position: 50% 45%;
  }
}

.figure__badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(24, 24, 24, 0.86);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.figure__badge svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.figure figcaption {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--muted);
}

/* ---------- Prose ---------- */

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

.prose .rule + h2,
.prose .cta-band + h2 {
  margin-top: 0;
}

.prose h2 {
  margin: 2.4rem 0 0.75em;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.008em;
  color: var(--navy);
}

.prose h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding: 0;
}

.prose ul.bullets {
  list-style: disc;
  padding-left: 1.3em;
}

.prose ul.bullets li {
  margin-bottom: 0.5em;
}

.prose .lead-in {
  font-weight: 700;
  color: #111;
}

.cta-line {
  margin: 1.4em 0 0;
}

.cta-inline {
  display: inline-block;
  padding: 10px 0;
  font-weight: 800;
  line-height: 1.4;
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.cta-inline:hover {
  color: var(--green-dark);
  text-decoration-thickness: 3px;
}

.rule {
  width: min(160px, 40%);
  height: 1px;
  margin: 2.2rem auto;
  border: 0;
  background: #d6d6d6;
}

.section-gap {
  margin-top: 2.4rem;
}

/* ---------- Check list (reasons at a glance) ---------- */

.checklist {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
}

.checklist li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 38px;
  line-height: 1.45;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.checklist strong {
  display: block;
  color: #111;
}

/* ---------- Option cards (accent: card grid proportions) ---------- */

.option-grid {
  --bulma-column-gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.option-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 16px 8px;
  border: 1px solid var(--tint-line);
  border-radius: 10px;
  background: var(--tint);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.option-card--focus {
  border-color: var(--green);
  background: #eef5ea;
  box-shadow: inset 0 3px 0 var(--green);
}

.option-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.option-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
}

.option-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
}

.option-card p {
  margin: 0 0 12px;
}

.option-card__tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.option-card__facts {
  margin: auto 0 0;
}

.option-card__facts > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--tint-line);
}

.option-card__facts dt {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.option-card__facts dd {
  margin: 0;
  color: #111;
}

/* ---------- Glance panel (UGC key facts) ---------- */

.glance {
  margin: 1.6rem 0;
  padding: 18px 16px 10px;
  border-radius: 10px;
  background: var(--tint);
}

.prose .glance__title {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.glance__list > div {
  display: grid;
  gap: 2px;
  padding: 11px 0;
  border-top: 1px solid var(--tint-line);
  font-size: 0.9688rem;
  line-height: 1.45;
}

.glance__list > div:first-child {
  border-top: 0;
}

.glance__list dt {
  font-weight: 800;
  color: var(--navy);
}

.glance__list dd {
  margin: 0;
}

@media (min-width: 480px) {
  .glance__list > div {
    grid-template-columns: 150px 1fr;
    gap: 16px;
  }
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.2rem 0 1.6rem;
  padding: 0;
}

.steps li {
  position: relative;
  counter-increment: step;
  margin: 0 0 18px;
  padding: 2px 0 0 52px;
  min-height: 40px;
  line-height: 1.5;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 800;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 42px;
  bottom: -14px;
  width: 2px;
  background: var(--tint-line);
}

.steps strong {
  display: block;
  color: #111;
}

.steps--plain li {
  min-height: 0;
}

/* ---------- Buttons / CTA (Bulma .button, restyled) ---------- */

.button.cta-button {
  display: block;
  height: auto;
  min-height: 56px;
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.005em;
  text-align: center;
  white-space: normal;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

.button.cta-button:hover,
.button.cta-button:focus {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.button.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.button.cta-button .cta-arrow {
  display: inline-block;
  margin-left: 6px;
}

@media (min-width: 480px) {
  .button.cta-button {
    display: inline-block;
    width: auto;
    min-width: 340px;
    max-width: 100%;
  }
}

.cta-band {
  margin: 2.2rem 0;
  padding: 26px 16px 28px;
  border-radius: 10px;
  background: var(--tint);
  text-align: center;
}

.cta-band p {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}

@media (min-width: 768px) {
  .cta-band {
    padding: 32px 40px 34px;
  }
}

.cta-final {
  margin: 2rem 0 0;
  text-align: center;
}

.prose .cta-points {
  display: inline-block;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 0.9375rem;
}

.cta-points li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 26px;
  line-height: 1.4;
}

.cta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8.5' fill='none' stroke='%231d4f20' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- FAQ accordion (accent) ---------- */

.faq {
  margin: 0.4rem 0 0;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 14px 2px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.faq__q:hover {
  color: var(--green);
}

.faq__icon {
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.faq__q[aria-expanded="true"] .faq__icon {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq__a {
  padding: 0 2px 16px;
}

.faq__a p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

[x-cloak] {
  display: none !important;
}

/* ---------- Footer (publisher imprint) ---------- */

.bottom {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 36px var(--gutter) 56px;
  background: transparent;
  border: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #565b62;
}

@media (min-width: 768px) {
  .bottom {
    padding: 44px 24px 72px;
  }
}

.bottom .company p {
  margin: 0 0 1em;
}

.bottom .company strong {
  color: #3a3e44;
}

.bottom .policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0 0 0.8em;
}

.bottom .policies a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bottom .policies a:hover {
  color: var(--green-dark);
  text-decoration-thickness: 2px;
}

.bottom .site_note {
  margin: 0;
  color: #565b62;
}

/* ---------- Legal / about pages ---------- */

.legal h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--navy);
}

.legal .legal__updated {
  margin: 0 0 1.6em;
  font-size: 0.875rem;
  color: var(--muted);
}

.legal .prose h2 {
  margin-top: 2em;
  font-size: 1.25rem;
}

.legal .prose a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

  * {
    transition: none !important;
  }
}
