:root {
  --bg: #fafbfc; --fg: #1d2327; --muted: #5f6b76; --card: #fff; --line: #e3e6e8;
  --banned: #c62828; --disclose: #b86e00; --allowed: #2e7d32; --mixed: #6a4fb3; --none: #78909c;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14181b; --fg: #e3e6e8; --muted: #9aa5ae; --card: #1d2327; --line: #2a3036;
    --banned: #ef5350; --disclose: #ffa726; --allowed: #66bb6a; --mixed: #9575cd; --none: #90a4ae; }
  a { color: #8ab4f8; }
}
* { box-sizing: border-box; }
body { font: 15px/1.5 system-ui, sans-serif; background: var(--bg); color: var(--fg); margin: 0; }
header, main, footer { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
header { padding-top: 2.5rem; }
h1 { font-size: 2.4rem; margin: 0 0 .4rem; }
.lead { color: var(--muted); max-width: 46rem; margin: 0 0 1.2rem; }
.search input { width: 100%; font-size: 1.35rem; padding: .8rem 1rem; border: 2px solid var(--line);
  border-radius: 10px; background: var(--card); color: var(--fg); }
.search input:focus { outline: none; border-color: var(--allowed); }
.sr { position: absolute; left: -9999px; }
.examples { color: var(--muted); margin: .5rem 0 1rem; }
button { font: inherit; cursor: pointer; }
.ex { border: 0; background: none; color: inherit; text-decoration: underline; padding: 0 .2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 999px;
  padding: .3rem .8rem; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.summary { color: var(--muted); }
main { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; padding-bottom: 2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem;
  display: flex; flex-direction: column; gap: .5rem; }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.name { font-weight: 700; font-size: 1.1rem; }
.stars, .alt, .desc { color: var(--muted); }
.alt { margin: 0; font-weight: 600; }
.desc { margin: 0; font-size: .92rem; }
.rule { border-left: 6px solid var(--none); padding: .4rem .6rem; border-radius: 4px;
  background: color-mix(in srgb, var(--none) 10%, transparent); display: flex; flex-direction: column; gap: .2rem; }
.rule.banned { border-color: var(--banned); background: color-mix(in srgb, var(--banned) 10%, transparent); }
.rule.disclose { border-color: var(--disclose); background: color-mix(in srgb, var(--disclose) 10%, transparent); }
.rule.allowed { border-color: var(--allowed); background: color-mix(in srgb, var(--allowed) 10%, transparent); }
.rule.mixed { border-color: var(--mixed); background: color-mix(in srgb, var(--mixed) 10%, transparent); }
.rule.unreviewed { border-style: dashed; }
.quote { font-style: italic; }
.meta, .note, .changed { font-size: .85rem; color: var(--muted); }
.changed { color: var(--disclose); }
.facts { list-style: none; margin: 0; padding: 0; font-size: .92rem; display: flex; flex-direction: column; gap: .15rem; }
.safe-clear { color: var(--allowed); }
.safe-caution { color: var(--disclose); }
.safe-danger { color: var(--banned); }
.inactive { color: var(--muted); }
footer { color: var(--muted); font-size: .9rem; padding-bottom: 3rem; border-top: 1px solid var(--line); }
