/* prowalco.com - shared stylesheet. Loads after Pico (classless) and overrides it.
   Mobile first: base rules are for a 360px screen, then 480 / 768 / 1024 layer on top.
   Light theme only. */

:root {
  color-scheme: only light;
  --ink: #0a0a0a;
  --text: #1d2226;
  --muted: #566067;
  --teal: #0b6a8a;
  --teal-deep: #084f68;
  --tint: #eaf3f6;
  --line: #d5dce0;
  --paper: #ffffff;
  --measure: 736px;
  --wide: 1040px;
  --font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* keep Pico's own variables on the same palette */
  --pico-font-family: var(--font);
  --pico-background-color: #ffffff;
  --pico-color: #1d2226;
  --pico-muted-color: #566067;
  --pico-primary: #0b6a8a;
  --pico-primary-hover: #084f68;
  --pico-primary-underline: rgba(11, 106, 138, 0.5);
  --pico-h1-color: #0a0a0a;
  --pico-h2-color: #0a0a0a;
  --pico-h3-color: #0a0a0a;
  --pico-border-color: #d5dce0;
  --pico-text-decoration: none;
}

/* Pico defines its palette on :root:not([data-theme=dark]); match that selector so these win (loaded later) */
:root:not([data-theme="dark"]) {
  color-scheme: only light;
  --pico-background-color: #ffffff;
  --pico-color: #1d2226;
  --pico-muted-color: #566067;
  --pico-primary: #0b6a8a;
  --pico-primary-hover: #084f68;
  --pico-h1-color: #0a0a0a;
  --pico-h2-color: #0a0a0a;
  --pico-h3-color: #0a0a0a;
  --pico-border-color: #d5dce0;
  --pico-accordion-border-color: #d5dce0;
  --pico-accordion-close-summary-color: #000000;
  --pico-accordion-open-summary-color: #0b6a8a;
}

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

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

body {
  margin: 0;
  background-color: #ffffff;
  color: #1d2226;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #0b6a8a;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: #084f68;
}

:focus-visible {
  outline: 3px solid #0b6a8a;
  outline-offset: 3px;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 20;
  padding: 12px 16px;
  background-color: #0a0a0a;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 8px;
  color: #ffffff;
}

/* ---------- masthead ---------- */
body > header {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #1d2226;
  border-bottom: 1px solid #1a1a1a;
}

.bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand tag"
    "nav nav";
  align-items: center;
  column-gap: 12px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 6px 16px 0;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  text-decoration: none;
}

.brand:hover {
  color: #0a0a0a;
}

.brand span {
  color: #0b6a8a;
}

.tag {
  grid-area: tag;
  padding: 5px 8px;
  border: 1px solid #aab3b9;
  border-radius: 2px;
  background-color: #ffffff;
  color: #4a535a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bar nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0 18px;
  margin: 0;
  padding: 0;
}

.bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0b6a8a;
  border-bottom: 3px solid transparent;
  border-top: 3px solid transparent;
}

.bar nav a:hover {
  color: #084f68;
  border-bottom-color: #0b6a8a;
}

/* ---------- main column ---------- */
body > main {
  display: block;
  margin: 0;
  padding: 22px 16px 0;
  background-color: #ffffff;
  color: #1d2226;
}

body > main::after {
  content: "";
  display: block;
  max-width: var(--wide);
  height: 1px;
  margin: 44px auto 0;
  background-color: #b9c1c6;
}

main > article {
  display: block;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: #ffffff;
  color: #1d2226;
  box-shadow: none;
}

main > article > section {
  display: block;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #1d2226;
}

main > article > section::after {
  content: "";
  display: block;
  clear: both;
}

/* divider between article sections: short teal tab on a hairline */
main > article > section + section {
  margin-top: 44px;
}

