:root {
  --ink: #102d3b; --muted: #58696e; --paper: #faf9f5; --line: #d7dfdd;
  --gold: #af8748; --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Arial, Tahoma, sans-serif }
header { padding: 1rem max(5vw, 1.25rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-bottom: 1px solid var(--line); background: white }
a { color: inherit; text-underline-offset: .2em }
.brand { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; letter-spacing: .065em; font-weight: 700 }
.brand img { width: 48px; height: 48px; object-fit: contain }
nav { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .85rem; color: var(--muted) }
nav a { text-decoration: none }
nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px }
main { width: min(44rem, calc(100% - 2.25rem)); margin: clamp(2rem, 8vh, 6rem) auto }
.card { border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: clamp(1.25rem, 5vw, 3rem); background: white }
.card.issued { border-top-color: #28745b }
.card.revoked, .card.unknown { border-top-color: #a24632 }
.card.unavailable { border-top-color: var(--gold) }
h1 { font: 400 clamp(2rem, 5.6vw, 3.25rem)/1.12 var(--serif); letter-spacing: -.035em; margin: 0 0 .9rem }
[dir=rtl] h1 { letter-spacing: 0; font-family: Tahoma, sans-serif }
.section-label { margin: 0 0 .5rem; color: var(--muted); font-size: .88rem; font-weight: bold }
.message { color: var(--muted); margin: 0 0 1.65rem }
dl { margin: 1.5rem 0 }
dl div { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(0, 1.4fr); padding: .65rem 0; gap: 1rem; border-top: 1px solid var(--line) }
dt { color: var(--muted) }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere }
label { display: block; font-size: .94rem; font-weight: 600; margin-bottom: .45rem }
.input-row { display: flex; gap: .5rem; flex-wrap: wrap }
input[type=text] { width: 10rem; min-width: 0; flex: 1; border: 1px solid #8a9a9d; border-radius: 3px; padding: .7rem; color: var(--ink); font: inherit }
button, .button { border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: white; padding: .65rem 1.2rem; font: inherit; cursor: pointer; text-decoration: none; display: inline-block }
.another { display: inline-block; margin-block-start: .5rem }
.button + .another { margin-inline-start: 1.1rem }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin: 1.15rem .2rem; font-size: .85rem; color: var(--muted) }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px }
.pdf-check { border-top: 1px solid var(--line); margin: 1.7rem 0 1rem; padding-top: 1rem }
.pdf-check p { color: var(--muted); margin: .5rem 0 }
.pdf-check input { display:block; width: 100%; max-width: 100%; font: inherit; margin: .6rem 0 }
.pdf-check [role=status] { color: var(--ink); font-weight: 600 }
[hidden] { display: none !important }
@media (max-width: 450px) {
  header { padding-inline: 1rem }
  dl div { grid-template-columns: 1fr; gap: .1rem }
  .input-row { display: grid }
  input[type=text] { width: 100% }
}
