/*
 * Nexoraa Employee Portal. Brand colours follow the expense portal (nexoraa-expense-travel, docs/design/brand.md).
 * Text and control colours meet WCAG 2.2 AA contrast; brand amber and peach are never used for text on white.
 */
:root {
  --brand-navy: #090d16;
  --brand-amber: #f9c160;
  --brand-peach: #efa070;
  --brand-violet: #9b6fc2;
  --brand-indigo: #6b6cd6;
  --brand-gradient: linear-gradient(90deg, var(--brand-amber), var(--brand-peach), var(--brand-violet), var(--brand-indigo));
  --bg: #f4f5f8;
  --surface: #ffffff;
  --ink: #11151f;
  --muted: #4b5263;
  --border: #d5d9e1;
  --primary: #3f3fa8;
  --primary-hover: #2e2e86;
  --primary-soft: #ececfa;
  --focus: #3f3fa8;
  --focus-on-dark: #f9c160;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(9, 13, 22, 0.06), 0 1px 3px rgba(9, 13, 22, 0.08);
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
h1 { font-size: 1.6rem; font-weight: 650; line-height: 1.25; margin: 0 0 0.5rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 10;
  background: var(--surface); color: var(--primary); padding: 8px 12px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

.topbar { background: var(--brand-navy); color: #ffffff; }
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #ffffff; text-decoration: none; min-height: 44px; }
.brand:hover { color: #ffffff; }
.brand:focus-visible, .account :focus-visible { outline-color: var(--focus-on-dark); }
.brand-logo { display: block; width: 29px; height: 32px; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.01em; }
.brand-product { font-size: 0.95rem; color: #d6d9e3; border-left: 1px solid #3a4152; padding-left: 10px; }
.brand-rule { height: 3px; background: var(--brand-gradient); }

.account { display: flex; align-items: center; gap: 12px; }
.account-name { color: #d6d9e3; font-size: 0.95rem; }
.account form { margin: 0; }
.button-quiet {
  font: inherit; font-size: 0.95rem; color: #ffffff; background: transparent;
  border: 1px solid #8a93a8; border-radius: var(--radius); padding: 8px 14px; min-height: 44px; cursor: pointer;
}
.button-quiet:hover { background: #1a2130; }

.page { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px 16px 48px; }
.lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 24px; }

.tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.tile {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
}
.tile:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(9, 13, 22, 0.12); color: var(--ink); }
.tile-icon {
  width: 44px; height: 44px; padding: 8px; margin-bottom: 6px; border-radius: var(--radius);
  background: var(--primary-soft); color: var(--primary);
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.tile-title { font-weight: 650; font-size: 1.1rem; color: var(--primary); }
.tile-description { color: var(--muted); }

.panel {
  max-width: 560px; margin: 24px auto; padding: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.button {
  display: inline-block; padding: 10px 18px; min-height: 44px; border-radius: var(--radius);
  background: var(--primary); color: #ffffff; text-decoration: none; font-weight: 600;
}
.button:hover { background: var(--primary-hover); color: #ffffff; }

.footer { color: var(--muted); font-size: 0.9rem; text-align: center; padding: 16px; border-top: 1px solid var(--border); }
.footer p { margin: 0; }

@media (max-width: 560px) {
  .brand-product { display: none; }
  .account-name { display: none; }
  h1 { font-size: 1.35rem; }
}
