/* SysCare client portal. Roboto self-hosted, navy #1D5482 family, pearl background. */

@font-face {
  font-family: 'Roboto';
  src: url('/static/fonts/roboto-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/static/fonts/roboto-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/static/fonts/roboto-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1d5482;
  --navy-dark: #143c5e;
  --navy-ink: #1b3a57;
  --pearl: #f6f5f1;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #4a5663;
  --rule: #d8dce2;
  --focus: #f2a900;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--pearl);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap { width: 100%; max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { color: var(--navy-dark); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; padding: 0.5rem 0.75rem;
  background: var(--navy-dark); color: #fff; z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

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

.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0.75rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand img { display: block; width: 200px; height: auto; max-width: 60vw; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { font-weight: 500; text-decoration: none; padding: 0.25rem 0; }
.site-nav a[aria-current='page'] { border-bottom: 2px solid var(--navy); }
.inline-form { display: inline; margin: 0; }

main { flex: 1; padding-top: 1.5rem; padding-bottom: 2.5rem; }
main:focus { outline: none; }

h1 { font-size: 1.75rem; font-weight: 500; color: var(--navy-ink); margin: 0.5rem 0 1rem; }
h2 { font-size: 1.25rem; font-weight: 500; color: var(--navy-ink); margin: 0; }
.lead { font-size: 1.125rem; }

.button, .link-button {
  font: inherit; cursor: pointer;
}
.button {
  display: inline-block; padding: 0.55rem 1.1rem; border-radius: 4px;
  background: var(--navy); color: #fff; border: 2px solid var(--navy);
  font-weight: 500; text-decoration: none; white-space: nowrap;
}
.button:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.button.secondary { background: transparent; color: var(--navy); }
.button.secondary:hover { background: var(--navy); color: #fff; }
.link-button {
  background: none; border: 0; padding: 0.25rem 0; color: var(--navy);
  font-weight: 500; text-decoration: underline; text-underline-offset: 0.15em;
}

.month { border-top: 1px solid var(--rule); padding: 1.25rem 0; }
.month-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0.75rem; margin-bottom: 0.75rem;
}
.empty { color: var(--muted); margin: 0.5rem 0 0; }

.report-list { list-style: none; margin: 0; padding: 0; }
.report {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--rule);
}
.report:last-child { border-bottom: 0; }
.report-text { display: flex; flex-direction: column; min-width: 0; }
.report-title { font-weight: 500; overflow-wrap: anywhere; }
.report-meta { color: var(--muted); font-size: 0.9375rem; }

.details { margin: 0 0 1.5rem; }
.details div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.details dt { font-weight: 500; color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }

.notice { border-left: 4px solid var(--navy); padding: 0.25rem 0 0.25rem 0.75rem; }
.dev-note { color: var(--muted); font-size: 0.9375rem; }
.preset-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.stack { display: flex; flex-direction: column; gap: 0.35rem; max-width: 28rem; }
.stack input { font: inherit; padding: 0.4rem 0.5rem; border: 1px solid var(--muted); border-radius: 4px; }
.stack button { margin-top: 0.75rem; align-self: flex-start; }

.site-footer { background: var(--surface); border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9375rem; }
.site-footer p { margin: 0.5rem 0; }
.site-footer .wrap { padding-top: 0.75rem; padding-bottom: 0.75rem; }

@media (max-width: 36rem) {
  h1 { font-size: 1.5rem; }
  .report { flex-direction: column; align-items: flex-start; }
  .details div { grid-template-columns: 1fr; gap: 0.1rem; }
}

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