/* Shared structure: reset, typography scale, layout primitives, and the interaction states
 * the mockups did not have to think about (focus, reduced motion, small screens).
 *
 * No client-side JavaScript runs on any of these pages, so everything below is the whole
 * behaviour layer as well as the whole presentation layer. */

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a {
  color: var(--accent);
}

ul {
  list-style: none;
}

/* --- Focus: visible, and never removed. The mockups have no focus styling at all, which on
   a keyboard is an unusable page. --- */
:focus-visible {
  outline: 3px solid var(--gold-text);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Available to assistive technology, absent from the visual page. Used for headings that the
   design carries typographically but the document outline still needs. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--wine);
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* --- Layout primitives --- */
.wrap {
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(40px, 7vh, 84px);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.kicker {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 8px;
}

.lede {
  font-size: 18px;
  color: var(--muted-text);
  max-width: var(--measure);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.card p,
.card li {
  color: var(--body-on-card);
  font-size: 15px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 16px;
  text-decoration: none;
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}

.btn-primary {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 3px 10px rgb(94 18 36 / 25%);
}

.btn-primary:hover {
  background: var(--wine-deep);
}

.btn-ghost {
  border: 1.5px solid var(--wine);
  color: var(--wine);
}

.btn-ghost:hover {
  background: var(--wine);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

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

/* --- The announcement band. Gold fill kept from the mockup; text darkened to --wine-deep
   because white on gold measures 3.01:1. --- */
.banner {
  background: var(--gold);
  color: var(--wine-deep);
  text-align: center;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 14.5px;
}

.banner a {
  color: var(--wine-deep);
  text-decoration: underline;
}

/* --- Masthead --- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 20px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--wine);
}

.wordmark .mark-alt {
  color: var(--gold-text);
}

.nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 15px;
}

.nav a:hover {
  color: var(--wine);
  text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 34px var(--gutter);
  font-family: var(--font-sans);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: #e0cfd5;
  text-decoration: none;
  margin-right: 18px;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer b {
  color: var(--gold);
}

/* The cookie-settings control is a <button>, because it runs script rather than going
   somewhere -- a link would lie to a screen reader and to anyone middle-clicking it.
   It has to read as one of the footer links beside it, so it borrows their colour and
   sheds every default the browser gives a button. */
.site-footer .linklike {
  background: none;
  border: 0;
  padding: 0;
  margin-right: 18px;
  font: inherit;
  color: #e0cfd5;
  cursor: pointer;
}

.site-footer .linklike:hover {
  text-decoration: underline;
/* ---- The crawler-policy page ----
   ingest/site/index.html carries its own inline CSS for standalone hosting, targeting bare
   body/h1/dt/dd. Only its BODY is used here (see src/_data/botpage.js) because those bare
   selectors would restyle every page sharing this stylesheet. These rules do what the
   inline block did, scoped. */
.botdoc {
  max-width: 42rem;
}

.botdoc h2 {
  margin-top: 32px;
  font-size: 18px;
}

.botdoc p,
.botdoc li {
  margin-bottom: 10px;
}

.botdoc ul {
  margin: 0 0 10px 1.2em;
  list-style: revert;
}

/* The user-agent string, quoted so an operator can match it against their logs. */
.botdoc .ua {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--chip);
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  font-size: 14px;
}

.botdoc dt {
  font-weight: 600;
  margin-top: 10px;
}

.botdoc dd {
  margin: 0 0 0 1.2em;
}

/* ---- Published legal documents ----
   Long prose nobody reads for pleasure, so the job is legibility: a measure that does not
   force the eye to track across the full viewport, and headings that make it scannable
   when somebody is hunting for one clause. */
.legal {
  max-width: 46rem;
}

.legal-draft {
  border-left: 3px solid var(--gold);
  background: var(--chip);
  padding: 14px 18px;
  margin: 18px 0 28px;
  font-size: 14px;
}

.legal-body h2 {
  margin-top: 32px;
  font-size: 20px;
}

.legal-body h3 {
  margin-top: 22px;
  font-size: 16px;
}

.legal-body p,
.legal-body li {
  margin-bottom: 10px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 10px 1.2em;
  list-style: revert;
}

.legal-body table {
  border-collapse: collapse;
  margin-bottom: 16px;
  display: block;
  overflow-x: auto;
}

.legal-body th,
.legal-body td {
  border: 1px solid var(--hairline);
  padding: 6px 10px;
  text-align: left;
  font-size: 14px;
}

.footnote {
  font-size: 12.5px;
  color: var(--muted-text);
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  :root {
    --gutter: 6vw;
  }
}

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

/* --- Language switcher.
   Lives in the footer on both sites and renders only when there is more than one published
   language, so an English-only site does not carry a one-item list. Each language names
   itself in its own language -- a reader looking for Deutsch is not helped by "German". --- */
.lang-switch ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
}

.lang-switch a {
  color: var(--footer-ink);
  text-decoration: underline;
  margin: 0;
}

.lang-switch [aria-current] {
  color: var(--gold);
  font-weight: 700;
}

/* --- The registration CTA ---
   Shared by both sites, rendered after <main> on every page.

   Deliberately a strip and not a card, a banner or a modal. It sits between the content and
   the footer, reads as part of the page furniture, and never covers, interrupts or pushes down
   anything a reader or a crawler came for. `not a nag` is a layout decision before it is a
   copy decision. */
.register-cta {
  background: var(--card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(22px, 3.5vh, 36px) var(--gutter);
}

.register-cta-inner {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.register-cta h2 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--wine-deep);
  margin-bottom: 6px;
}

.register-cta p {
  font-size: 14.5px;
  color: var(--body-on-card);
  max-width: 46em;
}

.register-cta-action {
  flex: 0 0 auto;
}

.register-cta-note {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--muted-text) !important;
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 720px) {
  .register-cta-inner {
    gap: 18px;
  }

  .register-cta-action {
    width: 100%;
  }

  .register-cta-action .btn {
    display: block;
    text-align: center;
  }
}
