/* The wireless course (shared/course-kinds.mjs, course.json "layout": "kinds") under the textbook shell: every page
   takes the shell's bar and body; this file keeps the course front page (three columns, one per kind) in the draft's type, the kind
   colours, and the bar height that the 실습 page's tool bar sticks under. Loaded only by the pages of this course, after
   book.css and reader.css. Course colours use the book's palette tokens where available and the design palette values elsewhere. */
html[data-course-layout="kinds"] {
  --orange: #c05f14;
  --link: var(--go);
  --link-ink: var(--go-2);
  --tint: var(--go-t);
  --band: #f3f5f8;
  --control-line: #c8cfda;
  --faint: var(--ink-2);
  --radius: 12px;
  --radius-box: 20px;
  --k-book: var(--blue); --k-lab: var(--purple); --k-exp: var(--orange);
  /* The bar's height: book.css --head, which the shell takes from the bar (remilab-website bar.css --remi-bar-h; at
     761-1119 px it counts the row that holds this course's menu). The 실습 page's tool bar sticks right under it
     (lab/notebook.css). */
  --course-bar-h: var(--head, 69px);
}
/* A 실습 page: its tool bar is the first row under the bar (lab/notebook.js puts it before the page row) and sticks there;
   the shell's page row scrolls with the page so the two never stack. */
[data-kind="book"] { --k: var(--k-book); }
[data-kind="lab"] { --k: var(--k-lab); }
[data-kind="exp"] { --k: var(--k-exp); }
.kinds-icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--k); }


/* ---------------------------------------------------------------- 실습 · 실험 in the contents column
   A 교재 chapter's 실습 and 실험 (course.json kinds.chapters.<id>.with), under the chapter's pages and above the search field
   : a group head with a rule above it, then one row per chapter in the page row's form (book.css .book-sidebar
   .chapter-pages a), the kind word in the number slot. Values are web-design's. */
/* The front page has the contents only as the drawer the bar's 목차 button opens (<=1080 px), as the signals front page
   does; at 1081 px and wider it keeps the three columns of 「B」 and no contents column. */
html[data-course-kind="home"] .book-layout { display: block; max-width: none; margin: 0; padding: 0; }
@media (min-width: 1081px) { html[data-course-kind="home"] .book-layout > .book-sidebar { display: none; } }
.book-sidebar .kinds-with { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid #e1e5ec; }
.book-sidebar .kinds-with-h { margin: 0 12px 12px; font-size: 14px; font-weight: 650; line-height: 1.5; color: #4a5466; }
.book-sidebar .kinds-with ol { list-style: none; margin: 0; padding: 0; }
.book-sidebar .kinds-with li { margin: 0; }
.book-sidebar .kinds-with :is(a, .kinds-off) { display: flex; align-items: baseline; gap: 12px; padding: 8px 12px; border-radius: 10px;
  font-size: 16px; line-height: 1.45; color: #0d1421; text-decoration: none; }
.book-sidebar .kinds-with a:hover { background: #f3f5f8; }
/* The book stylesheet's old contents rule (.book-sidebar li a>span: 10 px, muted) reaches these spans; the shell resets it
   for its own rows (.chapter-pages .n), so these rows reset it too. */
.book-sidebar .kinds-with :is(a, .kinds-off) > span { min-width: 0; font-size: inherit; color: inherit; }
.book-sidebar .kinds-with :is(a, .kinds-off) > .n { flex: none; font-weight: 500; color: #4a5466; }
.book-sidebar .kinds-with .kinds-off { color: #4a5466; }

/* ---------------------------------------------------------------- course home: head, topics, three columns */
html[data-course-kind="home"] main.kinds-home { max-width: 1280px; margin: 0 auto; padding: 40px 32px 96px; box-sizing: border-box; word-break: keep-all; }
.kinds-head { display: flex; align-items: flex-end; gap: 48px; }
.kinds-head h1 { margin: 0 0 2px; }
.kinds-en { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.kinds-head .lead { margin: 0; }
.kinds-head-side { margin-left: auto; flex: none; padding-bottom: 8px; }
.kinds-ref { font-size: 15px; text-decoration: none; color: var(--link-ink); }
.kinds-ref:hover { text-decoration: underline; }
.kinds-topics { display: flex; align-items: center; gap: 22px; margin: 18px 0; padding: 10px 18px; background: var(--band); border: 1px solid var(--line); border-radius: var(--radius-box); }
.kinds-topics h2 { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.5; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.kinds-topics ul { display: flex; flex-wrap: wrap; gap: 4px 26px; list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.5; }
.kinds-topics li { white-space: nowrap; }
.kinds-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.kinds-col { border: 1px solid var(--line); border-radius: var(--radius-box); padding: 16px 26px 4px; background: var(--paper); scroll-margin-top: 12px; }
.kinds-col-h { display: flex; align-items: center; gap: 12px; }
.kinds-col-h h2 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; color: var(--k); }
.kinds-count { margin-left: auto; font-size: 16px; color: var(--muted); }
.kinds-what { margin: 6px 0 0; font-size: 17px; line-height: 1.6; }
.kinds-facts { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.kinds-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.kinds-items a, .kinds-items .kinds-off { display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 6px; padding: 9px 0 10px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.kinds-items li:last-child :is(a, .kinds-off) { border-bottom: 0; }
.kinds-items a:hover .kinds-t { color: var(--link-ink); }
.kinds-items .kinds-n { grid-row: 1 / 3; font-size: 20px; font-weight: 600; line-height: 1.45; color: var(--muted); font-variant-numeric: tabular-nums; }
.kinds-items .kinds-n-word { font-size: 15px; line-height: 2; }
.kinds-items .kinds-t { font-size: 18px; font-weight: 650; line-height: 1.45; }
.kinds-items .kinds-m { margin-top: 1px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.kinds-items .kinds-off .kinds-t { color: var(--muted); }
.kinds-soon { display: inline-block; margin-left: 8px; padding: 0 7px; border: 1px solid var(--control-line); border-radius: var(--radius);
  font-size: 13px; font-weight: 600; line-height: 1.6; color: var(--muted); vertical-align: 2px; }
/* The draft's type for the title and the first paragraph (book.css .book-layout article h1 and .lead, t2). */
main.kinds-home .kinds-head h1 { font-size: 44px; font-weight: 750; letter-spacing: -.03em; line-height: 1.25; }
main.kinds-home .kinds-head .lead { font-size: 21px; line-height: 1.7; color: #24324a; }

@media (max-width: 1199px) and (min-width: 901px) {
  .kinds-columns { gap: 18px; }
  .kinds-col { padding: 14px 18px 4px; }
}
/* Phone and narrow windows: the home's columns stack. */
@media (max-width: 900px) {
  .kinds-head { display: block; }
  .kinds-head-side { padding: 10px 0 0; }
  .kinds-topics { display: block; padding: 10px 14px; }
  .kinds-topics h2 { margin-bottom: 4px; }
  .kinds-topics ul { gap: 2px 18px; }
  .kinds-topics li { white-space: normal; }
  .kinds-columns { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .kinds-col { padding: 14px 16px 4px; }
}
@media (max-width: 760px) {
  html[data-course-kind="home"] main.kinds-home { padding: 24px 16px 48px; }
  main.kinds-home .kinds-head h1 { font-size: 34px; }
  main.kinds-home .kinds-head .lead { font-size: 19px; }
}
@media (max-width: 600px) {
  .kinds-col-h h2 { font-size: 26px; }
  .kinds-items a, .kinds-items .kinds-off { grid-template-columns: 40px minmax(0, 1fr); }
}
