/* Articles and pages of the /admin editor (QUEUE item 1, 2026-11-15): ONE shared design for the clean HTML that
   tools/import_legacy.py makes from the old Divi pages (and for new articles that use the same classes).
   km-cols / km-col km-w-1-2 … = columns · km-text · km-img = picture · km-blurb = picture + text (printouts)
   details.km-toggle = open / close section · km-band = coloured strip · km-member = team card · km-space / km-hr */

/* a page (not an article) has no theme column around it: the same width as the old Divi rows */
.km-page { width: 80%; max-width: 1080px; margin: 0 auto; padding: 54px 0 20px; }

/* ---- columns (Divi «gutters 3»: 5.5 % between columns; the widths keep their proportions) */
.km-cols { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 5.5%; row-gap: 30px; margin: 22px 0 44px; }
.km-col { min-width: 0; flex: 6 1 0; }
.km-col > :last-child { margin-bottom: 0; }
.km-w-1-2 { flex-grow: 6; } .km-w-1-3 { flex-grow: 4; } .km-w-2-3 { flex-grow: 8.4; } .km-w-1-4 { flex-grow: 3; }
.km-w-3-4 { flex-grow: 9.5; } .km-w-1-5 { flex-grow: 2.4; } .km-w-2-5 { flex-grow: 4.8; } .km-w-3-5 { flex-grow: 7.6; }
.km-w-1-6 { flex-grow: 2; } .km-w-5-6 { flex-grow: 10.5; }
@media (max-width: 980px) {
  .km-cols { row-gap: 30px; }
  .km-w-1-2, .km-w-1-3, .km-w-2-3, .km-w-3-4, .km-w-2-5, .km-w-3-5, .km-w-5-6 { flex-basis: 100%; }
  .km-w-1-4, .km-w-1-5, .km-w-1-6 { flex: 0 0 47.25%; }
}

