/* Qohum story: lineage & three-thread tie ledger on dark slate ground.
   Teal primary accent with milk-blue and saffron highlights echoing the app palette.
   Built for older mobile browsers (Chromium 67). */
@font-face {
  font-family: 'QO Body';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'QO Display';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

body.page-qohum {
  --head: 'QO Display', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'QO Body', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #0A0D14;
  --surface: #121726;
  --raised: #1A2033;
  --bar: rgba(10, 13, 20, .94);
  --hair: rgba(255, 255, 255, .08);
  --hair-2: rgba(255, 255, 255, .16);
  --text: #EEF1F7;
  --text-2: #B8C2D4;
  --muted: #939FB5;
  --accent: #63B8AF;
  --accent-ink: #062220;
  --accent-soft: rgba(99, 184, 175, .13);
  --qo-milk: #9EC2E0;
  --qo-saffron: #E8B83A;
  --qo-saffron-soft: rgba(232, 184, 58, .11);
  --qo-rose: #F08A93;
  --live: #34D399;
}

@media (prefers-color-scheme: light) {
  body.page-qohum {
    --bg: #0A0D14;
    --surface: #121726;
    --raised: #1A2033;
    --bar: rgba(10, 13, 20, .94);
    --hair: rgba(255, 255, 255, .08);
    --hair-2: rgba(255, 255, 255, .16);
    --text: #EEF1F7;
    --text-2: #B8C2D4;
    --muted: #939FB5;
    --live: #34D399;
  }
}

/* Frame and reading column */
.page-qohum main { padding-bottom: 52px; }
.page-qohum main .wrap { max-width: 820px; }
.page-qohum main > .wrap:first-child { padding-top: 40px; }
.page-qohum .crumb { margin: 0 0 26px; font-size: 14px; }
.page-qohum .crumb a { color: var(--muted); text-decoration: none; }
.page-qohum .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-qohum .crumb a:hover { color: var(--accent); }
.page-qohum .story-app { margin-bottom: 36px; }
.page-qohum main strong { color: var(--text); font-weight: 600; }

/* Hero block with three-thread legend strip */
.qo-hero {
  padding: 0 0 34px;
  border-bottom: 1px solid var(--hair-2);
}
.qo-tag {
  margin: 0 0 12px;
  font: 600 12px/1.4 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.qo-hero h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.14;
}
.qo-lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--text-2);
}
.qo-threads {
  list-style: none;
  margin: 0;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 14px 14px 8px 8px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-items: center;
  align-items: center;
}
.qo-threads li {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  margin: 4px 24px 4px 0;
  font: 600 14px/1.4 var(--head);
  color: var(--text);
}
.qo-threads li:last-child { margin-right: 0; }
.qo-line-birth,
.qo-line-marriage,
.qo-line-milk {
  display: inline-block;
  width: 28px;
  height: 0;
  margin-right: 9px;
  vertical-align: middle;
}
.qo-line-birth { border-top: 3px solid var(--accent); }
.qo-line-marriage { border-top: 5px double var(--accent); }
.qo-line-milk { border-top: 3px dotted var(--qo-milk); }

/* Content sections and text links */
.qo-sec { padding-top: 40px; }
.qo-sec h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.24;
  color: var(--text);
}
.qo-sec h3 {
  margin: 26px 0 12px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text);
}
.qo-sec p {
  margin: 0 0 18px;
  color: var(--text-2);
}
.qo-sec p:last-child { margin-bottom: 0; }
.qo-sec a:not(.btn),
.qo-end a:not(.btn) {
  color: var(--text);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--accent);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.qo-sec a:not(.btn):hover,
.qo-end a:not(.btn):hover { color: var(--accent); }

/* Quote callout */
.qo-quote {
  margin: 22px 0 24px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--qo-saffron);
  border-radius: 0 12px 12px 0;
}
.qo-quote p {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.58;
  color: var(--text);
}
.qo-quote cite {
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
}

/* Three routes triptych */
.qo-routes {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 14px;
}
.qo-routes li {
  margin: 0;
  padding: 18px 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 14px 14px 10px 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}
.qo-routes li.qo-route-birth { border-top: 3px solid var(--accent); }
.qo-routes li.qo-route-marriage { border-top: 5px double var(--accent); }
.qo-routes li.qo-route-milk { border-top: 3px dotted var(--qo-milk); }
.qo-routes strong {
  display: block;
  margin-bottom: 7px;
  font-family: var(--head);
  font-size: 17px;
}

