/* ============================================================================
   Global News Summary - Stylesheet
   Editorial newspaper aesthetic with modern tech accents
   ============================================================================ */

/* --- RESET & VARIABLES --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Palette */
    --ink: #0f1419;
    --ink-soft: #1a2332;
    --ink-muted: #536471;
    --ink-faint: #8899a6;
    --paper: #ffffff;
    --paper-warm: #faf9f7;
    --paper-alt: #f3f1ee;
    --rule: #e1ddd8;
    --rule-light: #edeae6;
    --accent: #c2410c;
    --accent-hover: #9a3412;
    --accent-light: #fff7ed;
    --link: #1d4ed8;
    --link-hover: #1e40af;
    /* Harold AI */
    --harold-bg-start: #0f172a;
    --harold-bg-end: #1e1b4b;
    --harold-border: rgba(6, 182, 212, 0.35);
    --harold-glow: rgba(6, 182, 212, 0.12);
    --harold-text: #e2e8f0;
    --harold-accent: #06b6d4;
    --harold-muted: #94a3b8;
    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    /* Spacing */
    --container: 1280px;
    --gap: 1.5rem;
    --radius: 6px;
    --radius-lg: 12px;
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* --- HEADER --- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    backdrop-filter: blur(8px);
}
.header-inner {
    display: flex; align-items: center; gap: 1.5rem;
    height: 60px;
}
.logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.logo-img { height: 36px; width: auto; display: block; }
.footer-logo-img { height: 32px; }
.logo-icon { color: var(--accent); font-size: 1.4rem; font-weight: 800; }
.logo-text {
    font-family: var(--font-display); font-weight: 800;
    font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink);
    white-space: nowrap;
}
.main-nav { display: flex; gap: 0.2rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
    padding: 0.4rem 0.7rem; font-size: 0.82rem; font-weight: 600;
    color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em;
    border-radius: var(--radius); white-space: nowrap;
    transition: background 0.2s var(--ease), color 0.2s;
}
.nav-link:hover { background: var(--paper-alt); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.search-form { display: flex; align-items: center; position: relative; }
.search-input {
    width: 0; padding: 0; border: none; outline: none;
    font-size: 0.9rem; font-family: var(--font-body);
    background: var(--paper-alt); border-radius: var(--radius);
    transition: width 0.3s var(--ease), padding 0.3s;
}
.search-form.active .search-input { width: 200px; padding: 0.45rem 0.75rem; border: 1px solid var(--rule); }
.search-btn {
    padding: 0.45rem; color: var(--ink-muted); border-radius: var(--radius);
    transition: color 0.2s;
}
.search-btn:hover { color: var(--ink); }
.menu-toggle { display: none; padding: 0.4rem; color: var(--ink-muted); }

/* --- BADGES --- */
.badge {
    display: inline-block; padding: 0.2rem 0.6rem;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; border-radius: 3px;
}
.badge-cat { background: var(--ink); color: var(--paper); }
.badge-cat-sm { background: var(--accent-light); color: var(--accent); font-size: 0.6rem; padding: 0.15rem 0.45rem; }
.badge-breaking { background: #dc2626; color: #fff; animation: pulse-badge 2s infinite; }
.badge-breaking-sm { position: absolute; top: 0.5rem; left: 0.5rem; background: #dc2626; color: #fff; font-size: 0.55rem; padding: 0.15rem 0.4rem; border-radius: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
@keyframes pulse-badge { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

/* --- TODAY'S EDITOR'S PICKS — homepage strip --- */
.editors-picks-strip {
    margin-top: 0.75rem; margin-bottom: 1.5rem;
    padding: 1rem 1.1rem 1.1rem;
    background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(37,99,235,0.02));
    border: 1px solid var(--rule-light);
    border-left: 4px solid var(--link);
    border-radius: var(--radius-lg);
}
.picks-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 0.85rem; gap: 0.75rem; flex-wrap: wrap;
}
.picks-eyebrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-display); font-size: 0.95rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--link);
}
.picks-eyebrow svg { flex-shrink: 0; }
.picks-date { font-size: 0.78rem; color: var(--ink-faint); }
.picks-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.pick-card {
    display: flex; flex-direction: column;
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: inherit;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.pick-card:hover {
    border-color: var(--link); box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.pick-card-image {
    position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-alt);
}
.pick-card-image img,
.pick-card-image picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-badge {
    position: absolute; top: 8px; left: 8px;
    padding: 0.18rem 0.5rem; font-size: 0.66rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    background: var(--link); color: #fff; border-radius: 4px;
}
.pick-card-body { padding: 0.7rem 0.85rem 0.95rem; display: flex; flex-direction: column; gap: 0.3rem; }
.pick-category {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--accent);
}
.pick-title {
    font-family: var(--font-display); font-size: 0.98rem; font-weight: 700;
    line-height: 1.3; margin: 0; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .picks-grid { grid-template-columns: 1fr; }
    .pick-card-image { aspect-ratio: 16/9; }
}

/* sidebar variant — pick-rank badge contrast & block accent */
.picks-sidebar-block .sidebar-heading { color: var(--link); }
.picks-sidebar-block .sidebar-rank {
    background: var(--link); color: #fff;
}

/* --- HEADLINES --- */
.headlines { margin-bottom: 2.5rem; }
.headline-grid {
    display: grid;
	margin-top: 10px;
	margin-bottom: 20px;
    grid-template-columns: 1fr 380px;
    gap: 6px;
}
.headline-hero {
    position: relative; overflow: hidden;
    aspect-ratio: 16/10; background: var(--ink);
    border: 1px solid var(--ink);
}
.headline-hero .headline-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.headline-hero:hover .headline-img { transform: scale(1.03); }
.headline-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff; display: flex; flex-direction: column; gap: 0.5rem;
}
.headline-overlay .badge-cat { align-self: flex-start; }
.headline-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.headline-spot { font-size: 0.9rem; opacity: 0.85; line-height: 1.4; }
.headline-meta { font-size: 0.75rem; opacity: 0.7; display: flex; gap: 0.75rem; }

