:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --ink: #1c2b2d;
  --muted: #5c6f73;
  --brand: #1f6f78;
  --brand-dark: #16545b;
  --accent: #c96a2b;
  --border: #d9e3e1;
  --shadow: 0 8px 24px rgba(20, 40, 45, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--brand); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero { background: linear-gradient(135deg, #163c41 0%, #1f6f78 60%, #2a8a86 100%); color: #fff; padding: 48px 0 40px; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; opacity: .85; margin: 0 0 6px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 10px; }
.hero .lead { max-width: 720px; margin: 0 0 20px; font-size: 1.05rem; opacity: .95; }
.hero-links { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; background: #fff; color: var(--brand-dark); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 1px solid transparent; cursor: pointer; }
.btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
main.container { padding-top: 24px; padding-bottom: 40px; }
.filters { display: grid; grid-template-columns: 2fr repeat(3, minmax(140px, 1fr)) auto; gap: 12px; align-items: end; background: var(--surface); padding: 16px; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); position: sticky; top: 8px; z-index: 5; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.field input, .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; }
.field.search input { padding-left: 12px; }
.actions { align-self: end; }
.actions .btn.secondary { color: var(--brand-dark); border-color: var(--border); background: #f7fbfa; }
.status-bar { margin: 18px 4px 10px; color: var(--muted); font-size: .95rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 16px 14px; box-shadow: 0 2px 8px rgba(20,40,45,.05); display: flex; flex-direction: column; gap: 10px; }
.card-header { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge { font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e8f3f4; color: var(--brand-dark); }
.badge.id { background: #173e43; color: #fff; letter-spacing: .02em; }
.badge.vol { background: #fff3e8; color: #8a4618; }
.card h3 { font-size: 1.02rem; margin: 0; line-height: 1.35; }
.meta { font-size: .85rem; color: var(--muted); margin: 0; }
dl { margin: 0; display: grid; gap: 8px; }
dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
dd { margin: 2px 0 0; font-size: .93rem; }
.card details { border-top: 1px dashed var(--border); padding-top: 8px; }
.card summary { cursor: pointer; font-weight: 600; color: var(--brand-dark); font-size: .9rem; }
.card .extra { margin-top: 8px; display: grid; gap: 8px; }
.source-link { margin-top: auto; font-size: .85rem; font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; }
.footer { padding: 10px 20px 40px; color: var(--muted); font-size: .9rem; }
mark { background: #fff3a6; color: inherit; padding: 0 2px; border-radius: 2px; }
@media (max-width: 900px) {
  .filters { grid-template-columns: 1fr 1fr; position: static; }
  .field.search { grid-column: 1 / -1; }
  .actions { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .filters { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
