/* Sajtó Portál – Design tokens & base styles
   Visual direction: subsite of the london.mfa.gov.hu family – Flowbite/Tailwind
   blue (#1c64f2) on neutral grays, Poppins sans, Cormorant Garamond reserved
   for the "Sajtó Portál" wordmark only. Footer keeps the Hungarian-gov band
   (skyline + Magyarország Kormánya wordmark) so origin stays unambiguous.   */

:root {
  /* Body + display: Poppins (matches london.mfa.gov.hu).
     Wordmark: Cormorant Garamond – applied only on .brand .brand-text .name. */
  --font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-wordmark: "Cormorant Garamond", ui-serif, "Georgia", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* PALETTE: blue (default) – london.mfa.gov.hu Flowbite blue on Tailwind grays */
  --c-bg:           #f9fafb;
  --c-surface:      #ffffff;
  --c-surface-alt:  #fafbfb;
  --c-surface-deep: #f3f4f6;
  --c-border:       #e5e7eb;
  --c-border-strong:#d1d5db;
  --c-text:         #111827;
  --c-text-soft:    #4b5563;
  --c-text-mute:    #6b7280;
  --c-primary:      #375088; /* london.mfa muted slate-blue */
  --c-primary-hov:  #2a3d6a;
  --c-primary-soft: #e6eaf2;
  --c-primary-ink:  #ffffff;
  --c-accent:       #0099cc; /* cyan section-label accent */
  --c-tricolor-red: #c8102e; /* sparing use only */
  --c-tricolor-grn: #436f4d;
  --c-success:      #1f7a3a;
  --c-success-soft: #e3f3e8;
  --c-warning:      #a86a00;
  --c-warning-soft: #fdf1d8;
  --c-danger:       #b3261e;
  --c-danger-soft:  #fbe6e4;
  --c-focus:        #ffbf47;
  --c-bar:          #f3f4f6; /* top utility bar – subtle */
  --c-band:         #375088; /* footer band – london.mfa blue */

  /* Spacing scale (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 56px; --s-10: 72px; --s-11: 96px;

  /* Radii – small, official */
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-xl: 14px;

  /* Shadows */
  --sh-1: 0 1px 0 rgba(17, 32, 58, 0.04), 0 1px 2px rgba(17, 32, 58, 0.04);
  --sh-2: 0 1px 0 rgba(17, 32, 58, 0.04), 0 4px 16px rgba(17, 32, 58, 0.06);
  --sh-3: 0 12px 40px rgba(17, 32, 58, 0.12);
  /* Card lift – borderless card containers use this instead of a 1px border.
     sh-mid is the default; sh-mid-hover is the slight lift on hover. */
  --sh-mid:        0 4px 6px rgba(149, 157, 165, 0.18);
  --sh-mid-hover:  0 7px 12px rgba(149, 157, 165, 0.26);

  /* Layout */
  --container: 1240px;
  --header-h: 88px;
  --bar-h: 36px;
}

/* PALETTE: navy + gold (rangos) */
[data-palette="navy"] {
  --c-bg:           #f1f3f7;
  --c-surface:      #ffffff;
  --c-surface-alt:  #f7f8fb;
  --c-surface-deep: #e7eaf2;
  --c-border:       #d3d8e4;
  --c-border-strong:#a5adc1;
  --c-text:         #0a1733;
  --c-text-soft:    #3a4664;
  --c-text-mute:    #6a7491;
  --c-primary:      #0a2540;
  --c-primary-hov:  #061a30;
  --c-primary-soft: #e1e7f0;
  --c-primary-ink:  #ffffff;
  --c-accent:       #a07a1f;
  --c-bar:          #061a30;
  --c-band:         #0a2540;
}

/* PALETTE: burgundy */
[data-palette="burgundy"] {
  --c-bg:           #f6f3f3;
  --c-surface:      #ffffff;
  --c-surface-alt:  #fbf8f8;
  --c-surface-deep: #ece6e6;
  --c-border:       #ddd2d2;
  --c-border-strong:#b8a7a7;
  --c-text:         #2a1518;
  --c-text-soft:    #5b4145;
  --c-text-mute:    #816a6e;
  --c-primary:      #7a1f2b;
  --c-primary-hov:  #5e1521;
  --c-primary-soft: #f2e3e6;
  --c-primary-ink:  #ffffff;
  --c-accent:       #7a1f2b;
  --c-bar:          #2a1518;
  --c-band:         #7a1f2b;
}

/* DARK mode – applied on body[data-dark="true"] */
[data-dark="true"] {
  --c-bg:           #0c1424;
  --c-surface:      #131c30;
  --c-surface-alt:  #182238;
  --c-surface-deep: #0a1120;
  --c-border:       #243152;
  --c-border-strong:#3a4a73;
  --c-text:         #e6ebf5;
  --c-text-soft:    #aab4cc;
  --c-text-mute:    #7e89a3;
  --c-primary:      #5b8def;
  --c-primary-hov:  #7aa3ff;
  --c-primary-soft: #1a2849;
  --c-primary-ink:  #0a1120;
  --c-bar:          #060b18;
  --c-band:         #0a1120;
  --c-success-soft: #133324;
  --c-warning-soft: #36280a;
  --c-danger-soft:  #3a1715;
  --sh-1: 0 1px 0 rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.3);
  --sh-2: 0 1px 0 rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.4);
  --sh-3: 0 12px 40px rgba(0,0,0,.5);
}
[data-dark="true"][data-palette="burgundy"] {
  --c-primary: #d96474; --c-primary-hov: #ea8493; --c-primary-soft: #3a1d22;
}
[data-dark="true"][data-palette="navy"] {
  --c-primary: #87a8f0; --c-accent: #d4b365; --c-primary-soft: #19233d;
}

/* RESET */
*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.btn { white-space: nowrap; }
a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-primary-hov); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 2px;
}
h1,h2,h3,h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; line-height: 1.15; }

/* Containers */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-7); }
@media (max-width: 800px){ .container { padding: 0 var(--s-4); } }

/* ================ TOP UTILITY BAR ================ */
.utility-bar {
  background: var(--c-bar);
  color: var(--c-text-mute);
  font-size: 12px;
  height: 30px;
  border-bottom: 1px solid var(--c-border);
}
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.utility-bar .ub-left { display: flex; align-items: center; gap: var(--s-4); white-space: nowrap; }
.utility-bar .ub-right { display: flex; align-items: center; gap: var(--s-4); white-space: nowrap; }
.utility-bar .ub-right > span, .utility-bar .ub-left > span, .utility-bar .ub-right > a, .utility-bar .ub-left > a { white-space: nowrap; }
.utility-bar a { color: inherit; text-decoration: none; }
.utility-bar a:hover { color: var(--c-primary); }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.lang-switch button {
  background: transparent; color: var(--c-text-mute); border: 0; padding: 2px 6px; font-size: 12px;
  border-radius: 3px;
}
.lang-switch button:hover { color: var(--c-text); }
.lang-switch button.on { color: var(--c-primary); font-weight: 600; }
.lang-switch span { color: var(--c-border-strong); }

