/* onhost.net - stylesheet overrides on top of Bootstrap 5.3.3 (CDN)
   Mobile-first. Breakpoints: 480 / 768 / 1024. Light theme only. */

:root {
  color-scheme: only light;
  --ink: #222222;
  --head: #2b2b2b;
  --muted: #595959;
  --green: #5fa23a;
  --green-d: #468022;
  --green-dd: #386b19;
  --green-t: #3d731d;
  --wash: #f3f7ef;
  --grey: #e8e8e8;
  --rule: #d9d9d9;
  --f-head: "Futura Condensed", "Avenir Next Condensed", "Oswald", "Arial Narrow", "Liberation Sans Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --f-body: Georgia, Cambria, "Times New Roman", "Liberation Serif", serif;
  --f-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sec-gap: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);
}

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

html {
  background-color: #ffffff;
  color: #222222;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #ffffff;
  color: #222222;
  font-family: var(--f-body);
  font-size: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  line-height: 1.68;
  margin: 0;
  overflow-wrap: break-word;
}

main,
.article-head,
.page-head {
  background-color: #ffffff;
  color: #222222;
}

.container {
  --bs-gutter-x: 2rem;
  width: 100%;
  max-width: 1140px;
}

.measure {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
}

img,
video,
svg {
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: var(--green-t);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-family: var(--f-ui);
  font-size: 1rem;
}

.skip-link:focus {
  top: 0.5rem;
  color: #ffffff;
}

.progress-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--green);
  z-index: 1040;
}

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

.masthead {
  background-color: #ffffff;
  color: #222222;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.brand {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.7rem + 2.8vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: #111111;
  text-decoration: none;
}

.brand:hover {
  color: #111111;
}

.brand span {
  color: var(--green);
}

.masthead__row {
  display: flex;
  justify-content: center;
  margin-top: 0.7rem;
}

.ad-label {
  display: inline-block;
  background-color: #1c1c1c;
  color: #ffffff;
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem 0.4rem 0.9rem;
  border-radius: 2px;
}

/* ---------- Navigation ---------- */

.mainnav {
  background-color: #ffffff;
  color: #1a1a1a;
  padding: 0.25rem 0 0;
}

.mainnav .container {
  justify-content: center;
}

.mainnav .navbar-toggler {
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  margin: 0.5rem auto;
  padding: 0.4rem 1.1rem;
  background-color: #ffffff;
  color: #1a1a1a;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

@media (max-width: 767.98px) {
  .mainnav .navbar-toggler {
    display: inline-flex;
  }
}

.mainnav .navbar-toggler:hover {
  border-color: var(--green-d);
  color: var(--green-dd);
}

.mainnav .navbar-toggler:focus {
  box-shadow: none;
}

.burger {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: currentColor;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: currentColor;
}

.burger::before {
  top: -6px;
}

.burger::after {
  top: 6px;
}

.mainnav .navbar-nav {
  width: 100%;
  margin: 0.25rem 0 0.75rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e2e2e2;
  text-align: center;
}

.mainnav .navbar-nav .nav-link {
  display: block;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #ececec;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: #1a1a1a;
}

.mainnav .navbar-nav .nav-link:hover,
.mainnav .navbar-nav .nav-link:focus-visible {
  color: var(--green-d);
  background-color: #f6f9f3;
}

@media (min-width: 768px) {
  .mainnav .navbar-nav {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0.5rem 0 0.75rem;
    border-top: 0;
  }

  .mainnav .navbar-nav .nav-link {
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    border-bottom: 0;
    font-size: 1.1875rem;
    background-color: transparent;
  }
}

@media (min-width: 1024px) {
  .mainnav .navbar-nav .nav-link {
    padding: 0.55rem 1.15rem;
    font-size: 1.4375rem;
  }
}

/* ---------- Article head ---------- */

.article-head {
  padding: clamp(1.5rem, 1rem + 2.4vw, 3rem) 0 0;
}

.article-head h1,
.page-head h1 {
  margin: 0 auto 1.1rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.3rem + 2.4vw, 2.875rem);
  line-height: 1.17;
  letter-spacing: 0.005em;
  text-align: center;
  color: var(--head);
  text-wrap: balance;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 0.8rem 0 0;
  list-style: none;
  border-top: 1px solid #cfcfcf;
  font-family: var(--f-ui);
  font-size: 0.875rem;
  line-height: 1.4;
  color: #444444;
}

