/* Care Resources International — styles for every public page.
   The whole theme lives in the :root block below; recolor there, not inline.
   No external fonts: the serif stack resolves to Iowan Old Style / Palatino on
   most systems. Mobile first; wider layouts are added with min-width queries.
   All motion sits inside the prefers-reduced-motion: no-preference block at
   the end of the file. */

:root {
  --color-harbor: #15303c;        /* page background */
  --color-harbor-raised: #1b3a47; /* bands that set a section apart */
  --color-sail: #f1eee6;          /* primary text */
  --color-sea-glass: #9fbdbb;     /* secondary text, globe lines */
  --color-lamp: #e3a944;          /* the one accent: status line, links, buttons, the light on the globe */
  --color-lamp-bright: #efc274;   /* primary button hover */
  --color-rule: rgba(159, 189, 187, 0.2);   /* hairlines between sections and list items */
  --color-line-strong: #6e8c8f;   /* form field borders (3:1 or better on every background) */
  --color-line-light: rgba(241, 238, 230, 0.45); /* secondary button and Menu borders (3:1 or better on harbor and harbor-raised) */
  --color-field: #10262f;         /* form field background */
  --color-alert: #f2a38f;         /* error text and invalid field borders */

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    "URW Palladio L", P052, Georgia, serif;

  --gutter: clamp(1.5rem, 6vw, 6rem);
  --section-space: clamp(3rem, 7vw, 5.5rem);
  --measure: 36rem;        /* body copy in sections and bands */
  --measure-prose: 38rem;  /* long-form text: terms, privacy, accessibility */
  --radius-field: 0.5rem;
}

/* ===== Base ===== */

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

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--color-harbor);
  color: var(--color-sail);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The hidden attribute always wins, even over display rules below. */
[hidden] {
  display: none !important;
}

::selection {
  background: var(--color-lamp);
  color: var(--color-harbor);
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(2.375rem, 7vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 3.6vw, 2.25rem);
  line-height: 1.15;
}

h3 {
  margin: 0 0 0.375rem;
  font-size: 1.3125rem;
  line-height: 1.3;
}

h4 {
  margin: 0 0 0.375rem;
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.35;
}

p {
  margin: 0 0 1rem;
}

strong,
b {
  font-weight: 700;
}

address {
  font-style: normal;
}

hr {
  height: 0;
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--color-rule);
}

a {
  color: var(--color-sail);
  text-decoration: underline;
  text-decoration-color: var(--color-lamp);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--color-lamp);
}

/* One focus ring for every interactive element: lamp, offset from the edge. */
:focus-visible {
  outline: 2px solid var(--color-lamp);
  outline-offset: 3px;
}

/* Targets of in-page links (#begin, #main) sit a little below the top edge. */
:target {
  scroll-margin-top: 1.5rem;
}

main:focus {
  outline: none;
}

/* ===== Skip link: hidden until it receives keyboard focus ===== */

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.75rem;
  left: var(--gutter);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--color-lamp);
  color: var(--color-harbor);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}

.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:hover,
.skip-link:focus {
  color: var(--color-harbor);
}

/* ===== Layout ===== */

main,
.page {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

.hero {
  padding: var(--gutter);
}

/* Home: the opening section fills most of the first screen (below the header)
   and the next band peeks in below it. */
.hero-home {
  display: grid;
  align-content: center;
  min-height: calc(100svh - 12rem);
}

/* Inner pages (pcga, about, resources, crosstalk, contact, legal, 404): the
   title block under the header. .hero-pcga, .hero-page, .hero-resources and
   .hero-crosstalk all take this shape. */
.hero:not(.hero-home) {
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: var(--section-space);
}

.page-hero {
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) var(--section-space);
}

.page-hero > * {
  max-width: 44rem;
}

.page-hero > p {
  max-width: var(--measure);
}

.content {
  max-width: 44rem;
}

.section {
  padding: var(--section-space) var(--gutter);
  border-top: 1px solid var(--color-rule);
}

