:root{color-scheme:light;--paper:#F1F0EA;--paper-deep:#E9E7DE;--card:#FBFAF6;--ink:#1A1E22;--ink-soft:#4A4F55;--ink-faint:#62676C;--line:#D8D5C9;--line-strong:#B9B5A6;--oxblood:#7C2B32;--oxblood-deep:#5E1F26;--oxblood-wash:#F3E4E4;--moss:#3E5A48;--moss-wash:#E4EBE4;--plum:#575178;--plum-wash:#E7E5EF;--brass:#7A5F33;--font-display:"Spectral",Georgia,"Times New Roman",serif;--font-ui:"Archivo","Helvetica Neue",Arial,sans-serif;--font-mono:"IBM Plex Mono","SFMono-Regular",Consolas,monospace;--max:1200px;--radius:3px}:root[data-theme="dark"]{color-scheme:dark;--paper:#14171A;--paper-deep:#0F1216;--card:#1B1F24;--ink:#ECEAE3;--ink-soft:#B4B2AA;--ink-faint:#8E9299;--line:#262B31;--line-strong:#394047;--oxblood:#E39399;--oxblood-deep:#F0B3B7;--oxblood-wash:#2A1B1E;--moss:#8FC0A2;--moss-wash:#17231C;--plum:#B3ABDD;--plum-wash:#1D1A2A;--brass:#C9A96B}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 var(--font-ui);-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,h5,h6{font-family:var(--font-display);font-weight:600;line-height:1.25}
h1{font-weight:500}
p{margin:0 0 14px}
a{color:var(--oxblood)}
:focus-visible{outline:2px solid var(--oxblood);outline-offset:2px}

.theme-switch{display:inline-flex;align-items:center;gap:6px;background:none;border:1px solid var(--line-strong);border-radius:var(--radius);padding:6px 10px;cursor:pointer;font-family:var(--font-ui);font-size:12px;font-weight:500;color:var(--ink-soft);line-height:1;flex:none}
.theme-switch:hover{color:var(--ink);border-color:var(--ink)}
.theme-switch svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;display:block}
.theme-switch .ts-moon{fill:currentColor;stroke:none}
.theme-switch .ts-sun{display:none}
.theme-switch .ts-label{line-height:1}
:root[data-theme="dark"] .theme-switch .ts-sun{display:block}
:root[data-theme="dark"] .theme-switch .ts-moon{display:none}
@media(max-width:760px){
  nav.main .theme-switch{margin-left:10px;padding:7px 8px;gap:0}
  nav.main .theme-switch .ts-label{display:none}
}
header.site{border-bottom:1px solid var(--line-strong);background:var(--paper);position:sticky;top:0;z-index:50}
header.site .site-inner{max-width:var(--max);margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;height:64px;gap:16px}
header.site .wordmark{font-family:var(--font-display);font-weight:600;font-size:22px;color:var(--ink);text-decoration:none;letter-spacing:.01em;display:flex;align-items:center;gap:11px}
header.site .wordmark .seal{display:inline-block;width:34px;height:34px;background-image:url("/images/coup-atlas-seal-v2.png");background-position:center;background-size:contain;background-repeat:no-repeat;flex:none}
header.site .wordmark small{font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;color:var(--ink-faint);text-transform:uppercase;font-weight:500;align-self:center}
header.site nav.main{display:flex;gap:28px;align-items:center}
header.site nav.main a{text-decoration:none;font-family:var(--font-ui);font-size:14px;font-weight:500;color:var(--ink-soft);padding:4px 0;border-bottom:2px solid transparent}
header.site nav.main a:hover{color:var(--ink)}
header.site nav.main a.active{color:var(--ink);border-bottom-color:var(--oxblood)}
header.site nav.main a.cta{border:1px solid var(--ink);border-radius:var(--radius);padding:8px 16px;color:var(--ink)}
header.site nav.main a.cta:hover{background:var(--ink);color:var(--paper)}
footer.site{border-top:1px solid var(--line-strong);background:var(--paper-deep);margin-top:56px;font-family:var(--font-ui)}
footer.site .foot-inner{max-width:var(--max);margin:0 auto;padding:34px 24px 26px;display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between;font-size:13px;color:var(--ink-soft);line-height:1.6}
footer.site .foot-col{min-width:200px;max-width:380px}
footer.site .foot-h{font-family:var(--font-mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-faint);margin-bottom:8px}
footer.site .foot-link{display:block;color:var(--ink-soft);text-decoration:none;padding:3px 0;font-size:13px}
footer.site .foot-link:hover{color:var(--oxblood);text-decoration:underline}
footer.site .foot-bottom{border-top:1px solid var(--line)}
footer.site .foot-copy{max-width:1120px;margin:0 auto;padding:16px 24px 22px;font-size:12.5px;line-height:1.7;color:var(--ink-faint);text-align:center}
footer.site .foot-details{margin:0 0 6px}
footer.site .foot-details summary{cursor:pointer;color:var(--ink-soft);font-size:13px;padding:3px 0}
footer.site .foot-details summary:hover{color:var(--oxblood)}
footer.site .foot-details p{margin:6px 0 8px;font-size:12px;color:var(--ink-faint);line-height:1.6;max-width:44ch}
footer.site .soc-line{display:flex;align-items:center;gap:8px}
footer.site .soc-line svg{width:14px;height:14px;fill:currentColor;flex:0 0 auto;opacity:.75}
footer.site .soc-line:hover svg{opacity:1}
footer.site .slab{font-family:var(--font-mono);font-size:.62rem;font-weight:600;padding:1px 5px;border-radius:2px;white-space:nowrap;letter-spacing:.02em}
footer.site .slab.v{background:var(--moss-wash);color:var(--moss);border:1px solid #B8CDBB}
footer.site .slab.c{background:var(--plum-wash);color:var(--plum);border:1px solid #C6C1DD}
footer.site .slab.h{background:#EFE7D6;color:var(--brass);border:1px solid #D9C79A}
/* The three little footer tags carry hand-picked borders that only work on paper.
   At night they take borders mixed from the night palette instead. */
:root[data-theme="dark"] footer.site .slab.v{border-color:#2E4433}
:root[data-theme="dark"] footer.site .slab.c{border-color:#332F4A}
:root[data-theme="dark"] footer.site .slab.h{background:#2A2418;border-color:#4A3D22}
@media(max-width:760px){
  header.site .site-inner{padding-left:14px;padding-right:14px;gap:10px}
  header.site .wordmark{font-size:20px;white-space:nowrap}
  header.site .wordmark small{display:none}
  header.site .wordmark .seal{width:32px;height:32px}
  header.site nav.main{gap:0}
  header.site nav.main a:not(.cta){display:none}
  header.site nav.main a.cta{display:inline-block;padding:8px 10px;font-size:11px}
  footer.site .foot-inner{gap:26px}
}

footer.site .lbl-s{display:none}
@media(max-width:760px){
  /* long name off, short name on */
  footer.site .lbl-l{display:none}
  footer.site .lbl-s{display:inline}
  /* The social name is hidden the accessible way rather than with display:none, so a
     screen reader still announces "Instagram" on a button that only shows a logo. */
  footer.site .soc-name{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  footer.site .follow .foot-list{display:flex;flex-wrap:wrap;gap:8px}
  footer.site .soc-line{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;gap:0;border:1px solid var(--line);border-radius:3px}
  footer.site .soc-line svg{width:19px;height:19px;opacity:.8}
  /* Explore runs across in lines instead of one link per row. The negative margin pulls
     the first link back to the column edge, since each link now carries side padding. */
  footer.site .explore .foot-list{display:flex;flex-wrap:wrap;column-gap:0;row-gap:0;margin-left:-9px}
  footer.site .explore .foot-link{padding:7px 9px}
  footer.site .foot-inner{gap:16px;padding:24px 20px 14px}
  footer.site .foot-col{min-width:0;max-width:none;width:100%}
  footer.site .brand.tight img{width:40px;height:40px}
  footer.site .brand.tight > div:last-child{margin-top:6px;font-size:12.5px;max-width:none}
  /* About the Data sits directly under Explore, the way you asked, with the logos below. */
  footer.site .about{order:1}
  footer.site .follow{order:2}
  footer.site .about .foot-list{display:grid;grid-template-columns:1fr 1fr;column-gap:16px;align-items:start}
  footer.site .foot-details{margin:0}
  footer.site .foot-details p{max-width:none;grid-column:1 / -1}
  footer.site .foot-copy{text-align:center;font-size:11.5px;line-height:1.55;padding:12px 20px 16px}
  /* A fold name that wraps hangs under its own first word, not under the arrow. The
     arrow becomes its own fixed column so the text keeps a straight left edge. */
  footer.site .foot-details summary{display:flex;align-items:flex-start;gap:7px;list-style:none}
  footer.site .foot-details summary::-webkit-details-marker{display:none}
  footer.site .foot-details summary::marker{content:""}
  footer.site .foot-details summary::before{content:"\25B8";flex:0 0 auto;font-size:11px;line-height:1.55;transition:transform .15s ease}
  footer.site .foot-details[open] summary::before{transform:rotate(90deg)}
}
main{max-width:760px;margin:0 auto;padding:26px 18px 60px}
h1{font-size:1.7rem;line-height:1.25;margin:6px 0 6px}
.meta{font:12px var(--font-mono);color:var(--ink-faint);letter-spacing:.06em;text-transform:uppercase}
/* Same badge as the app's record view, so an event looks the same at either address. */
.badge{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:10.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;padding:4px 9px;border-radius:2px;white-space:nowrap;margin-right:6px}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.85}
.badge.overthrown{background:var(--oxblood-wash);color:var(--oxblood)}
.badge.suppressed{background:var(--moss-wash);color:var(--moss)}
.badge.foiled{background:var(--plum-wash);color:var(--plum)}
.badge.plain{background:var(--paper-deep);color:var(--ink-soft)}
.badge.plain::before{display:none}
/* A printed page runs no JavaScript, so here the grade is a link to the glossary entry
   rather than a pop-up panel. Same square, same meaning, one click either way. */
.conf-sq{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:3px;font:700 11px var(--font-ui);border:1px solid;cursor:pointer;vertical-align:middle;margin-left:2px;text-decoration:none}
.conf-sq:hover{border-color:var(--brass)}
.conf-sq.conf-high{background:#E4EDE2;border-color:#9DBB98;color:#2E5B2A}
.conf-sq.conf-medium{background:#F2EAD8;border-color:#CBB27A;color:#7A5E1E}
.conf-sq.conf-low{background:#EFE9DA;border-color:var(--line-strong);color:var(--ink-faint)}
p{margin:0 0 14px}
table{border-collapse:collapse;width:100%;margin:18px 0;background:var(--card);border:1px solid var(--line-strong);font-size:.92rem}
th,td{text-align:left;padding:8px 12px;border-bottom:1px solid var(--line);vertical-align:top}
th{font:11px var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-faint);white-space:nowrap;width:170px}
figure{margin:20px 0}figure img{width:100%;height:auto;display:block;border:1px solid var(--line-strong);border-radius:4px}
/* A tall picture used as a page opener is capped, so the reader is not scrolling past
   a full screen of painting before reaching the first line of the page. */
figure.opener img{height:300px;object-fit:cover;object-position:50% 28%}
figure.dispatch-hero{max-width:680px;margin:20px auto 28px}
figure.dispatch-hero img{max-height:430px;object-fit:contain;background:rgba(242,237,227,.04)}
figure img[src$="news-chile-allende-un.jpg"]{aspect-ratio:1 / 1;height:auto;object-fit:cover;object-position:center bottom}
figcaption{font:11px var(--font-mono);color:var(--ink-faint);margin-top:6px;line-height:1.5}
h2{font-size:1.15rem;margin:26px 0 8px}
ul{padding-left:20px}li{margin:4px 0;font-size:.92rem}
.btn{display:inline-block;background:var(--oxblood);color:#fff;text-decoration:none;font:700 14px var(--font-ui);padding:10px 18px;border-radius:3px;margin:8px 0}
a{color:var(--oxblood)}
.rel a{display:block;margin:5px 0;text-decoration:none;border-bottom:1px solid transparent}
.rel a:hover{border-bottom-color:var(--oxblood)}
.note{background:var(--card);border-left:3px solid var(--brass);padding:10px 14px;font-size:.88rem;color:var(--ink-soft);margin:16px 0}
.src-intro{font-size:.86rem;color:var(--ink-soft)}
ul.src-trail{list-style:none;padding:0;margin:12px 0}
li.src-outlet{margin:0 0 14px;padding-left:12px;border-left:2px solid var(--line-strong)}
li.src-outlet .outlet{font:700 .92rem var(--font-ui);color:var(--ink)}
ul.cites{list-style:none;padding:0;margin:3px 0 0}
ul.cites li{font-size:.88rem;color:var(--ink-soft);margin:3px 0}
.cite-sep{color:var(--ink-faint)}
.cite-none{font-size:.85rem;color:var(--ink-faint);font-style:italic}
td .sub{font-size:.82rem;color:var(--ink-faint);margin-top:3px;line-height:1.45}
ul.tactics{list-style:none;padding:0;margin:12px 0}
ul.tactics li{position:relative;padding:6px 0 6px 22px;border-bottom:1px solid var(--line);font-size:.92rem}
ul.tactics li:last-child{border-bottom:0}
ul.tactics li::before{content:"";position:absolute;left:4px;top:14px;width:7px;height:7px;background:var(--brass);border-radius:50%}
code{font:.86rem ui-monospace,Menlo,Consolas,monospace;background:var(--card);border:1px solid var(--line);border-radius:3px;padding:1px 5px}
form.corr{background:var(--card);border:1px solid var(--line-strong);border-left:3px solid var(--brass);border-radius:4px;padding:16px 18px;margin:14px 0}
form.corr label{display:block;font:700 .85rem var(--font-ui);margin:12px 0 4px;color:var(--ink-soft)}
form.corr .req{color:var(--oxblood);font-weight:400}form.corr .opt{color:var(--ink-faint);font-weight:400}
form.corr input,form.corr textarea{width:100%;font:14px/1.5 var(--font-ui);padding:8px 10px;border:1px solid var(--line-strong);border-radius:3px;background:#fff;color:var(--ink)}
form.corr textarea{resize:vertical}
form.corr button{margin-top:14px;background:var(--oxblood);color:#fff;border:0;font:700 14px var(--font-ui);padding:10px 20px;border-radius:3px;cursor:pointer}
form.corr button:hover{background:var(--oxblood-deep)}
form.corr .corr-rec{font-size:.85rem;color:var(--ink-soft);margin:0 0 4px}
form.corr .corr-hint{font-size:.8rem;color:var(--ink-faint);margin:10px 0 0}
ul.rd-list{list-style:none;padding:0;margin:14px 0}
li.rd-item{padding:10px 0;border-bottom:1px solid var(--line)}
li.rd-item:last-child{border-bottom:0}
.rd-fact{font-size:.95rem;line-height:1.55}
.rd-src{font:12px/1.6 var(--font-ui);color:var(--ink-faint);margin-top:5px}
.slab{display:inline-block;font:700 10px var(--font-mono);letter-spacing:.07em;padding:2px 6px;border:1px solid;border-radius:3px;margin-right:6px;white-space:nowrap}
.slab-v{background:#E4EDE2;border-color:#9DBB98;color:#2E5B2A}
.slab-c{background:#F2EAD8;border-color:#CBB27A;color:#7A5E1E}
.slab-h{background:#EFE9DA;border-color:var(--line-strong);color:var(--ink-soft)}
.btn-lede{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0 4px}
.btn-lede .btn{margin:0}
.btn-lede span{font-size:.85rem;color:var(--ink-soft)}
/* ---- the same page, at night --------------------------------------------------
   Everything above that names a colour by token already follows the theme, because
   the token itself changes when the switch is flipped. What follows fixes the handful
   of places written with a fixed light colour back when this was the only kind of page
   on the site, and which therefore stayed light on a dark page: the three grade
   squares, the three research chips, the two buttons, and the fields of the correction
   form. The values match the ones the interactive pages already use, so a reader
   flipping the switch sees one site rather than two. */
:root[data-theme="dark"] .conf-sq.conf-high{background:#17231C;border-color:#3E5F49;color:#8FC0A2}
:root[data-theme="dark"] .conf-sq.conf-medium{background:#2A2418;border-color:#5A4A26;color:#C9A96B}
:root[data-theme="dark"] .conf-sq.conf-low{background:#23272C;border-color:var(--line-strong);color:var(--ink-soft)}
:root[data-theme="dark"] .slab-v{background:#17231C;border-color:#2E4433;color:var(--moss)}
:root[data-theme="dark"] .slab-c{background:#2A2418;border-color:#4A3D22;color:var(--brass)}
:root[data-theme="dark"] .slab-h{background:#23272C;border-color:var(--line-strong);color:var(--ink-soft)}
/* The red used for buttons gets lighter at night so that it can still be seen against
   a dark page, which means white lettering on it no longer reads. The lettering goes
   dark instead — the same swap the interactive pager already makes. */
:root[data-theme="dark"] .btn,
:root[data-theme="dark"] form.corr button{color:#14171A}
/* A white field holding the page's light lettering means a reader types and sees
   nothing at all. The field takes the page's own card colour at night. */
:root[data-theme="dark"] form.corr input,
:root[data-theme="dark"] form.corr textarea{background:var(--card)}
