/* ============================================================
   ΕΠΙΓΝΩΣΙΣ «Οδηγοί & Νέα» — στυλ άρθρων (Design System ΕΠΙΓΝΩΣΙΣ)
   Όλα κάτω από .eb — δεν αγγίζει τίποτε άλλο στο site.
   Tokens (--brand, --ink, --font-display …) από το custom.less του site.
   Κουτιά μέσα στο κείμενο (Additional CSS class στο group):
   eb-glance «Με μια ματιά» · eb-note · eb-tip · eb-warn · eb-steps · eb-expert «Το σχόλιο του ειδικού»
   ============================================================ */
.eb { --eb-read: 720px; color: var(--ink); font-family: var(--font-sans); }
.eb *, .eb *::before, .eb *::after { box-sizing: border-box; }
.eb-wrap { max-width: 1072px; margin: 0 auto; padding: 0 20px; }
.eb-wrap--wide { max-width: 1240px; }

/* ---------- Κεφαλίδα ---------- */
.eb-hero { padding-top: 40px; }
.eb-hero > * { max-width: 860px; }
.eb-kicker { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 16px; font: 600 13px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.eb-kicker a { color: var(--brand); text-decoration: none; }
.eb-kicker a:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.eb h1.eb-title { font: 600 clamp(30px, 4.6vw, 44px)/1.15 var(--font-display); letter-spacing: -.01em; text-wrap: balance; color: var(--ink); margin: 0 0 16px; }
.eb-lead { font-size: 20px; line-height: 1.55; color: var(--ink-muted); margin: 0 0 20px; }
.eb-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--ink-muted); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.eb-meta b { color: var(--ink); font-weight: 600; }
.eb-cover { margin: 28px auto 0; max-width: 1072px; padding: 0 20px; }
.eb-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-alt, #f4f6f3); }

/* ---------- Διάταξη: πλαϊνή στήλη + κείμενο ---------- */
.eb-layout { max-width: 1072px; margin: 0 auto; padding: 0 20px 72px; }
.eb-side { display: none; }
@media (min-width: 1100px) {
  .eb-layout { display: grid; grid-template-columns: 248px minmax(0, var(--eb-read)); gap: 64px; justify-content: center; }
  .eb-side { display: block; padding-top: 40px; }
  .eb-side-in { position: sticky; top: 100px; }
  .eb-body .eb-toc { display: none; }
}
.eb-side-h { font: 600 12px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; }
.eb-side ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.eb-side li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.35; color: var(--ink-muted); text-decoration: none; }
.eb-side li a:hover { color: var(--ink); }
.eb-side li a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.eb-side-cta { margin-top: 28px; padding: 20px; border-radius: var(--radius-lg); background: var(--brand-tint); }
.eb-side-cta p { margin: 0 0 12px; font-weight: 600; line-height: 1.35; color: var(--ink); }
/* Το .ep-btn του site έχει σταθερό ύψος (42px)· στη στενή στήλη (248px) το κείμενο σπάει → αυτόματο ύψος, στο κέντρο. */
.eb .eb-side-cta .ep-btn { height: auto; min-height: 44px; padding: 10px 12px; font-size: 15px; line-height: 1.3; text-align: center; text-wrap: balance; white-space: normal; }

/* ---------- Σώμα ---------- */
.eb-body { max-width: var(--eb-read); padding-top: 32px; font-size: 18px; line-height: 1.7; }
@media (max-width: 1099px) { .eb-body { margin: 0 auto; } }
.eb-body > * + * { margin-top: 1.1em; }
.eb-body p { margin: 0; }
.eb-body p:empty { display: none; }
.eb-body h2 { font: 600 28px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--ink); margin: 2.2em 0 .6em; scroll-margin-top: 100px; text-wrap: balance; }
.eb-body h3 { font: 600 20px/1.35 var(--font-sans); color: var(--ink); margin: 1.8em 0 .5em; }
.eb-body h2 + *, .eb-body h3 + * { margin-top: 0; }
.eb-body a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.eb-body a:hover { color: var(--brand-strong); }
.eb-body strong { font-weight: 700; color: var(--ink); }
.eb-body ul, .eb-body ol { padding-left: 1.3em; margin: 0; }
.eb-body li + li { margin-top: .45em; }
.eb-body li::marker { color: var(--ink-muted); }
.eb-body img { max-width: 100%; height: auto; border-radius: var(--radius-lg); }
.eb-body figure { margin: 2em 0; }
.eb-body figcaption { font-size: 14px; color: var(--ink-muted); margin-top: 8px; }
.eb-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); font: italic 400 20px/1.6 var(--font-display); color: var(--ink); }
.eb-body blockquote p { margin: 0; }
.eb-body .wp-block-group__inner-container { display: contents; }

/* πίνακες: κύλιση στο κινητό, αριθμοί σε στήλη */
.eb-body .wp-block-table { overflow-x: auto; margin: 1.6em 0; }
.eb-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.eb-body th { font: 600 13px/1.3 var(--font-sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); text-align: left; border-bottom: 2px solid var(--ink); padding: 10px 12px; }
.eb-body td { border-bottom: 1px solid var(--line); padding: 12px; vertical-align: top; }
.eb-body .wp-block-table figcaption { text-align: left; }

/* περιεχόμενα στο κινητό */
.eb-toc { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 18px; margin: 1.4em 0; }
.eb-toc summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.eb-toc ol { margin: 0 0 16px; }
.eb-toc a { text-decoration: none; }

