/* The blog (UI-562): the documentation's page with a feed in it. Colours from the site's tokens,
   both themes by the same variables. */
.blog-feed { display: grid; gap: 18px; margin-top: 22px; }
.blog-post { padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.blog-post h2 { margin: 6px 0 10px; font-size: 21px; line-height: 1.3; }
.blog-post h2 a { color: var(--text); text-decoration: none; }
.blog-post h2 a:hover { color: var(--copper); }
.blog-post p { margin: 0 0 12px; color: var(--text); line-height: 1.6; }
/* A picture in a post (UI-643): as wide as the text column and never wider, its own width and height
   in the markup so the page keeps its place while it loads, a line around it so a light screenshot
   has an edge on the dark site. A dark twin, when the post brings one, is shown in the dark theme
   instead, by the same two rules the site's colours follow. */
.blog-figure { margin: 8px 0 18px; }
.blog-shot { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.blog-shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .blog-shot-light { display: none; }
  :root:not([data-theme="light"]) .blog-shot-dark { display: block; }
}
:root[data-theme="dark"] .blog-shot-light { display: none; }
:root[data-theme="dark"] .blog-shot-dark { display: block; }
.blog-meta { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--text-faint); font: 400 12.5px var(--font-mono); }
.blog-label { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); font: 700 11px var(--font-ui); }
/* The three rubrics of ADR-084 (UI-590): practice in green, position in copper, context in the
   quiet line colour, so the rubric is read before the title and none of them shouts. */
.blog-label-practice { color: var(--green); border-color: var(--green); }
.blog-label-position { color: var(--copper); border-color: var(--copper); }
.blog-label-context { color: var(--text-soft); border-color: var(--text-faint); }
/* What's new (UI-624): filled, so an announcement is told from a post at a glance in the feed. */
.blog-label-announcement { color: var(--card); background: var(--copper-dark); border-color: var(--copper-dark); }
/* Said on a page the preview shows and the published site never does. */
.blog-draft { margin: 12px 0 0; padding: 8px 12px; border: 1px dashed var(--copper); border-radius: 8px; color: var(--copper); font: 700 13px var(--font-ui); }
/* Opened in place and left open: a details element keeps its state while the page scrolls, and it
   is opened with the keyboard by the browser itself. */
.blog-more summary { width: max-content; color: var(--copper); font-weight: 700; cursor: pointer; }
.blog-more summary:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.blog-more[open] summary { margin-bottom: 12px; }
.blog-more h3 { margin: 20px 0 8px; font-size: 17px; line-height: 1.3; }
.blog-more h4, .blog-more h5, .blog-more h6 { margin: 16px 0 6px; font-size: 15.5px; }
.blog-rss { margin-top: 12px; color: var(--text-faint); font: 700 12px var(--font-mono); }
.blog-back { margin-top: 26px; }
.blog-back a { color: var(--copper); }
/* Publication-generated search uses the same typography and theme as the article. */
[data-blog-search] { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 20px 0; }
[data-blog-search] label { display: grid; flex: 1 1 180px; min-width: 0; gap: 6px; }
[data-blog-search] input, [data-blog-search] select, [data-blog-search] button { box-sizing: border-box; min-height: 42px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--card); font: inherit; }
[data-blog-search] input, [data-blog-search] select { width: 100%; min-width: 0; }
[data-blog-search] button { cursor: pointer; }
[data-blog-search] button:hover { border-color: var(--copper); }
[data-blog-search] :focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
[data-blog-results] { display: grid; gap: 18px; margin-top: 22px; }
