/* Shared chrome for careers.html and jobs.html. Style with fds.css tokens only. */

/* Brand bar sits outside FDS by design; shared with the rest of silmo.ai. */
:root {
  --brand-gradient: linear-gradient(
    90deg,
    #f8b325 0%,
    #49f6b5 36.06%,
    #3682fc 77.4%,
    #554aa8 100%
  );
  /* FDS has no layout-width tokens; this is the Figma content column. */
  --jobs-measure: 64rem;
  --jobs-gutter: var(--space-3xl);
  --site-inline: clamp(var(--space-l), 10vw, calc(var(--space-12xl) + var(--space-6xl)));
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background-primary);
  color: var(--content-primary);
  font-family: var(--text-family), system-ui, sans-serif;
  font-size: var(--text-body-m-regular-size);
  font-weight: var(--text-body-m-regular-weight);
  line-height: var(--text-body-m-regular-line-height);
  letter-spacing: var(--text-body-m-regular-letter-spacing);
  -webkit-font-smoothing: antialiased;
}

.top-bar {
  position: fixed;
  width: 100vw;
  top: 0;
  left: 0;
  height: 7px;
  background: var(--brand-gradient);
  background-size: 220% 100%;
  animation: sweep 8s ease-in-out infinite;
  z-index: 100;
}

@keyframes sweep {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  width: min(100% - 2 * var(--jobs-gutter), var(--jobs-measure));
  margin-inline: auto;
}

.logo {
  display: block;
  height: var(--space-xl);
  width: auto;
  color: var(--content-primary);
}

/* Button: mirrors the FDS Button (console/src/lib/components/ui/button), size medium. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: calc(var(--space-s) + var(--space-2xs)) calc(var(--space-l) + var(--space-xs));
  border: 0;
  border-radius: var(--border-radius-m);
  font-family: inherit;
  font-size: var(--text-body-m-medium-size);
  font-weight: var(--text-body-m-medium-weight);
  line-height: var(--text-body-m-medium-line-height);
  letter-spacing: var(--text-body-m-medium-letter-spacing);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
}
.btn:focus-visible { outline: var(--border-width-m) solid var(--border-mono); }
.btn--primary { background: var(--background-inverse); color: var(--content-primary-inverse); }
.btn--primary:hover { background: var(--content-secondary); }
.btn--primary:active { background: var(--content-tertiary); }
.btn--tinted { background: var(--background-subtle); color: var(--content-secondary); }
.btn--tinted:hover { background: var(--background-hover); }
.btn--tinted:active { background: var(--background-pressed); }
.btn--ghost { background: transparent; color: var(--content-primary); }
.btn--ghost:hover { background: var(--background-subtle); }
.btn--ghost:active { background: var(--background-hover); }
.btn--muted { color: var(--content-tertiary); }
.btn--small { padding: var(--space-s) var(--space-m); }
/* Icon buttons: the icon carries the text's horizontal inset, as in Figma. */
.btn--icon { gap: 0; padding-inline: var(--space-l); }
.btn--icon img { display: block; }
.btn--icon span { padding-inline: var(--space-xs); }
.label-short { display: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3xl) var(--site-inline) 0;
}
.site-nav { display: flex; align-items: center; gap: var(--space-xs); }

/* Label/value pairs: role meta on both pages. */
.meta { margin: 0; }
.meta div { display: flex; flex-direction: column; gap: var(--space-xs); }
.meta dt { color: var(--content-tertiary); }
.meta dd { margin: 0; }

.site-footer { border-top: var(--border-width-xs) solid var(--border-subtle); }
.site-footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-block: var(--space-4xl);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--space-m); color: var(--content-tertiary); }
.footer-brand p { margin: 0; }
.footer-nav { display: flex; gap: var(--space-xs); }

@media (max-width: 768px) {
  :root {
    --jobs-gutter: var(--space-l);
    --site-inline: var(--jobs-gutter);
  }
  .site-header { padding-top: var(--space-xl); }
  .nav-hiring { display: none; }
  .label-full { display: none; }
  .label-short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .top-bar { animation: none; }
}
