/*
 * The shared sheet for dppmcp.com.
 *
 * It began inline in index.html and moved out when the site grew past one
 * page. Four pages each carrying their own copy of a palette is four
 * places for the palette to drift, and the whole point of this system is
 * that it matches dppagent.com rather than approximating it.
 */

/* ── The DPP Agent marketing system, ported ──────────────────────
   Same values dppagent.com renders: the warm off-white ground, the
   stone ramp, Tailwind's default serif stack for display and the
   system sans for text. Those pages carry no dark variant — the
   ground is written as a literal — so this one commits to light in
   the same way rather than inventing a second palette that would
   drift from the site it is meant to match. Every colour is painted
   explicitly, so the page holds on either host background. */
:root {
  --paper:      #FAFAF7;   /* dppagent.com's ground */
  --raised:     #FFFFFF;
  --ink:        #1C1917;   /* stone-900 */
  --ink-mid:    #44403C;   /* stone-700 */
  --ink-soft:   #57534E;   /* stone-600 */
  --ink-faint:  #A8A29E;   /* stone-400 */
  --line:       #E7E5E4;   /* stone-200 */
  --line-soft:  #F5F5F4;   /* stone-100 */
  --rule:       #D6D3D1;   /* stone-300 */
  /* Two greens, because one colour cannot do both jobs. "PASS" is text
     and needs contrast against paper; an 8px dot needs to be seen at all.
     The dots were emerald-800, which on this paper reads as black rather
     than as green — the colour was carrying no information.

     The validator on dppagent.com uses green-500 for its dots and the
     obvious move was to match it, but green-500 on #FAFAF7 measures
     2.2:1, and a dot that carries meaning needs 3:1. green-600 is one
     step darker, unmistakably the same green to a reader moving between
     the two sites, and measures 3.6:1. Text stays on green-700 at
     4.8:1. Same split on the red. */
  --pass:       #15803D;   /* green-700, text */
  --pass-dot:   #16A34A;   /* green-600, dots */
  --fail:       #B91C1C;   /* red-700, text */
  --fail-dot:   #EF4444;   /* red-500, dots */
  --warn-dot:   #D97706;   /* amber-600, dots — see the note above */
  --code-bg:    #F5F4F2;
  --code-ink:   #292524;   /* stone-800 */
  --code-dim:   #8A847E;

  --serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
           "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
           "Liberation Mono", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .wrap { padding: 0 40px; } }
.prose { max-width: 62ch; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--rule); }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* ── Masthead ─────────────────────────────────────────────── */
.masthead { border-bottom: 1px solid var(--line); background: var(--raised); padding: 14px 0; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
/* The mark is DPP Agent's own, with MCP set beside it — same
   construction as the header on dppagent.com's marketing pages, so the
   two sites read as one company rather than two. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark img { display: block; width: 40px; height: 40px; }
.masthead nav { display: flex; gap: 22px; font-size: 14px; }
.masthead nav a { color: var(--ink-soft); text-decoration: none; }
.masthead nav a:hover { color: var(--ink); }
.masthead nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ── Sections ─────────────────────────────────────────────── */
section { padding: 80px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
@media (min-width: 640px) { section { padding: 100px 0; } }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 24px;
}

h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 5.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0 0 28px;
}
h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0 0 18px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 0 0 8px;
}
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 19px; line-height: 1.62; color: var(--ink-soft); }
@media (min-width: 640px) { .lead { font-size: 20px; } }
.note { font-size: 15px; line-height: 1.62; color: var(--ink-soft); }

