/* ITHM — νέα εμφάνιση μαθήματος («κλειστές ομάδες»), 21/11/2026. namespace: ithm-
   ΔΟΚΙΜΗ: ενεργό μόνο στο μάθημα 17 (εδώ με body.course-17, στο ithm-course.js με TEST_COURSES).
   Το script χτίζει το #ithm-root από τα δεδομένα της σελίδας του Moodle και βάζει body.ithm-on.
   Αν το script δεν τρέξει, η κανονική λίστα του Moodle εμφανίζεται μόνη της μετά από 5″. */
@keyframes ithm-reveal { to { opacity: 1; pointer-events: auto; } }
body.course-17.format-topics.path-course-view:not(.editing):not(.ithm-off):not(.ithm-on) .course-content ul.topics {
  opacity: 0; pointer-events: none; animation: ithm-reveal 0s linear 5s forwards;
}
body.ithm-on .course-content ul.topics { display: none; }
body.ithm-on .page-context-header { display: none !important; }
body.ithm-on.limitedwidth #page.drawers .main-inner { max-width: 1520px; }
/* Η γραμμή «Μάθημα / Δραστηριότητες» κρύβεται όταν έχει ΜΟΝΟ αυτά τα δύο (μαθητής). Ο διαχειριστής έχει κι άλλα
   (Ρυθμίσεις, Συμμετέχοντες, Βαθμοί…), οπότε τη βλέπει κανονικά.
   21/11/2026, Loukas: σε ΟΛΑ τα μαθήματα, όχι μόνο στο 17 («να μην ενοχλεί τον μαθητή με κάτι που δεν χρησιμοποιεί»). */
body.path-course .secondary-navigation:not(:has(li[data-key]:not([data-key="coursehome"]):not([data-key="courseoverview"]))) { display: none !important; }

#ithm-root {
  --canvas:#ffffff; --soft:#f3f6f9; --ink:#0a1317; --text:#1c1e21; --muted:#5d6c7b; --line:#dbe2ea; --dash:#a9b7c7;
  --blue:#0064e0; --blue-deep:#0457cb; --blue-tint:#e8f2fe; --orange:#d9760a; --orange-tint:#fff2e0; --green:#1f8a3b; --green-tint:#e6f4ea;
  --fh:'Inter',-apple-system,'Segoe UI',sans-serif; --fb:'Source Sans 3',-apple-system,'Segoe UI',sans-serif;
  container-type: inline-size; color: var(--text); font-family: var(--fb); font-size: 16px; line-height: 1.45; text-align: left;
}
#ithm-root *, #ithm-root *::before, #ithm-root *::after { box-sizing: border-box; }
#ithm-root button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
#ithm-root button:focus-visible, #ithm-root a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
#ithm-root svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#ithm-root small { font-size: inherit; font-weight: inherit; }