/* ---- text, pictures */
.km-text { margin: 0 0 30px; overflow-wrap: break-word; }
.km-text > :last-child, .km-toggle-c > :last-child { margin-bottom: 0; padding-bottom: 0; }
.km-center { text-align: center; }
.km-img { margin: 0 0 30px; text-align: center; }
.km-img img, .km-blurb img, .km-member img, .km-text img { max-width: 100%; height: auto; }
.km-space { height: 23px; }
/* a plain <hr> = the thick grey line of the old pages; hr.km-hr = the thin blue line (old Divi «divider») */
.km-article hr { border: 0; border-top: 4px solid #e5e5e5; height: 0; margin: 22px 0 30px; }
.km-article hr.km-hr { border-top: 1px solid #2ea3f2; margin: 22px 0 30px; }

/* ---- picture + text (printouts of Using Euros) */
.km-blurb { margin: 0 0 30px; }
.km-blurb-img { position: relative; text-align: center; margin: 0 0 30px; }
.km-blurb-img img { box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }

/* ---- open / close sections (old Divi «toggle») */
details.km-toggle { margin: 0 0 30px; border-radius: 25px; background: #0c71c3; color: #474747; overflow: hidden; }
details.km-toggle > summary { list-style: none; cursor: pointer; position: relative; padding: 20px 56px 20px 20px; }
details.km-toggle > summary::-webkit-details-marker { display: none; }
details.km-toggle > summary > * { margin: 0; padding: 0; font: 700 22px/1.6em Ubuntu, Helvetica, Arial, sans-serif; color: #fff; }
@media (max-width: 767px) { details.km-toggle > summary > * { font-size: 18px; } }
details.km-toggle > summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font: 400 28px/1 sans-serif; color: #fff; }
details.km-toggle[open] { background: #efefef; }
details.km-toggle[open] > summary > * { color: #575757; }
details.km-toggle[open] > summary::after { content: '–'; color: #0c71c3; }
details.km-toggle > summary:focus-visible { outline: 3px solid #ffbf47; outline-offset: -3px; border-radius: 25px; }
.km-toggle-c { padding: 0 20px 20px; line-height: 2em; }
.km-toggle-c ul, .km-toggle-c ol { padding-left: 1.3em; margin-bottom: 1em; }

/* centred text (page introductions): not wider than a comfortable line */
.km-text.km-center > p { max-width: 700px; margin-left: auto; margin-right: auto; }
.km-page .km-text h1 { font-size: 50px; line-height: 1.2; padding-bottom: 16px; }
.km-page .km-text.km-center > p { font-size: 18px; line-height: 2em; }
@media (max-width: 767px) { .km-page .km-text h1 { font-size: 34px; } }

/* ---- coloured strip across the page (About) */
.km-band { --km-bg: #0c71c3; background: var(--km-bg); box-shadow: 0 0 0 100vmax var(--km-bg); clip-path: inset(0 -100vmax);
  margin: 0 0 30px; padding: 54px 0 24px; }
.km-band .km-on-dark, .km-band .km-on-dark * { color: #fff; }
.km-band details.km-toggle { background: #fff; border-radius: 10px; box-shadow: 0 2px 30px rgba(0, 0, 0, .06); }
.km-band details.km-toggle > summary { padding: 30px 60px 30px 40px; }
.km-band details.km-toggle > summary > * { color: #222; font: 400 18px/1.4 Montserrat, Helvetica, Arial, sans-serif; }
.km-band .km-toggle-c { padding: 0 40px 30px; font-size: 16px; }
.km-band details.km-toggle > summary::after { color: #999; }
.km-band details.km-toggle[open] { background: #fff; }
.km-band .km-toggle-c { color: #444; }

/* ---- team card */
.km-member { background: #fff; border-radius: 15px; padding: 8px 12px 14px; text-align: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.km-member img { display: block; margin: 0 auto 18px; filter: saturate(0); }
.km-member h4 { font-size: 18px; font-weight: 400; color: #333; margin: 0 0 8px; padding: 0; }
.km-member .km-pos { color: #888; margin: 0 0 6px; }
ul.km-social { list-style: none; margin: 6px 0 0; padding: 0; display: flex; justify-content: center; gap: 14px; }
ul.km-social a { color: #9a9a9a; font-size: 20px; text-decoration: none; }
ul.km-social a:hover, ul.km-social a:focus { color: #0c71c3; }

/* ---- buttons */
.km-btn-w { text-align: center; }
.km-btn { display: inline-block; padding: .4em 1.2em; border: 2px solid #2ea3f2; border-radius: 3px; color: #2ea3f2; font-size: 18px; text-decoration: none; }
.km-btn:hover { background: rgba(0, 0, 0, .05); }

/* text with its own size (old pages: 14pt / 18pt): line spacing follows that size */
.km-article [style*="font-size"] { line-height: 1.45; }
.km-toggle-c [style*="font-size"] { line-height: 1.7; }

/* ---- video, files (QUEUE item 4, 2026-11-16): added with the editor buttons «🎬 Βίντεο», «📎 Αρχείο» */
.km-video { margin: 26px auto 30px; max-width: 960px; }
.km-video video { display: block; width: 100%; height: auto; max-height: 82vh; background: #000; border-radius: 8px; }
.km-video figcaption { margin-top: 8px; text-align: center; font-size: 14px; line-height: 1.5; color: #6b7280; }
.km-file { display: flex; align-items: center; gap: 14px; margin: 12px 0; padding: 12px 16px; border: 1px solid #e3e8ee; border-radius: 10px;
  background: #fff; text-align: left; }
.km-file-b { flex: 0 0 auto; min-width: 46px; padding: 10px 6px; border-radius: 6px; background: #64748b; color: #fff;
  font: 700 11px/1 'Open Sans', Arial, sans-serif; letter-spacing: .3px; text-align: center; }
.km-file[data-type=pdf] .km-file-b { background: #d32f2f; }
.km-file[data-type=pptx] .km-file-b, .km-file[data-type=odp] .km-file-b { background: #d2501e; }
.km-file[data-type=docx] .km-file-b, .km-file[data-type=odt] .km-file-b { background: #1e62c8; }
.km-file-i { flex: 1 1 auto; min-width: 0; }
.km-file-t { font-weight: 700; font-size: 16px; line-height: 1.4; color: #333; overflow-wrap: break-word; }
.km-file-m { font-size: 13px; line-height: 1.5; color: #6b7280; }
.km-file-a { display: flex; gap: 8px; flex: 0 0 auto; }
.km-article .km-file-a a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #2ea3f2; border-radius: 6px;
  font: 600 14px/1.3 'Open Sans', Arial, sans-serif; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.km-article .km-file-a a.km-file-v { background: #fff; color: #2ea3f2; }
.km-article .km-file-a a.km-file-d { background: #2ea3f2; color: #fff; }
.km-article .km-file-a a:hover { background: #0c71c3; border-color: #0c71c3; color: #fff; }
.km-article .km-file-a a:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.km-file + .km-file { margin-top: -2px; }
@media (max-width: 560px) {
  .km-file { flex-wrap: wrap; }
  .km-file-i { flex-basis: calc(100% - 62px); }
  .km-file-a { width: 100%; }
  .km-article .km-file-a a { flex: 1; justify-content: center; }
}

/* ---- buttons of the article templates (QUEUE 7, owner 2026-11-17: style A = the home «Παίξε» button) */
.km-act-w { margin: 0 0 30px; }
.km-article a.km-act { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 22px; box-sizing: border-box; border: 2px solid #0070fc;
  border-radius: 10px; background: #fff; color: #0c71c3; font: 500 17px/1.3 Ubuntu, sans-serif; text-decoration: none;
  transition: background-color .4s ease-in-out, color .4s ease-in-out, border-color .4s ease-in-out; }
.km-article a.km-act i { color: orange; font-size: 20px; }
.km-article a.km-act:hover { background: #0b8cb7; border-color: #0b8cb7; color: #fff; }
.km-article a.km-act:focus-visible { outline: 3px solid #0c71c3; outline-offset: 2px; }
/* ---- cards inside an Academy section (template «Academy») */
.km-card { background: #fff; border-radius: 10px; padding: 14px 16px; }
.km-card > p { margin: 0 0 6px; padding: 0; }