/* ================ HEADER ================ */
.site-header {
  background: #fff;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 0 rgba(15, 45, 105, .04);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); padding-top: var(--s-4); padding-bottom: var(--s-4);
  gap: var(--s-6);
}
.brand { display: flex; align-items: center; gap: var(--s-4); color: var(--c-text); text-decoration: none; }
.brand:hover { color: var(--c-text); }
.brand .crest-img {
  height: 56px; width: auto; flex: none;
}
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.25; gap: 2px; }
.brand .brand-text .org { font-family: var(--font-wordmark); font-size: 14px; color: var(--c-text-soft); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.brand .brand-text .name { font-size: 20px; font-weight: 600; letter-spacing: -0.005em; color: var(--c-text); }
.brand .brand-text .sub { font-size: 13px; color: var(--c-text-soft); }

.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav a, .primary-nav button.navlink {
  color: var(--c-text); text-decoration: none; padding: 10px 14px; border-radius: var(--r-sm);
  font-weight: 500; font-size: 15px; background: transparent; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; position: relative;
}
.primary-nav a:hover, .primary-nav button.navlink:hover { background: var(--c-surface-deep); color: var(--c-primary); }
.primary-nav a.active, .primary-nav button.navlink.active {
  color: var(--c-primary); font-weight: 600;
}
.primary-nav a.active::after, .primary-nav button.navlink.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px;
  height: 2px; background: var(--c-primary); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md);
  background: transparent; border: 1px solid var(--c-border); color: var(--c-text-soft);
  position: relative;
}
.icon-btn:hover { background: var(--c-surface-deep); color: var(--c-primary); border-color: var(--c-border-strong); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-tricolor-red); box-shadow: 0 0 0 2px #fff; }
.user-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px;
  background: var(--c-surface-deep); border: 1px solid var(--c-border); color: var(--c-text); cursor: pointer;
}
.user-chip:hover { background: var(--c-primary-soft); border-color: var(--c-primary); }
.user-chip .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.user-chip { white-space: nowrap; }
.user-chip .user-name { font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--c-text); }
.user-chip .user-meta { font-size: 11px; opacity: .8; line-height: 1; margin-top: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--c-text-soft); }
.user-chip .chev { transform: rotate(90deg); transition: transform .15s ease; }
.user-chip.open .chev { transform: rotate(270deg); }

.user-menu { position: relative; }
.user-menu-pop {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 240px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  padding: 6px;
  z-index: 50;
  animation: user-menu-in .12s ease-out;
}
@keyframes user-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.user-menu-head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 6px;
}
.user-menu-name { font-size: 14px; font-weight: 600; color: var(--c-text); }
.user-menu-id { font-size: 11px; color: var(--c-text-soft); font-variant-numeric: tabular-nums; margin-top: 2px; }
.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent; border: 0; border-radius: var(--r-sm);
  color: var(--c-text); font: inherit; text-align: left; cursor: pointer;
}
.user-menu-item:hover { background: var(--c-surface-deep); color: var(--c-primary); }
.user-menu-item svg { color: var(--c-text-soft); flex-shrink: 0; }
.user-menu-item:hover svg { color: var(--c-primary); }
.user-menu-item.danger:hover { background: color-mix(in oklab, var(--c-tricolor-red) 10%, var(--c-surface)); color: var(--c-tricolor-red); }
.user-menu-item.danger:hover svg { color: var(--c-tricolor-red); }
.user-menu-sep { height: 1px; background: var(--c-border); margin: 6px 4px; }

/* Cyan section accent – small label above a section title, with short underline.
   Mirrors the Hungarian gov brand manual's "01.1." / "Bevezető" treatment. */
.eyebrow-accent {
  display: inline-block;
  font-size: 13px; font-weight: 500; color: var(--c-accent);
  letter-spacing: 0.01em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-accent);
  margin-bottom: var(--s-4);
}

/* ================ HERO (landing) ================ */
.hero {
  background: linear-gradient(180deg, var(--c-band) 0%, color-mix(in oklab, var(--c-band) 88%, #000 12%) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 300px at 80% -20%, rgba(255,255,255,.10), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; padding-top: var(--s-10); padding-bottom: var(--s-10); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-9); align-items: center; }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; } }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  padding: 6px 12px; border-radius: 999px;
  white-space: nowrap;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05;
  margin: var(--s-5) 0 var(--s-4); font-weight: 700;
}
.hero p.lede { font-size: 19px; max-width: 56ch; opacity: .92; }
.hero-cta { display: flex; gap: var(--s-3); margin-top: var(--s-6); flex-wrap: wrap; }
.hero-meta { display: flex; gap: var(--s-6); margin-top: var(--s-7); font-size: 14px; opacity: .85; flex-wrap: wrap;}
.hero-meta .item { display: flex; align-items: center; gap: 8px; }

.login-card {
  background: var(--c-surface); color: var(--c-text);
  border-radius: var(--r-lg); box-shadow: var(--sh-mid);
  padding: var(--s-7);
}
.login-card h2 { font-size: 24px; margin-bottom: var(--s-1); }
.login-card .muted { color: var(--c-text-mute); font-size: 14px; }

/* ================ BUTTONS ================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 12px 18px; border-radius: var(--r-md); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn.primary { background: var(--c-primary); color: var(--c-primary-ink); }
.btn.primary:hover { background: var(--c-primary-hov); }
.btn.on-band { background: #fff; color: var(--c-band); }
.btn.on-band:hover { background: #f1f4fa; }
.btn.secondary { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border); }
.btn.secondary:hover { background: var(--c-surface-deep); }
.btn.ghost { background: transparent; color: var(--c-text); border-color: transparent; }
.btn.ghost:hover { background: var(--c-surface-deep); }
.btn.ghost-on-band { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn.ghost-on-band:hover { background: rgba(255,255,255,.10); }
.btn.danger { background: var(--c-danger); color: #fff; }
.btn.sm { padding: 8px 12px; font-size: 14px; }
.btn.lg { padding: 14px 22px; font-size: 16px; }
.btn.block { width: 100%; }

/* ================ FORMS ================ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.field label { font-weight: 500; font-size: 14px; color: var(--c-text); }
.field .hint { font-size: 13px; color: var(--c-text-mute); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px;
  background: var(--c-surface); color: var(--c-text);
  border: 1.5px solid var(--c-border-strong); border-radius: var(--r-sm);
  padding: 10px 12px; width: 100%;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--c-text); outline: 3px solid var(--c-focus); outline-offset: 0;
}
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-primary); }
.divider-or { display: flex; align-items: center; gap: 12px; color: var(--c-text-mute); font-size: 13px; margin: var(--s-4) 0; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }

/* ================ CARDS / PANELS ================ */
.panel {
  background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--sh-mid);
}
.panel-hd {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-border);
}
.panel-hd h3 { font-size: 16px; font-weight: 600; }
.panel-hd .more { font-size: 14px; color: var(--c-text-soft); text-decoration: none; }
.panel-hd .more:hover { color: var(--c-primary); }
.panel-bd { padding: var(--s-4) var(--s-5); }
.panel-bd.tight { padding: 0; }