.band {
  background: var(--color-harbor-raised);
}

.band-inner {
  padding: var(--section-space) var(--gutter);
}

/* A section wrapper for long-form pages: gutters and vertical rhythm, no rule. */
.page-body {
  padding: 0 var(--gutter) var(--section-space);
}

/* ===== Type ===== */

.name {
  margin: 0 0 2.25rem;
  font-size: clamp(2.5rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.name span {
  display: block;
}

.title {
  margin: 0 0 1.75rem;
  font-size: clamp(2.375rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.status {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
  color: var(--color-lamp);
  font-size: clamp(1.3125rem, 2.6vw, 1.5rem);
  font-style: italic;
  line-height: 1.35;
}

.about,
.meanwhile {
  max-width: 32rem;
  margin: 0 0 1rem;
  color: var(--color-sea-glass);
  line-height: 1.65;
}

/* :where() keeps these at element specificity, so any class on a paragraph
   (.lede, .note, .notice, .begin-note, .status ...) wins over them. */
:where(.band, .section) p {
  max-width: var(--measure);
  margin: 0 0 1rem;
  color: var(--color-sea-glass);
  line-height: 1.65;
}

:where(.page-hero) p {
  color: var(--color-sea-glass);
  line-height: 1.65;
}

.lede {
  max-width: var(--measure);
  color: var(--color-sail);
  font-size: 1.3125rem;
  line-height: 1.5;
}

/* ===== Buttons ===== */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin: 0;
  padding: 0 1.625rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: transparent;
  color: var(--color-sail);
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary,
.btn-primary:hover {
  color: var(--color-harbor);
}

.btn-primary {
  background-color: var(--color-lamp);
}

.btn-primary:hover {
  background-color: var(--color-lamp-bright);
}

.btn-secondary {
  border-color: var(--color-line-light);
  color: var(--color-sail);
}

.btn-secondary:hover {
  border-color: var(--color-lamp);
  color: var(--color-lamp);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary:disabled:hover,
.btn-primary[aria-disabled="true"]:hover {
  background-color: var(--color-lamp);
}

.btn-secondary:disabled:hover,
.btn-secondary[aria-disabled="true"]:hover {
  border-color: var(--color-line-light);
  color: var(--color-sail);
}

/* ===== Header =====
   Not sticky. Phones: wordmark and Menu on one row, the nav opens below them,
   and "Begin with PCGA" sits underneath. Tablets: wordmark, Menu and the PCGA
   button on one row. Desktop: wordmark, inline nav, PCGA button; no Menu.
   Without JavaScript the nav is always shown (app.js adds .js to <html>). */

.site-header {
  position: relative;
  z-index: 2;
  padding: clamp(1rem, 3vw, 2rem) var(--gutter) 0;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand toggle"
    "nav nav"
    "cta cta";
  align-items: center;
  column-gap: 1rem;
}

.wordmark {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.625rem;
  min-height: 2.75rem;
  color: var(--color-sail);
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--color-sail);
}

/* Phones: the name stacks as "Care Resources / International". */
.wordmark span {
  max-width: 9em;
}

.wordmark-mark {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-sea-glass);
}

.wordmark:hover .wordmark-mark {
  color: var(--color-lamp);
}

.btn-header {
  grid-area: cta;
  justify-self: start;
  min-height: 2.75rem;
  margin-top: 0.75rem;
  padding: 0 1.25rem;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0 1.125rem;
  border: 1px solid var(--color-line-light);
  border-radius: 999px;
  background: transparent;
  color: var(--color-sail);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

/* Disclosure caret, drawn with borders; points up while the menu is open. */
.nav-toggle::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  margin-top: 0.2rem;
  transform: rotate(-135deg);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--color-lamp);
  color: var(--color-lamp);
}

.js .nav-toggle {
  display: inline-flex;
}

.site-nav {
  grid-area: nav;
  margin-top: 0.5rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-sail);
  font-size: 1.0625rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-lamp);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--color-lamp);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

