/* Single-column pages: sign-in, account, event page, notification settings.
   Uses the colour and type tokens from site.css; class names start with pg-
   so they stay clear of the calendar's styles. */
.pg { max-width: 760px; margin: 0 auto; padding: 32px var(--pad, 16px) 64px; display: flex; flex-direction: column; gap: 18px; }
.pg--wide { max-width: 980px; }
.pg h1 { font-family: var(--font-display); font-style: var(--display-style); font-weight: var(--display-weight); font-size: 34px; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.pg h2 { font-size: 20px; font-weight: var(--heading-weight); margin-top: 10px; }
.pg-lead { font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.pg-note { font-size: 14px; color: var(--muted); max-width: 60ch; }
.pg-error { font-size: 14px; font-weight: 700; color: var(--error); }

.pg-messages { display: flex; flex-direction: column; gap: 8px; }
.pg-message { padding: 10px 14px; border-radius: var(--radius-control); border: 1px solid var(--open-line); background: var(--open-bg); color: var(--open-ink); font-weight: 600; }
.pg-message--error, .pg-message--warning { border-color: var(--amber-line); background: var(--amber-bg); color: var(--amber-ink); }

.pg-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.pg-form { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.pg-field { display: flex; flex-direction: column; gap: 6px; }
.pg-field label, .pg-legend { font-weight: 700; font-size: 15px; }
.pg-field input[type="email"], .pg-field input[type="text"], .pg-field select {
  min-height: 48px; padding: 0 12px; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--control-border); border-radius: var(--radius-control); width: 100%;
}
.pg-field input[aria-invalid="true"] { border-color: var(--error); }
.pg-submit { min-height: 48px; padding: 0 22px; font-size: 16px; font-family: inherit; cursor: pointer; align-self: flex-start; }
.pg-linkbutton { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

.pg-checks { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pg-check {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface);
}
.pg-check:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.pg-check:has(input:disabled) { opacity: 0.6; cursor: not-allowed; }
.pg-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--accent-fill); }
.pg-check span { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.pg-check small { font-size: 13.5px; font-weight: 400; color: var(--muted); }

.pg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 14px 24px; }
.pg-facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pg-facts dd { margin: 2px 0 0; font-weight: 600; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-chips li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--control-border); background: var(--surface); font-size: 13.5px; font-weight: 600; }

.pg-list { display: flex; flex-direction: column; gap: 10px; }
.pg-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.pg-item__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.pg-item__title { font-weight: 700; font-size: 17px; color: var(--ink); }
.pg-item__meta { font-size: 14px; color: var(--ink-2); }

.pg-rows { border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.pg-rows li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.pg-rows li:last-child { border-bottom: 0; }
.pg-rows__label { flex: 1 1 200px; font-weight: 700; }
.pg-rows__now { flex: 1 1 160px; font-weight: 600; }
.pg-rows__then { flex: 1 1 220px; color: var(--ink-2); }
.pg-rows__tag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 600; background: var(--neutral-bg); border: 1px solid var(--neutral-line); color: var(--ink-2); }

@media (max-width: 599px) {
  .pg { padding-top: 20px; }
  .pg h1 { font-size: 27px; }
  .pg-submit { align-self: stretch; }
}

