/* Report layout C — base structure shared by its pages. */
:root {
    --bg-page: #f4f5f7;
    --bg-card: #FFFFFF;
    --text-main: #0f1115;
    --text-sub: #555d6b;
    --text-mute: #7d8491;
    --border-line: #e3e5e9;
    --color-d: #0f1115;
    --color-t: #2e4be0;
    --color-r: #13894f;
    --color-blue: #2e4be0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--bg-page);
    color: var(--text-main);
    font-family: Inter, 'Segoe UI', Helvetica, Arial, sans-serif;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    line-height: 1.5;
}
.wrap {
    max-width: 1170px;
    margin: 32px auto 80px;
    padding: 0 16px;
}
.back-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 20px;
    background: #FFFFFF;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-line);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.15s ease;
}
.back-nav:hover {
    background: #eef1ff;
    border-color: #d5dcff;
}

/* HERO EXECUTIVE BANNER */
.hero-banner {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-line);
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}
.hero-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}
.brand-block {
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-ico {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #f6f7f9;
    border: 1px solid var(--border-line);
    padding: 4px;
}
.domain-h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}
.chips-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    flex-wrap: wrap;
}
.chip {
    padding: 3px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.chip-rank { background: #eef1ff; color: var(--color-blue); border: 1px solid #d5dcff; }
.chip-cat { background: #f6f7f9; color: var(--text-sub); border: 1px solid #e3e5e9; }
.chip-period { color: var(--text-mute); font-size: 12px; font-weight: 500; }

/* 3-PILLAR QUICK METRICS BAR */
.summary-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    border-top: 1px solid var(--border-line);
    padding-top: 20px;
}
.metric-col { padding: 2px 0; }
.metric-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-mute);
    margin-bottom: 4px;
}
.metric-val {
    font-size: 24px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

/* EDITORIAL CARD */
.editorial-card {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-line);
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}
.editorial-header {
    margin-bottom: 16px;
}
.ed-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-blue);
    background: #eef1ff;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;
    border: 1px solid #d5dcff;
}
.ed-title {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-main);
    margin-bottom: 4px;
}
.ed-subtitle {
    font-size: 13.5px;
    color: var(--text-sub);
}
.editorial-body p {
    font-size: 14.5px;
    line-height: 1.68;
    color: #2b2f36;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-line);
}
.matrix-box {
    background: #f6f7f9;
    border: 1px solid var(--border-line);
    border-radius: 8px;
    padding: 12px 16px;
}
.m-lbl {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-mute);
    display: block;
    margin-bottom: 4px;
}
.m-val {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* D · T · R SECTIONS */
.dtr-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.pillar-card {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-line);
    padding: 30px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    position: relative;
}
.pillar-card.pillar-d { border-left: 4px solid var(--color-d); }
.pillar-card.pillar-t { border-left: 4px solid var(--color-t); }
.pillar-card.pillar-r { border-left: 4px solid var(--color-r); }

.pillar-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-line);
}
.pillar-pill {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pp-d { background: var(--color-d); }
.pp-t { background: var(--color-t); }
.pp-r { background: var(--color-r); }

.pillar-title-block h2 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-main);
}
.pillar-title-block p {
    color: var(--text-sub);
    font-size: 13px;
    margin-top: 2px;
}

/* SUB-GRID */
.subgrid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}
.box-subtle {
    background: #f6f7f9;
    border: 1px solid var(--border-line);
    border-radius: 8px;
    padding: 18px 20px;
}
.box-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-mute); margin-bottom: 4px; }
.box-val { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.box-desc { font-size: 13px; color: var(--text-sub); line-height: 1.4; }


/* CHART & MAP CONTAINERS */
.chart-box {
    height: 310px;
    position: relative;
    margin-top: 14px;
}
.map-box {
    height: 330px;
    width: 100%;
    position: relative;
    background: #f6f7f9;
    border: 1px solid var(--border-line);
    border-radius: 8px;
    padding: 10px;
    margin-top: 12px;
}

/* CLEAN DATA TABLES */
.table-responsive {
    overflow-x: auto;
    margin-top: 14px;
}
.clean-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}
.clean-table th {
    background: #f6f7f9;
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-mute);
    border-bottom: 1px solid var(--border-line);
}
.clean-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f6f7f9;
}
.clean-table tr:hover td {
    background: #f6f7f9;
}
.progress-track {
    width: 80px;
    height: 6px;
    background: #e3e5e9;
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}
.progress-fill {
    height: 100%;
    background: var(--color-t);
    border-radius: 4px;
}
.serp-badge {
    background: #eef1ff;
    color: #2338c4;
    border: 1px solid #d5dcff;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11.5px;
}
.comp-chip {
    display: inline-block;
    background: #f6f7f9;
    color: #0f1115;
    font-weight: 600;
    font-size: 12.5px;
    padding: 5px 12px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #CBD5E1;
    margin: 3px;
    transition: all 0.15s ease;
}
.comp-chip:hover {
    background: #eef1ff;
    color: #2338c4;
    border-color: #d5dcff;
}
