/* Bếp Việt — High-Readability Single-Language (VI / JA / EN) A5 & Spread DTP Stylesheet */
:root {
  --ground-cream: #E8DFD3;
  --card-white: #FFFFFF;
  --card-warm: #F9F5EE;
  --ink-primary: #1F1711;
  --ink-secondary: #3A2F26;
  --ink-muted: #4D4137;
  --border-warm: #DDD2C3;
  --chapter-color: #5E9E8B;
  --chapter-tint: #EEF6F2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

html, body {
  background: var(--ground-cream);
  color: var(--ink-primary);
  font-family: "Be Vietnam Pro", "Noto Sans JP", "Hiragino Sans", sans-serif;
}

.spread-page {
  width: 296mm;
  height: 210mm;
  position: relative;
  overflow: hidden;
  page-break-after: always;
  background: var(--ground-cream);
}

.spread-canvas {
  width: 296mm;
  height: 210mm;
  position: relative;
  background: var(--ground-cream);
  overflow: hidden;
  font-family: "Be Vietnam Pro", "Noto Sans JP", "Hiragino Sans", sans-serif;
}

.spread-canvas.lang-ja {
  font-family: "Noto Sans JP", "Hiragino Sans", "Be Vietnam Pro", sans-serif;
}

.inner-paper {
  position: absolute;
  left: 4.5mm;
  top: 4.5mm;
  width: 287mm;
  height: 201mm;
  background: var(--card-white);
  border-radius: 6.5mm;
  border: 0.35mm solid #DFD4C5;
  overflow: hidden;
}

.spread-page .spine-shadow {
  position: absolute;
  left: 145mm;
  top: 0;
  width: 6mm;
  height: 210mm;
  background: linear-gradient(
    to right,
    rgba(60, 42, 24, 0) 0%,
    rgba(60, 42, 24, 0.045) 48%,
    rgba(60, 42, 24, 0.075) 50%,
    rgba(60, 42, 24, 0.045) 52%,
    rgba(60, 42, 24, 0) 100%
  );
  pointer-events: none;
  z-index: 40;
}

/* ===== 1. Chapter & Single-Language Title Block ===== */
.recipe-header {
  position: absolute;
  left: 4.5mm;
  top: 4.5mm;
  width: 72mm;
  height: 43mm;
  background: var(--chapter-color);
  color: #FFFFFF;
  border-top-left-radius: 6.5mm;
  border-bottom-right-radius: 7.5mm;
  padding: 3mm 4.2mm 3mm 4.6mm;
  z-index: 20;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chapter-eyebrow {
  font-size: 7.8pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  border-bottom: 0.25mm solid rgba(255, 255, 255, 0.38);
  padding-bottom: 0.9mm;
}

.title-block {
  margin-top: 0.4mm;
}

.title-main {
  font-family: "Spectral", "Shippori Mincho", "Noto Sans JP", serif;
  font-weight: 700;
  font-size: 19pt;
  line-height: 1.08;
  color: #FFFFFF;
}
.lang-ja .title-main {
  font-family: "Shippori Mincho", "Noto Sans JP", serif;
  font-size: 16pt;
  line-height: 1.14;
}
.lang-en .title-main {
  font-size: 15pt;
  line-height: 1.12;
}

.title-sub {
  font-size: 8.4pt;
  font-weight: 500;
  line-height: 1.24;
  color: rgba(255, 248, 232, 0.96);
  margin-top: 1mm;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4mm;
  align-items: center;
  margin-top: 0.8mm;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 1mm;
  background: rgba(255, 255, 255, 0.22);
  border: 0.22mm solid rgba(255, 255, 255, 0.45);
  border-radius: 99px;
  padding: 0.5mm 2.2mm;
  font-size: 7.6pt;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
}

/* ===== 2. Hero Centerpiece Illustration ===== */
.hero-glow {
  position: absolute;
  left: 93mm;
  top: 46mm;
  width: 110mm;
  height: 86mm;
  z-index: 4;
  pointer-events: none;
}

.hero-glow-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-wrap {
  position: absolute;
  left: 106.2mm;
  top: 53.5mm;
  width: 83.6mm;
  height: 67.1mm;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-caption-pill {
  position: absolute;
  left: 148mm;
  transform: translateX(-50%);
  top: 124mm;
  background: rgba(255, 251, 244, 0.97);
  border: 0.3mm solid var(--border-warm);
  border-radius: 99px;
  padding: 0.65mm 2.8mm;
  font-size: 7.5pt;
  font-weight: 600;
  color: var(--ink-secondary);
  z-index: 25;
  white-space: nowrap;
}

/* ===== 3. Flow Arrows SVG Layer ===== */
.flow-arrows-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 296mm;
  height: 210mm;
  z-index: 22;
  pointer-events: none;
}

/* ===== 4. Orbital Recipe Step Cards (Large Single-Language Copy!) ===== */
.step-card {
  position: absolute;
  z-index: 18;
  overflow: hidden;
  display: flex;
  gap: 2mm;
  background: transparent;
}

.step-card.layout-stack {
  flex-direction: column;
  align-items: center;
  gap: 0.7mm;
}

.step-card.layout-side {
  flex-direction: row;
  align-items: center;
}

.step-visual {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card.layout-stack .step-visual {
  width: 100%;
  height: 18mm;
}

.step-card.layout-side .step-visual {
  width: 24mm;
  height: 24mm;
}

.step-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.step-num-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 6.2mm;
  height: 6.2mm;
  border-radius: 1.6mm;
  background: var(--chapter-color);
  color: #FFFFFF;
  font-family: "Mali", "Be Vietnam Pro", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 10pt;
  line-height: 6.2mm;
  text-align: center;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.8mm;
  background: #F4EFE6;
  border: 0.25mm solid #D7CBB8;
  border-radius: 99px;
  padding: 0.5mm 2mm;
  font-size: 7.4pt;
  font-weight: 700;
  color: var(--ink-secondary);
}

.layout-stack .step-tag {
  position: absolute;
  right: 0;
  top: 0.2mm;
}

.step-side-head {
  margin-bottom: 0.5mm;
}

.step-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.step-body {
  font-weight: 600;
  font-size: 10pt;
  line-height: 1.31;
  color: var(--ink-primary);
}
.lang-ja .step-body {
  font-size: 9.4pt;
  font-weight: 500;
  line-height: 1.34;
}
.lang-en .step-body {
  font-size: 9.5pt;
  line-height: 1.32;
}

.step-pos-1 { left: 8mm;   top: 49mm;   width: 91mm;   height: 36.5mm; }
.step-pos-2 { left: 78.5mm; top: 7.5mm;  width: 64mm;   height: 41.5mm; }
.step-pos-3 { left: 154mm; top: 7.5mm;  width: 63.5mm; height: 41.5mm; }
.step-pos-4 { left: 220.5mm; top: 7.5mm; width: 67.5mm; height: 42mm; }
.step-pos-5 { left: 199mm; top: 52mm;   width: 89mm;   height: 39mm; }
.step-pos-6 { left: 199mm; top: 93mm;   width: 89mm;   height: 39mm; }

/* ===== 5. Culinary Balance Compass Card ===== */
.balance-card {
  position: absolute;
  left: 8mm;
  top: 86mm;
  width: 91mm;
  height: 42mm;
  background: var(--chapter-tint);
  border: 0.35mm solid rgba(94, 158, 139, 0.42);
  border-radius: 3.5mm;
  padding: 2mm 2.6mm;
  z-index: 16;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-kicker {
  font-size: 7.8pt;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #367360;
  margin-bottom: 0.5mm;
}
.kicker-flex {
  display: inline-flex;
  align-items: center;
  gap: 1mm;
}

.balance-grid {
  display: flex;
  align-items: center;
  gap: 1.5mm;
  flex: 1;
  min-height: 0;
}

.radar-col {
  width: 42mm;
  flex-shrink: 0;
}

.radar-svg {
  width: 100%;
  height: auto;
  display: block;
}

.radar-lbl-lg {
  font-family: "Be Vietnam Pro", "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 700;
  fill: var(--ink-primary);
}

.yy-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8mm;
  min-width: 0;
}

.yy-svg {
  width: 100%;
  height: auto;
  display: block;
}
.yy-end {
  font-size: 9.8px;
  font-weight: 700;
}
.yy-cool { fill: #2E6488; }
.yy-warm { fill: #AD4426; }
.yy-badge-lg {
  font-size: 10.2px;
  font-weight: 700;
  fill: var(--ink-primary);
}

.yy-note-body {
  font-size: 8.6pt;
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink-primary);
}
.lang-ja .yy-note-body {
  font-size: 8.1pt;
  font-weight: 500;
}

/* ===== 6. Ingredients + Abroad Swaps Card ===== */
.ingredients-card {
  position: absolute;
  left: 8mm;
  top: 129.5mm;
  width: 135mm;
  height: 71mm;
  background: var(--card-warm);
  border: 0.4mm solid var(--border-warm);
  border-radius: 4mm;
  padding: 2.4mm 3.4mm;
  z-index: 16;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.35mm solid var(--chapter-color);
  padding-bottom: 0.9mm;
  margin-bottom: 1mm;
}

.ing-title {
  font-size: 10pt;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: 0.02em;
}

.ing-servings {
  display: inline-flex;
  align-items: center;
  gap: 1mm;
  background: var(--chapter-color);
  color: #FFFFFF;
  border-radius: 99px;
  padding: 0.45mm 2.3mm;
  font-size: 7.8pt;
  font-weight: 600;
}

.ing-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.8mm;
  row-gap: 0.95mm;
}

.ing-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2mm;
  border-bottom: 0.25mm dotted #D2C6B4;
  padding-bottom: 0.55mm;
}

.ing-name {
  font-size: 9.2pt;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.2;
}
.lang-ja .ing-name {
  font-size: 8.6pt;
  font-weight: 500;
}
.lang-en .ing-name {
  font-size: 8.8pt;
}

.ing-amt {
  font-size: 9pt;
  font-weight: 700;
  color: #2D6A57;
  white-space: nowrap;
  flex-shrink: 0;
}

.swaps-box {
  margin-top: 1mm;
  background: #FFFFFF;
  border: 0.35mm dashed var(--chapter-color);
  border-radius: 2.6mm;
  padding: 1.5mm 2.3mm;
}

.swaps-title {
  display: inline-flex;
  align-items: center;
  gap: 1mm;
  font-size: 7.8pt;
  font-weight: 700;
  color: #2D6A57;
  margin-bottom: 0.6mm;
}

.swaps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2mm;
}

