/* Layout mirror of @strongtechnical/ui AdminLayout / NavLinks / ThemeToggle.
   Colours come only from globals.css tokens. Tailwind utilities are not compiled here. */
/* Blake kept the SYNC Contact faces (wwwroot/fonts) instead of the kit's variable fonts. */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Montserrat", "Inter", system-ui, sans-serif;
  --page: var(--bg-wash);
  --ink: var(--fg);
  --heading: var(--fg);
  --soft: var(--bg-wash);
  --accent-dark: var(--accent-deep);
  --breach: var(--bad);
  --teal: var(--ok);
  --amber: var(--warn);
  --info: var(--accent);
  --font: var(--font-sans);
  --heading-font: var(--font-heading);
  --shadow: none;
  --pop: none;
  --menu: var(--card);
  --menu-ink: var(--fg);
}

.sts-header {
  position: relative;
  border-bottom: 3px solid var(--accent);
  background: var(--header);
  color: var(--header-foreground);
}
.sts-header-row {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.6rem 1rem;
}
.sts-fold { display: contents; }
.sts-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.sts-brand:hover { text-decoration: none; }
.sts-brand img { height: 40px; width: auto; }
.sts-product {
  border-left: 1px solid var(--line);
  padding-left: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sts-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.sts-nav-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--surface);
  color: var(--foreground);
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.sts-nav-link:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand-deep);
  text-decoration: none;
}
.sts-nav-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.sts-nav-link[aria-current="page"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-foreground);
}
.sts-tools {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.sts-user { color: var(--muted); }
.theme-toggle { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 0.375rem; }
.theme-toggle button {
  border: 0;
  background: var(--card);
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.theme-toggle button[aria-checked="true"] {
  background: var(--accent);
  color: var(--on-accent);
}
.sts-main { max-width: 80rem; margin: 0 auto; width: 100%; flex: 1; padding: 1.5rem 1rem; }
.sts-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.75rem 1rem 1.25rem;
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
}
.sts-menu-btn { display: none; }

.splash-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg-wash);
  padding: 2rem 1rem 4rem;
}
.splash-card {
  width: min(26rem, 100%);
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
}
.splash-card img { height: 48px; width: auto; }
.splash-card h1 { margin: 0; }
.splash-tag { margin: 0; color: var(--muted); }
.splash-card .banner, .splash-card p, .splash-card form { width: 100%; text-align: left; }
.splash-card form { display: grid; gap: 0.6rem; }
.splash-foot { color: var(--muted); font-size: 0.8rem; }
.splash-theme { position: fixed; right: 1rem; bottom: 1rem; }
.ms-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 41px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #8c8c8c;
  color: #5e5e5e;
  font-family: "Segoe UI", var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.ms-signin:hover { background: #f2f2f2; text-decoration: none; color: #5e5e5e; }
html[data-theme="dark"] .ms-signin {
  background: #2f2f2f;
  color: #fff;
  border-color: #8c8c8c;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .ms-signin {
    background: #2f2f2f;
    color: #fff;
    border-color: #8c8c8c;
  }
}
@media (max-width: 767px) {
  .sts-menu-btn { display: inline-flex; margin-left: auto; }
  .sts-fold { display: none; width: 100%; flex-direction: column; gap: 0.75rem; padding-top: 0.5rem; }
  .sts-fold.is-open { display: flex; }
  .sts-tools { margin-left: 0; }
}
