:root {
  --fg: #1a1a1a;
  --muted: #666;
  --bg: #fafafa;
  --card: #fff;
  --accent: #1a4480;
  --accent-soft: #e8eef7;
  --priority: #b8860b;
  --priority-soft: #fdf6e3;
  --border: #e3e3e3;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  margin: 0;
}
header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
header .home {
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
  font-size: 1.05rem;
}
header nav a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 1rem;
}
header nav a:hover { text-decoration: underline; }
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem;
}
footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem 3rem;
  font-size: 0.85rem;
}
h1, h2, h3 { color: var(--fg); line-height: 1.25; }
h1 { font-size: 1.75rem; margin-top: 0.5rem; }
h2 { font-size: 1.25rem; margin-top: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
a { color: var(--accent); }

/* ---- master one-pager ---- */
section.master h1 { font-size: 1.55rem; }
section.master ul, section.master ol { padding-left: 1.5rem; }
section.master li { margin-bottom: 0.4rem; }
section.master strong { color: #0d2f5e; }
section.master em { color: var(--priority); font-style: normal; font-weight: 500; }

/* ---- priority spotlight on overview ---- */
.priority-spotlight {
  background: var(--priority-soft);
  border: 1px solid #e6d28a;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.priority-spotlight h2 {
  margin-top: 0;
  border-bottom: none;
  font-size: 1.1rem;
}
.priority-spotlight .hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: -0.25rem;
}
.priority-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.priority-list li {
  padding: 0.5rem 0;
  border-top: 1px dashed #e6d28a;
}
.priority-list li:first-child { border-top: none; }
.priority-list .name {
  font-weight: 600;
  color: var(--fg);
}
.priority-list .title {
  color: var(--muted);
  font-size: 0.9rem;
  display: block;
}
.priority-list .panels {
  font-size: 0.85rem;
}
.priority-list .panels a { text-decoration: none; }
.priority-list .panels a:hover { text-decoration: underline; }

/* ---- priority section on speakers page ---- */
.priority-section {
  background: var(--priority-soft);
  border: 1px solid #e6d28a;
  border-radius: 8px;
  padding: 0.75rem 1.25rem 1.25rem;
  margin: 1rem 0 2rem;
}
.priority-section h2 {
  border-bottom: none;
  margin-top: 0.5rem;
}
.priority-section .hint {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- panel grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.panel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.panel-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.panel-card.has-priority {
  border-color: #d8b656;
}
.panel-card.has-priority:hover {
  border-color: var(--priority);
}
.panel-card .when { font-size: 0.8rem; color: var(--muted); }
.panel-card h3 { margin: 0.2rem 0 0.3rem; font-size: 1.0rem; }
.panel-card .speakers { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.panel-card .headline { font-size: 0.9rem; margin: 0; }
.panel-card .priority-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.panel-card .priority-tags .tag {
  background: var(--priority-soft);
  color: var(--priority);
  border: 1px solid #e6d28a;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
}

/* ---- panel detail ---- */
article.panel .when { color: var(--muted); margin: 0; }
article.panel .speakers-full { color: var(--muted); margin: 0.2rem 0 0.6rem; font-style: italic; }
article.panel .description { color: var(--muted); }
.summary {
  font-size: 1rem;
  line-height: 1.65;
}
.summary p { margin: 0.6em 0; }
.summary h2 {
  font-size: 1.1rem;
  margin-top: 1.6rem;
  border-bottom: none;
  color: var(--accent);
}
.summary h3 { font-size: 1.0rem; }
.summary ul, .summary ol { padding-left: 1.5rem; }
.summary li { margin-bottom: 0.5rem; }
.summary strong {
  color: #0d2f5e;
  font-weight: 600;
}
.summary em {
  color: var(--priority);
  font-style: normal;
  font-weight: 500;
}
.summary blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  margin-left: 0;
  color: var(--muted);
  font-style: italic;
}
details.transcript {
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 1rem;
}
details.transcript summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
details.transcript pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  background: var(--bg);
  padding: 0.75rem;
  border-radius: 4px;
  max-height: 60vh;
  overflow-y: auto;
}

/* ---- speaker index ---- */
dl.speakers { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 0.5rem 1.5rem; }
dl.speakers dt { font-weight: 600; }
dl.speakers dd { margin: 0; color: var(--muted); }
dl.speakers ul { margin: 0.25rem 0 0; padding-left: 1.1rem; font-size: 0.85rem; }

@media (max-width: 600px) {
  dl.speakers { grid-template-columns: 1fr; }
  dl.speakers dd { margin-bottom: 0.75rem; }
}
