/* =========================================================
   Citrine Labs Demo Site — Shared Styles
   NOTE: Visual styling only. Each HTML page deliberately
   contains intentional accessibility failures for testing.
   ========================================================= */

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

:root {
  --blue:        #1a56db;
  --blue-dark:   #1e40af;
  --bg:          #f1f5f9;
  --surface:     #ffffff;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --radius:      8px;
  --shadow:      0 1px 4px rgba(0,0,0,.07);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* ── Demo Warning Banner ─────────────────────────────────── */
.demo-warning {
  background: #991b1b;
  color: #fff;
  border-top: 4px solid #7f1d1d;
  border-bottom: 4px solid #7f1d1d;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.demo-warning summary {
  cursor: pointer;
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  white-space: nowrap;
}

.demo-warning summary::-webkit-details-marker { display: none; }
.demo-warning summary::marker { content: ""; }
.demo-warning summary::after { content: "+"; font-weight: 700; font-size: 1.2rem; line-height: 1; }
.demo-warning[open] summary::after { content: "-"; }

.demo-warning[open] summary { margin-bottom: 0.45rem; }

.demo-warning p { margin-bottom: 0.45rem; }

.demo-warning p:last-of-type { margin-bottom: 0.25rem; }

.demo-warning ul {
  margin: 0;
  padding-left: 1.2rem;
}

.demo-warning li { margin-bottom: 0.2rem; }

.demo-warning code {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

/* ── Site Header ───────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo span { color: var(--text); }

.header-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.header-nav a:hover { color: var(--blue); }

/* ── Page Title Bar ────────────────────────────────────── */
.page-title-bar {
  background: #1e3a8a;
  color: #fff;
  padding: 2.5rem 2rem;
  margin-bottom: 0;
}

.page-title-bar h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.page-title-bar p { opacity: 0.85; font-size: 0.95rem; }

/* ── Page Wrapper ──────────────────────────────────────── */
.page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-wrapper-persona { max-width: 1300px; }

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.card h2, .card h3 { margin-bottom: 0.75rem; }

/* ── Example Block ─────────────────────────────────────── */
.example-block {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ── Grid ──────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* ── Form Styles ───────────────────────────────────────── */
.form-row { margin-bottom: 1rem; }

.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
}

/* ── Badges ────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green { background: #dcfce7; color: #166534; }
.badge-red   { background: #fee2e2; color: #991b1b; }
.badge-blue  { background: #dbeafe; color: #1d4ed8; }
.badge-amber { background: #fef3c7; color: #92400e; }

/* ── Team / Profile ────────────────────────────────────── */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.team-card-body { padding: 1rem; }
.team-card-body h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.team-card-body p  { font-size: 0.85rem; color: var(--text-muted); }

/* ── Site Footer ───────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 1.75rem 1rem;
  font-size: 0.85rem;
}

.site-footer a { color: #60a5fa; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Utility ───────────────────────────────────────────── */
img { max-width: 100%; height: auto; }

code {
  background: #f1f5f9;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.88em;
  font-family: 'Courier New', monospace;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.back-link:hover { text-decoration: underline; }

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.flow-hero {
   background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 100%);
   color: #fff;
   padding: 2rem 3rem 3rem 3rem;
   text-align: center;
 }
.flow-hero .page-wrapper {
   padding: 2rem;
}
   
 .flow-hero h1 { font-size: 2.2rem; margin-bottom: 0.75rem; }
 .flow-hero p { opacity: 0.92; }
 .flow-actions {
   display: flex;
   gap: 0.75rem;
   margin-top: 1.5rem;
   justify-content: center;
 }
 .flow-button {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   border-radius: 6px;
   padding: 0.7rem 1rem;
   font-weight: 700;
   text-decoration: none;
 }
 .flow-button-primary { background: #fff; color: #1a56db; }
 .flow-button-secondary { border: 1px solid rgba(255,255,255,0.75); color: #fff; }
 .flow-step-list {
   list-style: none;
   margin: 0;
   padding: 0;
   display: grid;
   gap: 1rem;
 }
 .flow-step {
   display: grid;
   grid-template-columns: auto 1fr;
   gap: 0.9rem;
   align-items: start;
 }
 .step-number {
   width: 2rem;
   height: 2rem;
   border-radius: 999px;
   background: var(--blue);
   color: #fff;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-weight: 800;
   flex-shrink: 0;
 }
 .instruction-list {
   margin: 0;
   padding-left: 1.2rem;
 }
 .instruction-list li { margin-bottom: 0.6rem; }
 .copilot-prompt-list {
   margin: 0.75rem 0 0;
   padding-left: 1.2rem;
 }
 .copilot-prompt-list li { margin-bottom: 0.5rem; }
 .qr-code-callout {
   display: grid;
   grid-template-columns: minmax(0, 1fr) auto;
   gap: 1.5rem;
   align-items: center;
 }
 .qr-code-card p { margin: 0; }
 .qr-code-figure { margin: 0; }
 .qr-code-figure img {
   display: block;
   width: 100%;
   max-width: 240px;
   border-radius: 12px;
 }
 .qr-code-figure figcaption {
   margin-top: 0.75rem;
   text-align: center;
   font-size: 0.95rem;
 }
 @media (max-width: 760px) {
   .flow-hero { padding: 2rem 1.5rem; }
   .qr-code-callout { grid-template-columns: 1fr; }
   .qr-code-figure { justify-self: center; }
 }
