/* ============================================================
   Probity Institute — stylesheet
   Newspaper masthead aesthetic. Serif type. Black/white/one accent.
   Print-inspired. No build step. Deploy as-is.
   ============================================================ */

:root {
  --ink: #161616;          /* near-black body text */
  --paper: #fdfcf7;        /* warm newsprint */
  --accent: #1e3a5f;       /* deep institutional navy — the one accent */
  --muted: #57534e;        /* grey for bylines, captions, placeholders */
  --rule: #101010;         /* black rules */
  --rule-light: #b8b2a6;   /* hairlines */
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  padding: 0 16px;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

/* ---------- top dateline strip ---------- */
.dateline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 4px double var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 6px 0;
  margin-top: 14px;
}

/* ---------- masthead ---------- */
.masthead {
  text-align: center;
  padding: 26px 0 12px;
}
.masthead .org {
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 8px;
}
.masthead h1 {
  font-size: clamp(44px, 9vw, 78px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
  text-transform: uppercase;
}
.masthead .rule-double {
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  height: 5px;
  margin-top: 12px;
}
.masthead .tagline {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- nav ---------- */
nav.topnav {
  border-bottom: 2px solid var(--rule);
  margin-bottom: 26px;
}
nav.topnav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 26px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}
nav.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: bold;
  padding-bottom: 2px;
}
nav.topnav a:hover, nav.topnav a.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
nav.topnav a.active { color: var(--accent); }

/* ---------- section kickers ---------- */
.kicker {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--accent);
  margin: 0 0 6px;
}

/* ---------- headings ---------- */
h2.sec {
  font-size: 22px;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 900;
  margin: 34px 0 4px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--rule);
}
h3 { font-size: 19px; margin: 22px 0 6px; }
h4 { font-size: 15px; margin: 18px 0 4px; text-transform: uppercase; letter-spacing: .05em; }

