/* Theme: fact-checking / news / misinformation detection — trust, clarity, editorial */
@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600;700&display=swap");

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1d21;
  background-color: #f5f4f2;
}

body {
  line-height: 1.6;
}

a {
  color: #0369a1;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout containers */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-color: #1e3a5f;
  color: #f8fafc;
  border-bottom: 1px solid rgba(30, 58, 95, 0.9);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.site-title {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.site-subtitle {
  font-size: 0.85rem;
  color: #b8d4e8;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  order: 1;
  margin-top: 0.4rem;
}

nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  order: 0;
}

.nav-link {
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: #e0e7f0;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-link.active {
  background-color: #0ea5e9;
  color: #fff;
}

.site-main {
  flex: 1;
}

.content {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.9rem 1.25rem 2.6rem;
}

/* Make the first section (hero) visually taller */
.content > section:first-of-type {
  padding-top: 2.5rem;
  padding-bottom: 2.3rem;
}

/* Data page: smaller gap between title and first subheader */
.page-data .content > section:first-of-type {
  padding-bottom: 0.9rem;
}
.page-data .content > section:nth-of-type(2) > h2:first-child {
  margin-top: 1.25rem;
}

/* Methods page: smaller gap between intro and first subheader */
.page-methods .content > section:first-of-type {
  padding-bottom: 0.9rem;
}
.page-methods .content > section:nth-of-type(2) > h2:first-child {
  margin-top: 1.25rem;
}

.site-footer {
  border-top: 1px solid #e2e4e8;
  padding: 1.25rem 1.25rem 1.75rem;
  background-color: #ebe9e6;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Typography & sections — editorial serif for headings */
h1,
h2,
h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  color: #1a1d21;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.1rem, 3vw + 1.6rem, 2.9rem);
  margin: 0.1rem 0 1rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2.1rem 0 0.85rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.3rem 0 0.55rem;
}

p {
  margin: 0 0 0.8rem;
}

.lede {
  font-size: 1.08rem;
  max-width: 58rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background-color: #fef3c7;
  color: #92400e;
  font-weight: 700;
}

.pill-secondary {
  background-color: #e0f2fe;
  color: #0369a1;
}

.muted {
  color: #6b7280;
}

.tagline {
  font-size: 0.97rem;
  color: #4b5563;
  margin-bottom: 1.4rem;
}

/* Home layout */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.hero-panel {
  background-color: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #dde1e6;
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: 0 1px 3px rgba(30, 58, 95, 0.06);
}


.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.metric {
  padding: 0.7rem 0.75rem;
  border-radius: 0.75rem;
  background-color: #f8f9fb;
  border: 1px solid #e8eaed;
  border: 1px solid #e5e7eb;
}

.metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

.metric-caption {
  font-size: 0.8rem;
  color: #6b7280;
}

.metric-factor-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  font-size: 0.85rem;
}

.metric-factor-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.metric-factor-list li:last-child {
  border-bottom: none;
}

.metric-factor-list .factor-name {
  color: #4b5563;
}

.metric-factor-list .factor-value {
  font-weight: 600;
  color: #111827;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: #0369a1;
  border-color: #0284c7;
  color: #f0f9ff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0284c7;
  border-color: #0369a1;
  text-decoration: none;
}

.btn-ghost {
  background: #ffffff;
  border-color: #dde1e6;
  color: #1e3a5f;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: #f3f4f6;
  text-decoration: none;
}

.hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
}

.hero-list li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.hero-list-bullet {
  font-size: 0.8rem;
  color: #10b981;
}

/* Grid utilities */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.methods-arch-grid,
.methods-layer-grid {
  margin-top: 0.9rem;
  align-items: flex-start;
  gap: 1.5rem;
}

.methods-section {
  margin-top: 1.4rem;
  padding-top: 0.9rem;
}

.methods-arch-grid .card,
.methods-layer-grid .card {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.methods-layer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.55rem;
  margin-right: 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background-color: #e0f2fe;
  color: #0369a1;
}

.methods-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.methods-timeline li {
  position: relative;
  padding-left: 2rem;
}

.methods-timeline li::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.2rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background-color: #0ea5e9;
}

.methods-timeline li::after {
  content: "";
  position: absolute;
  left: 0.73rem;
  top: 0.9rem;
  bottom: -0.9rem;
  width: 2px;
  background-color: #e5e7eb;
}

.methods-timeline li:last-child::after {
  display: none;
}

.methods-tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  margin-top: 0.9rem;
}