/* With JavaScript, phones and tablets collapse the nav behind Menu. */
.js .site-nav {
  display: none;
}

.js .site-nav.is-open {
  display: block;
}

.js .site-nav ul {
  display: block;
  border-top: 1px solid var(--color-rule);
}

.js .site-nav li {
  border-bottom: 1px solid var(--color-rule);
}

.js .site-nav a {
  display: flex;
  min-height: 3rem;
  font-size: 1.125rem;
}

@media (min-width: 40rem) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand toggle cta"
      "nav nav nav";
  }

  .wordmark span {
    max-width: none;
  }

  .btn-header {
    margin-top: 0;
  }

  .site-nav {
    margin-top: 0.75rem;
  }
}

@media (min-width: 64rem) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav cta";
    column-gap: 2rem;
  }

  .site-nav,
  .js .site-nav {
    display: block;
    justify-self: end;
    margin-top: 0;
  }

  .site-nav ul,
  .js .site-nav ul {
    display: flex;
    flex-wrap: nowrap;
    column-gap: 1.5rem;
    border-top: 0;
  }

  .js .site-nav li {
    border-bottom: 0;
  }

  .site-nav a,
  .js .site-nav a {
    display: inline-flex;
    min-height: 2.75rem;
    font-size: 1.0625rem;
  }

  .nav-toggle,
  .js .nav-toggle {
    display: none;
  }
}

/* ===== PCGA page lists ===== */

/* Short h3 + p items side by side, each set off by a hairline on the left. */
.audiences,
.offer-list,
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 2rem 3rem;
  max-width: 72rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

/* Four items read best as two by two, never three and an orphan. */
.offer-list,
.feature-list {
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  max-width: 46rem;
  margin: 1.75rem 0 0;
}

.audiences li,
.offer-list li,
.feature-list li {
  padding-left: 1.25rem;
  border-left: 1px solid var(--color-rule);
}

.audiences p,
.offer-list p,
.feature-list p {
  margin: 0;
}

.audiences + p,
.offer-list + p,
.feature-list + p {
  margin-top: 2.25rem;
}

/* A real sequence (ask, receive, pray), so it is numbered. */
.steps {
  display: grid;
  gap: 1.75rem;
  max-width: 40rem;
  margin: 2.25rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 0.75rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  color: var(--color-lamp);
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
}

.steps h3,
.steps p {
  grid-column: 2;
  margin-bottom: 0;
}

.note {
  max-width: var(--measure);
  padding-left: 1rem;
  border-left: 2px solid var(--color-lamp);
  color: var(--color-sail);
}

/* A plain bulleted list inside sections and bands (for example, what a
   response contains). */
.section ul:not([class]),
.band ul:not([class]),
.section ol:not([class]),
.band ol:not([class]),
.legal-list {
  max-width: var(--measure);
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--color-sea-glass);
  line-height: 1.65;
}

.section li:not([class]) + li,
.band li:not([class]) + li,
.legal-list li + li {
  margin-top: 0.5rem;
}

.section ul:not([class]) li::marker,
.band ul:not([class]) li::marker,
.legal-list li::marker {
  color: var(--color-lamp);
}

/* Subheadings directly inside a section's content column (legal pages). */
.section-body > h3,
.band-inner > h3 {
  margin: 2.25rem 0 0.625rem;
}

.section-body > h3:first-child,
.band-inner > h3:first-child {
  margin-top: 0;
}

.section-body > :last-child,
.section > :last-child,
.band-inner > :last-child {
  margin-bottom: 0;
}

/* Wide screens: section heading on the left, its content on the right.
   Everything after the heading stays in the right-hand column, whether or not
   it is wrapped in .section-body. */
@media (min-width: 64rem) {
  .section {
    display: grid;
    grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }

  .section > * {
    grid-column: 2;
  }

  .section > h2:first-child {
    grid-column: 1;
    grid-row: 1 / span 40;
    margin-bottom: 0;
  }

  .section-body > :first-child,
  .section > h2:first-child + * {
    margin-top: 0.5rem;
  }
}