.headline-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 6px; }
.headline-card-sm {
    display: grid; grid-template-columns: 120px 1fr;
    gap: 0; background: var(--paper); overflow: hidden;
    border: 1px solid var(--ink); transition: background 0.2s;
}
.headline-card-sm:hover { background: var(--paper-warm); }
.headline-card-img { width: 100%; height: 100%; object-fit: cover; }
.headline-card-body { padding: 0.6rem 0.8rem; display: flex; flex-direction: column; gap: 0.3rem; justify-content: center; }
.headline-card-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta-time { font-size: 0.7rem; color: var(--ink-muted); }

.headline-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; border-top: 0; margin-top: 0; }
.strip-card { background: var(--paper); padding: 0; overflow: hidden; border: 1px solid #4f565d; transition: background 0.2s; height: 250px; }
.strip-card:hover { background: var(--paper-warm); }
.strip-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.strip-card .badge-cat-sm { margin: 0.5rem 0.6rem 0.3rem; }
.strip-title { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; line-height: 1.25; height:50px; padding: 0 0.6rem 0.6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- CONTENT LAYOUT --- */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; margin-top: 2rem; }

/* --- SECTION HEADING --- */
.section-heading {
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
    padding-bottom: 0.6rem; margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--ink);
    display: flex; align-items: center; gap: 0.5rem;
}
.comment-count-badge {
    background: var(--accent); color: #fff; font-size: 0.7rem;
    padding: 0.15rem 0.5rem; border-radius: 10px; font-family: var(--font-body);
}

