/*
 * GoodDay subprocessor list — visual identity.
 *
 * Colour tokens are the marketing site's `:root` custom properties, copied under their
 * ORIGINAL names. `--base-cloude` and `--basu-moss` are misspelled on gooddaysoftware.com
 * and are kept misspelled here on purpose, so a future shared design-token package is a
 * file swap rather than a rename sweep. Do not "fix" them.
 *
 * Fonts are self-hosted (see fonts/PROVENANCE.md). Nothing here may reference a
 * third-party font host — a CI gate fails the build if it does.
 */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/InstrumentSerif-400-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/InstrumentSerif-400-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/InstrumentSans-400-700-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/InstrumentSans-400-700-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/IBMPlexMono-400-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/IBMPlexMono-400-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/IBMPlexMono-500-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/IBMPlexMono-500-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/IBMPlexMono-600-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/IBMPlexMono-600-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/IBMPlexMono-700-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/IBMPlexMono-700-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/IBMPlexSans-400-700-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/IBMPlexSans-400-700-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Appendix B — gooddaysoftware.com :root tokens, original names (misspellings intact). */
  --core--forest: #002020;
  --goodday-green: #33cc99;
  --grass-lighter: #0d7a67;
  --pink: #f8d3ef;
  --base-fog: #c2bdb6;
  --base-cloude: #f7f5f2;
  --base-mist: #fffdfa;
  --base-night: #2b2929;
  --basu-moss: #54514f;
  --white: #ffffff;
  --white-60: #ffffff99;
  --base-opacity-30: #c2bdb64d;

  /* Every family falls back all the way to a system face: AC 15 requires the page to
     stay legible when webfonts do not load at all. */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-ui: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-secondary: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --radius: 4px;
  --measure: 68rem;
}

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

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

body {
  margin: 0;
  padding: 0 var(--space-md) var(--space-xl);
  background: var(--base-mist);
  color: var(--base-night);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--core--forest);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--grass-lighter);
}

a:focus-visible,
:focus-visible {
  outline: 3px solid var(--goodday-green);
  outline-offset: 2px;
}

.page-header,
.page-main,
.page-footer {
  max-width: var(--measure);
  margin-inline: auto;
}

.page-header {
  padding-top: var(--space-xl);
  border-bottom: 1px solid var(--base-fog);
  padding-bottom: var(--space-lg);
}

.page-header__eyebrow {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--core--forest);
}

.page-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.05;
  color: var(--core--forest);
}

.page-header__updated {
  margin: var(--space-md) 0 0;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--basu-moss);
}

.page-main {
  padding-top: var(--space-lg);
}

.scope-statement {
  margin: 0 0 var(--space-lg);
  padding: var(--space-md);
  background: var(--base-cloude);
  border-left: 4px solid var(--goodday-green);
  border-radius: var(--radius);
  font-size: 1.0625rem;
  max-width: 58rem;
}

.subprocessor-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-xl);
}

.subprocessor-table__caption {
  caption-side: top;
  text-align: left;
  padding-bottom: var(--space-sm);
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  color: var(--basu-moss);
}

.subprocessor-table th {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--core--forest);
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: 2px solid var(--core--forest);
  vertical-align: bottom;
}

.subprocessor-table td {
  padding: var(--space-md) var(--space-md) var(--space-md) 0;
  border-bottom: 1px solid var(--base-opacity-30);
  vertical-align: top;
}

.col-name,
.cell-name {
  width: 22%;
}

.col-status,
.cell-status {
  width: 20%;
  padding-right: 0;
}

.cell-name a {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1.0625rem;
}

.cell-purpose {
  color: var(--basu-moss);
  max-width: 44rem;
}

/* State is contractually load-bearing, so the two never differ by colour alone: the
   border style, weight and dot shape carry it as well. */
.state {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 0.3em 0.7em;
  border-radius: 50px;
  white-space: nowrap;
}

.state::before {
  content: '';
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  flex: none;
  align-self: center;
}

.state--in-effect {
  background: var(--core--forest);
  color: var(--white);
  border: 1px solid var(--core--forest);
  font-weight: 500;
}

.state--in-effect::before {
  background: var(--goodday-green);
}

.state--pending {
  background: var(--white);
  color: var(--core--forest);
  border: 1px dashed var(--core--forest);
  font-weight: 700;
  white-space: normal;
}

.state--pending::before {
  background: transparent;
  border: 1px solid var(--core--forest);
}

.notice-policy,
.machine-readable {
  margin: 0 0 var(--space-lg);
  max-width: 58rem;
}

.notice-policy__title,
.machine-readable__title {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--core--forest);
}

.notice-policy p {
  margin: 0;
  color: var(--basu-moss);
}

.machine-readable__list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--basu-moss);
  font-size: 0.9375rem;
}

.machine-readable__list a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
}

.page-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--base-fog);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--basu-moss);
}

.page-footer p {
  margin: 0 0 var(--space-xs);
}

.page-footer__entity {
  color: var(--core--forest);
  font-weight: 500;
}

/* Below 640px each row becomes a card labelled from `data-label`. No field is hidden at
   any width — every published field is part of the disclosure. */
@media (max-width: 640px) {
  .subprocessor-table,
  .subprocessor-table tbody,
  .subprocessor-table tr,
  .subprocessor-table td {
    display: block;
    width: auto;
  }

  /* Clipped rather than `display: none`: the header cells still have to reach a screen
     reader, which is what makes the stacked layout equivalent to the table. */
  .subprocessor-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .subprocessor-table tr {
    border: 1px solid var(--base-fog);
    border-radius: var(--radius);
    background: var(--white);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .subprocessor-table td {
    border-bottom: 0;
    padding: 0 0 var(--space-md);
  }

  .subprocessor-table td:last-child {
    padding-bottom: 0;
  }

  .subprocessor-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25em;
    font-family: var(--font-ui);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--basu-moss);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
