/*
  ╔══════════════════════════════════════════════════════════════════╗
  ║  Debtwatch Hellas — Responsive layer (tablet / κινητό)          ║
  ║  /assets/css/responsive.css                                     ║
  ║  Φορτώνεται ΤΕΛΕΥΤΑΙΟ στο <head> κάθε σελίδας.                  ║
  ║  Δεν αλλάζει τίποτα σε υπολογιστή (> 1024px).                   ║
  ╚══════════════════════════════════════════════════════════════════╝
*/

/* ── Γενικά, σε όλα τα πλάτη: ασφαλείς προεπιλογές ─────────────── */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,video,iframe,canvas{max-width:100%}
img,video{height:auto}

/* ── Tablet και κάτω (≤ 1024px) ─────────────────────────────────── */
@media (max-width:1024px){
  /* Λωρίδα Ηρακλείτου: μένουν τα δύο σήματα και το «Το πλαίσιο →» */
  .bs-inner{padding-left:16px!important;padding-right:16px!important;gap:.75rem!important;min-width:0}
  .bs-quote,.bs-tagline{display:none!important}
  .bs-center{flex:1 1 auto!important;min-width:0!important;justify-content:flex-start!important;gap:.5rem!important;overflow:hidden}
  .bs-link{flex-shrink:0;white-space:nowrap}

  /* Μακριές διευθύνσεις / παραπομπές: σπάνε αντί να ξεχειλίζουν */
  .src,.source,.cite,.footnote a,td a,li a{overflow-wrap:anywhere}
  body{overflow-wrap:break-word}

  /* Πίνακες: οριζόντια κύλιση μέσα στο πλαίσιό τους */
  main table,article table,.article-text table,.article-body table,.content table,section table{
    display:block;max-width:100%;min-width:0!important;overflow-x:auto;-webkit-overflow-scrolling:touch}
  pre{white-space:pre-wrap;overflow-wrap:anywhere}
  .table-wrap,.table-scroll,.table-container{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .src{white-space:normal!important;overflow-wrap:anywhere}
  .search-bar-inner{flex-wrap:wrap}
  #alpha-buttons,.alpha-buttons{display:flex;flex-wrap:wrap;gap:.3rem}
}

/* ── Κινητό (≤ 640px) ───────────────────────────────────────────── */
@media (max-width:640px){
  .bs-sep{display:none!important}
  .bs-pill{font-size:11px!important;padding:2px 8px!important;letter-spacing:.06em!important}
  .bs-link{font-size:11px!important;padding:4px 10px!important;letter-spacing:.06em!important}

  /* Κάθε μπλοκ περιεχομένου μένει μέσα στην οθόνη */
  main,article,section,.article-text,.article-body,.article-wrap,.main-col,.main-content,.content,.container,.page-body,.callout{
    max-width:100%!important;min-width:0!important}
  main *,article *{min-width:0}
  table{display:block;max-width:100%;min-width:0!important;overflow-x:auto;-webkit-overflow-scrolling:touch}
  /* Πλέγματα με ενσωματωμένο style (π.χ. 3 στήλες): μία στήλη στο κινητό */
  main [style*="grid-template-columns"],section [style*="grid-template-columns"]{grid-template-columns:1fr!important}
  .alpha-nav,.search-bar{padding-left:16px!important;padding-right:16px!important}

  /* Ετικέτες σε IBM Plex Mono: όχι κάτω από 11px */
  .tag,.post-tag,.sb-tag,.tfc-chip,.chip,.badge,.post-badge,.eyebrow,.section-label,.sb-label,
  .page-eyebrow,.hero-eyebrow,.intro-eyebrow,.axis-label,.axis-num,.post-date,.footer-brand-sub{
    font-size:max(11px,.62rem)!important}
}

/* Ασφάλεια τελευταίας γραμμής: ό,τι ξεφεύγει δεν ανοίγει οριζόντια κύλιση
   (clip αντί hidden, ώστε να μη χαλάει το sticky μενού) */
@media (max-width:1024px){
  html,body{overflow-x:clip}
}

/* ── Λωρίδα του Ηρακλείτου: τυχαίο απόσπασμα (/js/irakleitos.js) ── */
.bs-strip.has-frag .bs-quote{cursor:help;outline:none;min-width:0;overflow:hidden;text-overflow:ellipsis}
.bs-strip.has-frag .bs-quote:focus-visible{outline:1px solid rgba(184,150,63,.7);outline-offset:3px}
.bs-quote .bq-short,.bs-quote .bq-tr,.bs-quote .bq-src-s{display:none}
.bs-quote.show-tr .bq-full,.bs-quote.show-tr .bq-short,.bs-quote.show-tr .bq-src,.bs-quote.show-tr .bq-src-s{display:none!important}
.bs-quote.show-tr .bq-tr{display:inline;font-family:'Source Sans 3',system-ui,sans-serif;font-style:normal;color:rgba(247,243,236,.85)}
@media (max-width:1024px){
  .bs-strip.has-frag .bs-quote{display:block!important;flex:1 1 auto;white-space:nowrap}
  .bs-strip.has-frag .bs-center{display:none!important}
  .bs-quote .bq-full{display:none}
  .bs-quote .bq-short{display:inline}
}
@media (max-width:640px){
  .bs-quote .bq-src{display:none}
  .bs-quote .bq-src-s{display:inline;font-style:normal;font-family:'IBM Plex Mono',monospace;font-size:10px;color:rgba(184,150,63,.85)}
}
@media (max-width:640px){
  .bs-strip.has-frag .bs-quote{font-size:12.5px!important}
  .bs-quote .bq-src{font-size:11px}
}

/* ── Σιδηρόδρομος «Τελευταία» στην αρχική (/js/sidirodromos.js) ──── */
.dw-ticker{background:#ede8de;border-bottom:1px solid #ccc4b4;height:40px;display:flex;align-items:stretch;overflow:hidden;position:relative}
.dw-ticker[hidden]{display:none}
.dw-ticker-lbl{flex-shrink:0;display:flex;align-items:center;gap:.4rem;padding:0 14px 0 max(16px,calc((100vw - 1280px)/2 + 2rem));background:#162d52;color:#e8d5a0;font-family:'IBM Plex Mono',monospace;font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;position:relative;z-index:2}
.dw-ticker-lbl::after{content:'';position:absolute;right:-14px;top:0;border-left:14px solid #162d52;border-top:20px solid transparent;border-bottom:20px solid transparent}
.dw-ticker-view{flex:1;min-width:0;overflow:hidden;position:relative;margin-left:14px;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 24px,#000 calc(100% - 24px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 24px,#000 calc(100% - 24px),transparent 100%)}
.dw-ticker-track{display:flex;align-items:center;height:100%;width:max-content;animation:dwTick var(--dur,60s) linear infinite}
.dw-ticker:hover .dw-ticker-track,.dw-ticker:focus-within .dw-ticker-track,.dw-ticker.paused .dw-ticker-track,.dw-ticker.holding .dw-ticker-track{animation-play-state:paused}
.dw-ticker-view{cursor:pointer}
@keyframes dwTick{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.dw-tk{display:inline-flex;align-items:center;gap:.55rem;padding:0 1.4rem;text-decoration:none;color:#1a1612;white-space:nowrap;height:100%}
.dw-tk::after{content:'◆';color:#b8963f;font-size:.5rem;margin-left:1.4rem}
.dw-tk-d{font-family:'IBM Plex Mono',monospace;font-size:.66rem;color:#9a7c3a;letter-spacing:.04em}
.dw-tk-k{font-family:'IBM Plex Mono',monospace;font-size:.58rem;letter-spacing:.1em;text-transform:uppercase;color:#fff;background:#3a6b9e;padding:1px 6px}
.dw-tk-k.an{background:#9a7c3a}
.dw-tk-t{font-family:'Source Sans 3',system-ui,sans-serif;font-size:.88rem;font-weight:600;color:#1e3f6f}
.dw-tk:hover .dw-tk-t,.dw-tk:focus-visible .dw-tk-t{color:#9a7c3a;text-decoration:underline;text-underline-offset:3px}
.dw-ticker-btn{flex-shrink:0;width:40px;border:0;border-left:1px solid #ccc4b4;background:#e2dbd0;color:#162d52;font-size:.8rem;cursor:pointer;margin-right:max(0px,calc((100vw - 1280px)/2))}
.dw-ticker-btn:hover{background:#ccc4b4}
@media (prefers-reduced-motion:reduce){
  .dw-ticker-track{animation:none}
  .dw-ticker-view{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
  .dw-tk.dup{display:none}
  .dw-ticker-btn{display:none}
}
@media (max-width:640px){
  .dw-ticker{height:36px}
  .dw-ticker-lbl{padding:0 10px 0 16px;font-size:10px}
  .dw-ticker-lbl::after{border-top-width:18px;border-bottom-width:18px}
  .dw-tk-t{font-size:13px}
  .dw-tk-k{display:none}
}

/* ── Ελληνικά και πολυτονικό ─────────────────────────────────────────
   Η Playfair Display και η IBM Plex Mono δεν έχουν ελληνικούς χαρακτήρες·
   χωρίς αυτό, τα ελληνικά έπεφταν σε όποια γραμματοσειρά είχε ο υπολογιστής
   (π.χ. Georgia, χωρίς βαρεία/περισπωμένη/δασεία). Εδώ τα ελληνικά (και το
   πολυτονικό) δίνονται από Noto Serif Display / Noto Sans Mono, μόνο για
   τους ελληνικούς χαρακτήρες (unicode-range), φιλοξενούμενα στο site.
   Δηλώνονται με το ίδιο όνομα οικογένειας: ο browser συμπληρώνει την
   Playfair / Plex Mono με τα ελληνικά, χωρίς αλλαγή στις σελίδες. */
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/greek/noto-serif-display-greek-400-normal.woff2) format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/greek/noto-serif-display-greek-ext-400-normal.woff2) format('woff2');unicode-range:U+1F00-1FFF}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/greek/noto-serif-display-greek-400-italic.woff2) format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/greek/noto-serif-display-greek-ext-400-italic.woff2) format('woff2');unicode-range:U+1F00-1FFF}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/greek/noto-serif-display-greek-700-normal.woff2) format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/greek/noto-serif-display-greek-ext-700-normal.woff2) format('woff2');unicode-range:U+1F00-1FFF}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(/assets/fonts/greek/noto-serif-display-greek-700-italic.woff2) format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(/assets/fonts/greek/noto-serif-display-greek-ext-700-italic.woff2) format('woff2');unicode-range:U+1F00-1FFF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/greek/noto-sans-mono-greek-400-normal.woff2) format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/greek/noto-sans-mono-greek-ext-400-normal.woff2) format('woff2');unicode-range:U+1F00-1FFF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/greek/noto-sans-mono-greek-500-normal.woff2) format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/greek/noto-sans-mono-greek-ext-500-normal.woff2) format('woff2');unicode-range:U+1F00-1FFF}
