/* =========================================================
   Clear Digest - shared stylesheet
   Mobile-first (base = 360px). Layers: 480 / 768 / 1024.
   Tailwind (CDN) is loaded with preflight disabled, so the
   reset below is the only base layer.
   ========================================================= */

:root {
  --ink: #232323;
  --head: #2a2a2a;
  --muted: #595959;
  --rule: #d6d6d6;
  --rule-soft: #e7e7e7;
  --panel: #ececec;
  --wash: #f4f4f4;
  --green: #3b7a1e;
  --green-dark: #2a5a12;
  --green-light: #5f9f38;
  --green-wash: #eef5e8;
  --f-head: "Francois One", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --col: 800px;
  --gutter: 20px;
  --r: 6px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, address, dl, dd { margin: 0; }
ul, ol { padding: 0; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--green-dark); color: #fff; padding: 12px 16px;
  font-family: var(--f-head); text-decoration: none; border-radius: var(--r);
}
.skip-link:focus { top: 12px; }

/* ---------- masthead ---------- */
.masthead { background: #fff; border-bottom: 1px solid var(--rule-soft); }
.masthead__inner {
  max-width: 1180px; margin: 0 auto;
  padding: 14px var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ad-label {
  display: inline-block;
  font-family: var(--f-body); font-weight: 700; font-size: .75rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid #b5b5b5; border-radius: 3px;
  padding: 3px 9px 2px;
}
.brand {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--head);
  padding: 2px 6px;
}
.brand__row { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__name {
  display: flex; flex-direction: column;
  font-family: var(--f-head); font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
  line-height: .95; letter-spacing: .01em; text-transform: lowercase;
}
.brand__name .brand__clear { color: var(--green-light); }
.brand__tag {
  font-family: var(--f-head); font-size: clamp(.85rem, .7rem + .6vw, 1.1rem);
  letter-spacing: .05em; text-transform: lowercase; color: var(--head);
  text-align: center; line-height: 1.2;
}
.brand__tag em { font-style: normal; color: var(--green); }
.brand:hover .brand__name { color: var(--green-dark); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 0 16px;
  font-family: var(--f-head); font-size: 1.05rem; text-transform: lowercase; letter-spacing: .03em;
  background: #fff; color: var(--head);
  border: 1px solid var(--rule); border-radius: var(--r);
  cursor: pointer; transition: background .2s, border-color .2s;
}
.nav-toggle:hover { background: var(--wash); border-color: #b9b9b9; }
.nav-toggle__bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.main-nav { display: none; width: 100%; }
.main-nav.is-open { display: block; }
.main-nav ul {
  list-style: none; margin: 0; padding: 6px 0 10px;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule-soft);
}
.main-nav li + li { border-top: 1px solid var(--rule-soft); }
.main-nav a {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 8px;
  font-family: var(--f-head); font-size: 1.3rem; letter-spacing: .02em; text-transform: lowercase;
  color: var(--head); text-decoration: none;
  transition: color .2s;
}
.main-nav a:hover { color: var(--green); }

/* ---------- page + article ---------- */
.page { padding: 24px var(--gutter) 24px; }
.article { max-width: var(--col); margin: 0 auto; }

.article__title {
  font-family: var(--f-head); font-weight: 400; color: var(--head);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  line-height: 1.18; letter-spacing: .005em;
  text-align: center; text-wrap: balance;
  margin: 8px auto 12px;
}
.byline {
  text-align: center; font-size: .875rem; color: var(--muted);
  line-height: 1.5; margin-bottom: 22px;
}
.byline span + span::before { content: "\00b7"; margin: 0 8px; }

.dek {
  background: var(--panel);
  padding: 16px 18px;
  font-style: italic; font-size: 1rem; line-height: 1.7;
  margin-bottom: 28px;
}

.article p { margin-bottom: 1.2em; }
.article a:not(.btn) {
  color: var(--green-dark);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color .2s, text-decoration-thickness .2s;
}
.article a:not(.btn):hover { color: var(--green); text-decoration-thickness: 2px; }
.article strong { font-weight: 700; }

.plain-list { list-style: disc; padding-left: 1.5rem; margin: 0 0 1.4em; }
.plain-list li { padding-left: .25rem; margin-bottom: .45em; }
.plain-list li::marker { color: var(--green); }

/* ---------- sections ---------- */
.section { scroll-margin-top: 12px; }
.sec-title {
  font-family: var(--f-head); font-weight: 400; color: var(--head);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  line-height: 1.22; letter-spacing: .005em;
  margin-bottom: .7em; text-wrap: balance;
}
.sub-title {
  font-family: var(--f-head); font-weight: 400; color: var(--head);
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem);
  line-height: 1.25; margin: 0 0 .5em;
}
.table-title {
  font-family: var(--f-head); font-size: 1.2rem; line-height: 1.3; color: var(--head);
  margin: 1.6em 0 .6em;
}

/* section divider: hairline with a small green pill */
.divider {
  display: flex; align-items: center; gap: 14px;
  margin: clamp(34px, 6vw, 56px) 0;
  border: 0; height: auto;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.divider span { width: 30px; height: 6px; border-radius: 999px; background: var(--green-light); display: block; }

/* ---------- media ---------- */
.figure { margin: 28px 0 32px; }
.figure img { width: 100%; height: auto; border-radius: 2px; background: var(--wash); }
.media-frame {
  position: relative; width: 100%;
  aspect-ratio: 1200 / 630;
  background: #d9d9d9; overflow: hidden; border-radius: 2px;
}
.media-frame video { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption {
  font-size: .875rem; line-height: 1.5; color: var(--muted);
  margin-top: 8px; font-style: italic;
}
.figure--lead { margin-top: 0; }

/* ---------- table of contents ---------- */
.toc {
  background: var(--panel); border: 1px solid #cdcdcd;
  padding: 6px 18px 10px; margin: 0 0 8px;
  width: 100%;
}
.toc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.toc__title { font-family: var(--f-head); font-size: 1.15rem; color: var(--head); letter-spacing: .01em; }
.toc__toggle {
  min-height: 44px; min-width: 56px; padding: 0 6px;
  background: none; border: 0; cursor: pointer;
  font-size: .9rem; color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px;
}
.toc__toggle:hover { color: var(--green); }
.toc__list { margin: 0; padding: 0 0 4px 1.4rem; font-size: .98rem; line-height: 1.4; }
.toc__list li { margin: 0; }
.toc__list a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px;
}
.toc__list a:hover { color: var(--green); }

/* ---------- buttons + CTA ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 50px; padding: 12px 24px;
  background: var(--green); color: #fff;
  font-family: var(--f-head); font-size: 1.2rem; letter-spacing: .02em; line-height: 1.2;
  text-decoration: none; text-align: center;
  border-radius: 4px; border: 0;
  box-shadow: 0 2px 0 var(--green-dark);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(42, 90, 18, .25); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 0 var(--green-dark); }
.btn:focus-visible { outline: 3px solid #1b1b1b; outline-offset: 3px; }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.cta-box {
  display: grid; gap: 18px;
  border: 2px solid var(--green-light); border-radius: 8px;
  padding: 20px;
  background: linear-gradient(90deg, #eaf4e1 0%, #f8fbf5 55%, #fff 100%);
  margin: 34px 0;
}
.cta-box__title { font-family: var(--f-head); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.2; color: var(--head); margin-bottom: .4em; }
.cta-box__text p { margin-bottom: 1em; }

.step-card {
  background: #fff; border: 2px solid var(--green-light); border-radius: 4px;
  padding: 8px 10px 10px; max-width: 220px; width: 100%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
}
.step-card__title {
  display: block; text-align: center; font-family: var(--f-head); font-size: 1rem;
  line-height: 1.1; padding-bottom: 6px; color: var(--head); letter-spacing: .03em;
}
.step-card__list { list-style: none; margin: 0; padding: 0; }
.step-card__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--f-head); font-size: .85rem; line-height: 1; color: #1d1d1d;
  padding: 6px 8px; margin-bottom: 3px; text-transform: lowercase;
}
.step-card__list li::after {
  content: ""; width: 12px; height: 12px; background: #fff; border: 2px solid #3a3a3a; border-radius: 2px; flex: none;
}
.step-card__list li:nth-child(1) { background: #dff0d0; }
.step-card__list li:nth-child(2) { background: #c6e5ac; }
.step-card__list li:nth-child(3) { background: #a9d684; }
.step-card__list li:nth-child(4) { background: #8cc761; margin-bottom: 0; }

.inline-cta { margin: 26px 0 8px; }

/* ---------- steps (ordered) ---------- */
.steps { list-style: none; counter-reset: s; margin: 0 0 1.4em; padding: 0; }
.steps li {
  counter-increment: s; position: relative;
  padding-left: 54px; margin-bottom: 1.1em; min-height: 38px;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-family: var(--f-head); font-size: 1.15rem; line-height: 1;
  display: grid; place-items: center;
}
.steps strong { display: block; font-family: var(--f-head); font-weight: 400; font-size: 1.2rem; color: var(--head); line-height: 1.3; margin-bottom: .1em; }

/* ---------- data tables (stacked on mobile) ---------- */
.table-wrap {
  margin: 0 0 1.6em;
  border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
  background: #fff;
}
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.data-table,
.data-table thead,
.data-table tbody,
.data-table tr,
.data-table th,
.data-table td { display: block; }
.data-table thead {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.data-table tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--rule-soft); }
.data-table tbody tr:last-child { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: #fafafa; }
.data-table th, .data-table td { padding: 0; text-align: left; }
.data-table tbody th {
  font-family: var(--f-head); font-weight: 400; font-size: 1.1rem; color: var(--head);
  line-height: 1.3; margin-bottom: 6px;
}
.data-table td { margin-top: 8px; }
.data-table td::before {
  content: attr(data-label);
  display: block; font-family: var(--f-head); font-size: .78rem; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .08em; color: var(--green-dark);
  margin-bottom: 1px;
}

/* ---------- good fit split ---------- */
.split { display: grid; gap: 8px; margin: 0 0 1.4em; }
.split__col .plain-list { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); margin: 0 0 1.4em; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 2px;
  font-family: var(--f-head); font-size: 1.2rem; line-height: 1.3; color: var(--head);
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-wash); color: var(--green-dark);
  font-family: var(--f-body); font-size: 1.3rem; line-height: 1;
  transition: background .2s, color .2s;
}
.faq summary:hover { color: var(--green-dark); }
.faq summary:hover::after { background: var(--green); color: #fff; }
.faq details[open] summary::after { content: "\2212"; }
.faq__answer { padding: 0 2px 8px; }
.faq__answer p:last-child { margin-bottom: .8em; }

/* ---------- closing ---------- */
.closing { text-align: center; }
.closing .sec-title { margin-left: auto; margin-right: auto; }
.closing p { max-width: 36em; margin-left: auto; margin-right: auto; }
.closing .btn { margin-top: 6px; }

/* ---------- legal / about pages ---------- */
.legal-meta { text-align: center; font-size: .875rem; color: var(--muted); margin-bottom: 26px; }
.legal .sec-title { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.6rem); margin-top: 1.8em; }
.legal .address-block { font-style: normal; margin: 0 0 1.4em; padding-left: 16px; border-left: 3px solid var(--green-light); }

