/* Research at a glance: the colours and type of ece.auth.gr (Manrope, dark teal, light greys). */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-greek.woff") format("woff");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal-950: #0a3238;
  --teal-900: #0e424a;
  --teal-800: #14616d;
  --teal-700: #1f7884;
  --teal-500: #4e9da8;
  --teal-300: #8fc3ca;
  --teal-200: #b9dadf;
  --teal-100: #dcedef;
  --blue: #0b4f9c;
  --amber: #c27c0e;
  --slate: #3c4a4d;
  --ink: #111111;
  --text: #333333;
  --muted: #5b6a6d;
  --line: #e1e8ea;
  --land: #e6ecee;
  --surface: #f4f7f8;
  --white: #ffffff;
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
}
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.2; }
a { color: var(--teal-800); }
figure { margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- header */
.hero {
  color: var(--white);
  background:
    radial-gradient(60% 80% at 82% 78%, rgba(20, 97, 109, 0.95) 0%, rgba(20, 97, 109, 0) 70%),
    linear-gradient(160deg, var(--teal-950) 0%, var(--teal-900) 100%);
  padding: 22px 0 30px;
}
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.78); }
.lang-switch { display: flex; flex: none; padding: 3px; border-radius: 100px; background: rgba(255, 255, 255, 0.12); }
.lang-switch a {
  padding: 4px 12px; border-radius: 100px; font-size: 13px; font-weight: 800;
  color: rgba(255, 255, 255, 0.85); text-decoration: none;
}
.lang-switch a[aria-current] { background: var(--white); color: var(--teal-900); }
.lang-switch a:not([aria-current]):hover { background: rgba(255, 255, 255, 0.18); }
.hero-title { margin: 26px 0 26px; }
.hero h1 { color: var(--white); font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -0.01em; }
.lead { margin: 8px 0 0; font-size: clamp(16px, 2vw, 19px); color: rgba(255, 255, 255, 0.85); }
.kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
}
.kpi-icon {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); color: var(--teal-200);
}
.kpi-icon svg { width: 24px; height: 24px; }
.kpi-value { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.05; color: var(--white); }
.kpi-label { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.embed .hero-title, .embed .eyebrow { display: none; }
.embed .hero { padding-top: 14px; }
.embed .hero-bar { justify-content: flex-end; margin-bottom: 14px; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 24px; margin-bottom: 8px; }
.span-12 { grid-column: span 12; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.col-stack { display: flex; flex-direction: column; gap: 20px; }
.col-stack > .card { flex: 1 1 auto; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 20px; min-width: 0;
  box-shadow: 0 1px 2px rgba(14, 66, 74, 0.04), 0 10px 30px rgba(14, 66, 74, 0.05);
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card h2 { font-size: 22px; font-weight: 800; }
.card h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.more { flex: none; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--teal-800); }
.more:hover { text-decoration: underline; }
.fig-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.split { display: grid; gap: 24px; align-items: start; }
.split-output { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.split-geo { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
.split-people { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; }

/* ---------------------------------------------------------------- numbers */
.stats { display: grid; gap: 18px; }
.stats-stack { align-content: start; padding-top: 30px; }
.stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.stats-three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.stat { display: flex; flex-direction: column; min-width: 0; }
.stat-value { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; line-height: 1.05; color: var(--teal-800); letter-spacing: -0.01em; }
.stat-label { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.35; }
.stat-sub { margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.stat-icon { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; margin-top: 18px; }
.stat-icon .icon {
  grid-row: span 3; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-800);
}
.stat-icon .icon svg { width: 28px; height: 28px; }
.stat-icon > span:not(.icon) { grid-column: 2; }

.trend {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 16px; padding: 12px 14px;
  border-radius: 12px; background: var(--surface); font-size: 14px; color: var(--muted);
}
.trend-label { flex-basis: 100%; font-weight: 700; color: var(--text); }
.trend b { font-size: 22px; font-weight: 800; color: var(--teal-800); }
.trend-arrow { font-size: 20px; font-weight: 800; color: var(--teal-500); }

/* ---------------------------------------------------------------- legends and bars */
.legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend-title { font-weight: 700; color: var(--muted); }
.legend-col { display: grid; gap: 8px; margin: 0; }
.legend-col li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 9px; align-items: center; font-size: 14px; }
.legend-value { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; background: var(--line); }

.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 10.5em) minmax(0, 1fr) 3.4em; gap: 10px; align-items: center; font-size: 14px; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.hbar-track { position: relative; height: 10px; border-radius: 5px; background: var(--surface); }
.hbar-fill { display: block; height: 100%; border-radius: 5px; background: var(--teal-800); }
.hbar-value { text-align: right; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

.topic-group { margin-top: 14px; }
.topic-group h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.topic-group h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.field-energy h3 { color: var(--amber); }
.field-comms h3 { color: var(--blue); }
.field-computing h3 { color: var(--teal-800); }
.field-energy .hbar-fill { background: var(--amber); }
.field-comms .hbar-fill { background: var(--blue); }
.field-computing .hbar-fill { background: var(--teal-800); }
.topic-bars li { grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 3.4em 5.6em; }
.topic-bars .hbar-label { white-space: normal; line-height: 1.3; }
.hbar-tick { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); opacity: 0.55; }
.change { font-size: 12.5px; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.change.up { color: var(--teal-700); }
.change.down { color: var(--muted); }
.change.flat { color: var(--muted); }
.highlight .hbar-label { font-weight: 800; color: var(--ink); }
.badge {
  display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 100px; vertical-align: 1px;
  font-size: 11px; font-weight: 800; color: var(--white); background: var(--teal-800); white-space: nowrap;
}

.stack { display: flex; gap: 2px; height: 40px; border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.seg {
  min-width: 0; display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap;
  font-size: 13px; font-weight: 800; color: var(--white);
}
.p1, .swatch.p1 { background: var(--teal-800); }
.p2, .swatch.p2 { background: var(--blue); }
.p3, .swatch.p3 { background: var(--teal-500); }
.p4, .swatch.p4 { background: var(--slate); }
.p5, .swatch.p5 { background: var(--teal-300); }
.p6, .swatch.p6 { background: #7aa7d9; }
.p-other, .swatch.p-other { background: #c5d0d3; color: var(--ink); }
.p-unknown, .swatch.p-unknown { background: repeating-linear-gradient(45deg, #ffffff 0 3px, #c5d0d3 3px 5px); color: var(--ink); }

/* ---------------------------------------------------------------- charts */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: inherit; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: #b9c5c8; stroke-width: 1; }
.chart .tick { font-size: 12px; fill: var(--muted); font-weight: 600; }
.chart-years .intl, .swatch.intl { fill: var(--teal-800); background: var(--teal-800); }
.chart-years .rest { fill: var(--teal-200); }
.chart-years .partial rect { opacity: 0.45; }
.chart-years .bar:hover rect { filter: brightness(0.9); }

.donut-body { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 22px; align-items: center; }
.ring-track { stroke: var(--land); }
.seg-intl, .swatch.seg-intl { stroke: var(--teal-800); background: var(--teal-800); }
.seg-national, .swatch.seg-national { stroke: var(--teal-500); background: var(--teal-500); }
.seg-single, .swatch.seg-single { stroke: var(--teal-200); background: var(--teal-200); }
.donut-value { font-size: 34px; font-weight: 800; fill: var(--ink); }
.donut-caption { font-size: 14px; font-weight: 700; fill: var(--muted); }

.rings { display: grid; gap: 16px; }
.ring-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; }
.ring-text { display: flex; flex-direction: column; }
.ring-text .stat-label { margin-top: 0; font-size: 15px; }
.chart-ring .ring-fill { stroke: var(--teal-800); }
.chart-ring.ring-funded .ring-fill { stroke: var(--blue); }
.ring-value { font-size: 22px; font-weight: 800; fill: var(--ink); }

.chart-concentration .bar-label { font-size: 15px; font-weight: 700; fill: var(--text); }
.chart-concentration .top { fill: var(--teal-800); }
.chart-concentration .rest { fill: var(--teal-100); }
.chart-concentration .funnel { fill: var(--teal-200); opacity: 0.6; }
.chart-concentration .in-top { font-size: 17px; font-weight: 800; fill: var(--white); }
.chart-concentration .in-rest { font-size: 15px; font-weight: 700; fill: var(--teal-900); }

.chart-people { max-width: 420px; }
.chart-people .light { fill: var(--teal-200); }
.chart-people .dark { fill: var(--teal-800); }
.chart-people .row-label { font-size: 13px; font-weight: 700; fill: var(--muted); }
.chart-people .row-value { font-size: 18px; font-weight: 800; fill: var(--ink); }

.map-wrap { position: relative; }
.chart-map path { fill: var(--land); stroke: var(--white); stroke-width: 0.6; stroke-linejoin: round; }
.chart-map .partners path, .chart-map .dot { cursor: default; }
.chart-map .partners path:hover, .chart-map .dot:hover { stroke: var(--ink); stroke-width: 1.2; }
.chart-map .dot { stroke: var(--white); stroke-width: 1; }
.c0, .swatch.c0 { fill: #cfe6e9; background: #cfe6e9; }
.c1, .swatch.c1 { fill: #93c6cd; background: #93c6cd; }
.c2, .swatch.c2 { fill: var(--teal-500); background: var(--teal-500); }
.c3, .swatch.c3 { fill: var(--teal-700); background: var(--teal-700); }
.c4, .swatch.c4 { fill: var(--teal-900); background: var(--teal-900); }
.chart-map path.c0 { fill: #cfe6e9; }
.chart-map path.c1 { fill: #93c6cd; }
.chart-map path.c2 { fill: var(--teal-500); }
.chart-map path.c3 { fill: var(--teal-700); }
.chart-map path.c4 { fill: var(--teal-900); }
.chart-map path.home, .swatch.home { fill: var(--amber); background: var(--amber); }
.map-tip {
  position: absolute; z-index: 2; pointer-events: none; max-width: 240px; padding: 6px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: var(--ink); background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(14, 66, 74, 0.16);
}
.top-list h3 { margin-bottom: 12px; }
.top-list .hbars li { grid-template-columns: minmax(0, 11.5em) minmax(0, 1fr) 3em; }
.top-list .hbar-label { white-space: normal; line-height: 1.25; }

/* ---------------------------------------------------------------- the analytic report */
.btn {
  display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 100px;
  font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.btn span { margin-left: 7px; }
.btn-hero { margin-top: 18px; background: var(--white); color: var(--teal-900); }
.btn-hero:hover { background: var(--teal-100); }
.btn-primary { margin-top: 16px; background: var(--teal-800); color: var(--white); }
.btn-primary:hover { background: var(--teal-900); }
.report { background: linear-gradient(135deg, var(--teal-100) 0%, var(--white) 65%); border-color: var(--teal-200); }
.report-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.report-text p { margin: 10px 0 0; font-size: 15px; color: var(--text); max-width: 44em; }
.report-pages h3 { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.report-pages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.report-pages a {
  display: inline-block; padding: 6px 13px; border-radius: 100px; font-size: 13.5px; font-weight: 700;
  color: var(--teal-800); background: var(--white); border: 1px solid var(--teal-200); text-decoration: none;
}
.report-pages a:hover { color: var(--white); background: var(--teal-800); border-color: var(--teal-800); }

/* ---------------------------------------------------------------- footer */
.footer { padding: 18px 0 32px; font-size: 13px; color: var(--muted); }
.footer p { margin: 6px 0; max-width: 900px; }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 960px) {
  .span-7, .span-6, .span-5 { grid-column: span 12; }
  .split-output, .split-geo, .split-people, .report-body { grid-template-columns: minmax(0, 1fr); }
  .stats-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; column-gap: 10px; }
  .kpi-icon { width: 36px; height: 36px; }
  .kpi-icon svg { width: 20px; height: 20px; }
  .grid { gap: 14px; margin-top: 16px; }
  .card { padding: 18px 16px 16px; }
  .stats-row, .stats-three { grid-template-columns: minmax(0, 1fr); }
  .donut-body { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .donut-body .chart-donut { max-width: 220px; }
  .donut-body .legend-col { width: 100%; }
  .topic-bars li { grid-template-columns: minmax(0, 1fr) 3.4em 5.6em; row-gap: 4px; }
  .topic-bars .hbar-label { grid-column: 1 / -1; }
  .chart-years .tick { font-size: 22px; }
  .chart-years .tick.minor { display: none; }
  .chart-concentration .bar-label, .chart-concentration .in-rest { font-size: 24px; }
  .chart-concentration .in-top { font-size: 26px; }
}
@media (max-width: 420px) {
  .hbars li { grid-template-columns: minmax(0, 8em) minmax(0, 1fr) 3em; gap: 8px; font-size: 13px; }
  .stats-stack { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  body { background: var(--white); }
  .hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { box-shadow: none; break-inside: avoid; }
  .lang-switch, .more { display: none; }
}