/* --- ARTICLE GRID --- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.article-card {
    display: flex; flex-direction: column; background: var(--paper);
    border: 1px solid var(--rule-light); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow 0.3s var(--ease), transform 0.2s;
}
.article-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-img-wrap { position: relative; overflow: hidden; }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.4s var(--ease); }
.article-card:hover .card-img { transform: scale(1.04); }
.card-body { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-title {
    font-family: var(--font-display); font-size: 1rem; font-weight: 700;
    line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.card-excerpt { font-size: 0.82rem; color: var(--ink-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; color: var(--ink-faint); margin-top: auto; flex-wrap: wrap; }
.card-author { font-weight: 600; color: var(--ink-muted); }
.card-stats { margin-left: auto; display: flex; gap: 0.5rem; }

/* --- SIDEBAR --- */
.sidebar { position: sticky; top: 76px; align-self: start; }
.sidebar-block { margin-bottom: 2rem; }
.sidebar-heading {
    font-family: var(--font-display); font-size: 1rem; font-weight: 800;
    display: flex; align-items: center; gap: 0.4rem;
    padding-bottom: 0.5rem; margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--ink);
}
.sidebar-heading svg { color: var(--accent); }
.sidebar-list { list-style: none; counter-reset: sidebar; }
.sidebar-item {
    display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.6rem 0; border-bottom: 1px solid var(--rule-light);
}
.sidebar-rank {
    flex-shrink: 0; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: var(--ink-faint);
    border: 1.5px solid var(--rule); border-radius: 50%;
}
.sidebar-item:nth-child(-n+3) .sidebar-rank { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sidebar-item-body { flex: 1; min-width: 0; }
.sidebar-item-link { font-size: 0.82rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.sidebar-item-link:hover { color: var(--accent); }
.sidebar-stat { font-size: 0.65rem; color: var(--ink-faint); margin-top: 0.15rem; display: block; }
.sidebar-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }

/* --- ARTICLE DETAIL --- */
.breadcrumb { font-size: 0.75rem; color: var(--ink-faint); margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.breadcrumb a { color: var(--ink-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--rule); }
.breadcrumb .current { color: var(--ink-muted); }

.article-detail { max-width: 780px; }
.article-header { margin-bottom: 1.5rem; }
.article-header .badge-cat { margin-bottom: 0.75rem; }
.article-title { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1.15; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.article-spot { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 1rem; }
.article-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.author-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.meta-text { display: flex; flex-direction: column; gap: 0.1rem; }
.author-name { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.author-name:hover { color: var(--accent); }
.meta-row { font-size: 0.75rem; color: var(--ink-faint); display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.meta-dot { color: var(--rule); }

/* Article body */
.article-body {
    font-size: 1.08rem; line-height: 1.78; color: var(--ink-soft);
    margin-bottom: 2rem;
}
.article-video-embed {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    margin: 1.5rem 0;
}
.article-video-embed[data-short-id] {
    float: right;
    margin: 0 0 1.25rem 1.5rem;
    max-width: 315px;
}
.article-video-embed video { width: 100%; display: block; border-radius: var(--radius); }
.article-video-embed iframe { display: block; border-radius: var(--radius); }
@media (max-width: 768px) {
    .article-video-embed[data-short-id] { float: none; margin: 0 auto 1.5rem; }
}
.article-body h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 2rem 0 0.75rem; }
.article-body h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 1.5rem 0 0.6rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body a { color: var(--link); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.article-body a:hover { border-bottom-color: var(--link); }
.article-body blockquote { border-left: 4px solid var(--accent); padding: 1rem 1.25rem; margin: 1.5rem 0; background: var(--paper-warm); font-style: italic; color: var(--ink-muted); border-radius: 0 var(--radius) var(--radius) 0; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body figure { margin: 1.5rem 0; }
.article-body figure img { border-radius: var(--radius); }
.article-body figcaption { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.5rem; text-align: center; }

.article-hero-img { margin-bottom: 2rem; }
.article-hero-img img { width: 100%; border-radius: var(--radius-lg); }
.article-hero-img figcaption { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.5rem; padding: 0 0.25rem; }
.img-credit { font-style: italic; }
.img-credit::before { content: " — "; }

.editor-take { margin: 1.75rem 0 1.5rem; padding: 1.1rem 1.25rem; background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(37,99,235,0.02)); border-left: 4px solid var(--link); border-radius: 6px; }
.editor-take-header { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--link); margin-bottom: 0.6rem; }
.editor-take-header svg { flex-shrink: 0; }
.editor-take-body { font-size: 1.02rem; line-height: 1.65; color: var(--ink); font-style: italic; }
.editor-take-body p:first-child { margin-top: 0; }
.editor-take-body p:last-child { margin-bottom: 0; }

.article-disclosure { margin: 1.25rem 0 1rem; padding: 0.85rem 1rem; background: var(--paper-alt); border-left: 3px solid var(--link); border-radius: 4px; }
.article-source { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.5; }
.article-source strong { color: var(--ink); font-weight: 600; }
.article-source a { color: var(--link); text-decoration: underline; }
.article-source-original em { font-style: italic; color: var(--ink-muted); }
.article-ai-note { color: var(--ink-faint); font-size: 0.8rem; }

.article-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2rem; }
.tag-chip {
    padding: 0.3rem 0.7rem; font-size: 0.75rem; font-weight: 500;
    background: var(--paper-alt); color: var(--ink-muted);
    border-radius: 20px; border: 1px solid var(--rule-light);
    transition: background 0.2s, color 0.2s;
}
.tag-chip:hover { background: var(--ink); color: var(--paper); }

/* --- HAROLD AI SUMMARY --- */
.harold-summary { margin-bottom: 2rem; }
.harold-inner {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--harold-bg-start), var(--harold-bg-end));
    border: 1px solid var(--harold-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 30px var(--harold-glow), 0 4px 20px rgba(0,0,0,0.2);
}
.harold-bg-pattern {
    position: absolute; inset: 0; opacity: 0.06;
    background-image:
        radial-gradient(circle at 25% 25%, var(--harold-accent) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--harold-accent) 1px, transparent 1px),
        linear-gradient(var(--harold-accent) 1px, transparent 1px),
        linear-gradient(90deg, var(--harold-accent) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 20px 20px, 20px 20px;
    background-position: 0 0, 20px 20px, 0 0, 0 0;
}
.harold-content { position: relative; padding: 1.25rem 1.5rem; }
.harold-header {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem;
}
.harold-icon { color: var(--harold-accent); }
.harold-label {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--harold-accent);
}
.harold-ai-badge {
    font-family: var(--font-mono); font-size: 0.55rem; font-weight: 700;
    padding: 0.15rem 0.4rem; border-radius: 3px;
    background: rgba(6, 182, 212, 0.15); color: var(--harold-accent);
    border: 1px solid rgba(6, 182, 212, 0.3);
}
.harold-text {
    font-size: 0.95rem; line-height: 1.65; color: var(--harold-text);
    animation: haroldFadeIn 0.8s var(--ease) both;
}
.harold-footer {
    margin-top: 0.75rem; font-size: 0.65rem; color: var(--harold-muted);
    display: flex; gap: 0.75rem; align-items: center;
    font-family: var(--font-mono);
}
.harold-model {
    background: rgba(6, 182, 212, 0.1); padding: 0.1rem 0.4rem;
    border-radius: 3px; color: var(--harold-accent);
}
@keyframes haroldFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SHARE BUTTONS --- */
.share-buttons { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.share-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; transition: transform 0.2s, opacity 0.2s;
}
.share-btn:hover { transform: scale(1.1); }
.share-twitter { background: #000; }
.share-facebook { background: #1877f2; }
.share-linkedin { background: #0a66c2; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #0088cc; }
.share-reddit { background: #ff4500; }
.share-email { background: var(--ink-muted); }
.share-copy { background: var(--ink-soft); }
.share-bottom { margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid var(--rule-light); }
.share-bottom h3 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; }

/* --- ARTICLE PREV/NEXT NAV --- */
.article-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
    margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--rule-light);
}
.article-nav-link {
    display: flex; flex-direction: column; gap: 0.35rem;
    padding: 1rem 1.25rem; border-radius: var(--radius-lg);
    background: var(--paper-alt); transition: background 0.2s, transform 0.2s;
}
.article-nav-link:hover { background: var(--rule-light); transform: translateY(-2px); }
.article-nav-next { text-align: right; align-items: flex-end; }
.article-nav-label {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--ink-faint);
}
.article-nav-title {
    font-family: var(--font-display); font-size: 0.92rem; font-weight: 700;
    line-height: 1.35; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- DETAIL LAYOUT (article + sidebar) --- */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; margin-top: 2rem; }
.detail-content { min-width: 0; }
.detail-sidebar { position: sticky; top: 76px; align-self: start; }

/* --- RELATED --- */
.related-section { margin-top: 3rem; margin-bottom: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.related-card { transition: transform 0.2s; }
.related-card:hover { transform: translateY(-3px); }
.related-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.5rem; }
.related-title { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card time { font-size: 0.7rem; color: var(--ink-faint); }

/* --- COMMENTS --- */
.comments-section { margin-top: 3rem; max-width: 780px; }
.comment-form-wrap { margin-bottom: 2rem; }
.comment-auth { text-align: center; padding: 2rem; background: var(--paper-alt); border-radius: var(--radius-lg); }
.comment-auth p { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 0.75rem; }
.btn-google-auth {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 1.25rem; background: var(--paper); border: 1px solid var(--rule);
    border-radius: var(--radius); font-size: 0.85rem; font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: box-shadow 0.2s;
}
.btn-google-auth:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.comment-form { display: flex; flex-direction: column; gap: 0.75rem; }
.comment-form-user { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--ink-muted); }
.comment-form-user img { width: 28px; height: 28px; border-radius: 50%; }
.form-row { position: relative; }
.form-input, .form-textarea {
    width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--rule);
    border-radius: var(--radius); font-size: 0.88rem; font-family: var(--font-body);
    background: var(--paper); color: var(--ink); transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--ink-muted); outline: none; }
