:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #52637a;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --rose: #be123c;
  --rose-bg: #fff1f2;
  --rose-bd: #fecdd3;
  --violet: #6d28d9;
  --violet-bg: #f5f3ff;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.shell { width: min(100%, 672px); margin-inline: auto; padding-inline: 14px; }
.skip { position: absolute; top: 8px; left: 8px; padding: 8px 12px; transform: translateY(-135%); z-index: 3; background: white; }
.skip:focus { transform: none; }

.notice {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 8px;
  background: #fffbeb;
  color: #92400e;
  border-bottom: 1px solid #fde68a;
  padding: 8px 12px;
  font-size: .875rem;
}
.notice h1 { margin: 0; font-size: 1rem; font-weight: 750; }
.topbar { position: sticky; top: 0; z-index: 2; background: #fffffff7; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.row { display: flex; align-items: center; overflow-x: auto; scrollbar-width: thin; gap: 18px; }
.row button { flex: none; cursor: pointer; position: relative; padding: 0 1px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .91rem; font-weight: 500; line-height: 1.2; white-space: nowrap; min-height: 44px; }
.row button[aria-pressed="true"] { color: var(--ink); font-weight: 750; }
.tabs button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: 6px; left: calc(50% - 8px); width: 16px; height: 2px; border-radius: 2px; background: var(--rose); }
.row button:focus-visible { outline-offset: -2px; }
main.shell { padding-block: 12px 42px; scroll-margin-top: 58px; }
.sectionhead { padding: 12px 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.sectionhead h2 { margin: 0; font-size: 1rem; font-weight: 750; }
.sectionhead p { margin: 3px 0 0; font-size: .875rem; color: var(--muted); }
.sectionhead b { color: var(--rose); }
.sectionhead .muted { color: var(--muted); font-size: .875rem; font-weight: 500; margin-right: 4px; }
.chips { margin: 5px 0 9px; padding-inline: 2px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px #0f172a0a; }
.card:has(details[open]) { border-color: #ddd6fe; }
.card summary { cursor: pointer; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; align-items: start; padding: 13px 14px; list-style: none; }
.card summary:focus-visible { outline-offset: -3px; }
.card summary::-webkit-details-marker { display: none; }
.thumb { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #f1f5f9; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-main { display: grid; min-width: 0; gap: 4px; }
.badges, .card-actions, .links { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.tag, .district { padding: 1px 8px; font-size: .875rem; border-radius: 999px; }
.tag { color: var(--violet); background: var(--violet-bg); }
.district { color: #475569; background: #f1f5f9; border-radius: 5px; }
.card-title { font-size: 1rem; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.compact-meta { color: var(--muted); font-size: .875rem; }
.pill, .pill-web { display: inline-flex; align-items: center; min-height: 32px; padding: 3px 10px; border: 1px solid var(--rose-bd); border-radius: 999px; color: var(--rose); background: var(--rose-bg); font-size: .875rem; font-weight: 650; text-decoration: none; }
.pill:hover { background: var(--rose); color: white; }
.more { margin-left: auto; color: var(--muted); font-size: .875rem; }
.m-close, details[open] .m-open { display: none; }
details[open] .m-close { display: inline; color: var(--violet); }
.detail { padding: 12px 14px 14px; border-top: 1px solid #f1f5f9; }
.details { margin: 0; display: grid; gap: 4px; font-size: .91rem; }
.details div { display: grid; grid-template-columns: 2.3em minmax(0, 1fr); gap: 8px; }
.details dt { font-weight: 700; }
.details dd { margin: 0; color: #475569; overflow-wrap: anywhere; }
.description { margin: 10px 0; }
.links { padding-top: 2px; gap: 7px 12px; font-size: .875rem; }
.links a { color: var(--violet); padding-block: 4px; text-underline-offset: 3px; }
.links .pill-web { color: #475569; background: white; border-color: var(--line); }
.empty { border: 1px solid var(--line); background: white; border-radius: 16px; padding: 20px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 10px; }
.empty button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: white; color: var(--violet); cursor: pointer; font: inherit; }
footer { border-top: 1px solid var(--line); padding-block: 14px 22px; font-size: .875rem; color: var(--muted); }
@media (min-width: 640px) { .card summary { grid-template-columns: 96px minmax(0, 1fr); } }
@media (max-width: 360px) { .row { gap: 13px; } .card summary { grid-template-columns: 64px minmax(0, 1fr); gap: 9px; } }