/* ---------- Κουτιά ---------- */
.eb-body .eb-glance, .eb-body .eb-note, .eb-body .eb-tip, .eb-body .eb-warn, .eb-body .eb-steps, .eb-body .eb-expert { border-radius: var(--radius-lg); padding: 22px 26px; margin: 1.6em 0; }
.eb-glance, .eb-note, .eb-tip, .eb-warn, .eb-expert { font-size: 17px; line-height: 1.6; }
.eb-glance > :first-child:not(.wp-block-group__inner-container), .eb-glance > .wp-block-group__inner-container > :first-child,
.eb-expert > :first-child:not(.wp-block-group__inner-container), .eb-expert > .wp-block-group__inner-container > :first-child {
  font: 600 13px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; }
.eb-body .eb-glance { background: var(--surface-alt, #f4f6f3); }
.eb-body > .eb-glance:first-child { margin-top: 0; } /* μόνο όταν είναι το πρώτο στοιχείο· μετά από εισαγωγή κρατά το κενό 1.6em */
.eb-glance ul { list-style: none; padding: 0; }
.eb-glance li { position: relative; padding-left: 30px; }
.eb-glance li::before { content: ""; position: absolute; left: 0; top: .38em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.eb-body .eb-note { background: var(--brand-tint); }
.eb-body .eb-tip { background: var(--surface-alt, #f4f6f3); border-left: 4px solid var(--brand); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.eb-body .eb-warn { background: var(--warning-tint, #fff4dc); border-left: 4px solid var(--warning, #a15c00); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.eb-note p:first-child > strong:first-child, .eb-tip p:first-child > strong:first-child, .eb-warn p:first-child > strong:first-child { display: block; margin-bottom: 4px; }
.eb-body ul.eb-opts { list-style: none; padding-left: 0; }
.eb-body ul.eb-opts li { margin: .25em 0; }
.eb-body .eb-expert { background: var(--surface-alt, #f4f6f3); }
.eb-expert p:not(:first-child) { font: italic 400 19px/1.6 var(--font-display); }
.eb-body .eb-steps { padding: 0; }
.eb-steps ol { list-style: none; counter-reset: eb; padding: 0; }
.eb-steps li { counter-increment: eb; position: relative; padding: 0 0 0 48px; min-height: 34px; }
.eb-steps li + li { margin-top: 1em; }
.eb-steps li::before { content: counter(eb); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 600 16px/34px var(--font-sans); text-align: center; }

/* ---------- CTA τέλους ---------- */
.eb-cta { background: var(--brand-strong); color: #fff; border-radius: var(--radius-lg); padding: 32px; margin: 2.4em 0 0; }
.eb-cta p { margin: 0; color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.55; }
.eb-cta .eb-cta-k { font: 600 13px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: #cfe3d9; margin-bottom: 8px; }
.eb-cta .eb-cta-t { font: 600 26px/1.25 var(--font-display); color: #fff; margin-bottom: 10px; text-wrap: balance; }
.eb-cta .ep-btn { margin-top: 20px; }
.eb .eb-btn-light { background: #fff; color: var(--brand-strong) !important; }
.eb .eb-btn-light:hover { background: var(--brand-tint); }
.eb-sources { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.eb-sources a { color: inherit; }

/* ---------- Κάρτες (σχετικά + σελίδα «Οδηγοί & Νέα») ---------- */
.eb-more { background: var(--surface-alt, #f4f6f3); padding: 56px 0; }
.eb-more-h { font: 600 28px/1.25 var(--font-display); color: var(--ink); margin: 0 0 24px; }
.eb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.eb-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface-raised, #fff); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none !important; color: var(--ink) !important; transition: border-color .15s ease; }
.eb-card:hover { border-color: var(--brand); }
.eb-card-num { font: 600 14px/1 var(--font-sans); color: var(--brand); letter-spacing: .04em; }
.eb-card-date { font-size: 13px; color: var(--ink-muted); }
.eb-card-t { font: 600 20px/1.3 var(--font-sans); text-wrap: balance; }
.eb-card-p { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.eb-more-all { margin: 24px 0 0; }
.eb-more-all a { color: var(--brand); font-weight: 600; }
.eb-index-sec + .eb-index-sec { margin-top: 56px; }
.eb-index-sec { scroll-margin-top: 100px; }
/* Διάταξη «dipla»: Οδηγοί αριστερά (2 στήλες καρτών), Νέα δεξιά (στενή στήλη, σταθερή στο scroll) · κάτω από 960px η μία κάτω από την άλλη */
.eb-news-list { display: flex; flex-direction: column; gap: 14px; }
.eb-news-list .eb-card { padding: 18px 20px; gap: 6px; }
.eb-news-list .eb-card-t { font-size: 17px; }
.eb-news-list .eb-card-p { font-size: 14px; }
@media (min-width: 960px) {
  .eb-index--dipla { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .eb-index--dipla .eb-index-sec + .eb-index-sec { margin-top: 0; }
  .eb-index--dipla .eb-index-news { position: sticky; top: 100px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface-alt, #f4f6f3); }
  .eb-index--dipla .eb-index-news .eb-more-h { font-size: 22px; margin-bottom: 16px; }
  .eb-index--dipla .eb-index-main .eb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .eb-hero { padding-top: 24px; }
  .eb-lead { font-size: 18px; }
  .eb-body { font-size: 17px; }
  .eb-body h2 { font-size: 24px; }
  .eb-cta { padding: 24px; }
  .eb-cta .ep-btn { width: 100%; }
  .eb-body .eb-glance, .eb-body .eb-note, .eb-body .eb-expert { padding: 18px 20px; }
}
