/* Spacing layer, loaded after the base stylesheet. Added after feedback that the sketches felt tight.
   Parents want clarity (most air), tutors want more on one page (ordered, not cramped). */

/* ---- Document-style pages: concepts A to C and the hub ---- */
.theme-doc {
  line-height: 1.75;
}
.theme-doc .wrap {
  max-width: 920px;
  padding: 0 32px 120px;
}
.theme-doc .wrap.wide {
  max-width: 1120px;
}
.theme-doc h1 {
  margin-top: 56px;
}
.theme-doc h2 {
  margin-top: 72px;
}
.theme-doc h3 {
  margin-top: 36px;
}
.theme-doc p {
  margin-top: 16px;
}
.theme-doc .lede {
  margin-top: 20px;
}
.theme-doc .tabs {
  margin-top: 44px;
}
.theme-doc .tab {
  padding: 12px 22px;
}
.theme-doc .sec {
  margin-top: 56px;
  padding-top: 24px;
}
.theme-doc .panel > .sec:first-child {
  margin-top: 40px;
}
.theme-doc .sec > h2:first-child,
.theme-doc .sec > h3:first-child {
  margin-top: 20px;
}
.theme-doc .plain > li {
  padding: 28px 0;
}
.theme-doc .row {
  gap: 14px 16px;
  margin-top: 28px;
}
.theme-doc .btn {
  min-height: 48px;
  padding: 10px 26px;
}
.theme-doc label,
.theme-doc .label-text {
  margin-top: 28px;
}
.theme-doc textarea {
  min-height: 150px;
  padding: 14px 16px;
}
.theme-doc input[type='text'],
.theme-doc select {
  padding: 12px 16px;
}
.theme-doc .margin-note {
  margin-top: 28px;
  padding: 10px 0 10px 22px;
}
.theme-doc .ai {
  margin-top: 32px;
  padding: 20px 24px 24px;
}
.theme-doc .cols {
  gap: 16px 64px;
}
.theme-doc .build {
  margin-top: 72px;
  padding: 24px 28px;
}
.theme-doc details {
  margin-top: 28px;
  padding: 16px 0;
}
.theme-doc th,
.theme-doc td {
  padding: 16px 20px 16px 0;
}
.theme-doc .bars {
  gap: 12px;
  max-width: 440px;
}
.theme-doc .bar {
  height: 36px;
}
/* Parents want clarity: shorter lines, bigger gaps, slightly larger text */
.theme-doc.roomy {
  font-size: 17px;
  line-height: 1.85;
}
.theme-doc.roomy .wrap {
  max-width: 800px;
}
.theme-doc.roomy .sec {
  margin-top: 88px;
}
.theme-doc.roomy h3 {
  margin-top: 48px;
}

/* ---- Tile-style pages: concepts D and E ---- */
.theme-tile {
  line-height: 1.6;
}
.theme-tile .page {
  max-width: 1200px;
  padding: 0 32px 120px;
}
.theme-tile .page.wide {
  max-width: 1440px;
}
.theme-tile .appbar {
  padding-block: 18px;
}
.theme-tile .title {
  margin-top: 52px;
}
.theme-tile .sub {
  margin-top: 12px;
}
.theme-tile .seg {
  margin-top: 32px;
}
.theme-tile .grid {
  gap: 24px;
  margin-top: 40px;
}
.theme-tile .tile {
  min-height: 208px;
  padding: 28px;
}
.theme-tile .tile p {
  margin-top: 10px;
  line-height: 1.5;
}
.theme-tile .row {
  gap: 8px 16px;
  margin-top: 20px;
}
.theme-tile .btn {
  min-height: 48px;
  padding: 0 24px;
}
.theme-tile .chips {
  gap: 12px;
  margin-top: 16px;
}
.theme-tile .list {
  padding: 8px 28px;
  margin-top: 16px;
}
.theme-tile .list a {
  min-height: 64px;
  padding: 12px 0;
}
.theme-tile h2.sect {
  margin-top: 64px;
}
.theme-tile .note {
  margin-top: 56px;
  padding: 22px 26px;
}
.theme-tile .lines li {
  padding: 10px 0;
}
.theme-tile .check {
  min-height: 52px;
}
.theme-tile .field {
  margin-top: 24px;
}
.theme-tile .sheet-flat {
  margin-top: 28px;
  padding: 32px;
}
.theme-tile .studio {
  gap: 24px;
  margin-top: 28px;
}
.theme-tile .side {
  padding: 22px;
}
.theme-tile .sheet {
  padding: 32px;
}
.theme-tile .block {
  margin-top: 16px;
  padding: 18px 22px 18px 48px;
}
.theme-tile .cards {
  gap: 24px;
}
.theme-tile .card {
  min-height: 230px;
  padding: 20px;
}
.theme-tile .steps {
  gap: 14px;
}
.theme-tile .steps li {
  padding: 20px 22px;
}
.theme-tile .pg {
  min-height: 48px;
}
/* Parent home: clarity over density */
.theme-tile #p-parent .grid {
  gap: 32px;
}
.theme-tile #p-parent .tile {
  min-height: 240px;
  padding: 36px;
}
.theme-tile #p-parent .tile .big {
  font-size: 36px;
}

/* Design lab navigation (nav.js): the same bar and footer on every page */
.brand {
  min-height: 44px;
}
.labnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  padding: 10px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  background: #22263d;
  color: #e9e7f7;
  font: 600 14px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.labnav a {
  color: inherit;
  text-decoration: none;
}
.labnav .labnav-home {
  padding: 6px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: #22263d;
}
.labnav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.labnav-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
}
.labnav-list a:hover,
.labnav a:focus-visible {
  background: #3a3f63;
}
.labnav [aria-current='page']:not(.labnav-home) {
  background: #ffd166;
  color: #22263d;
}
.labnav-home[aria-current='page'] {
  background: #ffd166;
}
.labnav-touch {
  margin-left: auto;
  padding: 6px 14px;
  border: 2px solid #b9b6d3;
  border-radius: 999px;
  background: transparent;
  color: #e9e7f7;
  font: inherit;
  cursor: pointer;
}
.labnav-touch[aria-pressed='true'] {
  border-color: #ffd166;
  background: #ffd166;
  color: #22263d;
}
.labnav-touch::before {
  content: 'Off: ';
  font-weight: 400;
}
.labnav-touch[aria-pressed='true']::before {
  content: 'On: ';
}
html.touch .labnav-touch {
  min-height: 48px;
}
.labfoot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #dddfea;
  font: 600 15px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.labfoot a {
  color: #4a44a8;
}

/* Notes on every page: about 80 characters wide, with a clear gap between items and paragraphs */
.note,
.build {
  line-height: 1.65;
}
.note {
  padding: 22px 26px;
}
.build {
  font-size: 15px;
}
.note ul,
.note p,
.build ul,
.build p {
  max-width: 64ch;
}
.note ul,
.build ul {
  margin: 12px 0 0;
}
.note li + li,
.build li + li {
  margin-top: 10px;
}
.note p,
.build p {
  margin: 16px 0 0;
}
