/* ═══════════════════════════════════════════════════════════════
   ZTT × TECHNOLOGIKI — ztt-plus.css
   Πρόσθετες ενότητες για ztt.html και τη σελίδα products/ztt/energrid-m261.
   Φορτώνεται ΜΕΤΑ το ztt.css ή το m261.css. Όλα τα selectors ξεκινούν
   με .zp- και τα χρώματα έρχονται από τα tokens της κάθε σελίδας,
   ώστε να ακολουθούν το light/dark θέμα.
   ═══════════════════════════════════════════════════════════════ */

body[data-page="ztt"] {
  --zp-ink: var(--theme-text);
  --zp-mute: var(--theme-muted);
  --zp-line: var(--theme-border);
  --zp-card: var(--theme-surface);
  --zp-soft: var(--theme-surface-soft);
  --zp-accent: var(--blue);
  --zp-red: var(--z-red, #e2323f);
  --zp-grid: var(--theme-border);
  --zp-c1: var(--blue);
  --zp-c2: var(--z-red, #e2323f);
  --zp-head: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
}
body[data-page="ztt"] .z-sec-dark, body[data-page="ztt"] .z-cta {
  --zp-ink: #fff;
  --zp-mute: var(--z-dim);
  --zp-line: var(--z-line);
  --zp-card: rgba(255,255,255,.04);
  --zp-soft: rgba(255,255,255,.06);
  --zp-accent: var(--z-blue-l);
  --zp-grid: rgba(255,255,255,.12);
  --zp-c1: var(--z-blue-l);
}
body.m261 {
  --zp-ink: var(--m-ink);
  --zp-mute: var(--m-mute);
  --zp-line: var(--m-line);
  --zp-card: var(--m-bg);
  --zp-soft: var(--m-plate);
  --zp-accent: var(--m-blue);
  --zp-grid: var(--m-line);
  --zp-c1: var(--m-blue);
  --zp-c2: #e2323f;
  --zp-head: var(--m-cond);
}

/* ─── layout helpers ─── */
.zp-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.zp-two > * { min-width: 0; }
.zp-gap { margin-top: 2.6rem; }
.zp-note { font-size: .86rem; line-height: 1.6; color: var(--zp-mute); margin: 1.1rem 0 0; }
.zp-h3 { font-family: var(--zp-head); font-weight: 700; font-size: 1.25rem; line-height: 1.25; margin: 0 0 1rem; color: var(--zp-ink); }

/* ─── big numbers (generic, matches .z-proj-stat) ─── */
.zp-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--zp-line); }
.zp-nums > div { padding: 1.4rem 1.2rem 1.4rem 0; border-bottom: 1px solid var(--zp-line); }
.zp-nums b { display: block; font-family: var(--zp-head); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--zp-ink); font-variant-numeric: tabular-nums; }
.zp-nums span { display: block; margin-top: .55rem; font-size: .9rem; line-height: 1.45; color: var(--zp-mute); }

/* ─── timeline ─── */
.zp-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.zp-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--zp-line); }
.zp-timeline li { position: relative; padding: 2.1rem 1rem 0 0; }
.zp-timeline li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--zp-card); border: 3px solid var(--zp-accent); }
.zp-timeline li:last-child::before { background: var(--zp-red); border-color: var(--zp-red); }
.zp-timeline b { display: block; font-family: var(--zp-head); font-size: 1.6rem; font-weight: 800; color: var(--zp-accent); }
.zp-timeline span { display: block; margin-top: .35rem; font-size: .9rem; line-height: 1.5; color: var(--zp-mute); }

/* ─── hairline rows (pillars) ─── */
.zp-rows { border-top: 1px solid var(--zp-line); }
.zp-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 140px; gap: 1.5rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid var(--zp-line); }
.zp-row h3 { margin: 0; font-family: var(--zp-head); font-size: 1.15rem; font-weight: 700; color: var(--zp-ink); }
.zp-row p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--zp-mute); }
.zp-row b { font-family: var(--zp-head); font-size: 1.35rem; font-weight: 800; text-align: right; color: var(--zp-accent); }
.zp-row.is-key h3, .zp-row.is-key b { color: var(--zp-red); }

