/* dimosiotita.eu
   Μια δημόσια καταχώριση, όχι διαφήμιση: χαρτί, μελάνι, και δύο χρώματα με νόημα —
   πράσινο λογιστικού βιβλίου για το ενεργητικό, μπλε για την καθαρή θέση και τις
   υποχρεώσεις. Κόκκινο μόνο για ζημιές. Ένα στοιχείο ξεχωρίζει: η «ζυγαριά». */

@font-face {
  font-family: "Commissioner";
  src: url("/static/fonts/commissioner-greek.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: "Commissioner";
  src: url("/static/fonts/commissioner-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Commissioner";
  src: url("/static/fonts/commissioner-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fbfbf8;
  --ink: #1a2433;
  --muted: #5d6877;
  --rule: #d5dbd6;
  --assets: #2f5d50;
  --assets-2: #7fa597;
  --claims: #3b5b8c;
  --claims-2: #8aa2c8;
  --claims-3: #b9c8de;
  --claims-4: #dde5f0;
  --loss: #a23b2a;
  --notice: #f4efe1;
  --measure: 72rem;
}

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Commissioner", system-ui, "Noto Sans", sans-serif;
  font-weight: 400;
  line-height: 1.55;
}
main, footer { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }
main { padding-top: 2.5rem; padding-bottom: 3rem; }
a { color: var(--claims); text-underline-offset: .18em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--claims); outline-offset: 3px; border-radius: 2px; }
.num, .figures dd, .ids dd, .ratios .value, .seg-value, .total { font-variant-numeric: tabular-nums lining-nums; }
.neg { color: var(--loss); }

/* Ταυτότητα: η καταχώριση */
.registry { padding-bottom: 1.75rem; border-bottom: 2px solid var(--ink); }
.crumb { margin: 0 0 1.5rem; font-size: .875rem; color: var(--muted); }
.crumb a { color: inherit; }
.crumb span { margin: 0 .4em; }
.registry h1 { margin: 0; max-width: 22ch; font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.08; font-weight: 700; letter-spacing: -.015em; }
.form { margin: .6rem 0 0; font-size: 1.125rem; color: var(--muted); }
.ids { display: flex; flex-wrap: wrap; gap: .75rem 3rem; margin: 1.75rem 0 0; }
.ids dt { font-size: .8125rem; color: var(--muted); }
.ids dd { margin: .1rem 0 0; font-size: 1.0625rem; font-weight: 600; }

.notice { margin: 1.5rem 0 0; padding: .85rem 1.1rem; background: var(--notice); border-left: 3px solid #b8953c; max-width: 52rem; }
.notice.demo { border-left-color: var(--claims); background: #eaf0f7; }
.empty { margin-top: 2rem; color: var(--muted); }

.years { display: flex; gap: 1.25rem; margin-top: 1.5rem; font-weight: 600; }

/* Χρήση */
.year { padding-top: 2.75rem; }
.year + .year { margin-top: 2rem; border-top: 1px solid var(--rule); }
.year-head h2 { margin: 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; }
.period { margin: .25rem 0 0; color: var(--muted); }

.overview { display: grid; grid-template-columns: minmax(15rem, 22rem) 1fr; gap: 2.5rem 4rem; align-items: center; margin-top: 2rem; }
.figures { margin: 0; }
.figures div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--rule); }
.figures div:first-child { border-top: 1px solid var(--rule); }
.figures dt { color: var(--muted); }
.figures dd { margin: 0; font-size: 1.1875rem; font-weight: 600; white-space: nowrap; }

/* Η ζυγαριά */
.balance { margin: 0; }
.balance-chart { display: block; width: 100%; max-width: 34rem; height: auto; font-family: inherit; }
.balance figcaption { max-width: 40rem; margin-top: .5rem; font-size: .875rem; color: var(--muted); }
.seg-a1 { fill: var(--assets); }
.seg-a2 { fill: var(--assets-2); }
.seg-e1 { fill: var(--claims); }
.seg-e2 { fill: var(--claims-2); }
.seg-e3 { fill: var(--claims-3); }
.seg-e4 { fill: var(--claims-4); stroke: var(--claims-2); stroke-width: .5; }
.col-head { font-size: 15px; font-weight: 600; fill: var(--ink); }
.seg-label { font-size: 15px; fill: var(--muted); }
.seg-value { font-size: 15px; font-weight: 600; fill: var(--ink); }
.leader { fill: none; stroke: var(--rule); stroke-width: 1; }
.equals { font-size: 34px; font-weight: 400; fill: var(--muted); }
.base { stroke: var(--ink); stroke-width: 1.5; }
.total { font-size: 19px; font-weight: 700; fill: var(--ink); }

/* Καταστάσεις */
.statement { margin-top: 3rem; }
.statement h3, .ratios h3, .documents h3 { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 700; }
.twin, .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3.5rem; align-items: start; }
.pair { margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
caption { text-align: left; padding-bottom: .5rem; font-weight: 600; color: var(--muted); }
thead th { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
tbody th { text-align: left; font-weight: 400; padding: .4rem 1rem .4rem 0; }
td.num { text-align: right; padding: .4rem 0; white-space: nowrap; }
tr.line th { padding-left: .9rem; }
tr.heading th { padding-top: 1rem; font-weight: 600; }
tr.subtotal th, tr.subtotal td { font-weight: 600; border-top: 1px solid var(--rule); }
tr.subtotal th { padding-left: .9rem; }
tr.total th, tr.total td { font-weight: 700; border-top: 1.5px solid var(--ink); }
tbody tr:last-child.total td { border-bottom: 3px double var(--ink); }

.ratios { margin-top: 3rem; }
.ratios dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem 3rem; margin: 0; }
.ratios dt { color: var(--muted); }
.ratios .value { margin: .15rem 0 0; font-size: 1.75rem; font-weight: 700; }
.ratios .meaning { margin: .2rem 0 0; font-size: .875rem; color: var(--muted); max-width: 30ch; }

.method { margin: 2rem 0 0; max-width: 60ch; font-size: .875rem; color: var(--muted); }

/* Πρωτότυπα έγγραφα */
.documents { margin-top: 3rem; }
.documents > ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); column-gap: 3rem; }
.documents > ul > li { padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.doc { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; text-decoration: none; }
.doc-title { font-weight: 600; font-size: 1.0625rem; }
.doc:hover .doc-title, .doc:focus-visible .doc-title { text-decoration: underline; }
.doc-type { flex: none; font-size: .8125rem; color: var(--muted); }
.doc-meta { margin: .2rem 0 0; font-size: .8125rem; color: var(--muted); }
details { margin-top: .4rem; font-size: .875rem; }
summary { cursor: pointer; color: var(--claims); }
details ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.hashes { margin-top: 1.25rem; }
.hashes p { color: var(--muted); max-width: 60ch; }
.hashes dt { margin-top: .6rem; }
.hashes dd { margin: 0; }
.hashes code { font-size: .75rem; word-break: break-all; color: var(--muted); }

footer { padding-bottom: 3rem; font-size: .8125rem; color: var(--muted); }
footer p { margin: 0; padding-top: 1rem; border-top: 1px solid var(--rule); }

/* Αρχική / 404 (προσωρινές) */
.company h1 { margin: .25rem 0 .4rem; font-size: 2rem; line-height: 1.2; }
.title { margin: 0 0 1rem; color: var(--muted); }
.eyebrow { margin: 0; font-size: .875rem; color: var(--muted); }

@media (max-width: 52rem) {
  main, footer { padding: 0 1.1rem; }
  main { padding-top: 1.75rem; }
  .overview, .twin, .pair { grid-template-columns: 1fr; }
  .overview { gap: 2rem; }
}

@media print {
  :root { --paper: #fff; }
  body { font-size: 10.5pt; }
  .crumb, .years, details, .notice.demo { display: none; }
  .year { break-before: page; padding-top: 0; }
  .year:first-of-type { break-before: auto; }
  .statement, .ratios, .documents { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
