/* Colours and type follow the memberdata.eu landing page (activout/memberdata-web site/style.css). */
:root {
    --red: #e74027;      /* sampled from the logo; large text and details only (4.1:1 on white) */
    --red-ink: #c2301b;  /* buttons, links and small text (5.4:1 on white) */
    --red-dark: #a82814;
    --red-tint: #fdf0ee;
    --ink: #1d1d1f;
    --muted: #555;
    --line: #e6e2e0;
    --bg: #ffffff;
    --ok: #1e6b34;
    --warn-bg: #fff6e0;
    --warn: #7a4b00;
    --card: #ffffff;
    --field: #ffffff;
    --field-line: #8a8a8a;
    --maxw: 960px;
    --gutter: 16px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --red-ink: #ff7a63;  /* links and small text on dark (7.2:1 on --bg, 6.6:1 on --card) */
        --red-tint: #3a1f1a;
        --ink: #ececee;
        --muted: #a9a9b0;
        --line: #2f2f35;
        --bg: #141416;
        --card: #1c1c20;
        --field: #111113;
        --field-line: #5c5c63;
        --ok: #7fd49c;
        --warn-bg: #3a2c10;
        --warn: #f3c46b;
    }
    /* The logo has a white background; give it a deliberate white badge. */
    .brand img { background: #fff; border-radius: 10px; padding: 6px 8px; }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; margin-top: 1.4em; }
p { margin: 0 0 1rem; }
a { color: var(--red-ink); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; border-radius: 4px; }

.top, main, footer { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand img { display: block; width: 120px; height: auto; }
main { padding-bottom: 40px; }
footer { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 32px; color: var(--muted); font-size: 0.9rem; }

section { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin: 18px 0;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
section > h2 { border-left: 4px solid var(--red); padding-left: 10px; }

/* A section that stays out of the way until opened. */
details.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 24px;
                margin: 18px 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
details.panel > summary { color: var(--ink); font-weight: 400; }
details.panel > summary h2 { display: inline; margin: 0; border-left: 4px solid var(--red); padding-left: 10px; }
details.panel > summary .summary-status { color: var(--muted); margin-left: 8px; }
details.panel[open] > summary { margin-bottom: 14px; }

label { display: block; font-weight: 600; margin: 14px 0 6px; }
label.check { font-weight: 400; margin: 8px 0; }
input[type=text], input[type=email], input[type=number], select, textarea {
    width: 100%; max-width: 480px; font: inherit; padding: 10px 12px; color: inherit; background: var(--field);
    border: 1px solid var(--field-line); border-radius: 8px;
}
textarea { max-width: 100%; min-height: 4.5rem; }

button, a.button {
    /* The logo's dark red with white text reads on both light and dark backgrounds. */
    display: inline-block; margin-top: 14px; background: #c2301b; color: #fff;
    border: 1px solid #c2301b; border-radius: 8px; padding: 10px 20px;
    font: inherit; font-weight: 600; cursor: pointer;
}
button:hover, a.button:hover { background: var(--red-dark); border-color: var(--red-dark); }
button.secondary { background: var(--card); color: var(--red-ink); border-color: var(--red-ink); }
a.button { text-decoration: none; }
button.secondary:hover { background: var(--red-tint); }
button.danger { background: #8f1d0e; border-color: #8f1d0e; }
button.link { background: none; border: none; color: var(--red-ink); padding: 0; margin: 0; font-weight: 600; text-decoration: underline; }

.notice { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: 8px; }
.notice.error, .error { color: var(--red-ink); }
.notice.error { background: var(--red-tint); }
.ok { color: var(--ok); }
.muted { color: var(--muted); }
ul.arrivals { list-style: none; padding-left: 0; }
.step { color: var(--muted); font-weight: 600; margin-bottom: 4px; }
ul.prices { padding-left: 1.2em; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.payment-methods img { height: 28px; width: auto; }
.payment-methods .mollie { height: 32px; margin-left: 6px; }
/* Company fields only for business buyers, without JavaScript. */
.business-only, .business-only-inline { display: none; }
form:has(#business:checked) .business-only { display: block; }
form:has(#business:checked) .business-only-inline { display: inline; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--line); padding: 6px 8px; }
td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
/* A row's problem goes on its own full-width line below it, so the columns stay readable. */
tr.has-problem td { border-bottom: none; padding-bottom: 0; }
tr.problem td { color: var(--red-ink); font-size: 0.85rem; padding-top: 2px; }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
code { background: var(--red-tint); color: var(--ink); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--red-tint); padding: 10px 12px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
pre code { background: none; padding: 0; }

details { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; color: var(--red-ink); }

form.inline { display: inline; }
td form.inline button { margin-top: 0; padding: 4px 12px; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row pre { flex: 1; margin: 0; }
.copy-row button { margin-top: 0; flex: none; }
.answer table { border-collapse: collapse; display: block; overflow-x: auto; }
.answer th, .answer td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; }
.answer pre { overflow-x: auto; }