/* ================ BADGES / CHIPS ================ */
/* Frost: 1px border in state color, white 70% bg + backdrop-blur so badges
   stay readable on photos and colored hero panels too. */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  color: var(--c-text-soft);
  border: 1px solid var(--c-border-strong);
  white-space: nowrap;
}
.badge.success { color: var(--c-success); border-color: var(--c-success); }
.badge.warning { color: var(--c-warning); border-color: var(--c-warning); }
.badge.danger  { color: var(--c-danger);  border-color: var(--c-danger);  }
.badge.primary { color: var(--c-primary); border-color: var(--c-primary); }
.badge.lg { font-size: 13px; padding: 5px 12px; }
.badge .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 currentColor; animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 50%, transparent); }
  70%  { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ================ DASHBOARD ================ */
.page-title-bar {
  background: var(--c-surface);
  box-shadow: 0 4px 6px rgba(149, 157, 165, 0.14);
  position: relative;
  z-index: 1;
}
.page-title-bar .container { padding-top: var(--s-7); padding-bottom: var(--s-5); }
.breadcrumbs { display: flex; gap: 6px; font-size: 13px; color: var(--c-text-mute); margin-bottom: var(--s-3); }
.breadcrumbs a { color: var(--c-text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-primary); text-decoration: underline; }
.breadcrumbs .sep { opacity: .5; }
.page-title { font-size: 30px; font-weight: 700; letter-spacing: -0.015em; }
.page-subtitle { color: var(--c-text-soft); margin-top: 4px; font-size: 16px; }
.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }

.dashboard-grid {
  display: grid; grid-template-columns: 1fr 360px; gap: var(--s-6);
  padding-top: var(--s-6); padding-bottom: var(--s-9);
}
@media (max-width: 1100px){ .dashboard-grid { grid-template-columns: 1fr; } }

.col { display: flex; flex-direction: column; gap: var(--s-5); }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 700px){ .kpi-row { grid-template-columns: 1fr; } }
.kpi {
  background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--sh-mid);
  padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: 6px;
}
.kpi .label { font-size: 13px; color: var(--c-text-mute); }
.kpi .value { font-size: 28px; font-weight: 700; font-family: var(--font-display); letter-spacing: -0.01em; }
.kpi .foot { font-size: 12px; color: var(--c-text-mute); display: flex; align-items: center; gap: 6px; }

/* Status banner – Frost: full 1px border in state color + translucent bg */
.status-banner {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--c-success);
  border-radius: var(--r-md);
  box-shadow: var(--sh-mid);
  padding: var(--s-4) var(--s-5);
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center;
}
.status-banner.warn { border-color: var(--c-warning); }
.status-banner .ico {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--c-success); color: var(--c-success);
}
.status-banner.warn .ico { border-color: var(--c-warning); color: var(--c-warning); }
.status-banner .title { font-weight: 600; font-size: 15px; }
.status-banner .meta { font-size: 13px; color: var(--c-text-mute); margin-top: 2px; }

/* Event card / list / table layouts */
.events-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
@media (max-width: 800px){ .events-cards { grid-template-columns: 1fr; } }
.event-card {
  background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--sh-mid);
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.event-card:hover { box-shadow: var(--sh-mid-hover); transform: translateY(-2px); }
.event-card .cover {
  height: 120px; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, rgba(0,0,0,.04) 12px 24px),
    linear-gradient(135deg, var(--c-band) 0%, color-mix(in oklab, var(--c-band) 70%, #000 30%) 100%);
}
.event-card .cover .cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.event-card .cover .date-stamp {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.95); color: var(--c-text);
  border-radius: var(--r-sm); padding: 4px 8px 6px; min-width: 56px; text-align: center;
  font-family: var(--font-display); line-height: 1;
}
.event-card .cover .date-stamp .day { font-size: 22px; font-weight: 700; display: block; }
.event-card .cover .date-stamp .mon { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-mute); margin-top: 2px; display: block; }
.event-card .cover .top-right { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.event-card .body { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-card .kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-primary); }
.event-card .title-row { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.005em; }
.event-card .meta { font-size: 13px; color: var(--c-text-mute); display: flex; gap: var(--s-3); flex-wrap: wrap; }
.event-card .meta .item { display: inline-flex; align-items: center; gap: 6px; }
.event-card .foot { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--c-border); display: flex; justify-content: space-between; align-items: center; background: var(--c-surface-alt); }

.event-list { display: flex; flex-direction: column; }
.event-row {
  display: grid; grid-template-columns: 80px 1fr auto auto; gap: var(--s-4);
  padding: var(--s-4) var(--s-5); border-top: 1px solid var(--c-border);
  align-items: center;
}
.event-row:first-child { border-top: 0; }
.event-row .date-block {
  border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: 6px 4px 8px; text-align: center; min-width: 64px;
  font-family: var(--font-display); line-height: 1;
}
.event-row .date-block .d { font-size: 22px; font-weight: 700; }
.event-row .date-block .m { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-mute); margin-top: 4px; display: block; }
.event-row .title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.event-row .meta  { font-size: 13px; color: var(--c-text-mute); display: flex; gap: var(--s-3); flex-wrap: wrap; }
.event-row .meta .item { display: inline-flex; align-items: center; gap: 6px; }

/* Compact event row variant – for narrow sidebars */
.event-row.compact { grid-template-columns: 56px 1fr; padding: var(--s-3) var(--s-4); }
.event-row.compact .date-block { min-width: 48px; padding: 4px 2px 6px; }
.event-row.compact .date-block .d { font-size: 18px; }
.event-row.compact .date-block .m { font-size: 10px; margin-top: 2px; }
.event-row.compact .title { font-size: 14px; margin-bottom: 4px; }
.event-row.compact .meta { font-size: 12px; gap: 8px; }
.event-row.compact .status-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; justify-content: space-between; }
.event-row.compact .status-line .more-link { font-size: 12px; color: var(--c-primary); cursor: pointer; background: transparent; border: 0; padding: 0; }

.event-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.event-table th, .event-table td { text-align: left; padding: 12px var(--s-5); border-top: 1px solid var(--c-border); vertical-align: middle; }
.event-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-text-mute); background: var(--c-surface-alt); border-top: 0; }
.event-table tbody tr:hover { background: var(--c-surface-alt); }
.event-table .t-title { font-weight: 600; }

/* ================ NOTIFICATIONS / SIDEBAR LISTS ================ */
.list-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3);
  padding: var(--s-4) var(--s-5); border-top: 1px solid var(--c-border); align-items: start;
}
.list-item:first-child { border-top: 0; }
.list-item .ico {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
  display: grid; place-items: center;
}
.list-item .ico.warn    { border-color: var(--c-warning); color: var(--c-warning); }
.list-item .ico.success { border-color: var(--c-success); color: var(--c-success); }
.list-item .title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.list-item .meta { font-size: 12px; color: var(--c-text-mute); margin-top: 2px; }
.list-item .time { font-size: 12px; color: var(--c-text-mute); white-space: nowrap; }