/* ===== Boundary note and notices ===== */

/* The non-emergency, nonclinical boundary: visible, never shouting. */
.boundary,
.callout {
  max-width: 40rem;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--color-lamp);
  background: var(--color-harbor-raised);
  color: var(--color-sail);
}

.band .boundary,
.band .callout {
  background: var(--color-harbor);
}

.boundary > :last-child,
.callout > :last-child {
  margin-bottom: 0;
}

.boundary h2,
.boundary h3,
.callout h2,
.callout h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3125rem;
}

.boundary p,
.callout p {
  max-width: none;
  color: var(--color-sail);
}

/* A calm status message, e.g. "PCGA is not available right now". */
.notice {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-sea-glass);
  background: var(--color-harbor-raised);
  color: var(--color-sail);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.band .notice {
  background: var(--color-harbor);
}

.notice p {
  max-width: none;
  color: var(--color-sail);
}

.notice h2,
.notice h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

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

/* The contact form's thank-you panel. */
.notice-success {
  max-width: 34rem;
  margin-top: 0;
  padding: 1.5rem 1.75rem;
  border-left-color: var(--color-lamp);
}

.notice-success .btn {
  margin-top: 0.5rem;
}

/* The 18+ and Terms line under the main "Begin with PCGA" button. */
.begin-note {
  max-width: 32rem;
  margin: 1rem 0 0;
  color: var(--color-sea-glass);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ===== Long-form text (terms, privacy, accessibility) ===== */

.prose {
  max-width: var(--measure-prose);
  color: var(--color-sail);
  line-height: 1.65;
}

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

.prose p,
.prose li {
  max-width: none;
  color: inherit;
}

.prose h2 {
  margin: 2.75rem 0 1rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.2;
}

.prose h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
}

.prose h4 {
  margin: 1.5rem 0 0.375rem;
}

.prose h2 + h3 {
  margin-top: 1.25rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

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

.prose li > ul,
.prose li > ol {
  margin: 0.5rem 0 0;
}

.prose ul li::marker {
  color: var(--color-lamp);
}

.prose ol li::marker {
  color: var(--color-sea-glass);
}

.prose a {
  overflow-wrap: anywhere;
}

.prose dl {
  margin: 0 0 1.25rem;
}

.prose dt {
  margin-top: 1rem;
  font-style: italic;
}

.prose dd {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--color-sea-glass);
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--color-lamp);
  font-style: italic;
}

/* Wrap wide tables in .table-wrap so they scroll inside themselves rather
   than widening the page. */
.table-wrap {
  max-width: 100%;
  margin: 0 0 1.5rem;
  overflow-x: auto;
}

.prose table {
  width: 100%;
  margin: 0 0 1.5rem;
  border-collapse: collapse;
  font-size: 1rem;
}

.table-wrap table {
  margin: 0;
}

.prose th,
.prose td {
  padding: 0.625rem 1rem 0.625rem 0;
  border-bottom: 1px solid var(--color-rule);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-weight: 700;
}

/* "Effective" or "last updated" line under a legal page title. */
.updated,
.legal-meta {
  color: var(--color-sea-glass);
  font-size: 0.9375rem;
  font-style: italic;
}

/* ===== Legal pages (terms, privacy, accessibility): .legal wraps the sections ===== */

.legal .section {
  padding-top: clamp(2rem, 4.5vw, 3.25rem);
  padding-bottom: clamp(2rem, 4.5vw, 3.25rem);
}

.legal .section > h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.875rem);
}

.legal .section-body > p,
.legal .section-body > ul,
.legal .section-body > ol,
.legal .section-body > dl {
  max-width: var(--measure-prose);
}

/* "On this page": a plain list of links, two columns where there is room. */
/* :not([class]) matches the specificity of the plain-list rules above. */
.legal-toc ul,
.legal-toc ul:not([class]) {
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2 15rem;
  column-gap: 2.5rem;
}

