/* Palette, type, and radii mirror the app's Tailwind theme tokens in
   frontend/app/globals.css, light side only. The page is a public document
   making control assertions, and it reads the same to every viewer and in
   every screenshot attached to a questionnaire. `color-scheme: light` keeps
   the search field from being painted dark by the browser. */
:root {
  --surface:      #F7F6F3; /* ivory */
  --surface-card: #FBFAF7; /* linen */
  --surface-chip: #F9FAFB; /* gray-50 */
  --chip-hover:   #F3F4F6; /* gray-100 */
  --border:       #E5E7EB; /* gray-200 */
  --text:         #111827; /* gray-900 */
  --text-muted:   #4B5563; /* gray-600 */
  --link:         #8E7644; /* gold-700 */
  --badge-bg:     #E8ECF2; /* navy-50 */
  --badge-fg:     #050F1F; /* navy-900 */
  --wordmark:     #0B1F3B; /* navy-700 */
  --gold:         #C2A46B; /* gold-500 */
  --check:        #16A34A; /* green-600 */
  --focus:        #1F3A66; /* navy-500 */
  --shadow:       0 1px 2px 0 rgb(0 0 0 / .05);

  --font-sans:    "Open Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-heading: "Inter", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

header.top { background: var(--surface-card); border-bottom: 1px solid var(--border); }
.ident { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 0; }
.brand { display: flex; align-items: center; }
/* The lockup links home; the badge beside it does not, so the link's accessible
   name is the wordmark alone rather than "PRESERVUS.io Trust Center". */
.brand-link {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none; transition: opacity .15s;
}
.brand-link:hover { opacity: .75; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: .05em; color: var(--wordmark);
}
.wordmark .us { color: var(--gold); }
.wordmark .tld { font-size: .6em; font-weight: 400; }
.badge {
  margin-left: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; padding: 2px 6px; border-radius: 4px;
  background: var(--badge-bg); color: var(--badge-fg);
}
.ident-links { display: flex; flex-direction: column; gap: 2px; font-size: 14px; text-align: right; }
.ident-links a { color: var(--link); text-decoration: none; }
.ident-links a:hover { text-decoration: underline; }

main { padding: 40px 0 72px; }
[hidden] { display: none !important; }

h1.panel-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 0; }
p.panel-note { font-size: 14px; color: var(--text-muted); margin: 4px 0 0; max-width: 62ch; }

.toolbar { margin-top: 24px; }
input[type="search"] {
  font: inherit; font-size: 14px; color: var(--text);
  background: var(--surface-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; width: 320px; max-width: 100%;
}
input[type="search"]::placeholder { color: var(--text-muted); }
input[type="search"]:focus { outline: none; box-shadow: 0 0 0 2px var(--focus); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.chip {
  font-size: 12px; font-weight: 500; text-decoration: none; color: var(--text-muted);
  background: var(--surface-chip); border: 1px solid var(--border); border-radius: 9999px;
  padding: 4px 12px; transition: background-color .15s, color .15s;
}
.chip:hover { background: var(--chip-hover); color: var(--text); }

.cat { margin-top: 36px; scroll-margin-top: 20px; }
.cat h2 {
  font-family: var(--font-heading); font-size: 12px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; }
.ctl {
  background: var(--surface-card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 16px 18px;
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start;
}
.ctl svg { width: 18px; height: 18px; margin-top: 3px; color: var(--check); }
.ctl h3 { font-family: var(--font-heading); font-size: 14px; font-weight: 600; margin: 0; }
.ctl p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 4px 0 0; }
.empty { font-size: 14px; color: var(--text-muted); margin-top: 32px; }

footer.end {
  border-top: 1px solid var(--border); padding: 20px 0 40px; font-size: 12px; color: var(--text-muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

@media (max-width: 640px) {
  .ident-links { text-align: left; }
}