/* ─── satellite maps (canvas overlay) ─── */
.zp-map { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--zp-line); background: #05132c; }
.zp-map > img { display: block; width: 100%; height: auto; }
.zp-map > canvas { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.zp-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: .9rem; font-size: .85rem; color: var(--zp-mute); }
.zp-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: .45rem; vertical-align: -1px; }
.zp-credit { font-size: .78rem; color: var(--zp-mute); margin: .6rem 0 0; }

/* ─── horizontal share bars ─── */
.zp-hbar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 52px; gap: 1rem; align-items: center; margin: .8rem 0; font-size: .95rem; color: var(--zp-ink); }
.zp-hbar .tr { height: 12px; border-radius: 6px; background: var(--zp-soft); overflow: hidden; }
.zp-hbar .b { height: 100%; width: 0; border-radius: 6px; background: var(--zp-accent); transition: width 1.3s cubic-bezier(.2,.8,.2,1); }
.zp-hbar.is-key .b { background: var(--zp-red); }
.go .zp-hbar .b { width: var(--v); }
.zp-hbar b { font-family: var(--zp-head); text-align: right; }

/* ─── vertical bars (contracts per year) ─── */
.zp-vbars { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .6rem; align-items: end; height: 300px; border-bottom: 2px solid var(--zp-line); }
.zp-vbars .c { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.zp-vbars .b { height: 0; border-radius: 6px 6px 0 0; background: var(--zp-accent); transition: height 1.3s cubic-bezier(.2,.8,.2,1); }
.zp-vbars .c.is-key .b { background: var(--zp-red); }
.go .zp-vbars .b, .zp-vbars.go .b { height: var(--h); }
.zp-vbars strong { font-family: var(--zp-head); font-size: .9rem; color: var(--zp-ink); margin-bottom: .2rem; }
.zp-vbars small { font-size: .72rem; color: var(--zp-mute); margin-bottom: .3rem; }
.zp-vx { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .6rem; text-align: center; font-weight: 700; font-size: .85rem; margin-top: .5rem; color: var(--zp-ink); }

/* ─── small project cards ─── */
.zp-cards { display: grid; gap: .9rem; }
.zp-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--zp-line); border-radius: 12px; background: var(--zp-card); }
.zp-card .n { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--zp-accent); }
.zp-card .n.is-key { background: var(--zp-red); }
.zp-card h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--zp-ink); }
.zp-card p { margin: .25rem 0 0; font-size: .88rem; line-height: 1.5; color: var(--zp-mute); }
.zp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.zp-big { font-family: var(--zp-head); font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--zp-accent); line-height: 1; margin: .9rem 0 .5rem; }

/* ─── thermal runaway steps ─── */
.zp-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.zp-steps::before { content: ""; position: absolute; left: 17px; top: 12px; bottom: 12px; width: 2px; background: var(--zp-line); }
.zp-steps li { display: grid; grid-template-columns: 36px 84px minmax(0, 1fr); gap: 1rem; align-items: center; padding: .8rem 0; opacity: .35; transition: opacity .6s; }
.zp-steps li.on { opacity: 1; }
.zp-steps i { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: var(--zp-card); border: 2px solid var(--zp-line); transition: all .5s; }
.zp-steps li.on i { background: var(--c); border-color: var(--c); box-shadow: 0 0 18px var(--c); }
.zp-steps b { font-family: var(--zp-head); font-size: 1.35rem; font-weight: 800; color: var(--zp-ink); }
.zp-steps span { font-size: .95rem; color: var(--zp-ink); }

/* ─── chips ─── */
.zp-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.zp-chips span { padding: .38rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid var(--zp-line); color: var(--zp-ink); background: var(--zp-card); }
.zp-chips span.is-key { background: var(--zp-accent); border-color: var(--zp-accent); color: #fff; }

/* ─── response ladder ─── */
.zp-ladder .r { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; align-items: center; margin: .7rem 0; font-size: .95rem; color: var(--zp-ink); }
.zp-ladder .tr { position: relative; height: 30px; border-radius: 6px; background: var(--zp-soft); overflow: hidden; }
.zp-ladder .b { position: absolute; top: 0; bottom: 0; left: var(--a); width: 0; border-radius: 6px; background: var(--zp-accent); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.zp-ladder.go .b { width: var(--w); }
.zp-ladder .tr span { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: .82rem; color: var(--zp-ink); }
.zp-ladder .ax { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; font-size: .75rem; color: var(--zp-mute); }
.zp-ladder .ax div { position: relative; height: 16px; }
.zp-ladder .ax em { position: absolute; transform: translateX(-50%); font-style: normal; white-space: nowrap; }

/* ─── tables (light) ─── */
.zp-table { width: 100%; border-collapse: collapse; font-size: .92rem; color: var(--zp-ink); }
.zp-table th, .zp-table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--zp-line); vertical-align: top; }
.zp-table thead th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zp-mute); }
.zp-table-wrap { overflow-x: auto; }

