/* =============================================================================
   VietStage Thanh Hóa – pages.css
   Trang phụ: Archive · Chi tiết · Nghệ nhân · Sản phẩm · Video · Tìm kiếm · 404
============================================================================= */

/* ── Archive toolbar ─────────────────────────────────────────────────────── */
.archive-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: clamp(28px, 3.5vw, 48px);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.archive-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(320px, 100%);
    margin-left: auto;
    border-bottom: 1.5px solid var(--c-ink);
}
.archive-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 36px 10px 0;
    border: 0;
    outline: 0;
    background: transparent;
}
.archive-search button { position: absolute; right: 0; color: var(--c-red); }
.archive-search--lg { width: 100%; margin: 0 0 40px; }
.archive-search--lg input { padding-block: 14px; font-size: 20px; }

.archive-ornament { width: 520px; right: -160px; top: -120px; opacity: .1; }

/* ── Knowledge strip (Dữ liệu - Tri thức) ───────────────────────────────── */
.knowledge-strip { border-bottom: 1px solid var(--c-line); background: var(--c-cream-50); }
.knowledge-strip-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.knowledge-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
    border-left: 1px solid var(--c-line);
    font-size: 15px;
    color: var(--c-muted);
}
.knowledge-item:first-child { border-left: 0; padding-left: 0; }
.knowledge-item strong {
    display: block;
    font-family: var(--f-head);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--c-red);
}
.knowledge-icon { color: var(--c-gold); }

/* ── Pagination & load more ─────────────────────────────────────────────── */
.pagination { margin-top: clamp(36px, 4vw, 56px); }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding-inline: 8px;
    font-family: var(--f-head);
    border: 1px solid var(--c-line);
    border-radius: 50%;
    transition: var(--t);
}
.pagination a.page-numbers:hover { border-color: var(--c-red); color: var(--c-red); }
.pagination .page-numbers.current { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.pagination .page-numbers.dots { border: 0; }
.load-more-wrap { display: flex; justify-content: center; margin-top: clamp(36px, 4vw, 56px); }
.load-more-wrap .pagination { margin-top: 0; }

/* ── News featured ───────────────────────────────────────────────────────── */
.news-featured {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    margin-bottom: clamp(40px, 5vw, 72px);
    padding-bottom: clamp(40px, 5vw, 72px);
    border-bottom: 1px solid var(--c-line);
}
.news-featured-media { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.news-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-featured:hover .news-featured-media img { transform: scale(1.04); }
.news-featured-title { margin-bottom: 12px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; line-height: 1.25; }
.news-featured-excerpt { margin: 16px 0 28px; color: var(--c-text); }

/* ── Detail layout (single) ─────────────────────────────────────────────── */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.admin-bar .detail-aside { top: calc(var(--header-h) + 56px); }
.detail-subtitle {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--c-red);
}
.detail-video { margin-top: 48px; }

.ratio-16x9 { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.ratio-16x9 iframe,
.ratio-16x9 img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

.fact-card {
    padding: 28px;
    background: var(--c-cream-50);
    border: 1px solid var(--c-line);
    border-top: 3px solid var(--c-red);
    border-radius: var(--radius);
}
.fact-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
}
.fact-card-title .icon { color: var(--c-red); }
.fact-list { display: grid; margin-bottom: 24px; }
.fact-list > div { padding: 12px 0; border-bottom: 1px dashed var(--c-line); }
.fact-list dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.fact-list dd { margin-top: 2px; font-weight: 500; color: var(--c-ink); }
.fact-list dd a { color: var(--c-red); }
.fact-card .contact-form-title { font-size: 18px; }
.fact-card .form-grid { grid-template-columns: 1fr; }

/* Article */
.article-header { display: grid; justify-items: start; gap: 14px; margin-bottom: 28px; }
.video-player + .article-header { margin-top: 32px; }
.article-title { font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; line-height: 1.2; }
.article-cover { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.article-cover img { width: 100%; }

/* Prose – nội dung bài viết */
.prose { font-size: 18px; line-height: 1.75; color: var(--c-text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; color: var(--c-ink); }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 23px; }
.prose h4 { font-size: 19px; }
.prose a { color: var(--c-red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before {
    content: '';
    position: absolute;
    left: -1.1em;
    top: .72em;
    width: 6px;
    height: 6px;
    border: 1.5px solid var(--c-gold);
    transform: rotate(45deg);
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote {
    padding: 8px 0 8px 24px;
    border-left: 3px solid var(--c-gold);
    font-family: var(--f-head);
    font-size: 22px;
    line-height: 1.5;
    color: var(--c-ink);
}
.prose img, .prose figure { border-radius: var(--radius-sm); }
.prose figcaption, .prose .wp-caption-text { margin-top: 8px; font-size: 14px; color: var(--c-muted); text-align: center; }
.prose hr { border: 0; height: 1px; background: var(--c-line); margin-block: 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--c-line); text-align: left; }
.prose th { background: var(--c-cream); font-weight: 600; }
.prose .alignwide { max-width: none; }
.prose .aligncenter { margin-inline: auto; }

.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; color: var(--c-muted); }
.tag-list a { padding: 4px 12px; font-size: 14px; border: 1px solid var(--c-line); border-radius: 999px; }
.tag-list a:hover { border-color: var(--c-red); }

/* Share */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--c-line);
}
.share-label { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; font-family: var(--f-head); text-transform: uppercase; font-size: 14px; letter-spacing: .06em; }
.share-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--c-red);
    border: 1px solid var(--c-line);
    border-radius: 50%;
    transition: var(--t);
}
.share-btn:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.share-copied {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    padding: 4px 10px;
    font-size: 12px;
    white-space: nowrap;
    color: #fff;
    background: var(--c-ink);
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: var(--t);
}
.share-btn.is-copied .share-copied { opacity: 1; transform: translate(-50%, 0); }

