/* ALLENXIE.DESIGN — a quiet editorial system. Colour belongs to the work. */
:root {
  --paper: #fcfcfc;
  --ink: #1c1c1c;
  --muted: #737373;
  --line: #e5e5e5;
  --surface: #f2f2f2;
  --accent: #dce52c;
  --sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a, button, input, select { touch-action: manipulation; }
a, button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: 86%; max-width: 1440px; margin-inline: auto; }
.header { min-height: 94px; padding: 28px 3.5%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { font-size: 23px; font-weight: 550; letter-spacing: -1px; white-space: nowrap; }
.header nav { display: flex; gap: 29px; align-items: center; font-size: 12px; }
.header nav a, .header nav button { padding: 8px 0; position: relative; }
.header nav .active::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); bottom: -3px; left: calc(50% - 2.5px); }
.header nav button span { margin-left: 3px; font-size: 10px; color: var(--muted); }
.header nav a:hover, .header nav button:hover { opacity: .55; }
.hero { padding-top: 51px; padding-bottom: 88px; }
.hero-kicker { display: flex; align-items: center; gap: 13px; }
.section-label { font-size: 12px; font-weight: 400; line-height: 1.6; letter-spacing: .2px; }
.hero-kicker p { margin: 0; font-size: 14px; }
.hero-kicker p span { color: var(--muted); margin-left: 18px; font-size: 12px; }
.issue-dot { height: 5px; width: 5px; background: var(--accent); border-radius: 50%; }
h1 { max-width: 1050px; font-size: clamp(34px, 3.3vw, 48px); font-weight: 400; line-height: 1.55; letter-spacing: .02em; margin: 34px 0 31px; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.hero-foot > p { font-size: 13px; line-height: 2; color: #666; margin: 0; }
.hero-meta { display: flex; flex-direction: column; gap: 8px; font-size: 10px; color: var(--muted); text-align: right; line-height: 1.6; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
.section-heading h2 { font-size: 28px; font-weight: 400; margin: 14px 0 0; line-height: 1.4; letter-spacing: .02em; }
.section-heading > p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.9; }
.section-heading > a { font-size: 12px; padding-block: 10px; }
.observations-heading { align-items: center; }
.observations-heading h2 { font-size: 15px; letter-spacing: 0; margin: 0; }
.count { margin-left: 9px; color: var(--muted); font-size: 10px; vertical-align: super; }
.view-tabs { display: flex; gap: 23px; }
.view-tabs button { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 0; }
.view-tabs button::before { content: ''; width: 9px; height: 9px; border: 1px solid #aaa; border-radius: 50%; margin-right: 2px; }
.view-tabs button.selected::before { border-color: var(--ink); background: var(--ink); }
.view-tabs button span { color: var(--muted); font-size: 11px; }
.toolbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-block: 20px 8px; }
.region-tabs, .scope-tabs, .source-tabs { display: flex; flex-wrap: wrap; gap: 23px; align-items: center; }
.filter-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.region-tabs button, .source-tabs button { font-size: 12px; padding: 7px 0; position: relative; color: var(--muted); }
.region-tabs button.selected, .source-tabs button.selected { color: var(--ink); }
.region-tabs button.selected::after, .source-tabs button.selected::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.search { display: flex; align-items: center; gap: 9px; }
.search svg { width: 15px; height: 15px; fill: none; stroke: #777; stroke-width: 1; }
.search input { width: 190px; border: 0; background: transparent; font-size: 11px; padding-block: 7px; border-radius: 0; }
.subtoolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 10px; }
.scope-tabs { gap: 18px; }
.scope-tabs button { font-size: 10px; padding: 6px 0; color: var(--muted); }
.scope-tabs .selected { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.subtoolbar > label { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.subtoolbar select { border: 0; background: transparent; font-size: 11px; padding: 4px 0; max-width: 160px; }
.coverage-note { font-size: 10px; color: var(--muted); margin-bottom: 23px; }
.coverage-note summary { cursor: pointer; width: fit-content; }
.coverage { line-height: 1.9; margin: 12px 0 0; max-width: 850px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 52px; }
.card { min-width: 0; }
.card-image { display: block; padding: 0; width: 100%; aspect-ratio: 3/2; background: var(--surface); position: relative; overflow: hidden; text-align: left; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; display: block; }
.card-image:hover img { opacity: .82; }
.poster { height: 100%; background: #efefef; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; }
.poster-code { font-size: clamp(30px, 3.9vw, 58px); font-weight: 300; letter-spacing: -1.5px; color: #aaa; }
.poster-title { max-width: 90%; font-size: 12px; font-weight: 400; line-height: 1.7; color: #666; }
.card-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 16px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.card-meta .card-category { color: #555; }
.card h3 { font-size: 16px; font-weight: 400; line-height: 1.65; margin: 0; }
.card-title { display: block; width: 100%; text-align: left; padding: 0; }
.card-title:hover { color: var(--muted); }
.card-summary { display: none; font-size: 13px; line-height: 2; color: #666; margin: 12px 0 0; }
.card-tags { display: none; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 12px; }
.card-bottom button { font-size: 10px; padding: 4px 0; color: var(--muted); }
.card-bottom button:hover { color: var(--ink); }
.save[aria-pressed="true"] { color: var(--ink); }
.save[aria-pressed="true"]::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 5px; }
.cards.text-view { grid-template-columns: 1fr; gap: 0; }
.text-view .card { display: grid; grid-template-columns: 210px 1fr 112px; column-gap: 36px; border-top: 1px solid var(--line); padding: 30px 0; }
.text-view .card-image { display: none; }
.text-view .card-meta { grid-column: 1; grid-row: 1/3; margin: 1px 0 0; flex-direction: column; justify-content: flex-start; gap: 8px; }
.text-view h3 { grid-column: 2; font-size: 20px; }
.text-view .card-summary { display: block; grid-column: 2; }
.text-view .card-bottom { grid-column: 3; grid-row: 1/3; align-items: flex-end; flex-direction: column; justify-content: flex-start; margin: 0; }
.load-more { display: flex; align-items: center; justify-content: space-between; margin: 58px auto 0; padding: 14px 0; width: 150px; border-bottom: 1px solid #aaa; font-size: 12px; }
.empty { grid-column: 1/-1; padding: 70px 20px; text-align: center; color: var(--muted); font-size: 13px; border-block: 1px solid var(--line); }
.countries { padding-block: 110px 85px; }
.country-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 35px; }
.country-card { padding: 18px 0 0; border-top: 1px solid #aaa; text-align: left; }
.country-card .code { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.country-card h3 { font-size: 22px; font-weight: 400; margin: 19px 0 12px; }
.country-card p { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 0; }
.country-card:hover { border-top-color: var(--ink); }
.country-card:hover h3 { opacity: .6; }
.action-strip { padding-block: 40px 45px; border-block: 1px solid var(--line); position: relative; }
.action-strip > div { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-right: 90px; margin-top: 25px; }
.action-strip h2 { font-size: 30px; font-weight: 400; margin: 0; line-height: 1.65; }
.action-strip p { font-size: 13px; line-height: 2.1; color: #666; margin: 0; }
.action-arrow { position: absolute; right: 0; top: 64px; font-size: 35px; font-weight: 300; }
.archive { padding-block: 90px; }
.archive .section-heading { margin-bottom: 35px; }
.archive-row { display: flex; gap: 35px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.archive-row strong { font-size: 18px; font-weight: 400; }
.archive-row span { flex: 1; font-size: 12px; color: var(--muted); }
.archive-row button { font-size: 12px; padding: 5px 0; }
.sources { padding-bottom: 80px; }
.source-tabs { margin-top: 27px; margin-bottom: 25px; }
.source-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.source-item { border-top: 1px solid var(--line); padding: 20px 0; }
.source-item strong { font-size: 13px; font-weight: 400; line-height: 1.7; }
.source-item p { color: var(--muted); font-size: 11px; line-height: 1.9; margin: 6px 0 0; }
.source-item:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.principles { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; border-top: 1px solid var(--line); padding-block: 35px; }
.principles b { font-size: 14px; font-weight: 400; }
.principles p { margin: 0; font-size: 11px; line-height: 2; color: var(--muted); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-block: 45px 55px; border-top: 1px solid var(--line); }
.footer .brand { font-size: 21px; }
.footer small { display: block; font-size: 10px; color: var(--muted); margin-top: 12px; }
.footer p { font-size: 11px; color: var(--muted); line-height: 1.9; }
.footer > a { font-size: 11px; }
dialog { width: min(840px, calc(100% - 32px)); max-height: 90vh; padding: 45px 55px; background: var(--paper); color: var(--ink); border: 0; }
dialog::backdrop { background: #0007; }
.close { position: sticky; float: right; top: 0; background: var(--paper); width: 36px; height: 36px; font-size: 26px; font-weight: 300; z-index: 2; }
.detail-top { color: var(--muted); font-size: 11px; line-height: 2; margin: 10px 30px 20px 0; }
#detail-body h2 { font-size: 30px; font-weight: 400; line-height: 1.6; margin: 15px 0; }
#detail-body h4 { margin: 35px 0 12px; font-size: 12px; font-weight: 400; }
#detail-body p { font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: 16px; line-height: 2.1; }
#detail-body figure { margin: 30px 0; }
#detail-body img { width: 100%; max-height: 430px; object-fit: contain; background: var(--surface); }
#detail-body figcaption { font-size: 10px; color: var(--muted); margin-top: 10px; line-height: 1.8; }
#detail-body .source-link { display: block; margin-top: 35px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 22px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; }
#toast.show { opacity: 1; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 0; background: var(--accent); padding: 16px; z-index: 100; }
@media (max-width: 1050px) {
  .wrap { width: 88%; }
  .cards { gap: 42px 24px; }
  .poster { padding: 20px; }
  .poster-title { font-size: 10px; }
  .card h3 { font-size: 15px; }
  .source-list { grid-template-columns: repeat(3, 1fr); }
  .text-view .card { grid-template-columns: 150px 1fr 90px; gap: 20px; }
}
@media (max-width: 760px) {
  .wrap { width: auto; margin-inline: 24px; }
  .header { padding: 25px 24px 16px; min-height: 110px; flex-wrap: wrap; gap: 25px; }
  .brand { font-size: 22px; letter-spacing: -.9px; }
  .header nav { width: 100%; justify-content: space-between; font-size: 11px; gap: 12px; }
  .hero { padding-block: 44px 56px; }
  .hero-kicker p { font-size: 13px; }
  .hero-kicker p span { font-size: 10px; margin-left: 12px; }
  h1 { font-size: clamp(25px, 5vw, 35px); line-height: 1.7; letter-spacing: 0; margin: 28px 0 23px; }
  .hero-foot { display: block; }
  .hero-foot > p { font-size: 11px; line-height: 2; }
  .hero-meta { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; font-size: 9px; text-align: left; margin-top: 22px; }
  .section-heading.observations-heading h2 { font-size: 14px; }
  .view-tabs { gap: 17px; }
  .view-tabs button { font-size: 11px; gap: 4px; }
  .view-tabs button span { display: none; }
  .toolbar { flex-direction: column; gap: 16px; align-items: stretch; padding-top: 20px; }
  .region-tabs { gap: 21px; }
  .region-tabs button, .filter-label { font-size: 11px; }
  .search { border-bottom: 1px solid var(--line); padding-bottom: 4px; }
  .search input { width: 100%; }
  .subtoolbar { flex-wrap: wrap; gap: 15px; padding-top: 10px; }
  .scope-tabs { gap: 18px; }
  .scope-tabs button { font-size: 10px; }
  .subtoolbar > label { margin-left: auto; }
  .coverage-note { margin-block: 7px 21px; font-size: 9px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
  .card-image { aspect-ratio: 1; }
  .card-meta { font-size: 9px; margin: 12px 0 7px; gap: 3px; flex-direction: column; }
  .card h3 { font-size: 14px; line-height: 1.8; }
  .card-bottom { margin-top: 8px; gap: 8px; }
  .card-bottom button { font-size: 9px; }
  .poster { padding: 18px 14px; }
  .poster-code { font-size: 28px; letter-spacing: -1px; }
  .poster-title { font-size: 9px; line-height: 1.6; max-width: 100%; }
  .text-view .card { grid-template-columns: 1fr auto; padding-block: 24px; gap: 10px; }
  .text-view .card-meta { grid-column: 1/-1; grid-row: auto; flex-direction: row; gap: 8px 15px; }
  .text-view h3 { grid-column: 1/-1; font-size: 18px; }
  .text-view .card-summary { grid-column: 1/-1; font-size: 12px; margin: 0; }
  .text-view .card-bottom { grid-column: 1/-1; grid-row: auto; flex-direction: row; justify-content: space-between; }
  .load-more { margin-top: 38px; }
  .countries { padding-block: 75px 55px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading > p { display: none; }
  .country-grid { grid-template-columns: 1fr 1fr; gap: 28px 22px; margin-top: 28px; }
  .country-card h3 { font-size: 21px; margin: 17px 0 10px; }
  .country-card p { font-size: 11px; }
  .action-strip { padding-block: 30px; }
  .action-strip > div { grid-template-columns: 1fr; padding-right: 30px; gap: 22px; margin-top: 20px; }
  .action-strip h2 { font-size: 25px; }
  .action-strip p { font-size: 12px; }
  .action-arrow { font-size: 28px; top: 60px; }
  .archive { padding-block: 60px; }
  .archive-row { gap: 16px; flex-wrap: wrap; padding-block: 20px; }
  .archive-row strong { font-size: 15px; }
  .archive-row span, .archive-row button { font-size: 10px; }
  .sources { padding-bottom: 50px; }
  .source-list { grid-template-columns: repeat(2, 1fr); gap: 0 22px; }
  .source-item strong { font-size: 12px; }
  .source-item p { font-size: 10px; }
  .principles { grid-template-columns: 1fr; gap: 16px; padding-block: 30px; }
  .footer { flex-wrap: wrap; align-items: flex-end; gap: 25px; padding-block: 30px 40px; }
  .footer .brand { font-size: 20px; }
  .footer > p { display: none; }
  .footer > a { font-size: 10px; }
  dialog { padding: 25px; }
  #detail-body h2 { font-size: 24px; }
  #detail-body p { font-size: 15px; }
}
@media (max-width: 380px) {
  .wrap { margin-inline: 20px; }
  .header { padding-inline: 20px; }
  .hero-kicker p span { margin-left: 8px; font-size: 9px; }
  h1 { font-size: 23px; }
  .region-tabs { gap: 17px; }
  .cards { grid-template-columns: 1fr; }
  .card-image { aspect-ratio: 3/2; }
  .card-meta { flex-direction: row; justify-content: space-between; }
  .card h3 { font-size: 17px; }
  .poster-code { font-size: 44px; }
  .poster-title { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