/* Quick links grid */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-border); border-radius: var(--r-lg); overflow: hidden; }
.quick { background: var(--c-surface); padding: var(--s-4) var(--s-5); display: flex; gap: var(--s-3); align-items: flex-start; border: 0; text-align: left; color: var(--c-text); text-decoration: none; }
.quick:hover { background: var(--c-surface-alt); }
.quick .ico {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
  display: grid; place-items: center; flex: none;
}
.quick .label { font-size: 14px; font-weight: 600; }
.quick .desc  { font-size: 12px; color: var(--c-text-mute); margin-top: 2px; }

/* ================ FOOTER (london.mfa-style) ================ */
.site-footer {
  background: #18284d;
  color: rgba(255,255,255,.78);
  margin-top: var(--s-10);
  font-size: 14px;
  position: relative;
}
.site-footer .footer-skyline {
  background: var(--c-bg);
  padding: var(--s-7) 0 0;
  line-height: 0;
}
.site-footer .footer-skyline img {
  display: block;
  width: 100%; height: auto;
  margin: 0;
}
.site-footer .container {
  padding-top: var(--s-9); padding-bottom: var(--s-7);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--s-6);
}
.site-footer .footer-mark img {
  height: auto; width: 100%; max-width: 280px;
  filter: brightness(0) invert(1); /* render the line drawing white on navy */
  opacity: .95;
}
.site-footer .footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s-3) var(--s-6);
}
.site-footer .footer-nav a {
  color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  padding: 4px 2px;
}
.site-footer .footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.site-footer .footer-socials { display: flex; gap: var(--s-4); }
.site-footer .footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.20);
  transition: color .15s, border-color .15s, background .15s;
}
.site-footer .footer-socials a:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }

.site-footer .footer-rule {
  border: 0; height: 1px; width: 100%;
  background: rgba(255,255,255,.15);
  margin: var(--s-3) 0 0;
}

.site-footer .footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  width: 100%;
  font-size: 12px; color: rgba(255,255,255,.65);
  flex-wrap: wrap;
}
.site-footer .footer-bottom .copyright { white-space: nowrap; }
.site-footer .footer-bottom .version { white-space: nowrap; font-variant-numeric: tabular-nums; }
.site-footer .footer-secondary {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4);
  justify-content: center;
}
.site-footer .footer-secondary a { color: inherit; text-decoration: none; }
.site-footer .footer-secondary a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 800px) {
  .site-footer .footer-bottom { flex-direction: column; }
}

/* ================ EVENT DETAIL ================ */
.event-hero {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.event-hero .container { padding-top: var(--s-7); padding-bottom: var(--s-7); }
.event-detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-7); padding-top: var(--s-6); padding-bottom: var(--s-9); align-items: start; }
@media (max-width: 1000px){ .event-detail-grid { grid-template-columns: 1fr; } }
.event-detail-grid .panel-bd { padding: var(--s-5) var(--s-6); }
.prose { font-size: 16px; line-height: 1.65; color: var(--c-text); }
.prose p { margin: 0 0 var(--s-4); }
.prose h4 { font-size: 16px; margin: var(--s-5) 0 var(--s-2); }
.prose ul { margin: 0 0 var(--s-4) var(--s-5); padding: 0; }
.prose li { margin-bottom: 6px; }

.meta-list { display: flex; flex-direction: column; gap: var(--s-3); }
.meta-list .row { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); font-size: 14px; align-items: start; }
.meta-list .row .ico { color: var(--c-text-mute); margin-top: 1px; }
.meta-list .row .lbl { font-size: 12px; color: var(--c-text-mute); text-transform: uppercase; letter-spacing: 0.06em; display: block; }
.meta-list .row .val { color: var(--c-text); font-weight: 500; }

.attach-list { display: flex; flex-direction: column; }
.attach { display: grid; grid-template-columns: 36px 1fr auto; gap: var(--s-3); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--c-border); align-items: center; color: var(--c-text); text-decoration: none; }
.attach:first-child { border-top: 0; }
.attach:hover { background: var(--c-surface-alt); }
.attach .ico {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--c-border-strong);
  color: var(--c-text-soft);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.attach .ico.pdf { color: var(--c-danger);  border-color: var(--c-danger);  }
.attach .ico.zip { color: var(--c-warning); border-color: var(--c-warning); }
.attach .ico.img { color: var(--c-primary); border-color: var(--c-primary); }
.attach .title { font-size: 14px; font-weight: 500; }
.attach .meta { font-size: 12px; color: var(--c-text-mute); margin-top: 2px; }

.contact-card { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--c-border); }
.contact-card:first-child { border-top: 0; }
.contact-card .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; font-weight: 600; font-size: 16px; }
.contact-card .nm { font-weight: 600; font-size: 14px; }
.contact-card .ro { font-size: 13px; color: var(--c-text-mute); margin-bottom: 4px; }
.contact-card .li { font-size: 13px; color: var(--c-text-soft); }
.contact-card a { color: var(--c-primary); }

/* ================ PROFILE ================ */
.profile-header { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s-5); align-items: center; padding-top: var(--s-6); padding-bottom: var(--s-6); }
.profile-header .avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; font-weight: 700; font-size: 32px; font-family: var(--font-display); border: 2px solid var(--c-border); }
.profile-header h2 { font-size: 28px; }
.profile-header .meta { color: var(--c-text-mute); margin-top: 4px; display: flex; gap: var(--s-4); flex-wrap: wrap; font-size: 14px; }
.profile-tabs { display: flex; gap: var(--s-2); border-bottom: 1px solid var(--c-border); }
.profile-tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; font-size: 15px; font-weight: 500; color: var(--c-text-soft); cursor: pointer; margin-bottom: -1px; }
.profile-tabs button.active { color: var(--c-text); border-bottom-color: var(--c-primary); font-weight: 600; }
.profile-tabs button:hover { color: var(--c-text); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-7); padding: var(--s-5); }
.detail-grid .dt { font-size: 12px; color: var(--c-text-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.detail-grid .dd { font-size: 15px; margin-top: 2px; }

/* ================ FILTERS BAR ================ */
.filter-bar { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-3) 0; }
.filter-bar .search { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.filter-bar .search input { width: 100%; padding: 10px 14px 10px 38px; border: 1.5px solid var(--c-border-strong); background: var(--c-surface); color: var(--c-text); border-radius: var(--r-md); font: inherit; font-size: 14px; }
.filter-bar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-text-mute); pointer-events: none; }
.chip {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--c-border-strong);
  padding: 8px 12px; border-radius: 999px;
  font-size: 13px; color: var(--c-text-soft); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--c-primary); color: var(--c-text); }
.chip.active { background: var(--c-primary); color: var(--c-primary-ink); border-color: var(--c-primary); }