/* ── Code ─────────────────────────────────────────────────── */
.code {
  background: var(--code-bg);
  color: var(--code-ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.code .c { color: var(--code-dim); }
code:not(.code) {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--line-soft);
  padding: .12em .38em;
  border-radius: 3px;
}

.stack { display: grid; gap: 16px; }

/* ── Verdict card ─────────────────────────────────────────── */
.verdict { background: var(--raised); border: 1px solid var(--line); padding: 26px 28px; }
.verdict-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.grade { font-family: var(--serif); font-size: 44px; line-height: 1; font-weight: 300; }
.verdict-head .meta { font-size: 14px; color: var(--ink-soft); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.55;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.checks li:first-child { border-top: none; padding-top: 0; }
.mark {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
  margin-top: 2px;
}
.mark.ok { color: var(--pass); }
.mark.no { color: var(--fail); }
.checks .std { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); display: block; margin-bottom: 2px; }
.checks .why { color: var(--ink-soft); }

/* ── Tables ───────────────────────────────────────────────── */
.scroller { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line-soft); }
th { font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
td:first-child { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.lvl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

/* ── Two-up, hairline-divided the way the /examples grid is ── */
.duo { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .duo { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--raised); padding: 26px 28px; }

/* ── Callout ──────────────────────────────────────────────── */
.callout { border-left: 2px solid var(--ink); padding: 2px 0 2px 22px; }
.callout h3 { margin-bottom: 8px; }

ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
ul.plain li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
ul.plain .dash { color: var(--ink-faint); }

/* ── Waitlist ─────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.waitlist { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.waitlist input {
  flex: 1 1 240px;
  min-width: 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 10px 12px;
}
.waitlist input::placeholder { color: var(--ink-faint); }
.waitlist input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.waitlist button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 10px 18px;
  cursor: pointer;
}
.waitlist button:hover { background: var(--ink-mid); border-color: var(--ink-mid); }
.waitlist button:disabled { opacity: .55; cursor: default; }
.waitlist button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.waitlist-msg { margin-top: 12px; }
.waitlist-msg.ok { color: var(--pass); }
.waitlist-msg.no { color: var(--fail); }
.waitlist-fine { margin-top: 10px; font-size: 13px; color: var(--ink-faint); }

footer { padding: 56px 0 72px; font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
  

/* ── Standards list ───────────────────────────────────────────
   Number in the left column, prose in the right, so the eight
   designations read as a column the eye can run down. */
.std-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 32px; }
.std-entry {
  background: var(--raised);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 26px 28px;
}
@media (min-width: 720px) {
  .std-entry { grid-template-columns: 150px 1fr; gap: 30px; }
}
.std-no {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-faint);
  white-space: nowrap;
  padding-top: 2px;
}
.std-body h3 { margin-bottom: 6px; }
.clauses { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.clauses li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cl {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
  padding-top: 3px;
}

/* ── Score row ────────────────────────────────────────────────
   Four figures across the top of the verdict card. min-w-0 on the
   cells so a long label cannot push a column into its neighbour. */
.scorebar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 640px) { .scorebar { grid-template-columns: repeat(4, 1fr); } }
.score { min-width: 0; }
.score-n {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.score-n .pc { font-size: 16px; color: var(--ink-faint); margin-left: 1px; }
.score-l { font-size: 12.5px; color: var(--ink-soft); margin-top: 7px; line-height: 1.35; }

/* Sub-heading above a block inside a section */
.block-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 40px 0 14px;
}

/* ── Field lists ──────────────────────────────────────────────── */
.fields-duo { display: grid; grid-template-columns: 1fr; gap: 8px 40px; }
@media (min-width: 700px) { .fields-duo { grid-template-columns: 1.4fr 1fr; } }
.fieldlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.fieldlist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--ink-mid);
}
.fm { width: 8px; height: 8px; border-radius: 50%; display: inline-block; transform: translateY(-1px); }
.fm.ok { background: var(--pass-dot); }
.fm.no { background: var(--fail-dot); }

/* ── Recommendations ──────────────────────────────────────────── */
.recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 66ch; }
.recs li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.recs strong { color: var(--ink); font-weight: 600; }
.rec-n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* ── URL form ─────────────────────────────────────────────────── */
.urlform { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; max-width: 620px; }
.urlform input {
  flex: 1 1 280px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 11px 12px;
}
.urlform input::placeholder { color: var(--ink-faint); }
.urlform input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.urlform button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 11px 20px;
  cursor: pointer;
}
.urlform button:hover { background: var(--ink-mid); border-color: var(--ink-mid); }
.urlform button:disabled { opacity: .55; cursor: default; }
.urlform button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.val-msg { margin-top: 14px; }
.val-msg.no { color: var(--fail); }
#val-result { margin-top: 26px; }

/* ── Standard icons ───────────────────────────────────────────
   Stroked line icons, drawn to match the ones in the GS1 Sweden
   figure so a reader who has seen that diagram meets the same
   icon beside the same designation here. currentColor, so they
   take the muted ink of the column they sit in. */
.std-icon { width: 48px; height: 48px; display: block; margin-bottom: 14px; }
.std-no { display: flex; flex-direction: column; }
.std-no > span { display: block; }
.panel-icon { color: var(--ink-faint); margin-bottom: 12px; }
.panel-icon .std-icon { width: 40px; height: 40px; }

/* ── Schema tiers ─────────────────────────────────────────────
   The dots carry the same three meanings as the validator legend on
   dppagent.com — red blocks publishing, amber costs coverage, green
   is filled — so the colour a reader learned there still means the
   same thing here. Tailwind's red-500, amber-400 and green-500, since
   that is literally what the validator renders. */
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 36px;
}
@media (min-width: 760px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: var(--raised);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.tier h3 { margin-bottom: 6px; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
  margin-top: 6px;
}
.dot.red   { background: var(--fail-dot); }
.dot.amber { background: var(--warn-dot); }
.dot.green { background: var(--pass-dot); }

/* ── Tool levels ──────────────────────────────────────────────
   Three groups, each with its own heading and table. One table of
   fourteen rows with a level column made the reader carry the
   grouping in their head while scanning; the grouping is the point,
   so it is structure now rather than a column. */
.level { margin-top: 44px; }
.level:first-of-type { margin-top: 32px; }
.level-head {
  border-left: 2px solid var(--ink);
  padding-left: 20px;
  margin-bottom: 18px;
}
.level-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.level-head h3 { margin-bottom: 6px; }
.level-head .note { max-width: 58ch; }