/* Post nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.post-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    transition: var(--t);
}
.post-nav-link:hover { border-color: var(--c-red); }
.post-nav-link .icon { color: var(--c-red); }
.post-nav-link span { display: grid; font-weight: 600; line-height: 1.35; }
.post-nav-link small { font-weight: 400; font-size: 13px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }
.post-nav-link--next { grid-column: 2; justify-content: flex-end; text-align: right; }

/* Aside */
.aside-block { padding: 24px; border: 1px solid var(--c-line); border-radius: var(--radius); }
.aside-title { margin-bottom: 16px; font-size: 18px; font-weight: 500; text-transform: uppercase; color: var(--c-red); }
.mini-list { display: grid; gap: 14px; }
.mini-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.mini-item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.mini-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--c-ink); transition: color var(--t); }
.mini-item:hover strong { color: var(--c-red); }
.mini-item small { display: block; margin-top: 4px; font-size: 13px; color: var(--c-muted); }
.aside-block--cta { display: grid; justify-items: start; gap: 10px; background: var(--c-cream); border-color: transparent; }
.aside-block--cta > .icon { color: var(--c-red); }
.aside-block--cta .aside-title { margin-bottom: 0; color: var(--c-ink); }
.aside-block--cta p { font-size: 15px; color: var(--c-muted); }
.aside-block--cta .btn { margin-top: 8px; }

/* ── Artisan spotlight & profile ───────────────────────────────────────── */
.artisan-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
    margin-bottom: clamp(48px, 6vw, 88px);
}
.artisan-spotlight-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.artisan-spotlight-body { position: relative; }
.artisan-spotlight-ornament { width: 320px; right: -40px; top: -60px; }
.artisan-spotlight-body > *:not(.ornament-drum) { position: relative; z-index: 1; }
.artisan-spotlight-body .btn { margin-top: 28px; }
.artisan-quote { display: flex; gap: 14px; margin-top: 24px; color: var(--c-gold); }
.artisan-quote p { font-family: var(--f-head); font-size: clamp(19px, 1.8vw, 24px); font-weight: 400; line-height: 1.5; color: var(--c-ink); }