.segmented { display: inline-flex; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.segmented button { background: transparent; border: 0; padding: 8px 12px; font-size: 13px; color: var(--c-text-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.segmented button.on { background: var(--c-primary); color: var(--c-primary-ink); }

/* ================ EVENT CALENDAR ================ */
.calendar-panel { padding: 0; overflow: hidden; }
.calendar-toolbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-border);
  gap: var(--s-3);
}
.calendar-nav { display: inline-flex; gap: 6px; align-items: center; }
.calendar-nav .icon-btn.sm { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; }
.calendar-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  text-align: center;
  letter-spacing: -0.005em;
  text-transform: capitalize;
}
.calendar-legend {
  display: inline-flex; gap: 12px; align-items: center; justify-self: end;
  font-size: 12px; color: var(--c-text-mute);
}
.calendar-legend .dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px;
  vertical-align: middle;
}
.calendar-legend .dot.reg  { background: var(--c-success, #2e7d32); }
.calendar-legend .dot.wait { background: var(--c-warning, #c98a00); }
.calendar-legend .dot.open { background: var(--c-primary); }

.calendar-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--c-border);
  gap: 1px;
}
.calendar-wd {
  background: var(--c-surface-alt);
  padding: 8px 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c-text-mute);
}
.calendar-wd.weekend { color: var(--c-tricolor-red, #b40000); }

.calendar-day {
  background: var(--c-surface);
  min-height: 112px;
  padding: 6px 6px 8px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
  min-width: 0;
}
.calendar-day.weekend { background: color-mix(in oklab, var(--c-surface) 96%, var(--c-text) 4%); }
.calendar-day.out { background: var(--c-surface-alt); }
.calendar-day.out .calendar-day-num { color: var(--c-text-mute); opacity: 0.55; }
.calendar-day-num {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  color: var(--c-text);
  width: 24px; height: 24px;
  display: grid; place-items: center;
  line-height: 1;
}
.calendar-day.today .calendar-day-num {
  background: var(--c-primary); color: var(--c-primary-ink);
  border-radius: 50%;
}
.calendar-day-events { display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.calendar-chip {
  display: flex; align-items: baseline; gap: 6px;
  text-align: left; width: 100%;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--c-primary);
  border-radius: 3px;
  font: inherit; font-size: 11.5px; color: var(--c-text); cursor: pointer;
  overflow: hidden;
}
.calendar-chip:hover { border-color: var(--c-primary-hov); }
.calendar-chip-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--c-text-soft); flex-shrink: 0; }
.calendar-chip-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.calendar-chip.registered { border-color: var(--c-success); }
.calendar-chip.waitlist   { background: color-mix(in oklab, var(--c-warning, #c98a00) 16%, var(--c-surface)); border-left-color: var(--c-warning, #c98a00); }
.calendar-more { font-size: 11px; color: var(--c-text-mute); padding: 0 6px; }

@media (max-width: 900px) {
  .calendar-toolbar { grid-template-columns: 1fr; text-align: center; }
  .calendar-nav, .calendar-legend { justify-self: center; }
  .calendar-day { min-height: 78px; }
  .calendar-chip-title { display: none; }
}

/* ================ DECORATIVE ELEMENTS ================ */
.placeholder-img {
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 8px, transparent 8px 16px),
    var(--c-surface-deep);
  border: 1px dashed var(--c-border-strong);
  color: var(--c-text-mute);
  font-family: var(--font-mono); font-size: 12px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
}

/* Tooltips/microcopy small links */
.linkish { color: var(--c-primary); cursor: pointer; }
.linkish:hover { color: var(--c-primary-hov); text-decoration: underline; }

/* ================ SECTION TITLES ================ */
.section-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: var(--s-3); }

/* Accessibility: skip link */
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--c-primary); padding: 12px 16px; border-radius: 4px; }
.skip:focus { left: 12px; top: 12px; z-index: 1000; }

/* ================ PRESS RELEASES ================ */

/* Filter-bar select wrappers */
.filter-bar .select-wrap { display: flex; flex-direction: column; gap: 2px; }
.filter-bar .select-wrap.search-wrap { flex: 1; min-width: 240px; max-width: 420px; }
.filter-bar .select-wrap.search-wrap .search { position: relative; }
.filter-bar .select-wrap label { font-size: 11px; color: var(--c-text-mute); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.filter-bar .select-wrap select {
  font: inherit; font-size: 14px; background: var(--c-surface); color: var(--c-text);
  border: 1.5px solid var(--c-border-strong); border-radius: var(--r-md);
  padding: 8px 30px 8px 12px; min-width: 160px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236f7a91' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}

/* Section eyebrow above release groups */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--c-accent);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: var(--s-3);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-accent);
}

/* Releases grid */
.releases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.releases-grid.pinned { grid-template-columns: 1fr; }
@media (max-width: 900px){ .releases-grid { grid-template-columns: 1fr; } }

/* Release card */
.release-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-mid);
  padding: var(--s-5);
  display: grid; grid-template-columns: 72px 1fr; gap: var(--s-5);
  cursor: pointer;
  transition: box-shadow .18s ease, transform .18s ease;
}
.release-card:hover {
  box-shadow: var(--sh-mid-hover);
  transform: translateY(-2px);
}
.releases-grid.pinned .release-card {
  border: 1px solid var(--c-primary);
}
.release-date {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: var(--s-3) var(--s-2);
  background: var(--c-primary-soft); color: var(--c-primary);
  border-radius: var(--r-md);
  line-height: 1; height: max-content;
}
.release-date .d { font-size: 26px; font-weight: 700; }
.release-date .m { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.release-date .y { font-size: 11px; opacity: .7; margin-top: 4px; }
.release-body { min-width: 0; }
.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--s-3); }
.topic-tag {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
}
.release-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600; line-height: 1.25;
  margin: 0 0 var(--s-2);
  letter-spacing: -0.005em; color: var(--c-text);
}
.releases-grid.pinned .release-title { font-size: 22px; }
.release-lead {
  margin: 0 0 var(--s-3);
  color: var(--c-text-soft); font-size: 14px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.release-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  margin-top: var(--s-3);
  padding-top: var(--s-3); border-top: 1px solid var(--c-border);
  font-size: 13px; color: var(--c-text-mute);
}
.release-foot-meta { display: inline-flex; align-items: center; gap: 6px; }
.dotsep { opacity: .5; }

/* Language pills */
.lang-pills { display: inline-flex; gap: 4px; }
.lang-pill {
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  padding: 3px 6px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  color: var(--c-text-mute);
  border: 1px solid var(--c-border-strong);
}
.lang-pill.on { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* Detail layout */
.release-detail-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: var(--s-7);
  align-items: start;
}
@media (max-width: 1000px){ .release-detail-grid { grid-template-columns: 1fr; } }

.back-link { font-size: 13px; color: var(--c-text-soft); text-decoration: none; }
.back-link:hover { color: var(--c-primary); }

.release-h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; line-height: 1.18;
  letter-spacing: -0.01em; margin: var(--s-4) 0 var(--s-4); color: var(--c-text);
}
.release-lede {
  font-size: 19px; line-height: 1.55; color: var(--c-text);
  margin: 0 0 var(--s-6);
  font-weight: 400;
  border-left: 3px solid var(--c-accent);
  padding-left: var(--s-4);
}
.release-content p { font-size: 16px; line-height: 1.7; margin: 0 0 var(--s-4); color: var(--c-text); }
.release-content p:last-child { margin-bottom: 0; }

.release-share { display: flex; align-items: center; gap: 8px; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--c-border); }

