/* THIG Portal — the portal look everywhere (Ido, 2026-11-26): tokens + recipes in ../shared/theme.css, copied from the
   running Lovable portal. This file only lays out the app; colours come from theme.css. */
*{box-sizing:border-box}
html,body{margin:0}
body{line-height:1.55}
a{color:var(--blue)}
button,input{font:inherit;color:inherit}
button{background:none;border:0;padding:0;cursor:pointer}
button:disabled{cursor:default;opacity:.55}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}
.wrap{max-width:1120px;margin:0 auto;padding:0 16px}
.narrow{max-width:440px}
.center{margin:48px auto}
.quiet{color:var(--muted)} .small{font-size:13px} .err{color:var(--error)} .warn{color:var(--warn);font-weight:600}
h1{font-family:var(--font-display);font-size:24px;font-weight:600;letter-spacing:-.015em;line-height:1.15;margin:0 0 8px}
h2{font-size:15px;margin:0}
.label{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);margin:0 0 6px;display:block}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}
.signin{padding:24px;display:flex;flex-direction:column;gap:10px}
.signin h1{margin-top:8px}
.signin [role=status]:empty{display:none}
.phone-only{display:none}
label{font-weight:700;font-size:13px}
input[type=email],input[type=search],input:not([type]){border:1px solid var(--line);background:var(--input-bg);border-radius:var(--radius-sm);min-height:44px;padding:0 12px;width:100%}
.primary{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);color:var(--primary-foreground);border-radius:var(--radius-sm);padding:0 16px;min-height:44px;font-weight:700;text-decoration:none}
.primary:hover:not(:disabled){background:var(--blue-hover)}
.secondary{border:1px solid var(--line);background:var(--card);color:var(--blue);border-radius:var(--radius-sm);padding:0 14px;min-height:44px;font-weight:700}
.link{color:var(--blue);font-weight:600;text-decoration:underline;text-underline-offset:3px;min-height:32px}
.brandline{display:flex;align-items:center;gap:12px;font-family:var(--font-display);font-weight:600;font-size:19px}
.mark{width:32px;height:32px;border-radius:8px;background:var(--rail-active);color:#fff;display:grid;place-items:center;font-family:var(--font-display);font-weight:600}

/* QA bar */
.qabar{background:#0d1822;color:#E9E6DD;font-size:13px;display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center;padding:6px 16px}
.qabar a{color:#B8B3A6;text-decoration:none;min-height:32px;display:inline-flex;align-items:center}
.qabar a[aria-current]{color:#fff;text-decoration:underline;text-underline-offset:4px}

.page{max-width:880px;padding:36px 28px 72px}
.note{background:var(--blue-soft);color:var(--blue-ink);border-radius:var(--radius-sm);padding:12px 14px;margin:8px 0 24px}
.block{margin-top:24px}
.results,.links{list-style:none;margin:8px 0 0;padding:0;background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}
.results:empty{display:none}
.results li,.links li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:10px 14px;border-top:1px solid var(--line)}
.results li:first-child,.links li:first-child{border-top:0}
.results a,.links a{font-weight:700;text-decoration:none}
.results a:hover,.links a:hover{text-decoration:underline}

/* public pages */
.pub{min-height:100vh;display:grid;place-items:center;padding:40px 16px}
.pubcard{width:100%;max-width:440px;padding:32px 28px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.pubcard p{margin:0}
.okmark{width:80px;height:80px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;font-size:40px;font-weight:700;margin:8px 0}
.ink{color:var(--ink)} .brk{word-break:break-all}
.rep{max-width:800px;margin:0 auto;padding:40px 24px 56px;background:#fff;min-height:100vh}
.rephead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid var(--line);padding-bottom:20px}
.rephead p{margin:2px 0 0}
.repsec{margin-top:28px}
.repsec h2{margin-bottom:8px}
.reptable{width:100%;border-collapse:collapse;font-size:13.5px}
.reptable th{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);text-align:left;padding:8px 10px 8px 0;border-bottom:1px solid var(--line)}
.reptable td{padding:8px 10px 8px 0;border-bottom:1px solid #EEE9DE;vertical-align:top}
.reptable .num{text-align:right;font-variant-numeric:tabular-nums}
.reptable tfoot td{border-top:2px solid var(--ink);border-bottom:0;font-weight:700}
.grand{text-align:right;font-weight:700;font-size:15px;margin-top:20px}
.repfoot{margin-top:40px;border-top:1px solid var(--line);padding-top:16px}
@media print{.noprint{display:none!important}.rep{padding:0}}
@media (max-width:600px){
  .rep{padding:24px 16px 40px}
  .reptable thead{display:none}
  .reptable tr{display:block;border:1px solid var(--line);border-radius:8px;padding:8px 12px;margin-bottom:8px}
  .reptable td{display:flex;justify-content:space-between;gap:12px;border:0;padding:3px 0}
  .reptable td::before{content:attr(data-l);color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
  .reptable .num{text-align:right}
  .reptable tfoot{display:block}
  .reptable tfoot tr{display:flex;justify-content:space-between;border:0;border-top:2px solid var(--ink);border-radius:0;padding:8px 0 0;margin:0}
  .reptable tfoot td{display:block;padding:0;border:0}
  .reptable tfoot td::before{content:none}
}

@media (max-width:800px){
  .page{padding:20px 16px 48px}
  .phone-only{display:block}
}

/* serif display (Fraunces) for page titles, card titles and big numbers — as in the Lovable portal */
.hm-month,.hm-big b,.av-issue h2,.sd-h2,.ds h2,.st-sec h2,.sheet-h h2,.psec-h h3,.hhead,.csec.col h2,.tx-h,
.cdlg h2,.sd-dialog h2,.ds-dlgf h2,.sc-cele h2,.sc-dialog h2,.chtitle h1{font-family:var(--font-display);font-weight:600;letter-spacing:-.01em}
.hm-month{font-size:22px}
.hm-big b{font-size:20px}
