/* Qulqulet story: downhill grade guide & brake-heat planner. Asphalt ground, amber road-sign accent,
   ruled pre-descent cards, numbered braking steps, mobile-safe weight comparison table, two side-by-side
   app views, and a left-accent limits box. Written for Chromium 67 compatibility. */
@font-face {
  font-family: 'QL Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'QL Space';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

.page-qulqulet {
  --head: 'QL Space', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'QL Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --accent: #f5a524;
  --accent-ink: #1a1102;
  --accent-soft: rgba(245, 165, 36, .13);
  --bg: #0a0d14;
  --surface: #121726;
  --hair: rgba(255, 255, 255, .09);
  --hair-2: rgba(255, 255, 255, .17);
  --text: #eef1f7;
  --text-2: #b8c3d1;
  --muted: #98a3b6;
  --bar: rgba(10, 13, 20, .94);
  --live: #34d399;
}

.page-qulqulet main { padding-bottom: 48px; }
.page-qulqulet main .wrap { max-width: 824px; }
.page-qulqulet main > .wrap:first-child { padding-top: 40px; }
.page-qulqulet .crumb { margin: 0 0 24px; font-size: 14px; }
.page-qulqulet .crumb a { color: var(--muted); text-decoration: none; }
.page-qulqulet .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-qulqulet .crumb a:hover { color: var(--accent); }
.page-qulqulet .story-app { margin-bottom: 36px; }
.page-qulqulet main strong { color: var(--text); font-weight: 600; }

/* Hero */
.ql-hero { padding-bottom: 28px; border-bottom: 2px solid var(--hair-2); }
.ql-eyebrow { margin: 0 0 12px; font: 600 12px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ql-hero h1 { max-width: 660px; margin: 0 0 18px; font-size: 34px; line-height: 1.1; }
.ql-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.ql-briefs { margin-top: 24px; display: grid; grid-template-columns: 1fr; grid-gap: 14px; }
.ql-brief { padding: 16px 18px; background: var(--surface); border: 1px solid var(--hair); border-top: 2px solid var(--accent); border-radius: 10px; }
.ql-brief-label { margin: 0 0 6px; font: 600 13px/1.3 var(--head); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.ql-brief p:last-child { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* Sections & prose */
.ql-sec { padding-top: 40px; }
.ql-sec h2 { margin: 0 0 16px; font-size: 25px; line-height: 1.2; }
.ql-sec p { margin: 0 0 18px; color: var(--text-2); }
.ql-sec p:last-child { margin-bottom: 0; }
.page-qulqulet main p:not(.crumb) a:not(.btn),
.page-qulqulet main li a {
  color: var(--text);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--accent);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.page-qulqulet main p:not(.crumb) a:not(.btn):hover,
.page-qulqulet main li a:hover { color: var(--accent); }

/* Source quotes */
.ql-callout-quote {
  margin: 22px 0;
  padding: 18px 20px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}
.ql-callout-quote p { margin: 0 0 8px; font-size: 17px; line-height: 1.55; color: var(--text); }
.ql-callout-quote cite { display: block; font-size: 14px; font-style: normal; color: var(--muted); }

/* Numbered descent checklist */
ol.ql-steps { list-style: none; counter-reset: qlstep; margin: 18px 0 22px; padding: 0; }
ol.ql-steps li {
  position: relative;
  counter-increment: qlstep;
  margin: 0 0 14px;
  padding: 16px 18px 16px 58px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 10px;
  color: var(--text-2);
}
ol.ql-steps li:before {
  content: counter(qlstep);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 700 14px/26px var(--head);
  text-align: center;
}
ol.ql-steps li strong { display: block; margin-bottom: 4px; font-family: var(--head); font-size: 16px; }

/* Worked model comparison table */
.ql-matrix {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  font-size: 15.5px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.ql-matrix caption {
  padding: 12px 16px;
  background: var(--accent-soft);
  border-top: 3px solid var(--accent);
  font: 600 16px/1.4 var(--head);
  color: var(--text);
  text-align: left;
}
.ql-matrix th, .ql-matrix td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.ql-matrix thead th {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--hair-2);
}
.ql-matrix tbody th { font-weight: 600; color: var(--text); }
.ql-matrix td { color: var(--text-2); }
.ql-matrix td:last-child { color: var(--text); }

/* Bullet lists */
ul.ql-rules { list-style: none; margin: 14px 0 22px; padding: 0; }
ul.ql-rules li { position: relative; margin: 0 0 12px; padding-left: 22px; color: var(--text-2); }
ul.ql-rules li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .68em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* App screenshots */
.ql-screens {
  margin: 26px 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 24px;
  justify-items: center;
}
.ql-screens figure { width: 100%; max-width: 280px; margin: 0; }
.ql-screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--hair-2);
}
.ql-screens figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Limits and what was not checked */
.ql-honest {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
}
.ql-honest h2 { margin-top: 0; font-size: 22px; }
.ql-honest ul.ql-rules { margin-bottom: 16px; }
.ql-honest p:last-child { margin-bottom: 0; color: var(--text-2); }

/* Closing action row */
.ql-end { margin: 40px 0 0; }
.ql-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.ql-end a:not(.btn) { display: inline-block; margin-bottom: 12px; vertical-align: middle; }

@media (max-width: 600px) {
  .ql-matrix { min-width: 0; font-size: 13px; }
  .ql-matrix th, .ql-matrix td { min-width: 0; padding: 8px 6px; }
  .ql-matrix caption { padding: 10px 8px; font-size: 14px; }
  .ql-matrix thead th { font-size: 12px; }
  .ql-matrix tbody th { white-space: nowrap; }
  .ql-matrix tbody td:nth-child(2),
  .ql-matrix tbody td:nth-child(3) { white-space: nowrap; }
}

@media (min-width: 660px) {
  .ql-briefs { grid-template-columns: 1fr 1fr; }
  .ql-screens { grid-template-columns: 280px 280px; justify-content: center; grid-gap: 32px; }
}

@media (min-width: 900px) {
  .page-qulqulet main > .wrap:first-child { padding-top: 64px; }
  .ql-hero { padding-bottom: 34px; }
  .ql-hero h1 { font-size: 46px; }
  .ql-lead { font-size: 20px; }
  .ql-sec { padding-top: 56px; }
  .ql-sec h2 { font-size: 30px; }
  .ql-honest { padding: 28px 30px; }
  .ql-honest h2 { font-size: 25px; }
}