/* Related list */
.related-list { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: var(--c-surface); box-shadow: var(--sh-mid); margin-top: var(--s-3); }
.related-item {
  display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-4); color: var(--c-text); text-decoration: none;
  border-bottom: 1px solid var(--c-border);
}
.related-item:last-child { border-bottom: 0; }
.related-item:hover { background: var(--c-surface-deep); }
.related-item .d { font-size: 12px; color: var(--c-text-mute); white-space: nowrap; }
.related-item .t { font-weight: 500; }

/* Sidebar */
.release-side { display: flex; flex-direction: column; gap: var(--s-4); position: sticky; top: var(--s-4); }
.press-kit-panel { border: 1px solid var(--c-primary); }
.press-kit-panel .panel-hd { border-bottom-color: color-mix(in oklab, var(--c-primary) 25%, transparent); }
.press-kit-panel .panel-hd h3 { color: var(--c-primary); }

/* Attachments list */
.attachments-list { list-style: none; padding: 0; margin: 0; }
.attachments-list li {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-border);
}
.attachments-list li:last-child { border-bottom: 0; }
.attachments-list .att-icon {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--c-primary-soft); color: var(--c-primary);
}
.attachments-list .att-title { font-size: 14px; font-weight: 500; color: var(--c-text); }
.attachments-list .att-sub { font-size: 12px; color: var(--c-text-mute); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   v2 – Külképviseleti gyűjtő főoldal (hub)
   A portál design tokenjeire épül; a hub a nyilvános belépő.
   ========================================================================== */
.hub { background: var(--c-bg); min-height: 100vh; }

/* Fejléc */
.hub-header { background: var(--c-surface); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 20; }
.hub-header-in { display: flex; align-items: center; gap: var(--s-6); height: 72px; }
.hub-brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.hub-brand .crest-img { height: 40px; width: auto; }
.hub-brand .org { font-family: var(--font-wordmark); font-size: 12px; color: var(--c-text-soft); letter-spacing: 0.14em; text-transform: uppercase; display: block; }
.hub-brand .name { font-family: var(--font-wordmark); font-size: 24px; font-weight: 600; color: var(--c-text); line-height: 1; }
.hub-nav { display: flex; gap: var(--s-5); margin-left: var(--s-5); }
.hub-nav a { font-size: 14px; font-weight: 500; color: var(--c-text-soft); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.hub-nav a:hover { color: var(--c-primary); }
.hub-nav a.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.hub-header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-4); }

/* Hero */
.hub-hero { background: linear-gradient(160deg, var(--c-band) 0%, var(--c-primary-hov) 100%); color: #fff; padding: var(--s-10) 0 var(--s-9); }
.hub-kicker { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.8); margin: 0 0 var(--s-3); }
.hub-hero-title { font-family: var(--font-wordmark); font-size: 52px; font-weight: 600; line-height: 1.05; margin: 0 0 var(--s-4); }
.hub-hero-lead { font-size: 18px; line-height: 1.5; font-weight: 300; color: rgba(255,255,255,.94); max-width: 720px; margin: 0 0 var(--s-6); }
.hub-search { position: relative; max-width: 560px; }
.hub-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--c-text-mute); }
.hub-search input { width: 100%; padding: 14px 16px 14px 46px; border: 0; border-radius: var(--r-lg); font: inherit; font-size: 15px; color: var(--c-text); }
.hub-regions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); }
.hub-regions .chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.hub-regions .chip:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.hub-regions .chip.active { background: #fff; color: var(--c-primary); border-color: #fff; }

/* Tartalom */
.hub-body { display: grid; grid-template-columns: 1fr 340px; gap: var(--s-8); padding: var(--s-8) var(--s-7) var(--s-9); }
.hub-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s-4); }
.hub-section-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.hub-section-head .muted { font-size: 13px; color: var(--c-text-mute); text-decoration: none; }

/* Képviselet-rács */
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.mission-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
.mission-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
/* Halvány, kör alakú zászló-vízjel (flare) a kártya jobb felső sarkában */
.mission-flag-wm { position: absolute; top: -22px; right: -22px; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; opacity: .13; pointer-events: none; z-index: 0; -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 72%); mask-image: radial-gradient(circle, #000 52%, transparent 72%); }
.mission-card > :not(.mission-flag-wm) { position: relative; z-index: 1; }
.mission-card:hover .mission-flag-wm { opacity: .2; }
.mission-region-line { font-size: 12px; color: var(--c-text-mute); }
.mission-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mission-type { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-primary); background: var(--c-primary-soft); padding: 3px 8px; border-radius: var(--r-sm); }
.mission-region { font-size: 11px; color: var(--c-text-mute); }
.mission-city { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-top: 4px; }
.mission-country { font-size: 14px; color: var(--c-text-soft); }
.mission-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--c-border); }
.mission-url { font-family: var(--font-mono); font-size: 11px; color: var(--c-text-mute); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mission-visit { display: inline-flex; align-items: center; gap: 4px; flex: none; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--c-primary); }
.mission-empty { grid-column: 1 / -1; padding: var(--s-8); text-align: center; color: var(--c-text-mute); }

/* Hírfolyam */
.hub-feed { position: sticky; top: 96px; align-self: start; }
.feed-list, .info-list, .social-list, .post-list { list-style: none; margin: 0; padding: 0; }
.feed-list { display: flex; flex-direction: column; }
.feed-item { padding: var(--s-4) 0; border-bottom: 1px solid var(--c-border); }
.feed-item:first-child { padding-top: 0; }
.feed-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.feed-kind { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--r-sm); }
.feed-kind.k-release { background: var(--c-primary-soft); color: var(--c-primary); }
.feed-kind.k-news { background: var(--c-success-soft); color: var(--c-success); }
.feed-kind.k-event { background: var(--c-warning-soft); color: var(--c-warning); }
.feed-kind.k-travel { background: #e5f5fa; color: var(--c-accent); }
.feed-kind.k-visa { background: var(--c-primary-soft); color: var(--c-primary); }
.feed-kind.k-notice { background: var(--c-surface-deep); color: var(--c-text-soft); }
.feed-date { font-size: 11.5px; color: var(--c-text-mute); }
.feed-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--c-text); text-decoration: none; margin-bottom: 4px; }
.feed-title:hover { color: var(--c-primary); }
.feed-src { font-size: 11.5px; color: var(--c-text-mute); font-family: var(--font-mono); }

/* Sajtóportál belépő */
.hub-press { background: var(--c-surface); border-top: 1px solid var(--c-border); }
.hub-press-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); padding: var(--s-8) var(--s-7); flex-wrap: wrap; }
.hub-press h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.hub-press p { font-size: 15px; color: var(--c-text-soft); }
.btn.lg { padding: 13px 22px; font-size: 15px; }

/* Lábléc */
.hub-footer { background: var(--c-band); color: #fff; }
.hub-footer .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-6) var(--s-7); }
.hub-footer .muted { color: rgba(255,255,255,.7); font-size: 13px; }

