:root {
  color-scheme: light;
  --ink: #244956;
  --muted: #466575;
  --line: #bdd3d8;
  --paper: #fffff8;
  --blue: #dceef5;
  --gold: #866229;
  --focus: #135c79;
  font-family: 'Palatino Linotype', 'Book Antiqua', 'Noto Serif CJK SC', 'Songti SC', SimSun, serif;
  font-size: 17px;
  background: #e6f1f4;
  color: var(--ink);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 7% 7%, #fff9e6 0, transparent 47%), radial-gradient(ellipse at 94% 15%, #c6e5f3 0, transparent 56%), linear-gradient(150deg, #f1f7f5, #e4f0f5 67%, #d8e9ed);
}
a { color: #245d72; text-underline-offset: .24em; }
a:hover { color: #714d13; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, select, input { border: 1px solid #9ebdc6; border-radius: 12px; background: #fffff9; min-height: 46px; padding: .65rem .9rem; }
input { width: 100%; }
button { transition: background .18s, border-color .18s; }
button:hover:not(:disabled) { border-color: #426f7c; background: #edf4f2; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip { position: absolute; top: -100px; left: 1rem; padding: .7rem; background: white; z-index: 5; }
.skip:focus { top: 1rem; }
.masthead, main, footer { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.brand { font-size: .79rem; letter-spacing: .19em; text-decoration: none; }
.language { display: flex; align-items: center; gap: .65rem; font-size: .88rem; }
.language select { min-height: 42px; padding: .4rem .5rem; }
.intro { padding: 2rem 0 1.2rem; max-width: 860px; }
.eyebrow { font-size: .8rem; letter-spacing: .15em; color: var(--muted); margin: 0 0 .65rem; }
.title-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
h1 { font-weight: normal; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0; }
.edition { color: var(--gold); font-size: .85rem; padding: .35rem .65rem; border: 1px solid #d9c89b; border-radius: 30px; background: #fff9df; }
p { line-height: 1.8; }
.intro > p:not(.eyebrow) { margin: .8rem 0; }
.review-notice { border-left: 3px solid #b38a41; padding: .3rem .85rem; background: #fffaf0b3; font-size: .87rem; color: #68542d; }
.tabs { display: flex; gap: .65rem; flex-wrap: wrap; }
.tabs button { border-radius: 30px; padding-inline: 1.2rem; }
.tabs button[aria-pressed='true'] { background: #315f6c; border-color: #315f6c; color: #fffefa; }
.collection-note { color: var(--muted); font-size: .9rem; min-height: 1.8rem; }
.tools { display: grid; grid-template-columns: 1fr 220px; gap: 1.2rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: 18px; background: #ffffff7a; }
.tools label { display: grid; gap: .4rem; align-content: start; font-size: .9rem; }
.tools small { color: var(--muted); font-size: .78rem; }
#status { color: var(--muted); font-size: .87rem; margin: 1rem .2rem; }
.entries { display: grid; gap: 1rem; }
.entry { position: relative; border: 1px solid #c7d8d8; border-radius: 18px; background: linear-gradient(120deg, #fffffbe8, #f6faf9e0); padding: 1.25rem 1.5rem; box-shadow: 0 6px 20px #325a6810; }
.entry::before { content: ''; display: block; position: absolute; top: 1.6rem; left: 0; height: 2.2rem; width: 3px; background: #c9ab70; }
.entry.ai::before { background: #719eb8; }
.entry-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; color: var(--muted); font-size: .79rem; }
.badge { border: 1px solid #bdcfcd; border-radius: 5px; padding: .15rem .45rem; background: #f0f6f1; }
.ai .badge { background: #e8f1f8; border-color: #b8d0df; }
h2 { font-size: 1.25rem; line-height: 1.5; font-weight: normal; margin: .65rem 0 .45rem; }
.entry-body { margin: .4rem 0 1rem; font-size: 1.04rem; line-height: 1.9; }
.attribution { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem .8rem; line-height: 1.8; }
.entry details { margin-top: .8rem; padding-top: .75rem; border-top: 1px solid #dbe4df; }
summary { cursor: pointer; font-size: .88rem; color: #365f6b; line-height: 1.6; }
blockquote { margin: .85rem 0; border-left: 2px solid #b8cecb; padding: .2rem 1rem; line-height: 1.85; overflow-wrap: anywhere; font-size: .95rem; }
.detail-note { font-size: .84rem; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.review-tag { font-size: .77rem; color: #78633c; margin: .8rem 0 0; }
.empty { background: #fffdf4; border: 1px dashed #a8c0c5; padding: 2rem 1rem; text-align: center; border-radius: 16px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.3rem; margin: 1.6rem 0; font-size: .9rem; }
.audit-notes { margin: 2rem 0; border-top: 1px solid var(--line); padding-top: 1.3rem; font-size: .86rem; }
.audit-notes summary { font-size: 1rem; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .78rem; line-height: 1.8; }
@media (max-width: 600px) {
  :root { font-size: 16px; }
  .masthead, main, footer { width: calc(100% - 28px); }
  .masthead { align-items: flex-start; padding: 1rem 0; }
  .brand { max-width: 130px; line-height: 1.8; }
  .language > span { display: none; }
  .intro { padding-top: 1.5rem; }
  .tools { grid-template-columns: 1fr; gap: .8rem; padding: .85rem; }
  .entry { padding: 1.05rem; }
  .entry-body { line-height: 1.85; }
  .tabs button { padding-inline: .9rem; }
  .pagination { gap: .7rem; }
  .pagination button { padding-inline: .7rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
