/**
 * Blog Archive — Design Token Override
 *
 * Loaded on is_category(), is_tag(), is_author() pages.
 * Covers category, tag, and author archive pages.
 * Uses per-role Typography CSS Variables (--hz-typo-XX-*).
 *
 * Token mapping:
 * - Page title:     typo.03 (Heading Large) + color.07
 * - Card title:     typo.04 (Heading Small) + color.07
 * - Card excerpt:   typo.06 (Body) + color.09
 * - Card meta:      typo.14 (Meta) + color.10
 * - Card image:     surface.02 radius
 * - Read more:      typo.06 + color.14
 * - Sidebar:        typo.28 (Panel Heading) / typo.06 (Body)
 * - Pagination:     typo.06 + color.09/14
 */

/* 覆蓋 Blocksy --color-primary */
.category,
.tag,
.author {
    --color-primary: var(--hz-color-14);
}

/* ===========================
   Hero / Page Title Area
   隱藏 Hero，避免標題溢出問題
   分類/標籤/作者名稱在卡片 meta 中已有顯示
   =========================== */
.category .hero-section,
.tag .hero-section,
.author .hero-section {
    display: none;
}

/* ===========================
   Article Cards
   =========================== */

/* Card title — typo.04 + color.07
   Blocksy inline style 用 .entries .entry-card .entry-title a { color: inherit } */
.category .entries .entry-card .entry-title a,
.tag .entries .entry-card .entry-title a,
.author .entries .entry-card .entry-title a {
    font-family: var(--hz-typo-typo-04-ff);
    font-size: var(--hz-typo-typo-04-fs);
    font-weight: var(--hz-typo-typo-04-fw);
    line-height: var(--hz-typo-typo-04-lh);
    color: var(--hz-color-07) !important;
    text-decoration: none;
}

.category .entries .entry-card .entry-title a:hover,
.tag .entries .entry-card .entry-title a:hover,
.author .entries .entry-card .entry-title a:hover {
    color: var(--hz-color-14) !important;
}

/* Card excerpt — typo.06 + color.09 */
.category .entries .entry-card .entry-excerpt,
.category .entries .entry-card .entry-summary,
.tag .entries .entry-card .entry-excerpt,
.tag .entries .entry-card .entry-summary,
.author .entries .entry-card .entry-excerpt,
.author .entries .entry-card .entry-summary {
    font-family: var(--hz-typo-typo-06-ff);
    font-size: var(--hz-typo-typo-06-fs);
    font-weight: var(--hz-typo-typo-06-fw);
    line-height: var(--hz-typo-typo-06-lh);
    color: var(--hz-color-09);
}

/* Card meta (date, category, author) — typo.14 + color.10
   Blocksy inline style 用 .entries .entry-card .entry-meta { color: rgb(136,136,136) } */
.category .entries .entry-card .entry-meta,
.tag .entries .entry-card .entry-meta,
.author .entries .entry-card .entry-meta {
    font-family: var(--hz-typo-typo-14-ff);
    font-size: var(--hz-typo-typo-14-fs);
    font-weight: var(--hz-typo-typo-14-fw);
    line-height: var(--hz-typo-typo-14-lh);
    color: var(--hz-color-10) !important;
}

.category .entries .entry-card .entry-meta a,
.tag .entries .entry-card .entry-meta a,
.author .entries .entry-card .entry-meta a {
    color: var(--hz-color-10);
    text-decoration: none;
}

.category .entries .entry-card .entry-meta a:hover,
.tag .entries .entry-card .entry-meta a:hover,
.author .entries .entry-card .entry-meta a:hover {
    color: var(--hz-color-14);
}

/* Card image */
.category .entries .entry-card .ct-media-container,
.tag .entries .entry-card .ct-media-container,
.author .entries .entry-card .ct-media-container {
    border-radius: var(--hz-surface-02-radius);
    overflow: hidden;
}

/* ===========================
   Sidebar
   =========================== */

/* Sidebar 灰色背景移除 */
.category aside#sidebar::after,
.tag aside#sidebar::after,
.author aside#sidebar::after {
    background-color: var(--hz-color-01) !important;
}

/* Widget title — typo.28 (Panel Heading) */
.category aside#sidebar .ct-widget .widget-title,
.category aside#sidebar .ct-widget h2,
.category aside#sidebar .ct-widget h3,
.tag aside#sidebar .ct-widget .widget-title,
.tag aside#sidebar .ct-widget h2,
.tag aside#sidebar .ct-widget h3,
.author aside#sidebar .ct-widget .widget-title,
.author aside#sidebar .ct-widget h2,
.author aside#sidebar .ct-widget h3 {
    font-family: var(--hz-typo-typo-28-ff);
    font-size: var(--hz-typo-typo-28-fs) !important;
    font-weight: 600 !important;
    line-height: var(--hz-typo-typo-28-lh);
    color: var(--hz-color-07) !important;
    border-left: none !important;
    padding-left: 0 !important;
}

/* Sidebar text / links */
.category aside#sidebar,
.category aside#sidebar *:not(i):not(svg),
.tag aside#sidebar,
.tag aside#sidebar *:not(i):not(svg),
.author aside#sidebar,
.author aside#sidebar *:not(i):not(svg) {
    font-family: var(--hz-typo-typo-06-ff) !important;
}

.category aside#sidebar a,
.tag aside#sidebar a,
.author aside#sidebar a {
    color: var(--hz-color-09) !important;
    text-decoration: none;
}

.category aside#sidebar a:hover,
.tag aside#sidebar a:hover,
.author aside#sidebar a:hover {
    color: var(--hz-color-14) !important;
}

/* ===========================
   Pagination
   =========================== */
.category .ct-pagination,
.tag .ct-pagination,
.author .ct-pagination {
    font-family: var(--hz-typo-typo-06-ff);
}

.category .ct-pagination a,
.tag .ct-pagination a,
.author .ct-pagination a {
    color: var(--hz-color-09);
}

.category .ct-pagination .current,
.tag .ct-pagination .current,
.author .ct-pagination .current {
    background-color: var(--hz-color-04);
    color: var(--hz-color-11);
}