.ithm-course { max-width: 780px; margin: 0 auto; padding: 6px 18px 30px; display: flex; flex-direction: column; gap: 10px; }
.ithm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 8px; }
.ithm-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.ithm-title h2 { margin: 0; font-family: var(--fh); font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.3; }
.ithm-dates { margin: 0; display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 13px; line-height: 1.4; }
.ithm-dates div { display: block; }
.ithm-dates dt { display: inline; color: var(--muted); font-weight: 400; }
.ithm-dates dd { display: inline; margin: 0 0 0 5px; font-weight: 600; color: var(--ink); }
#ithm-root .ithm-dates dd::before, #ithm-root .ithm-dates dd::after { content: none; display: none; }   /* το Moodle βάζει κενή γραμμή πριν από κάθε dd */
/* Συνολική πρόοδος πάνω δεξιά (στη θέση του «Συνέχισε»): ποσοστό + μικρή μπάρα, από κάτω «Έχεις κάνει Ν από Μ». */
.ithm-total { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 7px 12px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); font-variant-numeric: tabular-nums; }
.ithm-total-r { display: flex; align-items: center; gap: 10px; }
.ithm-total-r b { font-family: var(--fh); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
.ithm-total .ithm-bar { width: 120px; height: 6px; }
.ithm-total-t { font-size: 12px; color: var(--muted); }
.ithm-bar { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ithm-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }

/* Πάνω από τα μαθήματα μπαίνει ΜΟΝΟ ό,τι είναι καινούργιο, σε δύο στενά «συννεφάκια»: αριστερά τα «ΝΕΟ» (πορτοκαλί), δεξιά το
   «Καλό να ξέρεις» (μπλε). Σε φαρδιά οθόνη στέκονται δίπλα-δίπλα, στο κινητό το ένα κάτω από το άλλο. Όταν δεν υπάρχει κανένα
   (#ithm-root.ithm-quiet, το βάζει το script), η γραμμή κρύβεται και η κεφαλίδα παίρνει μεγαλύτερη απόσταση από το κυρίως μάθημα. */
.ithm-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; gap: 12px 16px; margin: 2px 0 12px; }
#ithm-root.ithm-quiet .ithm-top { display: none; }
#ithm-root.ithm-quiet .ithm-head { margin-bottom: 30px; }
/* Νέα: τα ορατά «Κείμενο και πολυμέσα» της γενικής ενότητας (0). Καινούργιο = συννεφάκι αριστερά: εικονίδιο + «ΝΕΟ», τίτλος, κείμενο, «Το είδα». */
/* Οι κάρτες «ΝΕΟ» είναι οι ίδιες στοιχεία της γραμμής .ithm-top (display: contents): σειρά = 1ο νέο, «Καλό να ξέρεις», 2ο νέο.
   Έτσι σε φαρδιά οθόνη δύο νέα στέκονται δίπλα-δίπλα όταν δεν υπάρχει «Καλό να ξέρεις», αλλιώς το 2ο νέο πάει από κάτω αριστερά. */
.ithm-news { display: contents; }
.ithm-top > .ithm-news > .ithm-news-c { flex: 0 1 auto; width: min(92%, 360px); order: 2; }
.ithm-top > .ithm-news > .ithm-news-c:first-child { order: 0; }
.ithm-news-c { position: relative; padding: 10px 14px 10px; background: var(--canvas); border: 1px solid #f1d9b6; border-radius: 18px 18px 18px 5px;
  box-shadow: 0 8px 22px rgba(217, 118, 10, .15), 0 1px 3px rgba(10, 19, 23, .06); }
.ithm-news-tag { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; color: #a85a00; font-family: var(--fh); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; }
#ithm-root .ithm-news-tag svg { width: 14px; height: 14px; }
.ithm-news-b { min-width: 0; font-size: 14.5px; color: var(--text); overflow-wrap: anywhere; }
#ithm-root .ithm-news-b p, #ithm-root .ithm-news-b h3, #ithm-root .ithm-news-b h4, #ithm-root .ithm-news-b h5 { margin: 0 0 2px; font-size: 14.5px; line-height: 1.4; }
#ithm-root .ithm-news-b strong, #ithm-root .ithm-news-b b, #ithm-root .ithm-news-b h3, #ithm-root .ithm-news-b h4, #ithm-root .ithm-news-b h5 { font-family: var(--fh); font-size: 15px; font-weight: 600; color: var(--ink); }
#ithm-root .ithm-news-b a { color: var(--blue-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
#ithm-root .ithm-news-b img { max-width: 100%; height: auto; }
.ithm-news-f { display: flex; justify-content: flex-end; margin-top: 8px; }
#ithm-root button.ithm-news-x { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 4px 13px 4px 10px; border-radius: 99px;
  background: var(--orange-tint); color: #8a4a00; border: 1px solid #f0cf9f; font-family: var(--fh); font-size: 13px; font-weight: 600; white-space: nowrap; }
#ithm-root button.ithm-news-x:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
#ithm-root .ithm-news-x svg { width: 15px; height: 15px; stroke-width: 2.4; }
/* στα «Παλαιότερα νέα» (τέλος σελίδας): απλή γραμμή σε όλο το πλάτος */
.ithm-news-c.ithm-old { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); box-shadow: none; }
#ithm-root .ithm-news-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; font-size: 13px; color: var(--muted); }
#ithm-root .ithm-news-more:hover { color: var(--ink); }
#ithm-root .ithm-news-more svg { width: 14px; height: 14px; }

/* «Καλό να ξέρεις»: ΕΝΑ μικρό μήνυμα για τις εξετάσεις κάτω από τα «Νέα» (ένα νέο κάθε μέρα, tips.php).
   Loukas 23/11: «συννεφάκι», να ΜΗ μοιάζει με τις κάρτες των μαθημάτων και να φαίνεται ότι «έρχεται και φεύγει» → στενό, δεξιά,
   λευκό με σκιά και μία «μυτερή» γωνία όπως τα μηνύματα του κινητού, μπαίνει και βγαίνει από δεξιά. Χωρίς μετρητή. */
