/* =========================================================
   EBIKEFIXIT / DIAGNOSTIC PAGE TEMPLATE
   Shared by pages inside /diagnose/
   Requires the main ../styles.css first.
   ========================================================= */

.diag-page {
  min-height: 70vh;
}

.diag-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #70808b;
  font: 500 10px "IBM Plex Mono", monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.diag-breadcrumb a:hover {
  color: var(--blue);
}

.diag-breadcrumb strong {
  color: var(--ink);
}

.diag-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 72px;
  align-items: center;
  padding: 58px 0 70px;
}

.diag-symptom {
  display: inline-block;
  padding: 7px 10px;
  border-left: 4px solid #f39a3f;
  background: #fff3e7;
  font: 700 11px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
}

.diag-hero h1 {
  max-width: 820px;
  margin: 16px 0 22px;
  font-size: clamp(46px, 6.2vw, 76px);
  line-height: .97;
  letter-spacing: -.055em;
}

.diag-lead {
  max-width: 760px;
  margin: 0;
  color: #43586b;
  font-size: 18px;
  line-height: 1.7;
}

.diag-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  border-top: 1px solid #bcc6cc;
  border-bottom: 1px solid #bcc6cc;
}

.diag-facts > div {
  min-height: 78px;
  padding: 14px 16px 14px 0;
}

.diag-facts > div + div {
  padding-left: 18px;
  border-left: 1px solid #d0d6d9;
}

.diag-facts b,
.diag-test-result b {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font: 700 10px "IBM Plex Mono", monospace;
  letter-spacing: .09em;
}

.diag-facts span {
  display: block;
  color: #43586b;
  font-size: 12px;
  line-height: 1.45;
}

.diag-bench-note {
  position: relative;
  padding: 30px;
  border: 1px solid #9daab3;
  background:
    linear-gradient(#eef2f4 1px, transparent 1px),
    linear-gradient(90deg, #eef2f4 1px, transparent 1px),
    var(--white);
  background-size: 27px 27px;
  box-shadow: 8px 8px 0 rgba(16, 43, 70, .08);
}

.diag-bench-note::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 34px;
  width: 104px;
  height: 22px;
  background: rgba(246, 217, 79, .82);
  transform: rotate(-1.5deg);
}

.diag-bench-note h2 {
  margin: 12px 0 10px;
  font-size: 30px;
  letter-spacing: -.035em;
}

.diag-bench-note > p {
  margin: 0;
  color: #526574;
  font-size: 13px;
  line-height: 1.65;
}

.diag-flow {
  display: grid;
  gap: 5px;
  margin-top: 26px;
}

.diag-flow span {
  padding: 9px 12px;
  border: 1px solid #aeb9c0;
  background: rgba(255, 254, 250, .92);
  font: 700 10px "IBM Plex Mono", monospace;
  letter-spacing: .06em;
}

.diag-flow span:first-child {
  border-left: 4px solid #f39a3f;
}

.diag-flow i {
  margin-left: 15px;
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.diag-quick {
  border-block: 1px solid #c8cecf;
  background: #e6e1d5;
}

.diag-quick-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  padding: 34px 0;
}

.diag-quick h2 {
  margin: 8px 0 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.diag-step-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diag-step-index a {
  display: block;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid #b6b1a6;
  background: rgba(255, 254, 250, .68);
}

.diag-step-index a:hover {
  border-color: var(--blue);
  background: var(--white);
}

.diag-step-index b {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font: 700 10px "IBM Plex Mono", monospace;
}

.diag-step-index span {
  font-size: 12px;
  font-weight: 700;
}

.diag-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 70px;
  align-items: start;
  padding-top: 68px;
  padding-bottom: 88px;
}

.diag-content {
  min-width: 0;
}

.diag-step {
  scroll-margin-top: 100px;
  padding: 0 0 60px;
  margin-bottom: 60px;
  border-bottom: 1px solid #c5cdd1;
}

.diag-step-head {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.diag-step-head > span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid #95a5af;
  background: var(--white);
  color: var(--blue);
  box-shadow: 4px 4px 0 rgba(16, 43, 70, .07);
  font: 800 13px "IBM Plex Mono", monospace;
}

.diag-step-head .code {
  margin: 4px 0 5px;
}

.diag-step h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 39px);
  letter-spacing: -.04em;
}

