/* Everyday Post Desk - custom layer on top of Pico.css (CDN).
   Mobile-first: base rules target a 360px screen, wider layouts are added with min-width queries. */

:root {
  --pico-font-family: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", system-ui, sans-serif;
  --pico-font-size: 100%;
  --pico-line-height: 1.65;
  --pico-border-radius: 8px;
  --pico-color: #262626;
  --pico-background-color: #ffffff;
  --pico-primary: #0d4a94;
  --pico-primary-hover: #093566;
  --pico-primary-underline: rgba(13, 74, 148, 0.4);
  --pico-typography-spacing-vertical: 1.1rem;

  --navy: #112f57;
  --navy-soft: #cdd9ec;
  --ink: #141414;
  --text: #262626;
  --muted: #585858;
  --rule: #e3e3e3;
  --tint: #f3f5f8;
  --warm: #f7f3ec;
  --strip: #efefef;
  --green: #1a7f3c;
  --green-dark: #13652f;
  --amber: #e8912d;
  --col: 716px;
  --pad: 16px;
  --sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", system-ui, sans-serif;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--sans);
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* ---------- Masthead ---------- */
body > header {
  padding: 0;
  margin: 0;
  background: transparent;
}

body > header > div {
  background: var(--navy);
  padding: 16px var(--pad) 14px;
}

body > header > div a {
  display: inline-block;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

body > header > div a:hover {
  color: #fff;
  opacity: 0.85;
}

body > header > div a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

body > header > div p {
  margin: 4px 0 0;
  color: var(--navy-soft);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

body > header > .label {
  margin: 0;
  padding: 5px var(--pad);
  background: var(--strip);
  border-bottom: 1px solid #dedede;
  color: #555;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Page column ---------- */
body > main {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 20px var(--pad) 24px;
}

main > article {
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

main p {
  margin: 0 0 1.1em;
}

main a {
  color: var(--pico-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

main a:hover {
  color: var(--pico-primary-hover);
}

main a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* ---------- Article head ---------- */
.byline {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

article > h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.dek {
  margin: 0 0 22px;
  color: #222;
  font-size: clamp(1.0625rem, 0.95rem + 0.8vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.55;
}

/* ---------- Figures ---------- */
main figure {
  margin: 26px 0;
  padding: 0;
}

main figure img,
main figure video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

main figure > div {
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-radius: 8px;
  background: #e8edf3;
}

main figure > div video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

main figcaption {
  margin-top: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ---------- Headings in the article ---------- */
article h2 {
  margin: 1.9em 0 0.55em;
  color: var(--ink);
  font-size: clamp(1.375rem, 1.2rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber);
}

article section {
  margin: 36px 0;
}

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

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

article > section:last-child .cta-block {
  margin-bottom: 0;
}

article section.day {
  margin: 32px 0;
  padding: 22px 18px 6px;
  border-radius: 8px;
  background: var(--tint);
}

article section.day--warm {
  background: var(--warm);
}

/* ---------- Trust / badge row ---------- */
main .checks {
  margin: 24px 0;
  padding: 10px 18px;
  list-style: none;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(17, 47, 87, 0.08);
}

main .checks li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 32px;
  list-style: none;
  color: var(--ink);
  font-size: 0.96875rem;
  font-weight: 600;
  line-height: 1.5;
}

main .checks li + li {
  border-top: 1px solid var(--rule);
}

main .checks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1.05em;
  width: 13px;
  height: 7px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- Stat tiles (pay) ---------- */
main .stats {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

main .stats li {
  margin: 0;
  padding: 16px 18px;
  list-style: none;
  border-radius: 8px;
  background: var(--tint);
  font-size: 0.9375rem;
  line-height: 1.5;
}

main .stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.5rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

/* ---------- Call to action ---------- */
.cta-block {
  margin: 30px 0;
  text-align: center;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 56px;
  padding: 14px 22px;
  border-radius: 6px;
  background: var(--green);
  box-shadow: 0 2px 0 var(--green-dark), 0 6px 14px rgba(19, 101, 47, 0.22);
  color: #fff;
  font-size: clamp(0.9375rem, 0.86rem + 0.5vw, 1.0625rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cta::after {
  content: "\00bb";
  font-size: 1.2em;
  line-height: 1;
}

main a.cta,
main a.cta:hover {
  color: #fff;
  text-decoration: none;
}

.cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #0e4d24, 0 8px 18px rgba(19, 101, 47, 0.28);
}

.cta:focus-visible,
main a.cta:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.cta-block small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ---------- Sticky bar ---------- */
.sticky {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.14);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

.sticky.show {
  transform: none;
  visibility: visible;
  transition: transform 0.25s ease;
}

.sticky > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--col);
  margin: 0 auto;
}

.sticky p {
  display: none;
  margin: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.sticky .cta {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 0.875rem;
}

/* ---------- Footer / colophon ---------- */
.colophon {
  width: 100%;
  max-width: var(--col);
  margin: 40px auto 0;
  padding: 8px var(--pad) 36px;
  background: none;
  border: 0;
  color: #555;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.colophon p {
  margin: 0;
  color: #555;
}

.colophon__org {
  margin: 0 0 8px;
}

.colophon__legal {
  display: block;
  margin: 8px 0 14px;
}

.colophon .colophon__legal ul,
.colophon .colophon__legal ul:first-of-type,
.colophon .colophon__legal ul:last-of-type {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.colophon__legal li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.colophon__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  color: #3d3d3d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.colophon__legal a:hover {
  color: var(--pico-primary-hover);
}

.colophon__legal a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.imprint-line {
  color: #555;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.has-sticky .colophon {
  padding-bottom: 104px;
}

/* ---------- Legal / about pages ---------- */
main > h1 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: clamp(1.625rem, 1.3rem + 1.6vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
}

main > h2 {
  margin: 1.8em 0 0.5em;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

main .meta {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.875rem;
}

main > ul {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
  list-style: disc;
}

main > ul li {
  margin: 0 0 0.45em;
  padding: 0;
  list-style: disc;
}

main address {
  margin: 0 0 1.2em;
  font-style: normal;
}

/* ---------- 480px ---------- */
@media (min-width: 480px) {
  :root {
    --pad: 20px;
  }

  body {
    font-size: 1.125rem;
  }

  main figure {
    margin: 30px 0;
  }

  article section.day {
    padding: 26px 24px 8px;
  }

  .sticky .cta {
    font-size: 0.9375rem;
  }
}

/* ---------- 768px ---------- */
@media (min-width: 768px) {
  body > main {
    padding-top: 28px;
  }

  .byline {
    font-size: 0.9375rem;
  }

  article section {
    margin: 44px 0;
  }

  article section.day {
    margin: 40px 0;
    padding: 32px 36px 14px;
  }

  main .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  main .checks {
    padding: 12px 24px;
  }

  .sticky p {
    display: block;
  }

  .sticky .cta {
    flex: 0 0 auto;
    min-width: 320px;
  }
}

/* ---------- 1024px ---------- */
@media (min-width: 1024px) {
  body > header > div {
    padding: 18px 24px 16px;
  }

  body > header > .label {
    padding: 6px 24px;
  }

  body > main {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  article > h1 {
    margin-bottom: 18px;
  }

  .cta-block {
    margin: 36px 0;
  }

  .colophon {
    margin-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .sticky,
  .sticky.show,
  body > header > div a {
    transition: none;
  }
}
