:root {
  --text: #202122;
  --text-muted: #54595d;
  --link: #3366cc;
  --link-visited: #795cb2;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #a2a9b1;
  --border-light: #eaecf0;
  --accent: #1f4d3a;
  --infobox-bg: #eaf3ff;
  --infobox-border: #a3bfd9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .mark {
  font-family: "Georgia", "Linux Libertine", serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

header.site .mark::before {
  content: "⌘ ";
  color: var(--accent);
}

nav.site {
  display: flex;
  gap: 1.4rem;
  font-size: 0.88rem;
}

nav.site a {
  color: var(--link);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

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

nav.site a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin: 0 0 0.3rem;
}

h1 {
  font-family: "Georgia", "Linux Libertine", serif;
  font-size: 2.1rem;
  font-weight: 400;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.6rem;
  margin: 0 0 0.3rem;
  line-height: 1.2;
}

h2 {
  font-family: "Georgia", "Linux Libertine", serif;
  font-weight: 400;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.35rem;
  margin: 2.2rem 0 0.9rem;
}

h3 {
  font-family: "Georgia", "Linux Libertine", serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.6rem 0 0.6rem;
}

p { margin: 0 0 1rem; }

a { color: var(--link); }
a:visited { color: var(--link-visited); }

.updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 1.4rem;
}

/* Infobox — Wikipedia-style side panel, floats right on wide screens */
.infobox {
  float: right;
  width: 260px;
  margin: 0 0 1.2rem 1.4rem;
  background: var(--infobox-bg);
  border: 1px solid var(--infobox-border);
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.86rem;
}

.infobox .infobox-title {
  background: var(--accent);
  color: #fff;
  font-family: "Georgia", "Linux Libertine", serif;
  font-size: 1.05rem;
  text-align: center;
  padding: 0.6rem 0.8rem;
}

.infobox dl {
  margin: 0;
}

.infobox .row {
  display: flex;
  border-top: 1px solid var(--infobox-border);
  padding: 0.5rem 0.8rem;
  gap: 0.6rem;
}

.infobox .row:first-of-type { border-top: none; }

.infobox dt {
  flex: 0 0 40%;
  font-weight: 600;
  color: var(--text-muted);
}

.infobox dd {
  margin: 0;
  flex: 1;
}

@media (max-width: 640px) {
  .infobox {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem;
  }
}

/* Generic fact list used on non-infobox pages */
ul.facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  border-top: 1px solid var(--border-light);
}

ul.facts li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 1rem;
}

ul.facts li span.k {
  flex: 0 0 40%;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.card {
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  padding: 0.9rem 1.1rem;
  margin: 0 0 0.9rem;
  font-style: italic;
  color: var(--text);
}

.card .role {
  font-style: normal;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.card .name {
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

details.faq {
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
}

details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::before {
  content: "▸ ";
  color: var(--accent);
}

details.faq[open] summary::before {
  content: "▾ ";
}

details.faq p {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
}

a.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  text-decoration: none;
}

a.btn:hover { opacity: 0.9; }

footer.site {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1.4rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}

footer.site a { color: var(--link); }

@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  nav.site { font-size: 0.8rem; gap: 0.9rem; }
}