.diag-step > p {
  max-width: 760px;
  margin: 0 0 26px;
  color: #43586b;
  font-size: 15px;
  line-height: 1.75;
}

.diag-test-result {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  border: 1px solid #aeb9c0;
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(16, 43, 70, .05);
}

.diag-test,
.diag-result {
  padding: 22px 24px;
}

.diag-test {
  border-right: 1px solid #c8d0d4;
  background: #f7f3ea;
}

.diag-test p,
.diag-result p {
  margin: 0;
  color: #3f5465;
  font-size: 13px;
  line-height: 1.65;
}

.diag-result ul {
  margin: 0;
  padding-left: 18px;
  color: #3f5465;
}

.diag-result li {
  margin: 0 0 9px;
  padding-left: 3px;
  font-size: 13px;
  line-height: 1.55;
}

.diag-result li:last-child {
  margin-bottom: 0;
}

.diag-sidebar {
  position: sticky;
  top: 96px;
}

.diag-sidebar-card {
  padding: 18px;
  border: 1px solid #aeb9c0;
  background: var(--white);
}

.diag-sidebar-card .code {
  display: block;
  margin-bottom: 12px;
}

.diag-sidebar-card a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 7px;
  padding: 10px 0;
  border-top: 1px solid #d4dadd;
  color: #526574;
  font-size: 11px;
  line-height: 1.35;
}

.diag-sidebar-card a:hover {
  color: var(--blue);
}

.diag-sidebar-card b {
  color: var(--blue);
  font: 700 10px "IBM Plex Mono", monospace;
}

.diag-rule {
  margin-top: 18px;
  padding: 18px;
  border-left: 4px solid var(--blue);
  background: #eef5ff;
}

.diag-rule p {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.diag-faq {
  scroll-margin-top: 100px;
  padding: 4px 0 54px;
}

.diag-faq h2 {
  margin: 8px 0 22px;
  font-size: 34px;
  letter-spacing: -.035em;
}

.diag-faq details {
  border-top: 1px solid #bdc6cb;
}

.diag-faq details:last-of-type {
  border-bottom: 1px solid #bdc6cb;
}

.diag-faq summary {
  cursor: pointer;
  padding: 17px 2px;
  font-weight: 800;
  list-style: none;
}

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

.diag-faq summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  font: 700 18px "IBM Plex Mono", monospace;
}

.diag-faq details[open] summary::after {
  content: "–";
}

.diag-faq details p {
  max-width: 760px;
  margin: -3px 0 18px;
  color: #526574;
  font-size: 13px;
  line-height: 1.7;
}

