/* Reading Guides Stylesheet — Shared teaching-page template for S016 */

/* ==========================================================================
   Base & Layout Variables
   ========================================================================== */
:root {
  --guide-yellow: #f0b429;
  --guide-yellow-dark: #d89e1b;
  --guide-yellow-light: #fbe39d;
  --guide-yellow-pale: #fff9e6;
  --guide-film-bg: #151817;
  --guide-film-border: #0c0e0d;
  --guide-black: #0f1412;
  --guide-paper: #faf6ee;
  --guide-paper-card: #ffffff;
  --guide-paper-border: #e3dbc9;
  --guide-ink: #173b34;
  --guide-ink-soft: #4d665f;
  --guide-navy: #244657;
  --guide-cream: #eadfc6;
  --guide-blue: #7593a0;
  --guide-gold: #c89432;
  --guide-madder: #b64d3c;
  --guide-radius: 10px;
}

body.reading-guide-page {
  background-color: var(--guide-paper, #faf6ee);
  color: var(--guide-ink, #173b34);
  font-family: var(--sans, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Header Override (Preserve deep green & existing brand navigation)
   ========================================================================== */
.reading-guide-page .site-header {
  background-color: #173b34 !important;
  color: #fbf7ed !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  padding: 10px clamp(16px, 3.5vw, 48px);
}

.reading-guide-page .site-header .brand {
  color: #fbf7ed !important;
}

.reading-guide-page .site-header .brand-mark {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) !important;
}

.reading-guide-page .site-header .header-link {
  color: #fbf7ed !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: transparent;
}

.reading-guide-page .site-header .header-link:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.reading-guide-page .site-header .header-link.primary {
  background: var(--guide-yellow, #f0b429) !important;
  color: #111111 !important;
  border-color: var(--guide-yellow, #f0b429) !important;
  font-weight: 700;
}

.reading-guide-page .site-header .header-link.primary:hover {
  background: var(--guide-yellow-dark, #d89e1b) !important;
}

@media (max-width: 820px) {
  .reading-guide-page .site-header {
    flex-wrap: wrap !important;
    gap: 12px 16px !important;
    padding: 10px 16px !important;
  }

  .reading-guide-page .site-header .mobile-nav-toggle {
    display: none !important;
  }

  .reading-guide-page .site-header .header-actions {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 4px 0 0 0 !important;
    transition: none !important;
  }

  .reading-guide-page .site-header .header-actions .header-btn,
  .reading-guide-page .site-header .header-actions .header-link {
    width: 100% !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Hero Section: Bold Yellow Field & Film Strip
   ========================================================================== */
.reading-guide-hero {
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
    linear-gradient(180deg, #f6bd33 0%, #e6a81a 100%);
  color: var(--guide-black, #0f1412);
  padding: clamp(32px, 5vw, 64px) clamp(16px, 3.5vw, 48px) clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(15, 20, 18, 0.18);
}

.reading-guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.02) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.hero-inner-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 300px;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

@media (max-width: 1180px) {
  .hero-inner-container {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .hero-film-strip-col {
    grid-column: 1 / -1;
    margin-top: 24px;
  }
}

@media (max-width: 820px) {
  .hero-inner-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Left Hero Column: Copy & Navigation */
.hero-copy-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}

.hero-kicker-strip {
  font-family: var(--sans, sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(15, 20, 18, 0.78);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-headline {
  font-family: Impact, "Arial Narrow", "DM Sans", sans-serif-condensed, sans-serif;
  font-size: clamp(2.8rem, 5.8vw, 5.2rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--guide-black, #0f1412);
  margin: 0;
  word-break: break-word;
}

.hero-short-answer {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.42;
  color: #17241e;
  max-width: 580px;
  margin: 0;
}

.hero-guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background-color: var(--guide-black, #0f1412);
  color: #ffffff;
  transition: transform 0.15s ease, background-color 0.15s ease;
  min-height: 44px;
}

.hero-pill-btn:hover {
  background-color: #232d29;
  transform: translateY(-1px);
}

.hero-pill-btn.is-active {
  background-color: #000000;
  box-shadow: 0 0 0 2px #ffffff, 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-pill-btn.is-secondary {
  background-color: rgba(15, 20, 18, 0.12);
  color: var(--guide-black, #0f1412);
  border: 1.5px solid rgba(15, 20, 18, 0.4);
}

.hero-pill-btn.is-secondary:hover {
  background-color: rgba(15, 20, 18, 0.22);
}

.hero-spec-snippet {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1.5px solid rgba(15, 20, 18, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-spec-name {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--guide-black, #0f1412);
}

.hero-spec-counts {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(15, 20, 18, 0.85);
}

.hero-spec-tagline {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 20, 18, 0.65);
  margin-top: 4px;
}

/* Center Hero Column: Band Sample Showcase */
.hero-band-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-band-frame {
  width: 100%;
  max-width: 440px;
  border-radius: 8px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background-color: #2b302e;
  border: 4px solid rgba(255, 255, 255, 0.6);
}

.hero-band-frame picture,
.hero-band-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  object-position: center;
}

/* Right Hero Column: Film Strip (CSS 35mm Perforations) */
.hero-film-strip-col {
  z-index: 2;
}

.film-strip-container {
  background: var(--guide-film-bg, #151817);
  color: #fbf7ed;
  border-left: 14px solid var(--guide-film-border, #0c0e0d);
  border-right: 14px solid var(--guide-film-border, #0c0e0d);
  position: relative;
  padding: 22px 14px;
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

/* CSS Film Sprocket Holes */
.film-strip-container::before,
.film-strip-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 7px,
    var(--guide-yellow, #f0b429) 7px,
    var(--guide-yellow, #f0b429) 16px,
    transparent 16px,
    transparent 24px
  );
  pointer-events: none;
}

.film-strip-container::before {
  left: -11px;
}

.film-strip-container::after {
  right: -11px;
}

.film-strip-title {
  font-family: var(--sans, sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--guide-yellow, #f0b429);
  margin: 0 0 14px;
  text-align: center;
}

.film-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.film-step-frame {
  background: #202422;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.film-step-num {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--guide-yellow, #f0b429);
  flex-shrink: 0;
}

.film-step-label {
  display: flex;
  flex-direction: column;
}

.film-step-label strong {
  font-size: 0.88rem;
  color: #ffffff;
  line-height: 1.2;
}

.film-step-label small {
  font-size: 0.74rem;
  color: #a4b0ab;
  line-height: 1.3;
}

.film-strip-footer {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

@media (max-width: 1180px) {
  .film-strip-container {
    border-left-width: 10px;
    border-right-width: 10px;
    padding: 16px 12px;
  }
  .film-strip-container::before { left: -8px; }
  .film-strip-container::after { right: -8px; }
  .film-steps-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .film-step-frame {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 140px;
  }
}

@media (max-width: 600px) {
  .film-steps-list {
    flex-direction: column;
  }
  .film-step-frame {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Main Content Layout & Teaching Sections
   ========================================================================== */
.reading-guide-main {
  max-width: 1360px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 40px) 72px;
}

.teaching-section {
  min-width: 0;
  background: var(--guide-paper-card, #ffffff);
  border: 1px solid var(--guide-paper-border, #e3dbc9);
  border-radius: var(--guide-radius, 10px);
  padding: clamp(20px, 3.5vw, 40px);
  margin-bottom: clamp(24px, 4vw, 44px);
  box-shadow: 0 4px 20px rgba(35, 28, 18, 0.04);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--guide-paper-border, #e3dbc9);
}

.section-badge-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--guide-yellow, #f0b429);
  color: var(--guide-black, #0f1412);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.section-heading-text h2 {
  font-family: var(--serif, "Fraunces", serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--guide-ink, #173b34);
  margin: 0;
  line-height: 1.2;
}

.section-heading-text p {
  font-size: 0.95rem;
  color: var(--guide-ink-soft, #4d665f);
  margin: 4px 0 0;
}

/* ==========================================================================
   Interactive Controls Bar (Direction, Stepper, Print)
   ========================================================================== */
.guide-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: #f5eedf;
  border: 1px solid #ded4bf;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tool-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: var(--guide-ink, #173b34);
  border: 1px solid rgba(23, 59, 52, 0.28);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 42px;
  transition: all 0.15s ease;
}

.tool-action-btn:hover {
  background: #fbf7ee;
  border-color: var(--guide-ink, #173b34);
}

.tool-action-btn[aria-pressed="true"],
.tool-action-btn.is-active {
  background: var(--guide-ink, #173b34);
  color: #ffffff;
  border-color: var(--guide-ink, #173b34);
}

.tool-action-btn.print-btn {
  background: var(--guide-yellow, #f0b429);
  color: var(--guide-black, #0f1412);
  border-color: var(--guide-yellow-dark, #d89e1b);
  font-weight: 700;
}

.tool-action-btn.print-btn:hover {
  background: var(--guide-yellow-dark, #d89e1b);
}

.tool-action-btn:focus-visible,
.draft-end-btn:focus-visible,
.motif-row-btn:focus-visible {
  outline: 3px solid var(--guide-yellow, #f0b429);
  outline-offset: 2px;
}

.direction-guide-note {
  margin: 10px 0 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--guide-ink-soft, #4d665f);
  background: #f7f1e4;
  border-left: 4px solid var(--guide-yellow, #f0b429);
  padding: 8px 14px;
  border-radius: 0 6px 6px 0;
}

/* ==========================================================================
   Plain Weave Draft Block: Legend, Scroll Track, H/U Table
   ========================================================================== */
.quiet-harbor-draft-block {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.draft-legend-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #faf4e8;
  border: 1px solid #e2d7c2;
  border-radius: 8px;
  padding: 12px 18px;
}

.legend-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--guide-ink, #173b34);
}

.legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.legend-summary {
  display: flex;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--guide-ink-soft, #4d665f);
}

/* 17-cell interactive color track */
.draft-scroll-track {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  border-radius: 8px;
}

.draft-track-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: flex;
  gap: 6px;
  min-width: 680px;
}

.draft-end-item {
  flex: 1 1 0;
  min-width: 36px;
}

.draft-end-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #d4c8b2;
  border-radius: 6px;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 80px;
}

.draft-end-btn:hover {
  border-color: var(--guide-ink, #173b34);
  transform: translateY(-2px);
}

.draft-end-item.is-selected .draft-end-btn {
  border-color: var(--guide-yellow, #f0b429);
  background-color: var(--guide-yellow-pale, #fff9e6);
  box-shadow: 0 0 0 2px var(--guide-yellow, #f0b429);
}

.draft-end-btn .end-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--guide-ink-soft, #4d665f);
}

.draft-end-btn .end-swatch {
  width: 100%;
  height: 24px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.draft-end-btn .end-shed {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--guide-ink, #173b34);
}

/* Active End Status Card */
.active-end-card {
  background: #faf4e8;
  border: 1.5px solid var(--guide-yellow, #f0b429);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.active-end-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.active-end-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.active-end-text strong {
  display: block;
  font-size: 1.15rem;
  color: var(--guide-ink, #173b34);
}

.active-end-text span {
  font-size: 0.88rem;
  color: var(--guide-ink-soft, #4d665f);
  font-weight: 600;
}

.active-end-detail {
  font-size: 0.95rem;
  color: var(--guide-ink, #173b34);
  margin: 0;
  line-height: 1.5;
}

/* Two-Row H/U Draft Table */
.two-row-draft-container {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.draft-table-scroll {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid #dcd4c3;
  border-radius: 8px;
  padding: 14px;
}

.two-row-draft-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  text-align: center;
}

.two-row-draft-table th,
.two-row-draft-table td {
  padding: 8px 4px;
  border: 1px solid #ded5c4;
}

.row-header-th {
  background: #f2ebe0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--guide-ink, #173b34);
  width: 90px;
  text-align: left;
  padding-left: 10px !important;
}

.th-sub {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--guide-ink-soft, #4d665f);
  display: block;
}

.draft-col-header {
  background: #f9f5ee;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--guide-ink-soft, #4d665f);
}

.draft-grid-cell.cell-thread {
  background-color: #ffffff;
  vertical-align: middle;
}

.draft-grid-cell.cell-thread .thread-fill {
  display: block;
  width: 100%;
  height: 28px;
  background-color: var(--thread-color, #244657);
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.draft-grid-cell.cell-spacer {
  background-color: #faf6ee;
  color: #c2b59d;
  font-size: 1.1rem;
  vertical-align: middle;
}

.draft-spacer-caption {
  font-size: 0.88rem;
  color: var(--guide-ink-soft, #4d665f);
  margin: 0;
  line-height: 1.5;
}

/* Static Numbered List */
.static-order-section {
  background: #faf6ee;
  border: 1px solid #ded4bf;
  border-radius: 8px;
  padding: 20px 24px;
}

.static-order-section h3 {
  font-family: var(--serif, "Fraunces", serif);
  font-size: 1.15rem;
  margin: 0 0 14px;
  color: var(--guide-ink, #173b34);
}

.static-order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 8px 16px;
}

.static-order-list li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  padding: 4px 0;
}

.end-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #ede4d3;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--guide-ink, #173b34);
}

.order-swatch {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.shed-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-heddled {
  background: #e1ebed;
  color: var(--guide-navy, #244657);
}

.badge-open {
  background: #eee8d8;
  color: #6d5b3d;
}

/* Diagram Figure */
.draft-diagram-figure {
  margin: 12px 0 0;
  background: #faf6ee;
  border: 1px solid #e0d6c3;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diagram-caption {
  font-size: 0.9rem;
  color: var(--guide-ink-soft, #4d665f);
  line-height: 1.5;
}

.diagram-svg {
  width: 100%;
  height: auto;
  max-height: 280px;
  display: block;
}

/* ==========================================================================
   Pickup Guide Block: Motif Grid & Row Adjustments Table
   ========================================================================== */
.pickup-guide-block {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.motif-preview-wrapper {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.motif-grid-scroll {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid #dcd3bf;
  border-radius: 8px;
  padding: 14px;
}

.motif-grid-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  text-align: center;
}

.motif-grid-table caption {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--guide-ink, #173b34);
  margin-bottom: 8px;
  text-align: left;
}

.motif-th {
  background: #f3ece0;
  padding: 10px 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--guide-ink, #173b34);
  border: 1px solid #ded5c2;
}

.end-ref {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--guide-ink-soft, #4d665f);
}

.motif-row-num {
  background: #faf6ee;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--guide-ink, #173b34);
  padding: 8px;
  border: 1px solid #ded5c2;
  width: 90px;
}

.motif-shed-label {
  background: #fdfaf4;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--guide-ink-soft, #4d665f);
  padding: 8px;
  border: 1px solid #ded5c2;
  width: 100px;
}

.motif-cell {
  padding: 8px;
  border: 1px solid #ded5c2;
  font-size: 1.3rem;
  line-height: 1;
}

.motif-cell-up {
  background-color: #244657;
  color: #ffffff;
}

.motif-cell-down {
  background-color: #f7f2e7;
  color: #b8ab94;
}

.motif-grid-row.is-active-row {
  outline: 2.5px solid var(--guide-yellow, #f0b429);
  outline-offset: -2px;
}

.motif-key-note {
  font-size: 0.88rem;
  color: var(--guide-ink-soft, #4d665f);
  margin: 0;
  line-height: 1.5;
}

/* Active Pickup Card */
.active-pickup-card {
  background: #faf5ea;
  border: 2px solid var(--guide-yellow, #f0b429);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-row-badge strong,
.badge-row-num {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  color: var(--guide-ink, #173b34);
  display: block;
}

.badge-shed {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--guide-ink-soft, #4d665f);
}

.card-motif-chips {
  display: flex;
  gap: 8px;
}

.chip-p {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}

.chip-p.is-up {
  background-color: #244657;
  color: #ffffff;
}

.chip-p.is-down {
  background-color: #ede5d5;
  color: #7d6e56;
}

.card-actions-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .card-actions-summary {
    grid-template-columns: 1fr;
  }
}

.action-box {
  background: #ffffff;
  border: 1px solid #ded4bf;
  border-radius: 6px;
  padding: 10px 14px;
}

.action-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--guide-ink-soft, #4d665f);
}

.action-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--guide-ink, #173b34);
  margin-top: 2px;
}

.lift-box .action-val {
  color: #2e684d;
}

.lower-box .action-val {
  color: #a43f50;
}

.card-step-explanation {
  font-size: 0.95rem;
  color: var(--guide-ink, #173b34);
  margin: 0;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.6);
  padding: 10px 14px;
  border-radius: 6px;
}

/* Static Adjustment Table */
.pickup-table-wrapper {
  min-width: 0;
  max-width: 100%;
  margin-top: 6px;
}

.pickup-table-scroll {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid #dcd4c3;
  border-radius: 8px;
}

.pickup-adjustments-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.pickup-adjustments-table caption {
  font-weight: 700;
  font-size: 1rem;
  color: var(--guide-ink, #173b34);
  padding: 14px;
  text-align: left;
  background: #f7f1e4;
  border-bottom: 1px solid #ded5c2;
}

.pickup-adjustments-table th,
.pickup-adjustments-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee5d5;
  text-align: left;
  font-size: 0.92rem;
}

.pickup-adjustments-table thead th {
  background: #f3ecdf;
  font-weight: 700;
  color: var(--guide-ink, #173b34);
  font-size: 0.88rem;
  border-bottom: 1.5px solid #dcd4c3;
}

.pickup-row-entry:hover {
  background-color: #faf6ee;
}

.pickup-row-entry.is-active-row {
  background-color: var(--guide-yellow-pale, #fff9e6);
}

.row-num-cell {
  font-weight: 700;
  color: var(--guide-ink, #173b34);
}

.shed-indicator {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
}

.shed-indicator.shed-h {
  background: #e3ecf0;
  color: var(--guide-navy, #244657);
}

.shed-indicator.shed-u {
  background: #f1ebd8;
  color: #6e5e3f;
}

.motif-text-cell code {
  font-family: monospace;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  background: #f1ece1;
  padding: 2px 6px;
  border-radius: 3px;
}

.lift-cell strong {
  color: #2e684d;
}

.lower-cell strong {
  color: #a43f50;
}

.action-none {
  color: #8c9c96;
}

.explanation-cell p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--guide-ink-soft, #4d665f);
}

/* 17-End Warp Breakdown */
.warp-breakdown-card {
  background: #faf6ee;
  border: 1px solid #ded4bf;
  border-radius: 8px;
  padding: 20px 24px;
}

.warp-breakdown-card h3 {
  font-family: var(--serif, "Fraunces", serif);
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: var(--guide-ink, #173b34);
}

.warp-breakdown-card p {
  font-size: 0.92rem;
  color: var(--guide-ink-soft, #4d665f);
  margin: 0 0 16px;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 14px;
}

.breakdown-item {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #ded4bf;
  border-radius: 6px;
  padding: 12px 14px;
}

.bd-title {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--guide-ink, #173b34);
  margin-bottom: 6px;
  border-bottom: 1px solid #eee5d5;
  padding-bottom: 4px;
}

.bd-val {
  display: block;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--guide-ink-soft, #4d665f);
}

/* ==========================================================================
   Section 02: Maker Photo & Yarn Setup
   ========================================================================== */
.maker-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

@media (max-width: 860px) {
  .maker-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.maker-photo-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(35, 28, 18, 0.1);
  background: #2b302e;
  border: 1px solid var(--guide-paper-border, #e3dbc9);
}

.maker-photo-card picture,
.maker-photo-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

.maker-photo-caption {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--guide-ink-soft, #4d665f);
  background: #faf6ee;
  border-top: 1px solid var(--guide-paper-border, #e3dbc9);
}

.maker-details-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.maker-yarn-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.spec-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(23, 59, 52, 0.1);
}

.spec-term {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--guide-ink, #173b34);
  min-width: 110px;
}

.spec-def {
  font-size: 0.92rem;
  color: var(--guide-ink-soft, #4d665f);
  margin: 0;
}

.maker-disclaimer {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--guide-ink-soft, #4d665f);
  background: #faf5ea;
  border-left: 3px solid var(--guide-yellow, #f0b429);
  padding: 10px 14px;
  margin: 0;
}

/* ==========================================================================
   Section 03: Guide Preview Cross-Link Card
   ========================================================================== */
.guide-crosslink-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
  background: #fbf7ee;
  border: 1px solid var(--guide-paper-border, #e3dbc9);
  border-radius: 8px;
  padding: 20px;
}

@media (max-width: 720px) {
  .guide-crosslink-card {
    grid-template-columns: 1fr;
  }
}

.crosslink-thumbnail {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.crosslink-thumbnail img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.crosslink-copy h3 {
  font-family: var(--serif, "Fraunces", serif);
  font-size: 1.3rem;
  margin: 0 0 8px;
  color: var(--guide-ink, #173b34);
}

.crosslink-copy p {
  font-size: 0.95rem;
  color: var(--guide-ink-soft, #4d665f);
  margin: 0 0 16px;
  line-height: 1.5;
}

.crosslink-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--guide-ink, #173b34);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.crosslink-btn:hover {
  background: #234c44;
}

/* ==========================================================================
   Section 04 & 05: Mistakes, Diagnostics & Loom Path
   ========================================================================== */
.mistakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
  margin-top: 10px;
}

.mistake-card {
  min-width: 0;
  background: #faf6ee;
  border: 1px solid #ded5c2;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mistake-badge {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--guide-madder, #b64d3c);
}

.mistake-card h3 {
  font-family: var(--serif, "Fraunces", serif);
  font-size: 1.15rem;
  margin: 0;
  color: var(--guide-ink, #173b34);
}

.mistake-card p {
  font-size: 0.92rem;
  color: var(--guide-ink-soft, #4d665f);
  margin: 0;
  line-height: 1.5;
}

.callout-box {
  background: #faf4e8;
  border-left: 4px solid var(--guide-yellow, #f0b429);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 16px 0;
}

.callout-box p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--guide-ink, #173b34);
}

/* ==========================================================================
   Section 06: Resources & Free PDF Worksheet
   ========================================================================== */
.resources-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

@media (max-width: 820px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

.pdf-download-card {
  background: #faf5eb;
  border: 1.5px solid var(--guide-yellow, #f0b429);
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdf-badge {
  display: inline-block;
  background: var(--guide-yellow, #f0b429);
  color: var(--guide-black, #0f1412);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}

.pdf-download-card h3 {
  font-family: var(--serif, "Fraunces", serif);
  font-size: 1.3rem;
  margin: 0;
  color: var(--guide-ink, #173b34);
}

.pdf-download-card p {
  font-size: 0.92rem;
  color: var(--guide-ink-soft, #4d665f);
  margin: 0;
  line-height: 1.5;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--guide-black, #0f1412);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-top: 6px;
  transition: background-color 0.15s ease;
  min-height: 44px;
}

.pdf-download-btn:hover {
  background: #252d2a;
}

.quick-links-card {
  background: #faf6ee;
  border: 1px solid var(--guide-paper-border, #e3dbc9);
  border-radius: 8px;
  padding: 22px 24px;
}

.quick-links-card h3 {
  font-family: var(--serif, "Fraunces", serif);
  font-size: 1.2rem;
  margin: 0 0 14px;
  color: var(--guide-ink, #173b34);
}

.quick-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-links-list li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--guide-ink, #173b34);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.95rem;
}

.quick-links-list li a:hover {
  color: var(--guide-madder, #b64d3c);
}

/* ==========================================================================
   Sources & Integrity Section
   ========================================================================== */
.sources-integrity-section {
  border-top: 1.5px solid var(--guide-paper-border, #e3dbc9);
  padding-top: 32px;
  margin-top: 48px;
  font-size: 0.92rem;
  color: var(--guide-ink-soft, #4d665f);
}

.sources-integrity-section h2 {
  font-family: var(--serif, "Fraunces", serif);
  font-size: 1.35rem;
  color: var(--guide-ink, #173b34);
  margin: 0 0 14px;
}

.citation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.citation-item {
  background: #faf6ee;
  border: 1px solid #ded5c2;
  border-radius: 6px;
  padding: 12px 16px;
  line-height: 1.55;
}

.citation-item strong {
  color: var(--guide-ink, #173b34);
}

.attribution-bar {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed #ded5c2;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */
.sr-only,
.reading-guide-page .sr-only {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Print Stylesheet: Monochrome-ready, clean, no hero film/controls
   ========================================================================== */
@media print {
  /* Hide interactive chrome and hero decor */
  .site-header,
  .hero-film-strip-col,
  .hero-guide-nav,
  .hero-pill-btn,
  .guide-toolbar,
  .tool-action-btn,
  .direction-guide-note,
  .guide-crosslink-card,
  .crosslink-btn,
  .footer-links,
  footer,
  #mobileNavDrawer,
  .draft-scroll-track {
    display: none !important;
  }

  body.reading-guide-page {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt;
  }

  .reading-guide-hero {
    background: transparent !important;
    color: #000000 !important;
    padding: 0 0 12pt 0 !important;
    border-bottom: 2pt solid #000000 !important;
  }

  .hero-headline {
    font-size: 22pt !important;
    color: #000000 !important;
  }

  .hero-short-answer {
    color: #000000 !important;
    font-size: 11pt !important;
  }

  .hero-band-col {
    display: none !important;
  }

  .teaching-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10pt 0 !important;
    page-break-inside: avoid;
  }

  .section-badge-num {
    background: #000000 !important;
    color: #ffffff !important;
  }

  /* Release horizontal overflow and min-width constraints */
  .draft-scroll-track,
  .draft-table-scroll,
  .motif-grid-scroll,
  .pickup-table-scroll,
  .two-row-draft-container,
  .pickup-table-wrapper,
  .motif-preview-wrapper {
    overflow: visible !important;
    overflow-x: visible !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Tables Base Layout */
  .two-row-draft-table,
  .pickup-adjustments-table,
  .motif-grid-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: collapse !important;
    page-break-inside: avoid;
  }

  .two-row-draft-table th,
  .two-row-draft-table td,
  .pickup-adjustments-table th,
  .pickup-adjustments-table td,
  .motif-grid-table th,
  .motif-grid-table td {
    border: 1pt solid #000000 !important;
    color: #000000 !important;
  }

  /* Two-Row Plain-Weave Draft Table */
  .two-row-draft-table {
    font-size: 7.5pt !important;
    margin: 6pt 0 !important;
  }

  .two-row-draft-table th,
  .two-row-draft-table td {
    padding: 3pt 1pt !important;
    text-align: center !important;
    height: 18pt !important;
  }

  .two-row-draft-table .row-header-th {
    width: 44pt !important;
    font-size: 7pt !important;
    padding-left: 3pt !important;
    text-align: left !important;
    background: #f0f0f0 !important;
  }

  .two-row-draft-table .draft-col-header {
    font-size: 7pt !important;
    background: #f0f0f0 !important;
  }

  /* Retain visible H / U thread designation even if background graphics are off */
  .two-row-draft-table td.cell-thread {
    background: #ffffff !important;
  }

  .two-row-draft-table td.cell-thread[data-shed="H"]::after {
    content: "H";
    font-size: 7.5pt !important;
    font-weight: 800 !important;
    color: #000000 !important;
    display: block !important;
  }

  .two-row-draft-table td.cell-thread[data-shed="U"]::after {
    content: "U";
    font-size: 7.5pt !important;
    font-weight: 800 !important;
    color: #000000 !important;
    display: block !important;
  }

  .two-row-draft-table td.cell-spacer {
    background: #ffffff !important;
  }

  .two-row-draft-table td.cell-spacer .spacer-dot {
    color: #777777 !important;
    font-size: 8pt !important;
    display: inline-block !important;
  }

  /* Numbered Plain Warp Checklist: retains full color NAMES and H/U */
  .static-order-section {
    border: 1pt solid #000000 !important;
    padding: 8pt 10pt !important;
    margin: 8pt 0 !important;
    page-break-inside: avoid;
    background: #ffffff !important;
  }

  .static-order-section h3 {
    font-size: 10.5pt !important;
    margin: 0 0 6pt 0 !important;
    color: #000000 !important;
  }

  .static-order-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3pt 14pt !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .static-order-list li {
    display: flex !important;
    align-items: center !important;
    gap: 4pt !important;
    font-size: 8.5pt !important;
    padding: 1pt 0 !important;
    color: #000000 !important;
  }

  .static-order-list li::before {
    content: "☐ ";
    font-size: 10pt !important;
    margin-right: 2pt !important;
    color: #000000 !important;
  }

  .static-order-list .end-badge {
    background: transparent !important;
    border: 1pt solid #000000 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    width: 14pt !important;
    height: 14pt !important;
    font-size: 7.5pt !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .static-order-list .order-swatch {
    border: 1pt solid #000000 !important;
    width: 10pt !important;
    height: 10pt !important;
    display: inline-block !important;
  }

  .static-order-list .shed-badge {
    background: transparent !important;
    border: 1pt solid #666666 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 7.5pt !important;
    padding: 0 3pt !important;
  }

  /* 6x5 Baltic Pickup Motif Grid */
  .motif-grid-table {
    font-size: 8.5pt !important;
    margin: 6pt 0 !important;
  }

  .motif-grid-table caption {
    font-size: 9.5pt !important;
    font-weight: 700 !important;
    color: #000000 !important;
    padding: 4pt 0 !important;
    text-align: left !important;
    background: transparent !important;
  }

  .motif-grid-table th,
  .motif-grid-table td {
    padding: 3pt 2pt !important;
    text-align: center !important;
  }

  .motif-grid-table .motif-row-num {
    width: 48pt !important;
    font-size: 8pt !important;
    background: #f0f0f0 !important;
    color: #000000 !important;
  }

  .motif-grid-table .motif-shed-label {
    width: 58pt !important;
    font-size: 8pt !important;
    background: #f0f0f0 !important;
    color: #000000 !important;
  }

  .motif-grid-table .motif-th {
    background: #f0f0f0 !important;
    color: #000000 !important;
    font-size: 8pt !important;
  }

  /* Retain visible filled-square and dot target symbols even with background graphics disabled */
  .motif-cell {
    background: transparent !important;
    color: #000000 !important;
  }

  .motif-cell-up {
    background: #e8e8e8 !important;
  }

  .motif-cell-up .motif-symbol {
    color: #000000 !important;
    font-size: 13pt !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    display: inline-block !important;
  }

  .motif-cell-down {
    background: #ffffff !important;
  }

  .motif-cell-down .motif-symbol {
    color: #333333 !important;
    font-size: 14pt !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    display: inline-block !important;
  }

  /* Row-by-Row Baltic Pickup Adjustments Table: wrap long explanations to fit Letter/A4 portrait */
  .pickup-adjustments-table {
    font-size: 8pt !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    margin: 6pt 0 !important;
  }

  .pickup-adjustments-table caption {
    font-size: 9.5pt !important;
    font-weight: 700 !important;
    color: #000000 !important;
    padding: 4pt 0 !important;
    text-align: left !important;
    background: transparent !important;
    border-bottom: none !important;
  }

  .pickup-adjustments-table th,
  .pickup-adjustments-table td {
    padding: 3pt 4pt !important;
    vertical-align: top !important;
  }

  .pickup-adjustments-table thead th {
    background: #f0f0f0 !important;
    font-size: 8pt !important;
  }

  .pickup-adjustments-table th:nth-child(1),
  .pickup-adjustments-table td:nth-child(1) {
    width: 10% !important;
  }
  .pickup-adjustments-table th:nth-child(2),
  .pickup-adjustments-table td:nth-child(2) {
    width: 13% !important;
  }
  .pickup-adjustments-table th:nth-child(3),
  .pickup-adjustments-table td:nth-child(3) {
    width: 12% !important;
  }
  .pickup-adjustments-table th:nth-child(4),
  .pickup-adjustments-table td:nth-child(4) {
    width: 11% !important;
  }
  .pickup-adjustments-table th:nth-child(5),
  .pickup-adjustments-table td:nth-child(5) {
    width: 11% !important;
  }
  .pickup-adjustments-table th:nth-child(6),
  .pickup-adjustments-table td:nth-child(6) {
    width: 43% !important;
  }

  .pickup-adjustments-table .explanation-cell,
  .pickup-adjustments-table .explanation-cell p {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    font-size: 7.5pt !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #000000 !important;
  }

  .shed-indicator {
    background: transparent !important;
    border: 1pt solid #444444 !important;
    color: #000000 !important;
    padding: 1pt 3pt !important;
    font-size: 7.5pt !important;
  }

  .motif-text-cell code {
    background: transparent !important;
    font-size: 8.5pt !important;
    letter-spacing: 0.05em !important;
    color: #000000 !important;
    font-weight: 700 !important;
  }

  .lift-cell strong,
  .lower-cell strong {
    color: #000000 !important;
    font-size: 8pt !important;
  }

  .action-none {
    color: #666666 !important;
    font-size: 8pt !important;
  }

  /* 17-End Threading Breakdown Card */
  .warp-breakdown-card {
    border: 1pt solid #000000 !important;
    background: #ffffff !important;
    padding: 8pt 10pt !important;
    margin: 8pt 0 !important;
    page-break-inside: avoid;
  }

  .warp-breakdown-card h3 {
    font-size: 10.5pt !important;
    margin: 0 0 4pt 0 !important;
    color: #000000 !important;
  }

  .warp-breakdown-card p {
    font-size: 8.5pt !important;
    margin: 0 0 6pt 0 !important;
  }

  .breakdown-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6pt !important;
  }

  .breakdown-item {
    border: 1pt solid #666666 !important;
    padding: 4pt 6pt !important;
    font-size: 8pt !important;
  }

  .breakdown-item .bd-title {
    font-weight: 700 !important;
    font-size: 8pt !important;
    color: #000000 !important;
  }

  .breakdown-item .bd-val {
    font-size: 7.5pt !important;
    color: #222222 !important;
  }

  .active-end-card,
  .active-pickup-card {
    border: 1pt solid #000000 !important;
    background: #ffffff !important;
    padding: 8pt 10pt !important;
    margin: 6pt 0 !important;
    page-break-inside: avoid;
  }

  .sources-integrity-section,
  .maker-details-card {
    page-break-inside: avoid;
  }
}
