/* Shared editorial surfaces, typography and interactive states. */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #fff;
  --ink: #111113;
  --muted: #53535b;
  --line: #dddde2;
  --accent: #0759bd;
  --accent-2: #53535b;
}
body, body.authority-app {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
.wrap { width: min(1244px, calc(100% - 2 * clamp(22px, 6.8vw, 98px))); }
.site-header, .site-footer, .authority-app .site-header, .authority-app .site-footer {
  background: #fcfcfc;
  border-color: var(--line);
}
.site-header .wrap { min-height: 64px; }
.brand, .authority-app .brand { font: 750 17px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.023em; color: var(--ink); }
.nav a, .footer-grid a { font-size: 14px; color: var(--muted); }
.nav a:hover, .footer-grid a:hover { color: var(--accent); text-decoration: underline; }
h1, h2, h3, .authority-app :is(h1,h2,h3) { color: var(--ink); letter-spacing: -.04em; line-height: 1.13; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.65rem); text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); }
.card, .sign-in-dialog, .authority-record, .authority-dashboard article {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px;
}
.button, .authority-app .button {
  background: var(--ink); color: white; border: 1px solid var(--ink);
  border-radius: 999px; font: inherit; font-weight: 650; padding: .65rem 1.2rem;
}
.button-secondary, .authority-app .button-secondary { background: white; color: var(--ink); border-color: #b5b5bc; }
a { text-underline-offset: .2em; }
:focus-visible { outline: 2px solid #1473da; outline-offset: 4px; }
.editorial-document main {
  width: min(800px, calc(100% - 32px)); margin: clamp(20px,5vw,72px) auto;
  background: white; color: var(--ink); border: 1px solid var(--line);
  border-radius: 24px; padding: clamp(22px,5vw,60px);
}
.editorial-document :is(h1,h2,h3) { color: var(--ink); }
.editorial-document a { color: var(--accent); }
.editorial-document main > header { color: var(--muted); }
@media (max-width: 700px) {
  .site-header .wrap, .site-footer .wrap { flex-wrap: wrap; align-items: flex-start; }
  .nav { gap: .45rem 1rem; }
  .nav a { display: inline-block; padding-block: .3rem; }
  .authority-app .wrap { max-width: calc(100% - 32px); }
}
