:root {
  --brand-blue: #00ADEE;
  --brand-blue-dark: #045580;
  --ink: #222222;
  --paper: #FFFFFF;
  --panel: #F9F9F9;
  --line: #E5E5E5;
  --muted: #6B7280;
  --reply-bg: #FEFBEA;
  --header-height: 192px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.site-header {
  border-bottom: 1px solid var(--line);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--paper);
}

body {
  padding-top: var(--header-height);
}

.page-body {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.page-title {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
}

.page-body p, .page-body h4, .page-body ul, .page-body ol {
  text-align: left;
}

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

.site-header .brand-row {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--panel);
}

.site-header .brand-row img {
  height: 80px;
  margin-right: 12px;
}

.site-header nav {
  background: var(--brand-blue);
  display: flex;
  justify-content: space-between;
  padding: 14px 1.5rem;
  flex-wrap: wrap;
}

.site-header nav a,
.site-header nav .nav-dropdown-trigger {
  color: #ffffff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.site-header nav a:hover {
  text-decoration: underline;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.nav-dropdown:hover .nav-dropdown-trigger {
  text-decoration: underline;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  /* no margin here on purpose -- a margin gap is not part of any
     element's hoverable box, so it would break hover continuity between
     the trigger and this panel even though both share the .nav-dropdown
     hover parent. The panel sits flush against the trigger; the border
     and shadow provide the visual separation instead of whitespace. */
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  padding: 6px;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

/* Scoped to the real .site-header nav ancestor chain so this reliably
   out-specifies ".site-header nav a { color: #fff }" in the DEFAULT
   (non-hover) state too, not just on :hover -- without this, the panel's
   white background made these links invisible until hovered. */
.site-header nav .nav-dropdown-menu a {
  display: block;
  color: var(--ink);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav .nav-dropdown-menu a:hover {
  background: var(--panel);
  color: var(--brand-blue-dark);
  text-decoration: none;
}

.nav-dropdown-item-with-submenu {
  position: relative;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  /* same reasoning as .nav-dropdown-menu above -- zero margin, flush
     against the "Antibodies" row, so there's no dead zone the cursor has
     to cross to reach the flyout. */
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  padding: 6px;
  z-index: 201;
}

.nav-dropdown-item-with-submenu:hover .nav-submenu {
  display: block;
}

/* The flyout submenu previously had NO color rule at all, so its links
   inherited ".site-header nav a { color: #fff }" unconditionally --
   invisible in both default AND hover state, not just default. */
.site-header nav .nav-submenu a {
  display: block;
  color: var(--ink);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav .nav-submenu a:hover {
  background: var(--panel);
  color: var(--brand-blue-dark);
  text-decoration: none;
}

.console-wrap {
  padding: 1rem 1.5rem;
}

.console-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 16px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 15px;
  line-height: 1.7;
  max-height: 176px;
  overflow-y: auto;
  text-align: left;
}

.console-line {
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.console-reply {
  background: var(--reply-bg);
  color: var(--brand-blue-dark);
  padding: 4px 8px;
  border-radius: 4px;
  margin: 4px 0;
}

.console-input-row {
  display: flex;
  align-items: center;
}

.console-input-row .prompt-char {
  margin-right: 6px;
}

.console-input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
  color: var(--ink);
  background: transparent;
  flex: 1;
  min-width: 0;
}

.product {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.product h1 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product .catalog-number {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 1rem;
}

.price-block {
  margin-bottom: 1.5rem;
}

.price-block .price {
  font-size: 22px;
  font-weight: 500;
  color: var(--brand-blue-dark);
  margin: 0;
}

.price-block .unit-size {
  color: var(--muted);
  font-size: 14px;
  margin: 2px 0 0;
}

.cta-quote {
  display: inline-block;
  background: var(--brand-blue);
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.spec-table tr {
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  text-align: left;
  padding: 8px 12px 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  width: 180px;
  vertical-align: top;
}

.spec-table td {
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}

.spec-sheet-download a {
  color: var(--brand-blue-dark);
  font-size: 14px;
}

.product-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.product-body h5, .product-body h6 {
  font-size: 15px;
  font-weight: 500;
  margin-top: 1.5rem;
}

.category-page {
  max-width: none;
  margin: 0;
  padding: 0 1.5rem;
}

.category-page h1 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.result-count {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 1.25rem;
}

.category-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 2rem;
}

.category-sidebar h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.filter-placeholder {
  font-size: 12px;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.product-card:hover {
  border-color: var(--brand-blue);
}

.product-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.4;
}

.card-catalog-number {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}

.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-price {
  background: rgba(0, 173, 238, 0.12);
  color: var(--brand-blue-dark);
}

.badge-quote {
  background: var(--brand-blue);
  color: #ffffff;
}

.badge-species {
  background: #ffffff;
  color: var(--muted);
  border: 1px solid var(--line);
}

.category-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
}

.row-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.row-title-block {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}

.row-title {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 2px;
  line-height: 1.3;
}

.row-catalog-number {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.row-tag {
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  white-space: nowrap;
}

.row-amount {
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
  width: 70px;
}

.row-price {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-blue-dark);
  flex-shrink: 0;
  width: 75px;
  text-align: right;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  flex-shrink: 0;
}

.qty-stepper button {
  background: none;
  border: none;
  width: 26px;
  height: 30px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.qty-stepper button:hover {
  color: var(--brand-blue-dark);
}

.qty-value {
  width: 26px;
  text-align: center;
  font-size: 13px;
}

.btn-add-to-order {
  background: var(--brand-blue);
  color: #ffffff;
  border: none;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
}

.btn-add-to-order:hover {
  background: var(--brand-blue-dark);
}

@media (max-width: 900px) {
  .category-layout {
    grid-template-columns: 1fr;
  }
  .product-row {
    flex-wrap: wrap;
  }
}

.category-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  align-self: start;
  padding-top: 1.5rem;
}

.category-sidebar h1 {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 0.25rem;
}

.filter-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.filter-input:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  height: 64px;
  margin-bottom: 10px;
}

.footer-blurb {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 0 12px;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  color: var(--brand-blue-dark);
  display: inline-flex;
  transition: color 0.15s ease;
}

.footer-social a:hover {
  color: var(--brand-blue);
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 10px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--brand-blue-dark);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.post-category-tag {
  display: inline-block;
  background: var(--ink);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.blog-post {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.blog-post h1 {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 6px;
}

.post-date {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 1.5rem;
}

.post-hero-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.post-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}

.post-body h2 {
  font-size: 20px;
  font-weight: 500;
  margin-top: 2rem;
}

.post-body h5 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2.5rem;
}

.blog-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.blog-tile {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.blog-tile:hover {
  border-color: var(--brand-blue);
}

.blog-tile-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.blog-tile-body {
  padding: 14px 16px;
}

.blog-tile-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.35;
}

.blog-tile-date {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.blog-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.blog-featured-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
}

.blog-tile-featured {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.blog-tile-featured:hover {
  border-color: var(--brand-blue);
}

.blog-tile-featured .blog-tile-image {
  height: 320px;
}

.blog-tile-title-featured {
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.3;
}

.blog-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.blog-secondary-grid .blog-tile-image {
  height: 100px;
}

.blog-secondary-grid .blog-tile-title {
  font-size: 14px;
}

.blog-section-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding-bottom: 8px;
  margin: 0 0 16px;
}

@media (max-width: 900px) {
  .blog-featured-row {
    grid-template-columns: 1fr;
  }
  .blog-secondary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cart-indicator {
  color: #ffffff;
  text-decoration: none;
}

.cart-indicator:hover {
  text-decoration: underline;
}

.product-order-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.order-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.order-empty {
  text-align: center;
  padding: 3rem 0;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.order-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 2px solid var(--line);
}

.order-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.order-qty-input {
  width: 50px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.order-remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 500px;
}

.order-form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 500;
  gap: 4px;
}

.order-form input,
.order-form textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.required {
  color: #c0392b;
}

.btn-submit-order {
  background: var(--brand-blue);
  color: #ffffff;
  border: none;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-start;
}

.btn-submit-order:hover {
  background: var(--brand-blue-dark);
}

.order-status-message {
  font-size: 14px;
}

.order-status-message.success {
  color: #1a7f37;
}

.order-success {
  text-align: center;
  padding: 3rem 0;
}

.order-success h2 {
  color: #1a7f37;
}

.pagination-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 2rem 0;
}

.pagination-link {
  color: var(--brand-blue-dark);
  text-decoration: none;
  font-size: 14px;
}

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

.pagination-status {
  font-size: 13px;
  color: var(--muted);
}

.homepage {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.homepage-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 3rem;
}

.homepage-intro p {
  margin-bottom: 1rem;
}

.homepage-quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.quicklink-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.quicklink-card:hover {
  border-color: var(--brand-blue);
}

.quicklink-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--brand-blue-dark);
}