.meta-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 28px;
}

.meta-row svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--green-d);
}

@media (min-width: 768px) {
  .meta-row {
    gap: 0.35rem 0;
  }

  .meta-row {
    font-size: 0.8125rem;
  }

  .meta-row li {
    padding: 0 0.65rem;
  }

  .meta-row li + li {
    border-left: 1px solid #bdbdbd;
  }
}

@media (min-width: 1024px) {
  .meta-row {
    font-size: 0.875rem;
  }

  .meta-row li {
    padding: 0 0.9rem;
  }
}

.dek-box {
  margin: 0 0 2rem;
  padding: 1rem 1.0625rem;
  background-color: var(--grey);
  color: #222222;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.68;
}

.dek-box p {
  margin: 0;
}

/* ---------- Article body ---------- */

:where(.article-body, .page-body) p {
  margin: 0 0 1.4em;
}

.article-body strong,
.page-body strong {
  color: #111111;
}

.article-body > :last-child {
  margin-bottom: 0;
}

.punch {
  margin: 0 0 1.4em;
  padding-left: 1rem;
  border-left: 4px solid var(--green);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  color: #1a1a1a;
}

.article-body .punch {
  margin-bottom: 1.4em;
}

.bullets {
  margin: 0 0 1.6rem;
  padding-left: 1.75rem;
}

.bullets li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}

.bullets li::marker {
  color: #222222;
}

.sec {
  background-color: #ffffff;
  color: #222222;
  margin-top: var(--sec-gap);
}

.sec h2 {
  margin: 0 0 1rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--head);
  scroll-margin-top: 1.25rem;
}

.sec--band {
  margin-top: var(--sec-gap);
  padding: var(--sec-gap) 0;
  background-color: var(--wash);
  color: #222222;
}

.sec--band + .sec {
  margin-top: var(--sec-gap);
}

/* ---------- Media ---------- */

.pic {
  display: block;
  width: 100%;
  margin: 2rem 0;
}

.pic--tight {
  margin: 0;
}

.article-body > .pic--tight + p {
  margin-top: 2rem;
}

.media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #dcdcdc;
  border-radius: 2px;
}

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

.media--photo {
  aspect-ratio: 3 / 2;
}

.media--photo img {
  object-position: 50% 40%;
}

.media--photo.media--top img {
  object-position: 50% 0;
}

@media (min-width: 768px) {
  .media--photo {
    aspect-ratio: 16 / 9;
  }
}

.media--portrait {
  aspect-ratio: 4 / 5;
  max-width: 340px;
  margin-inline: auto;
}

.media img,
.media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--portrait video {
  object-position: 50% 55%;
}

.pic figcaption {
  margin-top: 0.55rem;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
}

.split {
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.split > [class*="col-"] > p:last-child {
  margin-bottom: 0;
}

/* ---------- CTA ---------- */

.cta-box {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 2.25rem 0;
  padding: 1.35rem 1.15rem;
  border: 2px solid var(--green);
  border-radius: 8px;
  background-color: #eaf2e3;
  background-image: linear-gradient(90deg, #ffffff 0%, #e4efdb 100%);
  color: #222222;
}

.cta-box__icon {
  flex: none;
  width: 76px;
  height: 76px;
}

.cta-box__title {
  margin: 0 0 0.45rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 1.875rem);
  line-height: 1.15;
  color: #1f1f1f;
}

.cta-box__text {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.cta-box .btn-note {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .cta-box {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 1.6rem 1.9rem;
  }

  .cta-box__icon {
    width: 96px;
    height: 96px;
  }
}

.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  background-color: var(--green-d);
  color: #ffffff;
  border-radius: 4px;
  font-family: var(--f-body);
  font-weight: 700;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--green-dd);
}

.btn-cta:hover {
  background-color: var(--green-dd);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(40, 80, 20, 0.28);
}

.btn-cta:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-cta::after {
  content: "\2192";
  margin-left: 0.6rem;
  font-style: normal;
  transition: transform 0.18s ease;
}

.btn-cta:hover::after {
  transform: translateX(3px);
}

@media (min-width: 480px) {
  .btn-cta {
    display: inline-flex;
  }
}

