/* Kobongisa story: a dark architectural floor-plan sheet. Mint and warm peach accents echoing the app's Room Folio
   palette, a calm reading column, 2x2 planning matrix, compact dimension table safe at 390px, and side-by-side route
   vs. arrangement phone frames. */
@font-face {
  font-family: 'KB Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'KB Space';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}
.page-kobongisa {
  --head: 'KB Space', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'KB Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #0a0d14;
  --surface: #121726;
  --raised: #1a2033;
  --hair: rgba(255, 255, 255, .08);
  --hair-2: rgba(255, 255, 255, .17);
  --bar: rgba(10, 13, 20, .94);
  --text: #eef1f7;
  --text-2: #b9c3d4;
  --muted: #98a4b8;
  --accent: #72d8b8;
  --accent-ink: #072219;
  --accent-soft: rgba(114, 216, 184, .12);
  --kb-warm: #fec8aa;
  --kb-warm-soft: rgba(254, 200, 170, .10);
  --live: #34d399;
}

/* Frame */
.page-kobongisa main { padding-bottom: 52px; }
.page-kobongisa main .wrap { max-width: 824px; }
.page-kobongisa main > .wrap:first-child { padding-top: 40px; }
.page-kobongisa .crumb { margin: 0 0 24px; font-size: 14px; }
.page-kobongisa .crumb a { color: var(--muted); text-decoration: none; }
.page-kobongisa .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-kobongisa .crumb a:hover { color: var(--accent); }
.page-kobongisa .story-app { margin-bottom: 36px; }
.page-kobongisa main strong { color: var(--text); font-weight: 600; }
.page-kobongisa main p:not(.crumb) a:not(.btn),
.page-kobongisa 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-kobongisa main p:not(.crumb) a:not(.btn):hover,
.page-kobongisa main li a:hover { color: var(--accent); }

/* Title block */
.kb-head {
  padding: 0 0 32px;
  border-bottom: 1px dashed var(--hair-2);
}
.kb-kicker {
  margin: 0 0 12px;
  font: 600 12px/1.4 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.kb-head h1 { max-width: 680px; font-size: 32px; line-height: 1.12; }
.kb-lead { margin: 18px 0 0; font-size: 18px; line-height: 1.62; color: var(--text-2); }

/* Sections */
.kb-sec { padding-top: 40px; }
.kb-h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.22; }
.kb-p { margin: 0 0 18px; color: var(--text-2); }

/* Four-step layout matrix */
.kb-grid {
  list-style: none;
  margin: 8px 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
}
.kb-grid li {
  position: relative;
  margin: 0;
  padding: 20px 20px 20px 22px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
}
.kb-grid { counter-reset: kbstep; }
.kb-grid li { counter-increment: kbstep; }
.kb-grid li:before {
  content: "0" counter(kbstep);
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 12px/1.4 var(--head);
  letter-spacing: .06em;
}
.kb-grid strong { display: block; margin-bottom: 6px; font-family: var(--head); font-size: 17px; }

/* Source quotes */
.kb-cite {
  margin: 22px 0 24px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-top: 2px solid var(--kb-warm);
  border-radius: 12px;
}
.kb-cite p { margin: 0 0 8px; font-size: 17px; line-height: 1.58; color: var(--text); }
.kb-cite cite { font-size: 14px; font-style: normal; color: var(--muted); }

/* Worked study dimension table */
.kb-table-wrap {
  margin: 12px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 12px;
}
.kb-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.kb-table thead th {
  padding: 12px 14px;
  background: var(--accent-soft);
  color: var(--text);
  font-family: var(--head);
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--accent);
}
.kb-table tbody th,
.kb-table td {
  padding: 11px 14px;
  color: var(--text-2);
  text-align: left;
  border-top: 1px solid var(--hair);
}
.kb-table tbody th { color: var(--text); font-weight: 600; }

/* Lists */
.kb-rules, .kb-limits ul { list-style: none; margin: 4px 0 22px; padding: 0; }
.kb-rules li, .kb-limits li {
  position: relative;
  margin: 0 0 13px;
  padding-left: 24px;
  color: var(--text-2);
}
.kb-rules li:before, .kb-limits li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.kb-limits li:before { background: var(--kb-warm); }

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

/* Limits and close */
.kb-limits {
  padding: 24px 24px 12px;
  background: var(--surface);
  border: 1px dashed var(--hair-2);
  border-left: 3px solid var(--kb-warm);
  border-radius: 14px;
}
.kb-limits .kb-h2 { font-size: 22px; }
.kb-end { margin: 38px 0 0; }
.kb-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.page-kobongisa .kb-end a:not(.btn) {
  display: inline-block;
  margin-bottom: 12px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .kb-table { min-width: 0; font-size: 13px; }
  .kb-table th, .kb-table td { padding: 8px 8px; }
  .kb-table th:first-child, .kb-table td:first-child { white-space: nowrap; }
}
@media (min-width: 640px) {
  .kb-pair { grid-template-columns: 1fr 1fr; max-width: 590px; }
}
@media (min-width: 680px) {
  .kb-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .page-kobongisa main > .wrap:first-child { padding-top: 64px; }
  .kb-head h1 { font-size: 44px; }
  .kb-lead { font-size: 20px; }
  .kb-sec { padding-top: 56px; }
  .kb-h2 { font-size: 28px; }
}