.legal-toc li,
.legal-toc li:not([class]) + li {
  margin: 0;
  padding: 0.3125rem 0;
  break-inside: avoid;
}

/* Term and explanation pairs, e.g. cookies or service providers. */
.legal-terms {
  max-width: var(--measure-prose);
  margin: 0 0 1.25rem;
}

.legal-terms dt {
  margin: 1.25rem 0 0;
  color: var(--color-sail);
  font-weight: 700;
}

.legal-terms dt:first-child {
  margin-top: 0;
}

.legal-terms dd {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  border-left: 1px solid var(--color-rule);
  color: var(--color-sea-glass);
  line-height: 1.65;
}

/* ===== Lists of resources and links: hairline separators, no cards ===== */

.resource-list,
.link-list,
.notfound-links {
  max-width: 46rem;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-rule);
  list-style: none;
}

.resource-list > li,
.link-list > li,
.notfound-links > li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-rule);
}

.link-list > li,
.notfound-links > li {
  padding: 0.875rem 0;
}

.notfound-links {
  max-width: 32rem;
  margin-top: 2rem;
}

.resource-list h2,
.resource-list h3,
.link-list h2,
.link-list h3 {
  margin: 0 0 0.375rem;
  font-size: 1.3125rem;
  line-height: 1.3;
}

.resource-list p,
.link-list p {
  max-width: var(--measure);
  margin: 0 0 0.75rem;
  color: var(--color-sea-glass);
  line-height: 1.6;
}

.resource-list > li > :last-child,
.link-list > li > :last-child {
  margin-bottom: 0;
}

/* By, audience, topic, format, date: label and value on their own line each. */
.resource-details {
  display: grid;
  gap: 0.25rem;
  max-width: var(--measure);
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.resource-details > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: 0.75rem;
}

.resource-details dt {
  color: var(--color-sea-glass);
  font-style: italic;
}

.resource-details dd {
  margin: 0;
  color: var(--color-sail);
}

.resource-list .resource-action {
  margin: 0;
  color: var(--color-sail);
}

/* Audience, format or date: a quiet line of its own, not a dotted string. */
.resource-meta,
.resource-list .resource-meta {
  color: var(--color-sea-glass);
  font-size: 0.9375rem;
  font-style: italic;
}

/* ===== Forms ===== */

.form,
.contact-form {
  display: grid;
  gap: 1.5rem;
  max-width: 34rem;
  margin: 0;
}

.contact-form .actions {
  margin-top: 0.5rem;
}

.form-intro,
.form-privacy,
.contact-email {
  max-width: 34rem;
}

.form-intro {
  margin: 0;
}

.form-privacy {
  font-size: 0.9375rem;
}

.contact-email {
  margin-top: 2rem;
}

.field {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

label,
.label,
legend {
  color: var(--color-sail);
  font-size: 1.0625rem;
  line-height: 1.35;
}

legend {
  padding: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

/* "(optional)" and similar asides inside a label. */
.optional,
.label-note {
  color: var(--color-sea-glass);
  font-size: 0.9375rem;
  font-style: italic;
}

.field-hint,
.hint {
  margin: 0;
  color: var(--color-sea-glass);
  font-size: 0.9375rem;
  line-height: 1.5;
}

input,
select,
textarea,
button {
  font: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
input[type="date"],
input:not([type]),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.6875rem 1rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-field);
  background-color: var(--color-field);
  color: var(--color-sail);
  font-size: 1.0625rem;
  line-height: 1.4;
}

textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.55;
}

select {
  padding-right: 2.75rem;
  -webkit-appearance: none;
  appearance: none;
  /* Caret drawn with gradients: no image request. */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-sea-glass) 50%),
    linear-gradient(135deg, var(--color-sea-glass) 50%, transparent 50%);
  background-position:
    calc(100% - 1.375rem) 50%,
    calc(100% - 1rem) 50%;
  background-size: 0.375rem 0.375rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

