/* Reading-mode overrides for copied daily digest pages.
   Loaded after the inlined digest stylesheet; do not edit hn-digest/. */

body {
  background: var(--bg);
  font-family: var(--font-body);
  font-size: var(--text-size);
  line-height: var(--line);
  letter-spacing: var(--tracking);
  color: var(--ink);
}

@media (max-width: 640px) {
  body { font-size: var(--text-size-mobile); }
}

/* Quiet the original sticky header: keep the date + how-to-read, drop the mark and duplicate toggle. */
.site-header {
  position: static;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 28px 24px 8px;
  display: block;
}
.brand { display: block; gap: 0; }
.brand-mark,
.site-header .theme-toggle { display: none; }
.brand-text h1 {
  margin: 0 0 6px;
  font-size: 1.45em;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.how-to-read {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-faint);
  line-height: 1.5;
  font-weight: 400;
}

.main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 12px 24px 72px;
}

.hn-day-bar {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 10px 24px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-muted);
  line-height: 1.4;
}
.hn-day-bar a.btn { text-decoration: none; }
.hn-day-bar .sep { color: var(--hairline-strong); }
.hn-day-bar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.panel,
.card,
.must-card,
.scan-item,
.overview-list li {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.panel {
  padding: 8px 0 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

.panel-label {
  /* Hide leftover "Layer 1" labels from the original digest HTML. */
  display: none;
}

.panel h2,
.section-head h2 {
  margin: 0 0 12px;
  font-size: 1.15em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.overview-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: block;
  gap: 0;
}
.overview-list li {
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  font-size: 1em;
  color: var(--ink);
  line-height: var(--line);
}
.overview-list li:first-child { padding-top: 0; }
.overview-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.section { margin-bottom: 8px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  padding: 20px 0 12px;
  border-bottom: 1px solid var(--hairline);
}
.section-head .hint {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-faint);
  font-weight: 400;
}

.must-stack,
.scan-list {
  display: block;
  gap: 0;
}

.must-card,
.scan-item {
  position: relative;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  overflow: visible;
}
.must-card:last-child,
.scan-item:last-child { border-bottom: 0; }

.card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rank-badge,
.must-rank,
.scan-rank {
  flex-shrink: 0;
  width: auto;
  min-width: 1.5em;
  height: auto;
  margin-top: 0.35em;
  border-radius: 0;
  display: inline;
  place-items: unset;
  background: none;
  color: var(--ink-faint);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  opacity: 1;
}

.story-title {
  margin: 0 0 6px;
  font-size: 1.12em;
  line-height: 1.45;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.story-title-link {
  color: inherit;
  text-decoration: none;
}
.story-title-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.story-blurb {
  margin: 0 0 8px;
  font-size: 0.98em;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: var(--line);
}

.card-meta-row,
.card-links-row {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-faint);
  line-height: 1.5;
  font-weight: 400;
}
.card-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}
.card-links-row a {
  text-decoration: none;
  color: var(--ink-muted);
  white-space: nowrap;
}
.card-links-row a:hover {
  text-decoration: none;
  color: var(--accent);
}

.pull-quote {
  margin: 16px 0 0;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--hairline-strong);
  background: none;
  border-radius: 0;
  font-size: 1em;
  line-height: var(--line);
  color: var(--ink-muted);
  font-weight: 400;
}

.card-body {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.field h4 {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--ink-faint);
  font-weight: 500;
}

.bullets {
  margin: 0;
  padding: 0 0 0 1.15em;
  display: grid;
  gap: 8px;
}
.bullets li {
  font-size: 1em;
  color: var(--ink);
  line-height: var(--line);
  padding-left: 0.1em;
}
.bullets .tag {
  display: inline;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  background: none;
  border-radius: 0;
  padding: 0;
  margin-right: 8px;
  vertical-align: 0;
}

.scan-toolbar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  letter-spacing: 0;
}
.scan-toolbar .btn { box-shadow: none; padding: 0; }

.scan-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0;
  user-select: none;
}
.scan-item > summary::-webkit-details-marker { display: none; }
.scan-item > summary::after {
  content: "▾";
  margin-left: auto;
  flex-shrink: 0;
  color: var(--ink-faint);
  font-size: 12px;
  font-family: var(--font-ui);
  letter-spacing: 0;
  transition: transform 0.15s ease;
  padding-top: 6px;
}
.scan-item[open] > summary::after { transform: rotate(180deg); }
.scan-item > summary:hover { background: none; }

.scan-title-row {
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  color: var(--ink);
}

.scan-blurb,
.scan-one-liner {
  margin: 0 0 8px;
  font-size: 0.95em;
  color: var(--ink-muted);
  line-height: var(--line);
  font-weight: 400;
}

.scan-expand {
  padding: 14px 0 0;
  border-top: 0;
  margin-top: 12px;
  display: grid;
  gap: 14px;
  margin-left: calc(1.5em + 12px);
}

/* Read / unread: small dot + dimmed title, no "已读" stamp, no faded card. */
.must-card.is-read,
.scan-item.is-read { opacity: 1; }

.must-card .story-title::before,
.scan-item .scan-title-row::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.5em;
  vertical-align: middle;
  transform: translateY(-1px);
}
.must-card.is-read .story-title::before,
.scan-item.is-read .scan-title-row::before {
  background: var(--hairline-strong);
}
.must-card.is-read .story-title,
.must-card.is-read .story-title-link,
.scan-item.is-read .scan-title-row {
  color: var(--ink-muted);
  font-weight: 400;
  text-decoration: none;
}
.must-card.is-read::after,
.scan-item.is-read .scan-summary-body::after,
.must-card.is-read .story-title::after {
  content: none;
  display: none;
}

body.hn-filter-unread .must-card.is-read,
body.hn-filter-unread .scan-item.is-read {
  display: none;
}

.must-card:target,
.scan-item:target {
  outline: none;
  border-radius: 0;
  box-shadow: inset 2px 0 0 var(--accent);
}

.site-footer {
  margin-top: 36px;
  padding: 18px 0 0;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-faint);
  text-align: left;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .header-inner { padding: 20px 16px 4px; }
  .main { padding: 8px 16px 56px; }
  .hn-day-bar { padding: 8px 16px 0; }
  .scan-expand { margin-left: 0; }
  .brand-text h1 { font-size: 1.28em; }
}

@media print {
  .hn-site-nav, .hn-day-bar, .theme-toggle, .scan-toolbar, .hn-type-ctrl { display: none !important; }
  body { background: #fff; color: #000; }
}
