/* Shared by the landing pages. Colours follow the prettyxsd theme so the landing pages and the schema browsers feel like one site. */
:root {
  color-scheme: light;
  --page: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #f1f3f6;
  --text: #202633;
  --muted: #707a89;
  --border: #e3e7ed;
  --accent: #5067d8;
  --accent-soft: #edf0ff;
  --code: #36445a;
  --shadow: 0 8px 28px rgb(30 41 59 / 5%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --page: #11151d; --surface: #181e29; --surface-muted: #222a38; --text: #e7eaf0; --muted: #a0a9b8; --border: #2b3341; --accent: #9aa9ff; --accent-soft: #252d4a; --code: #d3dcf2; --shadow: 0 8px 28px rgb(0 0 0 / 12%); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font-size: 15px; line-height: 1.65; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; color: var(--code); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.hero { padding: 56px 0 40px; border-bottom: 1px solid var(--border); background: var(--surface); }
.hero-inner { display: flex; gap: 32px; align-items: center; }
.hero-logo { flex: 0 0 auto; width: 150px; height: auto; }
.hero-logos { flex: 0 0 auto; display: flex; align-items: center; gap: 20px; }
.hero-logos a, .hero-logos img { display: block; }
.home-mark { width: 64px; height: 64px; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -.01em; }
.lead { max-width: 640px; margin: 0; color: var(--muted); font-size: 17px; }
.cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 18px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 650; }
.cta:hover { text-decoration: none; filter: brightness(1.07); }
@media (prefers-color-scheme: dark) { .cta { color: #11151d; } }

main.wrap { padding-top: 40px; padding-bottom: 24px; }
h2 { margin: 0 0 6px; font-size: 21px; }
.section-lead { margin: 0 0 20px; color: var(--muted); }
section + section { margin-top: 48px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.standards-section h2 { text-align: center; }
.cards.standards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; margin: 0 auto; }
.card { position: relative; display: flex; flex-direction: column; padding: 20px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.card:hover, .card:focus-within { border-color: var(--accent); transform: translateY(-1px); }
.card-logo { display: block; height: 44px; width: auto; max-width: 190px; margin: 0 0 14px; object-fit: contain; object-position: left center; }
.card h3 { margin: 0 0 4px; font-size: 17px; }
.card h3 a { color: var(--text); }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.card h3 a:hover { text-decoration: none; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.card .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12px; color: var(--muted); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.card.featured { border-color: var(--accent); }

.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.guide div { padding: 18px 20px; border-radius: 12px; background: var(--surface-muted); }
.guide h3 { margin: 0 0 4px; font-size: 15px; }
.guide p { margin: 0; color: var(--muted); font-size: 14px; }

.links { padding: 0; margin: 0; list-style: none; columns: 2 260px; column-gap: 32px; }
.links li { break-inside: avoid; margin-bottom: 10px; }
.links span { display: block; color: var(--muted); font-size: 13px; }

.about { max-width: 720px; }
.about p { margin: 0 0 10px; }
footer { margin-top: 56px; padding: 24px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* The R4 logo: a faded, square-cropped Progress Pride flag fades in on hover, chevron foremost */
.r4-logo { overflow: visible; }
.r4-logo .tile { fill: #5067d8; }
.r4-logo .glyph { fill: #fff; }
.r4-logo .rail { stroke: #fff; }
.r4-logo .stops { fill: #5067d8; stroke: #fff; }
.r4-logo .veil { display: none; }
.r4-logo .flag { opacity: 0; transition: opacity 450ms ease; }
.r4-logo .flag-stripes { opacity: .45; }
.r4-logo:hover .flag { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .r4-logo .flag { transition: none; } }

@media (max-width: 640px) {
  header.hero { padding: 36px 0 28px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-logo { width: 110px; }
  .cards, .cards.standards { grid-template-columns: 1fr; }
}