main > article > section + section::before {
  content: "";
  display: block;
  height: 3px;
  margin: 0 0 32px;
  background:
    linear-gradient(#0b6a8a, #0b6a8a) left top / 56px 3px no-repeat,
    linear-gradient(#d5dce0, #d5dce0) left top / 100% 1px no-repeat;
}

/* ---------- headings & text ---------- */
.kicker {
  display: block;
  margin: 0 0 8px;
  color: #0b6a8a;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

main h1 {
  margin: 0 0 18px;
  color: #000000;
  font-family: var(--font);
  font-size: clamp(25px, 6.4vw, 35px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

main h2 {
  margin: 0 0 14px;
  color: #000000;
  font-family: var(--font);
  font-size: clamp(21px, 3.6vw, 26px);
  font-weight: 700;
  line-height: 1.22;
  text-wrap: balance;
}

main h3 {
  margin: 28px 0 8px;
  color: #000000;
  font-family: var(--font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

main p {
  margin: 0 0 1.1em;
  color: #1d2226;
}

main strong {
  color: #0a0a0a;
  font-weight: 700;
}

.dek {
  margin: 0 0 14px;
  color: #14181b;
  font-size: clamp(18px, 2.5vw, 19.5px);
  line-height: 1.55;
}

.byline {
  margin: 0 0 22px;
  color: #566067;
  font-size: 14px;
  line-height: 1.4;
}

main p.takeaway {
  margin: 26px 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid #0b6a8a;
  color: #0a0a0a;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

main ul,
main ol {
  margin: 0 0 1.2em;
  padding: 0 0 0 1.3em;
  color: #1d2226;
}

main li {
  margin: 0 0 0.6em;
  padding: 0;
  color: #1d2226;
  list-style: disc;
}

main li::marker {
  color: #0b6a8a;
}

/* ---------- media ---------- */
main figure {
  display: block;
  margin: 28px 0;
  padding: 0;
  background-color: #ffffff;
}

main figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
  background-color: #e8edf0;
}

main figcaption {
  padding: 9px 0 0;
  color: #566067;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

figure.hero {
  margin: 0 0 28px;
}

figure.hero img {
  aspect-ratio: 3 / 2;
  object-position: 40% 22%;
}

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

figure.tall img {
  aspect-ratio: 4 / 3;
}

/* motion loop: fixed-ratio box so nothing jumps while it loads */
figure.loop {
  width: 100%;
  max-width: 300px;
  margin: 8px auto 4px;
}

.loop-box {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background-color: #dfe7ea;
}

.loop-box video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.with-loop {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

/* two-up pair, like the related-stories grid of the reference */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  margin: 30px 0 4px;
}

.pair figure {
  margin: 0;
}

.pair .kicker {
  margin-bottom: 10px;
}

.pair figure img {
  aspect-ratio: 4 / 3;
}

.pair figcaption {
  padding-top: 12px;
  color: #0b6a8a;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- steps and checklist ---------- */
main ol.steps {
  list-style: none;
  counter-reset: step;
  margin: 22px 0 8px;
  padding: 0;
}

main ol.steps li {
  position: relative;
  counter-increment: step;
  margin: 0 0 22px;
  padding: 0 0 0 54px;
  list-style: none;
}

main ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 2px;
  background-color: #0b6a8a;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

main ul.checks {
  list-style: none;
  margin: 20px 0 22px;
  padding: 0;
}

main ul.checks li {
  position: relative;
  margin: 0 0 12px;
  padding: 0 0 0 36px;
  list-style: none;
}

main ul.checks li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 8px;
  height: 15px;
  border: solid #0b6a8a;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* ---------- table (stacked blocks on mobile) ---------- */
.table-wrap {
  margin: 24px 0 14px;
  overflow-x: auto;
}

main table {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background-color: #ffffff;
  color: #1d2226;
  font-size: 15.5px;
  line-height: 1.45;
}

main thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

main tbody {
  display: block;
}

main tr {
  display: block;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-top: 3px solid #0b6a8a;
  border-bottom: 1px solid #d5dce0;
  background-color: #ffffff;
}

main th,
main td {
  display: block;
  margin: 0;
  padding: 8px 0 0;
  border: 0;
  background-color: transparent;
  color: #1d2226;
  font-weight: 400;
  text-align: left;
}

main td::before {
  content: attr(data-label);
  display: block;
  color: #0b6a8a;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

main tbody th {
  padding-top: 12px;
  color: #000000;
  font-size: 17.5px;
  font-weight: 700;
}

/* ---------- FAQ accordion ---------- */
main details {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #d5dce0;
  background-color: #ffffff;
  color: #1d2226;
}

main details:first-of-type {
  border-top: 1px solid #d5dce0;
}

main summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin: 0;
  padding: 12px 0;
  color: #000000;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

main summary::-webkit-details-marker {
  display: none;
}

main summary::marker {
  content: "";
}

main summary::after {
  content: "+";
  flex: none;
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  color: #0b6a8a;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  transform: none;
}

main details[open] > summary::after {
  content: "\2212";
  transform: none;
}

main details > summary:not([role]) {
  color: #000000;
}

main details > summary:not([role]):hover,
main details > summary:not([role]):focus {
  color: #0b6a8a;
}

main details[open] > summary:not([role]),
main details[open] > summary:not([role]):not(:focus) {
  color: #0b6a8a;
}

main details > summary:focus-visible {
  outline: 3px solid #0b6a8a;
  outline-offset: 2px;
}

main details > p {
  margin: 0;
  padding: 0 34px 20px 0;
  color: #1d2226;
}

/* ---------- call to action ---------- */
.cta {
  margin: 30px 0 8px;
  padding: 0;
  background-color: transparent;
}

.cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 3px;
  background-color: #0b6a8a;
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 0 #084f68;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta a::after {
  content: "\2192";
  font-size: 19px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.cta a:hover {
  background-color: #084f68;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(8, 79, 104, 0.28);
}

.cta a:hover::after {
  transform: translateX(4px);
}

.cta a:active {
  transform: translateY(1px);
}

.cta a:focus-visible {
  outline: 3px solid #0a0a0a;
  outline-offset: 3px;
}

.btn-note {
  max-width: 48ch;
  margin: 10px 0 0;
  color: #566067;
  font-size: 13px;
  line-height: 1.45;
}

main .cta .btn-note {
  margin: 10px 0 0;
  color: #566067;
  font-size: 13px;
}

.cta-end {
  margin: 30px 0 0;
  padding: 24px 18px 22px;
  background-color: #eaf3f6;
  color: #1d2226;
  text-align: center;
}

.cta-end .btn-note {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- legal pages ---------- */
main p.policy-dates {
  margin: 0 0 26px;
  padding: 0 0 16px;
  border-bottom: 1px solid #d5dce0;
  color: #566067;
  font-size: 14px;
  line-height: 1.5;
}

main.legal-page h2 {
  margin: 34px 0 10px;
  font-size: clamp(19px, 3.2vw, 22px);
}

main.legal-page h1 {
  margin-bottom: 12px;
}

/* ---------- footer: publisher imprint ---------- */
body > footer.site-foot {
  margin: 0;
  padding: 24px 16px 52px;
  border: 0;
  background-color: #ffffff;
  color: #4a535a;
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}

.site-foot > * {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.imprint p {
  margin: 0 0 8px;
  color: #4a535a;
  font-size: 13px;
  line-height: 1.7;
}

.imprint strong {
  color: #14181b;
  font-weight: 700;
}

nav.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0 4px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 0;
}

nav.legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px 0 0;
  color: #14181b;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

nav.legal a:hover {
  color: #0b6a8a;
  text-decoration: underline;
}

.imprint_line {
  margin-top: 8px;
  margin-bottom: 0;
  color: #4a535a;
  font-size: 13px;
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  a,
  .cta a,
  .cta a::after,
  main summary {
    transition: none;
  }
}

/* ================= 480px ================= */
@media (min-width: 480px) {
  body > main {
    padding: 28px 20px 0;
  }

  .bar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand {
    font-size: 26px;
  }

  .tag {
    font-size: 12px;
    letter-spacing: 0.14em;
    padding: 5px 9px;
  }

  .bar nav {
    gap: 0 24px;
  }

  .bar nav a {
    font-size: 15px;
  }

  figure.hero img {
    aspect-ratio: 16 / 10;
  }

  .cta a {
    display: inline-flex;
    width: auto;
    min-width: 280px;
    padding: 14px 34px;
  }

  body > footer.site-foot {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ================= 768px ================= */
@media (min-width: 768px) {
  .bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav tag";
    column-gap: 24px;
    min-height: 94px;
    padding: 0 24px;
  }

  .brand {
    font-size: 30px;
  }

  .bar nav {
    justify-content: center;
    gap: 0 36px;
  }

  .bar nav a {
    font-size: 16.5px;
  }

  /* pages without the label (legal, about): the lone "back" link sits at the right edge */
  .bar nav:last-child {
    justify-content: flex-end;
  }

  body > main {
    padding: 40px 24px 0;
  }

  main > article > section + section {
    margin-top: 56px;
  }

  main > article > section + section::before {
    margin-bottom: 38px;
  }

  figure.hero {
    margin-bottom: 34px;
  }

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

  .with-loop {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  figure.loop {
    max-width: none;
    margin: 6px 0 0;
  }

  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  /* real table */
  main table {
    display: table;
    table-layout: fixed;
    font-size: 15px;
  }

  main thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }

  main tbody {
    display: table-row-group;
  }

  main tr {
    display: table-row;
    margin: 0;
    padding: 0;
    border: 0;
  }

  main th,
  main td {
    display: table-cell;
    padding: 14px 12px;
    border: 1px solid #d5dce0;
    text-align: center;
    vertical-align: middle;
  }

  main td::before {
    display: none;
  }

  main thead th {
    border-color: #ffffff;
    background-color: #0b6a8a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
  }

  main tbody th {
    padding-top: 14px;
    font-size: 15px;
  }

  main tbody tr:nth-child(even) th,
  main tbody tr:nth-child(even) td {
    background-color: #f5f8f9;
  }

  .cta-end {
    padding: 34px 36px 30px;
  }

  body > footer.site-foot {
    padding: 28px 24px 64px;
    text-align: center;
  }

  nav.legal {
    justify-content: center;
    gap: 0 10px;
  }

  nav.legal a {
    padding: 0 8px;
  }
}

/* ================= 1024px ================= */
@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }

  body > main {
    padding: 48px 24px 0;
  }

  main h1 {
    margin-bottom: 22px;
  }

  .dek {
    margin-bottom: 18px;
  }

  main p.takeaway {
    margin: 32px 0;
    font-size: 21px;
  }

  main summary {
    font-size: 18.5px;
  }

  main th,
  main td {
    padding: 16px 14px;
  }

  main table {
    font-size: 15.5px;
  }

  .cta-end {
    padding: 38px 44px 34px;
  }

  .imprint p,
  .imprint_line {
    font-size: 13px;
  }
}
