.ph-citation-page {
    --ph-primary: #1d4ed8;
    --ph-primary-soft: #dbeafe;
    --ph-bg: #f8fafc;
    --ph-card: #ffffff;
    --ph-text: #334155;
    --ph-muted: #64748b;
    --ph-border: #e2e8f0;
    --ph-success: #16a34a;
    background: var(--ph-bg);
    color: var(--ph-text);
    padding: 140px 0 80px;
    font-family: inherit;
}
.ph-citation-page .ph-container { max-width: 1300px; margin: 0 auto; padding: 0 2px; }
.ph-citation-page section { margin-bottom: 48px; }
.ph-citation-page .ph-section-head { margin-bottom: 20px; }
.ph-citation-page .ph-section-head h2 { font-size: 26px; font-weight: 700; color: #0f172a; margin: 0 0 6px; }
.ph-citation-page .ph-section-head p { color: var(--ph-muted); margin: 0; font-size: 14px; }

/* Hero */
.ph-citation-hero {
    background: linear-gradient(135deg, var(--ph-primary) 0%, #2563eb 100%);
    color: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}
.ph-citation-hero::after {
    content: ""; position: absolute; right: -80px; top: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.ph-citation-hero .ph-hero-tag {
    display: inline-block; background: rgba(255,255,255,0.18);
    padding: 6px 14px; border-radius: 999px; font-size: 12px;
    letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 14px;
}
.ph-citation-hero h1 { font-size: 34px; font-weight: 700; margin: 0 0 10px; color: #ffffff; }
.ph-citation-hero p { max-width: 640px; margin: 0 0 28px; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, 0.92); opacity: 1; }
.ph-citation-hero .ph-hero-tag { color: #ffffff; }
.ph-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 720px; position: relative; z-index: 1; }
.ph-hero-stat .num { font-size: 32px; font-weight: 700; color: #ffffff; }
.ph-hero-stat .lbl { font-size: 13px; color: rgba(255, 255, 255, 0.85); opacity: 1; }
.ph-hero-meta { margin-top: 22px; font-size: 12px; color: rgba(255, 255, 255, 0.78); opacity: 1; }

/* Insights */
.ph-insights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ph-insight-card {
    background: var(--ph-card); border: 1px solid var(--ph-border);
    border-radius: 14px; padding: 20px; transition: transform .2s, box-shadow .2s;
}
.ph-insight-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,23,42,0.08); }
.ph-insight-card .ic-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--ph-primary-soft); color: var(--ph-primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px; font-size: 16px;
}
.ph-insight-card .ic-label { font-size: 12px; color: var(--ph-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.ph-insight-card .ic-title { font-size: 15px; font-weight: 600; color: #0f172a; margin: 0 0 8px; line-height: 1.4; }
.ph-insight-card .ic-meta { font-size: 12px; color: var(--ph-muted); }
.ph-insight-card .ic-meta strong { color: var(--ph-success); }

/* KPI */
.ph-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ph-kpi-card { background: var(--ph-card); border: 1px solid var(--ph-border); border-radius: 14px; padding: 22px; }
.ph-kpi-card .kp-label { font-size: 13px; color: var(--ph-muted); margin-bottom: 8px; }
.ph-kpi-card .kp-value { font-size: 30px; font-weight: 700; color: #0f172a; line-height: 1; }
.ph-kpi-card .kp-delta { display: inline-block; margin-top: 12px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #dcfce7; color: var(--ph-success); font-weight: 600; }
.ph-kpi-card .kp-delta.down { background: #fee2e2; color: #dc2626; }

/* Charts */
.ph-charts-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.ph-chart-card { background: var(--ph-card); border: 1px solid var(--ph-border); border-radius: 14px; padding: 22px; }
.ph-chart-card h4 { font-size: 16px; font-weight: 600; margin: 0 0 4px; color: #0f172a; }
.ph-chart-card .ch-sub { font-size: 12px; color: var(--ph-muted); margin: 0 0 16px; }
.ph-chart-card .ch-canvas { position: relative; height: 280px; }
.ph-charts-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

/* Top Articles */
.ph-top-articles { background: var(--ph-card); border: 1px solid var(--ph-border); border-radius: 14px; padding: 8px 0; }
.ph-article-row { display: grid; grid-template-columns: 50px 1fr 90px 110px 110px; gap: 16px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--ph-border); }
.ph-article-row:last-child { border-bottom: 0; }
.ph-article-row .rank { width: 36px; height: 36px; border-radius: 10px; background: var(--ph-primary-soft); color: var(--ph-primary); display:flex; align-items:center; justify-content:center; font-weight: 700; }
.ph-article-row .title { font-size: 14px; font-weight: 600; color: #0f172a; margin: 0 0 4px; line-height: 1.4; }
.ph-article-row .title a { color: inherit; text-decoration: none; }
.ph-article-row .title a:hover { color: var(--ph-primary); text-decoration: underline; }
.ph-article-row .meta { font-size: 12px; color: var(--ph-muted); margin: 0; }
.ph-article-row .meta + .meta { margin-top: 2px; }
.ph-article-row .num-cell { text-align: right; }
.ph-article-row .num-cell .n { font-size: 16px; font-weight: 700; color: #0f172a; }
.ph-article-row .num-cell .l { font-size: 11px; color: var(--ph-muted); text-transform: uppercase; letter-spacing: .5px; }
.ph-articles-head { display: grid; grid-template-columns: 50px 1fr 90px 110px 110px; gap: 16px; padding: 14px 24px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ph-muted); border-bottom: 1px solid var(--ph-border); }
.ph-articles-head .num-cell { text-align: right; }

/* Journal Performance */
.ph-table-card { background: var(--ph-card); border: 1px solid var(--ph-border); border-radius: 14px; overflow: hidden; }
.ph-table-toolbar { display:flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--ph-border); gap: 12px; flex-wrap: wrap; }
.ph-table-toolbar input { border: 1px solid var(--ph-border); border-radius: 8px; padding: 8px 12px; font-size: 13px; width: 240px; outline: none; }
.ph-table-toolbar input:focus { border-color: var(--ph-primary); }
.ph-table-toolbar .filters { display: flex; gap: 8px; }
.ph-table-toolbar .filters button { background: #fff; border: 1px solid var(--ph-border); border-radius: 8px; padding: 7px 14px; font-size: 12px; cursor: pointer; color: var(--ph-text); }
.ph-table-toolbar .filters button.active { background: var(--ph-primary); border-color: var(--ph-primary); color: #fff; }
.ph-journal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ph-journal-table th { text-align: left; padding: 14px 24px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ph-muted); background: #f8fafc; font-weight: 600; }
.ph-journal-table td { padding: 16px 24px; border-top: 1px solid var(--ph-border); }
.ph-journal-table tr:hover td { background: #f8fafc; }
.ph-journal-table .j-name { font-weight: 600; color: #0f172a; }
.ph-journal-table .j-tags { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.ph-journal-table .tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: var(--ph-muted); }
.ph-journal-table .pos { color: var(--ph-success); font-weight: 600; }
.ph-journal-table .neg { color: #dc2626; font-weight: 600; }
.ph-journal-table .status { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: #dcfce7; color: var(--ph-success); font-weight: 600; }

/* Methodology */
.ph-methodology { background: var(--ph-card); border: 1px solid var(--ph-border); border-radius: 14px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.ph-methodology h5 { font-size: 14px; font-weight: 600; color: #0f172a; margin: 0 0 8px; }
.ph-methodology p { font-size: 13px; color: var(--ph-muted); margin: 0; line-height: 1.6; }

@media (max-width: 1024px) {
    .ph-insights-grid, .ph-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .ph-charts-grid, .ph-charts-secondary { grid-template-columns: 1fr; }
    .ph-methodology { grid-template-columns: 1fr; }
    .ph-articles-head { display: none; }
    .ph-article-row { grid-template-columns: 50px 1fr; }
    .ph-article-row .num-cell, .ph-article-row .journal-cell { display:none; }
}
@media (max-width: 640px) {
    .ph-insights-grid, .ph-kpi-grid { grid-template-columns: 1fr; }
    .ph-citation-hero { padding: 32px 24px; }
    .ph-citation-hero h1 { font-size: 26px; }
    .ph-hero-stats { grid-template-columns: 1fr 1fr; }
    .ph-journal-table { font-size: 12px; }
    .ph-journal-table th, .ph-journal-table td { padding: 12px; }
}
