/* SPDX-License-Identifier: LicenseRef-Proprietary */
/* Copyright (C) 2024-2026 Tonic */

/* The public pages Zero serves -- the law (`/law`) and the funding programmes (`/funding`).
   Inside the website's dress they take the website's colours and fonts (`.oc`); without it, the
   fallbacks below. Spacing sits on an inner div: the website bundle sets padding 0 on <main>. */
.zero-page {
  --zp-ink: var(--ink, #23211F); --zp-body: var(--body, #4A443D); --zp-muted: var(--muted, #6B645C);
  --zp-line: var(--line, #E4DED4); --zp-paper: var(--paper, #FFFFFF); --zp-accent: var(--accent, #FF7101);
  --zp-accent-text: var(--accent-text, #A84600);
}
.zero-page-body { padding-block: 72px 96px; }
.zero-page-wrap { max-width: 860px; margin: 0 auto; padding-inline: 24px; }
.zero-page h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; margin: 0 0 24px; }
.zero-page p { color: var(--zp-body); max-width: 40em; margin: 0 0 12px; }
.zero-page .zero-page-lead { font-size: 19px; color: var(--zp-ink); }

.zero-page-state { margin: 32px 0 8px; display: grid; gap: 10px; }
.zero-page-state label { font-size: 17px; color: var(--zp-body); }
.zero-page-state-row { display: flex; flex-wrap: wrap; gap: 12px; }
.zero-page-state select { font: inherit; min-height: 48px; padding: 8px 12px; border: 1px solid var(--zp-muted); border-radius: 6px; background: var(--zp-paper); color: var(--zp-ink); min-width: 16em; max-width: 100%; }
.zero-page-state button { font: inherit; font-weight: 600; min-height: 48px; padding: 8px 24px; border: 0; border-radius: 6px; background: var(--zp-accent); color: var(--zp-ink); cursor: pointer; }
.zero-page-state select:focus-visible, .zero-page-state button:focus-visible, .zero-page summary:focus-visible { outline: 3px solid var(--zp-accent); outline-offset: 2px; }
.zero-page .zero-page-note { font-size: 15px; margin: 0; }

.zero-page-group { margin-top: 48px; }
.zero-page-group h2 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.zero-page-group h3 { font-size: 20px; line-height: 1.3; margin: 28px 0 8px; }
.zero-page-group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--zp-line); }
.zero-page-group li { border-bottom: 1px solid var(--zp-line); padding: 16px 0; }
.zero-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.zero-page-title { font-size: 18px; color: var(--zp-ink); }
.zero-page-tag { font-size: 15px; color: var(--zp-muted); }
.zero-page-date { font-size: 16px; color: var(--zp-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zero-page summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--zp-accent-text); }
.zero-page details[open] summary { margin-bottom: 4px; }
.zero-page .zero-page-wording { white-space: pre-line; color: var(--zp-ink); }
.zero-page .zero-page-quiet { font-size: 15px; color: var(--zp-muted); }
.zero-page details a { color: var(--zp-accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* The funding programmes: a summary line, the meta line of a row, and the bordered blocks. */
.zero-page .zero-page-summary { font-size: 16px; }
.zero-page-code { font-weight: 600; }
.zero-page-domain { font-size: 15px; color: var(--zp-muted); font-family: inherit; }
.zero-page .zero-page-meta { font-size: 15px; color: var(--zp-body); margin: 6px 0 0; max-width: none; }
.zero-page-official { font-size: 15px; color: var(--zp-accent-text) !important; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.zero-page-block { margin-top: 48px; padding: 20px 24px; border: 2px solid var(--zp-line); border-radius: 8px; background: var(--zp-paper); }
.zero-page-block p:last-child { margin-bottom: 0; }
.zero-page-block a { color: var(--zp-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.zero-page-missing { margin-top: 48px; }
.zero-page-missing h2 { font-size: 22px; margin: 0 0 12px; }
.zero-page .zero-page-missing p { font-size: 16px; }
.zero-page-typical { list-style: disc; padding-left: 1.2em; margin: 12px 0; color: var(--zp-body); }

@media (max-width: 620px) {
  .zero-page-body { padding-block: 40px 64px; }
  .zero-page-wrap { padding-inline: 16px; }
  .zero-page-state select, .zero-page-state button { width: 100%; }
}
