/* Ink and Gold. Public chrome, guides and news. The portal game and the special pages keep their own styles. */
.ink {
  --night: #0e0d0b;
  --ink-2: #171512;
  --paper: #f4efe4;
  --gold: #f0c14b;
  --gold-deep: #c4922a;
  --muted: #d9d0c0;
  --line: rgba(240, 193, 75, 0.45);
  background: var(--night);
  color: var(--paper);
}
.ink body { background: var(--night); color: var(--paper); }
.ink .ios-tint { background: var(--night); }
.ink .canal-strip { display: none; }

.ink .site-header {
  background: #0e0d0b;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
}
.ink .brand-name, .ink .tagline, .ink .site-header a { color: var(--paper); }
.ink .brand-tech { color: var(--gold); }
.ink .brand-mark, .ink .nav-logo { width: 2rem; height: 2rem; display: block; }
.ink .nav-button {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
}
.ink .site-nav {
  background: #141210;
  color: var(--paper);
}
.ink .nav-sheet-kicker, .ink .nav-group-label { color: var(--gold); }
.ink .site-nav a { color: var(--paper); }
.ink .site-nav a[aria-current="page"] { color: #1b1408; background: var(--gold); }
.ink .site-footer {
  background: #100e0c;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.ink .site-footer a { color: var(--gold); }
.ink .to-top { background: var(--gold); color: #1b1408; }
@media (min-width: 960px) {
  body.ink .header-inner { flex-wrap: wrap; align-items: center; }
  body.ink .site-nav { flex-wrap: wrap; justify-content: flex-end; background: transparent; }
  body.ink .nav-drop summary,
  body.ink .site-nav > a { color: var(--paper); }
  body.ink .site-nav > a[aria-current="page"],
  body.ink .nav-drop.is-current > summary,
  body.ink .nav-drop[open] > summary {
    color: #1b1408;
    background: var(--gold);
    box-shadow: none;
  }
  body.ink .nav-drop-panel { background: #171512; border-color: var(--line); }
  body.ink .nav-drop-panel a { color: var(--paper); }
}

.ink .hero { position: relative; margin: 0; background: #000; }
.ink .hero img, .ink .hero picture { display: block; width: 100%; max-width: 100%; height: auto; max-height: 70vh; object-fit: cover; }
.ink .hero-below { padding: 1.1rem 0 0.2rem; }
body.ink .hero-mark,
body.ink .hero-strap {
  margin: 0;
  background: transparent;
  color: var(--paper);
  padding-left: 0;
  padding-right: 0;
}
body.ink .hero-mark { font-size: clamp(2.4rem, 8vw, 4.2rem); letter-spacing: -0.03em; }
body.ink .hero-strap { margin-top: 0.35rem; color: var(--gold); font-size: 1.15rem; font-style: italic; }
body.ink .jump-details,
body.ink .jump-details summary { background: #171512; color: var(--paper); border-color: var(--line); }
body.ink .why, body.ink .why p, body.ink .why-label { background: #f4efe4; color: #1a1714; }
body.ink #updated-toast {
  top: auto;
  right: 1rem;
  left: auto;
  bottom: 1rem;
  width: max-content;
  transform: none;
  background: var(--gold);
  color: #1b1408;
}
@media (max-width: 700px) {
  body.ink #updated-toast {
    top: 0.72rem;
    right: 5.6rem;
    bottom: auto;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
  }
}
.ink .front-list, .ink .wrap, .ink main, .ink .sheet, .ink .sheet-main, .ink .sheet-side, .ink .prose, .ink .edition, .ink .front {
  min-width: 0;
  max-width: 100%;
}
.ink .story-card, .ink .card-link { background: var(--ink-2); color: var(--paper); border: 1px solid var(--line); }
.ink .story-card .kicker, .ink .kicker { color: var(--gold); }
.ink .story-card .dek, .ink .meta, .ink .standfirst { color: var(--muted); }
.ink .day-strip, .ink .day-block { background: var(--ink-2); color: var(--paper); border-color: var(--line); }
.ink .day-block a { color: var(--gold); }

.ink .sheet-main h1, .ink .edition h1, .ink h1, .ink h2, .ink h3 { color: var(--paper); }
.ink .prose, .ink .edition, .ink .news-item { color: var(--paper); }
.ink .prose a, .ink .edition a, .ink .news-item a { color: var(--gold); }
.ink .article-figure, .ink .lead-figure { margin: 0 0 1rem; }
.ink .article-figure img, .ink .lead-figure img { width: 100%; max-width: 100%; height: auto; display: block; object-fit: cover; }
.ink figcaption, .ink .visual-source { color: var(--muted); }

.ink .visual {
  background: var(--paper);
  color: #1a1714;
  border-radius: 14px;
  padding: 0.85rem;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
}
.ink .visual figcaption, .ink .visual .visual-source, .ink .visual .visual-text { color: #1a1714; }
.ink .visual svg { max-width: 100%; height: auto; }

.ink .table-wrap {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ink .table-wrap table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  color: var(--paper);
}
.ink .prose th, .ink .prose td, .ink .edition th, .ink .edition td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
.ink .scroll-cue { color: var(--gold); font-size: 0.92rem; }

.ink .panel-save, .ink .panel-deal {
  background: #16130f;
  border: 1px solid var(--gold);
  color: var(--paper);
}
.ink .panel-save > h2, .ink .panel-deal > h2 { color: var(--gold); }
.ink .deal {
  margin: 0.75rem 0;
  padding: 0.85rem 0.9rem 0.2rem;
  background: #241f18;
  border-radius: 14px;
}
.ink .deal-save {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--gold);
  color: #1b1408;
  font-weight: 750;
}
.ink .deal p { color: var(--paper); }
.ink .panel-save > p:has(> strong:first-child),
.ink .panel-deal > p:has(> strong:first-child) {
  background: #241f18;
  color: var(--paper);
}
.ink .panel-save > p:has(> strong:first-child)::before { background: var(--gold); color: #1b1408; }

.ink .jump, .ink .page-jump { color: var(--paper); }
body.ink .side-sources, body.ink .more-cut {
  background: #171512;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
}
body.ink .side-sources a, body.ink .more-cut a { color: var(--gold); }
.ink .page-jump a, .ink .jump a { color: var(--gold); }

@media (max-width: 700px) {
  .ink .visual-wide { display: none; }
  .ink .visual-narrow { display: block; max-width: 100%; }
}