/* Organiser forms */
.pg-form--wide { max-width: none; }
.pg-group { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: 14px 18px 18px; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pg-group legend { padding: 0 6px; font-weight: 700; font-size: 17px; }
.pg-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px 16px; align-items: start; }
.pg-row--option { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.pg-field small { font-weight: 400; color: var(--muted); }
.pg-field input[type="date"], .pg-field input[type="time"], .pg-field input[type="number"], .pg-field input[type="url"], .pg-field textarea {
  min-height: 48px; padding: 0 12px; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--control-border); border-radius: var(--radius-control); width: 100%;
}
.pg-field textarea { padding: 10px 12px; min-height: 150px; line-height: 1.45; }
.pg-field--off input, .pg-field--off textarea, .pg-field--off select { background: var(--surface-2); color: var(--muted); }
.pg-inline { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.pg-inline input { width: 20px; height: 20px; accent-color: var(--accent-fill); }
.pg-prose { max-width: 70ch; }
.pg-prose p + p { margin-top: 10px; }

/* Packages */
.pg-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; align-items: stretch; }
.pg-tier { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.pg-tier--recommended { border: 2px solid var(--accent); box-shadow: 0 8px 24px rgba(10, 14, 22, 0.12); }
.pg-tier__badge { position: absolute; top: -12px; left: 18px; padding: 2px 10px; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent); font-size: 12.5px; font-weight: 700; }
.pg-tier h2 { margin: 0; }
.pg-tier__price { font-family: var(--font-display); font-style: var(--display-style); font-weight: var(--display-weight); font-size: 26px; }
.pg-tier__price small { font-family: var(--font-body); font-style: normal; font-weight: 400; font-size: 14px; color: var(--muted); }
.pg-tier__points { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.pg-tier__points li { padding-left: 22px; position: relative; }
.pg-tier__points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Price steps of one distance */
.pg-option { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.pg-option:last-of-type { border-bottom: 0; }
.pg-steps { width: 100%; border-collapse: collapse; }
.pg-steps th { text-align: left; font-size: 13.5px; font-weight: 700; color: var(--ink-2); padding: 0 8px 4px 0; }
.pg-steps th small { font-weight: 400; color: var(--muted); }
.pg-steps tbody th { width: 2.2em; vertical-align: middle; }
.pg-steps td { padding: 0 8px 8px 0; vertical-align: top; }
.pg-steps td:last-child { padding-right: 0; }
.pg-steps input {
  min-height: 44px; padding: 0 10px; width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--control-border); border-radius: var(--radius-control);
}
.pg-steps tr[hidden] { display: none; }
@media (max-width: 599px) {
  /* Each step becomes a small block: price and date side by side, note below. */
  .pg-steps thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pg-steps tbody tr { display: grid; grid-template-columns: 1.6em 1fr 1fr; gap: 6px 8px; padding-bottom: 10px; }
  .pg-steps tbody th { width: auto; }
  .pg-steps td { padding: 0; }
  .pg-steps td:last-child { grid-column: 2 / -1; }
}
.pg-tier__launch { font-size: 14px; color: var(--ink-2); margin-top: -6px; }
.pg-tier__launch strong { color: var(--amber-ink); background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 4px; padding: 0 6px; }

/* Text pages written in Markdown (about, terms, privacy) and organisers' descriptions */
.pg-prose { display: flex; flex-direction: column; gap: 12px; line-height: 1.6; }
.pg-prose p + p { margin-top: 0; }
.pg-prose h2 { margin-top: 14px; }
.pg-prose h3 { font-size: 17px; font-weight: var(--heading-weight); margin-top: 6px; }
.pg-prose ul, .pg-prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.pg-prose ul { list-style: disc; }
.pg-prose ol { list-style: decimal; }
.pg-prose blockquote { margin: 0; padding: 10px 14px; border-left: 4px solid var(--amber-line); background: var(--amber-bg); color: var(--amber-ink); border-radius: 0 8px 8px 0; }
.pg-prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.pg-prose th, .pg-prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.pg-prose th { background: var(--surface-2); }
.pg-consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.pg-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--accent-fill); }
.pg-consent span { display: flex; flex-direction: column; gap: 2px; }
.pg-consent small { font-size: 13.5px; color: var(--muted); }

/* Form challenge */
.captcha { display: flex; flex-direction: column; gap: 6px; }
.captcha__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha__question[hidden] { display: none; }
/* With JavaScript the work is done silently, so the question never flashes up; it appears only if that is not possible. */
.js .captcha:not([data-fallback]) .captcha__question { display: none; }
.captcha__question input { max-width: 120px; }
