/* The story page (story.html): the prologue over the key visual, a book of ten chapters, the three sides with their
   people, and the places. Silver and white with slate titles like the rest of the site (skin.css). */
#page .story-book .win-body { padding: 14px 16px; }
.st-hero { position: relative; margin: -4px -6px 14px; border-radius: 8px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 1px #98a4b1; }
.st-hero img { display: block; width: 100%; height: 230px; object-fit: cover; object-position: center 35%; }
.st-hero > div { position: absolute; inset: auto 0 0; padding: 30px 18px 12px; background: linear-gradient(rgba(14, 24, 48, 0), rgba(14, 24, 48, 0.85)); color: #fff; }
.st-hero h2 { margin: 0; font: bold 30px/1.2 "Thonburi", "Leelawadee UI", Tahoma, sans-serif; text-shadow: 0 2px 0 #0b1633, 0 0 10px rgba(0, 0, 0, 0.5); }
.st-hero p { margin: 2px 0 0; font-size: 14px; font-weight: bold; color: #dbe7ff; }
.st-prose p, .st-reader p { margin: 0 0 12px; font-size: 14px; line-height: 1.95; color: #343e4d; text-indent: 2em; }
.st-next { text-align: right; }
.st-next a, .st-next a:hover { text-indent: 0; font-weight: bold; color: var(--green); }

/* ---------- chapters: a list down the left, the chapter being read on the right ---------- */
.st-book { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: start; }
.st-chapters { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.st-chapters button { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; width: 100%; padding: 6px 9px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: linear-gradient(#ffffff, #e3e8ee); border: 1px solid #a3adb8; border-radius: 7px; box-shadow: inset 0 1px 0 #fff; }
.st-chapters button b { font-size: 11px; color: #6b7686; }
.st-chapters button span { grid-column: 1 / -1; font-size: 13px; font-weight: bold; }
.st-chapters button small { grid-row: 1; grid-column: 2; justify-self: end; font-size: 10px; color: #8a95a5; }
.st-chapters button:hover { border-color: #5fb36f; background: linear-gradient(#ffffff, #e6f5e9); }
.st-chapters button.on { color: #fff; text-shadow: 0 1px 0 #0b1633; border-color: var(--slate); background: linear-gradient(var(--slate-2), var(--slate)); }
.st-chapters button.on b, .st-chapters button.on small { color: #b9c8e6; }
.st-reader h2 { margin: 0 0 10px; font: bold 24px/1.3 "Thonburi", "Leelawadee UI", Tahoma, sans-serif; color: var(--slate); }
.st-art { display: block; width: 100%; height: 220px; object-fit: cover; margin-bottom: 10px; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 0 0 1px #98a4b1; }
.st-reader .st-chapter-no { margin: 0; text-indent: 0; font-size: 12px; font-weight: bold; color: var(--green); }
.st-reader .st-teaser { text-indent: 0; padding: 8px 12px; font-weight: bold; color: #fff; background: linear-gradient(var(--slate-2), var(--slate)); border-radius: 6px; }

/* ---------- the three sides ---------- */
.st-sides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.st-side { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 0 10px; padding: 8px 12px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: linear-gradient(#ffffff, #e3e8ee); border: 1px solid #a3adb8; border-radius: 9px; box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(20, 35, 60, 0.15); }
.st-side i { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; font: normal 26px/1 serif; color: #fff; background: var(--side); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #6f7c8b; }
.st-side b { font-size: 16px; }
.st-side small { font-size: 10px; color: #6b7686; letter-spacing: 0.5px; }
.st-side:hover { border-color: #5fb36f; }
.st-side.on { color: #fff; text-shadow: 0 1px 0 #0b1633; border-color: var(--slate); background: linear-gradient(var(--slate-2), var(--slate)); box-shadow: 0 0 0 2px #9ee6a8, 0 3px 6px rgba(20, 35, 60, 0.3); }
.st-side.on small { color: #b9c8e6; }
.st-side-head { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; background: #f4f7fa; border: 1px solid #d3dae2; border-left: 5px solid var(--side); border-radius: 8px; }
.st-side-head > i { font: normal 34px/1 serif; color: var(--side); }
.st-side-head h3 { margin: 0 0 3px; font-size: 18px; color: var(--slate); }
.st-side-head p { margin: 0; font-size: 13px; line-height: 1.75; color: #3a4453; }
.st-key-line { margin: 10px 2px; font-size: 13px; color: #3a4453; }
.st-key-line b { color: var(--green); }
.st-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.st-face { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px; cursor: pointer; font: inherit; color: var(--ink); text-align: center;
  background: #fff; border: 1px solid #b3bdc8; border-radius: 9px; box-shadow: 0 2px 4px rgba(20, 35, 60, 0.12); transition: transform 0.12s ease; }
.st-face img { width: 96px; height: 104px; object-fit: cover; border: 2px solid #fff; border-radius: 7px; box-shadow: 0 0 0 1px #98a4b1; background: #dbe8f5; }
.st-face b { font-size: 12px; line-height: 1.3; }
.st-face small { font-size: 10px; line-height: 1.3; color: #6b7686; }
.st-face.key { border-color: #5fb36f; box-shadow: 0 0 0 1px #5fb36f, 0 2px 4px rgba(20, 35, 60, 0.12); }
.st-face.key::before { content: 'ตัวสำคัญ'; align-self: flex-start; margin: -2px 0 -16px 2px; position: relative; z-index: 1; padding: 0 6px; font-size: 9px; font-weight: bold; line-height: 16px; color: #fff; background: var(--green); border-radius: 8px; }
.st-face:hover { transform: translateY(-2px); }
.st-face.on { background: #eef6f0; border-color: var(--slate); box-shadow: 0 0 0 2px var(--slate); }
.st-person { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; margin-top: 14px; padding: 12px; background: #f4f7fa; border: 1px solid #d3dae2; border-radius: 9px; }
.st-person img { width: 140px; height: 150px; object-fit: cover; border: 3px solid #fff; border-radius: 9px; box-shadow: 0 0 0 1px #98a4b1, 0 3px 6px rgba(20, 35, 60, 0.25); background: #dbe8f5; }
.st-person h3 { margin: 2px 0 0; font: bold 20px/1.3 "Thonburi", "Leelawadee UI", Tahoma, sans-serif; color: var(--slate); }
.st-person .st-role { margin: 0 0 6px; font-size: 12px; font-weight: bold; color: var(--green); }
.st-person p { margin: 0; font-size: 13px; line-height: 1.8; color: #3a4453; }
.st-key { display: inline-block; padding: 0 8px; font-size: 10px; font-style: normal; font-weight: bold; line-height: 18px; color: #fff; background: var(--green); border-radius: 9px; }

/* ---------- places ---------- */
.st-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.st-place { padding: 6px 6px 10px; background: #fff; border: 1px solid #b3bdc8; border-radius: 9px; }
.st-place img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.st-place b { display: block; margin: 6px 4px 2px; font-size: 15px; color: var(--slate); }
.st-place p { margin: 0 4px; font-size: 12px; line-height: 1.7; color: #3a4453; }

@media (max-width: 679px) {
  .st-book { grid-template-columns: 1fr; }
  .st-chapters { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .st-chapters li { flex: none; width: 140px; }
  .st-sides { grid-template-columns: 1fr; }
  .st-person { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .st-hero img { height: 160px; }
  .st-hero h2 { font-size: 22px; }
}