.form-textarea { resize: vertical; min-height: 100px; }
.char-count { position: absolute; bottom: 0.5rem; right: 0.75rem; font-size: 0.65rem; color: var(--ink-faint); }
.form-actions { display: flex; gap: 0.5rem; }
.btn-submit {
    padding: 0.6rem 1.5rem; background: var(--ink); color: var(--paper);
    border-radius: var(--radius); font-size: 0.85rem; font-weight: 600;
    transition: background 0.2s;
}
.btn-submit:hover { background: var(--ink-soft); }
.btn-cancel { padding: 0.6rem 1rem; color: var(--ink-muted); font-size: 0.85rem; font-weight: 500; }
.form-message { font-size: 0.8rem; min-height: 1.2em; }
.form-message.success { color: #16a34a; }
.form-message.error { color: #dc2626; }

.comments-list { }
.comments-loading { text-align: center; padding: 2rem; color: var(--ink-faint); font-size: 0.85rem; }
.comment-item {
    padding: 1rem 0; border-bottom: 1px solid var(--rule-light);
    display: flex; gap: 0.75rem;
}
.comment-item.reply { margin-left: 2.5rem; }
.comment-item.reply-deep { margin-left: 5rem; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--paper-alt); }
.comment-content { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.comment-nick { font-weight: 600; font-size: 0.85rem; }
.comment-time { font-size: 0.7rem; color: var(--ink-faint); }
.comment-edited { font-size: 0.65rem; color: var(--ink-faint); font-style: italic; }
.comment-text { font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); word-break: break-word; }
.comment-actions { display: flex; gap: 0.75rem; margin-top: 0.4rem; }
.comment-actions button { font-size: 0.72rem; color: var(--ink-faint); font-weight: 500; transition: color 0.2s; display: flex; align-items: center; gap: 0.25rem; }
.comment-actions button:hover { color: var(--ink); }

/* --- PAGINATION --- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.3rem; margin-top: 2.5rem; padding: 1rem 0; }
.page-btn, .page-num {
    padding: 0.45rem 0.85rem; font-size: 0.82rem; font-weight: 500;
    border: 1px solid var(--rule); border-radius: var(--radius);
    color: var(--ink-muted); transition: all 0.2s;
}
.page-btn:hover, .page-num:hover { background: var(--paper-alt); color: var(--ink); }
.page-num.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-dots { color: var(--ink-faint); padding: 0 0.25rem; }

/* --- PAGE HEADER --- */
.page-header { margin-bottom: 2rem; }
.page-title { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 0.3rem; }
.page-desc { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 0.3rem; }
.page-count { font-size: 0.78rem; color: var(--ink-faint); }

/* --- AUTHOR PROFILE --- */
.author-profile { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--ink); }
.author-profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-job { color: var(--ink-muted); font-size: 0.85rem; margin-bottom: 0.3rem; }
.author-bio { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 0.5rem; }
.author-links { display: flex; gap: 0.75rem; }
.author-links a { font-size: 0.78rem; color: var(--link); font-weight: 500; }

/* --- STATIC PAGE --- */
.static-page { max-width: 780px; margin: 0 auto; }
.static-body { font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.static-body h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 2rem 0 0.75rem; }
.static-body p { margin-bottom: 1.25rem; }
.static-updated { font-size: 0.8rem; color: var(--ink-faint); margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule-light); }

/* --- ERROR PAGE --- */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-code { font-family: var(--font-display); font-size: 6rem; font-weight: 800; color: var(--rule); line-height: 1; }
.error-msg { font-size: 1.1rem; color: var(--ink-muted); margin: 1rem 0 2rem; }
.btn-primary { display: inline-block; padding: 0.7rem 1.5rem; background: var(--ink); color: var(--paper); border-radius: var(--radius); font-weight: 600; transition: background 0.2s; }
.btn-primary:hover { background: var(--ink-soft); }

/* --- EMPTY STATE --- */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-muted); }

/* --- FOOTER --- */
.site-footer {
    margin-top: 4rem; padding: 3rem 0 1.5rem;
    background: var(--ink); color: rgba(255,255,255,0.7);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .logo-icon, .footer-brand .logo-text { color: #fff; }
.footer-tagline { font-size: 0.82rem; margin-top: 0.5rem; opacity: 0.6; }
.footer-nav h4 { color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.footer-nav a { display: block; font-size: 0.82rem; padding: 0.2rem 0; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.75rem; text-align: center; opacity: 0.5; }

/* --- TOAST --- */
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--ink); color: #fff; padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg); font-size: 0.85rem; font-weight: 500;
    z-index: 9999; transition: transform 0.3s var(--ease);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .headline-grid { grid-template-columns: 1fr; }
    .headline-side { grid-template-rows: auto; grid-template-columns: repeat(2, 1fr); }
    .headline-strip { grid-template-columns: repeat(3, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 1rem; z-index: 99; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .headline-side { grid-template-columns: 1fr; }
    .headline-strip { grid-template-columns: repeat(2, 1fr); }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav-next { text-align: left; align-items: flex-start; }
    .headline-title { font-size: 1.3rem; }
    .article-title { font-size: 1.8rem; }
    .sidebar { grid-template-columns: 1fr; }
    .detail-sidebar { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .search-form.active .search-input { width: 150px; }
    .comment-item.reply { margin-left: 1.25rem; }
    .comment-item.reply-deep { margin-left: 2.5rem; }
}

@media (max-width: 480px) {
    .article-grid { grid-template-columns: 1fr; }
    .headline-strip { grid-template-columns: 1fr; }
    .article-title { font-size: 1.5rem; }
    .article-body { font-size: 1rem; }
}

/* ============================================================================
   HO Points Module
   ============================================================================ */

/* --- Masthead Banner --- */
.ho-masthead {
    display: block;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #0f172a 100%);
    text-decoration: none;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
}
.ho-masthead::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 80px at 20% 50%, rgba(251, 191, 36, 0.08), transparent),
        radial-gradient(ellipse 600px 80px at 80% 50%, rgba(194, 65, 12, 0.06), transparent);
    pointer-events: none;
}
.ho-masthead-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* Coin spin */
.ho-masthead-coin {
    flex-shrink: 0;
    animation: ho-coin-float 3s ease-in-out infinite;
}
.ho-coin-spin {
    animation: ho-coin-rotate 4s linear infinite;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}
@keyframes ho-coin-rotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}
@keyframes ho-coin-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Text */
.ho-masthead-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.ho-masthead-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.ho-masthead-icon {
    opacity: 0.6;
}
.ho-masthead-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.5);
    flex-shrink: 0;
}
.ho-masthead-earn {
    color: #fbbf24;
    font-weight: 600;
}
.ho-masthead-earn strong {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA */
.ho-masthead-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.03em;
    transition: all 0.25s;
    flex-shrink: 0;
}
.ho-masthead:hover .ho-masthead-cta {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateX(2px);
}
.ho-masthead-arrow {
    transition: transform 0.25s;
}
.ho-masthead:hover .ho-masthead-arrow {
    transform: translateX(3px);
}
.ho-masthead:hover .ho-masthead-action {
    color: #f1f5f9;
}