/* ─── degradation chart ─── */
.zp-deg { border: 1px solid var(--zp-line); border-radius: 14px; padding: 1rem 1rem .6rem; background: var(--zp-card); }
.zp-deg canvas { display: block; }

/* ─── M261 scaling: six cabinets ─── */
.zp-scale { display: flex; gap: .55rem; align-items: flex-end; margin: 1rem 0; }
.zp-scale i { width: 34px; height: 64px; border-radius: 4px; border: 1px solid var(--zp-line); background: linear-gradient(180deg, var(--zp-soft), var(--zp-card)); position: relative; opacity: .3; transition: opacity .4s; }
.zp-scale i::after { content: ""; position: absolute; left: 5px; right: 5px; top: 10px; height: 4px; border-radius: 2px; background: var(--zp-accent); }
.go .zp-scale i { opacity: 1; }
.go .zp-scale i:nth-child(2) { transition-delay: .15s } .go .zp-scale i:nth-child(3) { transition-delay: .3s } .go .zp-scale i:nth-child(4) { transition-delay: .45s } .go .zp-scale i:nth-child(5) { transition-delay: .6s } .go .zp-scale i:nth-child(6) { transition-delay: .75s }

/* ─── project map with pins + pop-ups ─── */
.zp-pinmap { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--zp-line); background: #05132c; aspect-ratio: 960 / 640; }
.zp-pinmap > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zp-pin { position: absolute; transform: translate(-50%, -50%); width: var(--s); height: var(--s); border: 0; padding: 0; background: none; cursor: pointer; z-index: 2; }
.zp-pinmap.in .zp-pin { animation: zp-drop .7s cubic-bezier(.2,.9,.3,1.3) var(--d) both; }
@keyframes zp-drop { from { opacity: 0; transform: translate(-50%, -160%) scale(.4); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.zp-pin i { position: absolute; inset: 0; border-radius: 50%; background: #e2323f; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.5); transition: transform .2s; }
.zp-pin::before, .zp-pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ff6b74; animation: zp-pulse 2.4s ease-out infinite; animation-delay: calc(var(--d) + .8s); }
.zp-pin::after { animation-delay: calc(var(--d) + 2s); }
@keyframes zp-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
.zp-pin b { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: rgba(5,19,44,.88); color: #fff; font-size: .78rem; font-weight: 700; padding: .3rem .6rem; border-radius: 7px; pointer-events: none; }
.zp-pin.l b { left: auto; right: calc(100% + 10px); }
.zp-pin:hover i, .zp-pin.on i { transform: scale(1.25); }
.zp-pin.on b { background: #e2323f; }
.zp-pin.cl i { background: #fff; border: 4px solid #e2323f; }
.zp-pin.cl i::after { content: attr(data-n); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #e2323f; font-size: .95rem; }
.zp-pin.hq i { background: #6ba6ee; } .zp-pin.hq::before, .zp-pin.hq::after { border-color: #6ba6ee; }
.zp-pin:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 50%; }
/* place names over the free imagery (it has none baked in); the photo is the same in light and dark theme */
.zp-lbl { position: absolute; z-index: 1; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; color: rgba(255,255,255,.94); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 6px rgba(0,0,0,.75); }
.zp-lbl.s { color: rgba(168,204,245,.92); font-style: italic; font-weight: 500; letter-spacing: .02em; }

.zp-pop { position: absolute; z-index: 60; width: 360px; max-width: calc(100vw - 24px); background: var(--theme-surface, #fff); color: var(--theme-text, #0f172a); border: 1px solid var(--theme-border, #e2e8f0); border-radius: 16px; box-shadow: 0 30px 80px rgba(5,19,44,.45); overflow: hidden; animation: zp-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes zp-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.zp-pop .zp-x { position: absolute; right: 10px; top: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(5,19,44,.75); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.zp-pop .zp-ph { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle at 70% 40%, #2f7be0, #05132c 70%); }
.zp-pop .zp-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zp-pop .zp-ph span { position: absolute; left: 12px; bottom: 12px; background: #e2323f; color: #fff; font-size: .72rem; font-weight: 800; padding: .3rem .65rem; border-radius: 999px; }
.zp-pop .zp-bd { padding: 1rem 1.2rem 1.2rem; }
.zp-pop .zp-tg { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #e2323f; }
.zp-pop h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; margin: .25rem 0 .1rem; line-height: 1.15; }
.zp-pop .zp-lc { font-size: .85rem; color: var(--theme-muted, #475569); }
.zp-pop .zp-mt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin: .9rem 0; }
.zp-pop .zp-mt div { background: var(--theme-surface-soft, #f8fafc); border: 1px solid var(--theme-border, #e2e8f0); border-radius: 9px; padding: .5rem .55rem; }
.zp-pop .zp-mt b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1rem; color: var(--blue, #2563eb); }
.zp-pop .zp-mt small { font-size: .68rem; color: var(--theme-muted, #475569); }
.zp-pop p { font-size: .88rem; line-height: 1.55; margin: 0; }
.zp-pop .zp-cab { display: flex; gap: 4px; margin-top: .7rem; }
.zp-pop .zp-cab i { width: 13px; height: 21px; border-radius: 3px; border: 1px solid #9fb0c8; background: linear-gradient(180deg, #e9eef5, #c9d3e2); position: relative; }
.zp-pop .zp-cab i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 4px; height: 3px; border-radius: 1px; background: #1f4fa3; }
.zp-pop .zp-go { display: inline-flex; gap: .4rem; margin-top: .9rem; padding: .6rem 1rem; border-radius: 999px; background: #e2323f; color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none; }
.zp-pop .zp-rows button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; width: 100%; text-align: left; border: 1px solid var(--theme-border, #e2e8f0); background: var(--theme-surface-soft, #f8fafc); color: inherit; border-radius: 10px; padding: .7rem .8rem; margin-top: .5rem; cursor: pointer; font: inherit; }
.zp-pop .zp-rows small { display: block; font-size: .78rem; color: var(--theme-muted, #475569); }
.zp-pop .zp-rows em { font-style: normal; font-weight: 800; color: var(--blue, #2563eb); }

.zp-plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--zp-line); }
.zp-plist li { border-bottom: 1px solid var(--zp-line); }
.zp-plist a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .8rem 0; color: var(--zp-ink); text-decoration: none; }
.zp-plist a:hover b { color: var(--zp-accent); }
.zp-plist .n { font-family: var(--zp-head); font-weight: 800; color: #e2323f; }
.zp-plist small { display: block; font-size: .8rem; color: var(--zp-mute); }
.zp-plist em { font-style: normal; font-family: var(--zp-head); font-weight: 800; color: var(--zp-accent); }
.zp-plist-total { display: flex; justify-content: space-between; align-items: baseline; padding: .9rem 0 0; color: var(--zp-mute); font-size: .9rem; }
.zp-plist-total b { font-family: var(--zp-head); font-size: 1.5rem; color: var(--zp-ink); }

@media (prefers-reduced-motion: reduce) {
  .zp-pin, .zp-pinmap.in .zp-pin { animation: none !important; opacity: 1; }
  .zp-pin::before, .zp-pin::after { animation: none; display: none; }
}
@media (max-width: 1080px) {
  .zp-two, .zp-two[style] { grid-template-columns: 1fr !important; } /* beats the inline desktop ratios */
  .zp-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.6rem; }
  .zp-timeline::before { display: none; }
  .zp-nums, .zp-nums[style] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .zp-grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .zp-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zp-row { grid-template-columns: minmax(0, 1fr) auto; }
  .zp-row p { grid-column: 1 / -1; }
  .zp-hbar { grid-template-columns: 110px minmax(0, 1fr) 44px; }
  .zp-vbars, .zp-vx { gap: .25rem; } .zp-vbars strong { font-size: .7rem; } .zp-vbars small { display: none; }
  .zp-ladder .r { grid-template-columns: 1fr; gap: .35rem; } .zp-ladder .ax { display: none; }
  .zp-pin b { display: none; } .zp-pin.on b { display: block; }
  .zp-lbl { font-size: .62rem; }
  .zp-pop { position: fixed !important; left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; max-height: 82vh; overflow: auto; }
}
