@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;650;700;750&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap');

/* PCPI · Greece. A white, typographic academic report. */
:root {
  color-scheme: light;
  --page: #ffffff;
  --ink: #202832;
  --ink-soft: #3b4652;
  --muted: #65717c;
  --subtle: #8b929b;
  --navy: #29465d;
  --navy-dark: #1d3448;
  --green: #276749;
  --line: #e2e6e9;
  --line-strong: #d2d9df;
  --panel: #f8fafb;
  --accent-tint: #f3faf5;
  --serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --math: 'STIX Two Math', 'Cambria Math', 'Latin Modern Math', 'DejaVu Math TeX Gyre', serif;
  --content-width: 100%;
  --paragraph-width: 100%;
  --navigation-height: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navigation-height) + 34px); }
body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #e7edf2; color: #142b41; }
a { color: var(--navy); text-underline-offset: .16em; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, summary:focus-visible,
.table-scroll:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 2px; }
strong { font-weight: 650; }
em { font-style: italic; }
img, svg { max-width: 100%; }
.sr-only {
  position: absolute!important; width: 1px!important; height: 1px!important;
  padding: 0!important; overflow: hidden!important; clip: rect(0,0,0,0)!important;
  white-space: nowrap!important; border: 0!important;
}
.skip-link {
  position: absolute; z-index: 999; left: 16px; top: 12px;
  transform: translateY(-200%); font: 600 14px var(--sans);
  background: var(--navy-dark); color: #fff; padding: 11px 16px;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* Cover and introductory statement */
.report-header { background: #fff; }
.masthead-inner {
  width: min(var(--content-width), calc(100% - 72px));
  margin: 0 auto; padding: clamp(74px, 9vw, 120px) 0 76px;
}
.issue-line, .part-label {
  font: 650 11px/1.55 var(--sans); letter-spacing: .17em;
  text-transform: uppercase; color: var(--green);
}
.issue-line { margin: 0 0 24px; text-align: center; }
h1, h2, h3, h4, h5, h6 { font-family: var(--sans); text-wrap: balance; }
/* Center all heading levels, not only H1 and H2. */
h1, h2, h3, h4, h5, h6 { text-align: center; }
#report-title {
  margin: 0 auto; max-width: none; font-size: clamp(42px, 6.1vw, 80px);
  line-height: 1.085; letter-spacing: -.055em; font-weight: 650;
  color: var(--navy-dark);
}
.report-subtitle {
  font: 550 clamp(20px, 2.55vw, 29px)/1.36 var(--sans);
  letter-spacing: -.035em; color: var(--ink-soft);
  max-width: none; margin: 30px auto 0; text-align: center;
}
.report-deck {
  max-width: none; margin: 17px auto 32px; text-align: center;
  font: 500 clamp(17px, 2vw, 21px)/1.5 var(--sans); color: var(--green);
}
.report-lede {
  max-width: none; margin: 34px 0 0; padding: 25px 0 0;
  border-top: 1px solid var(--line-strong);
  font-size: 18px; line-height: 1.75; color: var(--ink-soft);
}
.report-lede strong { font-weight: 500; }

/* Horizontal, continuously accessible navigation */
.sticky-navigation {
  position: sticky; top: 0; z-index: 100;
  width: 100%; height: var(--navigation-height);
  background: rgba(255,255,255,.975);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 3px 16px rgba(20,45,67,.035);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.navigation-inner {
  width: min(var(--content-width), calc(100% - 72px)); margin: 0 auto;
  height: 100%; display: flex; align-items: center; gap: 38px;
}
.navigation-brand {
  text-decoration: none; letter-spacing: -.065em; font: 750 23px/1 var(--sans);
  color: var(--navy-dark); flex: 0 0 auto;
}
.navigation-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 7px; align-items: stretch; height: 100%; }
.navigation-list li { display: flex; align-items: stretch; }
.navigation-list a {
  display: flex; align-items: center; padding: 2px 14px 0;
  border-bottom: 3px solid transparent; color: #52606e;
  text-decoration: none; white-space: nowrap;
  font: 550 12.5px/1.25 var(--sans); transition: color 140ms ease, border-color 140ms ease;
}
.navigation-list a:hover { color: var(--navy-dark); }
.navigation-list a.is-active, .navigation-list a[aria-current='location'] {
  color: var(--green); border-bottom-color: var(--green);
}
.mobile-menu { display: none; }

/* Semantic publication structure */
.report-main { width: min(var(--content-width), calc(100% - 72px)); margin: 0 auto; padding: 74px 0 70px; }
.report-part { margin: 0 0 116px; }
.report-part + .report-part { border-top: 1px solid var(--line-strong); padding-top: 80px; }
.part-label { margin: 0 0 31px; text-align: center; }
.report-section { min-width: 0; }
.report-section--depth-2 { margin: 0 0 65px; }
.report-section--depth-3 { margin: 57px 0 0; }
.report-section--depth-4 { margin: 35px 0 0; }
.section-heading { color: var(--navy-dark); margin: 0; }
h2.section-heading {
  font-size: clamp(29px, 3.7vw, 47px); font-weight: 650;
  line-height: 1.23; letter-spacing: -.045em;
  max-width: none; padding: 0 0 18px; border-bottom: 1px solid var(--line-strong);
  margin-bottom: 27px;
}
h3.section-heading {
  font-size: clamp(22px, 2.45vw, 28px); line-height: 1.34;
  font-weight: 650; letter-spacing: -.032em;
  max-width: 900px; margin: 0 auto 20px;
}
h4.section-heading {
  font-size: clamp(17px, 2vw, 20px); line-height: 1.42;
  font-weight: 650; letter-spacing: -.022em;
  max-width: 820px; margin: 0 auto 15px;
}
.report-paragraph {
  font-size: 18px; line-height: 1.74; max-width: var(--paragraph-width);
  margin: 0 0 18px; color: var(--ink);
  overflow-wrap: break-word;
}
.report-paragraph--emphasis {
  padding: 15px 0;
  color: var(--navy-dark); font-weight: 500;
}
.report-paragraph--note {
  max-width: var(--paragraph-width); font-size: 16px; color: var(--muted);
  padding: 17px 20px; background: var(--panel);
}
.report-paragraph a { overflow-wrap: anywhere; }

/* The original mathematical expressions are native MathML, not pictures. */
.math-block { width: min(100%, 940px); margin: 28px auto 35px; }
.equation {
  display: flex; align-items: center; justify-content: center;
  margin: 16px 0; padding: 25px 18px;
  width: 100%; background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px; color: var(--navy-dark);
  overflow-x: auto; overflow-y: hidden;
}
.equation math {
  font-family: var(--math); font-size: clamp(18px, 2.1vw, 24px);
  text-align: center; max-width: none; flex: 0 0 auto; margin-inline: auto;
}
.equation math mtext { font-family: var(--sans); font-size: .85em; }
.math-block--mixed { display: flex; flex-flow: row wrap; gap: 12px; align-items: center; justify-content: center; text-align: center; }
.math-block--mixed .equation { flex: 0 1 auto; min-width: min(100%, 230px); margin: 0; }
.equation-lead {
  margin: 0; color: var(--navy-dark); text-align: center;
  font: 600 18px/1.5 var(--sans);
}

/* Data tables are genuine <table> elements with captions and headers. */
.data-table { max-width: 100%; margin: 31px auto 38px; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.economic-table {
  width: 100%; min-width: 660px; table-layout: auto;
  border-collapse: separate; border-spacing: 0; margin: 0 auto;
  border: 1px solid var(--line-strong); border-radius: 3px;
  font: 450 13.2px/1.55 var(--sans); color: var(--ink);
}
.economic-table caption {
  text-align: center; padding: 0 0 13px; color: var(--muted);
  font: 550 12.5px/1.5 var(--sans); letter-spacing: .012em;
}
.economic-table thead th {
  padding: 13px 12px; background: #edf2f5;
  font-weight: 650; color: var(--navy-dark);
  text-align: left; vertical-align: bottom;
  border-bottom: 1px solid var(--line-strong);
}
.economic-table thead th:not(:first-child) { text-align: right; }
.economic-table tbody tr { background: white; }
.economic-table tbody tr:nth-child(even) { background: #f9fbfc; }
.economic-table tbody tr:hover { background: #f2f6f8; }
.economic-table tbody th, .economic-table tbody td {
  padding: 12px; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.economic-table tbody tr:last-child th, .economic-table tbody tr:last-child td { border-bottom: 0; }
.economic-table tbody th {
  text-align: left; color: var(--navy-dark); font-weight: 600;
  min-width: 155px;
}
.economic-table tbody td.numeric {
  text-align: right; font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap; font-weight: 500;
}
.economic-table tbody td.descriptive { text-align: left; }
.economic-table p { margin: 0; font: inherit; }
.economic-table p + p { margin-top: 4px; }
.economic-table--2 { min-width: 760px; }
.economic-table--2 thead th:nth-child(2), .economic-table--2 thead th:nth-child(3) { text-align: left; }
.economic-table--2 td:nth-child(2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--green); }
.economic-table--3, .economic-table--5 { min-width: 950px; }
.economic-table--3 thead th, .economic-table--5 thead th { white-space: nowrap; }
.economic-table--3 tbody th, .economic-table--5 tbody th { min-width: 220px; }
.economic-table--3 td:last-child, .economic-table--5 td:last-child { font-weight: 650; color: var(--navy-dark); }
.economic-table--4 tbody tr:last-child td:last-child, .economic-table--6 tbody td:last-child {
  color: var(--green); font-weight: 650;
}
.economic-table--6 { min-width: 750px; }

/* Original lists, including the complete 26-entry statistical bibliography. */
.report-list {
  max-width: var(--paragraph-width); padding-left: 1.55em;
  margin: 19px 0 26px; color: var(--ink);
}
.report-list li { margin: 0 0 9px; padding-left: 7px; }
.report-list li::marker { color: var(--green); font-family: var(--sans); }
.report-list .report-paragraph { margin: 0; }
.statistics-list {
  list-style: none; padding: 0; margin: 24px 0 30px;
  max-width: 900px; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.statistics-list li {
  background: #fff; border: 1px solid var(--line-strong);
  border-top: 3px solid var(--navy); border-radius: 2px;
  padding: 19px 17px 20px; margin: 0;
  min-height: 125px; font: 500 14px/1.55 var(--sans);
}
.statistics-list li:first-child { border-top-color: var(--green); }
.statistics-list li .report-paragraph { font: inherit; }
.necessities-list strong { font-weight: 650; }
.source-list {
  counter-reset: bibliography; list-style: decimal;
  max-width: none; margin-top: 28px; padding-left: 2.15em;
}
.source-list li {
  padding: 0 0 23px 9px; margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
}
.source-list li::marker { font: 650 13px var(--sans); color: var(--green); }
.source-list li:last-child { border-bottom: 0; }
.source-list .report-paragraph { font-size: 16px; line-height: 1.67; max-width: none; }
.source-list .report-paragraph > strong:first-child { font-family: var(--sans); font-size: 15px; color: var(--navy-dark); }
.source-list br { display: block; content: ''; margin-top: 8px; }
.source-list a { font: 500 14px/1.5 var(--sans); overflow-wrap: anywhere; }

/* Social-economic transfers illustrated as accessible sequence lists. */
.process-figure {
  max-width: 820px; margin: 33px auto 43px;
  padding: 26px 20px 24px; border: 1px solid var(--line);
  background: #fbfcfd; border-radius: 3px;
}
.process-stage-label {
  text-align: center; font: 750 12px/1.4 var(--sans);
  color: var(--green); text-transform: uppercase;
  letter-spacing: .16em; margin: 0 0 22px;
}
.process-steps {
  padding: 0; margin: 0 auto; list-style: none;
  max-width: 620px; text-align: center;
}
.process-step { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0; }
.process-line {
  display: block; width: 100%; padding: 1px 7px;
  font: 500 15px/1.54 var(--sans); color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.process-line--major {
  color: var(--navy-dark); font-weight: 650;
}
.process-step .process-line:first-child { padding-top: 12px; }
.process-step .process-line:last-of-type { padding-bottom: 12px; }
.process-arrow, .process-contrast {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 27px/1 var(--sans); height: 43px; color: var(--green);
}
.process-contrast { color: var(--ink-soft); font-weight: 750; }

.site-footer { border-top: 1px solid var(--line-strong); background: #fff; }
.footer-inner {
  margin: 0 auto; width: min(var(--content-width), calc(100% - 72px));
  padding: 31px 0 43px; display: flex; justify-content: space-between;
  gap: 30px; align-items: center;
  font: 450 12px/1.6 var(--sans); color: var(--muted);
}
.footer-inner p { margin: 0; }
.footer-inner a { font-weight: 650; white-space: nowrap; }

@media (max-width: 1130px) {
  .navigation-inner { gap: 18px; }
  .navigation-list a { padding-inline: 9px; font-size: 12px; }
}
@media (max-width: 880px) {
  :root { --navigation-height: 62px; }
  .masthead-inner, .navigation-inner, .report-main, .footer-inner {
    width: min(100% - 40px, var(--content-width));
  }
  .masthead-inner { padding: 70px 0 55px; }
  .navigation-brand { margin-right: auto; }
  .navigation-list { display: none; }
  .mobile-menu { display: block; position: relative; font: 600 13px/1 var(--sans); color: var(--navy-dark); }
  .mobile-menu summary { cursor: pointer; list-style: none; padding: 13px 2px 13px 16px; user-select: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary::after { content: '⌄'; display: inline-block; padding-left: 9px; font-size: 16px; }
  .mobile-menu[open] summary::after { transform: rotate(180deg); }
  .mobile-menu-list {
    position: absolute; right: 0; top: calc(100% + 7px);
    margin: 0; padding: 10px; width: min(270px, calc(100vw - 35px));
    list-style: none; background: #fff; border: 1px solid var(--line-strong);
    box-shadow: 0 12px 35px #152c4022; border-radius: 3px;
  }
  .mobile-menu-list li { margin: 0; }
  .mobile-menu-list a { display: block; padding: 12px 13px; text-decoration: none; font: 550 13px/1.35 var(--sans); }
  .mobile-menu-list a:hover { background: var(--panel); }
  .report-main { padding: 50px 0; }
  .report-part { margin-bottom: 76px; }
  .report-part + .report-part { padding-top: 57px; }
  .report-section--depth-3 { margin-top: 43px; }
  .report-section--depth-4 { margin-top: 31px; }
}
@media (max-width: 600px) {
  :root { --navigation-height: 58px; }
  body { font-size: 16.5px; line-height: 1.7; }
  .masthead-inner { padding-top: 55px; padding-bottom: 48px; }
  .issue-line { font-size: 10px; }
  .report-subtitle { margin-top: 23px; }
  .report-deck { margin-top: 13px; }
  .report-lede { font-size: 16px; margin-top: 26px; }
  .report-paragraph { font-size: 16.5px; line-height: 1.73; }
  .report-paragraph--note { font-size: 14.5px; }
  .part-label { font-size: 10px; margin-bottom: 20px; }
  .report-section--depth-2 { margin-bottom: 43px; }
  h2.section-heading { padding-bottom: 14px; margin-bottom: 22px; }
  .math-block { margin: 21px auto 26px; }
  .equation { padding: 20px 14px; justify-content: flex-start; }
  .equation math { font-size: 18px; }
  .math-block--mixed .equation { width: 100%; }
  .statistics-list { grid-template-columns: 1fr; }
  .statistics-list li { min-height: 0; }
  .data-table { margin: 24px auto 31px; }
  .economic-table { font-size: 12.5px; }
  .process-figure { padding: 16px 9px; margin: 25px 0; }
  .process-line { font-size: 12.5px; }
  .source-list .report-paragraph { font-size: 14.5px; }
  .source-list .report-paragraph > strong:first-child { font-size: 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: 0s!important; animation-duration: 0s!important; } }
@media print {
  :root { --ink: #151515; --navy-dark: #151515; --navy: #151515; }
  body { font-size: 11.5pt; color: #111; }
  .sticky-navigation, .skip-link, .site-footer { display: none!important; }
  .report-main, .masthead-inner { width: 100%; padding: 0; }
  .report-header { margin-bottom: 2cm; }
  .report-part + .report-part { page-break-before: always; padding-top: 0; }
  h2,h3,h4, .report-section { break-after: avoid-page; }
  .data-table, .process-figure, .equation { break-inside: avoid; }
  .economic-table { min-width: 0; font-size: 8pt; }
  a { color: #111; }
}

/* EU–Greece report · align table headings with their column contents.
   Descriptive columns read left-to-right; monetary and percentage columns
   remain right-aligned. No HTML changes are required. */
.economic-table thead th {
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}
.economic-table thead th:not(:first-child) {
  text-align: left;
}
.economic-table:has(> tbody > tr:first-child > td:nth-child(2).numeric) thead th:nth-child(2),
.economic-table:has(> tbody > tr:first-child > td:nth-child(3).numeric) thead th:nth-child(3),
.economic-table:has(> tbody > tr:first-child > td:nth-child(4).numeric) thead th:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
