/* ITHK — «Ξεκινάω εδώ» ως βίντεο με κεφάλαια (23/11/2026). namespace: ithk-
   Τα στοιχεία τα φτιάχνει το ithk-kefalaia.js (δείγμα μόνο στο μάθημα 17)· χωρίς το script μένει το κείμενο του Moodle όπως είναι.
   Δύο αχνά χρώματα: «Το μάθημα» μπλε, «Οι εξετάσεις» ζεστό (ίδιο με την ομάδα «Πριν από τις εξετάσεις» της αρχικής). */
.ithk-in { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ithk-box { --k-tint: #e8f2fe; --k-ink: #0457cb; --k-line: #b9d6fb; container-type: inline-size; margin: 4px 0 14px; font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; color: #1c1e21; text-align: left; }
.ithk-box[data-g="e"], .ithk-grp[data-g="e"] { --k-tint: #fff2e0; --k-ink: #9a5200; --k-line: #f3cf9c; }
.ithk-grp[data-g="p"] { --k-tint: #e8f2fe; --k-ink: #0457cb; --k-line: #b9d6fb; }
#ithk-box button { font-family: inherit; cursor: pointer; }
#ithk-box button:focus-visible { outline: 3px solid #0064e0; outline-offset: 2px; }

.ithk-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; position: sticky; top: 76px; }
.ithk-stage { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--k-tint); border: 1px solid var(--k-line); display: flex; }
.ithk-video { width: 100%; height: 100%; background: #000; display: block; }
.ithk-card { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; min-width: 0; }
.ithk-tag { padding: 3px 10px; border-radius: 99px; background: #fff; color: var(--k-ink); font-size: 12px; font-weight: 600; }
.ithk-card strong { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: #0a1317; }
.ithk-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ithk-facts span { display: flex; flex-direction: column; align-items: center; min-width: 84px; max-width: 150px; padding: 8px 12px; border-radius: 12px; background: #fff; }
.ithk-facts b { font-size: 22px; font-weight: 700; line-height: 1.15; color: var(--k-ink); font-variant-numeric: tabular-nums; }
.ithk-facts i { font-style: normal; font-size: 12px; line-height: 1.3; color: #5d6c7b; }
#ithk-box .ithk-play { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 99px; background: var(--k-ink); color: #fff; font-size: 14px; font-weight: 600; }

.ithk-line { padding: 10px 14px; border: 1px solid #dbe2ea; border-radius: 12px; background: #fff; }
.ithk-line span { display: block; font-size: 12px; color: #5d6c7b; }
.ithk-line p { margin: 2px 0 0; font-family: 'Source Sans 3', -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.45; color: #0a1317; }
.ithk-line .ithk-extra { margin-top: 6px; padding-top: 6px; border-top: 1px solid #e4eaf0; font-size: 14px; color: #1c1e21; }
#ithk-box .ithk-next { display: flex; align-items: baseline; gap: 8px; align-self: flex-start; max-width: 100%; min-height: 40px; padding: 8px 14px; border: 1.5px solid #9fb0c3; border-radius: 10px; background: #fff; color: #0a1317; font-size: 14px; text-align: left; }
#ithk-box .ithk-next span { flex: none; color: #5d6c7b; }
#ithk-box .ithk-next b { font-weight: 600; min-width: 0; }
#ithk-box .ithk-next b::after { content: "\00a0›"; }
#ithk-box .ithk-next:hover { border-color: #0064e0; color: #0457cb; }

.ithk-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ithk-grp { display: flex; flex-direction: column; gap: 5px; }
.ithk-grp-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; padding: 0 2px 1px; }
.ithk-grp-h b { font-size: 14px; font-weight: 600; color: var(--k-ink); }
.ithk-grp-h span { font-size: 12px; color: #5d6c7b; }
#ithk-box .ithk-row { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 6px 10px; border: 2px solid transparent; border-radius: 10px; background: var(--k-tint); color: var(--k-ink); text-align: left; }
#ithk-box .ithk-row:hover { border-color: var(--k-line); }
#ithk-box .ithk-row.ithk-on { border-color: var(--k-ink); }
.ithk-num { flex: none; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ithk-t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; color: #0a1317; }
#ithk-box .ithk-row.ithk-on .ithk-t { font-weight: 600; }
.ithk-d { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; }

.ithk-old { margin: 6px 0 0; padding: 8px 12px; border: 1px dashed #a9b7c7; border-radius: 10px; }
.ithk-old > summary { cursor: pointer; font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; font-size: 13px; color: #5d6c7b; }
.ithk-old[open] > summary { margin-bottom: 10px; }

@container (max-width: 640px) {
  .ithk-in { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ithk-main { position: static; }
  .ithk-stage { aspect-ratio: auto; min-height: 190px; }
  .ithk-card strong { font-size: 19px; }
  .ithk-facts span { min-width: 72px; padding: 7px 10px; }
  .ithk-facts b { font-size: 19px; }
  #ithk-box .ithk-next { align-self: stretch; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 700px) { .ithk-in { grid-template-columns: minmax(0, 1fr); } .ithk-stage { aspect-ratio: auto; min-height: 190px; } }
}
