/* Theme Name: ZeroY Starter */

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.mono {
  font-family: var(--font-mono);
}

/* Base button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
  letter-spacing: .2px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo-valco {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.logo-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.site-nav .nav-cta {
  padding: 10px 22px;
  font-size: 13px;
  color: #fff;
}

/* Generic Layout */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 96px 0;
}

.section-label {
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
}

/* Placeholder Graphic Component */
.wire-placeholder {
  background: #E5E9EE;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748B;
  text-align: center;
  padding: 24px;
}

.wire-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(45deg, rgba(203, 213, 225, 0.4) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(203, 213, 225, 0.4) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(203, 213, 225, 0.4) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(203, 213, 225, 0.4) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.35;
  pointer-events: none;
}

.placeholder-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #F8FAFC;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.placeholder-spec {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 12px;
  color: #64748B;
  font-family: var(--font-mono);
}

/* Hero Section */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.page-hero .eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-hero h1 {
  color: #fff;
  font-size: 48px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

.page-hero .hero-intro {
  font-size: 18px;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 620px;
  font-weight: 300;
}

.hero-key-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
}

.hero-fact-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.hero-fact-lbl {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.4;
}

/* Trust Bar */
.trust-bar {
  background: var(--navy-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-bar-title {
  color: #94A3B8;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.trust-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badge-item {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 4px;
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  font-family: var(--font-mono);
}

/* Dual Column Layout */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.grid-2col.reversed {
  direction: rtl;
}

.grid-2col.reversed > * {
  direction: ltr;
}

.content-block h2 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}

.lead-p {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 24px;
  line-height: 1.65;
}

.body-p {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 20px;
  line-height: 1.7;
}

.spec-list {
  list-style: none;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
}

.spec-list .bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Feature Grid */
.bg-soft {
  background: var(--bg-soft);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px;
  transition: all .2s ease;
}

.feature-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.feature-icon-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(0, 153, 229, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* Engineering Comparison Table */
.comparison-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 40px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.comparison-table th {
  background: #F8FAFC;
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table td {
  color: var(--ink-2);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .col-valco {
  color: var(--ink);
  font-weight: 600;
  background: rgba(0, 153, 229, 0.03);
}

.comparison-table .tag-check {
  color: var(--green);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Testing Grid */
.testing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.test-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  background: #fff;
}

.test-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.test-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.test-item p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Numbers Banner */
.stats-banner {
  background: var(--navy);
  color: #fff;
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-cell .num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.stat-cell .lbl {
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.5;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  text-align: center;
  padding: 90px 0;
}

.cta-section h2 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-section p {
  color: #94A3B8;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Site Footer */
.site-footer {
  background: var(--navy);
  color: #94A3B8;
  padding: 72px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-logo .logo-valco {
  color: #fff;
}

.foot-desc {
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0 20px;
  color: #94A3B8;
}

.foot-cert-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.foot-cert-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  color: #CBD5E1;
}

.foot-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.foot-col a {
  color: #94A3B8;
  text-decoration: none;
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color .2s;
}

.foot-col a:hover {
  color: #fff;
}

.foot-contact-note {
  font-size: 13px;
  color: #94A3B8;
  margin-bottom: 12px;
  line-height: 1.5;
}

.foot-email {
  font-family: var(--font-mono);
  color: var(--blue) !important;
  font-size: 14px !important;
}

.foot-bottom {
  padding-top: 28px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: #64748B;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .grid-2col,
  .grid-2col.reversed {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
  }
  
  .testing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  
  .page-hero h1 {
    font-size: 36px;
  }
  
  .site-nav {
    display: none;
  }
}

/* -------------------------------------------------------------------------
 * Contact & Thank You Pages
 * ------------------------------------------------------------------------- */
.contact-hero {
  padding: 80px 0 70px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 48px;
  align-items: start;
}

/* Inquiry Form Card */
.inquiry-form-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(11, 31, 51, 0.04);
}

.form-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.form-header h2 {
  font-size: 28px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.form-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

.valco-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.form-group label .required {
  color: #DC2626;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 153, 229, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94A3B8;
  font-size: 13px;
}

.form-footer {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-submit {
  width: 100%;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
}

.form-privacy-note {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.5;
}

/* Contact Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.sidebar-box-header {
  margin-bottom: 14px;
}

.sidebar-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.sidebar-box h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.sidebar-desc {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 20px;
  line-height: 1.5;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-top: 2px;
}

.info-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

a.info-value:hover {
  color: var(--blue);
}

.highlight-box {
  background: #F0F9FF;
  border-color: #BAE6FD;
}

.highlight-box h4 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
}

.highlight-box p {
  font-size: 13px;
  color: #0369A1;
  line-height: 1.6;
}

.highlight-box a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

.sla-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.sla-list li {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  border-left: 2px solid var(--blue);
  padding-left: 10px;
}

/* Thank You Page Styling */
.thank-you-section {
  padding: 80px 0 100px;
  background: var(--bg-soft);
  min-height: calc(100vh - 400px);
  display: flex;
  align-items: center;
}

.thank-you-card {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 56px 48px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(11, 31, 51, 0.05);
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: rgba(22, 163, 74, 0.1);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.thank-you-card .eyebrow {
  display: inline-block;
  color: var(--blue);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.thank-you-card h1 {
  font-size: 38px;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.thank-you-lead {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.next-steps-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
  text-align: left;
}

.next-steps-box h3 {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
}

.step-card .step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}

.step-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}

.direct-support-banner {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 6px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  margin-bottom: 32px;
  gap: 20px;
}

.direct-support-banner h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.direct-support-banner p {
  font-size: 13px;
  color: var(--ink-2);
}

.direct-support-banner a {
  color: var(--blue);
  font-weight: 600;
}

.thank-you-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .direct-support-banner {
    flex-direction: column;
    text-align: center;
  }
  .thank-you-card {
    padding: 36px 20px;
  }
}

/* -------------------------------------------------------------------------
 * Books (post type: book)
 * Library archive + single title, built on the VALCO design tokens.
 * ------------------------------------------------------------------------- */

.books-section {
  padding: 72px 0 96px;
}

.books-section--tight {
  padding-top: 56px;
}

/* Section heading used above the grid */
.books-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.books-heading h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
  margin: 0;
}

.books-heading .books-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
}

/* Featured title ---------------------------------------------------------- */
.book-featured {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 56px;
  transition: border-color .2s ease;
}

.book-featured:hover {
  border-color: var(--blue);
}

.book-featured-media {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.book-featured-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.book-featured-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-featured-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
}

.book-featured-title {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 0;
}

.book-featured-title a {
  color: var(--ink);
  text-decoration: none;
}

.book-featured-title a:hover {
  color: var(--blue);
}

.book-featured-meta {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}

.book-featured-excerpt {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
  max-width: 60ch;
}

.book-featured-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Card grid --------------------------------------------------------------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.book-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.book-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.06);
}

.book-card-media {
  display: block;
  position: relative;
  text-decoration: none;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.book-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.book-card-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 1px;
}

.book-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.book-card-title {
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.3px;
}

.book-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.book-card-title a:hover {
  color: var(--blue);
}

.book-card-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0;
}

.book-card-pub {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}

.book-card-excerpt {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

.book-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.book-card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  margin: 0;
}

.book-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.book-card-link::after {
  content: "→";
  color: var(--blue);
  transition: transform .2s ease;
}

.book-card:hover .book-card-link::after {
  transform: translateX(3px);
}

/* Cover placeholder falls back to the neutral wireframe block */
.book-cover-placeholder {
  aspect-ratio: 3 / 4;
  height: auto;
  border: 0;
  border-radius: 0;
}

/* Pagination ------------------------------------------------------------- */
.books-pagination {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.books-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.books-pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.books-pagination .page-numbers {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--ink-2);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.books-pagination .page-numbers:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.books-pagination .page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.books-pagination .page-numbers.dots {
  border-color: transparent;
  color: var(--ink-3);
}

/* Empty state ------------------------------------------------------------ */
.books-empty {
  text-align: center;
  padding: 56px 24px 40px;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
  background: var(--bg-soft);
}

.books-empty h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.books-empty p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0 auto 26px;
}

/* Single title ----------------------------------------------------------- */
.book-crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.book-crumbs a {
  color: var(--blue);
  text-decoration: none;
}

.book-crumbs a:hover {
  text-decoration: underline;
}

.book-spec-strip {
  background: var(--navy-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.book-spec-strip-inner {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.book-spec-item .k {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 4px;
}

.book-spec-item .v {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.book-detail-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.book-detail-media {
  position: sticky;
  top: 96px;
}

.book-cover-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
}

.book-detail-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.book-cover-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  margin: 14px 0 0;
  letter-spacing: 0.5px;
}

.book-detail-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Price panel */
.book-price-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 28px;
}

.book-price-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 8px;
}

.book-price-value {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -1px;
  display: block;
  margin-bottom: 6px;
}

.book-price-note {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0 0 20px;
}

/* Detail list */
.book-meta-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 28px;
}

.book-meta-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}