.methods-tools-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.methods-tools-step {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.methods-tools-step-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #0369a1;
}

.methods-tools-step-body {
  font-size: 0.9rem;
  color: #4b5563;
}

.methods-tools-notes {
  border-left: 3px solid #e0f2fe;
  padding-left: 0.9rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.methods-orch-layout {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 1.4rem;
}

.methods-orch-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.methods-orch-node {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
}

.methods-orch-arrow {
  font-size: 0.78rem;
  color: #6b7280;
}

.methods-orch-details {
  font-size: 0.9rem;
  color: #4b5563;
}

.methods-a2a-strip {
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  background-color: #f0f9ff;
  border: 1px dashed #bae6fd;
  font-size: 0.9rem;
  color: #0f172a;
}

.methods-a2a-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0.3rem;
}

.methods-a2a-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #0369a1;
}

.card {
  background-color: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 1.1rem 1.25rem 1.1rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.card-body {
  font-size: 0.9rem;
  color: #4b5563;
}

.screenshot-placeholder {
  margin-top: 1.5rem;
}

.demo-screenshots {
  margin-top: 1.5rem;
}

.demo-screenshots img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.demo-screenshots figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.screenshot-inner {
  border-radius: 0.9rem;
  border: 1.5px dashed #cbd5e1;
  background-color: #f8fafc;
  padding: 1.1rem 1.25rem;
}

.screenshot-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.9);
  color: #1d4ed8;
}

.tag-outline {
  background: rgba(240, 253, 250, 0.9);
  color: #047857;
}

/* Tables & data */
.table-wrapper {
  margin-top: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead {
  background-color: #f3f4f6;
}

th,
td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.highlight-row {
  background-color: #ecfdf5;
}

/* Lists styled for readability */
ul {
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.3rem;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
}

.check-icon {
  font-size: 0.85rem;
  color: #16a34a;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.role {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Callouts */
.callout {
  border-radius: 0.9rem;
  border: 1px solid #d1fae5;
  background: #ecfdf5;
  padding: 0.95rem 1.05rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.callout-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.note {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Experiments page: dark lab-inspired layout */
.exp-shell {
  margin-top: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #111827;
  background-color: #0f0f0f;
  color: #e5e5e5;
  overflow: hidden;
}

.exp-top-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background-color: #161616;
  border-bottom: 1px solid #27272a;
  padding: 0 1.5rem;
}

.exp-nav-title {
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4f8cff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 0;
  margin-right: 2rem;
  white-space: nowrap;
}

.exp-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: default;
  padding: 0.95rem 1.1rem 0.8rem;
  letter-spacing: 0.03em;
}

.exp-tab-active {
  color: #f9fafb;
  border-bottom-color: #4f8cff;
}

.exp-body {
  padding: 1.8rem 1.75rem 2rem;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.exp-body h2 {
  color: #f9fafb;
  margin-top: 0;
}

.exp-body p {
  color: #d4d4d4;
}

.exp-two-col {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.exp-panel {
  flex: 1 1 260px;
  background-color: #18181b;
  border-radius: 0.9rem;
  border: 1px solid #27272a;
  padding: 1.25rem 1.35rem 1.3rem;
}

.exp-section-label {
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin: 0 0 0.75rem;
}

.exp-accuracy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  background-color: #111827;
  border-radius: 0.75rem;
  overflow: hidden;
  font-size: 0.8rem;
}

.exp-accuracy-table th,
.exp-accuracy-table td {
  border: 1px solid #27272a;
  padding: 0.5rem 0.7rem;
  text-align: center;
}

.exp-accuracy-table th {
  background-color: #18181b;
  font-weight: 600;
}

.exp-accuracy-highlight {
  background-color: #022c22;
}

/* Prompt library grid inside experiments page */
.exp-prompts-shell {
  margin-top: 2rem;
}

.exp-prompts-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.exp-prompts-header h2 {
  margin: 0;
}

.exp-prompts-header p {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: #a3a3a3;
}

.exp-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  margin-bottom: 1.2rem;
}

.exp-filter-chip {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #27272a;
  background-color: #18181b;
  color: #a3a3a3;
  font-size: 0.8rem;
}

.exp-filter-chip-active {
  border-color: #4f8cff;
  color: #4f8cff;
  background-color: rgba(79, 140, 255, 0.12);
}

.exp-prompts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

.exp-prompt-card {
  background-color: #18181b;
  border-radius: 0.9rem;
  border: 1px solid #27272a;
  padding: 0.85rem 1rem 0.95rem;
}

.exp-prompt-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.exp-prompt-name {
  font-size: 0.96rem;
  font-weight: 600;
}

.exp-method-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #333;
}

.exp-method-tag-base {
  background-color: #111827;
  color: #9ca3af;
}

.exp-method-tag-cot {
  background-color: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.4);
}

