/* KÜM Sajtó Portál — Design tokens & base styles
   Original design — not a copy of DÁP/services.gov.hu. Inspired by clean
   government portal aesthetics (high contrast, generous spacing, large hit
   targets, clear focus states).                                            */

:root {
  /* Type — defaults to Public Sans (set on body, overridden by [data-font]) */
  --font-sans: "Public Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Public Sans", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* PALETTE: blue (default) — official government blue, cool greys */
  --c-bg:           #f4f6fa;
  --c-surface:      #ffffff;
  --c-surface-alt:  #fafbfd;
  --c-surface-deep: #eef1f6;
  --c-border:       #d9dee7;
  --c-border-strong:#aeb6c4;
  --c-text:         #11203a;
  --c-text-soft:    #475068;
  --c-text-mute:    #6f7a91;
  --c-primary:      #0b3d91;
  --c-primary-hov:  #082f73;
  --c-primary-soft: #e5edfb;
  --c-primary-ink:  #ffffff;
  --c-accent:       #0b3d91;
  --c-success:      #1f7a3a;
  --c-success-soft: #e3f3e8;
  --c-warning:      #a86a00;
  --c-warning-soft: #fdf1d8;
  --c-danger:       #b3261e;
  --c-danger-soft:  #fbe6e4;
  --c-focus:        #ffbf47; /* gov-style high-contrast focus */
  --c-bar:          #11203a; /* top utility bar */
  --c-band:         #0b3d91; /* primary header band */

  /* 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);

  /* 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;
}

/* Type override */
[data-font="plex"]      { --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
                          --font-display: "IBM Plex Serif", ui-serif, Georgia, serif; }
[data-font="dmsans"]    { --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
                          --font-display: "DM Sans", var(--font-sans); }

/* 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: rgba(255,255,255,.86);
  font-size: 13px;
  height: var(--bar-h);
}
.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; opacity: .85; }
.utility-bar a:hover { opacity: 1; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.lang-switch button {
  background: transparent; color: inherit; border: 0; padding: 4px 8px; font-size: 13px;
  border-radius: 3px; opacity: .65;
}
.lang-switch button.on { opacity: 1; font-weight: 600; }
.lang-switch span { opacity: .4; }

/* ================ HEADER ================ */
.site-header {
  background: var(--c-band);
  color: #fff;
}
.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: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand .crest {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center; flex: none;
}
.brand .crest svg { width: 28px; height: 28px; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand .brand-text .org { font-size: 12px; opacity: .82; letter-spacing: 0.06em; text-transform: uppercase; }
.brand .brand-text .name { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.brand .brand-text .sub { font-size: 13px; opacity: .82; }

.primary-nav { display: flex; align-items: center; gap: var(--s-2); }
.primary-nav a, .primary-nav button.navlink {
  color: #fff; 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;
}
.primary-nav a:hover, .primary-nav button.navlink:hover { background: rgba(255,255,255,.10); }
.primary-nav a.active, .primary-nav button.navlink.active { background: rgba(255,255,255,.16); }

.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 rgba(255,255,255,.22); color: #fff;
  position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,.10); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #ffbf47; box-shadow: 0 0 0 2px var(--c-band); }
.user-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: #fff; cursor: pointer;
}
.user-chip:hover { background: rgba(255,255,255,.14); }
.user-chip .avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.16); 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; }
.user-chip .user-meta { font-size: 11px; opacity: .75; line-height: 1; margin-top: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ================ 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-3);
  padding: var(--s-7);
  border: 1px solid var(--c-border);
}
.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: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.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 ================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  padding: 3px 8px; border-radius: 999px;
  background: var(--c-surface-deep); color: var(--c-text-soft);
  border: 1px solid var(--c-border);
  white-space: nowrap;
}
.badge.success { background: var(--c-success-soft); color: var(--c-success); border-color: color-mix(in oklab, var(--c-success) 20%, transparent); }
.badge.warning { background: var(--c-warning-soft); color: var(--c-warning); border-color: color-mix(in oklab, var(--c-warning) 25%, transparent); }
.badge.danger  { background: var(--c-danger-soft);  color: var(--c-danger);  border-color: color-mix(in oklab, var(--c-danger)  25%, transparent); }
.badge.primary { background: var(--c-primary-soft); color: var(--c-primary); border-color: color-mix(in oklab, var(--c-primary) 25%, transparent); }
.badge.lg { font-size: 13px; padding: 5px 10px; }
.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);
  border-bottom: 1px solid var(--c-border);
}
.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: 1px solid var(--c-border); border-radius: var(--r-lg);
  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 */
.status-banner {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-success);
  border-radius: var(--r-md);
  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-left-color: var(--c-warning); }
.status-banner .ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c-success-soft); color: var(--c-success); }
.status-banner.warn .ico { background: var(--c-warning-soft); 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: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.event-card:hover { border-color: var(--c-border-strong); box-shadow: var(--sh-2); }
.event-card .cover {
  height: 120px; position: relative;
  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 .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: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; }
.list-item .ico.warn { background: var(--c-warning-soft); color: var(--c-warning); }
.list-item .ico.success { background: var(--c-success-soft); 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: var(--c-primary-soft); 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 ================ */
.site-footer {
  background: var(--c-bar); color: rgba(255,255,255,.78); margin-top: var(--s-10);
  font-size: 14px;
}
.site-footer .container { padding-top: var(--s-8); padding-bottom: var(--s-8); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-7); }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: inherit; text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer .copyright { border-top: 1px solid rgba(255,255,255,.12); padding: var(--s-4) 0; font-size: 12px; opacity: .65; display: flex; justify-content: space-between; }
@media (max-width: 800px){ .site-footer .container { grid-template-columns: 1fr 1fr; } }

/* ================ 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; background: var(--c-surface-deep); color: var(--c-text-soft); border-radius: var(--r-sm); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.attach .ico.pdf { color: #b3261e; background: #fbe6e4; }
.attach .ico.zip { color: var(--c-warning); background: var(--c-warning-soft); }
.attach .ico.img { color: var(--c-primary); background: var(--c-primary-soft); }
.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: var(--c-surface); border: 1px solid var(--c-border); 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-border-strong); }
.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); }

/* ================ 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; }
