/* Προσθήκες για το WordPress πάνω στο site.css: εσωτερικές σελίδες, περιεχόμενο editor, λίστες. */

/* Προσβασιμότητα */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sp-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--navy); color: var(--white); font-weight: 600; text-decoration: none; }
.sp-skip:focus { top: 12px; color: var(--white); }

/* Admin bar (μόνο για συνδεδεμένους): το sticky header μένει κάτω από αυτό */
.admin-bar .sp-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .sp-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .sp-header { top: 0; } }

/* Μενού από το WordPress: τρέχουσα σελίδα + CTA (κλάση «sp-nav-cta» στο στοιχείο του μενού) */
.sp-nav .current-menu-item > a, .sp-nav .current_page_parent > a { background: var(--sky-soft); color: var(--navy-ink); }
.sp-nav li.sp-nav-cta > a { background: var(--navy); color: var(--white); margin-left: 6px; }
.sp-nav li.sp-nav-cta > a:hover { background: var(--navy-ink); color: var(--white); }
@media (max-width: 960px) {
  .sp-nav li.sp-nav-cta > a { margin: 8px 0 0; text-align: center; }
}

/* Κεφαλίδα εσωτερικών σελίδων */
.sp-page-head { background: linear-gradient(180deg, var(--sky-soft) 0%, var(--paper) 100%); padding-block: clamp(36px, 6vw, 72px) clamp(20px, 3vw, 32px); overflow-x: clip; }
.sp-page-head h1 { font-size: clamp(28px, 4.6vw, 46px); }
.sp-page-head p { color: var(--muted); font-size: clamp(16px, 1.7vw, 18px); margin-top: 12px; max-width: 40em; }
.sp-page-head .sp-meta { margin-bottom: 12px; }
.sp-wrap--text { max-width: calc(760px + 2 * var(--gutter)); }
.sp-section--tight { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 80px); }
.sp-h3 { font-size: clamp(18px, 2vw, 21px); font-weight: 600; }
.sp-empty { padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px dashed #C9CEDB; color: var(--muted); }
.sp-back { margin-top: 32px; font-weight: 600; }
.sp-links { display: grid; gap: 8px; padding-left: 20px; font-size: 17px; }
.sp-notify-section { padding-top: 0; }
.sp-notify-actions { display: grid; gap: 12px; }
.sp-cal-alt { margin-top: 12px !important; font-size: 14px; }

/* Λίστες: η 3η κάρτα δεν κρύβεται (κρύβεται μόνο στην αρχική) */
.sp-grid--list { row-gap: 24px; }
@media (max-width: 960px) {
  .sp-grid.sp-grid--list > :nth-child(3) { display: flex; }
}
.sp-photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-event h2 a, .sp-event h3 a { color: inherit; text-decoration: none; }
.sp-event h2 a:hover, .sp-event h3 a:hover { text-decoration: underline; }
.sp-event h2 { font-size: 18px; font-weight: 600; }

/* Chips-σύνδεσμοι (φίλτρα, κατηγορίες) */
a.sp-tab { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
a.sp-tab:hover { border-color: var(--sky); color: var(--navy-ink); }
.sp-tab[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.sp-tab[aria-current="page"]:hover { color: var(--white); }
.sp-filters { display: grid; gap: 4px; margin-bottom: 8px; }
.sp-filters .sp-tabs { margin-bottom: 12px; }

/* Εκδήλωση: στοιχεία */
.sp-event--facts { margin-bottom: 24px; background: var(--white); }
.sp-event-when { font-weight: 600; color: var(--navy-ink); font-size: 17px !important; }

/* Ανάγκη: στοιχεία */
.sp-need-facts { display: grid; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); margin-bottom: 24px; }

/* Χορηγοί */
.sp-sponsors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 14px; }
.sp-sponsors li > * { display: grid; place-items: center; height: 110px; padding: 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-align: center; font-weight: 600; color: var(--navy-ink); text-decoration: none; }
.sp-sponsors img { max-height: 70px; width: auto; object-fit: contain; }

/* Υλικό μελέτης */
.sp-materials { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sp-material { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sp-material-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy-ink); }
.sp-material-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-material-play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); background: rgba(27, 43, 99, .25); }
.sp-material-play svg { width: 52px; height: 52px; }
.sp-material-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.sp-material-body p { color: var(--muted); font-size: 15px; }
.sp-material-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; }
.sp-material-link svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 960px) { .sp-materials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .sp-materials { grid-template-columns: minmax(0, 1fr); } }

/* Σελιδοποίηση */
.sp-pagination { margin-top: 32px; }
.sp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-weight: 600; color: var(--ink); }
.sp-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Κείμενο από τον editor */
.sp-feature { margin: 0 0 28px; }
.sp-feature img { border-radius: var(--radius-lg); width: 100%; }
.sp-prose { font-size: 17px; line-height: 1.75; }
.sp-prose > * + * { margin-top: 1.1em; }
.sp-prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 1.8em; }
.sp-prose h3 { font-size: clamp(19px, 2.1vw, 22px); margin-top: 1.5em; }
.sp-prose h2 + *, .sp-prose h3 + * { margin-top: .6em; }
.sp-prose ul, .sp-prose ol { padding-left: 1.3em; }
.sp-prose li + li { margin-top: .35em; }
.sp-prose a { overflow-wrap: anywhere; }
.sp-prose img { border-radius: 14px; }
.sp-prose figure { margin-inline: 0; }
.sp-prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.sp-prose blockquote { margin-inline: 0; padding: 16px 20px; border-left: 4px solid var(--sky); background: var(--sky-soft); border-radius: 0 14px 14px 0; }
.sp-prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.sp-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.sp-prose th, .sp-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.sp-prose .wp-block-button__link { display: inline-flex; min-height: 48px; align-items: center; padding: 12px 22px; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 700; text-decoration: none; }
.sp-prose .wp-block-embed__wrapper { position: relative; }
.sp-prose .wp-block-embed iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; }
.sp-prose .wp-block-gallery { gap: 10px; }
.sp-prose .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.sp-prose .wp-block-file__button { border-radius: 999px; background: var(--navy); color: var(--white); padding: 8px 16px; font-weight: 600; text-decoration: none; }
.sp-prose .has-text-align-center { text-align: center; }
.sp-prose .alignwide, .sp-prose .alignfull { margin-inline: 0; }