.diag-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 35px;
  align-items: center;
  margin-top: 10px;
  padding: 28px 30px;
  border: 1px solid #aeb9c0;
  background:
    linear-gradient(#edf1f2 1px, transparent 1px),
    linear-gradient(90deg, #edf1f2 1px, transparent 1px),
    var(--white);
  background-size: 28px 28px;
  box-shadow: 7px 7px 0 rgba(16, 43, 70, .07);
}

.diag-cta h2 {
  margin: 8px 0 6px;
  font-size: 26px;
  letter-spacing: -.03em;
}

.diag-cta p {
  margin: 0;
  color: #526574;
  font-size: 13px;
  line-height: 1.55;
}

/* Keep the global footer/nav rules from being accidentally altered by this template. */

@media (max-width: 950px) {
  .diag-hero {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .diag-bench-note {
    max-width: 680px;
  }

  .diag-quick-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .diag-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .diag-sidebar {
    position: static;
    order: -1;
    margin-bottom: 42px;
  }

  .diag-sidebar-card {
    display: none;
  }

  .diag-rule {
    max-width: 520px;
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .diag-hero {
    padding: 42px 0 48px;
  }

  .diag-hero h1 {
    font-size: 45px;
  }

  .diag-lead {
    font-size: 16px;
  }

  .diag-facts {
    grid-template-columns: 1fr;
  }

  .diag-facts > div {
    min-height: 0;
    padding: 12px 0;
  }

  .diag-facts > div + div {
    padding-left: 0;
    border-top: 1px solid #d0d6d9;
    border-left: 0;
  }

  .diag-bench-note {
    padding: 25px 21px;
  }

  .diag-step-index {
    grid-template-columns: 1fr 1fr;
  }

  .diag-layout {
    padding-top: 48px;
    padding-bottom: 68px;
  }

  .diag-step {
    margin-bottom: 46px;
    padding-bottom: 46px;
  }

  .diag-step-head {
    grid-template-columns: 45px 1fr;
    gap: 13px;
  }

  .diag-step-head > span {
    width: 42px;
    height: 42px;
  }

  .diag-test-result {
    grid-template-columns: 1fr;
  }

  .diag-test {
    border-right: 0;
    border-bottom: 1px solid #c8d0d4;
  }

  .diag-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .diag-step-index {
    grid-template-columns: 1fr;
  }

  .diag-breadcrumb {
    font-size: 9px;
  }

  .diag-hero h1 {
    font-size: 39px;
  }
}
.diag-bench-note::before{
  content:"DON'T SKIP THIS";
  position:absolute;
  top:-10px;
  left:34px;

  width:auto;
  height:auto;
  padding:6px 10px;

  background:var(--label-yellow);
  color:var(--ink);

  font:700 11px "IBM Plex Mono", monospace;
  line-height:1;
  letter-spacing:.03em;

  white-space:nowrap;

  box-shadow:2px 3px 0 rgba(16,43,70,.10);
  transform:rotate(-1.5deg);
  z-index:2;
}


/* =========================================================
   OTHER SYMPTOMS
   Uses DIV/DETAILS on purpose so the site's global nav rules
   cannot affect this component.
   ========================================================= */
.diag-other-symptoms{
  display:block;
  margin:18px 0 0;
  padding:18px;
  border:1px solid #aeb9c0;
  background:var(--white);
  font:inherit;
}

.diag-other-title{
  margin:0 0 8px;
  color:var(--blue);
  font:700 10px "IBM Plex Mono", monospace;
  letter-spacing:.08em;
}

.diag-other-link{
  display:grid;
  grid-template-columns:10px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  margin:0;
  padding:10px 4px;
  border-top:1px solid #d4dadd;
  color:#526574;
  font:500 11px/1.35 Inter, sans-serif;
  text-decoration:none;
}

.diag-other-title + .diag-other-link{
  border-top:0;
}

a.diag-other-link:hover{
  color:var(--blue);
  background:rgba(16,43,70,.035);
}

.diag-other-link.is-current{
  color:var(--ink);
  background:rgba(16,43,70,.05);
  font-weight:700;
}

.diag-other-link small{
  font:700 8px "IBM Plex Mono", monospace;
  letter-spacing:.04em;
  color:#71808b;
  white-space:nowrap;
}

.diag-other-link .dot{
  display:block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#999;
}

.diag-other-link .dot.red{background:#ef5b5b;}
.diag-other-link .dot.orange{background:#f39a3f;}
.diag-other-link .dot.yellow{background:#e6c84f;}
.diag-other-link .dot.purple{background:#a47bdc;}
.diag-other-link .dot.teal{background:#43b9b1;}

.diag-other-mobile{
  display:none;
}

@media (max-width:950px){
  .diag-other-symptoms{
    display:none;
  }

  .diag-other-mobile{
    display:block;
    position:fixed;
    right:16px;
    bottom:16px;
    z-index:1000;
    width:min(310px,calc(100vw - 32px));
    margin:0;
    font:inherit;
  }

  .diag-other-mobile summary{
    display:flex;
    align-items:center;
    gap:10px;
    width:max-content;
    margin-left:auto;
    padding:11px 14px;
    border:1px solid rgba(255,255,255,.16);
    background:var(--ink);
    color:#fff;
    box-shadow:3px 4px 0 rgba(16,43,70,.14);
    cursor:pointer;
    list-style:none;
    font:700 10px "IBM Plex Mono", monospace;
    letter-spacing:.06em;
  }

  .diag-other-mobile summary::-webkit-details-marker{
    display:none;
  }

  .diag-other-mobile summary b{
    font-size:16px;
    line-height:1;
    font-weight:400;
  }

  .diag-other-mobile[open] summary b{
    transform:rotate(45deg);
  }

  .diag-other-mobile-panel{
    margin:0 0 8px;
    padding:8px 10px;
    border:1px solid #aeb9c0;
    background:#fcf8f3;
    box-shadow:4px 5px 0 rgba(16,43,70,.12);
  }

  .diag-other-mobile-panel .diag-other-link:first-child{
    border-top:0;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 90px;
  }
}