/* WorldWeet – Stories: thanh tiến độ, At a glance, cuối bài, trang danh mục. Chỉ nạp ở bài/danh mục Stories. */
:root { --c-stories: #b45309; }

/* Thanh tiến độ đọc (JS tạo phần tử, position fixed → không gây CLS) */
.ww-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 999; pointer-events: none; }
.ww-progress span { display: block; height: 100%; background: var(--c-stories); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.admin-bar .ww-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .ww-progress { top: 46px; } }

.ww-readtime { margin: 6px 0 0; color: var(--ww-muted); font-size: 13px; }

/* Thân bài dễ đọc hơn */
.ww-story .entry-content { font-size: 18px; line-height: 1.75; }
.ww-story .entry-content h2 { margin-top: 1.8em; }

/* At a glance */
.ww-glance { margin: 0 0 1.6em; border: 1px solid var(--ww-line); border-left: 4px solid var(--c-stories); border-radius: var(--ww-radius); background: #fffbf5; font-size: 16px; }
.ww-glance summary { padding: 12px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.ww-glance summary::-webkit-details-marker { display: none; }
.ww-glance summary::after { content: "+"; float: right; font-weight: 400; }
.ww-glance[open] summary::after { content: "–"; }
.ww-glance dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; padding: 0 16px 14px; }
.ww-glance dt { font-weight: 600; color: var(--ww-muted); }
.ww-glance dd { margin: 0; }

/* Cuối bài */
.ww-story-end { margin-top: 2.4em; }
.ww-end__title { font-size: 20px; margin: 0 0 12px; }
.ww-where { margin-bottom: 28px; padding: 18px 20px; background: #f7f8fa; border-radius: var(--ww-radius); }
.ww-where__place { margin: 0 0 8px; font-weight: 600; }
.ww-where__map { margin-left: 8px; font-weight: 400; font-size: 14px; }
.ww-where__sub { margin: 10px 0 4px; font-size: 14px; color: var(--ww-muted); }
.ww-where__spots { margin: 0 0 0 1.2em; }
.ww-where__spots span { color: var(--ww-muted); font-size: 14px; }

.ww-sc { position: relative; }
.ww-sc__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ww-radius); background: #e9e3da; }
.ww-sc__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ww-sc__noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #f59e0b, #78350f); }
.ww-sc__title { font-size: 16px; line-height: 1.35; margin: 10px 0 0; }
.ww-sc__title a { color: var(--ww-text); text-decoration: none; }
.ww-sc__title a:hover { color: var(--c-stories); }
.ww-sc__title a::after { content: ""; position: absolute; inset: 0; } /* cả thẻ bấm được */

.ww-next { margin-bottom: 28px; }
.ww-sc--big { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--ww-line); border-radius: var(--ww-radius); background: #fff; }
.ww-sc--big .ww-sc__title { font-size: 22px; margin: 4px 0 8px; }
.ww-sc__kicker { margin: 0; color: var(--c-stories); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.ww-sc__excerpt { margin: 0 0 8px; color: #4b5563; font-size: 15px; line-height: 1.55; }
.ww-sc__meta { margin: 0; color: var(--ww-muted); font-size: 13px; }

.ww-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

@media (max-width: 767px) {
	.ww-story .entry-content { font-size: 17px; }
	.ww-sc--big { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
	.ww-more__grid { grid-template-columns: 1fr; }
	.ww-more .ww-sc { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
	.ww-more .ww-sc__title { margin: 0; font-size: 15px; }
}

/* Trang danh mục Stories: lưới 2 cột ảnh lớn */
.ww-stories-archive .site-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ww-stories-archive .site-main > :not(article) { grid-column: 1 / -1; }
.ww-stories-archive .site-main > article { margin: 0; }
.ww-stories-archive .post-image { margin: 0 0 14px; }
.ww-stories-archive .post-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ww-stories-archive .entry-title { font-size: 21px; }
@media (max-width: 767px) {
	.ww-stories-archive .site-main { grid-template-columns: 1fr; }
}
