/* gor.bio standalone explainers under /blog/.
   Loaded after /css/style.css. Only adds rules for the classes these pages
   use; colours, type and the reading measure all come from the site tokens. */

.blog-hero {
 margin: 24px 0 8px;
}
.blog-hero img,
.blog-figure img,
.blog-card img {
 display: block;
 width: 100%;
 height: auto;
 border: 1px solid var(--rule);
}
.blog-hero img {
 max-width: 780px;
}
.blog-figure {
 margin: 28px 0;
}
.blog-figure img {
 max-width: 720px;
}
.blog-hero figcaption,
.blog-figure figcaption {
 font-size: 12px;
 line-height: 1.5;
 color: var(--ink);
 opacity: 0.85;
 margin-top: 6px;
 max-width: 72ch;
}

/* Key takeaways: a ruled block, not a decorative card. */
.takeaways {
 margin: 24px 0 28px;
 padding: 4px 18px 8px;
 border-top: 1px solid var(--rule);
 border-bottom: 1px solid var(--rule);
 background: var(--tint);
}
.takeaways h2 {
 font-family: var(--sans);
 font-size: 16px;
 font-weight: 700;
 margin: 14px 0 8px;
}
.takeaways ul {
 margin-bottom: 10px;
}
.takeaways li {
 margin-bottom: 6px;
}

/* Tables: scroll sideways on small screens instead of breaking the page. */
.table-wrap {
 overflow-x: auto;
}
table caption {
 caption-side: top;
 text-align: left;
 font-size: 13px;
 padding-bottom: 6px;
}
table.calc td:nth-child(n + 2),
table.calc th:nth-child(n + 2) {
 text-align: right;
 font-variant-numeric: tabular-nums;
 white-space: nowrap;
}

/* Source list: long URLs wrap rather than widen the page. */
ul.sources li {
 font-size: 14px;
 overflow-wrap: anywhere;
}

/* FAQ: question as subsection heading, answer as normal text. */
.faq h3 {
 margin-top: 26px;
}

/* Index page: thumbnail beside a title and summary, one row per post. */
ul.blog-list {
 list-style: none;
 padding-left: 0;
}
ul.blog-list > li {
 display: grid;
 grid-template-columns: 180px 1fr;
 gap: 20px;
 margin: 0 0 28px;
 padding-bottom: 26px;
 border-bottom: 1px solid var(--rule);
}
ul.blog-list h2 {
 font-size: 26px;
 margin: 0 0 6px;
}
ul.blog-list img {
 width: 180px;
 height: auto;
 border: 1px solid var(--rule);
 display: block;
}
ul.blog-list p {
 margin-bottom: 8px;
}

@media (max-width: 600px) {
 table.calc th,
 table.calc td {
  padding: 6px 6px;
  font-size: 13px;
 }
 table.calc td:nth-child(n + 2),
 table.calc th:nth-child(n + 2) {
  white-space: normal;
 }
 ul.blog-list > li {
  grid-template-columns: 1fr;
  gap: 12px;
 }
 ul.blog-list img {
  width: 100%;
  max-width: 360px;
 }
 ul.blog-list h2 {
  font-size: 22px;
 }
 .takeaways {
  padding: 2px 14px 6px;
 }
}