.profile-inner {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}
.profile-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.profile-name { font-size: clamp(34px, 4.2vw, 58px); font-weight: 500; text-transform: uppercase; color: var(--c-red); line-height: 1.1; }
.profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; margin-top: 32px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.profile-facts > div { padding: 16px 18px; background: #fff; }
.profile-facts dt { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.profile-facts dt .icon { color: var(--c-red); }
.profile-facts dd { margin-top: 6px; font-weight: 600; color: var(--c-ink); }
.profile-facts dd a { color: var(--c-red); }

/* ── Product (creative) ───────────────────────────────────────────────── */
.product-layout { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.product-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.product-summary { display: grid; justify-items: start; gap: 14px; }
.product-title { font-size: clamp(28px, 3vw, 42px); font-weight: 500; line-height: 1.2; }
.product-price { font-family: var(--f-head); font-size: 26px; color: var(--c-red); }
.product-meta { display: grid; gap: 10px; width: 100%; padding-block: 18px; border-block: 1px solid var(--c-line); }
.product-meta li { display: flex; align-items: center; gap: 12px; }
.product-meta .icon { color: var(--c-red); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ── Video archive ─────────────────────────────────────────────────────── */
.video-featured {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    margin-bottom: clamp(40px, 5vw, 72px);
}
.video-featured .section-title { font-size: clamp(24px, 2.4vw, 34px); }
.video-featured .section-title a:hover { color: var(--c-red-800); }

/* ── Search results ────────────────────────────────────────────────────── */
.search-results { display: grid; border-top: 1px solid var(--c-line); }
.search-result-link {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--c-line);
}
.search-result-link img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); }
.search-result-link > span { display: grid; justify-items: start; gap: 6px; }
.search-result-link strong { font-size: 19px; font-weight: 600; color: var(--c-ink); transition: color var(--t); }
.search-result-link small { font-size: 15px; color: var(--c-muted); }
.search-result-link > .icon { color: var(--c-red); transition: transform var(--t); }
.search-result-link:hover strong { color: var(--c-red); }
.search-result-link:hover > .icon { transform: translateX(4px); }

/* ── 404 ───────────────────────────────────────────────────────────────── */
.error-404 { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 160px); background: var(--c-cream-50); }
.error-404-ornament { width: 640px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .14; }
.error-404-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 16px; max-width: 720px; text-align: center; }
.error-404-icon { color: var(--c-red); }
.error-404-code { font-family: var(--f-head); font-size: clamp(80px, 12vw, 160px); line-height: 1; color: var(--c-gold); letter-spacing: .04em; }
.error-404 .section-desc { margin-top: 0; }
.error-404 .archive-search--lg { max-width: 520px; margin: 16px 0 8px; }

/* ── Comments (tối giản) ───────────────────────────────────────────────── */
.comments-area { margin-top: 48px; }
.comment-list { display: grid; gap: 20px; }
.comment-body { padding: 18px; border: 1px solid var(--c-line); border-radius: var(--radius); }
.comment-form input:not([type=submit]):not([type=checkbox]),
.comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.comment-form .submit { padding: 10px 24px; color: #fff; background: var(--c-red); border: 0; border-radius: 999px; cursor: pointer; }

/* =============================================================================
   RESPONSIVE
============================================================================= */
@media (max-width: 1024px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-aside { position: static; }
    .knowledge-strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .knowledge-item:nth-child(3) { border-left: 0; padding-left: 0; }
    .knowledge-item:nth-child(n+3) { border-top: 1px solid var(--c-line); }
}
@media (max-width: 860px) {
    .news-featured,
    .artisan-spotlight,
    .profile-inner,
    .product-layout,
    .video-featured { grid-template-columns: 1fr; }
    .profile-media img,
    .artisan-spotlight-media img { aspect-ratio: 1; }
    .archive-search { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
    .knowledge-strip-inner { grid-template-columns: 1fr; }
    .knowledge-item { border-left: 0; padding-left: 0; padding-block: 18px; }
    .knowledge-item + .knowledge-item { border-top: 1px solid var(--c-line); }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-link--next { grid-column: auto; }
    .search-result-link { grid-template-columns: 72px 1fr; gap: 14px; }
    .search-result-link img { width: 72px; height: 72px; }
    .search-result-link > .icon { display: none; }
    .prose { font-size: 17px; }
}
