/* Leading the Intelligent Factory: book contents and chapter pages (Nov 2026) */

.bk-hero .hero-sub { max-width: 760px; }
.bk-draft { display: inline-block; margin-top: 1.2rem; font: 800 11px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #f5b942; border: 1px solid rgba(245,185,66,.5); border-radius: 4px; padding: .3rem .6rem; }

.bk-label { font: 800 11px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); margin-bottom: .5rem; }

/* a spread: text left, figure right, like the printed book */
.bk-spread { border-top: 1px solid var(--gray-200); }
.bk-alt { background: var(--gray-50); }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3.5rem; align-items: start; }
.bk-text h2 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 1.2rem; color: var(--green-900); }
.bk-text p { margin-bottom: 1rem; line-height: 1.65; color: var(--gray-700); }
.bk-block { border-top: 1px solid var(--gray-200); padding-top: .9rem; margin-top: .9rem; }
.bk-block strong { color: var(--green-900); }
.bk-ol { margin: 0 0 1rem 1.2rem; color: var(--gray-700); line-height: 1.6; }
.bk-ol li { margin-bottom: .55rem; padding-left: .2rem; }
.bk-ol strong { color: var(--green-900); }

.bk-figs { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: grid; gap: 1.5rem; }
.bk-fig { margin: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 1.25rem 1.25rem 1rem; }
.bk-fig figcaption { font-size: .82rem; color: var(--gray-500); margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--gray-100); line-height: 1.5; }
.bk-svg { width: 100%; height: auto; display: block; }
.bk-img { width: 100%; height: auto; display: block; }

.bk-result { border-left: 3px solid var(--green-600); padding: .2rem 0 .2rem 1rem; margin: 1.4rem 0; }
.bk-result p { margin-bottom: .3rem; }
.bk-big { font-size: 1.6rem; font-weight: 800; color: var(--green-900) !important; line-height: 1.2; }

/* questions, sidebar, in practice */
.bk-close { border-top: 1px solid var(--gray-200); }
.bk-close-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.5rem; }
.bk-q h3 { font-size: 1.25rem; color: var(--green-900); margin-bottom: 1rem; }
.bk-q ol { margin-left: 1.2rem; }
.bk-q li { padding: .55rem 0 .55rem .3rem; border-bottom: 1px solid var(--gray-200); color: var(--gray-700); line-height: 1.5; }
.bk-side { border-top: 3px solid var(--green-600); background: var(--green-50); padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.bk-side p:last-child { color: var(--gray-700); line-height: 1.6; margin: 0; }
.bk-practice { color: var(--gray-700); line-height: 1.6; border-top: 1px solid var(--gray-200); padding-top: .9rem; }
.bk-practice strong { color: var(--green-900); }

.bk-pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 2rem 1.5rem 3.5rem; border-top: 1px solid var(--gray-200); font-weight: 700; }
.bk-pager a { color: var(--green-700); text-decoration: none; }
.bk-pager a:hover { text-decoration: underline; }

/* contents page */
.bk-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.bk-intro-grid h2 { color: var(--green-900); margin-bottom: 1rem; }
.bk-intro-grid p { color: var(--gray-700); line-height: 1.65; margin-bottom: 1rem; }
.bk-toc { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.bk-toc-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 1.2rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--gray-200); }
.bk-toc-row:last-child { border-bottom: 1px solid var(--gray-200); }
.bk-toc-n { font: 800 1.6rem Inter, sans-serif; color: var(--green-200); }
.bk-toc-part { font: 800 10px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); margin: 0 0 .15rem; }
.bk-toc-row h3 { font-size: 1.08rem; margin: 0 0 .2rem; color: var(--gray-900); }
.bk-toc-row h3 a { color: var(--green-800); }
.bk-toc-row p { margin: 0; color: var(--gray-600); font-size: .92rem; }
.bk-st { font: 800 10px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); border: 1px solid var(--gray-300); border-radius: 4px; padding: .25rem .5rem; white-space: nowrap; }
.bk-st.on { color: var(--green-700); border-color: var(--green-400); background: var(--green-50); }

@media (max-width: 900px) {
  .bk-grid, .bk-close-grid, .bk-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .bk-figs { position: static; }
  .bk-toc-row { grid-template-columns: 40px 1fr; }
  .bk-st { grid-column: 2; justify-self: start; }
}
.bk-ol, .bk-q ol { list-style: decimal; }
.bk-ol li::marker, .bk-q li::marker { color: var(--green-600); font-weight: 800; }

/* Chapter 12 scorecard and call to action */
.bk-h2 { font-size: 1.75rem; color: var(--green-900); margin-bottom: 1.2rem; }
.bk-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }
.bk-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: .88rem; line-height: 1.45; }
.bk-table th, .bk-table td { border-bottom: 1px solid var(--gray-200); border-right: 1px solid var(--gray-100); padding: .7rem .8rem; text-align: left; vertical-align: top; color: var(--gray-700); }
.bk-table thead th { font: 800 11px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); border-bottom: 2px solid var(--green-600); }
.bk-table tbody th { font-weight: 800; color: var(--green-900); width: 17%; }
.bk-table tr:last-child th, .bk-table tr:last-child td { border-bottom: 0; }
.bk-box { display: block; width: 14px; height: 14px; border: 1.5px solid var(--gray-400); border-radius: 3px; margin-bottom: .4rem; }
.bk-cap { font-size: .85rem; color: var(--gray-500); margin-top: .9rem; }
.bk-cta { margin-top: 1.2rem; }
