/* reslts.xyz — class prefix rs. A clean neutral palette with ONE accent colour (teal). Mobile-first: one column,
   48 px touch targets, wider layouts only from 640 px up; fits a 320 px screen. Text colours meet WCAG AA (4.5:1)
   in both schemes. */
:root {
  --bg: #ffffff; --fg: #16191d; --muted: #4b5563; --line: #d4d9df; --panel: #f6f7f9;
  --accent: #0f6e66; --accent-fg: #ffffff; --btn: #0f6e66; --btn-fg: #ffffff;
  --warn-bg: #fff4d6; --warn-line: #a86400; --err-bg: #ffebe9; --err-line: #c4232c; --focus: #0a58ca;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111418; --fg: #e8edf2; --muted: #a9b2bc; --line: #39414b; --panel: #191e24;
    --accent: #5fd4c4; --accent-fg: #0b1214; --btn: #5fd4c4; --btn-fg: #0b1214;
    --warn-bg: #33270b; --warn-line: #f5b83d; --err-bg: #3d1214; --err-line: #ff7b72; --focus: #79b8ff; }
}
* { box-sizing: border-box; }
body.rs { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
code { font-size: .9em; overflow-wrap: anywhere; }
.rs-skip { position: absolute; left: -9999px; }
.rs-skip:focus { left: 8px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.rs-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rs-wrap { max-width: 860px; margin: 0 auto; padding: 0 14px; }

.rs-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.rs-header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 8px; min-height: 52px; }
.rs-brand { font-weight: 800; font-size: 1.15rem; color: var(--fg); text-decoration: none; letter-spacing: .01em; }
.rs-nav { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.rs-nav a { color: var(--muted); text-decoration: none; padding: 12px 2px; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.rs-nav a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

.rs-main { padding-top: 16px; padding-bottom: 40px; }
.rs-hero h1 { margin: 0 0 6px; font-size: 1.45rem; line-height: 1.25; }
.rs-lede { margin: 0 0 14px; color: var(--muted); }
.rs-toolnav { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.rs-toolnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 8px; text-decoration: none; font-weight: 600; }

.rs-tool { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 28px; }
.rs-tool > h2 { margin: 0; font-size: 1.3rem; }
.rs-kicker { margin: 2px 0 14px; color: var(--accent); font-weight: 700; font-size: .95rem; }
.rs-group { border: 0; margin: 0 0 4px; padding: 0; min-width: 0; }
.rs-group legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.rs-fields { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
.rs-field { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.rs-field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
.rs-field input { width: 100%; font: inherit; font-size: 1.15rem; color: var(--fg); background: var(--bg);
  border: 1px solid var(--muted); border-radius: 8px; padding: 8px 10px; min-height: 50px; }
.rs-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; font: inherit; font-weight: 700;
  font-size: 1.05rem; background: var(--btn); color: var(--btn-fg); border: 0; border-radius: 10px; padding: 12px 20px;
  min-height: 52px; cursor: pointer; }
.rs-linkbutton { font: inherit; background: none; border: 0; padding: 4px 0; color: var(--accent); text-decoration: underline; cursor: pointer; min-height: 44px; }
.rs-error { background: var(--err-bg); border-left: 4px solid var(--err-line); padding: 8px 12px; margin: 12px 0 0; }
.rs-notice { margin: 12px 0 0; }
.rs-notice-warn { background: var(--warn-bg); border-left: 4px solid var(--warn-line); padding: 8px 12px; }
.rs-fault { background: var(--err-bg); border: 2px solid var(--err-line); border-radius: 8px; padding: 12px 16px; }

.rs-results { margin-top: 18px; }
.rs-results:empty { margin-top: 0; }
.rs-results h3 { margin: 16px 0 6px; font-size: 1.1rem; }
.rs-big { font-size: 1.6rem; font-weight: 800; margin: 0 0 8px; line-height: 1.25; overflow-wrap: anywhere; }
.rs-big-label { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); }
.rs-line { margin: 6px 0; }
.rs-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rs-card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.rs-card p { margin: 4px 0; }

.rs-table-wrap { overflow-x: auto; margin: 12px 0; }
.rs-table { border-collapse: collapse; font-size: .92rem; width: 100%; }
.rs-table caption { text-align: left; font-weight: 700; padding: 4px 0 8px; }
.rs-table th, .rs-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.rs-table thead th { background: var(--panel); }
.rs-table td.rs-num { text-align: right; white-space: nowrap; }
.rs-refs .rs-table { min-width: 560px; }

.rs-prose { max-width: 700px; }
.rs-prose h2 { font-size: 1.2rem; margin-top: 1.4em; }
.rs-prose li { margin: 6px 0; }
.rs-small { font-size: .85rem; color: var(--muted); }
.rs-storage { margin-top: 16px; }
.config-error { border: 2px solid var(--err-line); background: var(--err-bg); padding: 12px 16px; border-radius: 6px; margin: 16px 0; }
.config-error-inline { color: var(--err-line); font-weight: 700; }
.rs-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; padding: 14px 0 28px; }
.rs-footer p { margin: 4px 0; }
.rs-footer-links a { display: inline-block; padding: 6px 0; }

@media (min-width: 640px) {
  .rs-wrap { padding: 0 20px; }
  .rs-hero h1 { font-size: 1.8rem; }
  .rs-tool { padding: 20px; }
  .rs-fields { grid-template-columns: repeat(2, 1fr); }
  .rs-button { width: auto; }
}

/* Stock photographs, self-hosted (2026-11-11). */
.rs-shot{margin:0 0 1.25rem}
.rs-shot img{display:block;width:100%;max-width:100%;height:auto}
.rs-shot figcaption{margin:.4rem 0 0;font-size:.95rem}
.rs-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr);gap:16px;align-items:center}
.rs-hero .rs-toolnav{grid-column:1 / -1}
@media (max-width:700px){.rs-hero{grid-template-columns:1fr}}
