/* Article pages and the /articole index. Tokens come from styles.css; no inline style anywhere (CSP). */
.article{padding-bottom:var(--gap-xl)}
.article h1{font-family:var(--font-display);font-size:var(--fs-h2);line-height:1.15;margin:var(--gap-sm) 0 var(--gap-md)}
.article h2{font-family:var(--font-display);font-size:26px;line-height:1.25;margin:var(--gap-lg) 0 var(--gap-sm)}
.article p,.article li{font-size:var(--fs-body);line-height:1.7;color:var(--fg)}
.article p{margin:0 0 var(--gap-md)}
.article ul,.article ol{margin:0 0 var(--gap-md);padding-left:1.4em}
.article li{margin-bottom:var(--gap-xs)}
.article a{color:var(--accent)}
.article-hero{display:block;width:100%;height:auto;border-radius:var(--radius-lg);margin:0 0 var(--gap-lg);background:var(--leaf)}
.article table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-collapse:collapse;margin:0 0 var(--gap-md);font-size:1rem}  /* a wide table scrolls in its own box, not the page */
.article th,.article td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:top}
.article th{background:var(--leaf-soft)}
.article-sources{margin-top:var(--gap-xl);padding-top:var(--gap-md);border-top:1px solid var(--border)}
.article-sources li{font-size:1rem;color:var(--muted)}
.article-list{list-style:none;margin:var(--gap-lg) 0 0;padding:0;display:grid;gap:var(--gap-md);grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.article-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--gap-md)}
.article-thumb-link{display:block;margin:0 0 var(--gap-sm)}
.article-thumb{display:block;width:100%;height:auto;border-radius:var(--radius);background:var(--leaf)}
.article-card h2{font-family:var(--font-display);font-size:20px;line-height:1.3;margin:0 0 var(--gap-xs)}
.article-card a{color:var(--fg);text-decoration:none}
.article-card a:hover{color:var(--accent);text-decoration:underline}
.article-card p{margin:0;font-size:1rem;line-height:1.55;color:var(--muted)}

/* Blog meta: byline/date/category line, breadcrumbs, chips, pager, related (template app/blog.py supplies the data) */
.blog-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin:0 0 var(--gap-sm);font-size:1rem;color:var(--muted)}
.blog-meta a{color:var(--accent);text-decoration:none}
.blog-meta a:hover{text-decoration:underline}
.article .blog-meta{margin:0 0 var(--gap-md)}
.blog-author{color:var(--fg);font-weight:600}
.blog-crumbs{font-size:1rem;color:var(--muted);margin:0 0 var(--gap-sm)}
.blog-crumbs a{color:var(--accent);text-decoration:none}
.blog-crumbs a:hover{text-decoration:underline}
.blog-chips ul,ul.blog-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:var(--gap-md) 0;padding:0}
.blog-chips li,ul.blog-chips li{margin:0}
.blog-chips a{display:inline-block;padding:6px 12px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--fg);font-size:1rem;text-decoration:none}
.blog-chips a:hover{border-color:var(--accent);color:var(--accent)}
.blog-chips span{color:var(--muted)}
.article a.blog-pager__prev,.article a.blog-pager__next,.blog-pager a{color:var(--fg);text-decoration:none}
.blog-pager{display:flex;justify-content:space-between;gap:var(--gap-md);margin:var(--gap-xl) 0 0}
.blog-pager a{flex:1 1 0;max-width:48%;padding:var(--gap-sm);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);line-height:1.4}
.blog-pager a:hover{border-color:var(--accent)}
.blog-pager__next{text-align:right}
.blog-pager span{display:block;font-size:1rem;color:var(--muted)}
.blog-related{margin-top:var(--gap-xl)}
.blog-related h2{font-family:var(--font-display);font-size:26px;margin:0 0 var(--gap-sm)}
.blog-feed{margin-top:var(--gap-lg);font-size:1rem}
.blog-feed a{color:var(--accent)}
@media (max-width:600px){.blog-pager{flex-direction:column}.blog-pager a{max-width:none}}

/* Phones and tablets (owner 2026-11-29). Reading text is 1rem above; here the measure and the 44 px targets,
   8 px apart. --tap, --measure come from the template mobile.css, which loads after this file. */
.article p,.article li{max-inline-size:var(--measure,34em);overflow-wrap:anywhere}  /* a DOI or URL in a source line must wrap, not widen the page */
.blog-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px}
@media (pointer:coarse),(max-width:1100px){
  .logo,.topnav nav a,.foot-nav a,.blog-crumbs a,.blog-meta a,.blog-feed a{
    display:inline-flex;align-items:center;min-height:var(--tap,44px)}
  .topnav nav a{padding-inline:12px;font-size:1rem}
  .blog-chips a{display:inline-flex;align-items:center;min-height:var(--tap,44px)}
  .blog-chips ul,ul.blog-chips{gap:var(--tap-gap,8px)}
  .foot-nav{gap:var(--tap-gap,8px) 12px;font-size:1rem}
  .foot-nav a{min-width:var(--tap,44px);justify-content:center}
  .foot-note,.foot-legal,.article-sources li{font-size:1rem}
  .blog-pager a{min-height:var(--tap,44px)}
}
@media (max-width:720px){
  /* the bar is one row: logo left, the only link right (a second row of 13 px links cost 30 px of every screen) */
  .topnav nav{order:0;flex:0 0 auto;margin-left:auto;overflow:visible}
  .topnav nav a{white-space:nowrap}
  .topnav-inner{flex-wrap:nowrap}
}
/* A short landscape phone: a sticky bar would take a fifth of the height, so it scrolls away */
@media (max-height:500px) and (orientation:landscape){.topnav{position:static}}

/* Header "ab" (template site/nav-ab.css): a site restyles it through the --nab-* tokens only. doar.bio is one light paper scheme, so the bar takes
   the paper tokens; the spacer keeps the page where the in-flow topnav left it (the bar is fixed). */
:root:not(.a):not(.b):not(.c) .nab {
  --nab-bg: var(--bg);
  --nab-card: var(--surface);
  --nab-txt: var(--fg);
  --nab-mut: var(--muted);
  --nab-acc: var(--accent);
  --nab-on-acc: #fff;
  --nab-ink: var(--accent);
  --nab-sans: var(--font-body);
  --nab-mono: var(--font-mono);
}
.nab .nab-wm.logo { font-size: 23px; }
.nab-gap { height: 64px; }
@media (max-height: 500px) and (orientation: landscape) { .nab-gap { height: 52px; } }
