@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #f8f7f4;
  --surface: #f0efeb;
  --text: #282a25;
  --muted: #62655d;
  --border: #d6d7cf;
  --border-strong: #adafa3;
  --accent: #e9edaa;
  --accent-surface: #f3f4dd;
  --accent-text: #444d24;
  --focus: #5f6b24;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "IBM Plex Sans", monospace;
  --gutter: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171816;
    --surface: #20211e;
    --text: #edeee5;
    --muted: #a9ac9e;
    --border: #393c33;
    --border-strong: #636953;
    --accent: #e9edaa;
    --accent-surface: #282d1f;
    --accent-text: #dce49f;
    --focus: #e9edaa;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #282a25; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--muted); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
svg { display: block; max-width: 100%; }
p { margin: 0; color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 500; }
code { font-family: var(--mono); font-size: 0.82rem; white-space: nowrap; }
[lang="el"] { font-family: var(--sans); }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.page { max-width: 1184px; margin-inline: auto; border-inline: 1px solid var(--border); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding: 16px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; font: 400 21px/1.2 var(--mono); letter-spacing: -1.2px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; margin-right: 12px; }
.brand-cursor { color: var(--muted); }
.header-nav { display: flex; align-items: center; gap: 28px; font: 12px/1.5 var(--mono); }
.header-nav a { padding-block: 10px; text-decoration: none; }
.header-nav a:hover { text-decoration: underline; }

.hero { padding: 40px var(--gutter) 0; }
.eyebrow, .label, .section-number, .figure-label, .hero-footnote, .chapter-nav, .start-label, .portal-coordinate { font: 400 11px/1.6 var(--mono); letter-spacing: 0.035em; }
.eyebrow { display: flex; gap: 10px; align-items: center; text-transform: uppercase; color: var(--muted); }
.status-square { width: 7px; height: 7px; background: var(--accent-text); flex-shrink: 0; }
.edition { margin-left: auto; white-space: nowrap; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: 30px; padding: 40px 0 44px; }
h1 { font-size: clamp(42px, 5.2vw, 66px); line-height: 1.08; font-weight: 500; letter-spacing: -0.055em; }
h1 span { color: var(--muted); font-size: 0.79em; letter-spacing: -0.045em; }
.lede { max-width: 480px; font-size: 17px; line-height: 1.7; margin-top: 26px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 46px; padding: 12px 18px; font: 12px/1.7 var(--mono); background: var(--text); color: var(--bg); text-decoration: none; border: 1px solid var(--text); transition: background 150ms, color 150ms; }
.button:hover { background: var(--accent); color: #282a25; border-color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 12px; font: 12px/1.7 var(--mono); text-decoration: none; padding-block: 8px; }
.text-link:hover { text-decoration: underline; }
.system-figure { margin: 16px 0 0; min-width: 0; }
.figure-label { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; border-bottom: 1px solid var(--border); padding-bottom: 12px; letter-spacing: 0; }
.system-diagram { width: 100%; overflow: visible; }
.diagram-wires { color: var(--border-strong); }
.diagram-node rect { fill: var(--bg); stroke: var(--border-strong); }
.diagram-highlight { fill: var(--accent); }
.diagram-name { fill: var(--text); font-family: var(--sans); font-size: 19px; font-weight: 500; }
.diagram-label { fill: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: 0.4px; }
.diagram-pin { fill: var(--bg); stroke: var(--border-strong); }
.system-figure figcaption { border-top: 1px solid var(--border); padding-top: 12px; color: var(--muted); font: 9px/1.8 var(--mono); text-align: center; }
.hero-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; letter-spacing: 0; }
.chapter-nav { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--border); padding-inline: var(--gutter); }
.chapter-nav a { display: flex; align-items: center; gap: 14px; padding: 19px 16px; text-decoration: none; border-right: 1px solid var(--border); font-size: 11px; letter-spacing: 0; }
.chapter-nav a:first-child { border-left: 1px solid var(--border); }
.chapter-nav a:hover { background: var(--accent-surface); }
.chapter-nav span { color: var(--muted); font-size: 10px; }

