@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Satoshi', 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-satoshi {
  font-family: 'Satoshi', 'Inter', system-ui, sans-serif;
}

.font-black {
  font-weight: 900;
}

/* Figma frame canvas — exact 1440px desktop artboard */
.figma-screen {
  margin: 0;
  padding: 0;
  min-width: 1440px;
  background: #e2e8f0;
}

.figma-frame {
  width: 1440px;
  min-height: var(--frame-height, 1024px);
  margin: 0 auto;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background: #fff;
}

.figma-frame > div {
  margin: 0;
}

/* Figma MCP export utilities not in default Tailwind CDN */
.content-stretch {
  align-content: stretch;
}

/* Figma stacks image + label overlays in the same grid cell */
.inline-grid > .col-1.row-1,
.inline-grid > .row-1.col-1 {
  grid-column: 1;
  grid-row: 1;
}

.inline-grid > .col-1.row-1:not(:first-child),
.inline-grid > .row-1.col-1:not(:first-child) {
  z-index: 1;
}

/* Duplicate label layer on edge carousel cards (Figma export artifact) */
.inline-grid.place-items-start > .inline-grid.col-1.row-1 + .col-1.content-stretch.flex-col {
  display: none;
}

/* Global presence edge fades sit above carousel cards */
.figma-frame .absolute.bg-gradient-to-l,
.figma-frame .absolute.flex.h-\[569px\] {
  z-index: 20;
  pointer-events: none;
}

/* Nav links must not break flex/auto-layout from Figma */
a.nav-link {
  display: contents;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.nav-link:hover {
  opacity: 0.88;
}

/* Index page */
.index-body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: #121701;
}

.index-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.index-main h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 700;
}

.index-sub {
  margin: 0 0 32px;
  color: #636363;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.page-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.page-link:hover {
  border-color: #116af8;
  box-shadow: 0 4px 18px rgba(17, 106, 248, 0.12);
}

.page-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #116af8;
}

.page-desc {
  font-size: 0.875rem;
  color: #636363;
}

/* Interactive form controls */
.figma-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 18px;
  color: #121701;
  line-height: normal;
}

.figma-input::placeholder {
  color: #636363;
}

textarea.figma-input {
  resize: vertical;
  min-height: 99px;
}

.figma-field-box:focus-within {
  border-color: #116af8 !important;
  box-shadow: 0 0 0 3px rgba(17, 106, 248, 0.12);
}

.dept-dropdown.hidden {
  display: none !important;
}

.dept-option:hover {
  background: #e8e8e8 !important;
}

.cursor-pointer {
  cursor: pointer;
}

.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;
}

.figma-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 9999;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: #116af8;
  box-shadow: 0 8px 24px rgba(17, 106, 248, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.figma-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.figma-toast[data-type="error"] {
  background: #e7000b;
  box-shadow: 0 8px 24px rgba(231, 0, 11, 0.3);
}
