/* Ιστοσελίδα ΓΕΜΗ: ένα αρχείο στυλ για όλο το site. Σχεδιασμός και κανόνες: docs/modules/site-pages.md */

@font-face {
  font-family: "Piazzolla";
  src: url("../fonts/piazzolla-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+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: "Piazzolla";
  src: url("../fonts/piazzolla-greek.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  --paper: #ffffff;
  --ink: #1f2a24;
  --muted: #5b6b62;
  --rule: #c9d6cd;
  --ledger: #1d5c43;
  --stripe: #eef4ef;

  --font: "Piazzolla", Georgia, "Times New Roman", serif;
  --page: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums tabular-nums;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--ledger);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--ledger);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -64px;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* --- Κεφαλίδα: η επωνυμία και τα αναγνωριστικά της, σαν επιστολόχαρτο --- */

.letterhead {
  padding-block: clamp(36px, 6vw, 64px) 22px;
  border-bottom: 2px solid var(--ledger);
}
.company-name {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.2px;
  text-wrap: balance;
}
.company-form {
  margin-top: 8px;
  font-size: 19px;
  color: var(--muted);
}
.ids {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 18px;
  font-size: 16px;
}
.ids dt {
  display: inline;
  color: var(--muted);
}
.ids dd {
  display: inline;
  margin-left: 6px;
  font-weight: 600;
}

/* --- Δύο στήλες: το μητρώο αναρτήσεων, και δίπλα τα στοιχεία --- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  padding-block: 40px 64px;
}

.section-title {
  font-size: 24px;
  font-weight: 650;
  line-height: 1.25;
}
.section-intro {
  margin-top: 6px;
  max-width: 640px;
  color: var(--muted);
}

/* Το μητρώο: ένα tbody ανά χρήση, με εναλλάξ λωρίδες όπως το χαρτί των λογιστικών βιβλίων. */
.register {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 16px;
}
.register thead th {
  padding: 0 12px 8px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  vertical-align: bottom;
}
.register td,
.register tbody th {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.register tbody:nth-of-type(odd) {
  background: var(--stripe);
}
.register .fy {
  width: 128px;
  font-weight: 400;
}
.fy-year {
  display: block;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.1;
  color: var(--ledger);
}
.fy-span {
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
}
.doc-title {
  font-weight: 600;
  line-height: 1.35;
}
.doc-posted {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}
.register .num {
  white-space: nowrap;
}
.files li + li {
  margin-top: 4px;
}
.files a {
  font-weight: 600;
  white-space: nowrap;
}
.files .size {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.empty {
  margin-top: 24px;
  padding: 20px 0;
  border-block: 1px solid var(--rule);
  color: var(--muted);
}

/* Η πλαϊνή στήλη: στοιχεία, εταίροι, επικοινωνία. */
.aside > section + section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.facts {
  margin-top: 16px;
}
.facts div + div {
  margin-top: 14px;
}
.facts dt {
  font-size: 14px;
  color: var(--muted);
}
.facts dd {
  overflow-wrap: anywhere;
}
.facts dd ul li + li {
  margin-top: 6px;
}
.source {
  margin-top: 18px;
  font-size: 15px;
}

/* --- Υποσέλιδο --- */

.footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}
.footer .wrap {
  display: grid;
  gap: 6px;
  padding-block: 24px 40px;
}
.footer p {
  max-width: 760px;
}

/* --- Οθόνες κάτω από 960px: μία στήλη, τα στοιχεία κάτω από τις αναρτήσεις --- */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .aside {
    padding-top: 32px;
    border-top: 2px solid var(--ledger);
  }
}

/* Κινητό: κάθε γραμμή του μητρώου γίνεται μπλοκ με ετικέτες. */
@media (max-width: 640px) {
  .register thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .register,
  .register tbody,
  .register tr,
  .register td,
  .register tbody th {
    display: block;
    width: auto;
  }
  .register tbody {
    padding: 14px 14px 6px;
    border-bottom: 1px solid var(--rule);
  }
  .register tbody:nth-of-type(even) {
    background: none;
  }
  .register td,
  .register tbody th {
    padding: 0 0 10px;
    border: 0;
  }
  .register tr + tr {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
  }
  .register .fy-year,
  .register .fy-span {
    display: inline;
  }
  .register .fy-span {
    margin-left: 8px;
  }
  .register td.num {
    display: inline-block;
    margin-right: 24px;
  }
  .register td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-size: 14px;
  }
}

/* --- Εκτύπωση: το μητρώο και τα στοιχεία, με τις διευθύνσεις των αρχείων --- */

@media print {
  body {
    font-size: 11pt;
  }
  .skip {
    display: none;
  }
  .layout {
    display: block;
  }
  .aside {
    margin-top: 24pt;
  }
  .register tbody:nth-of-type(odd) {
    background: none;
  }
  .register tbody {
    break-inside: avoid;
  }
  .files a::after {
    content: " (" attr(href) ")";
    font-weight: 400;
  }
}
