/* Profab Machine - rod ends knowledge base preview.
   The palette is drawn from the supplied logo: logo blue, deep navy, black,
   white, and a cool blue-grey field for the resource directory. */

.profab-page-knowledge-base {
  --kb-blue: #1f5db7;
  --kb-blue-dark: #164887;
  --kb-blue-soft: #eaf2fc;
  --kb-blue-pale: #f4f8fd;
  --kb-navy: #0a1c36;
  --kb-ink: #101419;
  --kb-muted: #5d6876;
  --kb-line: #d7e0ea;
  background: var(--color-white);
  color: var(--kb-ink);
  overflow-x: hidden;
}

.profab-page-knowledge-base .skip-link {
  background: var(--kb-navy);
  color: var(--color-white);
  left: 12px;
  padding: 8px 12px;
  position: fixed;
  top: -50px;
  z-index: 100;
}

.profab-page-knowledge-base .skip-link:focus {
  top: 12px;
}

.profab-page-knowledge-base .breadcrumb-bar {
  background: var(--color-white);
  color: var(--kb-muted);
  font-family: var(--font-heading);
  font-size: 0.77rem;
  padding: 15px 0;
}

.profab-page-knowledge-base .breadcrumb-bar a {
  color: var(--kb-muted);
  text-decoration: none;
}

.profab-page-knowledge-base .breadcrumb-bar a:hover,
.profab-page-knowledge-base .breadcrumb-bar a:focus-visible {
  color: var(--kb-blue);
  text-decoration: underline;
}

/* ---------- Hero ---------- */

.profab-page-knowledge-base .knowledge-hero {
  background:
    radial-gradient(circle at 92% 16%, rgba(126, 179, 246, 0.42), transparent 27%),
    linear-gradient(128deg, var(--kb-blue) 0%, var(--kb-blue-dark) 58%, var(--kb-navy) 100%);
  color: var(--color-white);
  min-height: 480px;
  overflow: hidden;
  position: relative;
}

.profab-page-knowledge-base .knowledge-hero::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to right, black, transparent 82%);
  opacity: 0.6;
  pointer-events: none;
  position: absolute;
}

.profab-page-knowledge-base .knowledge-hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(40px, 8vw, 120px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  min-height: 480px;
  position: relative;
  z-index: 1;
}

.profab-page-knowledge-base .knowledge-hero__copy {
  padding: 58px 0;
}

.profab-page-knowledge-base .eyebrow,
.profab-page-knowledge-base .section-kicker {
  color: var(--kb-blue);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profab-page-knowledge-base .knowledge-hero .eyebrow {
  color: #b9d7fb;
  margin-bottom: 21px;
}

.profab-page-knowledge-base .knowledge-hero h1 {
  color: var(--color-white);
  font-size: clamp(3rem, 6vw, 5.8rem);
  letter-spacing: -0.045em;
  line-height: 0.91;
  margin-bottom: 28px;
}

.profab-page-knowledge-base .knowledge-hero h1 span {
  color: #b9d7fb;
}

.profab-page-knowledge-base .knowledge-hero__copy > p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  margin-bottom: 29px;
  max-width: 630px;
}

.profab-page-knowledge-base .knowledge-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profab-page-knowledge-base .knowledge-hero .btn-primary {
  background: var(--color-white);
  color: var(--kb-blue-dark);
}

.profab-page-knowledge-base .knowledge-hero .btn-primary:hover,
.profab-page-knowledge-base .knowledge-hero .btn-primary:focus-visible {
  background: #cfe4fc;
  color: var(--kb-navy);
}

.profab-page-knowledge-base .knowledge-hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.66);
  color: var(--color-white);
}

.profab-page-knowledge-base .knowledge-hero .btn-outline:hover,
.profab-page-knowledge-base .knowledge-hero .btn-outline:focus-visible {
  background: var(--color-white);
  color: var(--kb-blue-dark);
}

.profab-page-knowledge-base .knowledge-hero__index {
  align-self: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  margin: 54px 0;
  padding: 29px 0 29px 42px;
  position: relative;
}

