/* Only the newly added book list; existing homepage styles stay authoritative. */
#write .book-list { max-width: 930px; }
#write .book-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 400px) {
  #write .book-list li { grid-template-columns: 1fr; }
}

/* Cooking award story uses the homepage's existing type and color tokens. */
#write .cooking-story { margin-top: 64px; }
#write .cooking-story h3 { margin-block: 16px; }
#write .cooking-story > p { color: var(--muted); }
#write .cooking-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
#write .cooking-media figure { margin: 0; min-width: 0; }
#write .cooking-media-placeholder { aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--paper-deep); color: var(--muted); border: 1px solid var(--line); text-align: center; padding: 24px; }
#write .cooking-media-placeholder span:first-child { color: var(--ink); }
#write .cooking-media figcaption { margin-top: 16px; color: var(--muted); }
#write .cooking-media img, #write .cooking-media video { display: block; width: 100%; height: auto; }
@media (max-width: 700px) { #write .cooking-media { grid-template-columns: 1fr; } }

#write .cooking-story > .cooking-award { color: var(--orange); font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; word-break: keep-all; }
#write .cooking-award strong { font-weight: 800; }

/* Equal photo cells at the right of each book row, preserving full images. */
.class-list.book-list li, #write .book-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 160px; align-items: center; }
.book-list .book-photo { display: flex; width: 160px; height: 130px; align-items: center; justify-content: center; background: var(--paper-deep); overflow: hidden; }
.book-list .book-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.book-list .book-photo-pending { color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 700px) {
  .class-list.book-list li, #write .book-list li { grid-template-columns: minmax(0, 1fr) 110px; }
  .book-list li > strong { grid-column: 1; grid-row: 1; }
  .book-list li > span:not(.book-photo) { grid-column: 1; grid-row: 2; }
  .book-list li > .book-photo { grid-column: 2; grid-row: 1 / span 2; width: 110px; height: 100px; }
}

#write .cooking-media > figure > a { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--paper-deep); }
#write .cooking-media > figure > a img { width: 100%; height: 100%; object-fit: contain; }
#write .cooking-media video { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--paper-deep); }

/* Consistent bilingual section headings, based on the free guide. */
body:has(#home) .section-label { font-size:20px; letter-spacing:.08em; line-height:1.5; flex-wrap:wrap; word-break:keep-all; }

.numbered-heading .section-number { grid-row:1 / span 2; }
.numbered-heading h2 { grid-column:2; }
.wide-copy .section-label { color:#ffb078; }
.identity > span { line-height:1.8; }

/* Consistent, more readable book titles and publication details. */
#write .book-list li > strong { font-size:19px; font-weight:700; line-height:1.6; word-break:keep-all; }
#write .book-list li > span { font-size:16px; line-height:1.8; }

/* STORY CHEF intro video inside the brand band (vertical 9:16, plays only when clicked). */
.quote-band .brand-video { width: min(360px, 80vw, calc((100vh - 160px) * 9 / 16)); min-width: min(280px, 80vw); margin: 48px auto 0; }
.quote-band .brand-video video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #f4efe6; border-radius: 4px; }
.quote-band .brand-video figcaption { margin-top: 14px; color: #c9cdbc; font-size: 13px; letter-spacing: .02em; }
