/* Pure Context — shared stylesheet. Steel blue, oat and charcoal. */

:root {
  --oat: #f4efe4;
  --oat-deep: #ebe3d3;
  --charcoal: #26292c;
  --muted: #4a4f55;
  --steel: #35546d;
  --steel-dark: #233b4f;
  --rule: #c9bfa8;
  --radius: 8px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--oat);
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.25;
  color: var(--charcoal);
}

h1 { font-size: 2rem; margin: 0.4em 0 0.6em; }
h2 { font-size: 1.45rem; margin: 2.2em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 1.8em 0 0.5em; }

p, ul, ol, dl, table { margin: 0 0 1.1em; }

a {
  color: var(--steel);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--steel-dark); text-decoration-thickness: 2px; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--charcoal);
  color: var(--oat);
  padding: 0.5rem 1rem;
  font-family: var(--sans);
  z-index: 100;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.5rem; color: var(--oat); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--oat);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.menu-toggle {
  display: none;
  font: inherit;
  font-size: 0.95rem;
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

.site-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
}

.site-menu a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.98rem;
}
.site-menu a:hover,
.site-menu a[aria-current="page"] {
  color: var(--steel);
  text-decoration: underline;
}

/* Main column */
main {
  max-width: 660px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  position: relative;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
}

/* Step indicator and margin numeral */
.step-indicator {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0.5rem 0 0;
}

.margin-number {
  display: none;
}

@media (min-width: 1000px) {
  .margin-number {
    display: block;
    position: absolute;
    left: -7rem;
    top: 1.6rem;
    width: 5rem;
    text-align: right;
    font-family: var(--sans);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--rule);
  }
}

/* Contents list */
.contents {
  border-left: 4px solid var(--rule);
  padding: 0.6rem 1rem;
  margin: 1.5rem 0 2rem;
  font-family: var(--sans);
  font-size: 0.98rem;
}
.contents h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.contents ol { margin: 0; padding-left: 1.3rem; }

/* Disclosure */
.disclosure {
  border-left: 4px solid var(--steel);
  background: var(--oat-deep);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0 2rem;
}
.disclosure p:last-child { margin-bottom: 0; }
.disclosure-title {
  font-family: var(--sans);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.aff {
  border-left: 4px solid var(--steel);
  padding: 0.6rem 1rem;
  margin: 1.4rem 0;
  border-radius: var(--radius);
  background: var(--oat-deep);
}
.aff p { margin: 0 0 0.35rem; }
.aff p:last-child { margin: 0; }
.aff-note {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Callouts */
.callout {
  border-left: 4px solid var(--steel);
  border-radius: var(--radius);
  background: var(--oat-deep);
  padding: 0.9rem 1.2rem;
  margin: 1.6rem 0;
}
.callout-title {
  font-family: var(--sans);
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.callout p:last-child,
.callout ul:last-child,
.callout ol:last-child { margin-bottom: 0; }

.example {
  border-left: 4px solid var(--rule);
  padding: 0.4rem 0 0.4rem 1.2rem;
  margin: 1.6rem 0;
}
.example-label {
  font-family: var(--sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.summary {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.8rem 0;
  margin: 2rem 0;
}
.summary h2 { margin-top: 0.3rem; }

/* Glossary strip */
.glossary {
  border-left: 4px solid var(--rule);
  padding: 0.4rem 0 0.4rem 1.2rem;
}
.glossary dt {
  font-family: var(--sans);
  font-weight: 700;
  margin-top: 0.7rem;
}
.glossary dd { margin: 0.1rem 0 0; }

/* Numbered procedure */
.procedure { padding-left: 1.4rem; }
.procedure li { margin-bottom: 0.6rem; }

/* Checklists */
.checklist-box {
  border-left: 4px solid var(--steel);
  border-radius: var(--radius);
  background: #fbf8f2;
  padding: 1rem 1.2rem;
  margin: 2rem 0;
}
.checklist-box h2,
.checklist-box h3 { margin-top: 0.2rem; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.checklist li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.65rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--charcoal);
  border-radius: 3px;
  background: #fff;
}

.print-btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--steel);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.print-btn:hover { background: var(--steel-dark); }

/* Lists in body */
.step-list li { margin-bottom: 0.5rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 1rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--rule);
}
th { font-family: var(--sans); }

/* Definition list on the cookie page */
.checked dt {
  font-family: var(--sans);
  font-weight: 700;
  margin-top: 1rem;
}
.checked dd { margin: 0.2rem 0 0; }

.effective {
  font-family: var(--sans);
  color: var(--muted);
}

/* Previous / next */
.step-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  margin-top: 2.5rem;
  font-family: var(--sans);
}
.step-pager a { max-width: 48%; }

/* Small inline illustration */
.figure { margin: 1.5rem 0; }
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption { font-size: 0.95rem; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--oat-deep);
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.6;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.6rem 1rem 2rem;
}
.publisher {
  font-style: normal;
  margin-bottom: 0.9rem;
}
.footer-links { margin-bottom: 0.9rem; }
.trademark, .reviewed { color: var(--muted); margin: 0 0 0.6rem; }

/* Narrow screens */
@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }

  .menu-toggle { display: inline-block; }
  .js .site-menu { display: none; width: 100%; }
  .js .site-menu.is-open { display: block; }
  .site-menu ul {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0 0.2rem;
  }
  .site-menu a { display: block; padding: 0.4rem 0; }
  .step-pager a { max-width: 100%; }
}

/* Print */
@media print {
  body { background: #fff; color: #000; font-size: 11.5pt; line-height: 1.45; }
  .site-header, .skip-link, .print-btn, .step-pager, .menu-toggle, .contents, .margin-number { display: none !important; }
  main { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .checklist-box { background: none; border: 1px solid #000; border-left-width: 4px; page-break-inside: avoid; break-inside: avoid; }
  .checklist li::before { border-color: #000; }
  .disclosure, .callout, .aff { background: none; border-color: #000; }
  .site-footer { background: none; border-top: 1px solid #000; font-size: 9pt; }
  h2, h3 { page-break-after: avoid; break-after: avoid; }
}
caption { caption-side: top; text-align: left; font-family: var(--sans); font-weight: 700; padding-bottom: 0.4rem; }