select option {
  background-color: var(--color-field);
  color: var(--color-sail);
}

::placeholder {
  color: var(--color-sea-glass);
  opacity: 0.85;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--color-sea-glass);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-lamp);
  outline: 2px solid var(--color-lamp);
  outline-offset: 2px;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--color-lamp);
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Invalid fields: a colored border and a written message, never color alone. */
[aria-invalid="true"],
[aria-invalid="true"]:hover {
  border-color: var(--color-alert);
}

.field-error,
.error-text {
  margin: 0;
  color: var(--color-alert);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.field-error:empty,
.error-text:empty {
  display: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0.5rem 0 0;
}

/* Form-level messages: a summary of what went wrong, or the thank-you panel. */
.form-status,
.form-error,
.form-success,
.success-panel {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--color-sea-glass);
  background: var(--color-harbor-raised);
  color: var(--color-sail);
  line-height: 1.55;
}

.form-error,
.form-status.is-error,
.form-status-error {
  border-left-color: var(--color-alert);
}

.form-success,
.success-panel,
.form-status.is-success,
.form-status-success {
  border-left-color: var(--color-lamp);
}

.form-status:empty {
  display: none;
}

/* The contact page without JavaScript. A plain form post is answered with a redirect to
   /contact?sent=1 or /contact?error=<code>[&field=<field>], and functions/contact.js marks the
   one notice that the query string names with .is-shown; a fresh visit shows none of them. The
   query string, unlike the #fragment, survives in-page links such as "Skip to content". They
   carry no hidden attribute because [hidden] is !important and would beat .is-shown. When
   contact.js runs it removes them and shows its own messages instead. */
.nojs-notice {
  display: none;
}

.nojs-notice.is-shown {
  display: block;
}

/* Once the message has been sent, the empty form is not offered again. */
#contact-sent.is-shown ~ .contact-form {
  display: none;
}

.band .form-status,
.band .form-error,
.band .form-success,
.band .success-panel {
  background: var(--color-harbor);
}

.form-status > :last-child,
.form-error > :last-child,
.form-success > :last-child,
.success-panel > :last-child {
  margin-bottom: 0;
}

.form-success h2,
.success-panel h2,
.form-success h3,
.success-panel h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.form-status p,
.form-error p,
.form-success p,
.success-panel p {
  max-width: none;
  color: var(--color-sail);
}

/* ===== Footer ===== */

.site-footer {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter) var(--gutter);
  border-top: 1px solid var(--color-rule);
  color: var(--color-sea-glass);
  font-size: 0.875rem;
  line-height: 1.6;
}

:where(.site-footer) p {
  margin: 0;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-boundary {
  max-width: 40rem;
  color: var(--color-sail);
  font-size: 0.9375rem;
}

.footer-boundary {
  margin-bottom: 0.5rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding: 0.3125rem 0;
  color: var(--color-sail);
  text-decoration-color: var(--color-rule);
}

.footer-nav a:hover {
  color: var(--color-lamp);
  text-decoration-color: var(--color-lamp);
}

.footer-contact a {
  color: var(--color-sea-glass);
  overflow-wrap: anywhere;
}

.footer-contact a:hover {
  color: var(--color-lamp);
}

@media (min-width: 52rem) {
  .footer-inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-areas:
      "boundary nav"
      "legal contact";
    column-gap: clamp(2.5rem, 6vw, 6rem);
    row-gap: 1.75rem;
  }

  .footer-boundary {
    grid-area: boundary;
  }

  .footer-boundary {
    margin-bottom: 0;
  }

  .footer-nav {
    grid-area: nav;
  }

  .footer-legal {
    grid-area: legal;
  }

  .footer-contact {
    grid-area: contact;
  }
}

/* ===== 404 ===== */

.page-notfound main {
  display: grid;
  align-content: center;
}

.page-notfound .page-hero,
.page-notfound .hero {
  padding-bottom: var(--section-space);
}

/* ===== Utilities ===== */

