/* Phone first; wider screens only get more margin. Fonts are bundled (Barlow, SIL OFL). */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(fonts/Barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(fonts/Barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url(fonts/BarlowSemiCondensed-700.woff2) format('woff2'); }
:root { --ink: #102436; --muted: #3B5161; --line: #DFE6E9; --bg: #E9EEF0; --blue: #1D5B87; --ok: #1E6B45; --bad: #8E1B25; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 'Barlow', 'Segoe UI', Roboto, -apple-system, sans-serif; font-variant-numeric: tabular-nums; }
main { max-width: 640px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 8px; display: flex; flex-direction: column; gap: 14px; }
h1, h2 { font-family: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif; font-weight: 700; margin: 0; line-height: 1.1; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
.lead { margin: 4px 0 0; color: var(--muted); }
.card, .result { background: #fff; border: 1px solid #CBD5DA; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.result { border-width: 3px; }
.result.ok { border-color: var(--ok); }
.result.bad { border-color: var(--bad); }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.badge { display: inline-block; padding: 6px 18px; border-radius: 6px; color: #fff; font: 700 36px/1.15 'Barlow Semi Condensed', 'Arial Narrow', sans-serif; }
.ok .badge { background: var(--ok); }
.bad .badge { background: var(--bad); }
#verdict-sub { color: var(--muted); font-size: 15px; }
.reason { margin: 0; font-size: 16px; }
.meta { margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.meta div { display: flex; flex-direction: column; }
.meta dt { font-size: 13px; color: var(--muted); }
.meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.figures { width: 100%; border-collapse: collapse; }
.figures th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 6px 0; border-bottom: 1px solid #CBD5DA; }
.figures th:last-child, .figures td:last-child { text-align: right; }
.figures td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.figures td:last-child { font-weight: 600; padding-left: 12px; }
.note, .small { margin: 0; font-size: 14px; color: var(--muted); }
.status { margin: 0; padding: 10px 12px; background: #DDEBF0; color: #1B4D6B; border-radius: 6px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 120px; padding: 16px; border: 2px dashed #9FB3C1; border-radius: 8px; background: #F6F8F9; text-align: center; cursor: pointer; }
.drop.over { border-color: var(--blue); background: #E3EEF3; }
.drop-main { font-weight: 600; color: var(--blue); font-size: 17px; }
.drop-sub { font-size: 14px; color: var(--muted); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
textarea { width: 100%; min-height: 96px; font: 14px/1.4 Consolas, 'Courier New', monospace; padding: 10px; border: 1px solid #CBD5DA; border-radius: 6px; resize: vertical; color: var(--ink); }
button { align-self: flex-start; min-height: 46px; padding: 0 22px; border: 1px solid var(--blue); border-radius: 6px; background: var(--blue); color: #fff; font: 600 16px 'Barlow', 'Segoe UI', sans-serif; cursor: pointer; }
button:focus-visible, textarea:focus-visible, .drop:focus-within { outline: 3px solid #6FA8D6; outline-offset: 2px; }
.private { margin: 0; font-size: 14.5px; color: var(--muted); }
.private strong { color: var(--ink); }
.about p { margin: 0; font-size: 15px; }
footer { max-width: 640px; margin: 0 auto; padding: 18px 16px max(22px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
footer img { flex-shrink: 0; }
@media (min-width: 560px) {
  main { padding-top: 32px; }
  .meta { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 34px; }
}
