/* ==========================================================================
   donaghyswebconsulting.com - single stylesheet
   Mobile-first. Breakpoints: 480px, 768px, 1024px.
   Light theme only.
   ========================================================================== */

:root {
  color-scheme: only light;

  --white: #ffffff;
  --ink: #0c1215;
  --text: #222b30;
  --text-soft: #36434a;
  --muted: #4f5c62;
  --line: #d4e3e5;
  --line-strong: #d9dee0;
  --tint: #f2f8f8;
  --tint-2: #e4f0f1;
  --teal: #12606b;
  --teal-dark: #0c4650;
  --teal-soft: #3b9aa5;

  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --pad: 16px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-btn: 0 1px 0 rgba(12, 70, 80, 0.4), 0 10px 20px -10px rgba(12, 70, 80, 0.55);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  background-color: var(--white);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 12px 18px;
  background-color: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
  top: 0;
}

.wrap {
  width: 100%;
  max-width: 832px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

.masthead {
  background-color: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand toggle"
    "label toggle"
    "nav nav";
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: 10px var(--pad);
}

.masthead__brand {
  grid-area: brand;
  color: var(--ink);
  font-size: clamp(0.95rem, 0.75rem + 1vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.15s ease;
}

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

.masthead__label {
  grid-area: label;
  justify-self: start;
  padding: 2px 8px;
  background-color: var(--tint-2);
  color: var(--teal-dark);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
  border-radius: 4px;
}

.masthead__toggle {
  grid-area: toggle;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.masthead__toggle:hover {
  background-color: var(--tint);
  border-color: var(--teal-soft);
}

.masthead__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.masthead--open .masthead__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.masthead--open .masthead__toggle-bar:nth-child(2) {
  opacity: 0;
}

.masthead--open .masthead__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.masthead__nav {
  grid-area: nav;
  display: none;
}

.masthead--open .masthead__nav {
  display: block;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

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

.masthead__nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.masthead__nav a:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 1024px) {
  .masthead__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav label";
    min-height: 60px;
    padding: 0 44px;
    column-gap: 0;
  }

  .masthead__toggle {
    display: none;
  }

  .masthead__nav,
  .masthead--open .masthead__nav {
    display: block;
    margin: 0 32px 0 64px;
    border-top: 0;
  }

  .masthead__nav ul {
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  .masthead__nav a {
    font-size: 0.9375rem;
  }

  .masthead__label {
    justify-self: end;
  }
}

/* --------------------------------------------------------------------------
   Buttons and CTA note
   -------------------------------------------------------------------------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 26px;
  background-color: var(--teal);
  color: var(--white);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-btn);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn::after {
  content: "\2192";
  font-size: 1.2em;
  line-height: 1;
  transition: transform 0.15s ease;
}

.btn:hover {
  background-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
}

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

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.btn--compact {
  min-height: 48px;
  padding: 10px 22px;
  font-size: 1rem;
}

.cta-sub {
  margin-top: 10px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

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

/* --------------------------------------------------------------------------
   Promo band (under masthead)
   -------------------------------------------------------------------------- */

.promo {
  background-color: var(--tint);
  color: var(--ink);
}

.promo__inner {
  display: grid;
  gap: 12px;
  padding-block: 18px;
}

.promo__text {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.promo .btn {
  width: 100%;
}

.promo .cta-sub {
  margin-top: 0;
}

@media (min-width: 480px) {
  .promo .btn {
    width: auto;
    justify-self: start;
    min-width: 0;
  }
}

@media (min-width: 768px) {
  .promo__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 32px;
    row-gap: 8px;
    padding-block: 20px;
  }

  .promo__text {
    font-size: 1.0625rem;
  }

  .promo .btn {
    justify-self: end;
  }

  .promo .cta-sub {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Breadcrumb, title block, byline, table of contents
   -------------------------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 0.875rem;
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--muted);
  border-right: 1.5px solid var(--muted);
  transform: rotate(45deg);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

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

.title {
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

.dek {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
  line-height: 1.55;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.byline strong {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.dateline {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.toc {
  margin-top: 26px;
  background-color: var(--tint);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 18px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.toc__summary::-webkit-details-marker {
  display: none;
}

.toc__summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.toc[open] .toc__summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.toc__summary:hover {
  background-color: var(--tint-2);
}

.toc__list {
  margin: 0;
  padding: 4px 18px 14px 42px;
  color: var(--ink);
}

.toc__list li {
  padding-left: 4px;
}

.toc__list li::marker {
  color: var(--teal);
  font-weight: 700;
}

.toc__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.toc__list a:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.media {
  margin-block: 28px;
}

.media__frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--tint-2);
  border-radius: var(--radius-sm);
}

.media__frame--hero {
  aspect-ratio: 4 / 3;
}

.media__frame--portrait {
  aspect-ratio: 4 / 5;
}

.media__frame img,
.media__frame video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.media__frame video {
  object-position: 50% 42%;
}

.media__caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .media {
    margin-block: 36px;
  }

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

/* --------------------------------------------------------------------------
   Article prose
   -------------------------------------------------------------------------- */

.main {
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .main {
    padding-bottom: 64px;
  }
}

.prose {
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose p + p {
  margin-top: 1.1em;
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.prose a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

.prose h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
  scroll-margin-top: 16px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose p + ul,
.prose p + ol,
.prose ul + p,
.prose ol + p {
  margin-top: 1.1em;
}

.article-body {
  margin-top: 28px;
}

.article-head {
  display: block;
}

.article-section + .article-section,
.note-card + .article-section {
  margin-top: 48px;
}

.prose .split + p {
  margin-top: 28px;
}

.article-section > h2 {
  margin-top: 0;
}

/* Question card (quote-card shape) and rewards card */

.note-card {
  position: relative;
  margin-block: 28px;
  padding: 22px 20px 22px 24px;
  background-color: var(--tint);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 4px var(--radius) var(--radius) 4px;
}

.note-card__label {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.prose .note-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-card__list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.note-card__list li + li {
  margin-top: 0.7em;
}

.note-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background-color: var(--teal-soft);
  border-radius: 50%;
}

.note-card--questions .note-card__list li {
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 600;
}

.note-card--questions::before {
  content: "\201C";
  position: absolute;
  right: 18px;
  top: 2px;
  color: var(--teal-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 1;
  opacity: 0.45;
}

/* Steps */

.split {
  display: grid;
  gap: 28px;
  margin-block: 24px 0;
}

.split .media {
  width: 100%;
  margin: 0;
}

.prose .steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  position: relative;
  padding-left: 58px;
  counter-increment: step;
  min-height: 40px;
}

.steps__item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--teal);
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 800;
  border-radius: 50%;
}

.steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: -18px;
  width: 2px;
  background-color: var(--line);
}

.steps__title {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.35;
}

.steps__text {
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.prose .steps__item + .steps__item {
  margin-top: 0;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
    margin-block: 28px 0;
  }

  .split .media {
    position: sticky;
    top: 24px;
  }
}

/* Checklist box */

.checklist {
  margin-block: 28px;
  padding: 22px 20px;
  background-color: var(--tint);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checklist__title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.4;
}

.prose .checklist__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist__list li {
  position: relative;
  min-height: 24px;
  padding-left: 36px;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.prose .checklist__list li + li {
  margin-top: 0;
}

.checklist__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 24px;
  height: 24px;
  background-color: var(--teal);
  border-radius: 50%;
}

.checklist__list li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: calc(0.12em + 5px);
  width: 6px;
  height: 11px;
  border-right: 2.5px solid var(--white);
  border-bottom: 2.5px solid var(--white);
  transform: rotate(45deg);
}

/* Plain points list (honest picture) */

.prose .point-list {
  display: grid;
  gap: 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.point-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
}

.prose .point-list li + li {
  margin-top: 0;
}

.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 3px;
  background-color: var(--teal);
  border-radius: 2px;
}

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

.cta-block {
  margin-block: 44px;
  color: var(--ink);
}

.cta-block__lead {
  color: var(--ink);
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.cta-block__text {
  margin-top: 8px;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.cta-block--inline {
  padding-block: 30px;
  background-color: var(--white);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.cta-block--end {
  margin-bottom: 0;
  padding: 32px 20px 30px;
  background-color: var(--tint-2);
  border-radius: 16px;
  text-align: center;
}

.cta-block--end .cta-block__text {
  max-width: 52ch;
  margin-inline: auto;
}

.cta-block--end .cta-sub {
  margin-inline: auto;
}

@media (min-width: 768px) {
  .cta-block {
    margin-block: 56px;
  }

  .cta-block--end {
    margin-bottom: 0;
    padding: 48px 48px 42px;
  }
}

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

.page-head {
  padding-bottom: 8px;
}

.page-head .title {
  margin-top: 4px;
}

.prose--page {
  margin-top: 28px;
}

.prose--page h2 {
  margin-top: 40px;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
}

.prose--page p + p,
.prose--page ul + p {
  margin-top: 1em;
}

.facts {
  display: grid;
  gap: 0;
  margin-top: 20px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.facts__row {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .facts__row {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    align-items: baseline;
  }
}

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

.footer {
  padding: 24px 0 48px;
  background-color: var(--white);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.footer__inner {
  display: grid;
  gap: 20px;
}

.footer__entity {
  color: var(--text-soft);
}

.footer__entity p {
  margin: 0;
}

.footer__nav-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__nav-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal-dark);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.footer__nav-legal a:hover {
  color: var(--ink);
}

.publisher-note {
  max-width: 74ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .footer {
    padding: 32px 0 64px;
  }

  .footer__inner {
    gap: 24px;
  }
}