.guide-section { padding: 64px var(--gutter) 48px; border-bottom: 1px solid var(--border); }
.section-heading { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; margin-bottom: 32px; }
.section-number { padding-top: 9px; color: var(--muted); font-size: 10px; }
h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.25; letter-spacing: -0.035em; }
.section-heading p { max-width: 640px; margin-top: 14px; line-height: 1.7; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.portal { padding: 28px 30px 24px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.portal-primary { background: var(--accent-surface); }
.portal-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--muted); }
.label { font-size: 10px; }
.start-label { background: var(--accent); color: #444d24; font-size: 9px; padding: 3px 7px; }
.portal-coordinate { font-size: 10px; }
.portal h3 { font-size: 30px; letter-spacing: -0.025em; line-height: 1.2; }
.alternate-name { font-size: 16px; color: var(--muted); font-weight: 400; letter-spacing: -0.025em; }
.portal-subtitle { font-size: 14px; margin: 6px 0 16px; color: var(--text); }
.portal p:not(.portal-subtitle) { font-size: 15px; line-height: 1.7; max-width: 370px; margin-bottom: 24px; }
.portal-link { font: 11px/1.6 var(--mono); text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--border); }
.portal-link:hover { text-decoration: underline; }
.portal-links { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid var(--border); }
.portal-links .portal-link { border: 0; padding: 0; margin: 0; }
.small-link { font: 10px/1.8 var(--mono); color: var(--muted); white-space: nowrap; }
.margin-note { display: flex; align-items: baseline; gap: 16px; margin-top: 22px; }
.note-symbol { font: 12px/1.8 var(--mono); color: var(--muted); }
.margin-note p { font-size: 12px; line-height: 1.8; }