.book-meta-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.book-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.book-meta-row:first-child {
  padding-top: 0;
}

.book-meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.book-meta-row dt {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.book-meta-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.book-meta-row dd.mono {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Entry content */
.book-entry-content {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.75;
}

.book-entry-content p {
  margin-bottom: 18px;
}

.book-entry-content h2,
.book-entry-content h3 {
  color: var(--ink);
  margin: 28px 0 12px;
  letter-spacing: -0.3px;
}

.book-entry-content ul,
.book-entry-content ol {
  margin: 0 0 18px 20px;
}

.book-detail-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.book-related {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.book-protected {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.book-protected h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.book-protected input[type="password"] {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 16px 0;
  width: 100%;
  font-family: inherit;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .book-featured {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .book-featured-title {
    font-size: 24px;
  }
  .book-grid {
    grid-template-columns: 1fr;
  }
  .book-detail-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .book-detail-media {
    position: static;
  }
  .book-spec-strip-inner {
    gap: 24px;
  }
  .book-price-value {
    font-size: 34px;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------------------------------------------
 * Navigation: Books entry with an audience dropdown
 * ------------------------------------------------------------------------- */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Extend the hover area down to the panel so the pointer can travel into it */
.nav-item.has-dropdown {
  padding-block: 22px;
  margin-block: -22px;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .65;
  transition: transform .2s ease;
}

.nav-item.has-dropdown:hover .nav-caret,
.nav-item.has-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 248px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(11, 31, 51, 0.10);
  padding: 10px;
  z-index: 300;
}

.nav-item.has-dropdown:hover > .nav-dropdown,
.nav-item.has-dropdown:focus-within > .nav-dropdown {
  display: block;
}

.nav-dropdown-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 12px 10px;
}

.site-nav .nav-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.site-nav .nav-dropdown a:hover,
.site-nav .nav-dropdown a:focus-visible {
  background: var(--bg-soft);
  color: var(--blue);
}

/* Mega menu: all book taxonomies in columns ------------------------------- */
.nav-dropdown.nav-mega {
  left: auto;
  right: -14px;
  min-width: 660px;
  max-width: calc(100vw - 48px);
  padding: 18px 20px 12px;
}

.nav-mega-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 26px 32px;
}

.nav-mega-col .nav-dropdown-label {
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.site-nav .nav-mega-col a {
  padding: 7px 10px;
}

.site-nav .nav-dropdown .nav-mega-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 10px 4px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.2px;
}

.site-nav .nav-dropdown .nav-mega-all:hover {
  background: transparent;
  color: var(--navy);
}

.site-nav .nav-dropdown .nav-mega-all span {
  transition: transform .2s ease;
}

.site-nav .nav-dropdown .nav-mega-all:hover span {
  transform: translateX(3px);
}
/* -------------------------------------------------------------------------
 * Brand logo (Media Library wordmark, white JPEG)
 * ------------------------------------------------------------------------- */
.site-logo .site-logo-img {
  display: block;
  height: 34px;
  width: auto;
}

/* The footer sits on navy, and the logo file is white-backed — give it a chip */
.site-footer .foot-logo {
  display: inline-block;
  background: #ffffff;
  padding: 9px 14px;
  border-radius: 4px;
}

.site-footer .foot-logo .site-logo-img {
  height: 28px;
}/* -------------------------------------------------------------------------
 * Equivalent Replacement page
 * ------------------------------------------------------------------------- */
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Placeholder figures — size is annotated in the image and under it */
.viz-figure {
  margin: 0;
}

.viz-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
}

.viz-figure figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
  margin-top: 10px;
}

.viz-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 28px;
}

@media (max-width: 960px) {
  .viz-figure-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
 * Equivalent Replacement page — icon, tile, flow and table blocks
 * ------------------------------------------------------------------------- */
.viz-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.viz-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Problem row */
.viz-problem-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.viz-problem {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  transition: border-color .2s ease;
}

.viz-problem:hover {
  border-color: var(--blue);
}

.viz-problem h3 {
  font-size: 17px;
  margin: 2px 0 4px;
}

.viz-problem p {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
}

/* Icon tiles */
.viz-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.viz-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 24px;
  transition: border-color .2s ease, transform .2s ease;
}

.viz-tile:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.viz-tile .viz-icon {
  margin-bottom: 18px;
}

.viz-tile h3 {
  font-size: 16px;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

/* Technical value under each tile title — mono, like a data sheet */
.viz-tile p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  margin: 0;
}/* Flow diagram: four connected nodes */
.viz-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.viz-flow-node {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 22px;
  margin-right: 32px;
}

.viz-flow-node:last-child {
  margin-right: 0;
}

.viz-flow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -32px;
  width: 26px;
  height: 1.5px;
  background: var(--line);
}