.swap-item {
  font-size: 7.8pt;
  font-weight: 600;
  line-height: 1.24;
  color: var(--ink-primary);
}
.lang-ja .swap-item {
  font-size: 7.3pt;
  font-weight: 500;
}
.lang-en .swap-item {
  font-size: 7.5pt;
}

/* ===== 7. Mentor Bubble & How to Eat (Right Bottom) ===== */
.mentor-bubble {
  position: absolute;
  left: 152mm;
  top: 134mm;
  width: 76mm;
  height: 66.5mm;
  z-index: 18;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mentor-card {
  position: relative;
  background: #FFFDF7;
  border: 0.45mm solid var(--chapter-color);
  border-radius: 4mm;
  padding: 2.4mm 2.8mm;
  min-height: 51mm;
  margin-left: 9mm;
}

.mentor-avatar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 21mm;
  height: 28mm;
  object-fit: contain;
  z-index: 22;
}

.mentor-card-inner {
  padding-left: 12.5mm;
}

.mentor-header {
  font-size: 9pt;
  font-weight: 700;
  color: #2D6A57;
  margin-bottom: 0.9mm;
}
.mentor-header small {
  display: block;
  font-size: 7pt;
  font-weight: 500;
  color: var(--ink-secondary);
}

.mentor-body {
  font-family: "Mali", "Be Vietnam Pro", sans-serif;
  font-size: 9.2pt;
  font-weight: 500;
  line-height: 1.33;
  color: var(--ink-primary);
}
.lang-ja .mentor-body {
  font-family: "Klee One", "Noto Sans JP", sans-serif;
  font-size: 8.6pt;
  font-weight: 600;
  line-height: 1.35;
}

