:root { font-family: system-ui, sans-serif; color: #070e21; background: #eef3ff; line-height: 1.6; }
body { margin: 0; padding: 1rem; } main { max-width: 48rem; margin: 2rem auto; border: 1px solid #2347a3; border-radius: 1rem; padding: clamp(1rem, 4vw, 2.5rem); background: white; }
header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
button, a { color: #003b80; font: inherit; } button { border: 1px solid currentColor; border-radius: .3rem; background: white; padding: .4rem .8rem; cursor: pointer; }
:focus-visible { outline: 3px solid #003b80; outline-offset: 3px; } #catalogue-state { font-weight: bold; } li { overflow-wrap: anywhere; }
[hidden] { display: none !important; }

header img { max-width: 45%; height: auto; object-fit: contain; }
html[data-text-size="125"] { font-size: 125%; }
html[data-text-size="150"] { font-size: 150%; }
html[data-contrast="high"], html[data-contrast="high"] main { background: white; color: black; border-color: black; }

/* Offline catalog controls remain readable at phone widths and enlarged text. */
*, *::before, *::after { box-sizing: border-box; }
#micro-offline-catalog form, #micro-draft-queue form { display: grid; gap: 1rem; margin-block: 1rem; }
#micro-draft-queue section { border-block-start: 1px solid #b4c1e1; padding-block: 1.25rem; }
#micro-offline-catalog label, #micro-draft-queue label { display: block; min-width: 0; }
.form-input { display: block; width: 100%; min-width: 0; min-height: 2.75rem; margin-top: .35rem; padding: .65rem; border: 1px solid #768dc7; border-radius: .5rem; background: white; color: #070e21; font: inherit; }
textarea.form-input { min-height: 6rem; resize: vertical; }
button { min-height: 2.75rem; max-width: 100%; margin-block: .25rem; white-space: normal; }
input[readonly], select:disabled { background: #f0f0f0; }
p, h2, h3 { overflow-wrap: anywhere; }