.quicklink-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.distributors-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.distributors-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.distributors-intro a {
  color: var(--brand-blue-dark);
}

.distributor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.distributor-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.distributor-card:hover {
  border-color: var(--brand-blue);
}

.distributor-logo {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
}

.distributor-name {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.35;
}

.distributor-countries {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.tool-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.tool-page h1 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.tool-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2rem;
}

.tool-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.tool-panel h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.tool-panel h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 1.5rem 0 0.75rem;
}

.tool-help {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.tool-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.tool-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 8px;
  border-bottom: 2px solid var(--line);
}

.tool-table td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.tool-row-label {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.tool-cell-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-sizing: border-box;
}

.tool-cell-input:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.tool-table-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

.btn-tool-primary {
  background: var(--brand-blue);
  color: #ffffff;
  border: none;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-tool-primary:hover {
  background: var(--brand-blue-dark);
}

.btn-tool-secondary {
  background: #ffffff;
  color: var(--brand-blue-dark);
  border: 1px solid var(--line);
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-tool-secondary:hover {
  border-color: var(--brand-blue);
}

.btn-tool-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.btn-tool-remove:hover {
  color: #c0392b;
}

.tool-results {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

.tool-params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 1rem;
}

.tool-param {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-param-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.tool-param-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-blue-dark);
}

.tool-fit-status {
  font-size: 13px;
  margin: 0 0 1rem;
}

.tool-fit-ok {
  color: #1a7f37;
}

.tool-fit-warn {
  color: #b45309;
}

.tool-fit-error {
  color: #c0392b;
}

.tool-canvas {
  width: 100%;
  max-width: 640px;
  height: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.tool-inline-form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tool-inline-form label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: var(--muted);
  gap: 4px;
}

.tool-inline-form input {
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 160px;
}

.tool-result-line {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-blue-dark);
}

