:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --brand: #2563eb;
  --brand-2: #1e40af;
  --danger: #ef4444;
  --success: #16a34a;
  --radius: 16px;
  --shadow: 0 10px 20px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial; color: var(--text); background: var(--bg); }
.container { max-width: 960px; margin: 32px auto; padding: 0 16px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
h1, h2, h3 { margin: 0 0 12px; }
p { line-height: 1.6; color: var(--muted); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.btn { display: inline-block; padding: 10px 16px; background: var(--brand); color: #fff; border-radius: 12px; border: none; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--brand-2); }
.btn-secondary { background: #e5e7eb; color: #111827; }
.input { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; outline: none; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.col { flex: 1 1 300px; }
nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.error { color: var(--danger); margin-top: 8px; }
.success { color: var(--success); margin-top: 8px; }
header.hero { border-radius: var(--radius); padding: 28px; background: linear-gradient(135deg, #dbeafe, #ffffff); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.tile img { width: 100%; height: 160px; object-fit: cover; display: block; }
.tile .tile-body { padding: 12px 14px; }
footer { margin-top: 32px; color: var(--muted); text-align: center; }
/* Modal */
.modal { display:none; position:fixed; inset:0; z-index:1000; }
.modal.open { display:block; }
.modal .backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.35); }
.modal .card { position:relative; max-width:640px; margin:10vh auto; background:#fff; border-radius:16px; box-shadow: var(--shadow); padding:24px; }

.linklike { background:none; border:none; color:var(--brand); cursor:pointer; padding:0; font:inherit; }
.linklike:hover { text-decoration:underline; }

.chips { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.chip { background:#eef2ff; border-radius:999px; padding:4px 10px; font-size:0.9rem; }

/* Inline row layout */
.item-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid #eee; }
.item-row:last-child { border-bottom:none; }
.item-title { flex: 1 1 240px; }
.item-meta { color: var(--muted); }
