/* Shared look of the Certified Pre-Owned explainer (/rolex-cpo, in every language). Plain CSS:
   these pages are served as-is by Hosting, outside the SPA and its Tailwind build. The tokens are
   legal.css's, with the measured contrast of each pairing (WCAG 2.2 AA, both colour schemes). */
:root {
  --paper: #faf8f5;
  --card: #fff;
  --ink: #1c2024; /* 15.5:1 on paper */
  --muted: #565b62; /* 6.5:1 on paper, 6.8:1 on card */
  --line: #e7e3db;
  --gold: #c29741; /* decorative only: the rules under the headings */
  --gold-text: #8a6d1a; /* 4.6:1 on paper, 4.9:1 on card */
  --ring: #9c771f; /* the SPA's --ring: 3.9:1 on paper, 4.1:1 on card (SC 1.4.11) */
  --green: #176449; /* the guarantee's rule: 6.7:1 on paper */
  --button: #292e35;
  --on-button: #faf8f5; /* 12.9:1 on --button */
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161a;
    --card: #1b1e23;
    --ink: #e7e9ee; /* 14.9:1 on paper */
    --muted: #9aa0a8; /* 6.9:1 on paper, 6.3:1 on card */
    --line: #2b2f36;
    --gold: #dfb866;
    --gold-text: #dfb866; /* 9.7:1 on paper, 8.9:1 on card */
    --ring: #dfb866;
    --green: #4fb08a; /* 6.8:1 on paper */
    --button: #e7e9ee;
    --on-button: #14161a; /* 14.9:1 on --button */
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    'IBM Plex Sans',
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 72px;
}
a {
  color: var(--gold-text);
  touch-action: manipulation;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Header: the wordmark leads Home, the language switcher sits beside it. */
header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
header .wrap {
  padding: 16px 20px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.home {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 4px 0;
}
.eyebrow {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 6px;
}
.wordmark {
  display: block;
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.35rem;
  line-height: 1.2;
}
.chip {
  display: inline-block;
  margin: 8px 0 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 11px;
  font-size: 0.78rem;
  color: var(--muted);
}
nav.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  font-size: 0.9rem;
}
nav.langs a,
nav.legal a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
}
nav.langs a:hover,
nav.legal a:hover {
  text-decoration: underline;
}
nav.langs a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}

/* The page. */
h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  text-wrap: balance;
}
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 20px;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 44px 0 6px;
  text-wrap: balance;
}
h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-top: 12px;
}
h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}
.nowrap {
  white-space: nowrap;
}
p {
  margin: 12px 0;
}
.actions {
  margin: 20px 0 8px;
}
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--button);
  color: var(--on-button);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.cta:hover {
  opacity: 0.88;
}
.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 4px 0 0;
}
.guarantee {
  border-left: 3px solid var(--green);
  background: color-mix(in oklab, var(--green) 6%, var(--paper));
  border-radius: 6px;
  padding: 14px 16px;
  margin: 22px 0;
}
.cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 22px 0;
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cards li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.cards p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Questions: native disclosure, a drawn plus or minus beside each (no text to read aloud). */
.faq {
  margin-top: 8px;
}
details {
  border-bottom: 1px solid var(--line);
}
details:first-of-type {
  border-top: 1px solid var(--line);
}
summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 10px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--gold-text), var(--gold-text)) center / 12px 2px no-repeat,
    linear-gradient(var(--gold-text), var(--gold-text)) center / 2px 12px no-repeat;
}
details[open] summary::before {
  background: linear-gradient(var(--gold-text), var(--gold-text)) center / 12px 2px no-repeat;
}
summary:hover {
  color: var(--gold-text);
}
details p {
  margin: 0 0 16px 26px;
  color: var(--muted);
}
.sources {
  font-size: 0.9rem;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
footer .wrap {
  padding: 20px 20px 24px;
}
.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
nav.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* From md up (pointer devices) the controls keep a 24px target (SC 2.5.8). */
@media (min-width: 768px) {
  nav.langs a,
  nav.legal a {
    min-height: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