.how-to-eat {
  position: absolute;
  left: 230mm;
  top: 134mm;
  width: 58.5mm;
  height: 66.5mm;
  background: #FDF7EE;
  border: 0.4mm solid #DFC5A0;
  border-radius: 4mm;
  padding: 2.4mm 2.8mm;
  z-index: 18;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hte-title {
  display: flex;
  align-items: center;
  gap: 1.1mm;
  font-size: 8.8pt;
  font-weight: 700;
  color: #8E511D;
  border-bottom: 0.3mm solid #DFC5A0;
  padding-bottom: 0.8mm;
  margin-bottom: 1mm;
}

.hte-item {
  font-size: 8.8pt;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-primary);
  margin-bottom: 1.2mm;
}
.lang-ja .hte-item {
  font-size: 8.2pt;
  font-weight: 500;
}

.hte-footer-art {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
}

.an-wow-sticker {
  width: 14mm;
  height: 17mm;
  object-fit: contain;
}

.herb-sticker {
  width: 14mm;
  height: 12mm;
  object-fit: contain;
}

.folio {
  position: absolute;
  bottom: 5.5mm;
  font-size: 8.4pt;
  font-weight: 600;
  color: var(--ink-secondary);
  z-index: 30;
}
.folio-left { left: 8.5mm; }
.folio-right { right: 8.5mm; }