.viz-flow-node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 0;
  height: 0;
  border-left: 6px solid var(--line);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: translateY(-50%);
}

.viz-flow-node .viz-icon {
  margin-bottom: 16px;
}

.viz-flow-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 8px;
}

.viz-flow-node h3 {
  font-size: 17px;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

.viz-flow-node p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

/* Compact technical table */
.viz-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
}

.viz-table th,
.viz-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.viz-table th {
  background: #F8FAFC;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
}

.viz-table td {
  color: var(--ink-2);
}

.viz-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.viz-table tbody tr:last-child td {
  border-bottom: 0;
}

.viz-table .viz-cell-good {
  color: var(--navy);
  font-family: var(--font-mono);
  font-weight: 500;
}

.viz-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
}

.viz-pill-routine {
  color: #0369A1;
  background: rgba(0, 153, 229, 0.10);
}

.viz-pill-request {
  color: #B45309;
  background: rgba(245, 158, 11, 0.14);
}

.viz-pill-witness {
  color: #15803D;
  background: rgba(22, 163, 74, 0.12);
}

@media (max-width: 960px) {
  .viz-tiles,
  .viz-flow {
    grid-template-columns: 1fr;
  }

  .viz-flow-node {
    margin-right: 0;
    margin-bottom: 18px;
  }

  .viz-flow-node:not(:last-child)::after,
  .viz-flow-node:not(:last-child)::before {
    display: none;
  }

  .viz-table th,
  .viz-table td {
    padding: 11px 14px;
    font-size: 13px;
  }
}/* Either/or question compare (Engineering & Drawings page) */
.viz-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.viz-compare-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 30px;
}