.exp-method-tag-icl {
  background-color: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
}

.exp-method-tag-fcot {
  background-color: rgba(79, 140, 255, 0.12);
  color: #4f8cff;
  border-color: rgba(79, 140, 255, 0.4);
}

.exp-prompt-meta {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 0.2rem;
}

.exp-prompt-body {
  display: none;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: #d4d4d4;
}

.exp-prompt-card.exp-open .exp-prompt-body {
  display: block;
}

.exp-score-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.exp-score-chip {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background-color: #111827;
  color: #e5e5e5;
}

.exp-hidden {
  display: none;
}

.exp-prompt-chevron {
  font-size: 0.95rem;
  color: #6b7280;
  margin-left: 0.3rem;
  transition: transform 0.16s ease;
}

/* Experiments page: prompt library layout */
.prompts-page {
  margin-top: 1.75rem;
}

.prompts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.prompts-header h2 {
  margin: 0;
}

.prompts-header p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.prompts-note {
  font-size: 0.8rem;
  color: #6b7280;
  max-width: 32rem;
}

.add-prompt-btn {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 0.45rem 0.9rem;
  background-color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.add-prompt-btn:hover {
  background-color: #f3f4f6;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
  margin-bottom: 1.1rem;
}

.filter-chip {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: #4b5563;
}

.filter-chip.active {
  border-color: #0369a1;
  background-color: #e0f2fe;
  color: #0369a1;
}

.prompts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

.prompt-card {
  background-color: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 0.9rem 1rem 0.95rem;
}

.prompt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.prompt-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.prompt-index {
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.7rem;
  color: #9ca3af;
}

.prompt-name {
  font-size: 0.96rem;
  font-weight: 600;
}

.prompt-model {
  font-size: 0.8rem;
  color: #9ca3af;
}

.method-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

.tag-base {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.tag-cot {
  background-color: #f5f3ff;
  color: #7c3aed;
}

.tag-icl {
  background-color: #ecfdf5;
  color: #15803d;
}

.tag-fc {
  background-color: #fefce8;
  color: #b45309;
}

.tag-if {
  background-color: #e0f2fe;
  color: #0369a1;
}

.tag-fcot {
  background-color: #cffafe;
  color: #0e7490;
}

.prompt-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.78rem;
  color: #6b7280;
}

.score-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  display: inline-block;
}

.chevron {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-left: 0.4rem;
}

.prompt-card-body {
  display: none;
  margin-top: 0.7rem;
}

.prompt-card.expanded .prompt-card-body {
  display: block;
}

.scores-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.score-tile {
  background-color: #f9fafb;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.6rem;
  text-align: center;
}

.score-tile-label {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-tile-value {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.body-section h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin: 0 0 0.4rem;
}

.prompt-text {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #374151;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}

.notes-text {
  font-size: 0.85rem;
  color: #4b5563;
  white-space: pre-wrap;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background-color: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 1.5rem 1.6rem 1.3rem;
  width: 100%;
  max-width: 32rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.modal h3 {
  margin: 0 0 1rem;
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid #e5e7eb;
  padding: 0.45rem 0.6rem;
  font-size: 0.88rem;
}

.form-group textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.score-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.score-inputs input {
  text-align: center;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.modal-cancel,
.modal-save {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.modal-cancel {
  border-color: #e5e7eb;
  background-color: #f9fafb;
  color: #4b5563;
}

.modal-save {
  background-color: #0369a1;
  border-color: #0284c7;
  color: #f0f9ff;
}

.modal-save:hover {
  background-color: #0284c7;
  border-color: #0369a1;
}


/* Responsive behavior */
@media (max-width: 780px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    justify-content: flex-start;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .hero-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2,
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .methods-tools-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .methods-tools-step-body {
    min-width: 0;
    overflow-wrap: break-word;
  }

  .methods-tools-notes {
    margin-top: 0.5rem;
    padding-top: 0.9rem;
    border-left: none;
    border-top: 3px solid #e0f2fe;
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .content {
    padding-inline: 1rem;
  }

  .site-footer {
    padding-inline: 1rem;
  }
}

