/* RadPulse — editorial dark theme
   Design system: /design-system/radpulse/MASTER.md
   Fonts: Inter (UI) + Noto Sans TC + Noto Serif TC (body reading) */
:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --border: #222;
    --text: #e0e0e0;
    --text-dim: #888;
    --accent: #4fc3f7;            /* UI utility blue */
    --brand: #f97316;             /* RadPulse brand orange */
    --brand-strong: #fb923c;
    --brand-dim: #fdba74;
    --brand-bg: rgba(249,115,22,0.07);
    --brand-edge: rgba(249,115,22,0.28);
    --green: #66bb6a;
    --danger: #f87171;

    /* Typography tokens */
    --font-sans: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-serif: 'Noto Serif TC', Georgia, 'Songti TC', 'PingFang TC', 'Microsoft JhengHei', serif;
    --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

    /* Reading layout */
    --content-width: 68ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.nav { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.nav-inner { max-width: 960px; margin: 0 auto; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 1.5rem; }
.logo { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.nav-link { color: var(--text-dim); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-link.active, .nav-link:hover { color: var(--accent); text-decoration: none; }

/* Main */
.main { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem; }
.footer { text-align: center; padding: 2rem 1rem; color: var(--text-dim); font-size: 0.8rem; border-top: 1px solid var(--border); margin-top: 3rem; }

/* Hero */
.hero { text-align: center; padding: 2rem 0 1.5rem; }
.hero h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.hero p { color: var(--text-dim); }
.stats { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.stat { background: var(--surface); padding: 0.25rem 0.75rem; border-radius: 4px; font-size: 0.8rem; color: var(--text-dim); border: 1px solid var(--border); }

/* Search */
.search-bar { margin: 1rem 0 2rem; display: flex; gap: 0.5rem; }
.search-input { flex: 1; padding: 0.6rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 0.95rem; }
.search-input:focus { outline: none; border-color: var(--accent); }
.btn { padding: 0.6rem 1.2rem; background: var(--accent); color: #000; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.9rem; display: inline-block; }
.btn:hover { opacity: 0.9; text-decoration: none; }

/* Cards */
h1 { margin-bottom: 1rem; }
h2 { margin-bottom: 1rem; font-size: 1.2rem; color: var(--text-dim); }
.article-list { display: flex; flex-direction: column; gap: 0.75rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; transition: border-color 0.15s; }
.card:hover { border-color: #333; }
.card h3 { font-size: 1rem; margin: 0.4rem 0; line-height: 1.4; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.authors { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.25rem; }
.abstract { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }
.date { font-size: 0.75rem; color: var(--text-dim); margin-left: auto; }

/* Badges */
.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 3px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: #fff; }
.badge.arxiv { background: #b71c1c; }
.badge.pubmed { background: #1565c0; }
.badge.rss { background: #e65100; }
.badge.ft { background: var(--green); color: #000; }
.badge.ai { background: var(--accent); color: #fff; }
.badge.sub { background: rgba(255,255,255,0.05); color: var(--text-dim); border: 1px solid var(--border); }
.badge.imp-5 { background: var(--danger); color: #000; }
.badge.imp-4 { background: var(--brand); color: #000; }
.badge.imp-3 { background: #eab308; color: #000; }
.badge.imp-2, .badge.imp-1 { background: var(--border); color: var(--text-dim); }

/* Card — homepage cards showing 中文 hook + preview */
.card { padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 1rem; transition: border-color 150ms; }
.card:hover { border-color: var(--brand-edge); }
.card h3 { font-family: var(--font-sans); font-size: 1.2rem; margin: 0.6rem 0; line-height: 1.4; font-weight: 600; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--brand); text-decoration: none; }
.card-preview { font-family: var(--font-sans); font-size: 0.95rem; line-height: 1.65; color: var(--text-dim); margin: 0.5rem 0; }
.card-original { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); margin: 0.6rem 0 0 0; letter-spacing: 0.05em; }
.card-original-title { font-family: var(--font-sans); font-style: italic; }

/* Article hero image */
.article-hero {
    margin: 0 0 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    background: #000;
    aspect-ratio: 16 / 9;
}
.article-hero img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Article detail */
.article-detail { max-width: 800px; }
.article-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.article-detail h1 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.5rem; }
.article-links { margin: 1rem 0; }
.doi { font-size: 0.75rem; color: var(--text-dim); }
.section { margin: 2rem 0; }
.section h2 { font-size: 1rem; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.abstract-text { line-height: 1.7; }
.fulltext { white-space: pre-wrap; font-size: 0.85rem; line-height: 1.7; max-height: 80vh; overflow-y: auto; padding: 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
details summary { cursor: pointer; color: var(--text-dim); font-size: 0.8rem; margin-bottom: 0.5rem; }

/* ============================================================
   AI 導讀 — Editorial Magazine style (dark)
   Fonts: Noto Serif TC for body prose, Inter for meta/UI
   Reading width capped at 68ch per typography guideline.
   ============================================================ */

.ai-guide {
    margin: 3rem 0;
    padding: 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border);
    padding-top: 2.5rem;
}

/* Kicker row: 極小 meta pill，全大寫 + 字距拉開（editorial 風格） */
.ai-guide-header {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    margin-bottom: 2rem;
    font-family: var(--font-sans);
}
.ai-guide .badge.ai {
    background: var(--brand); color: #000;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.65rem;
}
.ai-guide .pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 0;                  /* 矩形 — editorial feel */
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: transparent;
    border: none;
    border-left: 2px solid var(--border);
    padding-left: 0.75rem;
}
.ai-guide .pill.importance-5 { color: var(--danger); border-left-color: var(--danger); font-weight: 700; }
.ai-guide .pill.importance-4 { color: var(--brand-dim); border-left-color: var(--brand); font-weight: 700; }
.ai-guide .pill.importance-3 { color: #fde047; border-left-color: #eab308; }

/* Hook — the headline */
.ai-guide .summary-zh {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);   /* 28–36px responsive */
    line-height: 1.35;
    color: var(--text);
    margin: 0 0 2.5rem 0;
    font-weight: 600;
    letter-spacing: -0.01em;
    max-width: var(--content-width);
}

/* Key takeaways — pull-out panel */
.ai-guide .takeaways {
    margin: 0 auto 3rem 0;
    padding: 1.5rem 0 1.5rem 1.75rem;
    list-style: none;
    counter-reset: ta;
    display: grid;
    gap: 1rem;
    max-width: var(--content-width);
    border-left: 3px solid var(--brand);
    background: linear-gradient(to right, var(--brand-bg), transparent 60%);
}
.ai-guide .takeaways li {
    position: relative;
    counter-increment: ta;
    font-family: var(--font-sans);
    font-size: 1.15rem;        /* ~18.4px */
    line-height: 1.6;
    font-weight: 500;
    color: var(--text);
    padding-left: 2.4rem;
}
.ai-guide .takeaways li::before {
    content: counter(ta, decimal-leading-zero);
    position: absolute; left: 0; top: 0.1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.05em;
}

/* Long-form content — serif body, 68ch reading width */
.ai-guide .content-zh {
    max-width: var(--content-width);
    font-family: var(--font-serif);
    font-size: 1.25rem;         /* 20px */
    line-height: 1.95;
    color: var(--text);
}
.ai-guide .content-zh h3 {
    font-family: var(--font-sans);
    font-size: 1.35rem;           /* ~21.6px — real section heading, not tiny label */
    margin: 3rem 0 1.25rem 0;
    padding: 0.6rem 0 0.6rem 1rem;
    border: none;
    border-left: 4px solid var(--brand);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.4;
}
.ai-guide .content-zh h3:first-child { margin-top: 0; }

/* Color hierarchy by section position — distinguishes each section visually */
.ai-guide .content-zh h3:nth-of-type(1) { color: var(--brand);       border-left-color: var(--brand); }
.ai-guide .content-zh h3:nth-of-type(2) { color: var(--accent);      border-left-color: var(--accent); }
.ai-guide .content-zh h3:nth-of-type(3) { color: #a78bfa;            border-left-color: #a78bfa; }     /* lavender */
.ai-guide .content-zh h3:nth-of-type(4) { color: var(--green);       border-left-color: var(--green); }
.ai-guide .content-zh h3:nth-of-type(5) { color: var(--brand-dim);   border-left-color: var(--brand-dim); }
.ai-guide .content-zh p {
    font-family: var(--font-serif);
    font-size: 1.25rem;          /* 20px */
    line-height: 1.95;
    margin: 0 0 1.5rem 0;
    color: var(--text);
}
/* Drop cap — only the very first paragraph after the first heading */
.ai-guide .content-zh h3:first-child + p::first-letter {
    font-family: var(--font-serif);
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 0.9;
    float: left;
    padding: 0.35rem 0.6rem 0 0;
    color: var(--brand);
}
.ai-guide .content-zh strong {
    color: var(--brand-dim);
    font-weight: 600;
    background: var(--brand-bg);
    padding: 0.05em 0.25em;
    border-radius: 2px;
}
.ai-guide .content-zh em { color: var(--text-dim); font-style: italic; }
.ai-guide .content-zh ul, .ai-guide .content-zh ol {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.9;
    margin: 0 0 1.5rem 0;
    padding-left: 1.75rem;
}
.ai-guide .content-zh li { margin-bottom: 0.5rem; }

/* Take-home blockquote — prompt now asks for > quote format */
.ai-guide .content-zh blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--brand-dim);
    border: none;
    border-top: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    background: var(--brand-bg);
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0 0 0;
    position: relative;
    max-width: var(--content-width);
}
.ai-guide .content-zh blockquote::before {
    content: "TAKE-HOME";
    position: absolute;
    top: -0.65rem;
    left: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--brand);
    background: var(--bg);
    padding: 0 0.5rem;
}
.ai-guide .content-zh blockquote p {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* Mobile — shrink the hook, keep body ≥16px */
@media (max-width: 640px) {
    .ai-guide { margin: 2rem 0; padding-top: 2rem; }
    .ai-guide .summary-zh { font-size: 1.5rem; }
    .ai-guide .content-zh,
    .ai-guide .content-zh p,
    .ai-guide .content-zh ul,
    .ai-guide .content-zh ol { font-size: 1.1rem; line-height: 1.9; }
    .ai-guide .takeaways { padding-left: 1.25rem; }
    .ai-guide .takeaways li { font-size: 1.05rem; padding-left: 2.1rem; }
    .ai-guide .content-zh h3:first-child + p::first-letter { font-size: 3rem; }
}

/* Respect reduced motion users */
@media (prefers-reduced-motion: reduce) {
    .ai-guide * { transition: none !important; animation: none !important; }
}

/* ============ Charts in article ============ */
.charts-section {
    margin: 3rem 0 0 0;
    padding: 2rem 0 0 0;
    border-top: 1px solid var(--border);
}
.charts-heading {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--brand);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding: 0;
    border: none;
}
.chart-block {
    margin: 0 0 2.5rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    max-width: 100%;
}
.chart-title {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}
.chart-caption {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.75rem;
    font-style: italic;
}
.chart-canvas-wrap {
    position: relative;
    height: 340px;
    width: 100%;
}
.chart-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    margin: 0;
}
.chart-table th {
    text-align: left;
    padding: 0.7rem 0.85rem;
    background: rgba(79,195,247,0.08);
    border-bottom: 2px solid var(--accent);
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.03em;
}
.chart-table td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    line-height: 1.5;
}
.chart-table tr:hover td { background: rgba(255,255,255,0.02); }
.chart-table td:nth-child(1) { font-weight: 500; }
.chart-block .mermaid {
    text-align: center;
    min-height: 200px;
    background: transparent;
    overflow-x: auto;             /* allow wide flowcharts to scroll horizontally on mobile */
    overflow-y: hidden;
    padding-bottom: 0.5rem;
}
.chart-block .mermaid svg {
    max-width: none;              /* do NOT shrink; scroll instead (preserves label sizing) */
    height: auto;
    display: inline-block;
}
.chart-block .mermaid svg text { fill: #e0e0e0; }
.chart-block .mermaid-fallback {
    text-align: left; white-space: pre-wrap; font-family: var(--font-mono);
    font-size: 0.82rem; line-height: 1.6; color: var(--text-dim);
    background: rgba(0,0,0,0.4); padding: 0.9rem 1rem; border-radius: 4px;
    border: 1px dashed var(--border); margin: 0;
}
.chart-block .mermaid-fallback-note {
    font-family: var(--font-sans); font-size: 0.78rem; color: var(--danger);
    margin-top: 0.5rem; font-style: italic;
}
@media (max-width: 640px) {
    .chart-block { padding: 1rem; }
    .chart-canvas-wrap { height: 280px; }
    .chart-table { font-size: 0.82rem; }
    .chart-table th, .chart-table td { padding: 0.5rem 0.5rem; }
}

/* ============ Handover page ============ */
.handover-body { max-width: 960px; font-family: var(--font-sans); }
.handover-body h1 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--brand); }
.handover-body h2 { font-size: 1.15rem; margin: 1.75rem 0 0.75rem 0; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 0.4rem; }
.handover-body h2:first-child { margin-top: 0; }
.handover-body p { margin-bottom: 0.5rem; line-height: 1.7; }
.handover-body ul { list-style: none; padding-left: 0; margin: 0.5rem 0 1rem 0; }
.handover-body ul li { padding: 0.3rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.handover-body strong { color: var(--brand-dim); }
.handover-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.85rem; }
.handover-body th { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--border); color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }
.handover-body td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.handover-body td:nth-child(1) { color: var(--text-dim); font-family: var(--font-mono); white-space: nowrap; }
.handover-body code { font-family: var(--font-mono); background: rgba(255,255,255,0.04); padding: 0.1em 0.35em; border-radius: 3px; color: var(--brand-dim); font-size: 0.9em; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; justify-content: center; }
.result-count { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem; }
.empty { color: var(--text-dim); text-align: center; padding: 3rem 0; }

/* Responsive */
@media (max-width: 640px) {
    .nav-inner { flex-direction: column; gap: 0.5rem; }
    .hero h1 { font-size: 1.5rem; }
    .stats { flex-direction: column; align-items: center; }
}

/* === 2026-04-20 總編輯改造：本週精選 / 今日新增 / 相關推薦 === */
.section-title { font-size: 1.35rem; margin: 2rem 0 0.3rem; letter-spacing: 0.5px; }
.section-blurb { color: var(--text-dim, #999); margin: 0 0 1rem; font-size: 0.88rem; }

.section-weekly {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.06), rgba(249, 115, 22, 0.02));
    border-left: 3px solid #f97316;
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    border-radius: 4px;
}
.section-weekly .section-title { color: #f97316; margin-top: 0; }

.card-featured {
    position: relative;
    border-left: 3px solid #fbbf24;
}
.card-featured::before {
    content: '精選';
    position: absolute;
    top: -8px; right: 12px;
    background: #fbbf24; color: #1a1a1a;
    font-size: 0.72rem; font-weight: 700;
    padding: 2px 8px; border-radius: 3px;
    letter-spacing: 1px;
}

.badge.imp-5 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a1a !important;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}
.badge.imp-4 {
    background: #f97316;
    color: #fff !important;
    font-weight: 600;
}
.badge.imp-3 { background: #64748b; color: #fff; }

.section-today .card { padding-top: 0.6rem; padding-bottom: 0.6rem; }

.related-section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #333; }
.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.8rem;
    margin-top: 0.8rem;
}
.related-card {
    display: block;
    background: rgba(255,255,255,0.02);
    border: 1px solid #2a2a2a;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.related-card:hover { border-color: #f97316; transform: translateY(-2px); }
.related-card h3 { font-size: 0.98rem; margin: 0.5rem 0 0; line-height: 1.5; color: #e8e8e8; }

/* === 次專科 facet === */
.section-facets { margin: 1.5rem 0 2rem; }
.facet-grid {
    display: flex; flex-wrap: wrap; gap: 0.55rem;
    margin-top: 0.6rem;
}
.facet-chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    border-radius: 18px;
    text-decoration: none;
    color: #e5e5e5;
    font-size: 0.92rem;
    transition: all 0.15s ease;
}
.facet-chip:hover {
    border-color: #f97316;
    background: rgba(249,115,22,0.08);
    color: #fff;
    transform: translateY(-1px);
}
.facet-label { font-weight: 500; }
.facet-count {
    background: #1f1f1f;
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 0.78rem;
    color: #999;
    font-variant-numeric: tabular-nums;
}
.facet-chip:hover .facet-count { background: #f97316; color: #fff; }

/* badge 變連結 */
.badge-link { text-decoration: none; cursor: pointer; transition: filter 0.12s ease; }
.badge-link:hover { filter: brightness(1.2); text-decoration: underline; }

/* === Weekly Digest === */
.weekly-section { margin: 2.5rem 0; padding-top: 1rem; border-top: 2px solid #2a2a2a; }
.weekly-section:first-of-type { border-top: none; padding-top: 0; }
.weekly-cat-title {
    font-size: 1.4rem;
    color: #f97316;
    margin: 0 0 0.25rem;
    letter-spacing: 0.5px;
}
.weekly-cat-blurb {
    color: var(--text-dim, #888);
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.5rem 0; }
.dash-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1rem 1.2rem;
}
.dash-card.dash-wide { grid-column: 1 / -1; }
.dash-card h3 { margin: 0 0 0.8rem; font-size: 1.05rem; color: #e5e5e5; }
.dash-card .chart-canvas-wrap { height: 280px; }
@media (max-width: 720px) { .dash-grid { grid-template-columns: 1fr; } }

/* Weekly intro */
.weekly-intro-section {
    background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(249,115,22,0.03));
    border-left: 3px solid #f97316;
    padding: 1.2rem 1.5rem;
    border-radius: 6px;
    margin: 1.5rem 0 2.5rem;
}
.weekly-intro-title {
    font-size: 1.15rem;
    color: #f97316;
    margin: 0 0 0.8rem;
}
.weekly-intro-body {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.02rem;
    line-height: 1.85;
    color: #e8e8e8;
    margin: 0;
    white-space: pre-wrap;
}

/* 引用複製 */
.btn-cite { position: relative; cursor: pointer; border: 1px solid #444; background: #1a1a1a; color: #e5e5e5; }
.btn-cite:hover { border-color: #f97316; color: #f97316; }
.btn-cite.copied { background: #16a34a; color: #fff; border-color: #16a34a; }
.cite-menu {
    position: absolute;
    background: #242424;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 0.4rem;
    display: flex; flex-direction: column; gap: 2px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    z-index: 100;
    min-width: 160px;
}
.cite-menu[hidden] { display: none; }
.cite-menu button {
    background: transparent; color: #ddd; border: none;
    padding: 0.5rem 0.8rem; text-align: left; cursor: pointer;
    border-radius: 4px; font-size: 0.9rem;
}
.cite-menu button:hover { background: #333; color: #f97316; }

.rss-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #f97316;
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 14px;
    transition: all 0.15s ease;
}
.rss-link:hover { background: rgba(249,115,22,0.1); border-color: #f97316; }
