/* ==========================================================
   Κλινική ψυχανάλυση — κοινό stylesheet
   Χρώματα και γραμματοσειρές ορίζονται στο :root
   ========================================================== */
:root {
  --paper: #EEF0EC;      /* φόντο: ανοιχτή ομίχλη */
  --paper-2: #E1E6E0;    /* δευτερεύουσες επιφάνειες */
  --surface: #F7F8F5;    /* παράθυρα, πεδία */
  --ink: #1E2A2F;        /* κείμενο */
  --ink-soft: #4F5E63;   /* δευτερεύον κείμενο */
  --teal: #2F5D62;       /* κύριο χρώμα */
  --plum: #6B3F5A;       /* τόνος έμφασης */
  --line: rgba(30, 42, 47, .15);

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.01em;
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--plum); }

:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
  box-shadow: none !important;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; z-index: 2000;
}
.skip-link:focus { left: 1rem; top: 1rem; color: var(--paper); }

/* ---------- Πλοήγηση ---------- */
.site-nav {
  background: rgba(238, 240, 236, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
}
.site-nav .navbar-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ink);
}
.brand-role {
  display: block;
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--ink-soft);
}
.site-nav .nav-link {
  color: var(--ink-soft);
  padding: .5rem .9rem !important;
  position: relative;
}
.site-nav .nav-link:hover { color: var(--ink); }
.site-nav .nav-link.active { color: var(--ink); }
.site-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .25rem;
  height: 1px;
  background: var(--plum);
}
.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Κουμπιά ---------- */
.btn-ink,
.btn-quiet {
  border-radius: 999px;
  padding: .75rem 1.4rem;
  font-weight: 500;
}
.btn-ink { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-ink:hover, .btn-ink:focus-visible { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-ink.btn-sm { padding: .45rem 1.1rem; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Ενότητες ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--paper-2); }
.section-title { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.section-intro { color: var(--ink-soft); max-width: 38rem; }

.prose { max-width: 36rem; }
.prose p {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.75;
}

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 6rem; }
.hero-kicker { color: var(--teal); font-weight: 500; margin-bottom: 1.25rem; }
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-weight: 350;
  margin-bottom: .6rem;
}
.hero-sub {
  color: var(--teal);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}
.hero-statement {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  font-weight: 350;
  max-width: 22ch;
  padding-left: 1.25rem;
  border-left: 2px solid var(--teal);
}
.lead-text {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-top: 1.5rem;
}