p { margin: 0 0 14px; }
.small { font-size: 13px; color: var(--muted); }
.byline { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

a { color: var(--accent); }
a:hover { color: var(--ink); }

/* ---------- front page ---------- */
.lead {
  border-bottom: 2px solid var(--rule);
  padding-bottom: 22px;
  margin-bottom: 22px;
}
.lead .headline {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  margin: 0 0 10px;
}
.lead .standfirst {
  font-size: 19px;
  line-height: 1.4;
  color: #333;
  margin: 0 0 14px;
}
.lead p.lead-body { column-count: 2; column-gap: 28px; column-rule: 1px solid var(--rule-light); }
.lead p.lead-body::first-letter {
  float: left;
  font-size: 52px;
  line-height: .82;
  padding: 4px 8px 0 0;
  font-weight: 900;
  color: var(--accent);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 22px;
  margin-bottom: 22px;
}
.two-col > div { min-width: 0; }
.col-rule-left { border-left: 1px solid var(--rule-light); padding-left: 30px; }

/* ---------- tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 10px 0 18px;
}
th, td {
  border-bottom: 1px solid var(--rule-light);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--rule);
}
tr.pending td { color: var(--muted); font-style: italic; }
td.c { text-align: center; }
td.r { text-align: right; }
.badge-holder { color: var(--ink); font-weight: bold; }
.badge-none { color: var(--muted); }
.badge-proposed { color: var(--accent); font-style: italic; }

/* ---------- lists ---------- */
ul.stories { list-style: none; margin: 0 0 8px; padding: 0; }
ul.stories li { padding: 9px 0; border-bottom: 1px dotted var(--rule-light); }
ul.stories li:last-child { border-bottom: none; }
ul.stories .proposal { font-weight: bold; font-size: 15.5px; }
ul.stories .meta { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

ol.steps { margin: 0 0 16px; padding-left: 22px; }
ol.steps li { margin-bottom: 8px; }

/* ---------- callouts / placeholders ---------- */
.notice {
  border: 1px solid var(--rule);
  border-left: 5px solid var(--accent);
  padding: 12px 16px;
  margin: 14px 0 20px;
  background: #f4f2ea;
  font-size: 14px;
}
.notice strong { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.placeholder-box {
  border: 1px dashed var(--accent);
  background: #f2f4f7;
  padding: 14px 16px;
  margin: 14px 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.placeholder-box code { font-size: 12px; background: #e5e8ed; padding: 1px 5px; }

/* ---------- footer ---------- */
footer {
  margin-top: 40px;
  border-top: 3px double var(--rule);
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
footer .footer-nav { margin: 0 0 10px; }
footer .footer-nav a { margin-right: 14px; }
footer .legal { border-top: 1px solid var(--rule-light); padding-top: 10px; font-size: 11.5px; line-height: 1.5; }

/* ---------- newsfeed ---------- */
.entry-list { list-style: none; margin: 0; padding: 0; }
.entry-list li { padding: 14px 0; border-bottom: 1px solid var(--rule-light); }
.entry-list .date { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: bold; }
.entry-list a.title { font-size: 19px; font-weight: bold; color: var(--ink); text-decoration: none; }
.entry-list a.title:hover { color: var(--accent); }
.entry-list .desc { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- manifesto ---------- */
ol.declarations {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  counter-reset: declaration;
}
ol.declarations > li {
  counter-increment: declaration;
  position: relative;
  padding: 14px 0 14px 56px;
  border-bottom: 1px dotted var(--rule-light);
  margin: 0;
}
ol.declarations > li:last-child { border-bottom: none; }
ol.declarations > li::before {
  content: counter(declaration, decimal-leading-zero) ".";
  position: absolute;
  left: 0;
  top: 16px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--accent);
}

/* ---------- token pages ---------- */
.verdict-head {
  border: 2px solid var(--rule);
  background: #f4f2ea;
  padding: 18px 20px;
  margin: 0 0 26px;
}
.verdict-head h2 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 2px;
}
.verdict-head .tok {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: bold;
}
.chips { margin: 12px 0 14px; }
.chip {
  display: inline-block;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: bold;
  padding: 3px 9px;
  margin: 0 8px 6px 0;
}
.chip.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.gsa-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.gsa-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .06em;
  padding: 5px 10px;
  border: 1px solid var(--rule);
}
.gsa-badge .st { font-weight: normal; }
.gsa-badge.pass { background: var(--accent); border-color: var(--accent); color: #fff; }
.gsa-badge.near { background: transparent; border-color: var(--accent); color: var(--accent); }
.gsa-badge.fail { background: transparent; border-color: var(--rule-light); color: var(--muted); }
.why { font-size: 16px; }
.flaglist { margin: 0 0 8px; padding-left: 20px; }
.flaglist li { margin-bottom: 7px; font-size: 14px; }
ul.votelinks { list-style: none; margin: 0 0 10px; padding: 0; }
ul.votelinks li { padding: 6px 0; border-bottom: 1px dotted var(--rule-light); font-size: 15px; }
.metric-note { letter-spacing: .06em; text-transform: uppercase; }
td.gsa.pass { font-weight: bold; color: var(--accent); }
td.gsa.near { color: var(--accent); }
td.gsa.fail { color: var(--muted); }
.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 14px;
  margin: 16px 0 22px;
}
.token-card {
  display: block;
  border: 1px solid var(--rule-light);
  background: var(--paper);
  padding: 14px 16px;
  color: var(--ink);
  text-decoration: none;
}
.token-card:hover { border-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
.token-card .name { font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.token-card .sym { font-size: 12px; letter-spacing: .2em; color: var(--accent); font-weight: bold; margin-top: 2px; }
.token-card .meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.token-card .badges { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.legend { font-size: 13px; color: var(--muted); }

/* ---------- responsive / print ---------- */
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
  .col-rule-left { border-left: none; padding-left: 0; }
  .lead p.lead-body { column-count: 1; }
}
@media print {
  body { background: #fff; font-size: 12px; }
  nav.topnav { display: none; }
  .dateline { border-top-style: solid; }
  a { color: var(--ink); }
}
