:root {
  --ink: #0f1b2d;
  --ink-dim: #5b6b82;
  --line: #d7dee8;
  --panel: #ffffff;
  --bg: #f4f7fb;
  --brand: #1f6feb;
  --radius: 8px;
  --open: #1a7f37;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--ink-dim); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

header.site { background: #0f1b2d; color: #fff; padding: 18px 0; }
header.site .brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
header.site .logo { font-weight: 700; font-size: 1.25rem; }
header.site .muted { color: #9fb2cc; }

main { padding: 28px 0 48px; }
.hero h1 { font-size: 1.7rem; margin: 0 0 6px; }
.lede { max-width: 760px; color: var(--ink-dim); }

.grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; margin-top: 24px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.toolbar input[type=search] { flex: 1 1 220px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.95rem; }
.toolbar select { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.btn { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 0.9rem; cursor: pointer; }
.btn:hover { text-decoration: none; border-color: var(--brand); }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }

.tablewrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th { background: #1F3A5F; color: #fff; text-align: left; padding: 10px 12px; position: sticky; top: 0; }
tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) { background: #f7f9fc; }
.title-cell a { font-weight: 600; }
.tag { display: inline-block; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.78rem; color: var(--ink-dim); }
.tag.open { color: var(--open); border-color: #b7e4c7; background: #ecf7f0; }

aside.side { display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card h2 { margin: 0 0 8px; font-size: 1.05rem; }
.nolist { list-style: none; padding: 0; margin: 8px 0 0; }
.nolist li { padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
form#subForm { display: flex; gap: 8px; margin-top: 8px; }
form#subForm input { flex: 1 1 auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); }

footer.site { border-top: 1px solid var(--line); padding: 28px 0; color: var(--ink-dim); font-size: 0.9rem; margin-top: 40px; }
footer.site .bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site .foot-sites { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site .foot-sites a { color: var(--brand); font-size: 0.85rem; }
footer.site .foot-legal { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.85rem; }
footer.site .foot-contact { margin-top: 6px; font-size: 0.85rem; }
footer.site .foot-contact a { color: var(--brand); }
footer.site .foot-copy { margin-top: 6px; font-size: 0.8rem; }