/* Floating particles */
.ho-masthead-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.ho-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.25);
    animation: ho-particle-drift 8s linear infinite;
}
.ho-particle-1 { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.ho-particle-2 { left: 30%; top: 70%; animation-delay: 1.5s; animation-duration: 9s; width: 3px; height: 3px; }
.ho-particle-3 { left: 55%; top: 30%; animation-delay: 3s; animation-duration: 6s; background: rgba(194, 65, 12, 0.2); }
.ho-particle-4 { left: 75%; top: 60%; animation-delay: 4.5s; animation-duration: 10s; width: 2px; height: 2px; }
.ho-particle-5 { left: 90%; top: 40%; animation-delay: 2s; animation-duration: 8s; background: rgba(251, 191, 36, 0.15); width: 5px; height: 5px; }

@keyframes ho-particle-drift {
    0% { transform: translateX(0) translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(-60px) translateY(-10px); opacity: 0; }
}

/* Masthead responsive */
@media (max-width: 768px) {
    .ho-masthead-inner { padding: 6px 16px; gap: 10px; }
    .ho-masthead-text { font-size: 0.75rem; gap: 6px; }
    .ho-masthead-cta { display: none; }
    .ho-masthead-coin svg { width: 24px; height: 24px; }
}
@media (max-width: 480px) {
    .ho-masthead-text { font-size: 0.7rem; gap: 5px; }
    .ho-masthead-icon { width: 12px; height: 12px; }
}

/* --- Header Badge --- */
.ho-points-badge {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: 20px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.ho-points-badge:hover {
    background: #fed7aa;
    transform: scale(1.05);
}
.ho-coin-icon { flex-shrink: 0; }

/* --- Points Popup Notification --- */
.ho-points-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--ink);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.35s, transform 0.35s;
    font-family: 'DM Sans', sans-serif;
}
.ho-points-popup-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.ho-points-popup-hide {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}
.ho-points-popup-icon {
    font-size: 1.5rem;
    color: #fbbf24;
}
.ho-points-popup-amount {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fbbf24;
}
.ho-points-popup-label {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
}

/* --- Dashboard Layout --- */
.ho-dashboard { max-width: 960px; margin: 0 auto; padding: 2rem 0; }
.ho-dashboard-header { margin-bottom: 2rem; }
.ho-dashboard-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--ink);
}
.ho-dashboard-subtitle { color: var(--ink-muted); margin-top: 0.5rem; }

/* --- Explainer Banner --- */
.ho-explainer {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.ho-explainer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 500px 120px at 80% 50%, rgba(194, 65, 12, 0.1), transparent);
    pointer-events: none;
}
.ho-explainer-content {
    position: relative;
    z-index: 1;
}
.ho-explainer-content p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}
.ho-explainer-content strong {
    color: #fbbf24;
}

/* --- Login Prompt --- */
.ho-login-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
}
.ho-login-prompt-inner { max-width: 480px; }
.ho-login-prompt h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 1rem 0 0.5rem;
    color: var(--ink);
}
.ho-login-prompt p { color: var(--ink-muted); line-height: 1.6; margin-bottom: 0.5rem; }
.ho-login-subtext { font-size: 0.9rem; margin-bottom: 1.5rem !important; }
.ho-coin-icon-large { display: inline-block; }

/* --- Stats Grid --- */
.ho-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.ho-stat-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}
.ho-stat-primary {
    background: var(--accent-light);
    border-color: var(--accent);
}
.ho-stat-icon { margin-bottom: 0.5rem; }
.ho-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
}
.ho-stat-label {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-top: 0.25rem;
}

/* --- Progress Bar --- */
.ho-progress-section {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}
.ho-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin-bottom: 0.75rem;
}
.ho-progress-bar {
    height: 10px;
    background: var(--paper-alt);
    border-radius: 5px;
    overflow: hidden;
}
.ho-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #f59e0b);
    border-radius: 5px;
    transition: width 0.5s ease;
}
.ho-progress-hint {
    font-size: 0.8rem;
    color: var(--ink-faint);
    margin-top: 0.5rem;
}
.ho-progress-complete { color: #16a34a; font-weight: 600; }

/* --- Sections --- */
.ho-section {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.ho-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rule-light);
}

/* --- Chart --- */
.ho-chart-container {
    width: 100%;
    overflow-x: auto;
}
#points-chart { width: 100%; height: 200px; }

/* --- Two Column Layout --- */
.ho-two-col {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.ho-section-wide { min-width: 0; }
.ho-section-narrow { min-width: 0; }

/* --- Tables --- */
.ho-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ho-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid var(--rule);
    font-weight: 600;
    color: var(--ink-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ho-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--rule-light);
    color: var(--ink-soft);
}
.ho-table-compact td { padding: 0.4rem 0.5rem; font-size: 0.85rem; }
.ho-table-wrapper { overflow-x: auto; }
.ho-points-cell { font-weight: 600; color: #16a34a; white-space: nowrap; }
.ho-date-cell { white-space: nowrap; font-size: 0.8rem; color: var(--ink-faint); }
.ho-article-cell a { color: var(--link); text-decoration: none; }
.ho-article-cell a:hover { text-decoration: underline; }
.ho-action-icon { font-size: 1rem; }
.ho-rank-cell { font-weight: 700; text-align: center; }
.ho-empty { text-align: center; color: var(--ink-faint); padding: 2rem !important; }

/* --- Leaderboard Avatars --- */
.ho-lb-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
}
.ho-lb-avatar-placeholder {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--paper-alt);
    vertical-align: middle;
    margin-right: 6px;
}
.ho-lb-name { vertical-align: middle; }

