/* Authority-classic verification page.
 *
 * The house style regulators already publish: a single white instrument on a dark
 * ground, hairline-ruled sections, and the action a visitor actually needs sitting at
 * the end of the section that explains it. It reads as a document, not a web page,
 * because that is what it is — a visitor may print it and attach it to a complaint.
 */

:root {
  --ground:   #0b1d2e;
  --paper:    #f7f7f5;
  --card:     #ffffff;
  --ink:      #1c2b36;
  --body:     #3f5a6b;
  --muted:    #7c8f9c;
  --rule:     #e2e6e8;
  --action:   #d8cb6b;
  --action-d: #c2b44f;
  --ink-btn:  #2a2a1c;

  --ok:       #6f9040;
  --warn:     #c08a17;
  --bad:      #b5372c;
  --neutral:  #6b7c8c;

  --text: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--text);
  font-size: 13px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: #3b7ca8; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--action-d); outline-offset: 2px;
}

.sheet {
  max-width: 640px;
  margin: 34px auto;
  background: var(--card);
  padding: 34px 40px 28px;
  box-shadow: 0 2px 18px rgba(0,0,0,.28);
}

/* ---------------------------------------------------------------- masthead */

.masthead { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 26px; align-items: start; }
.masthead .seal { line-height: 0; text-align: center; }
.masthead .seal svg { display: inline-block; }
.masthead h1 {
  font-size: 22px; font-weight: 700; color: var(--ink); margin: 4px 0 4px;
  letter-spacing: -.01em; line-height: 1.2;
}
.masthead .generated { font-size: 10.5px; color: var(--muted); margin: 0 0 14px;
                       padding-bottom: 12px; border-bottom: 1px solid var(--rule); }

/* record rows */
.rows { margin: 0; }
.rows .r { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.rows .r:last-child { border-bottom: none; }
.rows dt {
  font-size: 12.5px; font-weight: 700; color: var(--ink); letter-spacing: .01em;
  margin-bottom: 2px;
}
.rows dd { margin: 0; font-size: 12.5px; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- status bar */

.status-bar {
  margin: 20px 0 4px; padding: 11px 16px; text-align: center;
  color: #fff; font-size: 13px; letter-spacing: .01em;
}
.status-bar b { font-weight: 700; letter-spacing: .04em; }
.status-VALID     { background: var(--ok); }
.status-PENDING   { background: var(--neutral); }
.status-SUSPENDED { background: var(--warn); }
.status-EXPIRED   { background: var(--warn); }
.status-REVOKED   { background: var(--bad); }
.status-INVALID   { background: var(--bad); }
.status-CLOSED    { background: var(--neutral); }
/* Per-viewer territorial overlay — the licence is in force, but not where you are. */
.status-RESTRICTED { background: #8a6d1f; }

/* ---------------------------------------------------------------- sections */

.sec { margin-top: 26px; }
.sec > h2 {
  font-size: 15px; font-weight: 400; color: var(--ink); margin: 0 0 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule); letter-spacing: .005em;
}
.sec p { margin: 0 0 9px; text-align: justify; }
.sec p:last-child { margin-bottom: 0; }
.sec ul, .sec ol { margin: 0 0 9px; padding-left: 22px; }
.sec li { margin-bottom: 4px; text-align: justify; }
.sec strong { color: var(--ink); font-weight: 700; }
.sec .notice { color: var(--ink); }

.act { display: flex; justify-content: flex-end; margin-top: 14px; }
.btn-act {
  display: inline-block; background: var(--action); color: var(--ink-btn);
  border: 1px solid var(--action-d); padding: 7px 16px; font-size: 12px;
  font-weight: 700; text-decoration: none; cursor: pointer; font-family: var(--text);
}
.btn-act:hover { background: var(--action-d); color: var(--ink-btn); }

/* ---------------------------------------------------------------- warning banner */

.warn-band {
  margin: 18px 0 0; padding: 12px 15px; font-size: 12.5px;
  border-left: 4px solid var(--bad); background: #fbf2f1; color: #6d2019;
}
.warn-band.soft { border-left-color: var(--warn); background: #fdf7ea; color: #6a4c07; }
.warn-band strong { font-weight: 700; }

/* ---------------------------------------------------------------- provenance */

.prov { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--rule); }
.prov h2 { font-size: 12px; font-weight: 700; color: var(--ink); margin: 0 0 9px;
           letter-spacing: .04em; text-transform: uppercase; }
.prov dl { display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 5px 14px;
           margin: 0; font-size: 11.5px; }
.prov dt { color: var(--muted); }
.prov dd { margin: 0; font-family: var(--mono); font-size: 11px; color: var(--ink);
           overflow-wrap: anywhere; }
.prov .note { font-size: 11px; color: var(--muted); margin: 11px 0 0; text-align: justify; }

/* ---------------------------------------------------------------- footer */

.sheet-foot {
  margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--rule);
  text-align: center; font-size: 11px; color: var(--muted);
}
.sheet-foot .host { font-family: var(--mono); color: var(--ink); }

/* ---------------------------------------------------------------- forms */

.f-field { margin-bottom: 14px; }
.f-field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink);
                 margin-bottom: 4px; }
.f-field input, .f-field textarea, .f-field select {
  width: 100%; padding: 8px 10px; border: 1px solid #c8d0d5; background: #fff;
  font-family: var(--text); font-size: 13px; color: var(--ink);
}
.f-field textarea { min-height: 120px; resize: vertical; }
.f-field .hint { font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 400; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 700px) {
  .sheet { margin: 0; padding: 22px 18px; box-shadow: none; }
  .masthead { grid-template-columns: minmax(0,1fr); gap: 14px; text-align: center; }
  .masthead .generated { text-align: center; }
  .prov dl { grid-template-columns: minmax(0,1fr); gap: 1px 0; }
  .prov dd { margin-bottom: 7px; }
  .sec p, .sec li { text-align: left; }
}

@media print {
  body { background: #fff; }
  .sheet { box-shadow: none; margin: 0; max-width: none; }
  .act, .btn-act { display: none !important; }
  .sec { break-inside: avoid; }
  .status-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