/* ---- v2 hub: bővített főoldal szekciók ---------------------------------- */
.hub-band { padding: var(--s-9) 0; }
.hub-band.alt { background: var(--c-surface); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.hub-band .container { padding-left: var(--s-7); padding-right: var(--s-7); }
.hub-section-lead { font-size: 15px; color: var(--c-text-soft); margin-top: 4px; }
.hub-section-head h2.sub { font-size: 18px; }

/* Riasztás sáv */
.hub-alert { background: var(--c-warning-soft); border-bottom: 1px solid #f0dcb4; }
.hub-alert-in { display: flex; align-items: center; gap: 10px; padding: 10px var(--s-7); color: var(--c-warning); font-size: 13.5px; }
.hub-alert-in svg { flex: none; }
.hub-alert-in b { font-weight: 600; }
.hub-alert-in span { color: #8a6300; }

/* Állampolgároknak */
.citizen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.citizen-card { display: flex; flex-direction: column; gap: 8px; padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
.citizen-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.citizen-card.cta { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.citizen-ico { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; }
.citizen-card.cta .citizen-ico { background: rgba(255,255,255,.16); color: #fff; }
.citizen-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.citizen-desc { font-size: 13px; line-height: 1.45; color: var(--c-text-soft); }
.citizen-card.cta .citizen-desc { color: rgba(255,255,255,.9); }

/* Térkép (Leaflet + CARTO Voyager csempék) */
.hub-map { border: 1px solid var(--c-border); border-radius: var(--r-xl); overflow: hidden; }
.hub-leaflet { width: 100%; aspect-ratio: 16 / 7; background: #dfeaf5; z-index: 1; }
.hub-leaflet .leaflet-container { font: inherit; }
.hub-leaflet .leaflet-tile-pane { filter: saturate(1.08); }
.hub-leaflet .leaflet-popup-content, .hub-leaflet .leaflet-tooltip { font-size: 12px; }

/* Kétoszlopos szekció (konzuli info + hírek, közösségi) */
.hub-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }

/* Konzuli info lista */
.info-list { display: flex; flex-direction: column; }
.info-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.info-item:first-child { padding-top: 0; }
.info-kind { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-accent); background: #e5f5fa; padding: 3px 8px; border-radius: var(--r-sm); white-space: nowrap; }
.info-title { font-size: 14.5px; font-weight: 500; color: var(--c-text); text-decoration: none; }
.info-title:hover { color: var(--c-primary); }
.info-date { font-size: 12px; color: var(--c-text-mute); white-space: nowrap; }

/* Kulturális intézetek + CTA */
.culture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.culture-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px var(--s-5); background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-lg); text-decoration: none; color: inherit; }
.culture-card:hover { border-color: var(--c-primary); }
.culture-city { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.culture-url { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11.5px; color: var(--c-text-mute); }
.culture-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); margin-top: var(--s-5); padding: var(--s-6); border-radius: var(--r-xl); background: linear-gradient(135deg, #7a1f3d 0%, #5a1730 100%); color: #fff; text-decoration: none; flex-wrap: wrap; }
.culture-cta b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 3px; }
.culture-cta span { color: rgba(255,255,255,.85); font-size: 13px; }
.culture-cta .btn.primary { background: #fff; color: #5a1730; border: 0; }
/* A CTA egy <a>, ne kéküljön a szöveg/gomb hoverkor (globális a:hover ellen) */
.culture-cta:hover, .culture-cta:hover b, .culture-cta:hover span { color: #fff; }
.culture-cta:hover .btn.primary { color: #5a1730; background: #f4e9ed; }

/* Közösségi média */
.social-search { position: relative; margin-bottom: var(--s-4); }
.social-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-text-mute); }
.social-search input { width: 100%; padding: 10px 12px 10px 36px; border: 1.5px solid var(--c-border-strong); border-radius: var(--r-md); font: inherit; font-size: 14px; }
.social-list { display: flex; flex-direction: column; }
.social-acc { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.social-acc:first-child { padding-top: 0; }
.social-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.social-ic.sm { width: 26px; height: 26px; font-size: 10.5px; border-radius: 6px; }
.social-ic.p-fb { background: #1877f2; }
.social-ic.p-ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.social-ic.p-x  { background: #111827; }
.social-acc-main { display: flex; flex-direction: column; min-width: 0; }
.social-name { font-size: 14px; font-weight: 600; }
.social-handle { font-size: 12px; color: var(--c-text-mute); }
.social-view { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--c-primary); text-decoration: none; flex: none; }
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 14px var(--s-4); }
.post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.post-acc { font-size: 12.5px; font-weight: 600; }
.post-date { margin-left: auto; font-size: 11.5px; color: var(--c-text-mute); }
.post-text { font-size: 14px; line-height: 1.5; color: var(--c-text); }

/* ==========================================================================
   v2 – Belső (jelszóval védett) munkafelület
   ========================================================================== */
.hub-internal-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--c-text-soft); }
.hub-internal-link:hover { color: var(--c-primary); }

/* Demó jelvény */
.int-demo-badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--c-warning); background: var(--c-warning-soft); border: 1px solid #f0dcb4; padding: 2px 8px; border-radius: 999px; }
.int-demo-badge.sm { font-size: 9.5px; padding: 1px 6px; vertical-align: middle; }

/* Kapu */
.int-gate { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--c-band) 0%, var(--c-primary-hov) 100%); padding: var(--s-6); }
.int-gate-card { width: 100%; max-width: 400px; background: var(--c-surface); border-radius: var(--r-xl); padding: var(--s-8); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.int-gate-card .crest-img { height: 52px; width: auto; margin-bottom: var(--s-4); }
.int-gate-card h1 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: var(--s-3) 0 6px; letter-spacing: -.01em; }
.int-gate-card > p { font-size: 14px; color: var(--c-text-soft); margin-bottom: var(--s-5); }
.int-pw { position: relative; margin-bottom: var(--s-3); }
.int-pw svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-text-mute); }
.int-pw input { width: 100%; padding: 12px 14px 12px 40px; border: 1.5px solid var(--c-border-strong); border-radius: var(--r-md); font: inherit; font-size: 15px; }
.int-gate-demo { font-size: 12px; color: var(--c-text-mute); margin-top: var(--s-4); }
.int-gate-back { margin-top: var(--s-3); background: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; color: var(--c-primary); }

/* Munkafelület */
.int { min-height: 100vh; background: var(--c-bg); }
.int-header { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.int-header-in { max-width: 1280px; margin: 0 auto; padding: 14px var(--s-7); display: flex; align-items: center; gap: var(--s-5); }
.int-brand { display: flex; align-items: center; gap: 12px; }
.int-brand .crest-img { height: 40px; width: auto; }
.int-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; display: block; }
.int-sub { font-size: 12.5px; color: var(--c-text-mute); }
.int-header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-4); }

.int-body { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 220px 1fr; gap: var(--s-6); padding: var(--s-6) var(--s-7) var(--s-9); }
.int-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; align-self: start; }
.int-navlink { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-md); background: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; color: var(--c-text-soft); text-align: left; }
.int-navlink svg { color: var(--c-text-mute); }
.int-navlink:hover { background: var(--c-surface); }
.int-navlink.on { background: var(--c-primary-soft); color: var(--c-primary); font-weight: 600; }
.int-navlink.on svg { color: var(--c-primary); }