/* --- Pagination --- */
.ho-pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.ho-page-btn {
    padding: 6px 12px;
    border: 1px solid var(--rule);
    background: var(--paper);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--ink-soft);
    transition: background 0.15s;
}
.ho-page-btn:hover { background: var(--paper-alt); }
.ho-page-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* --- Wallet Section --- */
.ho-wallet-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 1rem;
    background: var(--accent-light);
    border: 1px solid #fed7aa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.5;
}
.ho-wallet-info-banner svg { flex-shrink: 0; margin-top: 2px; }
.ho-wallet-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ho-wallet-card {
    background: var(--paper-warm);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 1rem;
}
.ho-wallet-primary { border-color: var(--accent); background: var(--accent-light); }
.ho-wallet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.ho-wallet-type {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-muted);
}
.ho-verified-badge { color: #16a34a; margin-left: 4px; }
.ho-primary-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}
.ho-wallet-address {
    margin-bottom: 0.75rem;
    overflow-x: auto;
}
.ho-wallet-address code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--ink-soft);
    word-break: break-all;
}
.ho-wallet-actions { display: flex; gap: 0.5rem; }
.ho-wallet-locked {
    text-align: center;
    padding: 2rem;
    color: var(--ink-faint);
}
.ho-wallet-locked svg { margin-bottom: 0.75rem; }
.ho-wallet-actions-main { margin-top: 1.5rem; }
.ho-wallet-actions-main h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.ho-wallet-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.ho-wallet-option {
    background: var(--paper-warm);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 1.25rem;
}
.ho-wallet-option h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}
.ho-wallet-option p {
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.4;
    margin-bottom: 1rem;
}
.ho-manual-wallet-form { display: flex; gap: 0.5rem; }

/* --- Buttons --- */
.ho-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
}
.ho-btn:hover { background: var(--paper-alt); }
.ho-btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.ho-btn-primary:hover { background: var(--accent-hover); }
.ho-btn-secondary {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.ho-btn-secondary:hover { background: var(--ink-soft); }
.ho-btn-danger { color: #dc2626; border-color: #fca5a5; }
.ho-btn-danger:hover { background: #fef2f2; }
.ho-btn-small { padding: 4px 10px; font-size: 0.8rem; }
.ho-btn-large { padding: 12px 28px; font-size: 1rem; }
.ho-btn-disabled-hint { opacity: 0.6; }
.ho-btn-copy { margin-right: 0.5rem; }
.ho-btn-close { margin-top: 0.5rem; }

/* --- Input --- */
.ho-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--ink);
    background: var(--paper);
}
.ho-input:focus { outline: none; border-color: var(--accent); }

/* --- Modal --- */
.ho-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 1rem;
}
.ho-modal {
    background: var(--paper);
    border-radius: 16px;
    padding: 2rem;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.ho-modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.ho-modal-warning {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    color: #dc2626;
    font-size: 0.9rem;
    line-height: 1.5;
}
.ho-modal-field { margin-bottom: 1rem; }
.ho-modal-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ho-modal-value {
    background: var(--paper-alt);
    padding: 0.75rem;
    border-radius: 6px;
    overflow-x: auto;
}
.ho-modal-value code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    word-break: break-all;
}
.ho-modal-private-key { background: #fef2f2; }

/* --- How It Works Grid --- */
.ho-earn-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.ho-earn-card {
    text-align: center;
    padding: 1rem;
    background: var(--paper-warm);
    border: 1px solid var(--rule-light);
    border-radius: 10px;
}
.ho-earn-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.ho-earn-card h4 { font-size: 0.9rem; color: var(--ink); margin-bottom: 0.3rem; }
.ho-earn-card p { font-size: 0.75rem; color: var(--ink-muted); line-height: 1.3; margin-bottom: 0.5rem; }
.ho-earn-points {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Profile Settings --- */
.ho-profile-settings { margin-bottom: 1.5rem; }
.ho-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.ho-setting-info h4 { font-size: 0.95rem; color: var(--ink); margin-bottom: 0.25rem; }
.ho-setting-info p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.4; margin: 0; }
.ho-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.ho-toggle input { opacity: 0; width: 0; height: 0; }
.ho-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: background 0.2s;
}
.ho-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.ho-toggle input:checked + .ho-toggle-slider { background: var(--accent); }
.ho-toggle input:checked + .ho-toggle-slider::before { transform: translateX(22px); }

/* --- Publisher Page --- */
.ho-publisher-page { max-width: 860px; margin: 0 auto; padding: 2rem 0; }
.ho-publisher-hero {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.ho-publisher-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 600px 150px at 50% 80%, rgba(232, 101, 46, 0.15), transparent);
    pointer-events: none;
}
.ho-publisher-hero-inner { position: relative; z-index: 1; }
.ho-publisher-icon { margin-bottom: 1rem; }
.ho-publisher-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.75rem;
}
.ho-publisher-hero-sub {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}
.ho-publisher-body {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 2rem;
}
.ho-publisher-content { margin-bottom: 2rem; }
.ho-publisher-benefits { margin: 1.5rem 0; }
.ho-publisher-benefits h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 1rem;
}
.ho-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.ho-benefit-card {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: var(--paper-warm);
    border: 1px solid var(--rule-light);
    border-radius: 10px;
}
.ho-benefit-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.ho-benefit-card h4 { font-size: 0.9rem; color: var(--ink); margin-bottom: 0.3rem; }
.ho-benefit-card p { font-size: 0.78rem; color: var(--ink-muted); line-height: 1.4; margin: 0; }
.ho-publisher-form-section {
    border-top: 1px solid var(--rule-light);
    padding-top: 2rem;
}
.ho-publisher-form-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