/* ---------- footer (publisher imprint) ---------- */
.page-footer {
  padding: 24px var(--gutter) 48px;
  color: var(--muted); font-size: .8125rem; line-height: 1.65;
  background: none; border: 0;
}
.page-footer > * { max-width: var(--col); margin-left: auto; margin-right: auto; }
.page-footer__publisher { font-style: normal; margin-bottom: 14px; }
.page-footer__publisher p { margin: 0; }
.page-footer__publisher p:first-child { font-weight: 700; color: var(--head); }
.page-footer__foot-links {
  display: flex; flex-wrap: wrap; gap: 0 20px; margin-bottom: 10px;
}
.page-footer__foot-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.page-footer__foot-links a:hover { color: var(--green-dark); }
.page-footer .about-line { margin: 0 auto; color: var(--muted); font-size: .8125rem; line-height: 1.65; }

/* =========================================================
   >= 480px
   ========================================================= */
@media (min-width: 480px) {
  :root { --gutter: 24px; }
  .btn { width: auto; }
  .brand__mark { width: 52px; height: 52px; }
  .dek { padding: 18px 22px; }
}

/* =========================================================
   >= 768px
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  body { font-size: 1.125rem; }
  .masthead__inner { padding-top: 18px; gap: 14px; }
  .nav-toggle { display: none; }
  .main-nav { display: block; width: auto; }
  .main-nav ul {
    flex-direction: row; flex-wrap: wrap; justify-content: center;
    gap: 0 44px; border-top: 0; padding: 6px 0 16px;
  }
  .main-nav li + li { border-top: 0; }
  .main-nav a { min-height: 48px; padding: 0 2px; font-size: 1.35rem; }

  .page { padding-top: 44px; }
  .article__title { margin-top: 0; margin-bottom: 16px; }
  .byline { margin-bottom: 30px; }
  .dek { font-size: 1.0625rem; padding: 20px 24px; margin-bottom: 36px; }

  .cta-box { grid-template-columns: 190px 1fr; gap: 32px; align-items: center; padding: 26px 30px; }
  .toc { width: fit-content; min-width: 340px; }

  .split { grid-template-columns: 1fr 1fr; gap: 0; }
  .split__col:first-child { padding-right: 36px; }
  .split__col + .split__col { border-left: 1px solid var(--rule); padding-left: 36px; }

  /* tables return to a real table layout */
  .data-table { display: table; font-size: .975rem; }
  .data-table thead {
    display: table-header-group; position: static; width: auto; height: auto;
    margin: 0; overflow: visible; clip: auto;
  }
  .data-table tbody { display: table-row-group; }
  .data-table tr { display: table-row; }
  .data-table th, .data-table td { display: table-cell; }
  .data-table thead th {
    padding: 13px 18px; background: var(--wash);
    font-family: var(--f-head); font-weight: 400; font-size: 1.05rem; letter-spacing: .03em; color: var(--head);
    border-bottom: 1px solid var(--rule);
  }
  .data-table tbody tr { padding: 0; border-bottom: 0; }
  .data-table tbody th, .data-table td {
    padding: 15px 18px; vertical-align: top;
    border-bottom: 1px solid var(--rule-soft);
  }
  .data-table tbody tr:last-child th,
  .data-table tbody tr:last-child td { border-bottom: 0; }
  .data-table tbody th { width: 24%; margin: 0; font-size: 1.1rem; }
  .data-table td { margin: 0; }
  .data-table td::before { display: none; }

  .faq summary { font-size: 1.3rem; }
}

/* =========================================================
   >= 1024px
   ========================================================= */
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  .page { padding-top: 56px; }
  .figure { margin: 36px 0 40px; }
  .cta-box { grid-template-columns: 210px 1fr; padding: 30px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