@keyframes ithm-tip-in { from { opacity: 0; translate: 36px 0; } }
.ithm-tips { display: flex; justify-content: flex-end; width: min(92%, 360px); margin-left: auto; order: 1; }
.ithm-tip { position: relative; width: 100%; padding: 10px 14px 10px; background: var(--canvas); border: 1px solid #cfe0f7; border-radius: 18px 18px 5px 18px;
  box-shadow: 0 8px 22px rgba(4, 87, 203, .14), 0 1px 3px rgba(10, 19, 23, .06); animation: ithm-tip-in .4s cubic-bezier(.2, .8, .2, 1) .15s backwards; transition: opacity .2s ease, translate .2s ease; }
.ithm-tip.ithm-tip-out { opacity: 0; translate: 36px 0; pointer-events: none; }
.ithm-tip-tag { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; color: var(--blue-deep); font-family: var(--fh); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; }
#ithm-root .ithm-tip-tag svg { width: 14px; height: 14px; }
#ithm-root .ithm-tip-t { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
#ithm-root .ithm-tip-more { display: inline-block; margin-top: 3px; font-size: 13.5px; font-weight: 600; color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
.ithm-tip-f { display: flex; justify-content: flex-end; margin-top: 8px; }
#ithm-root button.ithm-tip-ok { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 4px 13px 4px 10px; border-radius: 99px;
  background: var(--blue-tint); color: var(--blue-deep); border: 1px solid #b9d4f8; font-family: var(--fh); font-size: 13px; font-weight: 600; white-space: nowrap; }
