@font-face {
    font-family: "Baloo 2";
    src: url("/font/Baloo2-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Baloo 2";
    src: url("/font/Baloo2-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Baloo 2";
    src: url("/font/Baloo2-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --plum: #2e1b44;
    --teal: #65a79d;
    --deep-teal: #286c64;
    --mint: #eaf6f3;
    --text: #292536;
    --muted: #5b5564;
    --line: #e5e0ea;
    font: 400 18px/1.55 "Baloo 2", system-ui, sans-serif;
    color: var(--text);
    background: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--plum); line-height: 1.13; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4vw, 2.7rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -.015em; }
h3 { font-size: 1.22rem; }
p { margin: .65rem 0 1rem; }
a { color: var(--deep-teal); text-underline-offset: .2em; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--deep-teal); outline-offset: 4px; }

.site-width { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: #fff; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.header-inner { min-height: 84px; }
.language-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; }
.language-switch a { display: block; padding: 4px 11px; text-decoration: none; font-weight: 600; font-size: .85rem; color: var(--plum); border-radius: 5px; }
.language-switch a[aria-current="true"], .language-switch a:hover { background: var(--mint); color: var(--deep-teal); }

.lookup-hero {
    background: radial-gradient(ellipse at 68% 15%, #a4d6ce 0%, transparent 70%),
                linear-gradient(111deg, #72b5ab, #8bc7bf 68%, #79b8ae);
    overflow: hidden;
}
.lookup-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: clamp(42px, 8vw, 116px); padding-block: clamp(47px, 7vw, 86px); }
.lookup-card { background: white; padding: clamp(24px, 4vw, 42px); border-radius: 15px; box-shadow: 0 16px 42px #244b4322; }
.lookup-intro { color: var(--muted); margin-block: .65rem 1.25rem; }
label { display: block; font-weight: 700; color: var(--plum); margin-bottom: .25rem; }
input:not([type="hidden"]) { width: 100%; border: 1px solid #cfc9d5; border-radius: 7px; background: #fff; color: var(--plum); padding: 11px 13px; font: inherit; line-height: 1.4; }
input::placeholder { color: #706978; opacity: 1; }
.field-hint { margin: .35rem 0 0; color: var(--muted); font-size: .86rem; }
.field-warning { color: #973451; margin-bottom: 0; }
#serial-field { margin-top: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7em; border: 0; border-radius: 7px; background: var(--plum); color: #fff; font: 700 1rem/1.3 "Baloo 2", system-ui, sans-serif; padding: 13px 19px; text-decoration: none; cursor: pointer; }
.button:hover { color: #fff; background: #493061; }
.lookup-button { width: 100%; margin-top: 21px; position: relative; }
.button-arrow { position: absolute; right: 19px; font-size: 1.25em; }
.inline-feedback:not(:empty) { margin-top: .65rem; color: var(--plum); }

.code-example { position: relative; margin: 0; padding: 24px 0; display: grid; place-items: center; gap: 22px; }
.code-example::before, .code-example::after { content: ""; position: absolute; border: 1px solid rgb(255 255 255 / 40%); border-radius: 50%; width: min(100%, 360px); aspect-ratio: 1; pointer-events: none; }
.code-example::after { width: min(116%, 430px); opacity: .55; }
.code-example figcaption { z-index: 1; background: #eaf6f3; color: #245c56; padding: 4px 13px; border-radius: 5px; font-size: .82rem; font-weight: 600; }
.sample-card { z-index: 1; width: min(100%, 364px); display: grid; grid-template-columns: .95fr 1.14fr; align-items: center; gap: 12px; padding: 14px; background: #fff; border-radius: 11px; box-shadow: 0 16px 38px #265d5550; transform: rotate(-5deg); }
.sample-card-main { padding-inline: 4px; display: grid; gap: 2px; align-content: start; }
.sample-card-main img { margin-bottom: 15px; }
.sample-card-main span { font-size: .7rem; color: var(--deep-teal); font-weight: 700; }
.sample-card-main strong { color: var(--plum); font-size: clamp(.65rem, 1.25vw, .87rem); white-space: nowrap; }
.sample-card-stickers { display: grid; gap: 6px; }
.sticker { padding: 6px; min-height: 41px; border-radius: 4px; background: var(--teal); display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 5px; }
.sticker i { width: 10px; height: 17px; border: solid #fff; border-width: 0 4px 4px 0; border-radius: 2px; transform: rotate(39deg); justify-self: center; }
.sticker b { display: grid; align-content: center; min-height: 30px; background: #fff; border-radius: 2px; text-align: center; color: var(--plum); font-size: .66rem; line-height: 1.1; padding: 4px; }
.sticker small { font-size: .54rem; margin-top: 3px; color: var(--muted); }
.sticker-code b { color: var(--deep-teal); white-space: nowrap; }

.help-section { padding-block: 58px 70px; display: grid; grid-template-columns: .9fr 1.7fr; gap: clamp(24px, 7vw, 95px); }
.help-heading p { color: var(--muted); }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; color: var(--plum); font-weight: 600; cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--deep-teal); font-size: 1.3rem; line-height: 1; }
.questions details[open] summary::after { content: "−"; }
.questions details p { margin-top: 0; color: var(--muted); }

.results-panel { margin-top: 45px; padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: 15px; scroll-margin-top: 24px; }
.results-panel h3 { margin-top: 1.3rem; }
.result-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 1rem; }
.result-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; color: var(--muted); }
.result-meta div { display: flex; gap: 6px; }
.result-meta dt { font-weight: 600; }
.result-meta dd { margin: 0; overflow-wrap: anywhere; }
.result-table { border-collapse: collapse; width: 100%; margin-top: .7rem; }
.result-table th, .result-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.result-table thead { background: var(--mint); color: var(--plum); }
.result-table td:last-child, .result-table thead th:last-child { text-align: right; }
.status { display: inline-block; border-radius: 6px; padding: .15rem .5rem; font-weight: 700; line-height: 1.35; }
.status-negative { color: #235e55; background: #eaf6f3; }
.status-positive { color: #922b43; background: #fbeef1; }
.status-undetermined { color: #754a0c; background: #fff4df; }
.notification-dialog {
    width: min(520px, calc(100% - 36px));
    max-height: calc(100% - 36px);
    padding: clamp(22px, 5vw, 34px);
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 16px 42px rgb(46 27 68 / 24%);
    overscroll-behavior: contain;
}
.notification-dialog::backdrop { background: rgb(46 27 68 / 48%); }
body:has(.notification-dialog[open]) { overflow: hidden; }
.notification-dialog h2 { padding-inline-end: 43px; }
.notification-dialog p { color: var(--muted); }
.dialog-close {
    position: absolute;
    inset: 14px 14px auto auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 7px;
    background: var(--mint);
    color: var(--plum);
    font: 600 1.4rem/1 "Baloo 2", system-ui, sans-serif;
    cursor: pointer;
}
.dialog-close:hover { background: var(--line); }
.notification-form { max-width: 480px; }
.notification-form .button { margin-top: 12px; }
.notification-dialog .notification-form .button { width: 100%; }
.message-layout { padding-block: 55px 75px; }
.message-card { max-width: 750px; margin-inline: auto; }
.site-footer { border-top: 1px solid var(--line); background: #f9f7fb; }
.footer-inner { min-height: 77px; }
.footer-inner a { color: var(--plum); }
.admin-page { padding-block: 42px; }

@media (max-width: 760px) {
    .site-width { width: calc(100% - 36px); }
    .header-inner { min-height: 68px; }
    .header-inner img { width: 115px; }
    .lookup-layout { grid-template-columns: 1fr; gap: 36px; padding-block: 36px 28px; }
    .code-example { padding-block: 14px 0; gap: 17px; }
    .code-example::before, .code-example::after { width: min(86%, 288px); }
    .code-example::after { width: min(100%, 335px); }
    .sample-card { width: min(84%, 320px); }
    .sample-card-main strong { font-size: .72rem; }
    .help-section { grid-template-columns: 1fr; gap: 13px; padding-block: 39px 48px; }
}

.admin-form { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-block: 20px; }
.admin-form > div { flex: 1 1 230px; max-width: 460px; }
.admin-page #editSection { margin-top: 34px; max-width: 720px; }
.admin-page #editSection h2 { margin-top: 24px; }
.admin-page #editSection .button { margin-top: 24px; }
.admin-page select { font: inherit; color: var(--plum); padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.admin-page iframe { display: block; border: 1px solid var(--line); margin-bottom: 12px; }
.partner-alert { background: var(--mint); border-radius: 8px; padding: 17px 22px; margin-top: 22px; }
.results-panel .partner-alert h3 { margin-top: 0; }
.partner-alert p { margin-block: .4rem; }
