:root {
  color-scheme: light;
  --blue: #0064ef;
  --navy: #062e68;
  --text: #172334;
  --muted: #4a5666;
  --line: #d9e0e8;
  --white: #fff;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--white); scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--blue); text-underline-offset: 0.16em; }
a:hover { color: #004fc0; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.resource-header {
  display: flex;
  min-height: 104px;
  padding: 20px max(22px, calc((100% - 1120px) / 2));
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  color: var(--white);
  background-color: var(--navy);
  background-image: linear-gradient(rgb(2 35 82 / 67%), rgb(2 35 82 / 67%)), url("/background-image.webp");
  background-position: center 43%;
  background-size: cover;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand-countdown { display: flex; gap: 2px; }
.brand-countdown > span {
  display: grid;
  width: 24px;
  height: 28px;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-stretch: condensed;
  font-weight: 800;
  line-height: 1;
}
.brand-subtitle { padding-left: 1px; color: var(--white); font-size: 13px; font-weight: 600; line-height: 1.1; }

.resource-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 24px; }
.resource-nav a { color: var(--white); font-size: 15px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; }
.resource-nav a:hover, .resource-nav a[aria-current="page"] { color: var(--white); text-decoration-color: currentColor; }

.resource-content {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 14px; color: var(--navy); font-size: clamp(30px, 5vw, 42px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
h2 { margin: 0 0 10px; color: var(--navy); font-size: 23px; font-weight: 700; line-height: 1.3; }
.resource-lede { margin-bottom: 27px; color: var(--muted); font-size: 18px; }
.resource-updated { margin: -3px 0 20px; color: var(--muted); font-size: 14px; }

.resource-card {
  margin: 26px 0;
  padding: 0 0 23px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.resource-card:last-child { border-bottom: 0; }
.resource-card p, .resource-callout p { color: var(--text); }
.resource-card li { margin: 7px 0; padding-left: 2px; }
.resource-card a { font-weight: 600; }
.resource-steps, .resource-list { margin: 0 0 18px; padding-left: 25px; }
.resource-steps li { margin-bottom: 10px; }
.resource-steps strong { color: var(--text); }
.resource-card > :last-child, .resource-callout > :last-child { margin-bottom: 0; }

.resource-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 30px; }
.resource-actions a { color: var(--blue); font-weight: 600; }
.resource-callout { margin-top: 27px; padding: 0 0 23px; border-bottom: 1px solid var(--line); background: transparent; }
.resource-callout h2 { margin-bottom: 10px; }

.resource-footer {
  display: flex;
  min-height: 64px;
  padding: 15px max(22px, calc((100% - 1120px) / 2));
  align-items: center;
  gap: 10px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f5f8fc;
  font-size: 14px;
}
.resource-footer a { color: var(--navy); }

@media (max-width: 680px) {
  .resource-header { min-height: 0; padding: 17px 18px 15px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .brand-countdown { gap: 2px; }
  .brand-countdown > span { width: 21px; height: 25px; font-size: 14px; }
  .brand-subtitle { font-size: 12px; }
  .resource-nav { width: 100%; justify-content: flex-start; gap: 7px 18px; }
  .resource-nav a { font-size: 14px; }
  .resource-content { width: calc(100% - 36px); padding: 28px 0 50px; }
  h1 { font-size: 32px; }
  h2 { font-size: 21px; }
  .resource-lede { font-size: 17px; }
  .resource-footer { padding: 14px 18px; gap: 8px 16px; }
}

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