/* ==========================================================================
   FRONT MATTER & CHAPTER 1 SHOWCASE STYLES (Pages 1–12, Single Language)
   ========================================================================== */

.cover-panel {
  position: absolute;
  left: 0;
  top: 0;
  width: 148mm;
  height: 210mm;
  background: #F5EEE2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 11mm 10mm 9mm 10mm;
}

.cover-inner-frame {
  position: absolute;
  inset: 5.5mm;
  border: 0.45mm solid #72A896;
  border-radius: 3mm;
  pointer-events: none;
}

.cover-top-badge {
  position: relative;
  z-index: 5;
  background: #5E9E8B;
  color: #FFFFFF;
  font-size: 8.6pt;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1.3mm 5mm;
  border-radius: 99px;
}

.cover-title-zone {
  position: relative;
  z-index: 5;
  text-align: center;
  width: 126mm;
}

.cover-vi {
  font-family: "Spectral", "Shippori Mincho", "Noto Sans JP", serif;
  font-weight: 700;
  font-size: 26pt;
  line-height: 1.08;
  color: #1F1711;
}
.lang-ja .cover-vi {
  font-family: "Shippori Mincho", "Noto Sans JP", serif;
  font-size: 21pt;
}
.lang-en .cover-vi {
  font-size: 21.5pt;
}

.cover-vi-sub {
  display: block;
  font-size: 16pt;
  font-weight: 600;
  color: #367360;
  margin-top: 1.2mm;
}

.cover-desc {
  font-size: 10pt;
  font-weight: 500;
  line-height: 1.36;
  color: #3A2F26;
  margin-top: 2.2mm;
}

