:root {
    --ink: #1c1915;
    --muted: #5c564c;
    --line: #d9d2c5;
    --paper: #f6f3ec;
    --paper-2: #fffdf8;
    --band: #ece7dc;
    --seal: #8c2f2f;
    --focus: #1c1915;
    --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", "Noto Serif SC", serif;
    --sans: "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

a:hover { color: var(--seal); }

.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--ink);
    color: var(--paper);
    padding: 8px 12px;
}

.skip:focus { top: 12px; z-index: 30; }

.wrap {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 96px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo {
    display: block;
    height: 72px;
    width: auto;
}

.ico {
    width: 28px;
    height: 28px;
    flex: none;
    display: block;
}

.ico-mark { width: 22px; height: 22px; }

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-left: auto;
}

.nav a {
    text-decoration: none;
    font-size: 15px;
}

.nav a[aria-current="page"] {
    color: var(--seal);
    text-decoration: underline;
    text-underline-offset: 6px;
}

.lang {
    text-decoration: none;
    border: 1px solid var(--ink);
    padding: 4px 10px;
    font-size: 14px;
    white-space: nowrap;
}

.hero {
    padding: 48px 0 56px;
    border-bottom: 1px solid var(--line);
}

.hero-grid, .page-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 36px;
    align-items: center;
}

.page-grid { align-items: start; }

.page-grid-result { grid-template-columns: 1fr; }

.plate {
    background: var(--paper-2);
    border: 1px solid var(--line);
    padding: 28px 32px 22px;
    text-align: center;
}

.plate-title {
    margin: 12px 0 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.plate-no {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    margin: 8px 0 0;
}

.plate-no span { color: var(--muted); font-size: 15px; }

.plate-no strong {
    font-size: 22px;
    line-height: 1.2;
    border-bottom: 2px solid var(--seal);
    padding-bottom: 2px;
}

.plate-photo {
    display: block;
    width: min(480px, 78%);
    height: auto;
    margin: 18px auto 0;
    border: 0;
    border-radius: 16px;
}

.plate .sheet-pill { margin-top: 16px; }

.plate-table { margin-top: 18px; }

.plate-table td { font-weight: 700; height: auto; }

.plate .downloads { justify-content: center; margin: 18px 0 0; }

.hero-photo, .page-photo { margin: 0; }

.hero-photo img, .page-photo img, .aside img, .card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--line);
}

.hero-photo img, .page-photo img, .aside img { aspect-ratio: 16 / 10; }

.facts {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 28px;
    margin: 36px auto 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    width: min(1080px, calc(100% - 40px));
}

.facts li { display: flex; gap: 10px; align-items: flex-start; }

.facts strong { display: block; font-size: 15px; font-weight: 600; }

.facts span { color: var(--muted); font-size: 13px; }

.eyebrow {
    margin: 0 0 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--muted);
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.25;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    max-width: 16em;
}

.lead {
    max-width: 40em;
    color: var(--muted);
    font-size: 18px;
}

.lookup {
    margin-top: 28px;
    max-width: 640px;
}

.lookup label,
form label {
    display: block;
    margin: 16px 0 6px;
    font-size: 14px;
}

.lookup-row {
    display: flex;
    gap: 8px;
}

input, textarea, button {
    font: inherit;
    color: var(--ink);
}

input, textarea {
    width: 100%;
    background: var(--paper-2);
    border: 1px solid var(--ink);
    padding: 10px 12px;
}