/* --- Publisher Section (reused) --- */
.ho-publisher-section { margin-bottom: 1.5rem; }
.ho-publisher-intro { margin-bottom: 1.5rem; }
.ho-publisher-intro p {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.ho-publisher-guidelines {
    background: var(--paper-warm);
    border: 1px solid var(--rule-light);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}
.ho-publisher-guidelines h4 {
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.ho-publisher-guidelines ul {
    list-style: disc;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.6;
}
.ho-publisher-note {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--ink-faint);
}
.ho-publisher-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.ho-publisher-status svg { flex-shrink: 0; }
.ho-publisher-status-pending { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.ho-publisher-status-approved { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.ho-publisher-status-rejected { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

.ho-publisher-form { max-width: 560px; }
.ho-form-group { margin-bottom: 1rem; }
.ho-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 0.3rem;
}
.ho-required { color: #dc2626; }
.ho-input-full { width: 100%; }
.ho-textarea {
    font-family: 'DM Sans', sans-serif;
    resize: vertical;
    min-height: 60px;
}
.ho-input-captcha { max-width: 160px; }
.ho-captcha-group label strong { color: var(--accent); }

.ho-form-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.ho-form-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.ho-form-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* --- HO Points Responsive --- */
@media (max-width: 768px) {
    .ho-stats-grid { grid-template-columns: 1fr; }
    .ho-two-col { grid-template-columns: 1fr; }
    .ho-wallet-options { grid-template-columns: 1fr; }
    .ho-earn-grid { grid-template-columns: repeat(2, 1fr); }
    .ho-wallet-list { grid-template-columns: 1fr; }
    .ho-manual-wallet-form { flex-direction: column; }
    .ho-setting-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .ho-benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .ho-publisher-hero h1 { font-size: 1.5rem; }
    .ho-publisher-body { padding: 1.25rem; }
}
@media (max-width: 480px) {
    .ho-earn-grid { grid-template-columns: 1fr; }
    .ho-stat-value { font-size: 1.4rem; }
    .ho-dashboard-header h1 { font-size: 1.5rem; }
}

/* ============================================================================
   DAILY DIGEST
   ============================================================================ */

/* --- Archive List --- */
.digest-archive-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.digest-archive-card {
    display: flex; align-items: center; gap: 1.25rem;
    padding: 1.25rem; background: var(--paper); border: 1px solid var(--rule);
    border-radius: var(--radius-lg); text-decoration: none; color: var(--ink);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.digest-archive-card:hover {
    border-color: var(--accent); box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.digest-date-block {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 64px; padding: 0.75rem 0.5rem;
    background: var(--paper-alt); border-radius: var(--radius); text-align: center;
}
.digest-date-day { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; line-height: 1; color: var(--accent); }
.digest-date-month { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); }
.digest-date-year { font-size: 0.7rem; color: var(--ink-faint); }
.digest-card-body { flex: 1; min-width: 0; }
.digest-card-headline {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
    line-height: 1.3; margin-bottom: 0.35rem; color: var(--ink);
}
.digest-card-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.digest-article-count { font-size: 0.8rem; color: var(--ink-muted); }
.digest-model-badge {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    padding: 0.15rem 0.4rem; background: var(--harold-bg-start); color: var(--harold-accent);
    border-radius: 3px; letter-spacing: 0.05em;
}
.digest-preview-list { list-style: none; padding: 0; margin: 0; }
.digest-preview-list li {
    font-size: 0.82rem; color: var(--ink-muted); line-height: 1.4;
    padding-left: 0.75rem; position: relative;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.digest-preview-list li::before {
    content: ''; position: absolute; left: 0; top: 0.55em;
    width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.digest-card-arrow { flex-shrink: 0; color: var(--ink-faint); transition: color 0.2s var(--ease), transform 0.2s var(--ease); }
.digest-archive-card:hover .digest-card-arrow { color: var(--accent); transform: translateX(3px); }

/* --- Day Page Header --- */
.digest-day-header { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--rule); }
.digest-day-date { margin-bottom: 0.5rem; }
.digest-day-weekday {
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent); display: block; margin-bottom: 0.15rem;
}
.digest-day-full { font-size: 0.9rem; color: var(--ink-muted); }
.digest-day-headline {
    font-family: var(--font-display); font-size: 2rem; font-weight: 800;
    line-height: 1.2; margin-bottom: 0.5rem;
}
.digest-day-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.82rem; color: var(--ink-muted); }

/* --- Digest Intro (reuses Harold styles) --- */
.digest-intro { margin-bottom: 2rem; }

/* --- Digest Items --- */
.digest-items { display: flex; flex-direction: column; gap: 0; }
.digest-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.25rem 0; border-bottom: 1px solid var(--rule-light);
}
.digest-item:first-child { padding-top: 0; }
.digest-item-rank {
    flex-shrink: 0; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1rem; font-weight: 800;
    color: var(--accent); background: var(--accent-light);
    border-radius: 50%; margin-top: 0.15rem;
}
.digest-item-content { flex: 1; min-width: 0; }
.digest-item-header { margin-bottom: 0.35rem; }
.digest-item-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.digest-item-title a { color: var(--ink); text-decoration: none; }
.digest-item-title a:hover { color: var(--accent); }
.digest-item-summary { font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: 0.4rem; }
.digest-item-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.78rem; color: var(--ink-faint); }
.digest-item-meta span::before, .digest-item-meta time::before { content: '·'; margin-right: 0.5rem; }
.digest-item-meta span:first-child::before, .digest-item-meta time:first-child::before { content: none; }
.digest-item-image {
    flex-shrink: 0; width: 120px; height: 80px; border-radius: var(--radius);
    overflow: hidden; margin-top: 0.15rem;
}
.digest-item-image img { width: 100%; height: 100%; object-fit: cover; }

/* --- Article Detail: Daily Digest Sidebar Component --- */
.digest-sidebar-block { margin-bottom: 1.5rem; }
.digest-sidebar-heading {
    display: flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
    padding-bottom: 0.6rem; border-bottom: 2px solid var(--accent);
    margin-bottom: 0.75rem;
}
.digest-sidebar-item {
    padding: 0.6rem 0; border-bottom: 1px solid var(--rule-light);
}
.digest-sidebar-item:last-child { border-bottom: none; }
.digest-sidebar-item-title {
    font-size: 0.85rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.2rem;
}
.digest-sidebar-item-title a { color: var(--ink); text-decoration: none; }
.digest-sidebar-item-title a:hover { color: var(--accent); }
.digest-sidebar-item-summary { font-size: 0.78rem; color: var(--ink-muted); line-height: 1.4; }
.digest-sidebar-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.78rem; font-weight: 600; color: var(--accent);
    text-decoration: none; margin-top: 0.5rem;
}
.digest-sidebar-link:hover { color: var(--accent-hover); }

/* --- Responsive --- */
/* --- Sidebar Banner --- */
.digest-banner-block { margin-bottom: 1.5rem; }
.digest-banner-link { display: block; border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.digest-banner-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25); }
.digest-banner-img { width: 100%; height: auto; display: block; }

