:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #10223a;
  --muted: #5d6f86;
  --line: #dbe3ee;
  --brand: #0f5db9;
  --brand-dark: #0b4b95;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #ecf4ff 0%, var(--bg) 45%, #f2f5fa 100%);
  line-height: 1.55;
}
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
}
.brand {
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--brand);
}
.search { display: flex; gap: .5rem; width: min(640px, 100%); }
.search input {
  flex: 1;
  border: 1px solid var(--line);
  background: #f9fbff;
  border-radius: 10px;
  padding: .72rem .82rem;
}
.search button {
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 0 .95rem;
}
.search button:hover { background: var(--brand-dark); }
main.wrap { padding: 1rem 0 2rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem;
  margin-bottom: .9rem;
  box-shadow: 0 8px 24px rgba(7, 26, 51, .04);
}
.card h1, .card h2, .card h3 { margin-top: 0; }
.card h2 {
  font-size: 1.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .35rem;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .6rem;
}
.meta-chip {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .6rem;
  background: #fbfdff;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.quick-links a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .75rem;
  color: var(--text);
  background: #fff;
}
.quick-links a:hover {
  border-color: #bdd3f2;
  background: #f4f9ff;
}
ul.clean { margin: 0; padding-left: 1.1rem; }
ul.clean li { margin: .34rem 0; }
a { color: var(--brand-dark); }
a:hover { text-decoration: underline; }
.note { color: var(--muted); font-size: .95rem; }
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}
.site-footer .wrap { padding: .8rem 0 1.1rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .header-row { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
}