.int-main { min-width: 0; }
.int-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-5); }
.int-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.int-head p { font-size: 14px; color: var(--c-text-soft); margin-top: 4px; max-width: 640px; }
.int-foot-note { font-size: 12.5px; color: var(--c-text-mute); margin-top: var(--s-4); }

/* Médiatár tábla */
.int-table-wrap { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow-x: auto; }
.int-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.int-table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-mute); padding: 11px 14px; background: var(--c-surface-alt); border-bottom: 1px solid var(--c-border); }
.int-table td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); font-size: 13.5px; vertical-align: top; }
.int-table tr:last-child td { border-bottom: 0; }
.int-table .c { text-align: center; }
.int-table .muted { color: var(--c-text-mute); }
.int-table .mono { font-family: var(--font-mono); font-size: 12px; }
.int-table .nowrap { white-space: nowrap; }
.asset-cell { display: flex; gap: 10px; }
.asset-type { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: var(--r-sm); height: fit-content; white-space: nowrap; }
.asset-type.ty-photo { background: var(--c-primary-soft); color: var(--c-primary); }
.asset-type.ty-video { background: #f5f3ff; color: #6d28d9; }
.asset-type.ty-doc   { background: var(--c-surface-deep); color: var(--c-text-soft); }
.asset-title { font-weight: 600; color: var(--c-text); }
.asset-cat, .asset-loc, .asset-dim { font-size: 11.5px; color: var(--c-text-mute); margin-top: 2px; }
.asset-note { color: var(--c-text-soft); max-width: 200px; }

/* Toggle (újrahasznosítva) */
.toggle { width: 38px; height: 22px; border-radius: 999px; border: 0; cursor: pointer; position: relative; flex: none; padding: 0; }
.toggle.on { background: var(--c-primary); } .toggle.off { background: var(--c-border-strong); }
.toggle::after { content: ""; position: absolute; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .12s; }
.toggle.on::after { left: 19px; } .toggle.off::after { left: 3px; }

/* Események */
.ev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: var(--s-5); }
.ev-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5); }
.ev-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: var(--s-4); }
.ev-card-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.ev-card-meta { font-size: 12.5px; color: var(--c-text-mute); margin-top: 3px; }
.ev-row { padding: 10px 0; border-top: 1px solid var(--c-border); }
.ev-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-mute); display: block; margin-bottom: 7px; }
.ev-targets { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-target { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--c-surface-deep); color: var(--c-text-mute); }
.ev-target.on { background: var(--c-primary-soft); color: var(--c-primary); font-weight: 600; }
.ev-row.toggles { display: flex; gap: var(--s-6); }
.ev-toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--c-text); cursor: pointer; }
.ev-actions { display: flex; gap: 9px; margin-top: var(--s-4); flex-wrap: wrap; }
.btn.ghost { background: none; border: 1px solid var(--c-border); color: var(--c-text-soft); }

/* Hírek szerkesztő */
.news-editor { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5); max-width: 720px; }
.news-title { width: 100%; font-family: var(--font-display); font-size: 18px; font-weight: 600; border: 0; border-bottom: 1px solid var(--c-border); padding: 8px 0; margin-bottom: var(--s-4); }
.news-title:focus, .news-body:focus { outline: none; border-color: var(--c-primary); }
.news-body { width: 100%; border: 1.5px solid var(--c-border); border-radius: var(--r-md); padding: 12px; font: inherit; font-size: 14px; line-height: 1.6; resize: vertical; }
.news-foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s-4); }

/* Igazgatói anyagok */
.director-card { display: flex; align-items: center; gap: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5); max-width: 640px; }
.director-av { width: 52px; height: 52px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; font-weight: 700; flex: none; }
.director-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.director-role { font-size: 13px; color: var(--c-text-soft); }
.director-file { font-size: 12px; color: var(--c-text-mute); margin-top: 5px; }
.director-card .btn { margin-left: auto; }

/* ---- v2 belső: médiatár rács + részletnézet -------------------------------- */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.media-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.media-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.media-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--c-surface-deep); display: grid; place-items: center; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb.ty-doc { background: linear-gradient(135deg, #eef1f7, #e2e8f2); }
.media-doc-ico { color: var(--c-primary); opacity: .55; }
.media-doc-ico.lg { opacity: .5; }
.media-typebadge { position: absolute; top: 9px; left: 9px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(17,24,39,.72); color: #fff; padding: 3px 7px; border-radius: var(--r-sm); }
.media-flag { position: absolute; top: 9px; right: 9px; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-sm); }
.media-flag.on { background: var(--c-success-soft); color: var(--c-success); }
.media-flag.off { background: var(--c-warning-soft); color: var(--c-warning); }
.media-play { position: absolute; bottom: 9px; right: 9px; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; background: rgba(17,24,39,.78); color: #fff; padding: 3px 8px; border-radius: var(--r-sm); }
.media-play.lg { font-size: 13px; padding: 5px 11px; }
.media-card-bd { padding: 12px 14px 14px; }
.media-card-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.3; }
.media-card-sub { font-size: 12.5px; color: var(--c-text-mute); margin-top: 3px; }
.media-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--c-border); font-size: 12px; color: var(--c-text-soft); }

/* Vissza gomb */
.int-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--c-primary); margin-bottom: var(--s-4); }

/* Részletnézet */
.media-detail { display: grid; grid-template-columns: 1fr 380px; gap: var(--s-6); align-items: start; }
.media-preview { position: relative; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-deep); display: grid; place-items: center; min-height: 320px; }
.media-preview img { width: 100%; height: auto; display: block; }
.media-preview.ty-doc { min-height: 360px; background: linear-gradient(135deg, #eef1f7, #e2e8f2); }
.media-note-box { margin-top: var(--s-4); padding: 14px 16px; background: var(--c-surface); border: 1px solid var(--c-border); border-left: 3px solid var(--c-accent); border-radius: var(--r-md); font-size: 14px; line-height: 1.5; color: var(--c-text-soft); }
.media-note-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-mute); margin-bottom: 4px; }

.media-detail-side { display: flex; flex-direction: column; gap: var(--s-4); }
.media-panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5); }
.media-panel h3 { font-size: 13px; font-weight: 600; letter-spacing: .02em; margin-bottom: var(--s-3); }
.media-hint { font-size: 12px; color: var(--c-text-mute); margin-bottom: 10px; }
.meta-dl { display: flex; flex-direction: column; gap: 9px; }
.meta-dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.meta-dl dt { font-size: 12.5px; color: var(--c-text-mute); }
.meta-dl dd { font-size: 13.5px; color: var(--c-text); }
.filename-row { display: flex; align-items: center; gap: 10px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 9px 11px; }
.filename-row code { font-family: var(--font-mono); font-size: 11.5px; color: var(--c-text); word-break: break-all; flex: 1; }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.var-table { width: 100%; border-collapse: collapse; }
.var-table th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-mute); padding: 0 8px 8px; }
.var-table td { padding: 8px; border-top: 1px solid var(--c-border); font-size: 13px; }
.var-table td.c { text-align: center; }
.var-dl { background: none; border: 1px solid var(--c-border); border-radius: var(--r-sm); width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; color: var(--c-primary); }
.var-dl:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
