:root {
  --accent: #005eb8;
  --text: #1f2937;
  --muted: #666;
  --line: #e5e7eb;
  --bg: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; }
h2, h3 { margin: 1.25rem 0 .5rem; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
  border-radius: 999px;
  padding: .55rem .95rem;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.tab:hover {
  background: #eef5ff;
  border-color: #cddff7;
  text-decoration: none;
}
.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
p { margin: .75rem 0; }
ul, ol { padding-left: 1.25rem; }

.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.hero {
  display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: center;
  gap: 1.5rem; padding: 1.5rem 0 .5rem;
}
.hero-main { flex: 1 1 450px; text-align: center; }
.hero-photo { width: min(200px, 100%); margin: 0; }
.hero-photo img {
  width: 100%; display: block; object-fit: cover; border-radius: 50%;
}
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.alert { color: #c00; font-weight: 600; }
.muted { color: var(--muted); }

.video-container { display: flex; justify-content: center; }
.video-wrapper { position: relative; width: 100%; max-width: 576px; aspect-ratio: 16 / 9; }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.entry-list { display: grid; gap: 1rem; }
.entry {
  display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start;
}
.entry-figure { margin: 0; width: 64px; }
.entry-figure img { display: block; width: 64px; height: auto; margin-bottom: .35rem; }
.entry-body { min-width: 0; }
.entry-row, .split-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.entry-title, .item-title { font-weight: 700; }
.compact-list { list-style-position: inside; padding-left: 0; }
.compact-list > li { margin-bottom: .35rem; }
.plain-list { margin: .5rem 0 0; }

.pub-note { margin-bottom: .75rem; }
.pub-block > h3 { margin-top: 1.5rem; }
.pub-block ol, .pub-block ul { margin-top: .5rem; }

footer {
  margin-top: 2.5rem; padding: 1rem; text-align: center;
  background: var(--accent); color: #fff;
}
footer a { color: #fff; text-decoration: underline; }

@media (max-width: 640px) {
  .entry { grid-template-columns: 1fr; }
  .entry-figure { width: auto; }
  .entry-figure img { width: 56px; display: inline-block; margin-right: .35rem; }
}