.tool-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.tool-tab-btn {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tool-tab-btn:hover {
  color: var(--brand-blue-dark);
}

.tool-tab-btn.active {
  color: var(--brand-blue-dark);
  border-bottom-color: var(--brand-blue);
  font-weight: 500;
}

.tool-pass {
  color: #1a7f37;
  font-weight: 500;
}

.tool-fail {
  color: #c0392b;
  font-weight: 500;
}

.console-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.console-input {
  caret-color: transparent;
}

.console-cursor {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 0.6em;
  background: var(--ink);
  pointer-events: none;
  animation: console-cursor-blink 1.06s steps(1) infinite;
}

@keyframes console-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.console-box, .console-line, .console-reply, .prompt-char, .console-input {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 15px;
}

.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

/* !important on the stacking-layout properties only (not font-size/weight/gap)
   so this can't be silently out-tied by an equal-specificity single-class
   rule appended later in the file -- this class of accidental override has
   broken chicken-form field stacking multiple times via unrelated same-day
   edits elsewhere in this file. :not(.radio-label) keeps this from ever
   fighting .radio-label's own !important row-layout below on specificity
   (0,1,1 vs 0,1,0 would otherwise let this rule win that tie and break it). */
.contact-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px;
}

.contact-form label:not(.radio-label) {
  display: flex !important;
  flex-direction: column !important;
  font-size: 15px;
  font-weight: 500;
  gap: 4px;
}

.contact-form input:not([type="radio"]):not([type="checkbox"]),
.contact-form textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

@media (max-width: 700px) {
  .contact-page {
    grid-template-columns: 1fr;
  }
}

.chicken-form-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.chicken-form h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 1.5rem 0 1rem;
}

.chicken-form .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

.chicken-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.radio-group {
  border: none;
  padding: 0;
  margin: 0 0 14px;
}

.radio-group legend {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  padding: 0;
}

.radio-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  font-weight: 400 !important;
  font-size: 14px !important;
  margin-bottom: 4px;
}