.viz-compare-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.viz-compare-line {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin: 0 0 12px;
}

.viz-compare-line:last-child {
  margin-bottom: 0;
}

.viz-compare-yes {
  border-color: rgba(22, 163, 74, 0.45);
}

.viz-compare-yes .viz-compare-tag {
  color: var(--green);
}

.viz-compare-no .viz-compare-tag {
  color: var(--ink-3);
}

.viz-compare-no .viz-compare-line {
  color: var(--ink-3);
  font-weight: 500;
  text-decoration: line-through;
}

@media (max-width: 960px) {
  .viz-compare {
    grid-template-columns: 1fr;
  }

  .viz-compare-line {
    font-size: 16px;
  }
}/* -------------------------------------------------------------------------
 * FAQ page
 * ------------------------------------------------------------------------- */
.viz-section-tight {
  padding: 72px 0 48px;
}

.faq-stack {
  display: grid;
  gap: 28px;
  max-width: 980px;
}

.faq-group {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  scroll-margin-top: 90px;
}

.faq-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.faq-group-head h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.2px;
}

.faq-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(0, 153, 229, 0.1);
  border-radius: 20px;
  padding: 3px 10px;
}

.faq-list {
  padding: 8px 26px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  flex-shrink: 0;
  border-right: 1.5px solid var(--blue);
  border-bottom: 1.5px solid var(--blue);
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
}

.faq-a {
  padding: 0 4px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 70ch;
}

.faq-pill {
  text-decoration: none;
}

.faq-pill:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

@media (max-width: 960px) {
  .faq-group-head {
    padding: 18px 20px;
  }

  .faq-list {
    padding: 4px 20px;
  }
}