/* daiologue.ie hub -- one small stylesheet, light and dark. */
:root {
  --bg: #f6f7fb; --surface: #ffffff; --ink: #14161f; --muted: #5b6072; --line: #dfe2ec;
  --accent: #4f46e5; --accent-ink: #ffffff; --accent-soft: #eef0ff;
  --ok: #0f7b4f; --ok-soft: #e6f6ee; --warn: #8a5a00; --warn-soft: #fff4dc; --err: #b42318; --err-soft: #fdecea;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1016; --surface: #171a23; --ink: #eceef5; --muted: #a2a8ba; --line: #2b303d;
    --accent: #8b8cf8; --accent-ink: #0e1016; --accent-soft: #23264a;
    --ok: #5fd6a0; --ok-soft: #12291f; --warn: #f2c063; --warn-soft: #2d2410; --err: #ff8f84; --err-soft: #331614;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.hub-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hub-brand { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.3px; }
.hub-brand span { color: #6366f1; }
.hub-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hub-nav form { margin: 0; }
.hub-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.hub-nav a { min-height: 44px; display: inline-flex; align-items: center; }

.hub-main { max-width: 880px; margin: 0 auto; padding: 28px 16px 48px; }
.hub-narrow { max-width: 460px; }
h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 16px; letter-spacing: -.3px; }
h2 { font-size: 19px; margin: 0 0 12px; }
.hub-lead { font-size: 18px; color: var(--muted); }
.hub-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; }

.hub-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.hub-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.hub-dl dt { color: var(--muted); }
.hub-dl dd { margin: 0; overflow-wrap: anywhere; }

.hub-form { display: grid; gap: 6px; margin: 0 0 20px; }
.hub-form label { font-weight: 600; margin-top: 10px; }
.hub-form input[type=email], .hub-form input[type=password], .hub-form input[type=text], .hub-form input:not([type]),
.hub-form select, .hub-form textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; min-height: 44px;
}
.hub-form [aria-invalid=true] { border-color: var(--err); }
.hub-check { display: flex; align-items: center; gap: 10px; font-weight: 400 !important; min-height: 44px; }
.hub-check input { width: 20px; height: 20px; }
.hub-hint { margin: 0; color: var(--muted); font-size: 14px; }
.hub-field-err { margin: 0; color: var(--err); font-size: 14px; }

.hub-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; margin-top: 14px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.hub-btn-quiet { background: var(--accent-soft); color: var(--accent); }
.hub-btn-danger { background: var(--err); color: #fff; }
.hub-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hub-actions .hub-btn { margin-top: 0; }

.hub-note { border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; border: 1px solid transparent; }
.hub-note-ok   { background: var(--ok-soft);   border-color: var(--ok);   }
.hub-note-warn { background: var(--warn-soft); border-color: var(--warn); }
.hub-note-err  { background: var(--err-soft);  border-color: var(--err);  }

.hub-table { width: 100%; border-collapse: collapse; }
.hub-table th, .hub-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hub-table th { color: var(--muted); font-weight: 600; font-size: 14px; }
.hub-scroll { overflow-x: auto; }
.hub-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.hub-pill-off { background: var(--line); color: var(--muted); }

@media (max-width: 520px) {
  h1 { font-size: 24px; }
  .hub-dl { grid-template-columns: 1fr; gap: 0; }
  .hub-dl dd { margin-bottom: 10px; }
}
.hub-inline { display: inline; margin: 0 12px 0 0; }
.hub-consent { background: var(--accent-soft); border-radius: 8px; padding: 12px 14px; margin: 14px 0 4px; }
.hub-card ul { margin: 0 0 12px; padding-left: 20px; }