.visually-hidden,
.sr-only,
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.measure {
  max-width: var(--measure);
}

.muted {
  color: var(--color-sea-glass);
}

.small {
  font-size: 0.9375rem;
}

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

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* ===== Globe (home) ===== */

/* Full-page layer behind everything: clips the globe at the page edges
   without creating scrollbars. */
.backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Centered on the home hero (the first screen below the header), not on the
   whole page. */
.globe {
  position: absolute;
  z-index: 0;
  top: calc(50svh - 1rem);
  right: calc(-1 * min(18vw, 13rem));
  width: min(78vw, 50rem);
  height: auto;
  max-width: none;
  transform: translateY(-50%);
  overflow: visible;
}

.globe .line {
  fill: none;
  stroke: var(--color-sea-glass);
  /* User units, not non-scaling-stroke: that would break the pathLength dash
     math the draw-in animation depends on. */
  stroke-width: 0.7;
  stroke-opacity: 0.42;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.globe .lamp {
  transform-box: fill-box;
  transform-origin: center;
}

/* ===== Mid widths: pull the globe further right so it clears the text ===== */

@media (max-width: 70rem) {
  .globe {
    right: -30vw;
    width: 72vw;
  }
}

/* ===== Narrow screens: globe rises behind the top edge, text sits low ===== */

@media (max-width: 52rem) {
  .hero-home {
    align-content: end;
    min-height: calc(100svh - 12.5rem);
    padding-top: min(40vw, 16rem);
  }

  /* Lowered by about a header row so the light sits beside the header's
     PCGA button rather than behind the Menu button. */
  .globe {
    top: calc(4.5rem - min(14vw, 6rem));
    right: calc(-1 * min(38vw, 14rem));
    width: min(120vw, 40rem);
    transform: none;
  }

  .name {
    margin-bottom: 1.75rem;
  }
}

/* The PCGA embed (snippet.js) switches on window.innerWidth <= 768, in px. Closed, it is a
   260x240 box 15px from the bottom-right corner above that width and a 65px bar along the
   bottom at or below it. Leave room so the footer can scroll clear of it, and keep focused
   items above it (WCAG 2.4.11). */
.site-footer {
  padding-bottom: calc(var(--gutter) + 255px);
}

html {
  scroll-padding-bottom: calc(255px + 1rem);
}

@media (max-width: 768px) {
  .site-footer {
    padding-bottom: calc(var(--gutter) + 65px);
  }

  html {
    scroll-padding-bottom: calc(65px + 1rem);
  }
}

/* ===== Windows high contrast and other forced-color modes ===== */

@media (forced-colors: active) {
  .btn,
  .nav-toggle {
    border: 1px solid ButtonText;
  }

  select {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
    padding-right: 1rem;
  }

  .boundary,
  .callout,
  .notice,
  .note,
  .form-status,
  .form-error,
  .form-success,
  .success-panel {
    border: 1px solid CanvasText;
  }
}

/* ===== Print: dark ink on white, no navigation chrome ===== */

@media print {
  html,
  body {
    background: #fff;
    color: #000;
  }

  .skip-link,
  .site-nav,
  .nav-toggle,
  .btn-header,
  .backdrop,
  .actions,
  .footer-nav {
    display: none !important;
  }

  a,
  .prose,
  .site-footer,
  .footer-boundary,
  .band p,
  .section p,
  .page-hero p {
    color: #000;
  }

  .band,
  .boundary,
  .callout,
  .notice {
    background: none;
  }

  /* There is no PCGA launcher on paper to leave room for. */
  .site-footer {
    padding-bottom: var(--gutter);
  }
}

/* ===== The one load moment: lines draw in, then the light comes on ===== */

@media (prefers-reduced-motion: no-preference) {
  .globe .line {
    animation: draw 2.6s cubic-bezier(0.45, 0, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 140ms);
  }

  .globe .lamp {
    animation: light-on 1.4s ease-out 2.2s both;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes light-on {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
}
