/* EireTax client portal (decision 0015). Copied tokens from app.css so the two sites share one
   look without importing each other's stylesheet. Mobile first: the base rules are for a 390px
   screen, and layout widens above 640px. WCAG 2.2 AA (docs/research/ui-ux-standards.md). */

@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(/fonts/figtree-400.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(/fonts/figtree-600.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(/fonts/figtree-700.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: url(/fonts/figtree-800.woff2) format('woff2'); }

:root {
  --green: #0F7A4D;
  --green-strong: #0A5C3A;
  --green-deep: #073D27;
  --mint: #E8F6EE;
  --mint-strong: #CDEBD9;
  --ink: #0F2436;
  --muted: #475467;
  --line: #D5DDD9;
  --line-soft: #E6ECE9;
  --bg: #F4F7F5;
  --surface: #FFFFFF;
  --red: #B3261E;
  --red-tint: #FBEAE8;
  --focus: #FFD84D;
  --radius: 14px;
  --shadow-1: 0 1px 2px rgba(15, 36, 54, .06), 0 1px 1px rgba(15, 36, 54, .04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EAF1EC; --muted: #A9B7AD; --bg: #0E1712; --surface: #16211B; --line: #26332B; --line-soft: #1E2A23;
    --mint: #123123; --mint-strong: #1B4230; --red-tint: #3A1613;
  }
}
:root[data-theme="dark"] {
  --ink: #EAF1EC; --muted: #A9B7AD; --bg: #0E1712; --surface: #16211B; --line: #26332B; --line-soft: #1E2A23;
  --mint: #123123; --mint-strong: #1B4230; --red-tint: #3A1613;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--green-strong); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: 0 0 0 5px var(--ink); border-radius: 4px; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }
h2 { font-size: 19px; font-weight: 700; margin: 0 0 12px; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.p-topbar { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.p-topbar-inner { max-width: 720px; margin: 0 auto; height: 60px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.p-brand { text-decoration: none; color: var(--ink); }
.p-link-btn { background: none; border: 0; padding: 8px; font: inherit; font-weight: 600; color: var(--green-strong); text-decoration: underline; cursor: pointer; min-height: 44px; }

main { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.p-footer { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 13px; }

.p-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 20px; }
.p-narrow { max-width: 440px; margin: 24px auto; }
.p-wide { max-width: 640px; margin: 0 auto; }
.p-lede { color: var(--muted); margin: 10px 0 20px; font-size: 16px; }
.p-eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.p-muted { color: var(--muted); }
.p-mt-24 { margin-top: 24px; }

.p-field { margin-bottom: 20px; }
.p-label { display: block; font-weight: 700; margin-bottom: 6px; }
.p-hint { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
.p-input, .p-textarea {
  width: 100%; min-height: 48px; padding: 0 14px; font: inherit; border: 2px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
}
.p-textarea { min-height: 110px; padding: 12px 14px; resize: vertical; }
.p-input:focus, .p-textarea:focus { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 0; }
input[type="file"].p-input { min-height: auto; padding: 10px 0; border: 0; }
.p-radio, .p-checkbox label { display: flex; align-items: center; gap: 10px; min-height: 44px; }

.p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  font: inherit; font-weight: 700; border-radius: 10px; border: 2px solid transparent; cursor: pointer; width: 100%;
}
@media (min-width: 480px) { .p-btn { width: auto; } }
.p-btn-primary { background: var(--green); color: #fff; }
.p-btn-primary:hover { background: var(--green-strong); }

.p-flash { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.p-flash.p-bad { background: var(--red-tint); color: var(--red); }

.p-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.p-list-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); background: var(--surface);
}
.p-list-item:hover { border-color: var(--green); background: var(--mint); }

.p-thread { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.p-msg { padding: 14px 16px; border-radius: 10px; background: var(--bg); }
.p-msg.client { background: var(--mint); }
.p-msg-meta { font-size: 13px; margin-bottom: 4px; }
.p-msg-body { white-space: pre-wrap; }

.p-dev-box { border: 2px dashed var(--muted); background: var(--bg); }

@media (max-width: 480px) { .p-topbar-inner, main, .p-footer { padding-left: 16px; padding-right: 16px; } }
