:root {
  --ink: #17211d;
  --muted: #64716b;
  --line: #dfe5e1;
  --soft: #f3f6f4;
  --surface: #ffffff;
  --accent: #087f5b;
  --accent-strong: #066b4d;
  --accent-soft: #e7f4ee;
  --dark: #10231c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #f7f9f8;
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 64px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--dark);
  border-left: 4px solid var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.04em;
}

.brand > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-size: 14px; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: 12px; }

.employee-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid #c9e7da;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
}

.employee-badge svg { width: 17px; height: 17px; }

.shell {
  width: min(1480px, 100%);
  min-height: calc(100vh - 142px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  padding: 42px 28px 48px;
  border-right: 1px solid var(--line);
  background: #f2f5f3;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.sidebar-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }

.category-nav {
  display: grid;
  gap: 6px;
  margin-top: 24px;
}

.category-nav button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #53615b;
  text-align: left;
  cursor: pointer;
}

.category-nav button span { font-size: 14px; }
.category-nav button strong { min-width: 26px; text-align: right; font-size: 12px; color: #85918b; }
.category-nav button:hover { background: #e8eeea; color: var(--ink); }
.category-nav button.active { background: var(--surface); border-color: var(--line); border-left: 3px solid var(--accent); color: var(--ink); font-weight: 700; }
.category-nav button.active strong { color: var(--accent); }

.support-box {
  margin-top: 38px;
  padding: 20px;
  background: var(--dark);
  color: #fff;
}

.support-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: #1f4538;
  color: #87dab9;
}

.support-box strong { display: block; font-size: 15px; }
.support-box p { margin: 8px 0 16px; color: #bdd0c8; font-size: 12px; line-height: 1.55; }
.support-box a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; }
.support-box a:hover { color: #87dab9; }
.support-box a svg { width: 15px; height: 15px; }

.content { padding: 46px clamp(24px, 4vw, 64px) 64px; }

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.intro h1 { max-width: 700px; margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.045em; }
.intro p { max-width: 680px; margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.summary { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.summary div { min-width: 128px; padding: 16px 20px; }
.summary div + div { border-left: 1px solid var(--line); }
.summary strong { display: block; color: var(--accent-strong); font-size: 24px; line-height: 1; }
.summary span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }

.search-row { margin-top: 34px; }

.search-box {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid #cfd8d3;
  box-shadow: 0 7px 20px rgba(16, 35, 28, .05);
}

.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8, 127, 91, .12); }
.search-box svg { color: #7d8a84; flex: 0 0 auto; }
.search-box input { width: 100%; height: 56px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: #8c9792; }
.search-box button { width: 34px; height: 34px; border: 0; background: transparent; color: #78847e; font-size: 24px; cursor: pointer; }

.mobile-categories { display: none; }

.results-head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
}

.results-head > div { display: flex; align-items: baseline; gap: 12px; }
.results-head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.results-head span { color: var(--muted); font-size: 12px; }
.source-label { padding-left: 16px; border-left: 3px solid var(--accent); }

.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 22px; }

.download-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.download-card:hover { transform: translateY(-2px); border-color: #b7c6bf; box-shadow: 0 10px 28px rgba(24, 46, 38, .08); }
.card-top { min-height: 58px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.file-icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); border-left: 3px solid var(--accent); overflow: hidden; }
.file-icon.has-image { background: #fff; border: 1px solid var(--line); }
.file-icon img { width: 50px; height: 50px; display: block; object-fit: contain; }
.file-icon svg { width: 22px; height: 22px; }
.recommended { padding: 6px 8px; background: #eef2ef; color: #58655f; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.card-copy { margin-top: 20px; }
.category-label { color: var(--accent-strong); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-copy h3 { margin: 7px 0 8px; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.card-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.file-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding: 18px 0 14px; color: #78847e; font-size: 10px; }

.download-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: background .18s ease;
}

.download-button:hover { background: var(--accent-strong); }
.download-button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(8, 127, 91, .28); outline-offset: 2px; }
.download-button svg { width: 17px; height: 17px; }

.empty-state { margin-top: 22px; padding: 70px 24px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.empty-state > svg { width: 34px; height: 34px; color: var(--accent); }
.empty-state h3 { margin: 15px 0 6px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }
.empty-state button { margin-top: 18px; padding: 10px 16px; border: 0; background: var(--dark); color: #fff; cursor: pointer; }

footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(22px, 4vw, 64px);
  background: var(--dark);
  color: #b9cbc4;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { align-items: flex-start; flex-direction: column; gap: 24px; }
}

@media (max-width: 820px) {
  .topbar { height: 70px; }
  .employee-badge span { display: none; }
  .shell { display: block; }
  .sidebar { display: none; }
  .content { padding-top: 30px; }
  .intro h1 { font-size: 38px; }
  .summary { width: 100%; }
  .summary div { min-width: 0; }
  .mobile-categories { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .mobile-categories button { min-height: 38px; flex: 0 0 auto; padding: 0 13px; border: 1px solid var(--line); background: var(--surface); color: #56635d; font-size: 12px; cursor: pointer; }
  .mobile-categories button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
  .source-label { display: none; }
}

@media (max-width: 580px) {
  .brand small { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .content { padding-left: 16px; padding-right: 16px; }
  .intro h1 { font-size: 32px; }
  .intro p { font-size: 14px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { min-height: 306px; }
  .results-head { min-height: 74px; }
  .results-head > div { display: block; }
  .results-head span { display: block; margin-top: 4px; }
  .file-meta { font-size: 9px; }
  footer { flex-direction: column; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