.search-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
.field-note { background: var(--surface); border-top: 2px solid var(--border-strong); padding: 24px; align-self: start; }
.field-note .label { font-size: 9px; color: var(--muted); }
.field-note h3 { font-size: 21px; line-height: 1.4; letter-spacing: -0.025em; margin-top: 18px; }
.field-note p { font-size: 13px; line-height: 1.8; margin-top: 14px; }
.note-rule { height: 1px; background: var(--border); margin: 24px 0 18px; }
.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 0 0 24px 40px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.steps li::before { content: "0" counter(step); position: absolute; left: 0; top: 3px; font: 11px/1.8 var(--mono); color: var(--muted); }
.steps li:last-child { margin: 0; padding-bottom: 0; border: 0; }
.steps h3 { font-size: 18px; line-height: 1.4; letter-spacing: -0.02em; margin-bottom: 9px; }
.steps p { font-size: 14px; line-height: 1.8; }
.api-note { display: flex; gap: 22px; align-items: center; border: 1px dashed var(--border-strong); padding: 22px 24px; margin-top: 36px; }
.api-icon { font: 24px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.api-note h3 { font-size: 15px; margin-bottom: 4px; }
.api-note p { font-size: 13px; }
.api-note .text-link { white-space: nowrap; margin-left: auto; }

.cpv-key { display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.cpv-key b { font: 13px/1.6 var(--mono); color: var(--text); margin-right: 10px; }
.cpv-table { width: 100%; border-collapse: collapse; text-align: left; margin-top: 12px; }
.cpv-table th { font: 9px/1.6 var(--mono); color: var(--muted); letter-spacing: 0.05em; padding: 14px 16px; border-bottom: 1px solid var(--border-strong); }
.cpv-table td { padding: 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.cpv-table th:first-child { width: 210px; }
.cpv-table th:last-child { width: 200px; }
.cpv-table td:last-child { font-size: 12px; color: var(--muted); }
.cpv-table tbody tr:hover { background: var(--surface); }
.code-cell { display: flex; gap: 14px; align-items: center; }
.code-cell code { font-size: 12px; }
.copy-button { color: var(--muted); background: transparent; border: 1px solid var(--border); min-height: 32px; min-width: 44px; padding: 5px 7px; cursor: pointer; font: 9px/1.6 var(--mono); }
.copy-button:hover, .copy-button[data-copied] { color: var(--accent-text); background: var(--accent-surface); border-color: var(--border-strong); }
.copy-button:disabled { cursor: wait; }
.table-footer { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: 16px; font-size: 11px; }
#copy-status { min-height: 18px; color: var(--accent-text); }

.examples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); }
.example { display: flex; flex-direction: column; padding: 24px; min-width: 0; }
.example + .example { border-left: 1px solid var(--border); }
.example-category { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--muted); margin-bottom: 22px; }
.example-category .label { font-size: 8px; }
.example h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.025em; min-height: 58px; }
.example-authority { font-size: 11px; margin-top: 10px; min-height: 36px; }
.example-budget { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.04em; margin: 24px 0 16px; line-height: 1.25; }
.example-budget span { font: 9px/1.6 var(--mono); letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.example-budget-text { font-size: 25px; }
.example > p:not(.example-authority) { font-size: 13px; line-height: 1.8; margin-bottom: 24px; }
.example-facts { border-top: 1px solid var(--border); padding-top: 16px; margin: auto 0 20px; font-size: 11px; }
.example-facts div { display: flex; justify-content: space-between; gap: 8px; padding-block: 4px; }
.example-facts dt { color: var(--muted); }
.example-facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.example-facts code { font-size: 10px; }
.example > .text-link { border-top: 1px solid var(--border); padding-top: 15px; justify-content: space-between; }
.source-note { font-size: 11px; line-height: 1.8; margin-top: 18px; }

.site-footer { padding: 28px var(--gutter); }
.footer-top { display: flex; align-items: center; gap: 24px; font: 10px/1.8 var(--mono); color: var(--muted); }
.footer-brand { color: var(--text); font-size: 15px; letter-spacing: -0.8px; }
.footer-top .infinia-link { color: var(--text); }
.footer-top > a:last-child { margin-left: auto; text-decoration: none; }
.site-footer p { font-size: 10px; margin-top: 16px; }

@media (max-width: 1050px) {
  :root { --gutter: 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
  h1 { font-size: 55px; }
  h1 span { font-size: 0.74em; }
  .section-heading { grid-template-columns: 140px minmax(0, 1fr); gap: 24px; }
  .search-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 36px; }
  .example { padding: 20px; }
  .example-category .label { font-size: 7px; }
  .example-budget { font-size: 23px; }
  .example-budget span { display: block; margin-top: 6px; }
  .example-budget-text { min-height: 49px; }
  .portal-links { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  :root { --gutter: 24px; }
  html { scroll-padding-top: 90px; }
  .page { border: 0; }
  .site-header { min-height: 72px; }
  .brand { font-size: 19px; }
  .header-nav { display: none; }
  .hero { padding-top: 28px; }
  .eyebrow { font-size: 9px; letter-spacing: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 32px; gap: 36px; }
  h1 { font-size: clamp(42px, 8.5vw, 60px); }
  h1 span { font-size: 0.79em; }
  .lede { font-size: 16px; max-width: 510px; }
  .system-figure { width: 100%; max-width: 400px; margin: 0 auto; }
  .figure-label { font-size: 9px; }
  .system-figure figcaption { font-size: 10px; }
  .hero-footnote { font-size: 9px; gap: 6px; flex-direction: column; }
  .chapter-nav { padding: 0 var(--gutter); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-nav a { padding: 14px 12px; font-size: 10px; }
  .chapter-nav a:nth-child(3) { border-left: 1px solid var(--border); }
  .chapter-nav a:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .guide-section { padding-block: 40px 32px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-number { display: block; margin-bottom: 16px; padding: 0; }
  .section-heading p { font-size: 15px; }
  .portal { padding: 24px; }
  .portal h3 { font-size: 27px; }
  .alternate-name { display: block; margin-top: 5px; font-size: 14px; }
  .portal-topline { gap: 6px; }
  .portal .label, .start-label { font-size: 8px; }
  .portal p:not(.portal-subtitle) { font-size: 14px; }
  .portal-link { font-size: 10px; }
  .search-layout { display: flex; flex-direction: column; gap: 32px; }
  .field-note { width: 100%; }
  .field-note h3 { margin-top: 12px; }
  .field-note p { max-width: 530px; }
  .note-rule { margin-block: 18px 12px; }
  .steps li { padding-left: 34px; }
  .api-note { flex-wrap: wrap; gap: 12px; padding: 20px; }
  .api-icon { display: none; }
  .api-note .text-link { margin-left: 0; }
  .cpv-table th:last-child { width: 140px; }
  .cpv-table th:first-child { width: 174px; }
  .cpv-table th, .cpv-table td { padding: 12px 8px; }
  .code-cell { gap: 8px; }
  .code-cell code { font-size: 11px; }
  .cpv-table td { font-size: 13px; }
  .examples-grid { grid-template-columns: minmax(0, 1fr); }
  .example { padding: 24px; }
  .example + .example { border-left: 0; border-top: 1px solid var(--border); }
  .example-category .label { font-size: 10px; }
  .example h3, .example-authority, .example-budget-text { min-height: 0; }
  .example-authority { font-size: 12px; }
  .example-budget { margin-block: 18px 12px; font-size: 28px; }
  .example-budget span { display: inline; }
  .example-facts { font-size: 12px; }
  .example-facts code { font-size: 11px; }
  .footer-top { flex-wrap: wrap; gap: 12px 20px; }
}

@media (max-width: 520px) {
  :root { --gutter: 20px; }
  .eyebrow { font-size: 8px; gap: 7px; }
  .edition { font-size: 8px; }
  .hero-actions { gap: 18px; }
  .button { font-size: 11px; gap: 22px; padding-inline: 15px; }
  .hero-actions .text-link { font-size: 10px; gap: 6px; }
  .portal-grid { grid-template-columns: minmax(0, 1fr); }
  .portal .label, .start-label { font-size: 9px; }
  .alternate-name { display: inline; }
  .portal-link { font-size: 11px; }
  .cpv-key { font-size: 12px; padding: 14px 16px; gap: 8px; flex-direction: column; }
  .cpv-table th { font-size: 8px; }
  .cpv-table th:first-child { width: 142px; }
  .cpv-table th:last-child, .cpv-table td:last-child { display: none; }
  .code-cell { flex-wrap: wrap; gap: 6px 10px; }
  .copy-button { min-height: 28px; }
  .table-footer { font-size: 10px; }
  .footer-top { font-size: 9px; }
  .footer-brand { font-size: 14px; }
  .footer-top > a:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
