/* potato facts: rides on blog.css; Spud's voice, lowercase */
.fact .post-head h1 { text-transform: none; }
.fact .byline { display: flex; align-items: center; gap: .4em; flex-wrap: wrap; }
.fact .by-spud { width: 26px; height: auto; margin-right: .1em; }
.fact .big-num { display: flex; align-items: baseline; gap: .5em; margin: .1em 0 .3em; }
.fact .big-num b { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 3.4rem; line-height: 1; color: #B5651D; }
.fact .big-num span { font-family: Fredoka, sans-serif; font-size: 1.1rem; opacity: .7; }
.fact .fact-video { margin: 1.6em auto; text-align: center; }
.fact .fact-video video { display: block; width: min(300px, 78vw); height: auto; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 22px; background: #F7EFDB; box-shadow: 0 10px 30px rgba(80, 50, 20, .18); }
.fact .fact-art img { border-radius: 20px; background: #FFF2DF; box-shadow: 0 0 0 1px rgba(120,90,50,.12), 0 6px 18px rgba(60,40,20,.08); width: auto; max-width: min(520px, 100%); height: auto; max-height: min(560px, 72vh); object-fit: contain; display: block; margin: 0 auto; }
.fact .sources { margin-top: 2rem; font-size: .9rem; }
.fact .sources h2 { font-size: 1.15rem; }
.fact .sources ol { padding-left: 1.2em; }
.fact .sources li { margin: .4em 0; }
.fact .checked { opacity: .7; font-style: italic; }
:root[data-theme="dark"] .fact .big-num b { color: #E8B062; }
.fact .sources { padding-top: 26px; border-top: 1px solid var(--line); }
.fact .sources a { color: var(--sprout); }
.fact .post-thumb { object-fit: contain; background: #F7EFDB; }
.fact .watch-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .92rem; }
.fact .watch-on { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card, rgba(255,255,255,.7)); color: var(--ink); text-decoration: none; font-family: Fredoka, sans-serif; font-weight: 500; }
.fact .watch-on svg { width: 16px; height: 16px; }
.fact .watch-on:hover { border-color: var(--sprout); color: var(--sprout); }
.fact .watch-label { flex-basis: 100%; text-align: center; opacity: .75; }
.fact > .index-head + .posts { margin-top: 26px; }
/* the Gemini scene (tools/facts-art.py): a transparent cut-out, no card behind it, like the blog's pictures */
.fact .fact-illus img { width: auto; max-width: min(560px, 100%); height: auto; max-height: 420px; border-radius: 20px; background: #FFF2DF; box-shadow: 0 0 0 1px rgba(120,90,50,.12), 0 6px 18px rgba(60,40,20,.08); display: block; margin: 0 auto; }


/* ---------- the index (2026-11-15): the newest three big, then every fact as a grid with topic chips and a search.
   The chips and search only hide tiles (inline script in the index); every article stays a link in the page. ---------- */
.fact-index.read { max-width: 1100px; }
.fact-index .index-head { border-bottom: 0; padding-bottom: 6px; }
.fact-news .news { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 26px); }
.fact-new a, .fact-tile a { display: block; text-decoration: none; color: inherit; border-radius: 16px; }
.fact-new a:focus-visible, .fact-tile a:focus-visible { outline: 2px solid var(--sprout); outline-offset: 4px; }
.fact-index .tile-thumb { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 14px;
  border: 1px solid var(--line); background: #F7EFDB; box-shadow: 0 10px 24px -16px rgba(90, 52, 12, .35); transition: transform .18s ease; }
.fact-new a:hover .tile-thumb, .fact-tile a:hover .tile-thumb { transform: translateY(-2px); }
.fact-new .post-meta { margin: 12px 0 4px; }
.fact-new .post-title { font-size: clamp(1.12rem, 1.9vw, 1.32rem); }
.fact-new .post-desc { font-size: .95rem; margin-top: 6px; }
.fact-new a:hover .post-title, .fact-tile a:hover .tile-title { color: var(--brand); }
.fact-all { overflow-anchor: none; margin-top: clamp(40px, 7vh, 64px); padding-top: clamp(26px, 4vh, 36px); border-top: 1px solid var(--line); }
.all-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.all-head h2 { font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.all-count { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--ink-faint); margin-left: .3em; }
.fact-search input { width: min(300px, 70vw); font: 500 .95rem var(--sans); color: var(--ink); padding: 9px 14px 9px 36px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6A4E' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E") no-repeat 13px 50% / 16px; }
.fact-search input:focus { outline: 2px solid var(--sprout); outline-offset: 1px; }
.chips { display: flex; gap: 8px; margin: 16px 0 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font: 500 .9rem var(--fred); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.chip span { font-family: var(--sans); font-weight: 600; font-size: .78rem; color: var(--ink-faint); margin-left: 2px; }
.chip:hover { border-color: var(--soft-edge); }
.chip[aria-pressed="true"] { background: var(--soft); border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] span { color: var(--brand); }
.fact-all .tiles { align-content: start; list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px clamp(14px, 2vw, 20px); }
.fact-tile[hidden] { display: none; }
.tile-title { font-family: var(--fred); font-weight: 600; font-size: .98rem; line-height: 1.25; margin: 10px 0 0; transition: color .15s ease; }
.tile-meta { margin: 4px 0 0; font-size: .78rem; font-weight: 600; color: var(--ink-faint); }
.fact-all .none { margin: 28px 0 8px; text-align: center; color: var(--ink-dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) { .fact-all .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) {
  .fact-news .news { grid-template-columns: 1fr; gap: 26px; }
  .fact-all .tiles { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .tile-title { font-size: .9rem; }
  .fact-search { width: 100%; } .fact-search input { width: 100%; }
}
@media (max-width: 780px) { .chips { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } }
