/* kipes.eu without WordPress - the few rules the pages relied on WordPress for.
   style.css beside this file is the theme's stylesheet, copied unchanged so the
   two sites look the same; whatever WordPress printed into every page's head
   and the design depended on is written here instead, in the site's own words.
   No colour appears here: the tokens are style.css's. */

/* Text for screen readers only - the "about <title>" after each "Read more" in
   the news list, and the copy buttons' status line on the download page. Taken
   out of the layout without display:none, which would take it out of what a
   screen reader reads as well. */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* Figures in a news item keep the space WordPress gave them below. */
.news-content figure { margin: 0 0 1em; }
.news-content img { max-width: 100%; height: auto; }

/* THE EXAMPLES (app/examples.php) - written for this site, after the theme:
   style.css stays the theme's file, unchanged. */

/* The list: one card per example, as many side by side as fit at 18rem - the
   cover over the title and the summary, the whole card one link. */
.example-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); gap: 1.2rem;
}
.example-card a {
  display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.example-card a:hover { border-color: var(--accent); }
.example-card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Every cover in the same frame, whatever its own proportions. */
.example-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-2); }
.example-card-text { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem 1.1rem 1.1rem; }
.example-card-text strong { font-size: 1.08rem; line-height: 1.3; }
.example-card a:hover strong { color: var(--accent); }
.example-card-text span { color: var(--text-muted); font-size: 0.93rem; }

/* One example: the summary as the page's lede, the downloads and the credit
   before the tutorial. */
.example-summary { color: var(--text-muted); font-size: 1.1rem; margin: 0 0 1.4rem; }
.example-downloads { margin: 0 0 1.2rem; }
.example-download { margin: 0 0 1rem; }
.example-download .release-top { margin: 0 0 0.9rem; }
.example-download .release-top:last-child, .example-download > :last-child { margin-bottom: 0; }
.example-download-title { margin: 0 0 0.7rem; }
.example-download .release-meta { overflow-wrap: anywhere; }
.example-credit {
  margin: 0 0 1.8rem; padding: 0.2rem 0 0.2rem 1rem; border-left: 2px solid var(--border);
  color: var(--text-muted); font-size: 0.9rem;
}
.example-credit > :last-child { margin-bottom: 0; }
/* A picture fills the reading column and is never wider than itself; the
   width and height the page gives it keep its space while it loads. */
.example-figure { margin: 1.4rem 0; }
.example-figure a { display: block; line-height: 0; }
.example-figure img {
  display: block; max-width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2);
}
.example-figure figcaption { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.45rem; }
.example-content h2 { margin-top: 2rem; }
/* A table in an example's text - a results table: a parameter and its values with
   their standard deviations per row. kb_example_tables() puts each one into
   .example-table, which scrolls sideways on its own when the table is wider than
   the column (on a phone), so the page itself never does; the box can be focused
   and scrolled with the keyboard. The numbers are right-aligned in figures of one
   width, so their digits line up down a column; the parameter names stay left. */
.example-table { overflow-x: auto; margin: 1.3rem 0; }
.example-table:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.example-content .example-table table { width: auto; min-width: 100%; margin: 0; font-variant-numeric: tabular-nums; }
.example-content .example-table caption {
  caption-side: top; text-align: left; color: var(--text-muted); font-size: 0.88rem; padding: 0 0 0.45rem;
}
.example-content .example-table th, .example-content .example-table td { white-space: nowrap; text-align: right; }
.example-content .example-table th:first-child { text-align: left; }
.example-content .example-table thead th { color: var(--text-muted); font-weight: 600; }
/* The example's page is twice as wide as a text page (the owner, 2026-10-26: "Make the
   example page twice as wide"): twice the theme's measure, 144ch - about 1240px, what
   .wrap leaves inside --page at a desktop's width. The tutorial's screenshots are wide
   (a table of 1300px, a form of 1200px) and were shrunk to half in the 72ch column.
   Only this page: the list of examples and every other page keep the measure, and on a
   narrower screen the column is the screen's width as before. */
.example-page .prose { max-width: calc(var(--measure) * 2); }
