/* Design language matched to triveria.com: Inter typeface, blue→cyan gradient
   accent, pill buttons, soft card shadows, light surface. */
:root {
  --color-accent-start: #3b82f6;
  --color-accent-end: #06b6d4;
  --color-heading: #0f172a;
  --color-body: #475569;
  --color-muted: #94a3b8;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --color-card-bg: #f8fafc;
  --gradient: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  --radius-card: 12px;
  --radius-btn: 100px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 4px 20px rgba(59, 130, 246, 0.15);
  --shadow-nav: 0 1px 3px rgba(0, 0, 0, 0.08);
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1000px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-body);
  background-color: var(--color-bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  font-family: var(--font-family);
}

a {
  color: var(--color-accent-start);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

body {
  padding-top: 64px;
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-nav);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-heading) !important;
  text-decoration: none !important;
}

.brand:hover {
  color: var(--color-accent-start) !important;
}

.env-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.env-picker select {
  font: inherit;
  font-weight: 500;
  color: var(--color-heading);
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 10px;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.page-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
}

.page-subtitle {
  color: var(--color-body);
  margin: 0 0 32px;
  max-width: 70ch;
}

.workflow-list {
  display: grid;
  gap: 16px;
}

.workflow-card {
  display: block;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  color: var(--color-body);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s, transform 0.15s;
}

.workflow-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.workflow-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.workflow-card p {
  margin: 0;
  color: var(--color-body);
  font-size: 0.95rem;
}

.state-message {
  color: var(--color-muted);
  padding: 24px 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-body);
}

.back-link:hover {
  color: var(--color-accent-start);
}

.workflow-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.workflow-header .titles {
  flex: 1 1 320px;
}

.import-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  background: var(--gradient);
  color: #fff !important;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.import-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  opacity: 0.95;
}

.slug-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  color: var(--color-muted);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

section.panel {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 26px;
  margin-bottom: 24px;
}

section.panel h2 {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.questions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.questions-table th,
.questions-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.questions-table th {
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-btn);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}

.badge.required {
  color: #1e40af;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.options-list {
  margin: 0;
  padding-left: 18px;
}

.hint {
  color: var(--color-muted);
  font-size: 0.86rem;
  margin-top: 4px;
}

.markdown-body {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 36px;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  line-height: 1.3;
}

.markdown-body pre {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
}

.markdown-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.markdown-body :not(pre) > code {
  background: var(--color-bg-alt);
  border-radius: 4px;
  padding: 1px 5px;
}

.markdown-body table {
  border-collapse: collapse;
  width: 100%;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--color-border);
  padding: 6px 10px;
}

.raw-frontmatter summary {
  cursor: pointer;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.raw-frontmatter pre {
  margin-top: 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
}

footer.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  color: var(--color-muted);
  font-size: 0.85rem;
}