.profab-page-knowledge-base .knowledge-hero__index-mark {
  color: rgba(255, 255, 255, 0.13);
  font-family: var(--font-heading);
  font-size: clamp(6rem, 13vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 0.8;
  position: absolute;
  right: -22px;
  top: 62px;
}

.profab-page-knowledge-base .knowledge-hero__index-title {
  color: #d7e8fd;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  position: relative;
  text-transform: uppercase;
}

.profab-page-knowledge-base .knowledge-hero__index-line {
  background: #9bc9f6;
  height: 2px;
  margin: 18px 0 24px;
  position: relative;
  width: 62px;
}

.profab-page-knowledge-base .knowledge-hero__stats {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 370px;
  position: relative;
}

.profab-page-knowledge-base .knowledge-hero__stats strong,
.profab-page-knowledge-base .knowledge-hero__stats span {
  display: block;
}

.profab-page-knowledge-base .knowledge-hero__stats strong {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
}

.profab-page-knowledge-base .knowledge-hero__stats span {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  margin-top: 7px;
  text-transform: uppercase;
}

.profab-page-knowledge-base .knowledge-hero__diagram {
  bottom: 16px;
  height: 124px;
  position: absolute;
  right: 19px;
  width: 124px;
}

.profab-page-knowledge-base .diagram-ring,
.profab-page-knowledge-base .diagram-axis,
.profab-page-knowledge-base .diagram-dot {
  display: block;
  position: absolute;
}

.profab-page-knowledge-base .diagram-ring {
  border: 1px solid rgba(185, 215, 251, 0.6);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.profab-page-knowledge-base .diagram-ring--outer {
  height: 108px;
  width: 108px;
}

.profab-page-knowledge-base .diagram-ring--inner {
  border-color: rgba(185, 215, 251, 0.9);
  height: 54px;
  width: 54px;
}

.profab-page-knowledge-base .diagram-axis {
  background: rgba(185, 215, 251, 0.55);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.profab-page-knowledge-base .diagram-axis--horizontal {
  height: 1px;
  width: 122px;
}

.profab-page-knowledge-base .diagram-axis--vertical {
  height: 122px;
  width: 1px;
}

.profab-page-knowledge-base .diagram-dot {
  background: #d7e8fd;
  border-radius: 50%;
  height: 9px;
  left: calc(50% - 4px);
  top: calc(50% - 4px);
  width: 9px;
}

/* ---------- Intro strip ---------- */

.profab-page-knowledge-base .intro-strip {
  background: var(--kb-navy);
  color: var(--color-white);
}

.profab-page-knowledge-base .intro-strip__inner {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  padding-bottom: 22px;
  padding-top: 22px;
}

.profab-page-knowledge-base .intro-strip p {
  font-size: 0.91rem;
  margin: 0;
}

.profab-page-knowledge-base .intro-strip strong {
  color: #b9d7fb;
  font-family: var(--font-heading);
  margin-right: 8px;
}

.profab-page-knowledge-base .text-link {
  color: #b9d7fb;
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.profab-page-knowledge-base .text-link:hover,
.profab-page-knowledge-base .text-link:focus-visible {
  color: var(--color-white);
  text-decoration: underline;
}

/* ---------- Topic directory ---------- */

.profab-page-knowledge-base .topic-section {
  background: var(--kb-blue-pale);
  padding: clamp(70px, 8vw, 112px) 0;
}

.profab-page-knowledge-base .topic-layout {
  align-items: start;
  display: grid;
  gap: clamp(40px, 7vw, 100px);
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1.5fr);
}

.profab-page-knowledge-base .topic-sidebar__sticky {
  position: sticky;
  top: 100px;
}

.profab-page-knowledge-base .topic-sidebar h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 14px 0 16px;
}

.profab-page-knowledge-base .topic-sidebar > p {
  color: var(--kb-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.profab-page-knowledge-base .topic-search {
  background: var(--color-white);
  border: 1px solid var(--kb-line);
  display: block;
  padding: 12px 14px 11px;
}

.profab-page-knowledge-base .topic-search span {
  color: var(--kb-blue);
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.profab-page-knowledge-base .topic-search input {
  background: transparent;
  border: 0;
  color: var(--kb-ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: 0;
  padding: 3px 0;
  width: 100%;
}

.profab-page-knowledge-base .topic-search:focus-within {
  border-color: var(--kb-blue);
  box-shadow: 0 0 0 2px rgba(31, 93, 183, 0.14);
}

.profab-page-knowledge-base .search-status {
  color: var(--kb-muted);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  margin: 9px 0 25px;
}

.profab-page-knowledge-base .topic-jump {
  border-top: 1px solid var(--kb-line);
  display: grid;
  grid-template-columns: 1fr;
}

.profab-page-knowledge-base .topic-jump a {
  border-bottom: 1px solid var(--kb-line);
  color: var(--kb-muted);
  display: flex;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  gap: 13px;
  padding: 9px 0;
  text-decoration: none;
}

.profab-page-knowledge-base .topic-jump a span {
  color: var(--kb-ink);
  font-weight: 700;
}

.profab-page-knowledge-base .topic-jump a:hover,
.profab-page-knowledge-base .topic-jump a:focus-visible,
.profab-page-knowledge-base .topic-jump a:hover span,
.profab-page-knowledge-base .topic-jump a:focus-visible span {
  color: var(--kb-blue);
}

.profab-page-knowledge-base .topic-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profab-page-knowledge-base .topic-card {
  background: var(--color-white);
  border: 1px solid var(--kb-line);
  min-width: 0;
  padding: 22px 23px 17px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.profab-page-knowledge-base .topic-card:hover {
  border-color: var(--kb-blue);
  transform: translateY(-3px);
}

.profab-page-knowledge-base .topic-card[hidden] {
  display: none;
}

.profab-page-knowledge-base .topic-card__top {
  align-items: center;
  color: var(--kb-blue);
  display: flex;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.13em;
}

.profab-page-knowledge-base .topic-card__accent {
  color: var(--kb-muted);
  font-size: 0.62rem;
}

.profab-page-knowledge-base .topic-card h3 {
  border-bottom: 1px solid var(--kb-line);
  font-size: 1.34rem;
  line-height: 1.08;
  margin: 27px 0 11px;
  padding-bottom: 15px;
}

.profab-page-knowledge-base .topic-card > p {
  color: var(--kb-muted);
  font-size: 0.82rem;
  min-height: 42px;
  margin-bottom: 11px;
}

.profab-page-knowledge-base .resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profab-page-knowledge-base .resource-list li {
  border-top: 1px dashed var(--kb-line);
  min-width: 0;
}

.profab-page-knowledge-base .resource-list a {
  color: var(--kb-ink);
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 9px 18px 9px 0;
  position: relative;
  text-decoration: none;
}

.profab-page-knowledge-base .resource-list a::after {
  color: var(--kb-blue);
  content: "\2197";
  font-family: var(--font-heading);
  font-size: 0.88rem;
  position: absolute;
  right: 0;
  top: 10px;
}

.profab-page-knowledge-base .resource-list a:hover,
.profab-page-knowledge-base .resource-list a:focus-visible {
  color: var(--kb-blue);
  text-decoration: underline;
}

/* ---------- Quote form ---------- */

.profab-page-knowledge-base .quote-section {
  background: var(--kb-navy);
  color: var(--color-white);
  padding: clamp(70px, 8vw, 110px) 0;
}

.profab-page-knowledge-base .quote-layout {
  display: grid;
  gap: clamp(40px, 8vw, 110px);
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1.18fr);
}

.profab-page-knowledge-base .section-kicker--light {
  color: #a9cdf5;
}

.profab-page-knowledge-base .quote-copy h2 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 4.2vw, 4.1rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 16px 0 19px;
}

.profab-page-knowledge-base .quote-copy p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.96rem;
  max-width: 500px;
}

.profab-page-knowledge-base .quote-email {
  color: #a9cdf5;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 17px;
  text-decoration: none;
}

.profab-page-knowledge-base .quote-email:hover,
.profab-page-knowledge-base .quote-email:focus-visible {
  color: var(--color-white);
  text-decoration: underline;
}

.profab-page-knowledge-base .quote-form {
  background: var(--color-white);
  color: var(--kb-ink);
  padding: clamp(24px, 4vw, 36px);
}

.profab-page-knowledge-base .quote-form__heading {
  border-bottom: 1px solid var(--kb-line);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 22px;
  padding-bottom: 16px;
  text-transform: uppercase;
}

.profab-page-knowledge-base .quote-form__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profab-page-knowledge-base .quote-form label {
  display: block;
}

.profab-page-knowledge-base .quote-form label span {
  color: var(--kb-muted);
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.profab-page-knowledge-base .quote-form input,
.profab-page-knowledge-base .quote-form textarea {
  background: var(--kb-blue-pale);
  border: 1px solid var(--kb-line);
  border-radius: 0;
  color: var(--kb-ink);
  font-family: var(--font-body);
  font-size: 0.86rem;
  padding: 11px 12px;
  width: 100%;
}

.profab-page-knowledge-base .quote-form input:focus,
.profab-page-knowledge-base .quote-form textarea:focus {
  border-color: var(--kb-blue);
  box-shadow: 0 0 0 2px rgba(31, 93, 183, 0.14);
  outline: 0;
}

.profab-page-knowledge-base .quote-form textarea {
  min-height: 108px;
  resize: vertical;
}

.profab-page-knowledge-base .quote-form__full {
  grid-column: 1 / -1;
}

.profab-page-knowledge-base .quote-form .btn {
  margin-top: 19px;
}

.profab-page-knowledge-base .quote-form__note {
  color: var(--kb-muted);
  font-size: 0.7rem;
  margin: 13px 0 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
}

@media (max-width: 900px) {
  .profab-page-knowledge-base .knowledge-hero__grid {
    gap: 42px;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.7fr);
  }

  .profab-page-knowledge-base .knowledge-hero__index {
    padding-left: 28px;
  }

  .profab-page-knowledge-base .topic-layout {
    gap: 35px;
    grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr);
  }
}

@media (max-width: 768px) {
  .profab-page-knowledge-base .knowledge-hero__grid {
    display: block;
    min-height: 0;
  }

  .profab-page-knowledge-base .knowledge-hero__copy {
    padding: 68px 0 40px;
  }

  .profab-page-knowledge-base .knowledge-hero__index {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    margin: 0;
    min-height: 200px;
    padding: 25px 0 48px;
  }

  .profab-page-knowledge-base .knowledge-hero__diagram {
    bottom: 22px;
    right: 10px;
  }

  .profab-page-knowledge-base .intro-strip__inner {
    align-items: flex-start;
    display: block;
  }

  .profab-page-knowledge-base .intro-strip__inner p {
    margin-bottom: 10px;
  }

  .profab-page-knowledge-base .topic-layout,
  .profab-page-knowledge-base .quote-layout {
    grid-template-columns: 1fr;
  }

  .profab-page-knowledge-base .topic-sidebar__sticky {
    position: static;
  }

  .profab-page-knowledge-base .topic-jump {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profab-page-knowledge-base .topic-jump a {
    margin-right: 14px;
  }

  .profab-page-knowledge-base .quote-copy {
    max-width: 620px;
  }

}

@media (max-width: 520px) {
  .profab-page-knowledge-base .knowledge-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .profab-page-knowledge-base .knowledge-hero__actions {
    display: grid;
  }

  .profab-page-knowledge-base .knowledge-hero__actions .btn {
    text-align: center;
    width: 100%;
  }

  .profab-page-knowledge-base .knowledge-hero__stats {
    gap: 10px;
  }

  .profab-page-knowledge-base .knowledge-hero__stats strong {
    font-size: 1.7rem;
  }

  .profab-page-knowledge-base .knowledge-hero__stats span {
    font-size: 0.61rem;
  }

  .profab-page-knowledge-base .topic-grid,
  .profab-page-knowledge-base .quote-form__grid {
    grid-template-columns: 1fr;
  }

  .profab-page-knowledge-base .topic-jump {
    grid-template-columns: 1fr;
  }

  .profab-page-knowledge-base .topic-jump a {
    margin-right: 0;
  }

  .profab-page-knowledge-base .quote-form__full {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profab-page-knowledge-base .topic-card {
    transition: none;
  }
}
