/* Pilot only: a readable main column with a work-specific contents column. */
.content-page > .dt-book-layout {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.dt-book-reading { min-width: 0; }
.dt-book-reading > h1 { font-size: clamp(34px, 4vw, 48px); margin: 0 0 24px; }
.dt-book-reading .wp-block-post-content { max-width: 800px; }
/* Original contents: separate chapter links without editing historical text. */
.dt-original-contents .dt-book-reading .wp-block-post-content h4 {
  margin-block: 0 8px;
  line-height: 1.5;
}
.dt-original-contents .dt-book-reading .wp-block-post-content a {
  display: inline-block;
  padding-block: 4px;
  margin-bottom: 8px;
}
.dt-original-contents .dt-book-reading .wp-block-post-content h4 > a { margin-bottom: 0; }
.dt-book-sections { list-style: none; padding-left: 0; }
.dt-book-sections .dt-contents-depth-1 { padding-left: 14px; }
.dt-book-sections .dt-contents-depth-2 { padding-left: 28px; }
.dt-book-sections .dt-contents-depth-3 { padding-left: 42px; }
.dt-book-sidebar a { overflow-wrap: anywhere; }
@media(min-width:1001px) {
  .dt-book-toc-desktop { max-height: calc(100dvh - 160px); overflow-y: auto; padding: 4px 12px 4px 4px; scrollbar-width: thin; }
}
.dt-book-reading .wp-block-post-content :is(p,h1,h2,h3,h4)[style*="padding-left"] { padding-left: 0 !important; }
.dt-book-sidebar { min-width: 0; position: sticky; top: 52px; padding-left: 24px; border-left: 1px solid var(--line); font: 14px/1.5 Arial,sans-serif; }
.dt-book-sidebar h2 { font-size: 24px; margin-bottom: 18px; }
.dt-book-toc-title { font: 20px/1.35 Georgia,serif; margin: 0 0 18px; }
.dt-book-toc-intro { list-style: none; padding: 0; margin: 14px 0; }
.dt-book-chapters { padding-left: 22px; margin-block: 18px; }
.dt-book-sidebar li { margin-bottom: 9px; }
.dt-book-sidebar a { text-decoration: none; }
.dt-book-sidebar a:hover { text-decoration: underline; }
.dt-book-sidebar a[aria-current="page"] { color: var(--ink); font-weight: bold; background: var(--wash); outline: 4px solid var(--wash); }
.dt-book-back { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }
.dt-book-toc-mobile { display: none; }
.dt-pilot-work { background: var(--wash); padding: clamp(20px,3vw,32px); margin-block: 28px; }
.dt-pilot-work h2 { margin-top: 12px !important; }
.dt-book-sequence { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 36px; font: 14px/1.5 Arial,sans-serif; }
@media(max-width:1000px) {
  .content-page > .dt-book-layout { display: flex; flex-direction: column; gap: 28px; }
  .dt-book-reading { width: 100%; }
  .dt-book-sidebar { order: -1; position: static; width: 100%; padding: 0; border: 0; }
  .dt-book-toc-desktop { display: none; }
  .dt-book-toc-mobile { display: block; border-block: 1px solid var(--line); padding-block: 14px; }
  .dt-book-toc-mobile summary { cursor: pointer; font-weight: bold; padding: 8px 0; }
  .dt-book-toc-mobile nav { padding-top: 20px; }
  .dt-book-back { border: 0; margin-top: 10px; padding-top: 0; }
}
@media print {
  .content-page > .dt-book-layout { display: block; }
  .dt-book-sidebar, .dt-book-sequence { display: none; }
}