button, .button {
    background: var(--ink);
    color: var(--paper-2);
    border: 1px solid var(--ink);
    padding: 10px 18px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

button:hover, .button:hover { background: var(--seal); border-color: var(--seal); color: #fff; }

.downloads { display: flex; flex-wrap: wrap; gap: 12px; }

.lookup-row input { flex: 1; }

.band {
    background-color: var(--band);
    background-image:
        linear-gradient(rgba(28, 25, 21, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 25, 21, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    padding: 48px 0;
}

section { padding: 48px 0; }

.band + section, .hero + section { padding-top: 48px; }

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.split article, .cert, .prose, .aside, .sheet {
    background: var(--paper-2);
    border: 1px solid var(--line);
    padding: 20px 22px;
}

.split article.card { padding: 0; overflow: hidden; }

.card img { aspect-ratio: 4 / 3; border: 0; }

.card-body { padding: 16px 18px 18px; }

.card-body p, .steps p { margin: 8px 0 0; color: var(--muted); }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.steps-page { grid-template-columns: 1fr 1fr; }

.steps li {
    border-top: 1px solid var(--ink);
    padding-top: 14px;
}

.steps h3 span, .steps h2 span {
    color: var(--seal);
    margin-right: 6px;
}

.aside img { margin: -20px -22px 16px; width: calc(100% + 44px); max-width: none; }

.sheet {
    background: var(--paper);
    padding: 18px 16px 14px;
    text-align: center;
}

.sheet-logo {
    display: block;
    width: min(280px, 92%);
    height: auto;
    margin: 0 auto;
}

.sheet-title {
    margin: 10px 0 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.sheet-line {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.sheet-dots {
    width: 9.2em;
    border-bottom: 1px solid var(--ink);
    transform: translateY(-0.2em);
}

.sheet-rule {
    display: block;
    width: 72px;
    height: 2px;
    margin: 7px auto 0;
    background: var(--seal);
}

.sheet-photo {
    width: min(250px, 78%);
    margin: 12px auto 0;
}

.sheet-photo img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 8px;
}

.sheet-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0;
    padding: 3px 12px 3px 3px;
    border-radius: 999px;
    background: var(--seal);
    color: var(--paper-2);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.sheet-pill svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.sheet-pill circle { fill: var(--paper); }

.sheet-pill path {
    fill: none;
    stroke: var(--seal);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sheet-table {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
    text-align: left;
}

.sheet-table th,
.sheet-table td {
    border: 1px solid var(--line);
    padding: 7px 8px;
    vertical-align: middle;
}

.sheet-table th {
    width: 18%;
    background: var(--band);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.sheet-table td {
    width: 32%;
    height: 28px;
    background: var(--paper-2);
}

.sheet-caption {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.foot {
    border-top: 1px solid var(--line);
    padding: 32px 0 48px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.foot-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 20px;
    margin: 0 0 8px;
}

.foot-name img { display: block; height: 48px; width: auto; }

.muted, .foot .muted { color: var(--muted); font-size: 15px; }

.prose .body {
    white-space: pre-wrap;
    font-size: 16px;
    line-height: 1.75;
}

.alert {
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid var(--seal);
    color: var(--seal);
}

.cert .seal {
    margin: 0 0 8px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--seal);
}

.cert dl { margin: 16px 0; }

.cert dl div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}

.cert dt { color: var(--muted); }

.cert dd { margin: 0; }

.shot {
    display: block;
    max-width: 360px;
    height: auto;
    border: 1px solid var(--line);
}

.partners {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.partner {
    display: grid;
    grid-template-rows: auto;
    justify-items: center;
    align-content: center;
    gap: 14px;
    min-height: 148px;
    padding: 22px 16px;
    border: 1px solid var(--line);
    background: var(--paper-2);
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.partner.has-logo { grid-template-rows: 72px auto; }

.partner img {
    max-width: 72%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner span {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.3;
}

.partner:hover { color: var(--seal); }

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

@media (max-width: 860px) {
    .top-bar { align-items: flex-start; flex-wrap: wrap; padding: 16px 0; }
    .nav { margin-left: 0; width: 100%; }
    .hero-grid, .page-grid, .facts, .steps, .steps-page, .split, .foot-grid, .partners { grid-template-columns: 1fr; }
    .lookup-row { display: block; }
    .lookup-row button, form button { margin-top: 8px; width: 100%; }
    .cert dl div { display: block; }
    .plate { padding: 20px 12px 16px; }
    .plate-title { font-size: 24px; }
    .plate-no strong { font-size: 18px; }
    .plate-table th, .plate-table td { padding: 8px 6px; font-size: 13px; }
    .aside img { margin: -20px -22px 16px; width: calc(100% + 44px); }
}
