:root {
  --blue: #0052a5;
  --blue-deep: #003b78;
  --ink: #1b1b1b;
  --muted: #4f5966;
  --line: #d6dbe1;
  --field: #767f8a;
  --soft: #f5f6f7;
  --info-bg: #eaf2fb;
  --error-bg: #fdecec;
  --error-line: #b3121f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 1.0625rem/1.65 "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 1; padding: .5rem 1rem; background: #fff; color: var(--blue); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Service bar and masthead */
.servicebar { background: var(--soft); border-bottom: 1px solid var(--line); color: var(--muted);
              font-size: .8rem; padding: .35rem 0; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; min-height: 4rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none;
        font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.logo-mark { width: 1.9rem; height: 1.9rem; color: var(--blue); }

/* Hero: the form card overlaps its lower edge */
.hero { background: var(--blue); color: #fff; padding: 2.75rem 0 5.5rem; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; margin: 0 0 .6rem; }
.hero p { margin: 0; max-width: 38rem; color: #e3edf8; }

.card { background: #fff; border-radius: 6px; padding: 1.5rem; margin-top: -3.5rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 40, 90, .12); }
@media (max-width: 480px) { .card { padding: 1rem; } }

label { display: block; font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
textarea { width: 100%; min-height: 10rem; padding: .8rem; font: inherit; color: inherit; resize: vertical;
           border: 2px solid var(--field); border-radius: 4px; }
textarea:focus { border-color: var(--blue); }

.form-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
            gap: .75rem 1.5rem; margin-top: .6rem; }
.hint { flex: 1 1 18rem; margin: 0; font-size: .9rem; color: var(--muted); }
.count { white-space: nowrap; font-variant-numeric: tabular-nums; }

.btn { padding: .75rem 2rem; font: inherit; font-weight: 700; color: #fff; background: var(--blue);
       border: 0; border-radius: 4px; cursor: pointer; }
.btn:hover { background: var(--blue-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Result */
.result:empty { display: none; }
.result { margin-top: 2rem; }

.notice, .error { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem;
                  padding: 1rem 1.2rem; border-radius: 4px; }
.notice::before, .error::before { grid-row: span 2; display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
                                  border-radius: 50%; color: #fff; font-weight: 800; }
.notice { background: var(--info-bg); }
.notice::before { content: "i"; background: var(--blue); }
.error { background: var(--error-bg); }
.error::before { content: "!"; background: var(--error-line); }
.notice strong, .error strong { display: block; }

.claim { border-top: 4px solid var(--line); padding-top: 1rem; }
.claim + .claim { margin-top: 2rem; }
.claim-text { font-size: 1.15rem; font-weight: 700; margin: 0 0 .5rem; }
.claim h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.1rem 0 .25rem; }
.claim p, .claim ul { margin: .2rem 0; }
.claim ul { padding-left: 1.2rem; }
.fragment { display: block; margin-top: .2rem; color: var(--muted); font-style: italic; }
a { color: var(--blue); }

/* Verdict pills, shared by results and the legend */
.verdict { display: inline-block; padding: .1rem .65rem; border-radius: 3px; font-size: .9rem; font-weight: 700;
           border-left: 6px solid; white-space: nowrap; }
.verdict-confirmed { color: #155d2f; background: #e5f3e9; }
.verdict-false { color: #a3111d; background: #fbe7e8; }
.verdict-misleading { color: #7f4600; background: #fdf0dc; }
.verdict-insufficient_evidence, .verdict-not_verifiable { color: #3d4753; background: #eceff2; }

.legend { margin: 3rem 0; }
.legend h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
.legend dl { margin: 0; }
.legend dl > div { display: grid; grid-template-columns: minmax(0, 17rem) 1fr; gap: .25rem 1rem;
                   padding: .7rem 0; border-top: 1px solid var(--line); }
.legend dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .legend dl > div { grid-template-columns: 1fr; } }

.foot { background: var(--soft); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 1.5rem 0 2.5rem; }