.cover-art-wrap {
  position: relative;
  width: 86mm;
  height: 82mm;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.cover-aura {
  position: absolute;
  inset: 2mm;
  border-radius: 50%;
  background: #FFFFFF;
  border: 0.4mm dashed #C9BCA9;
}

.cover-art-wrap img {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cover-bottom-bar {
  position: relative;
  z-index: 5;
  text-align: center;
  font-size: 8.6pt;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1F1711;
  border-top: 0.35mm solid #C7B9A5;
  padding-top: 2mm;
  width: 118mm;
}

.title-page-panel {
  position: absolute;
  left: 148mm;
  top: 0;
  width: 148mm;
  height: 210mm;
  background: var(--ground-cream);
}

.title-white-sheet {
  position: absolute;
  inset: 4.5mm;
  background: #FFFFFF;
  border-radius: 6.5mm;
  border: 0.35mm solid #DFD4C5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 15mm 10mm 11mm 10mm;
}

.title-ring-svg-wrap {
  position: relative;
  width: 100mm;
  height: 100mm;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ring-text-inside {
  position: relative;
  z-index: 4;
  width: 80mm;
  text-align: center;
  overflow: hidden;
}

.tp-vi {
  font-family: "Spectral", "Shippori Mincho", "Noto Sans JP", serif;
  font-weight: 700;
  font-size: 20.5pt;
  line-height: 1.12;
  color: #1F1711;
}
.lang-ja .tp-vi { font-size: 17pt; }
.lang-en .tp-vi { font-size: 17.5pt; }

.tp-vi-sub {
  display: block;
  font-size: 13.5pt;
  font-weight: 600;
  color: #367360;
  margin-top: 0.9mm;
}

.tp-sub2 {
  font-size: 8.2pt;
  color: #4D4137;
  margin-top: 2.2mm;
}

.tp-an-greeting {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -11mm;
  position: relative;
  z-index: 6;
}

.tp-an-greeting img {
  width: 24mm;
  height: 31mm;
  object-fit: contain;
}

.tp-speech {
  background: #FFFDF7;
  border: 0.35mm solid #5E9E8B;
  border-radius: 99px;
  padding: 1.4mm 4.4mm;
  font-size: 9.4pt;
  color: #1F1711;
  margin-top: 0.6mm;
}

.tp-colophon {
  font-size: 7.8pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4D4137;
}

/* Shared Left/Right Columns */
.fm-left-col,
.fm-right-col {
  position: absolute;
  top: 8mm;
  width: 134mm;
  height: 190mm;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2.6mm;
  z-index: 15;
}
.fm-left-col { left: 8mm; }
.fm-right-col { left: 154mm; }

.fm-banner {
  color: #FFFFFF;
  border-radius: 3mm;
  padding: 2.3mm 4mm;
  font-size: 9.4pt;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.fm-subhead {
  display: flex;
  align-items: center;
  gap: 1.5mm;
  font-size: 8.6pt;
  font-weight: 700;
  color: #1F1711;
  border-bottom: 0.35mm solid #DDD2C3;
  padding-bottom: 1mm;
}

/* Spread 2: Intro & Mentors */
.intro-story-box {
  display: flex;
  gap: 2.6mm;
  align-items: center;
  background: #F9F5EE;
  border: 0.35mm solid #DDD2C3;
  border-radius: 3.5mm;
  padding: 2.6mm;
}

.intro-an-pic {
  width: 24mm;
  height: 32mm;
  object-fit: contain;
  flex-shrink: 0;
}

.intro-story-txt h2 {
  font-family: "Spectral", "Shippori Mincho", "Noto Sans JP", serif;
  font-size: 12.8pt;
  line-height: 1.2;
  color: #1F1711;
  margin-bottom: 1.1mm;
}

.ist-body {
  font-size: 9.4pt;
  line-height: 1.38;
  color: #1F1711;
}

.intro-mentors-list {
  display: flex;
  flex-direction: column;
  gap: 2.4mm;
  flex: 1;
}

.intro-mentor-card {
  display: flex;
  align-items: center;
  gap: 2.4mm;
  flex: 1;
  background: #FFFFFF;
  border: 0.4mm solid var(--mc);
  border-left-width: 2.2mm;
  border-radius: 3mm;
  padding: 2.2mm 3mm;
}

.intro-mentor-card img {
  width: 21mm;
  height: 27mm;
  object-fit: contain;
  flex-shrink: 0;
}

.imc-name {
  font-size: 10pt;
  font-weight: 700;
  color: var(--mc);
  margin-bottom: 0.6mm;
}

.imc-desc {
  font-size: 9pt;
  font-weight: 500;
  line-height: 1.36;
  color: #1F1711;
}

.intro-wheel-box,
.howto-box {
  background: #FFFFFF;
  border: 0.35mm solid #DDD2C3;
  border-radius: 3.5mm;
  padding: 2.3mm 2.8mm;
}
.howto-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.iwb-title {
  font-size: 9.2pt;
  font-weight: 700;
  color: #1F1711;
  margin-bottom: 1.2mm;
}

.intro-wheel-grid {
  display: flex;
  align-items: center;
  gap: 2.8mm;
}

.harmony-wheel-svg {
  width: 50mm;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.hw-rules-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.6mm;
  min-width: 0;
}

.hw-rules-head {
  font-size: 8.6pt;
  font-weight: 700;
  color: #1F1711;
}

.hw-rule {
  border-radius: 2.2mm;
  padding: 1.5mm 2.2mm;
  border: 0.3mm solid #DDD2C3;
}
.hw-r1 { background: #EEF6F2; border-color: #5E9E8B; }
.hw-r2 { background: #FDF6EC; border-color: #D9933A; }
.hw-r3 { background: #F9F5EE; border-color: #B8864B; }
.hw-rule b {
  display: block;
  font-size: 8.4pt;
  color: #1F1711;
  margin-bottom: 0.3mm;
}
.hw-rule span {
  display: block;
  font-size: 7.8pt;
  line-height: 1.28;
  color: #2B211A;
}

.howto-diagram {
  display: flex;
  flex-direction: column;
  gap: 2mm;
  flex: 1;
  justify-content: space-between;
}

.hd-mini-spread {
  background: #F6F1E9;
  border: 0.35mm solid #D7CBB8;
  border-radius: 2.8mm;
  padding: 2.4mm;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2mm;
}

.hd-tag {
  background: #FFFFFF;
  border: 0.25mm solid #C7B9A5;
  border-radius: 2mm;
  padding: 1.8mm 2.2mm;
  font-size: 8.6pt;
  font-weight: 700;
  color: #1F1711;
  line-height: 1.26;
}
.hd-tag span {
  display: block;
  font-weight: 500;
  font-size: 7.8pt;
  color: #3A2F26;
  margin-top: 0.4mm;
}
.hd-t1 { border-left: 1.4mm solid #5E9E8B; }
.hd-t2 { border-left: 1.4mm solid #B8864B; }
.hd-t3 { border-left: 1.4mm solid #C85A4A; }
.hd-t4 { border-left: 1.4mm solid #5E9E8B; }
.hd-t5 { border-left: 1.4mm solid #D9933A; }
.hd-t6 { border-left: 1.4mm solid #4B7C96; }

.howto-an-note {
  display: flex;
  align-items: center;
  gap: 2.4mm;
}
.howto-an-note img {
  width: 17mm;
  height: 22mm;
  object-fit: contain;
}
.han-bubble {
  flex: 1;
  background: #FFFDF7;
  border: 0.35mm solid #B8864B;
  border-radius: 3mm;
  padding: 2.2mm 2.8mm;
  font-size: 8.8pt;
  line-height: 1.36;
  color: #1F1711;
}

/* Spread 3: TOC */
.toc-ground {
  background: #D8CFC4;
}

.toc-card {
  position: absolute;
  top: 7mm;
  height: 192mm;
  background: #FFFFFF;
  border-radius: 5.5mm;
  padding: 3.6mm 4.2mm;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2.8mm;
  z-index: 10;
}
.toc-card-left { left: 7.5mm; width: 134.5mm; }
.toc-card-right { left: 154mm; width: 134.5mm; }

.toc-main-head {
  border-bottom: 0.4mm solid #DDD2C3;
  padding-bottom: 1.4mm;
}
.toc-kicker {
  font-family: "Spectral", "Shippori Mincho", "Noto Sans JP", serif;
  font-size: 15pt;
  font-weight: 700;
  color: #1F1711;
  letter-spacing: 0.04em;
}
.toc-front-mini {
  font-size: 8pt;
  color: #3A2F26;
  margin-top: 0.7mm;
}

.toc-chapter-block {
  display: flex;
  flex-direction: column;
  gap: 0.85mm;
}

.toc-ch-pill {
  color: #FFFFFF;
  border-radius: 2.2mm;
  padding: 1.5mm 3mm;
  font-size: 9pt;
  font-weight: 700;
}

.toc-rows {
  display: flex;
  flex-direction: column;
  gap: 0.85mm;
}

.toc-row {
  display: flex;
  align-items: center;
  gap: 1.6mm;
  border-bottom: 0.2mm dotted #E2D9CE;
  padding: 1.05mm 1.1mm;
}
.toc-row.toc-ready {
  background: #EEF6F2;
  border-radius: 1.5mm;
}

.toc-dot {
  width: 1.9mm;
  height: 1.9mm;
  border-radius: 50%;
  flex-shrink: 0;
}

.toc-title-txt {
  flex: 1;
  min-width: 0;
  font-size: 9pt;
  font-weight: 600;
  color: #1F1711;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-ja .toc-title-txt,
.lang-en .toc-title-txt {
  font-size: 8.6pt;
}

.toc-star {
  background: #5E9E8B;
  color: #FFFFFF;
  font-size: 6.4pt;
  font-weight: 700;
  padding: 0.3mm 1.5mm;
  border-radius: 99px;
  vertical-align: 0.3mm;
}

.toc-season {
  font-size: 7.8pt;
  color: #3A2F26;
  white-space: nowrap;
}
.toc-pg {
  font-size: 8.8pt;
  font-weight: 700;
  color: #1F1711;
  width: 10.5mm;
  text-align: right;
  flex-shrink: 0;
}

.toc-mid-vignettes {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 2.8mm;
  background: #FAF6EE;
  border: 0.3mm dashed #D2C3AE;
  border-radius: 3mm;
  padding: 2.2mm 3mm;
}
.toc-mid-vignettes img {
  height: 20mm;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.tmv-note {
  font-size: 8.4pt;
  line-height: 1.34;
  color: #1F1711;
}
.tmv-note b { display: block; font-size: 9.2pt; color: #9E6E33; margin-bottom: 0.5mm; }

.toc-kitchen-notes {
  background: #F9F5EE;
  border: 0.35mm solid #D7CBB8;
  border-radius: 3mm;
  padding: 2.4mm 2.8mm;
  width: 109mm;
}
.tkn-head {
  display: flex;
  align-items: center;
  gap: 1.3mm;
  font-size: 8.8pt;
  font-weight: 700;
  color: #38657E;
  margin-bottom: 1mm;
}
.tkn-grid {
  font-size: 8.2pt;
  line-height: 1.4;
  color: #1F1711;
}

.toc-sticker {
  position: absolute;
  z-index: 20;
  object-fit: contain;
  pointer-events: none;
}
.ts-herb { left: 1.5mm; bottom: 10mm; width: 13mm; height: 12mm; }
.ts-an   { right: 4mm; bottom: 7mm; width: 20mm; height: 25mm; }

/* Spread 4: Calendar */
.cal-half {
  position: absolute;
  top: 7.5mm;
  width: 135mm;
  height: 191mm;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.7mm;
  z-index: 15;
}
.cal-left { left: 8mm; }
.cal-right { left: 153mm; }

.cal-header h1 {
  font-family: "Spectral", "Shippori Mincho", "Noto Sans JP", serif;
  font-size: 14.5pt;
  font-weight: 700;
  color: #1F1711;
  line-height: 1.1;
}
.cal-header-r h1 {
  text-align: right;
  color: #3A2F26;
}
.cal-sub {
  font-size: 8.4pt;
  font-weight: 600;
  color: #3A2F26;
}
.cal-header-r .cal-sub {
  text-align: right;
}

.cal-season-bands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2mm;
}
.csb {
  text-align: center;
  font-size: 8.2pt;
  font-weight: 700;
  color: #FFFFFF;
  padding: 1.2mm 1.5mm;
  border-radius: 1.6mm;
}
.csb-spring { background: #D47A82; }
.csb-summer { background: #5E9E8B; }
.csb-autumn { background: #D9933A; }
.csb-winter { background: #4B7C96; }

.cal-month-head {
  display: flex;
  align-items: center;
  border-bottom: 0.35mm solid #C7B9A5;
  padding-bottom: 0.9mm;
}
.cmh-label {
  width: 81mm;
  font-size: 8.2pt;
  font-weight: 700;
  color: #3A2F26;
}
.cmh-cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  text-align: center;
  font-size: 8.2pt;
  font-weight: 700;
  color: #1F1711;
}

.cal-body {
  display: flex;
  flex-direction: column;
  gap: 0.9mm;
}
.cal-row {
  display: flex;
  align-items: center;
  height: 10.2mm;
  border-bottom: 0.2mm dotted #E5DDD2;
}
.cal-dish {
  width: 81mm;
  padding-right: 1.4mm;
  display: flex;
  align-items: baseline;
  gap: 1.1mm;
  min-width: 0;
}
.cal-rtag {
  font-size: 7.2pt;
  font-weight: 700;
  flex-shrink: 0;
}
.cal-name {
  font-size: 8.4pt;
  font-weight: 600;
  color: #1F1711;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-ja .cal-name,
.lang-en .cal-name {
  font-size: 8pt;
}
.cal-pg {
  font-size: 7.5pt;
  font-weight: 700;
  color: #3A2F26;
  flex-shrink: 0;
}
.cal-pg-pilot {
  background: #5E9E8B;
  color: #FFFFFF;
  padding: 0.25mm 1.3mm;
  border-radius: 99px;
}

.cal-grid6 {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7mm;
  height: 4.8mm;
}
.cal-cell {
  background: #F4EFE7;
  border-radius: 0.9mm;
}
.cal-cell.active {
  opacity: 0.9;
}

.cal-produce-strip {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2mm;
}
.cps-item {
  display: flex;
  align-items: center;
  gap: 1.8mm;
  background: #F9F5EE;
  border: 0.3mm solid #DFD4C5;
  border-radius: 3mm;
  padding: 2mm;
}
.cps-item img {
  width: 26mm;
  height: 26mm;
  object-fit: contain;
  flex-shrink: 0;
}
.cps-item b {
  display: block;
  font-size: 9.2pt;
  color: #1F1711;
  margin-bottom: 0.4mm;
}
.cps-item span {
  display: block;
  font-size: 8.2pt;
  font-weight: 500;
  color: #3A2F26;
  line-height: 1.3;
}

/* Spread 5: Pantry & Herbs */
.pantry-grid6 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 2.2mm;
  flex: 1;
}

.pantry-cell {
  border: 0.35mm dashed #C9B597;
  border-radius: 3.2mm;
  background: #FFFDF9;
  padding: 2.2mm 2.8mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 0.9mm;
}
.pantry-cell img {
  width: 34mm;
  height: 34mm;
  object-fit: contain;
  margin-bottom: 0.8mm;
}
.pc-name {
  font-size: 11.4pt;
  font-weight: 700;
  color: #1F1711;
  margin-bottom: 0.4mm;
}
.pc-tip {
  font-size: 9.5pt;
  font-weight: 500;
  line-height: 1.32;
  color: #2F251D;
}

.herbs-grid9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1.8mm;
  flex: 1;
}

.herb-cell {
  border: 0.3mm solid #D7E5DE;
  background: #FAFDFB;
  border-radius: 3mm;
  padding: 1.6mm 1.6mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 0.5mm;
}
.herb-cell img {
  width: 29mm;
  height: 29mm;
  object-fit: contain;
  margin-bottom: 0.6mm;
}
.hc-name {
  font-size: 10pt;
  font-weight: 700;
  color: #1F1711;
  line-height: 1.18;
}
.lang-ja .hc-name,
.lang-en .hc-name {
  font-size: 9.2pt;
}
.hc-pair {
  font-size: 8.6pt;
  color: #2B6251;
  font-weight: 600;
  line-height: 1.26;
  margin-top: 0.25mm;
}
.lang-ja .hc-pair,
.lang-en .hc-pair {
  font-size: 8pt;
}

/* Spread 6: Chapter 1 Showcase (Crisp Large Callout Cards!) */
.ch-opener-header {
  position: absolute;
  left: 4.5mm;
  top: 4.5mm;
  width: 122mm;
  height: 49mm;
  color: #FFFFFF;
  border-top-left-radius: 6.5mm;
  border-bottom-right-radius: 7.5mm;
  padding: 3.6mm 4.8mm;
  z-index: 20;
  overflow: hidden;
}

.coh-vi {
  font-family: "Spectral", "Shippori Mincho", "Noto Sans JP", serif;
  font-size: 18pt;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 1.1mm;
}
.lang-ja .coh-vi {
  font-family: "Shippori Mincho", "Noto Sans JP", serif;
  font-size: 16pt;
}
.lang-en .coh-vi {
  font-size: 16.8pt;
}

.coh-lead {
  font-size: 9.4pt;
  line-height: 1.34;
  color: rgba(255, 255, 255, 0.98);
  margin-top: 1.6mm;
}

.ch1-pointers-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 296mm;
  height: 210mm;
  z-index: 16;
  pointer-events: none;
}

.ch1-hero-wrap {
  position: absolute;
  left: 66mm;
  top: 53mm;
  width: 164mm;
  height: 96mm;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ch1-hero-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sc-tag {
  position: absolute;
  z-index: 24;
  background: rgba(255, 253, 247, 0.97);
  border: 0.45mm solid #B8864B;
  border-radius: 3mm;
  padding: 2.2mm 2.8mm;
  overflow: hidden;
  line-height: 1.28;
}
.sc-tag-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5mm;
  margin-bottom: 0.6mm;
}
.sc-tag-top b {
  font-size: 10pt;
  color: #1F1711;
}
.lang-ja .sc-tag-top b,
.lang-en .sc-tag-top b {
  font-size: 9.4pt;
}
.sc-pg {
  font-size: 8.2pt;
  font-weight: 700;
  color: #FFFFFF;
  background: #B8864B;
  padding: 0.35mm 1.9mm;
  border-radius: 99px;
  flex-shrink: 0;
}
.sc-desc {
  font-size: 9.1pt;
  font-weight: 500;
  color: #2B211A;
  line-height: 1.32;
}
.lang-ja .sc-desc,
.lang-en .sc-desc {
  font-size: 8.6pt;
}

.sc-t1 { left: 8mm;   top: 57mm;  width: 57mm; }
.sc-t2 { left: 8mm;   top: 153mm; width: 70mm; }
.sc-t3 { left: 80mm;  top: 153mm; width: 65mm; }
.sc-t4 { left: 162mm; top: 12mm;  width: 122mm; }
.sc-t5 { left: 152mm; top: 153mm; width: 70mm; }

.ch1-an-cheer {
  position: absolute;
  left: 224mm;
  top: 153mm;
  width: 65mm;
  height: 45mm;
  display: flex;
  align-items: flex-end;
  gap: 1.6mm;
  z-index: 22;
}
.ch1-an-cheer img {
  width: 19mm;
  height: 25mm;
  object-fit: contain;
  flex-shrink: 0;
}
.ch1-an-text {
  background: #FFFDF7;
  border: 0.4mm solid #B8864B;
  border-radius: 3mm;
  padding: 2mm 2.5mm;
  font-size: 8.8pt;
  line-height: 1.32;
  color: #1F1711;
}
.ch1-an-text b {
  display: block;
  color: #8E5B1C;
  margin-bottom: 0.4mm;
}