/* Φωτογραφία στο hero: αψιδωτό κάδρο με λεπτό περίγραμμα σε απόσταση */
.hero-portrait {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--teal);
  border-radius: 999px 999px 8px 8px;
  opacity: .5;
  pointer-events: none;
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 384 / 417;
  object-fit: cover;
  border-radius: 999px 999px 4px 4px;
  background: var(--paper-2);
}
@media (max-width: 991.98px) {
  .hero-portrait { width: min(80%, 300px); margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Σχετικά ---------- */
.portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--teal);
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Για τον συγγραφέα: μικρή φωτογραφία αριστερά, κείμενο δεξιά */
.about-author {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}
.about-author .portrait { flex: 0 0 140px; width: 140px; overflow: hidden; }
@media (max-width: 575.98px) {
  .about-author { flex-direction: column; gap: 1.25rem; }
  .about-author .portrait { flex-basis: auto; width: 110px; }
}

.credentials { margin-top: 2rem; }
.credentials dt { font-weight: 500; font-size: .95rem; }
.credentials dd { color: var(--ink-soft); margin-bottom: .9rem; }

/* ---------- Προσέγγιση ---------- */
.approach-item { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.approach-item h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.approach-item p { color: var(--ink-soft); }

.themes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.themes li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .95rem;
  font-size: .95rem;
  background: var(--surface);
}

/* ---------- Λίστα κειμένων (blog) ---------- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.post-row time { color: var(--ink-soft); font-size: .92rem; padding-top: .4rem; }
.post-cat { color: var(--plum); font-size: .92rem; margin-bottom: .35rem; }
.post-row h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin-bottom: .5rem; }
.post-row h3 a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s ease;
}
.post-row h3 a:hover { background-size: 100% 1px; }
.post-row p { color: var(--ink-soft); max-width: 40rem; margin-bottom: .5rem; }
.post-meta { font-size: .88rem; color: var(--ink-soft); }

@media (max-width: 767.98px) {
  .post-row { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---------- Κεφαλίδα εσωτερικών σελίδων ---------- */
.page-head { padding: 4.5rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 350; margin-bottom: 1rem; }
.page-head p { color: var(--ink-soft); max-width: 40rem; font-size: 1.1rem; }

/* ---------- Φίλτρα και αναζήτηση ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 2rem 0 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: .4rem 1rem;
  color: var(--ink-soft);
  font-size: .95rem;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.search-input {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: .55rem 1.1rem;
  min-width: 16rem;
  color: var(--ink);
}
.search-input:focus { border-color: var(--teal); box-shadow: none; background: #fff; }

.empty-state { padding: 3rem 0; color: var(--ink-soft); }

/* ---------- Δημοσιεύσεις ---------- */
.pub-group { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.pub-group:first-child { border-top: 0; }
.pub-year {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--teal);
  position: sticky;
  top: 6.5rem;
}
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub { padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.pub:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.pub-type { font-size: .9rem; color: var(--plum); margin-bottom: .3rem; }
.pub h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.pub-source { color: var(--ink-soft); margin-bottom: .6rem; }
.pub-toggle {
  background: none; border: 0; padding: 0;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pub-toggle:hover { color: var(--plum); }
.pub-abstract {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 40rem;
  margin-top: .9rem;
  padding-left: 1rem;
  border-left: 2px solid var(--teal);
}

/* ---------- Βιβλία ---------- */
.book-cover {
  aspect-ratio: 2 / 3;
  background: var(--c, var(--teal));
  color: #F4F5F1;
  padding: 1.6rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 2px 5px 5px 2px;
  box-shadow: inset 7px 0 0 rgba(0, 0, 0, .14), 0 22px 34px -20px rgba(30, 42, 47, .55);
}
.book-cover .t { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; }
.book-cover .s { font-size: .85rem; opacity: .8; margin-top: .6rem; }
.book-cover .a { font-size: .85rem; opacity: .85; }
.book h2 { font-size: 1.5rem; margin: 1.5rem 0 .3rem; }
.book .book-sub { color: var(--ink-soft); margin-bottom: .6rem; }
.book .book-pub { font-size: .92rem; color: var(--ink-soft); }
.book-cover-sm { max-width: 260px; }

.book-details { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.25rem; margin: 1.5rem 0; }
.book-details dt { font-weight: 500; font-size: .95rem; }
.book-details dd { margin: 0; color: var(--ink-soft); }

/* ---------- Παράθυρα (modal) ---------- */
.modal-content { background: var(--surface); border: 0; border-radius: 8px; }
.modal-header { padding: 2rem 2rem .5rem; }
.modal-body { padding: 1rem 2rem 2.5rem; }
.modal-title { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ---------- Επικοινωνία ---------- */
.contact-form { max-width: 38rem; margin-top: 2rem; }
.contact-form .form-label { font-size: .92rem; font-weight: 500; margin-bottom: .3rem; }
.contact-form .form-control { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
.contact-form .form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 .2rem rgba(47, 93, 98, .15); }
.contact-form .form-status { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Υποσέλιδο ---------- */
.site-footer { background: var(--ink); color: rgba(238, 240, 236, .78); padding: 4rem 0 2rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; color: var(--paper); margin-bottom: .5rem; }
.footer-head { color: var(--paper); font-weight: 500; margin-bottom: .75rem; }
.site-footer li { margin-bottom: .4rem; }
.footer-bottom {
  border-top: 1px solid rgba(238, 240, 236, .15);
  margin-top: 3rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }

.book-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: var(--paper-2);
  border-radius: 2px 5px 5px 2px;
  box-shadow: 0 22px 34px -20px rgba(30, 42, 47, .55);
}
.book .btn { padding: .55rem 1.1rem; }

/* ---------- Εναλλαγή γλώσσας ---------- */
.nav-actions { display: flex; align-items: center; gap: 1rem; margin-left: 1rem; }
.lang-switch {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
  padding: .35rem .2rem;
  border-bottom: 1px solid var(--line);
}
.lang-switch:hover { color: var(--plum); border-color: var(--plum); }
.book-lang { font-size: .6em; color: var(--ink-soft); font-family: var(--sans); }
@media (max-width: 991.98px) {
  .nav-actions { margin: .75rem 0 .25rem; }
}

/* ---------- Μπάρα προεπισκόπησης ---------- */
.preview-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080;
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: center;
  padding: .75rem 1rem;
  background: var(--plum); color: #fff; font-size: .95rem;
}
.preview-banner .btn-quiet { color: #fff; border-color: rgba(255, 255, 255, .5); }
.preview-banner .btn-quiet:hover { color: #fff; border-color: #fff; }

/* ---------- Διαχείριση ---------- */
.admin { background: var(--surface); }
.admin-top { background: var(--paper); border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.admin-title { font-size: 1.75rem; margin: 0; }
.admin-sub { color: var(--ink-soft); }
.admin-status { position: sticky; top: 0; z-index: 1020; background: var(--surface); border-bottom: 1px solid var(--line); padding: .75rem 0; }
.status-dirty { color: var(--plum); font-weight: 500; }
.status-clean { color: var(--ink-soft); }

.admin-help { background: var(--paper); border-radius: 8px; padding: 1rem 1.25rem; }
.admin-help summary { cursor: pointer; font-weight: 500; }
.admin-help ol { margin: 1rem 0 .75rem; padding-left: 1.25rem; }
.admin-help li { margin-bottom: .35rem; }

.admin-tabs { border-bottom: 1px solid var(--line); gap: .25rem; }
.admin-tabs .nav-link { color: var(--ink-soft); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: .6rem 1rem; }
.admin-tabs .nav-link:hover { color: var(--ink); }
.admin-tabs .nav-link.active { color: var(--ink); border-bottom-color: var(--plum); background: none; }
.admin-tabs .count { color: var(--ink-soft); font-size: .85rem; margin-left: .25rem; }

.admin-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; color: var(--ink-soft); }
.admin-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.admin-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.admin-row-main { flex: 1; min-width: 0; }
.admin-row-title { font-family: var(--serif); font-size: 1.15rem; margin: 0; }
.admin-row-meta { color: var(--ink-soft); font-size: .9rem; margin: .15rem 0 0; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.admin-delete { color: #9B2C2C; text-decoration: underline; text-underline-offset: 3px; }
.admin-delete:hover { color: #7A1F1F; }
.admin-empty { padding: 2rem 0; color: var(--ink-soft); }
.admin-thumb { width: 40px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; flex: none; display: block; }
.admin-thumb-lg { width: 64px; }

.admin-form legend { font-size: 1rem; font-weight: 500; font-family: var(--sans); margin-bottom: .35rem; }
.admin-form .form-label { font-weight: 500; margin-bottom: .35rem; }
.admin-form .form-control, .admin-form .form-select { border-color: var(--line); background: #fff; }
.admin-form .form-control:focus, .admin-form .form-select:focus { border-color: var(--teal); box-shadow: none; }
.admin-form textarea { font-family: var(--serif); line-height: 1.6; }
.lang-label { display: block; font-size: .85rem; color: var(--ink-soft); margin-bottom: .25rem; }
.form-hint { font-size: .88rem; color: var(--ink-soft); margin: .35rem 0 .5rem; }
.req { color: var(--plum); }

@media (max-width: 767.98px) {
  .admin-row { flex-wrap: wrap; }
  .admin-row-actions { width: 100%; justify-content: flex-start; }
}


/* ---------- Φόρμα επικοινωνίας (υποσέλιδο) ---------- */
.footer-form-note { font-size: .92rem; max-width: 36rem; }
.footer-form .form-label { color: var(--paper); font-size: .92rem; margin-bottom: .3rem; }
.footer-form .form-control {
  background: rgba(238, 240, 236, .06);
  border: 1px solid rgba(238, 240, 236, .28);
  color: var(--paper);
  border-radius: 4px;
}
.footer-form .form-control:focus { background: rgba(238, 240, 236, .1); border-color: var(--paper); color: #fff; box-shadow: none; }
.footer-form .form-control.is-invalid { border-color: #F2B8B5; background-image: none; }
.footer-form :focus-visible { outline-color: #D9B8CC; }
.btn-paper {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--paper);
  border-radius: 999px; padding: .65rem 1.3rem; font-weight: 500;
}
.btn-paper:hover, .btn-paper:focus-visible { background: #fff; color: var(--ink); }
.btn-paper:disabled { opacity: .7; }
.form-status { font-size: .95rem; }
.form-status.is-success { color: #A8D5C2; }
.form-status.is-error { color: #F2B8B5; }
.form-status a { text-decoration: underline; }

/* ---------- Σύνδεσμος προς άλλη έκδοση ---------- */
.edition-link {
  display: inline-block;
  background: none; border: 0; padding: 0;
  margin-bottom: .9rem;
  color: var(--teal);
  font-size: .95rem;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.edition-link:hover { color: var(--plum); }
.edition-link-inline { margin: 0; }
.contact-form .form-status.is-error { color: #9B2C2C; }
.contact-form .form-status.is-success { color: var(--teal); }
.about-author p { margin-top: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 0; }
.footer-links li { margin: 0; }
.lang-switch .flag { display: block; width: 27px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.lang-switch { border-bottom: 0; padding: .25rem; line-height: 0; }
.lang-switch:hover .flag { box-shadow: 0 0 0 2px var(--plum); }
.book-back { margin-bottom: 1.25rem; font-size: .95rem; }

/* Κεντραρισμένο hero: τίτλος, υπότιτλος, φράση και κείμενο στο κέντρο */
.hero-center { text-align: center; }
.hero-center .hero-sub {
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  letter-spacing: .2em;
  margin-bottom: 3.25rem;
}
.hero-center .hero-statement {
  margin: 0 auto;
  max-width: 24ch;
  padding-left: 0;
  border-left: 0;
}
.hero-center .hero-statement::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--teal);
  margin: 2rem auto 0;
}
.hero-center .lead-text { margin-left: auto; margin-right: auto; max-width: 36rem; }
.featured-book-title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .5rem; }
.cover-link { display: block; transition: transform .2s ease, box-shadow .2s ease; border-radius: 4px; }
.cover-link:hover { transform: translateY(-3px); }
.cover-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

/* ---------- Σελίδα βιβλίου: κείμενο και πίνακας περιεχομένων ---------- */
.book-about { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.book-toc { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.book-toc .section-title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1.5rem; }
.toc-unit { margin-bottom: 1.75rem; }
.toc-unit h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.toc-list { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: .98rem; }
.toc-list .toc-list { padding-left: 1.75rem; margin-top: .25rem; font-size: .95rem; color: var(--ink-soft); }
.toc-list li { margin-bottom: .3rem; }
.toc-num { display: inline-block; min-width: 2.4rem; color: var(--teal); font-variant-numeric: tabular-nums; }
.book-extra { max-width: 46rem; }
.book-extra .book-about p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.75; }
.book-note { margin-top: 2.75rem; }
.book-buy-end { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.toc-unit h3 { letter-spacing: .02em; }

/* ---------- Σελίδα κειμένου (post.html) ---------- */
.post-back { font-size: .95rem; }
.post-head h1 { max-width: 22ch; }
.post-head .post-meta { margin-top: 1rem; }
.post-body { max-width: 40rem; }
.post-body p, .post-body li { font-size: 1.12rem; line-height: 1.8; }
.post-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 2.5rem 0 1rem; }
.post-body h3 { font-size: 1.3rem; margin: 2rem 0 .75rem; }
.post-body blockquote {
  margin: 2rem 0; padding: .25rem 0 .25rem 1.25rem;
  border-left: 2px solid var(--teal); font-style: italic; color: var(--ink-soft);
}
.post-body img { max-width: 100%; height: auto; border-radius: 4px; margin: .5rem 0; }
.post-body ul, .post-body ol { padding-left: 1.4rem; margin-bottom: 1.25rem; }
.post-body a { color: var(--teal); }
.post-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center;
  border-top: 1px solid var(--line); padding-top: 2rem;
}
.post-nav-link { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: var(--ink); max-width: 20rem; }
.post-nav-next { text-align: right; justify-self: end; }
.post-nav-label { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.post-nav-title { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; }
.post-nav-link:hover .post-nav-title { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767.98px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; justify-self: start; }
  .post-nav-all { justify-self: start; order: 3; }
}
.draft-tag {
  display: inline-block; margin-left: .5rem; padding: .05rem .5rem; border-radius: 999px;
  font-size: .75rem; letter-spacing: .04em; background: #F3E3C3; color: #6B4A12; vertical-align: middle;
}

/* ---------- Admin: επεξεργαστής κειμένου ---------- */
.modal-editor { max-width: min(1100px, 96vw); }
.edit-status { font-size: .9rem; color: var(--ink-soft); }
.status-badge {
  display: inline-block; padding: .1rem .55rem; border-radius: 999px;
  font-size: .78rem; font-weight: 500; letter-spacing: .02em; vertical-align: middle;
}
.status-badge.is-draft { background: #F3E3C3; color: #6B4A12; }
.status-badge.is-live { background: #DCEBE3; color: #1F5A3D; }

.rte { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.rte.is-invalid { border-color: #B42318; box-shadow: 0 0 0 .2rem rgba(180, 35, 24, .12); }
.rte-toolbar {
  position: sticky; top: 0; z-index: 2;
  display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center;
  padding: .5rem; background: var(--paper); border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0;
}
.rte-group { display: flex; gap: .15rem; align-items: center; padding-right: .5rem; border-right: 1px solid var(--line); }
.rte-group:last-child { border-right: 0; }
.rte-btn {
  width: 2rem; height: 2rem; display: inline-grid; place-items: center;
  border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--ink);
  font-family: var(--serif); font-size: 1rem; line-height: 1; cursor: pointer;
}
.rte-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.rte-btn svg circle, .rte-btn svg text { fill: currentColor; stroke: none; }
.rte-btn:hover { background: #fff; border-color: var(--line); }
.rte-btn.active { background: #E3ECEC; border-color: #C4D6D6; color: var(--teal); }
.rte-select {
  height: 2rem; border: 1px solid var(--line); border-radius: 4px; background: #fff;
  font-size: .85rem; padding: 0 .4rem; color: var(--ink); max-width: 11rem;
}
.rte-color { position: relative; width: 2rem; height: 2rem; display: inline-grid; place-items: center; cursor: pointer; border-radius: 4px; margin: 0; }
.rte-color:hover { background: #fff; }
.rte-color-a { font-family: var(--serif); font-size: 1rem; line-height: 1; margin-top: -4px; }
.rte-color-bar { position: absolute; left: 7px; right: 7px; bottom: 6px; height: 3px; background: #1F2A30; border-radius: 1px; }
.rte-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.rte-panel { padding: .75rem; background: #FBFAF7; border-bottom: 1px solid var(--line); font-size: .9rem; }
.rte-panel-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.rte-panel-row .form-control { flex: 1 1 16rem; width: auto; }
.rte-note { margin: .5rem 0 0; font-size: .82rem; color: var(--ink-soft); }
.rte-or { color: var(--ink-soft); }
.rte-area {
  min-height: 420px; max-height: 65vh; overflow-y: auto;
  padding: 1.5rem 1.75rem; outline: none; max-width: none;
  font-family: var(--serif);
}
.rte-area:focus { box-shadow: inset 0 0 0 2px rgba(47, 93, 98, .25); }
.rte-area img { cursor: pointer; }
.rte-area img.rte-img-selected { outline: 3px solid var(--teal); outline-offset: 2px; }
.rte-area p { margin-bottom: 1rem; }

/* ---------- Δημοσιεύσεις: λίστα και σελίδα ---------- */
.pub h3 a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s; }
.pub h3 a:hover { background-size: 100% 1px; }
.pub-abstract-short { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pub-more { font-size: .92rem; }
.pub-abstract-full { max-width: 40rem; margin-bottom: 2.5rem; padding: 1.25rem 1.5rem; background: var(--paper-2); border-radius: 6px; }
.pub-abstract-full p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.75; margin: 0; }
.pub-abstract-full .pub-abstract-label { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.toc-input { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .88rem; tab-size: 4; white-space: pre; }
.toast-container, .toast-container .toast { pointer-events: none; }

/* ---------- Αίτημα πλήρους κειμένου (σελίδα δημοσίευσης) ---------- */
.request-box {
  max-width: 40rem; margin-top: 3rem; padding: 1.75rem 1.75rem 2rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.request-title { font-size: 1.35rem; margin-bottom: .5rem; }
.request-box p { color: var(--ink-soft); margin-bottom: 1.25rem; }
.request-form .form-label { font-size: .92rem; font-weight: 500; }
.publish-done {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
  margin-top: .75rem; padding: .6rem .9rem; border-radius: 6px;
  background: #DCEBE3; color: #1F5A3D; font-size: .92rem;
}
.publish-done .btn-close { margin-left: auto; }
