/* === TodayDaysOld.com - Clean Editorial === */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ============================================
   COMMON TRANSITIONS
   ============================================ */

body,
.site-header,
nav,
main,
footer,
.featured-post,
.featured-inner,
.featured-image,
.featured-content,
.archive-card,
.about-page,
.post-page,
a {
  transition: all 0.25s ease;
}

/* ============================================
   CLEAN EDITORIAL THEME
   ============================================ */

/* Header/nav content aligns with the wide (1200px) main on home/archive; below that it resolves to the old 1rem */
:root {
  --page-gutter: max(1rem, calc((100% - 1200px) / 2 + 1.25rem));
}

body {
  font-family: 'Public Sans', Arial, sans-serif;
  background: #faf7f2;
  color: #2b2620;
  line-height: 1.6;
}

/* Header */
.site-header {
  background: #faf7f2;
  color: #2b2620;
  text-align: center;
  padding: 2.5rem var(--page-gutter) 1.5rem;
  border-bottom: 1px solid #e2ddd3;
}

.site-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.site-logo {
  height: 84px;
  width: auto;
  display: block;
}

.site-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #2b2620;
  background: none;
  -webkit-text-fill-color: unset;
}

.site-title span { color: #a63d2f; }

.site-tagline {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.9rem;
  color: #6b6258;
  margin-top: 0.5rem;
}

/* Nav */
nav {
  background: #faf7f2;
  padding: 1rem var(--page-gutter);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2ddd3;
}

nav a {
  color: #2b2620;
  text-decoration: none;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 1rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

nav a:hover { color: #a63d2f; border-bottom-color: #a63d2f; }

/* Search form (ticket #10874) - plain nav input, submits to /search/ */
#nav-search {
  display: inline-block;
  vertical-align: middle;
  margin-left: auto;
}

#nav-search input[type="search"] {
  width: 160px;
  max-width: 45vw;
  padding: 0.35rem 0.6rem;
  background: #faf7f2;
  border: 1px solid #e2ddd3;
  border-radius: 4px;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.85rem;
  color: #2b2620;
}

.pagefind-ui {
  --pagefind-ui-scale: 0.8;
  --pagefind-ui-primary: #a63d2f;
  --pagefind-ui-text: #2b2620;
  --pagefind-ui-background: #faf7f2;
  --pagefind-ui-border: #e2ddd3;
  --pagefind-ui-tag: #e2ddd3;
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 4px;
  --pagefind-ui-image-border-radius: 4px;
  --pagefind-ui-image-box-ratio: 1;
  --pagefind-ui-font: 'Public Sans', sans-serif;
}

.pagefind-ui__search-input {
  font-family: 'Public Sans', sans-serif;
}

/* Main */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

main:has(> .featured-row),
main:has(> .archive-grid) {
  max-width: 1200px;
}

/* Featured row -- up to 3 most-recently-live posts (#10889) */
.featured-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.featured-row .featured-post {
  margin-bottom: 0;
  container-type: inline-size;
  container-name: featuredpost;
}

/* Below this width, 1fr/1fr can't give the image column a usable share
   (long headline/category text has real min-content width; the image,
   being width:100%, has ~0) -- stack instead of split (#10889) */
@container featuredpost (max-width: 420px) {
  .featured-row .featured-inner {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .featured-row .featured-post { padding: 1.75rem; }
  .featured-row .featured-content h2 { font-size: 1.3rem; }
}

/* Featured post */
.featured-post {
  background: #fffdf9;
  border: 1px solid #e2ddd3;
  border-radius: 6px;
  position: relative;
  margin-bottom: 3rem;
  padding: 2.5rem;
}

.featured-badge {
  display: block;
  color: #a63d2f;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.featured-image {
  background: #f2e9e1;
  border: 1px solid #e2ddd3;
  border-radius: 4px;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

.featured-image-link {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
}

.featured-image-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.featured-image-tag {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(43, 38, 32, 0.65);
  color: #fffdf9;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.featured-content {
  padding: 0;
}

.post-number {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.8rem;
  color: #6b6258;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #e2ddd3;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.featured-content h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #2b2620;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.featured-title-link {
  color: inherit;
  text-decoration: none;
}

.featured-title-link:hover,
.featured-title-link:focus {
  text-decoration: underline;
}

.price-tag {
  display: block;
  color: #8a8074;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.excerpt {
  font-size: 0.95rem;
  color: #5c5347;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.read-more {
  display: inline-block;
  background: transparent;
  color: #a63d2f;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  text-decoration: none;
  border: 1px solid #a63d2f;
  border-radius: 4px;
}

.read-more:hover {
  background: #a63d2f;
  color: #ffffff;
}

/* Archive */
.section-header {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #2b2620;
  border-bottom: 1px solid #e2ddd3;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  text-align: left;
}

.section-header::after { display: none; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem 2rem;
}

.archive-card {
  background: transparent;
  border-top: 1px solid #e2ddd3;
  padding: 1.5rem 0;
  position: relative;
}

.archive-card:hover {
  background: transparent;
}

.card-date {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.75rem;
  color: #8a8074;
  letter-spacing: 0.02em;
}

.archive-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0.5rem 0;
}

.archive-card h3 a {
  color: #2b2620;
  text-decoration: none;
}

.archive-card h3 a:hover { color: #a63d2f; text-decoration: underline; }

.card-thumb-link {
  display: block;
  text-decoration: none;
}

.card-thumb {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #f2e9e1;
  border: 1px solid #e2ddd3;
  border-radius: 4px;
  margin: 0.75rem 0;
}

.card-excerpt {
  font-size: 0.88rem;
  color: #6b6258;
  line-height: 1.6;
}

.new-badge {
  display: block;
  position: absolute;
  top: 1.5rem;
  right: 0;
  color: #a63d2f;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

/* About page */
.about-page {
  background: #fffdf9;
  border: 1px solid #e2ddd3;
  border-radius: 6px;
  padding: 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.about-page::before { display: none; }

.about-page h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #2b2620;
  border-bottom: 1px solid #e2ddd3;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
  background: none;
  -webkit-text-fill-color: unset;
}

.about-page h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: #2b2620;
}

.about-page p {
  margin-bottom: 1.1rem;
  line-height: 1.7;
  color: #2b2620;
}

.contact-box {
  background: #f2ece3;
  border: none;
  border-radius: 6px;
  padding: 1.75rem;
  margin-top: 2rem;
  text-align: center;
}

.contact-box a {
  color: #a63d2f;
  font-weight: 600;
  font-family: 'Public Sans', sans-serif;
}

/* Post page */
.post-page {
  background: #fffdf9;
  border: 1px solid #e2ddd3;
  border-radius: 6px;
  padding: 3rem;
  max-width: 750px;
  margin: 0 auto;
}

.post-page::before { display: none; }

.post-meta {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.8rem;
  color: #6b6258;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #e2ddd3;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.post-page h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.3rem;
  font-weight: 600;
  color: #2b2620;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.post-body p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #2b2620;
}

.post-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2b2620;
  line-height: 1.35;
  margin: 2.5rem 0 1rem;
}

.post-body ul {
  margin: 1rem 0 1.25rem 1.5rem;
  line-height: 1.8;
  color: #2b2620;
}

.post-body a { color: #a63d2f; text-decoration: underline; }

.post-body strong { color: #2b2620; }

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.85rem;
}

.post-body th, .post-body td {
  border: 1px solid #e2ddd3;
  padding: 0.4rem 0.5rem;
  text-align: center;
  color: #2b2620;
}

.post-body th {
  background: #f5f0e8;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
}

.post-body td:first-child, .post-body th:first-child {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 500px;
}

figcaption {
  display: block;
  font-family: 'Public Sans', sans-serif;
  font-style: italic;
  font-size: 0.85rem;
  color: #8a8074;
  margin-top: 0.5rem;
  text-align: center;
}

.post-figure {
  margin: 2rem auto;
  text-align: center;
}

.post-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0.5rem 0 1rem;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.85rem;
  color: #2b2620;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.chart-block {
  margin: 0.5rem 0 1.5rem;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.3rem 0;
}

.chart-label {
  flex: 0 0 150px;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.78rem;
  color: #2b2620;
  text-align: right;
}

.chart-track {
  flex: 1 1 auto;
  background: #f5f0e8;
  border-radius: 4px;
  overflow: hidden;
  height: 20px;
  position: relative;
}

.chart-bar {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  min-width: 22px;
  box-sizing: border-box;
}

.chart-bar.bar-r { background: #c0392b; }
.chart-bar.bar-d { background: #2a5ca8; }
.legend-swatch.bar-r { background: #c0392b; }
.legend-swatch.bar-d { background: #2a5ca8; }

.chart-value {
  color: #fff;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.itch-mark {
  color: #8a8074;
  font-weight: 700;
  cursor: help;
}

@media (max-width: 600px) {
  .chart-label { flex-basis: 110px; font-size: 0.7rem; }
}

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  color: #a63d2f;
  text-decoration: none;
}

.back-link:hover { color: #2b2620; }

/* More Stories footer (post pages) */
.more-discoveries {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2ddd3;
}

.more-discoveries h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2b2620;
  margin-bottom: 1rem;
}

.more-discoveries ul {
  list-style: none;
  margin: 0 0 1.25rem;
}

.more-discoveries li {
  padding: 0.5rem 0;
  border-top: 1px solid #efe9e0;
  font-size: 0.95rem;
}

.more-discoveries li:first-child { border-top: none; }

.more-discoveries .more-date {
  color: #8a8074;
  font-size: 0.8rem;
  font-family: 'Public Sans', sans-serif;
  margin-right: 0.5rem;
}

.more-discoveries a {
  color: #2b2620;
  text-decoration: none;
}

.more-discoveries a:hover { color: #a63d2f; text-decoration: underline; }

.more-discoveries .see-archive {
  display: inline-block;
  font-weight: 600;
  color: #a63d2f;
}

.more-discoveries .see-archive:hover { text-decoration: underline; }

/* Full archive index page */
.full-index-page {
  background: #fffdf9;
  border: 1px solid #e2ddd3;
  border-radius: 6px;
  padding: 3rem;
  max-width: 750px;
  margin: 0 auto;
}

.full-index-page h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #2b2620;
  margin-bottom: 0.5rem;
}

.full-index-intro {
  font-size: 0.9rem;
  color: #6b6258;
  border-bottom: 1px solid #e2ddd3;
  padding-bottom: 1.5rem;
  margin-bottom: 0.5rem;
}

.full-index-list {
  list-style: none;
}

.full-index-list li {
  padding: 0.65rem 0;
  border-top: 1px solid #efe9e0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.full-index-list li:first-child { border-top: none; }

.full-index-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: #f2e9e1;
  border: 1px solid #e2ddd3;
  border-radius: 4px;
  flex-shrink: 0;
}

.full-index-text {
  min-width: 0;
}

.full-index-date {
  display: inline-block;
  min-width: 100px;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.8rem;
  color: #8a8074;
}

.full-index-list a {
  color: #2b2620;
  text-decoration: none;
  font-size: 0.95rem;
}

/* Search results page (ticket #10874) - full main width, not the small nav footprint */
.search-page {
  background: #fffdf9;
  border: 1px solid #e2ddd3;
  border-radius: 6px;
  padding: 3rem;
}

.search-page h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #2b2620;
  border-bottom: 1px solid #e2ddd3;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
}

.full-index-list a:hover { color: #a63d2f; text-decoration: underline; }

/* Archive "see all" link on homepage */
.archive-see-all {
  margin: -1.25rem 0 1.5rem;
}

.archive-see-all a {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #a63d2f;
  text-decoration: none;
}

.archive-see-all a:hover { text-decoration: underline; }

/* Footer */
footer,
.site-footer {
  background: #faf7f2;
  color: #6b6258;
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.85rem;
  border-top: 1px solid #e2ddd3;
}

footer a,
.site-footer a { color: #a63d2f; text-decoration: none; }

.footer-how { margin-top: 0.4rem; font-size: 0.8rem; color: #8a8178; }

.newsletter-signup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem var(--page-gutter);
  background: #fbeae6;
  border-top: 1px solid #a63d2f;
  border-bottom: 1px solid #a63d2f;
}

.newsletter-label {
  margin: 0;
  color: #a63d2f;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.newsletter-form input[type="email"] {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-family: 'Public Sans', sans-serif;
  color: #2b2620;
  background: #fffdf9;
  border: 1px solid #a63d2f;
  border-radius: 4px;
  min-width: 220px;
}

.newsletter-form button {
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Public Sans', sans-serif;
  color: #ffffff;
  background: #a63d2f;
  border: 1px solid #a63d2f;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.newsletter-form button:hover {
  background: #8a3226;
  color: #ffffff;
  border-color: #8a3226;
}

/* ============================================
   SHARE FEATURE
   ============================================ */

.share-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.share-featured-wrap {
  display: block;
  margin-top: 1rem;
}

.share-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  transition: all 0.2s ease;
  background: transparent;
  color: #6b6258;
  border: 1px solid #e2ddd3;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  border-radius: 4px;
}

.share-button:hover {
  background: #a63d2f;
  color: #ffffff;
  border-color: #a63d2f;
}

.share-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  min-width: 160px;
  max-width: 200px;
  padding: 0.35rem;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: #fffdf9;
  border: 1px solid #e2ddd3;
  border-radius: 4px;
}

.share-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.share-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.65rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  color: #2b2620;
  font-family: 'Public Sans', sans-serif;
  border-radius: 4px;
}

.share-option:hover {
  background: #f2ece3;
  color: #a63d2f;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 700px) {
  .site-title { font-size: 1.8rem; }
  .site-logo { height: 56px; }
  .site-title-row { gap: 0.6rem; }
  .newsletter-signup { flex-direction: column; padding: 0.85rem 1rem; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input[type="email"] { width: 100%; min-width: 0; }
  .newsletter-form button { width: 100%; }
  .featured-row { grid-template-columns: 1fr; }
  .featured-post { padding: 1.75rem; }
  .featured-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .featured-image { min-height: 200px; }
  .featured-image-img { min-height: 200px; }
  .card-thumb { height: 150px; }
  .about-page,
  .post-page,
  .full-index-page { padding: 1.75rem; }

  .full-index-date { display: block; margin-bottom: 0.15rem; }
  .full-index-thumb { width: 44px; height: 44px; }

  nav a { margin: 0 0.65rem !important; font-size: 0.85rem !important; }

  #nav-search input[type="search"] {
    width: 110px;
    max-width: 55vw;
  }
}

/* Answer-first summary + byline under the post <h1> (tools/add_post_trust_signals.py, #11901).
   The negative top margin takes up the h1's own bottom margin, so the block sits tight under the headline. */
.post-summary {
  font-size: 1.15rem;
  line-height: 1.55;
  color: #5a5248;
  margin: -1rem 0 0.6rem;
}

.post-byline {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.8rem;
  color: #6b6258;
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
}

.post-byline a { color: inherit; text-decoration: underline; }

.affair-entry {
  display: flow-root;
  border-top: 1px solid #e2dbd0;
  margin-top: 1.75rem;
  padding-top: 0.5rem;
}

.affair-entry h3 {
  margin: 0.8rem 0 0.6rem;
}

.affair-figure {
  float: right;
  width: 320px;
  max-width: 45%;
  margin: 0.4rem 0 1rem 1.25rem;
}

.affair-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.affair-figure figcaption {
  font-size: 0.75rem;
  text-align: left;
}

.affair-hero {
  margin: 0 auto 1.5rem;
  text-align: center;
}

.affair-hero img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  border-radius: 12px;
}

nav.affair-jump {
  display: block;
  background: #faf7f2;
  border: 1px solid #e2ddd3;
  border-radius: 8px;
  padding: 0.25rem 1.25rem 0.75rem;
  margin: 1.5rem 0 2rem;
}

nav.affair-jump a {
  margin: 0 !important;
  padding: 0;
  font-size: inherit !important;
  font-weight: inherit;
  border-bottom: 0;
}

.affair-jump details {
  border-top: 1px solid #e2ddd3;
  padding: 0.6rem 0 0.2rem;
}

.affair-jump h2 + details {
  border-top: 0;
}

.affair-jump summary {
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: #2b2620;
}

.affair-jump summary a { text-decoration: none; }

.affair-jump .jump-count {
  font-weight: 400;
  font-size: 0.85rem;
  color: #8a8074;
}

.post-body .affair-jump ul {
  list-style: none;
  margin: 0.5rem 0 0.5rem;
  padding: 0;
  columns: 3;
  column-gap: 1.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.post-body .affair-jump li {
  break-inside: avoid;
  margin: 0 0 0.3rem;
  padding: 0 0 0 1rem;
  text-indent: -1rem;
}

.post-body .affair-jump li a { text-decoration: none; font-weight: 500; font-size: 0.95rem !important; }
.post-body .affair-jump li a:hover { text-decoration: underline; }

.affair-jump h2 { margin: 0.9rem 0 0.4rem; font-size: 1.3rem; }

.affair-jump .jump-year {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.78rem;
  color: #8a8074;
  margin-left: 0.3rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .post-body .affair-jump ul { columns: 2; }
}

@media (max-width: 520px) {
  nav.affair-jump { padding: 0.25rem 1rem 0.75rem; }
  .post-body .affair-jump ul { columns: 1; }
}

.post-body p.sources {
  font-size: 0.9rem;
  color: #6b6258;
}

@media (max-width: 600px) {
  .affair-figure {
    float: none;
    max-width: 100%;
    width: 320px;
    margin: 0.5rem auto 1rem;
  }
}

.post-body blockquote.ai-answer {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: #f5f0e8;
  border-left: 4px solid #a63d2f;
  border-radius: 0 8px 8px 0;
}

.post-body blockquote.ai-answer .ai-answer-label {
  margin: 0 0 0.5rem;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a63d2f;
}

.post-body table.scorecard,
.table-scroll table.scorecard {
  min-width: 0;
}

.post-body table.scorecard th,
.post-body table.scorecard td,
.post-body table.scorecard td:first-child,
.post-body table.scorecard th:first-child {
  text-align: left;
  white-space: normal;
  vertical-align: top;
}

.post-body aside.sidebar {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: #f5f0e8;
  border: 2px dashed #a63d2f;
  border-radius: 12px;
}

.post-body aside.sidebar h3 {
  margin: 0 0 0.5rem;
}

.post-body aside.sidebar .sidebar-label {
  margin: 0 0 0.25rem;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a63d2f;
}

.post-body aside.sidebar ul {
  margin-left: 1.25rem;
}

.post-body aside.sidebar .sidebar-footnote {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-style: italic;
  color: #6b6258;
}

@media (max-width: 520px) {
  .post-body table.scorecard { font-size: 0.75rem; }
  .post-body table.scorecard th,
  .post-body table.scorecard td { padding: 0.3rem 0.3rem; }
}

.series-box {
  border: 1px solid #e2ddd3;
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
  overflow-wrap: anywhere;
}
.post-body .series-box p.series-box-heading {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.post-body .series-box ol {
  margin: 0 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.series-box .series-soon { color: #77706a; }
