/* The Meridian — MagyarMa.hu Hugo theme */

:root {
  --font-serif: "Playfair Display", Georgia, serif;
  --font-headline: "Oswald", "Arial Narrow", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Source Serif 4", "Source Serif Pro", Georgia, "Iowan Old Style", serif;

  --navy-900: #061a33;
  --navy-800: #0a2540;
  --navy-700: #103258;
  --navy-600: #1e4d8c;
  --navy-500: #2563a8;

  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --paper-3: #ebeef2;
  --rule: #d9dee5;
  --ink-900: #0c1116;
  --ink-700: #2a3340;
  --ink-500: #56616e;
  --ink-400: #7a8593;

  --accent: #1a7f4f;
  --accent-soft: #d6ebde;
  --highlight: #c2453a;

  --col-gap: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--paper);
  font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
img, picture { display: block; max-width: 100%; height: auto; }

/* ── TOP BAR ── */
.top-bar { background: #000; color: rgba(255,255,255,.55); font-size: 12px; padding: 5px 0; }
.top-bar-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.tb-right { display: flex; align-items: center; gap: 8px; }
.tb-pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ── STICKY HEADER ── */
.sticky-header { position: sticky; top: 0; z-index: 100; transition: transform .3s ease; }
.sticky-header.hidden { transform: translateY(-100%); }

/* ── MASTHEAD ── */
.masthead {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
  color: #fff; position: relative;
}
.masthead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 18%, transparent 18%);
}
.masthead-inner {
  max-width: 1280px; margin: 0 auto; padding: 22px 24px 14px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.masthead-left { display: flex; align-items: center; gap: 14px; }
.masthead-right { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }

.hamburger {
  display: flex; flex-direction: column; gap: 4px;
  width: 32px; height: 32px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.08); transition: background .15s;
}
.hamburger:hover { background: rgba(255,255,255,0.18); }
.hamburger span { width: 16px; height: 2px; background: #fff; border-radius: 2px; }

.srch {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500;
  padding: 7px 12px; border-radius: 4px; border: 1px solid rgba(255,255,255,.18);
  transition: all .15s;
}
.srch:hover { background: rgba(255,255,255,.1); color: #fff; }

.wordmark { display: flex; align-items: center; gap: 14px; color: #fff; }
.wm-block {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 8px;
  font-family: var(--font-headline);
  font-size: 32px; font-weight: 700;
  background: rgba(255,255,255,0.04); color: #fff;
}
.wm-text { display: flex; flex-direction: column; line-height: 1; }
.wm-name {
  font-family: var(--font-serif);
  font-size: 38px; font-weight: 800; letter-spacing: -.005em;
  color: #fff;
}
.wm-name em { font-style: italic; font-weight: 400; opacity: .9; }
.wm-tag {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
  font-family: var(--font-headline); font-size: 11px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.wm-tag .wm-line { flex: 1; height: 1px; background: rgba(255,255,255,.35); }
.wm-tag-static {
  font-family: var(--font-headline); font-size: 11px;
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-top: 6px;
}

.mh-date {
  font-family: var(--font-headline); font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
}

#liveTime { font-family: var(--font-headline); letter-spacing: .04em; }

/* ── PRIMARY NAV ── */
.primary-nav { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.primary-nav ul {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 12px;
}
.primary-nav li { position: relative; padding-bottom: 14px; }
.primary-nav a {
  font-family: var(--font-headline); font-size: 22px; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase; color: #fff;
}
.primary-nav li.active::after,
.primary-nav li:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--accent);
}

/* ── MAIN ── */
.main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 0; }

/* ── LATEST STRIP ── */
.latest-strip { position: relative; padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.lt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.lt-bell { font-size: 16px; }
.lt-label {
  font-family: var(--font-headline); font-size: 18px; font-weight: 600;
  color: var(--accent); letter-spacing: .04em; text-transform: uppercase;
}
.lt-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--rule); padding-top: 12px;
}
.lt-item { display: block; }
.lt-time {
  font-size: 12px; color: var(--ink-400); margin-bottom: 6px;
  display: flex; align-items: center; gap: 5px;
  font-family: ui-monospace, monospace; letter-spacing: .02em;
}
.lt-clock { font-size: 8px; color: var(--accent); }
.lt-title {
  font-family: var(--font-headline); font-size: 17px; line-height: 1.22;
  font-weight: 500; color: var(--ink-900);
  text-wrap: balance;
}
.lt-dek {
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.5;
  color: var(--ink-500);
  margin: 6px 0 0;
}
.lt-item:hover .lt-title { color: var(--accent); }

.lt-tags { position: absolute; top: 0; right: 0; display: flex; gap: 6px; }
.lt-tag {
  font-family: var(--font-headline); font-size: 11px; font-weight: 600;
  letter-spacing: .06em;
  background: var(--paper-2); border: 1px solid var(--rule);
  color: var(--ink-700); padding: 5px 10px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.lt-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── THREE-COLUMN BODY ── */
.three-col {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  gap: var(--col-gap); padding-bottom: 60px;
}
.col { display: flex; flex-direction: column; }
.col-rule { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }

.col-story { display: flex; flex-direction: column; }
.col-img { margin-bottom: 12px; }
.col-img img, .col-img picture { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 2px; }
.col-meta-top { margin-bottom: 6px; }
.col-section {
  display: inline-block; font-family: var(--font-headline);
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.col-title {
  font-family: 'Inter', var(--font-sans); font-size: 19px; line-height: 1.28;
  font-weight: 800; letter-spacing: -.015em; color: #111;
  margin: 4px 0 7px;
}
.col-left .col-title,
.col-right .col-title { font-size: 20px; line-height: 1.28; }
.col-story:hover .col-title { color: var(--accent); }
.col-dek {
  font-family: 'Inter', var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.col-center .col-title { font-size: 22px; letter-spacing: -.018em; }

/* HERO CENTER */
.hero-center { display: block; margin-bottom: 28px; }
.hc-img { margin-bottom: 14px; }
.hc-img img, .hc-img picture { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 2px; }
.hc-title {
  font-family: 'Inter', var(--font-sans); font-size: 36px; line-height: 1.12;
  font-weight: 800; letter-spacing: -.02em; margin: 6px 0 8px;
}
.hero-center:hover .hc-title { color: var(--accent); }
.hc-byline {
  font-size: 13px; color: var(--accent); font-weight: 600;
  margin: 4px 0 12px; font-family: var(--font-headline); letter-spacing: .02em;
}
.hc-dek {
  font-family: 'Inter', var(--font-sans);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
  text-wrap: pretty;
}

/* CENTER BREAK */
.center-break {
  text-align: center; padding: 28px 0 20px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin: 24px 0;
}
.cb-kicker {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-headline); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.cb-line { flex: 0 0 30px; height: 1px; background: var(--accent); }
.cb-title {
  font-family: var(--font-serif); font-size: 24px; line-height: 1.2;
  font-weight: 700; color: var(--ink-900); margin: 0 auto;
  max-width: 28ch; text-wrap: balance;
}
.cb-title-link:hover .cb-title { color: var(--accent); }

/* BOTTOM GRID */
.bottom-grid { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--ink-900); }
.bg-head { margin-bottom: 22px; }
.bg-head h2 {
  font-family: var(--font-headline); font-size: 28px; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase; color: var(--ink-900);
}
.bg-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); }
.bot-col, .bot-story { display: flex; flex-direction: column; }
.bot-img { margin-bottom: 12px; }
.bot-img img, .bot-img picture { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 2px; }
.bot-title {
  font-family: 'Inter', var(--font-sans); font-size: 18px; line-height: 1.28;
  font-weight: 800; letter-spacing: -.015em; color: var(--ink-900); margin: 4px 0 8px;
}
.bot-title-lg { font-size: 22px; }
.bot-story:hover .bot-title { color: var(--accent); }

/* ── FOOTER ── */
.footer {
  margin-top: 40px;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
}
.footer-top {
  max-width: 1280px; margin: 0 auto; padding: 48px 32px 32px;
  display: grid; grid-template-columns: auto 1fr; gap: 40px;
  align-items: center; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-wm { display: flex; align-items: center; gap: 14px; color: #fff; }
.footer-wm .wm-block { width: 48px; height: 48px; font-size: 26px; }
.footer-wm .wm-name { font-size: 28px; }
.footer-pitch {
  font-family: var(--font-serif); font-size: 18px; font-weight: 500;
  margin: 0; opacity: .92; text-wrap: balance;
}
.footer-cols {
  max-width: 1280px; margin: 0 auto; padding: 40px 32px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px;
}
.f-col h4 {
  font-family: var(--font-headline); font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 12px; color: rgba(255,255,255,.75);
}
.f-col li { margin-bottom: 8px; }
.f-col a { font-size: 14px; opacity: .85; }
.f-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding: 20px 32px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; font-size: 12px; opacity: .65;
}

/* ── SEARCH MODAL ── */
.search-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5,15,35,.85); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-box {
  background: #fff; border-radius: 12px; width: 100%; max-width: 680px;
  box-shadow: 0 24px 80px rgba(0,0,0,.4); overflow: hidden;
  transform: translateY(-16px); transition: transform .2s ease;
}
.search-overlay.open .search-box { transform: translateY(0); }
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #eee; }
.search-input-row svg { flex-shrink: 0; color: #aaa; }
.search-input {
  flex: 1; border: none; outline: none;
  font-family: var(--font-sans); font-size: 18px; font-weight: 500; color: #111;
  background: transparent;
}
.search-input::placeholder { color: #bbb; }
.search-close { background: none; border: none; color: #aaa; padding: 4px; border-radius: 4px; display: flex; align-items: center; }
.search-close:hover { color: #111; }
.search-filters {
  display: flex; gap: 6px; padding: 10px 20px;
  border-bottom: 1px solid #f0f0f0; overflow-x: auto; scrollbar-width: none;
}
.search-filters::-webkit-scrollbar { display: none; }
.sf-btn {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; border: 1.5px solid #ddd;
  background: #fff; color: #777; white-space: nowrap; transition: all .15s;
}
.sf-btn:hover { border-color: #aaa; color: #333; }
.sf-btn.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.search-results { max-height: 460px; overflow-y: auto; }
.search-empty { padding: 40px 20px; text-align: center; font-size: 14px; color: #bbb; }
.sr-item {
  display: flex; gap: 14px; align-items: center; padding: 12px 20px;
  border-bottom: 1px solid #f5f5f5; transition: background .12s;
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: #f8f7f5; }
.sr-img, .sr-noimg { width: 64px; height: 46px; flex-shrink: 0; border-radius: 5px; overflow: hidden; background: #eee; }
.sr-img img { width: 100%; height: 100%; object-fit: cover; }
.sr-body { flex: 1; min-width: 0; }
.sr-cat { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--highlight); display: block; margin-bottom: 3px; }
.sr-title { font-size: 14px; font-weight: 700; color: #111; line-height: 1.3; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-item:hover .sr-title { color: var(--navy-800); }
.sr-desc { font-size: 12px; color: #888; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-date { font-size: 10px; color: #bbb; flex-shrink: 0; }
.search-hint { padding: 8px 20px 12px; font-size: 11px; color: #ccc; text-align: center; }
mark { background: #fff3cd; padding: 0 1px; border-radius: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .three-col { grid-template-columns: 1fr 1.3fr 1fr; gap: 18px; }
  .lt-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .lt-tags { position: static; margin-top: 8px; }
  .bg-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .three-col { grid-template-columns: 1fr 1.4fr; gap: 16px; }
  .col-right { display: none; }
}
@media (max-width: 760px) {
  .three-col { grid-template-columns: 1fr; }
  .col-left, .col-right { display: block; }
  .primary-nav ul { gap: 18px; }
  .primary-nav a { font-size: 16px; }
  .masthead-inner {
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    padding: 10px 16px 8px;
    gap: 12px;
  }
  .masthead-left { gap: 10px; }
  .masthead-right { justify-content: flex-end; }
  .mh-date { display: none; }
  .wm-block { width: 36px; height: 36px; font-size: 20px; }
  .wm-name { font-size: 24px; }
  .wm-tag { display: none; }
  .wordmark { gap: 8px; }
  .srch span { display: none; }
  .srch { padding: 6px 10px; }
  .hc-title { font-size: 26px; }
  .bg-cols { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-top { padding: 32px 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; padding: 16px 20px; }

  /* Friss hírek sáv — mobilon kompakt lista */
  .latest-strip { padding-bottom: 12px; }
  .lt-head { margin-bottom: 10px; }
  .lt-tags { position: static; margin-top: 10px; }
  .lt-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--rule);
  }
  .lt-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--rule);
  }
  .lt-time {
    font-size: 11px;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .lt-clock { display: none; }
  .lt-title {
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
  }
}