/* --- Digest Special Page --- */
.dgs-hero {
    display: flex; align-items: center; gap: 2.5rem;
    padding: 3rem 2.5rem; margin: -1rem -0.5rem 2.5rem;
    background: linear-gradient(135deg, var(--harold-bg-start), var(--harold-bg-end));
    border-radius: var(--radius-lg); position: relative; overflow: hidden;
}
.dgs-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}
.dgs-hero-content { flex: 1; position: relative; z-index: 1; }
.dgs-hero-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--harold-accent);
    padding: 0.3rem 0.7rem; border: 1px solid var(--harold-border);
    border-radius: 20px; margin-bottom: 1.25rem;
}
.dgs-hero-title {
    font-family: var(--font-display); font-size: 2.8rem; font-weight: 800;
    line-height: 1.1; color: #fff; margin-bottom: 1rem;
}
.dgs-hero-subtitle { font-size: 1rem; line-height: 1.65; color: var(--harold-muted); margin-bottom: 1.5rem; max-width: 480px; }
.dgs-hero-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; font-size: 0.9rem; font-weight: 600;
    color: var(--harold-bg-start); background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    border-radius: 25px; text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.dgs-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35); }
.dgs-hero-visual { flex-shrink: 0; position: relative; z-index: 1; }
.dgs-hero-visual img { width: 280px; height: 280px; border-radius: var(--radius-lg); }

/* --- Sections --- */
.dgs-section { margin-bottom: 3rem; }
.dgs-section-alt { background: var(--paper-alt); margin-left: -1rem; margin-right: -1rem; padding: 2.5rem 1rem; border-radius: var(--radius-lg); }
.dgs-section-title {
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
    text-align: center; margin-bottom: 2rem; color: var(--ink);
}

/* --- Steps --- */
.dgs-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.dgs-step { text-align: center; padding: 1.5rem 1rem; }
.dgs-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    border-radius: 50%; margin-bottom: 1rem;
}
.dgs-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.dgs-step p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.5; }

/* --- Features --- */
.dgs-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.dgs-feature {
    padding: 1.5rem; background: var(--paper); border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
}
.dgs-feature svg { margin-bottom: 0.75rem; }
.dgs-feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.dgs-feature p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.55; }

/* --- Latest Digests --- */
.dgs-latest { display: flex; flex-direction: column; gap: 0.75rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .digest-archive-card { flex-wrap: wrap; }
    .digest-date-block { min-width: 56px; }
    .digest-card-arrow { display: none; }
    .digest-day-headline { font-size: 1.5rem; }
    .digest-item-image { width: 80px; height: 56px; }
    .dgs-hero { flex-direction: column; padding: 2rem 1.5rem; text-align: center; }
    .dgs-hero-subtitle { margin-left: auto; margin-right: auto; }
    .dgs-hero-visual img { width: 200px; height: 200px; }
    .dgs-hero-title { font-size: 2rem; }
    .dgs-steps { grid-template-columns: repeat(2, 1fr); }
    .dgs-features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .dgs-steps { grid-template-columns: 1fr; }
    .dgs-hero-visual img { width: 160px; height: 160px; }
}

/* ============================================================================
   PEMBECE — soft pink theme override (appended; later :root wins the cascade)
   ============================================================================ */
:root {
    --ink: #3b2a33;          /* deep soft plum, readable on light */
    --ink-soft: #50404a;
    --ink-muted: #8a6f7b;
    --ink-faint: #b89fab;
    --paper: #fffdfe;        /* near-white, faint warm */
    --paper-warm: #fdf4f8;   /* soft pink wash */
    --paper-alt: #fbeaf1;    /* soft pink panel */
    --rule: #f2d6e0;         /* soft pink hairline */
    --rule-light: #f8e7ef;
    --accent: #e58aa6;       /* soft rose — primary accent */
    --accent-hover: #d46e8e;
    --accent-light: #fdeff4; /* very soft pink */
    --link: #d46e8e;
    --link-hover: #be5377;
}

/* Soft body wash instead of stark white */
body { background: var(--paper-warm); }

/* Header: soft pink hairline instead of hard black rule */
.site-header {
    background: rgba(255, 253, 254, 0.92);
    border-bottom: 1px solid var(--rule);
}

/* Brand wordmark sizing (logo image) */
.logo-img { height: 34px; }
.footer-logo-img { height: 30px; }

/* Nav hover in soft pink */
.nav-link:hover { background: var(--accent-light); color: var(--accent-hover); }

/* Accent buttons / pills get the rose tone via existing var(--accent) usage.
   Add a gentle rounded, soft feel site-wide. */
:root { --radius: 10px; --radius-lg: 16px; }

/* Soft pink section dividers / cards */
.card, .article-card, .sidebar-box, .widget { border-color: var(--rule); }

/* Footer stays dark but warmer; brand text already handled by light logo */
