/* =============================================================================
 * deck-hub.css — the landing page of a presentation folder (decks/<x>/index.html):
 * one panel per variation (film / one-pager, EN / GR). Decision 0131.
 *
 * It borrows every colour and face from assets/css/tpl-critical.css (vendored
 * from www.tpl.gr, which is where the TPL look comes from) and restates none,
 * the same rule the homepage's own deck picker follows. Only layout lives here.
 * ============================================================================= */
:root { --hub-ease: var(--ease-out, cubic-bezier(.23,1,.32,1)); }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper-50); color: var(--ink); font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; }

.hub-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 22px 24px; }
.hub-bar img { height: 34px; display: block; }
.hub-back { font: 700 13px/1 var(--font-body); color: var(--ink-soft); text-decoration: none;
  letter-spacing: .02em; }
.hub-back::before { content: "\2190  "; }
.hub-back:hover { color: var(--red-ink); }

.hub { max-width: 1120px; margin: 0 auto; padding: 24px 24px 64px; }
.hub-meta { margin: 0 0 28px; font: 600 13px/1.4 var(--font-body); color: var(--ink-soft); }
.hub-kick { margin: 0 0 12px; font: 700 12px/1.3 var(--font-body); text-transform: uppercase;
  letter-spacing: .1em; color: var(--red-ink); }
.hub h1 { margin: 0 0 48px; font: 800 clamp(40px, 6vw, 72px)/1.02 var(--font-display);
  letter-spacing: -.02em; }
.hub h1 em { font-style: normal; color: var(--red); display: block; }

/* tpl-critical.css styles every bare <section> for the tpl.gr homepage
   (padding 96px 0, a hairline under it). That is site layout, not the look, so
   it is neutralised here for the hub's own sections and not edited upstream. */
.hub-lang { margin-top: 40px; padding: 0; border-bottom: 0; }
.hub-lang > header { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.hub-lang h2 { margin: 0; font: 800 24px/1.1 var(--font-display); }
.hub-lang header p { margin: 0; font: 500 15px/1.4 var(--font-body); color: var(--ink-soft); }

.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hub-card[hidden] { display: none; }   /* author display:flex would otherwise beat the attribute */
.hub-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 28px; background: var(--paper-0); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); color: inherit; text-decoration: none;
  transition: border-color 240ms var(--hub-ease), box-shadow 240ms var(--hub-ease), transform 240ms var(--hub-ease); }
.hub-card:hover, .hub-card:focus-within { border-color: var(--red); box-shadow: var(--shadow-panel); transform: translateY(-2px); }
.hub-card .k { font: 700 12px/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--red-ink); }
.hub-card h3 { margin: 0; font: 800 28px/1.1 var(--font-display); letter-spacing: -.01em; }
.hub-card p { margin: 0; color: var(--ink-soft); }
.hub-acts { margin-top: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.hub-acts a { position: relative; z-index: 1; font: 700 14px/1 var(--font-body); color: var(--red-ink); text-decoration: none; }
.hub-acts a:hover { text-decoration: underline; }
.hub-acts a.go::after { content: " \2192"; }
.hub-acts a.dl::after { content: " \2193"; }
/* The film card is one big link: the whole panel plays the film. */
.hub-acts a.cover { position: static; }
.hub-acts a.cover::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hub-card:has(a:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; }

.hub-foot { max-width: 1120px; margin: 0 auto; padding: 0 24px 40px; font: 600 13px/1 var(--font-body); color: var(--ink-soft); }
.hub-foot a { color: inherit; }

@media (max-width: 760px) { .hub-grid { grid-template-columns: 1fr; } .hub h1 { margin-bottom: 32px; } }
@media (prefers-reduced-motion: reduce) { .hub-card { transition: none; } .hub-card:hover { transform: none; } }