#ithm-root button.ithm-tip-ok:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
#ithm-root .ithm-tip-ok svg { width: 15px; height: 15px; stroke-width: 2.4; }
/* στο τέλος της σελίδας, δύο μικρές κλειστές γραμμές: «Παλαιότερα νέα (N)» και «Καλό να ξέρεις: όσα διάβασες (N)» */
.ithm-news-old { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ithm-news-old + .ithm-tips-seen { margin-top: -6px; }
.ithm-tips-seen { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
#ithm-root .ithm-tips-all { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; font-size: 13px; color: var(--muted); }
#ithm-root .ithm-tips-all:hover { color: var(--ink); }
#ithm-root .ithm-tips-all svg { width: 14px; height: 14px; }
#ithm-root .ithm-tips-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
#ithm-root .ithm-tips-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); font-size: 14px; color: var(--text); }
#ithm-root .ithm-tips-list .ithm-tip-more { margin-top: 0; font-size: 13px; color: var(--blue-deep); }
#ithm-root .ithm-tips-admin { align-self: flex-start; font-size: 13px; color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
.ithm-grp, .ithm-sec, .ithm-step { scroll-margin-top: 68px; }   /* η πάνω γραμμή του Moodle μένει κολλημένη */

.ithm-list { display: flex; flex-direction: column; gap: 26px; }
.ithm-lessons { position: relative; border: 2px dashed var(--dash); border-radius: 30px; padding: 24px 12px 12px; margin-inline: -14px; display: flex; flex-direction: column; gap: 12px; }
.ithm-lessons-t { position: absolute; top: -10px; left: 22px; margin: 0; padding: 0 10px; background: var(--canvas); font-family: var(--fh); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.ithm-lessons-t .ithm-pts { color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.ithm-pts { white-space: nowrap; color: var(--h-deep, var(--blue-deep)); }
#ithm-root .ithm-pts b { font: inherit; font-weight: 700; color: inherit; }

.ithm-grp[data-hue="blue"] { --h:#0064e0; --h-deep:#0457cb; --h-tint:#dcebfd; --h-wash:#f3f8fe; --h-line:#b9d4f6; }
.ithm-grp[data-hue="teal"] { --h:#0e7c86; --h-deep:#0a5f67; --h-tint:#d8eff0; --h-wash:#f0f9f9; --h-line:#aedadd; }
.ithm-grp[data-hue="sand"] { --h:#8a6a2f; --h-deep:#6b5122; --h-tint:#f0e6d2; --h-wash:#faf6ee; --h-line:#e2d3b3; }
.ithm-grp { background: var(--h-wash); border: 1px solid var(--h-line); border-radius: 20px; display: flex; flex-direction: column; }
.ithm-grp.ithm-open { border-color: var(--h); }
.ithm-grp-h { position: relative; display: flex; align-items: center; gap: 10px 14px; padding: 14px 16px; min-height: 68px; }
.ithm-ltr { position: relative; width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--h); color: #fff; font-family: var(--fh); font-size: 18px; font-weight: 700; }
#ithm-root .ithm-grp-btn { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
#ithm-root .ithm-grp-btn::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
#ithm-root .ithm-grp-btn:focus-visible { outline: none; }
#ithm-root .ithm-grp-btn:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 2px; }
.ithm-grp-btn b { font-family: var(--fh); font-size: 18px; font-weight: 600; color: var(--ink); }
.ithm-grp-btn span.ithm-sub { font-size: 14px; color: var(--muted); }
.ithm-chev { color: var(--muted); transition: transform .2s ease; }
.ithm-open > .ithm-grp-h > .ithm-chev, #ithm-root [aria-expanded="true"] > .ithm-chev { transform: rotate(90deg); }
.ithm-grp-b { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.ithm-thumbs { display: flex; gap: 6px; flex: none; }
.ithm-thumbs img { width: 55px; height: 44px; object-fit: contain; padding: 5px; border-radius: 10px; background: var(--canvas); border: 1px solid var(--h-line); }
#ithm-root .ithm-vid { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 16px 5px 6px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--h-line); color: var(--h-deep); font-family: var(--fh); font-size: 14px; font-weight: 600; text-decoration: none; }
.ithm-vid-i { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--h); color: #fff; }

.ithm-pic { position: relative; flex: none; width: 58px; height: 48px; border-radius: 12px; background: var(--canvas); border: 1px solid var(--h-line, var(--line)); display: grid; place-items: center; }
.ithm-pic img { max-width: 44px; max-height: 36px; display: block; }
.ithm-pic-n { position: absolute; left: -7px; top: -7px; min-width: 28px; height: 21px; padding: 0 5px; border-radius: 99px; border: 2px solid var(--canvas); display: grid; place-items: center; background: var(--h, var(--blue)); color: #fff; font-family: var(--fh); font-size: 11px; font-weight: 700; }
.ithm-num { position: relative; width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--fh); font-weight: 600; font-size: 14px; background: var(--h-tint, var(--blue-tint)); color: var(--h-deep, var(--blue-deep)); }
#ithm-root .ithm-num > svg { width: 18px; height: 18px; }
.ithm-tick { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); border: 2px solid var(--canvas); display: grid; place-items: center; color: #fff; }
#ithm-root .ithm-tick svg { width: 11px; height: 11px; stroke-width: 3.5; }
.ithm-done > .ithm-sec-h .ithm-pic, .ithm-done > .ithm-sec-h .ithm-num { box-shadow: 0 0 0 2px var(--green); }

.ithm-sec { border: 1px solid var(--h-line, var(--line)); border-radius: 14px; background: var(--canvas); }
.ithm-sec.ithm-open { border-color: var(--h, var(--blue)); box-shadow: 0 0 0 1px var(--h, var(--blue)); }
#ithm-root .ithm-sec-h { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px; }
.ithm-sec-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ithm-sec-t b { font-family: var(--fh); font-size: 18px; font-weight: 600; color: var(--ink); }
.ithm-sec-t span.ithm-sub { font-size: 14px; color: var(--muted); }
.ithm-prog { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ithm-prog .ithm-bar { width: 52px; height: 4px; }
.ithm-sec-b { padding: 2px 16px 16px; display: flex; flex-direction: column; gap: 8px; }

.ithm-step { background: var(--soft); border-radius: 12px; }
#ithm-root .ithm-step-h { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; }
.ithm-chip { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; font-family: var(--fh); font-size: 13px; font-weight: 700; background: var(--ink); color: #fff; }
.ithm-step.ithm-done .ithm-chip { background: var(--green); }
.ithm-step.ithm-extra .ithm-chip { background: var(--canvas); color: var(--muted); border: 1px dashed var(--muted); }
.ithm-step-h b { font-family: var(--fh); font-size: 16px; font-weight: 600; color: var(--ink); flex: 1; min-width: 0; }
.ithm-step-h b span { display: block; font-family: var(--fb); font-size: 13px; font-weight: 400; color: var(--muted); }
.ithm-step-h em { font-style: normal; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ithm-step-b { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; }

#ithm-root .ithm-acts { list-style: none; margin: 0; padding: 0; background: var(--canvas); border-radius: 10px; }
.ithm-act { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 52px; }
.ithm-act + .ithm-act { border-top: 1px solid var(--line); }
.ithm-ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue-deep); }
.ithm-ic.ithm-quiz { background: var(--green-tint); color: var(--green); }
.ithm-ic.ithm-sim { background: var(--orange-tint); color: var(--orange); }
.ithm-act-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#ithm-root .ithm-act-t a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
#ithm-root .ithm-act-t a:hover { color: var(--blue); text-decoration: underline; }
#ithm-root .ithm-act-t a::after { content: ""; position: absolute; inset: 0; }
.ithm-act { position: relative; }
.ithm-st { width: 26px; height: 26px; border-radius: 50%; flex: none; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; }
#ithm-root .ithm-st svg { width: 15px; height: 15px; stroke-width: 3; opacity: 0; }
.ithm-act.ithm-done .ithm-st { background: var(--green); border-color: var(--green); }
#ithm-root .ithm-act.ithm-done .ithm-st svg { opacity: 1; }
.ithm-subh { margin: 6px 4px 0; font-size: 13px; font-weight: 600; color: var(--muted); list-style: none; }
.ithm-acts .ithm-subh { margin: 0; padding: 12px 12px 2px; border-top: 1px solid var(--line); }
.ithm-acts .ithm-subh:first-child { border-top: 0; }
.ithm-act.ithm-ref .ithm-ic { background: var(--soft); color: var(--muted); }
#ithm-root .ithm-act.ithm-ref .ithm-act-t a { font-weight: 400; color: var(--text); }
.ithm-note { margin: 0; padding: 10px 12px; background: var(--canvas); border-radius: 10px; font-size: 14px; color: var(--muted); }
.ithm-rich { background: var(--canvas); border-radius: 10px; padding: 12px 14px; min-width: 0; overflow-wrap: anywhere; }
.ithm-rich > :first-child { margin-top: 0 !important; }
.ithm-rich > :last-child { margin-bottom: 0 !important; }

.ithm-anat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 16px; }
.ithm-anat div { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--canvas); border-radius: 10px; border-top: 3px solid var(--line); }
.ithm-anat div.ithm-p { border-top-color: var(--h, var(--blue)); }
.ithm-anat div + div::before { content: "›"; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 12px; text-align: center; font-size: 18px; color: var(--muted); }
.ithm-anat i { font-style: normal; font-family: var(--fh); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.ithm-anat b { font-family: var(--fh); font-size: 16px; font-weight: 600; color: var(--ink); }
.ithm-anat span { font-size: 13px; color: var(--muted); }
.ithm-anat em { margin-top: 4px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--h-deep, var(--blue-deep)); }

@container (min-width: 900px)  { .ithm-course { max-width: 860px; zoom: 1.1; } }
@container (min-width: 1150px) { .ithm-course { max-width: 900px; zoom: 1.22; } }
@container (min-width: 1400px) { .ithm-course { max-width: 940px; zoom: 1.36; } }
@container (max-width: 560px) {
  .ithm-course { padding: 4px 12px 24px; }
  /* Κινητό: αριστερά ΕΝΑ μπλοκ (τίτλος, Εξετάσεις, Αιτήσεις, κολλητά μεταξύ τους), δεξιά το πλαίσιο της προόδου. */
  .ithm-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 12px; }
  .ithm-title { gap: 1px; }
  .ithm-title h2 { font-size: 16px; }
  .ithm-dates { flex-direction: column; flex-wrap: nowrap; }
  .ithm-total { margin: 0; padding: 6px 9px 7px; }
  .ithm-total .ithm-bar { width: 52px; }
  .ithm-total-r { gap: 7px; }
  .ithm-total-r b { font-size: 17px; }
  .ithm-list { gap: 20px; }
  .ithm-top > .ithm-news > .ithm-news-c, .ithm-tips { width: min(90%, 330px); }
  .ithm-top > .ithm-news > .ithm-news-c { order: 0; }   /* κινητό: πρώτα τα «ΝΕΟ» (αριστερά), μετά το «Καλό να ξέρεις» (δεξιά) */
  #ithm-root button.ithm-tip-ok, #ithm-root button.ithm-news-x { min-height: 38px; padding: 6px 16px 6px 12px; font-size: 14px; }
  #ithm-root.ithm-quiet .ithm-head { margin-bottom: 22px; }
  .ithm-lessons { padding: 20px 8px 8px; border-radius: 22px; margin-inline: -10px; }
  .ithm-grp { border-radius: 16px; }
  .ithm-grp-h { flex-wrap: wrap; padding: 12px; }
  #ithm-root .ithm-grp-btn { flex-basis: 110px; }
  .ithm-grp-btn b, .ithm-sec-t b { font-size: 16px; }
  .ithm-grp-b { padding: 0 6px 8px; }
  .ithm-thumbs, #ithm-root .ithm-vid { order: 9; flex: 1 1 100%; }
  #ithm-root .ithm-sec-h { gap: 11px; padding: 12px; }
  .ithm-sec-b { padding: 0 8px 10px; }
  .ithm-prog .ithm-bar { display: none; }
  .ithm-pic { width: 50px; height: 44px; }
  .ithm-pic img { max-width: 38px; max-height: 32px; }
  .ithm-anat { grid-template-columns: repeat(2, 1fr); }
  .ithm-anat div:nth-child(3)::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ithm-chev { transition: none; } .ithm-tip { animation: none; transition: none; } }

.ithm-has-anat .itha-exam-facts { display: none; }
/* μέσα σε βήμα: η μεγάλη επικεφαλίδα του παλιού label δεν χρειάζεται (την αντικαθιστά ο τίτλος του βήματος) */
.ithm-step .ithm-rich div[style*="font-size: 1.6rem"] { display: none; }
.ithm-step .ithm-rich div[style*="margin-top: 40px"] { margin-top: 0 !important; }

/* ---- Οδηγία χωρίς δικό της βήμα (23/11, CFG.guide στο ithm-course.js): τα βήματα μένουν 1 Ύλη, 2 Κάνε τα tests, 3 Προσομοίωση.
   .ithm-guide-top = λεπτή γραμμή πάνω από τα βήματα· αφού ακουστεί η οδηγία, η γραμμή κατεβαίνει κάτω από τα βήματα (.ithm-guide-bot).
   .ithm-gplay = κουμπί που παίζει την οδηγία επιτόπου (γεμίζει με την πρόοδο, --p)· .ithm-heard = την άκουσε, γίνεται ήσυχο.
   .ithm-gmore = «Τι ζητάνε στις εξετάσεις» (ανοίγει το πλαίσιο με τους αριθμούς και τη βαθμολόγηση, .ithm-gbox). ---- */
#ithm-root button.ithm-gplay { --p: 0%; position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; max-width: 100%; padding: 4px 14px 4px 5px;
  border-radius: 999px; border: 1px solid var(--h-line, #b9d4f6); color: var(--h-deep, var(--blue-deep)); font-family: var(--fh); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums; background: linear-gradient(90deg, var(--h-tint, var(--blue-tint)) var(--p), var(--canvas) var(--p)); }
#ithm-root button.ithm-gplay:not(.ithm-heard):not(.ithm-playing) { background: var(--h-tint, var(--blue-tint)); }
#ithm-root button.ithm-gplay:hover { border-color: var(--h, var(--blue)); }
.ithm-gplay-i { position: relative; width: 26px; height: 26px; border-radius: 50%; flex: none; background: var(--h, var(--blue)); }
.ithm-gplay-i::before { content: ""; position: absolute; left: 10px; top: 8px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.ithm-gplay.ithm-playing .ithm-gplay-i::before { left: 9px; top: 8px; width: 3px; height: 10px; border: 0; background: #fff; box-shadow: 5px 0 0 #fff; }
/* την άκουσε: γκρι, χωρίς γέμισμα (όσο παίζει ξανά, παίρνει πάλι το χρώμα του μαθήματος) */
#ithm-root button.ithm-gplay.ithm-heard:not(.ithm-playing) { border-color: var(--line); color: var(--muted); font-weight: 500; }
.ithm-gplay.ithm-heard:not(.ithm-playing) .ithm-gplay-i { background: var(--canvas); box-shadow: inset 0 0 0 1.5px var(--dash); }
.ithm-gplay.ithm-heard:not(.ithm-playing) .ithm-gplay-i::before { border-left-color: var(--muted); }
/* οι γραμμές της οδηγίας μέσα στο ανοιχτό μάθημα */
.ithm-guide { display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-margin-top: 68px; }
.ithm-guide-r { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.ithm-guide-top { padding: 0 2px 2px; }
.ithm-guide-bot { margin-top: 2px; padding: 0 4px; }
#ithm-root .ithm-gmore { display: inline-flex; align-items: center; gap: 3px; min-height: 32px; font-size: 13.5px; color: var(--muted); }
#ithm-root .ithm-gmore:hover { color: var(--ink); }
#ithm-root .ithm-gmore svg { width: 14px; height: 14px; }
.ithm-gbox { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--soft); border-radius: 12px; }
.ithm-gbox .ithm-rich a.itha-say { display: none !important; }   /* τον ήχο τον παίζει το κουμπί της γραμμής */
.ithm-gbox .ithm-rich div[style*="font-size: 1.6rem"] { display: none; }
.ithm-gbox .ithm-rich div[style*="margin-top: 40px"] { margin-top: 0 !important; }
/* Γραπτά: το διάγραμμα του θέματος αντικαθιστά τους 4 αριθμούς και τη φράση του label· μένει το «Περισσότερα για τη βαθμολόγηση» */
.ithm-gbox.ithm-has-anat .itha-exam-facts { display: block; }
.ithm-gbox.ithm-has-anat .itha-exam-facts > div:first-child, .ithm-gbox.ithm-has-anat .itha-exam-facts > p { display: none !important; }   /* το label έχει inline display */
/* μόλις ακουστεί, η γραμμή εμφανίζεται κάτω από τα βήματα με μικρή κίνηση, για να φανεί πού πήγε */
@keyframes ithm-guide-in { from { opacity: 0; translate: 0 -14px; } }
.ithm-guide-new { animation: ithm-guide-in .5s cubic-bezier(.2, .8, .2, 1); }
@container (max-width: 560px) {
  #ithm-root button.ithm-gplay { min-height: 40px; font-size: 14px; }
  #ithm-root .ithm-gmore { min-height: 38px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ithm-guide-new { animation: none; } }

/* ο κύκλος ολοκλήρωσης είναι κουμπί: ο μαθητής τον πατά όταν τελειώσει */
#ithm-root button.ithm-st { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; flex: none; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; background: var(--canvas); cursor: pointer; }
#ithm-root button.ithm-st::before { content: ""; position: absolute; inset: -11px; }
#ithm-root button.ithm-st:hover { border-color: var(--green); }
#ithm-root .ithm-act.ithm-done button.ithm-st { background: var(--green); border-color: var(--green); }

/* ---- μέσα σε quiz, σε ΟΛΑ τα μαθήματα (το script βάζει body.ithm-quiz στη σελίδα προσπάθειας): πλοήγηση κολλημένη κάτω ---- */
body.ithm-quiz #responseform .submitbtns { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; justify-content: space-between; align-items: center;
  margin: 16px 0 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #dbe2ea; box-shadow: 0 -6px 16px rgba(10, 19, 23, .07); }
body.ithm-quiz #responseform .submitbtns .mod_quiz-next-nav { flex: 1 1 auto; min-height: 48px; margin: 0; font-weight: 600; font-size: 1rem; }
body.ithm-quiz #responseform .submitbtns .mod_quiz-prev-nav { flex: 0 1 auto; min-height: 48px; margin: 0; }
/* το στρογγυλό «?» του Moodle ανεβαίνει πάνω από τη γραμμή πλοήγησης, για να μη σκεπάζει το «Επόμενη ερώτηση» στο κινητό */
body.ithm-quiz .btn-footer-popover { bottom: 88px; }
/* χάρτες Γεωγραφίας σε desktop: ο χάρτης αφήνει χώρο και για τη γραμμή πλοήγησης (βλ. itha-course.css, 100vh - 110px) */
@media (min-width: 768px) {
  body.ithm-quiz .que.ddmarker .ddarea { max-width: min(100%, max(560px, calc((100vh - 185px) * 1.1))); }
}
