@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --forest: #1B4332;
  --leaf: #52A675;
  --leaf-dark: #2F7A54;
  --leaf-light: #8FC9A9;
  --amber: #E8A33D;
  --bark: #6B4F3B;
  --mist: #F3F6F1;
  --ink: #1F2A22;
  --ink-soft: #55645A;
  --line: #DCE5DD;
  --error: #B3261E;
  --success: #2F6B3A;
  --radius: 16px;
  --shadow: 0 6px 28px rgba(27, 67, 50, 0.10);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--mist);
  color: var(--ink);
  margin: 0;
  padding: 24px;
  line-height: 1.5;
}

h1, h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --- Hero: the emotional open, used on employee-facing pages --- */
.hero {
  max-width: 640px;
  margin: 0 auto 20px;
  background: linear-gradient(180deg, var(--forest) 0%, #163a2b 100%);
  border-radius: 20px;
  padding: 32px 28px 24px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero img { width: 140px; height: auto; margin-bottom: 8px; }
.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf-light);
  margin-bottom: 6px;
}
.hero h1 {
  font-size: 28px;
  font-style: italic;
  margin: 0 0 8px;
  color: #fff;
}
.hero p {
  font-size: 15px;
  color: #D9EAE0;
  margin: 0;
  max-width: 440px;
  margin-inline: auto;
}

/* --- Motivational strip: shorter banner for functional pages --- */
.motivate {
  max-width: 640px;
  margin: 0 auto 16px;
  background: #EAF3EC;
  border-left: 3px solid var(--leaf);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--forest);
}
.motivate b { color: var(--leaf-dark); }

/* --- Tree ring badge: the signature motif for stats/counts --- */
.ring-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.ring-badge svg { width: 100%; height: 100%; }
.ring-badge .ring-value {
  position: absolute;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 15px;
  color: var(--forest);
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  max-width: 640px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
h1 { font-size: 22px; margin: 0 0 16px; color: var(--forest); }
h2 { font-size: 18px; margin: 0 0 12px; color: var(--forest); }
label { display: block; font-size: 13px; color: var(--ink-soft); margin: 14px 0 5px; font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(82, 166, 117, 0.18);
}
button {
  background: var(--leaf); color: #fff; border: none; border-radius: 10px;
  padding: 11px 20px; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 16px;
  font-family: 'Inter', sans-serif; transition: background 0.15s ease, transform 0.1s ease;
}
button:hover { background: var(--leaf-dark); }
button:active { transform: scale(0.98); }
button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
button:disabled { background: #B9C4BC; cursor: not-allowed; }
button.secondary { background: #fff; color: var(--forest); border: 1.5px solid var(--line); }
button.secondary:hover { background: var(--mist); }
button.small { padding: 7px 14px; font-size: 12px; margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}
.table-scroll table { min-width: 600px; }
td:nth-child(3), td:nth-child(6) { font-family: 'IBM Plex Mono', monospace; font-size: 12px; white-space: nowrap; }
a[href^="tel:"] { color: inherit; text-decoration: none; }

/* --- Mobile compact list: shown instead of the table below the breakpoint --- */
.mobile-list { display: none; }
.mobile-hint { display: none; font-size: 12px; color: var(--ink-soft); margin: 4px 0 0; }
.recipient-card {
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  min-height: 44px;
}
.recipient-card:active { background: var(--mist); }
.rc-main { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.rc-main b { color: var(--ink); }
.rc-type {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--leaf-dark); background: #EAF3EC; padding: 3px 9px; border-radius: 999px;
  white-space: nowrap;
}
.rc-sub { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.rc-code { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-soft); margin-top: 3px; }
.recipient-card .ring-badge { width: 44px; height: 44px; }
.recipient-card .ring-value { font-size: 12px; }

@media (max-width: 680px) {
  .table-scroll { display: none; }
  .mobile-list, .mobile-hint { display: block; }
}

@media (max-width: 480px) {
  body { padding: 14px; }
  .card { padding: 18px; border-radius: 14px; }
  .hero { padding: 24px 18px 18px; border-radius: 16px; }
  .hero h1 { font-size: 23px; }
  .hero img { width: 110px; }
  h1 { font-size: 20px; }
  .toolbar { gap: 8px; }
  .toolbar button, .toolbar label { flex: 1 1 auto; text-align: center; }
}
th {
  text-align: left; padding: 10px 8px; color: var(--ink-soft);
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 2px solid var(--line);
}
td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.error { color: var(--error); font-size: 13px; margin-top: 8px; }
.success { color: var(--success); font-size: 13px; margin-top: 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(27, 67, 50, 0.45);
  align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius); padding: 26px; width: 90%; max-width: 480px; max-height: 85vh; overflow-y: auto; }

a { color: var(--leaf-dark); }