/* Woman's mahram vs non-mahram comparison */
.qo-compare {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 14px;
  margin: 18px 0 24px;
}
.qo-panel {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 12px;
}
.qo-panel h3 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--text);
}
.qo-panel-ok { border-top: 3px solid var(--accent); }
.qo-panel-no { border-top: 3px solid var(--qo-rose); }
.qo-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.qo-panel li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.qo-panel li:last-child { margin-bottom: 0; }
.qo-panel-ok li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .56em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.qo-panel-no li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .56em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--qo-rose);
}

/* Numbered family checklist */
.qo-steps {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
  counter-reset: qostep;
}
.qo-steps li {
  position: relative;
  counter-increment: qostep;
  margin: 0 0 14px;
  padding: 16px 18px 16px 64px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.58;
  color: var(--text-2);
}
.qo-steps li:last-child { margin-bottom: 0; }
.qo-steps li:before {
  content: counter(qostep);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 30px;
  border-radius: 14px 14px 5px 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 700 14px/28px var(--head);
  text-align: center;
}
.qo-steps strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--head);
  font-size: 17px;
}

/* Bullet list for app details */
.qo-notes,
.qo-limits ul {
  list-style: none;
  margin: 14px 0 22px;
  padding: 0;
}
.qo-notes li,
.qo-limits li {
  position: relative;
  margin: 0 0 13px;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.58;
  color: var(--text-2);
}
.qo-notes li:last-child,
.qo-limits li:last-child { margin-bottom: 0; }
.qo-notes li:before {
  content: "";
  position: absolute;
  left: 3px;
  top: .6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* Worked school comparison table */
.qo-table-wrap {
  margin: 20px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 12px;
}
.qo-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.48;
  font-variant-numeric: tabular-nums;
}
.qo-table caption {
  padding: 12px 16px;
  text-align: left;
  font: 600 14px/1.4 var(--head);
  color: var(--text);
  background: var(--accent-soft);
  border-bottom: 2px solid var(--accent);
}
.qo-table th,
.qo-table td {
  padding: 11px 14px;
  text-align: left;
  border-top: 1px solid var(--hair);
  vertical-align: top;
}
.qo-table thead th {
  border-top: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.qo-table tbody th {
  color: var(--text);
  font-weight: 600;
}
.qo-table td { color: var(--text-2); }

/* Phone screenshots */
.qo-shot-solo {
  margin: 26px auto 28px;
  max-width: 270px;
  text-align: center;
}
.qo-shot-pair {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 24px;
  margin: 28px auto;
  max-width: 270px;
}
.qo-shot-pair figure { margin: 0; text-align: center; }
.qo-shot-solo img,
.qo-shot-pair img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--hair-2);
}
.qo-shot-solo figcaption,
.qo-shot-pair figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}

/* Limits and what was not checked */
.qo-limits {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-top: 3px solid var(--qo-saffron);
  border-radius: 14px 14px 10px 10px;
}
.qo-limits h2 {
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--text);
}
.qo-limits h3 {
  margin: 22px 0 10px;
  font-size: 18px;
  color: var(--qo-saffron);
}
.qo-limits p {
  margin: 0 0 16px;
  color: var(--text-2);
}
.qo-limits li:before {
  content: "";
  position: absolute;
  left: 3px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qo-saffron);
}

/* Closing row */
.qo-end { margin: 38px 0 8px; }
.qo-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.page-qohum .qo-end a:not(.btn) {
  display: inline-block;
  margin-bottom: 12px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .qo-table { min-width: 0; font-size: 13px; }
  .qo-table caption { padding: 10px 10px; font-size: 13px; }
  .qo-table th,
  .qo-table td { min-width: 0; padding: 8px 6px; }
  .qo-table thead th { font-size: 11px; }
  .qo-table tbody th { white-space: nowrap; }
  .qo-steps li { padding: 14px 14px 14px 56px; }
  .qo-steps li:before { left: 12px; top: 14px; }
  .qo-limits { padding: 20px 18px; }
}

@media (min-width: 640px) {
  .qo-shot-pair {
    grid-template-columns: 270px 270px;
    max-width: 572px;
    grid-gap: 32px;
  }
}

@media (min-width: 720px) {
  .qo-routes {
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 14px;
  }
  .qo-compare {
    grid-template-columns: 1fr 1fr;
    grid-gap: 16px;
  }
}

@media (min-width: 900px) {
  .page-qohum main > .wrap:first-child { padding-top: 64px; }
  .qo-hero { padding-bottom: 40px; }
  .qo-hero h1 { font-size: 44px; }
  .qo-lead { font-size: 20px; }
  .qo-sec { padding-top: 56px; }
  .qo-sec h2 { font-size: 29px; }
  .qo-limits { padding: 28px 26px; }
}