.btn-note {
  margin: 0.65rem 0 0;
  font-family: var(--f-ui);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #555555;
}

.cta-inline {
  margin: 1.75rem 0 0;
}

.cta-inline .btn-note {
  margin-bottom: 0;
}

/* ---------- Table of contents (details) ---------- */

.toc {
  display: block;
  margin: 0 0 0.5rem;
  padding: 0.25rem 1rem;
  background-color: #efefef;
  color: #222222;
  border: 1px solid #c9c9c9;
}

@media (min-width: 768px) {
  .toc {
    display: inline-block;
    min-width: 17rem;
  }
}

.toc summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.1875rem;
  color: #222222;
}

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

.toc__state {
  font-family: var(--f-ui);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--green-t);
}

.toc__hide,
.toc[open] .toc__show {
  display: none;
}

.toc[open] .toc__hide {
  display: inline;
}

.toc ol {
  margin: 0.1rem 0 0.6rem;
  padding-left: 1.4rem;
  font-size: 1rem;
}

.toc li::marker {
  color: #444444;
  font-weight: 700;
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  line-height: 1.4;
}

/* ---------- Ways to earn (rows) ---------- */

.ways {
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.way {
  display: grid;
  gap: 0.2rem 1.75rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .way {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    align-items: start;
  }
}

.way__tag {
  font-family: var(--f-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.way__title {
  margin: 0 0 0.4rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.75rem);
  line-height: 1.15;
  color: #1f1f1f;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

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

/* ---------- What you need (icons) ---------- */

.needs {
  display: grid;
  gap: 1.5rem;
  margin: 1.75rem 0 2rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .needs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.needs li {
  display: grid;
  align-content: start;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.2rem 1rem;
  align-items: start;
  color: #222222;
}

@media (min-width: 768px) {
  .needs li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
}

.needs__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background-color: #ffffff;
  border-radius: 50%;
  color: var(--green-d);
  box-shadow: 0 0 0 2px #cfe0c3;
}

.needs__icon svg {
  width: 28px;
  height: 28px;
}

.needs__title {
  margin: 0 0 0.2rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
  color: #1f1f1f;
}

.needs__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.needs__body {
  grid-column: 2;
}

@media (min-width: 768px) {
  .needs__body {
    grid-column: auto;
  }
}

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

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

.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 0.3rem 0 1.25rem 3.4rem;
  min-height: 2.5rem;
}

.steps li:last-child {
  padding-bottom: 0.3rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background-color: var(--green-d);
  color: #ffffff;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 2.3rem;
  text-align: center;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.45rem;
  bottom: 0.15rem;
  width: 2px;
  background-color: #cfe0c3;
}

/* ---------- Footer ---------- */

.foot {
  margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  padding: 2.25rem 0 3rem;
  background-color: #ffffff;
  color: #595959;
  font-family: var(--f-ui);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.foot .publisher p {
  margin: 0 0 0.75rem;
}

.foot .publisher strong {
  color: #333333;
  font-weight: 700;
}

.foot .legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.foot .legal a {
  display: inline-block;
  padding: 0.8rem 0;
  color: #3d6b22;
}

.foot .legal a:hover {
  color: #274a14;
}

.foot .byline-note {
  margin: 0;
  color: #595959;
}

/* ---------- Secondary pages (about, legal) ---------- */

.page-head {
  padding: clamp(1.5rem, 1rem + 2.4vw, 3rem) 0 0;
}

.dateline {
  margin: 0 0 2rem;
  text-align: center;
  font-family: var(--f-ui);
  font-size: 0.875rem;
  font-style: italic;
  color: #555555;
}

.page-body {
  padding-bottom: 1rem;
}

.page-body h2 {
  margin: 2.25rem 0 0.75rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.75rem);
  line-height: 1.2;
  color: var(--head);
}

.page-body ul,
.page-body ol {
  margin: 0 0 1.4rem;
  padding-left: 1.75rem;
}

.page-body li {
  margin-bottom: 0.4rem;
}

.page-body address {
  margin: 0 0 1.4rem;
  font-style: normal;
}

.page-lede {
  margin-bottom: 1.6rem;
  font-style: italic;
}

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

  a,
  .btn-cta,
  .btn-cta::after {
    transition: none;
  }
}
