
.g-top nav a { padding: 0 10px; }
.u-layout { padding-bottom: 40px; }


.u-group { margin: 22px 0 8px; font-size: 12.5px; font-weight: 800; color: var(--kh-cinnabar); letter-spacing: .04em; }
.u-group--past { color: var(--kh-muted); margin-top: 26px; }
.u-empty { margin-top: 22px; padding: 22px 16px; text-align: center; color: var(--kh-muted); background: #fffdf8; border: 1px dashed rgba(120, 90, 50, .25); border-radius: 14px; font-size: 14px; }
.u-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 16px; gap: 12px; align-items: center; padding: 10px; margin-bottom: 8px; background: #fffdf8; border: 1px solid rgba(120, 90, 50, .16); border-radius: 14px; text-decoration: none; }
.u-row img, .u-row .u-noimg { width: 72px; height: 128px; object-fit: cover; border-radius: 8px; background: #e8e0d2; }
.u-row .u-noimg { display: flex; align-items: center; justify-content: center; font-family: var(--kh-font-serif); font-weight: 800; color: var(--kh-muted); }
.u-row small { display: block; font-size: 12px; color: var(--kh-muted); }
.u-row b { display: block; font-family: var(--kh-font-serif); font-size: 17px; line-height: 1.35; }
.u-row em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--kh-muted); }
.u-row > i { font-style: normal; color: var(--kh-muted); font-size: 20px; }
.u-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.u-chips span { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(176, 58, 46, .08); color: #7a3a2e; }


.u-grid { margin-top: 14px; }
.u-cards-wrap { position: relative; }
.u-cards { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.u-cards::-webkit-scrollbar { display: none; }
.u-cards figure { flex: 0 0 76%; margin: 0; scroll-snap-align: center; }
.u-cards img { cursor: zoom-in; display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 12px; background: #e8e0d2; box-shadow: 0 2px 10px rgba(40, 30, 20, .12); }

.u-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.u-nav { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(120, 90, 50, .2); background: #fffdf8; color: var(--kh-text); font-size: 22px; line-height: 1; cursor: pointer; }
.u-nav[disabled] { opacity: .35; cursor: default; }
.u-count { margin: 0; min-width: 96px; text-align: center; font-size: 14px; color: var(--kh-text); line-height: 1.3; }
.u-count small { display: block; font-size: 11.5px; color: var(--kh-muted); }


html.u-zoom-open { overflow: hidden; }

.u-zoom { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 16, 12, .95); color: #fdfaf3; overscroll-behavior: contain; }
.u-zoom::backdrop { background: rgba(20, 16, 12, .95); }
.u-zoom[open] { display: flex; flex-direction: column; }
.u-zoom-strip { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.u-zoom-strip::-webkit-scrollbar { display: none; }
.u-zoom-strip figure { flex: 0 0 100%; height: 100%; min-height: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: calc(52px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 4px calc(8px + env(safe-area-inset-left)); box-sizing: border-box; scroll-snap-align: center; }
.u-zoom-strip figure:focus-visible, .u-cards figure:focus-visible { outline: 3px solid var(--kh-cinnabar); outline-offset: 2px; border-radius: 12px; }
.u-zoom-strip img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.u-zoom-close { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fdfaf3; font-size: 28px; line-height: 1; cursor: pointer; }
.u-ctrl--zoom { margin: 0; padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); }
.u-ctrl--zoom .u-nav { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fdfaf3; }
.u-ctrl--zoom .u-count { color: #fdfaf3; }

@media (min-width: 900px) {
  .u-zoom-strip figure { align-items: flex-start; overflow-y: auto; padding: calc(56px + env(safe-area-inset-top)) 16px 16px; }
  .u-zoom-strip img { max-height: none; width: min(720px, 100%); }
}


.u-intro { margin: 22px 0 0; font-size: 14.5px; color: var(--kh-muted); }
.u-sec { margin-top: 26px; scroll-margin-top: 16px; }
.u-sec h2 { margin: 0 0 6px; font-family: var(--kh-font-serif); font-size: 18px; line-height: 1.4; padding-left: 12px; border-left: 3px solid var(--kh-cinnabar); }
.u-sec p { margin: 6px 0 0; font-size: 14.5px; }
.u-list { margin: 0; padding-left: 20px; font-size: 14.5px; }
.u-list > li { padding: 3px 0; }
.u-list ul { margin: 4px 0 2px; padding-left: 16px; font-size: 13.5px; color: var(--kh-muted); list-style: "\2013  "; }
.u-outro { margin: 26px 0 0; font-size: 14px; color: var(--kh-muted); }

@media (min-width: 900px) {
  .g-layout.u-layout { display: block; }
  .u-layout .g-main { max-width: none; }
  .u-layout--list .g-main { max-width: 720px; }

  .u-grid { display: grid; grid-template-columns: min(380px, calc((100vh - 110px) * 9 / 16)) minmax(0, 640px); gap: 36px; align-items: start; }
  .u-cards-wrap { position: sticky; top: 16px; }
  .u-cards { margin: 0; padding: 0; }
  .u-cards figure { flex-basis: 100%; }
  .u-intro { margin-top: 0; }
  .u-text .g-toc { display: block; }
}
