/* RedGNAT palette — overrides jekyll-theme-cayman defaults */

/* Header gradient: dark crimson → bright red */
.page-header {
  background-color: #8b0000;
  background-image: linear-gradient(120deg, #5f0f13, #cc0000);
}

/* Main content link color */
.main-content a {
  color: #9e1b1b;
}

.main-content a:hover {
  color: #cc0000;
  text-decoration: underline;
}

/* Code block left accent */
.main-content pre {
  border-left: 3px solid #cc0000;
}

/* Inline code */
.main-content code {
  background-color: #f7e6e6;
  color: #5f0f13;
  border-radius: 3px;
  padding: 0.1em 0.3em;
}

/* Table header row */
.main-content table th {
  background-color: #f7e6e6;
  color: #5f0f13;
}

/* Horizontal rule */
.main-content hr {
  border-color: #d5b1b1;
}

/* Intro hero: text left, logo right */
.intro-hero {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.intro-text {
  flex: 1;
}

.intro-logo {
  width: 288px;
  height: 288px;
  flex-shrink: 0;
  border-radius: 8px;
}

/* GNAT-o-sphere card grid */
.gnatophere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.gnat-card {
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.15s ease;
}

.gnat-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.13);
}

.gnat-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.gnat-card p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
  color: #444;
}

.gnat-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.gnat-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  color: #fff !important;
}

/* GNAT — threat red */
.gnat-card-gnat { border-color: #c41e2a; }
.gnat-card-gnat h3 { color: #c41e2a; }
.gnat-link-gnat { background-color: #c41e2a; }
.gnat-link-gnat:hover { background-color: #9e1520 !important; color: #fff !important; }

/* GNAT-gui — slate blue */
.gnat-card-gui { border-color: #3b6ea8; }
.gnat-card-gui h3 { color: #1e3355; }
.gnat-link-gui { background-color: #3b6ea8; }
.gnat-link-gui:hover { background-color: #1e3355 !important; color: #fff !important; }

/* SandGNAT — amber */
.gnat-card-sand { border-color: #d4a017; }
.gnat-card-sand h3 { color: #a07a10; }
.gnat-link-sand { background-color: #d4a017; }
.gnat-link-sand:hover { background-color: #a87e0e !important; color: #fff !important; }

/* SenseGNAT — deep violet */
.gnat-card-sense { border-color: #5b2da8; }
.gnat-card-sense h3 { color: #5b2da8; }
.gnat-link-sense { background-color: #5b2da8; }
.gnat-link-sense:hover { background-color: #472090 !important; color: #fff !important; }

/* Canonical workflow flow diagram */
.flow-teaser {
  display: flex;
  align-items: stretch;
  gap: .5rem;
  margin-bottom: 1rem;
}

.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  color: #aaa;
  flex-shrink: 0;
  padding-top: .5rem;
}

.flow-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.flow-stage--addons { flex: 1.2; }

.flow-node {
  background: #fff;
  border: 1px solid #f7e6e6;
  border-radius: 10px;
  padding: .75rem 1rem;
  flex: 1;
  box-shadow: 0 1px 4px rgba(204, 0, 0, 0.05);
}

.flow-node strong {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .2rem;
  color: #111;
}

.flow-node p {
  margin: 0;
  font-size: .78rem;
  color: #666;
  line-height: 1.4;
}

.flow-step {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #aaa;
  margin-bottom: .3rem;
}

.flow-node--gnat { border-color: #c41e2a; }
.flow-node--gnat strong { color: #c41e2a; }

.flow-node--sand { border-color: #d4a017; }
.flow-node--sand strong { color: #a07a10; }

.flow-node--sense { border-color: #5b2da8; }
.flow-node--sense strong { color: #5b2da8; }

.flow-node--red { border-color: #cc0000; }
.flow-node--red strong { color: #cc0000; }

.flow-node--neutral { border-color: #f7e6e6; }
.flow-node--neutral strong { color: #111; }

.flow-actions {
  display: flex;
  gap: 1.5rem;
  font-size: .875rem;
  justify-content: flex-end;
  margin-top: .5rem;
}

.flow-actions a {
  color: #9e1b1b;
  text-decoration: none;
}

.flow-actions a:hover {
  color: #cc0000;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .flow-teaser { flex-direction: column; }
  .flow-arrow { justify-content: center; transform: rotate(90deg); }
}

/* Button overrides on header */
.btn {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}
