/* deltahirek.hu – hírkereső téma (a ~/Dev/hirek app arculata) */
:root {
  --hk-primary: hsl(14, 95%, 53%);
  --hk-primary-hover: hsl(14, 90%, 44%);
  --hk-primary-tint: hsl(14, 95%, 96%);
  --hk-primary-line: hsla(14, 95%, 53%, 0.18);
  --hk-secondary: hsl(35, 100%, 53%);
  --hk-bg: hsl(30, 20%, 97.5%);
  --hk-card: #fff;
  --hk-alt: hsl(210, 20%, 96%);
  --hk-line: hsl(210, 14%, 90%);
  --hk-line-focus: hsl(14, 95%, 75%);
  --hk-ink: hsl(215, 28%, 17%);
  --hk-muted: hsl(215, 15%, 42%);
  --hk-faint: hsl(215, 12%, 58%);
  --hk-shadow-sm: 0 1px 3px rgba(0,0,0,.02), 0 1px 2px rgba(0,0,0,.04);
  --hk-shadow-md: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.03);
  --hk-r-sm: 6px;
  --hk-r-md: 10px;
  --hk-r-lg: 16px;
  --hk-ease: .2s cubic-bezier(.4, 0, .2, 1);
  --hk-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hk-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--hk-body);
  font-size: 15px;
  line-height: 1.55;
  background: var(--hk-bg);
  color: var(--hk-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--hk-ease), background-color var(--hk-ease), border-color var(--hk-ease); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--hk-primary); outline-offset: 2px; border-radius: 4px; }

.hk-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--hk-ink); color: #fff; padding: 8px 14px; border-radius: var(--hk-r-sm); }
.hk-skip:focus { left: 12px; }

/* --- Fejléc --- */
.hk-header {
  position: sticky; top: 0; z-index: 100;
  background: hsla(0, 0%, 100%, .86);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hk-line);
}
.hk-header-row {
  max-width: 1320px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 24px;
}
.hk-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.hk-logo-tile {
  width: 38px; height: 38px; border-radius: var(--hk-r-md);
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--hk-primary), var(--hk-secondary));
  color: #fff; font-family: var(--hk-display); font-weight: 800; font-size: 21px; line-height: 1;
  box-shadow: 0 4px 10px rgba(255, 78, 58, .25);
}
.hk-logo-word { font-family: var(--hk-display); font-weight: 800; font-size: 23px; letter-spacing: -.5px; color: var(--hk-ink); }
.hk-logo-word span { color: var(--hk-primary); }
.hk-logo-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--hk-primary); background: var(--hk-primary-tint);
  border: 1px solid var(--hk-primary-line); border-radius: 999px; padding: 2px 7px;
}
.hk-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.hk-nav a {
  font-size: 13.5px; font-weight: 700; color: var(--hk-muted);
  padding: 7px 10px; border-radius: var(--hk-r-sm); border: 1px solid transparent; white-space: nowrap;
}
.hk-nav a:hover { background: var(--hk-alt); border-color: var(--hk-line); color: var(--hk-ink); }
.hk-nav a.is-active { color: var(--hk-primary); background: var(--hk-primary-tint); border-color: var(--hk-primary-line); }
.hk-today { font-size: 12.5px; font-weight: 600; color: var(--hk-muted); text-align: right; white-space: nowrap; }
.hk-today-date::first-letter { text-transform: uppercase; }

/* --- Váz --- */
.hk-shell { max-width: 1320px; margin: 0 auto; padding: 24px 20px 48px; }
.hk-grid { display: grid; gap: 24px; align-items: start; }
.hk-grid-3 { grid-template-columns: 250px minmax(0, 1fr) 320px; }
.hk-grid-2 { grid-template-columns: minmax(0, 1fr) 320px; }
.hk-side { position: sticky; top: 84px; display: grid; gap: 20px; }
.hk-feed { min-width: 0; display: grid; gap: 16px; align-content: start; }

.hk-panel {
  background: var(--hk-card); border: 1px solid var(--hk-line); border-radius: var(--hk-r-lg);
  box-shadow: var(--hk-shadow-sm); padding: 20px; transition: box-shadow var(--hk-ease);
}
.hk-panel:hover { box-shadow: var(--hk-shadow-md); }
.hk-panel-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--hk-line);
  font-family: var(--hk-display); font-size: 16px; font-weight: 700;
}
.hk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hk-primary); box-shadow: 0 0 6px var(--hk-primary); }

/* --- Nyitó blokk --- */
.hk-hero {
  background: var(--hk-card); border: 1px solid var(--hk-line); border-radius: var(--hk-r-lg);
  box-shadow: var(--hk-shadow-sm); padding: 28px 32px; margin-bottom: 24px;
  background-image: radial-gradient(circle at 100% 0, hsla(35, 100%, 53%, .10), transparent 42%), radial-gradient(circle at 0 100%, hsla(14, 95%, 53%, .07), transparent 40%);
}
.hk-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--hk-primary);
}
.hk-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--hk-primary); animation: hk-pulse 2s infinite; }
@keyframes hk-pulse { 0% { box-shadow: 0 0 0 0 hsla(14, 95%, 53%, .45); } 70% { box-shadow: 0 0 0 7px hsla(14, 95%, 53%, 0); } 100% { box-shadow: 0 0 0 0 hsla(14, 95%, 53%, 0); } }
@media (prefers-reduced-motion: reduce) { .hk-pulse { animation: none; } }
.hk-hero h1, .hk-page-head h1 {
  margin: 0; font-family: var(--hk-display); font-weight: 800; letter-spacing: -.6px;
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; max-width: 24ch;
}
.hk-hero-lead { margin: 12px 0 0; max-width: 70ch; color: var(--hk-muted); font-size: 16px; }

/* --- Rovatlista, funkciók --- */
.hk-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hk-cats a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: var(--hk-r-sm); font-size: 14px; font-weight: 500; color: var(--hk-muted);
}
.hk-cats a:hover { background: var(--hk-bg); color: var(--hk-ink); }
.hk-cats b { font-size: 11px; font-weight: 700; background: var(--hk-alt); color: var(--hk-muted); border-radius: 999px; padding: 1px 8px; }
.hk-cats .is-active a { background: var(--hk-primary-tint); color: var(--hk-primary); font-weight: 600; }
.hk-cats .is-active b { background: var(--hk-primary); color: #fff; }
.hk-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 13px; color: var(--hk-muted); }
.hk-features strong { display: block; color: var(--hk-ink); font-size: 13.5px; margin-bottom: 1px; }
.hk-features li { padding-left: 14px; position: relative; }
.hk-features li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--hk-secondary); }

/* --- Hírlista --- */
.hk-feed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px; }
.hk-feed-head h2 { margin: 0; font-family: var(--hk-display); font-size: 18px; font-weight: 700; }
.hk-feed-head a { white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--hk-primary); }
.hk-feed-head a:hover { color: var(--hk-primary-hover); }
.hk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hk-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--hk-card); border: 1px solid var(--hk-line); border-radius: var(--hk-r-md);
  padding: 13px 16px; transition: border-color var(--hk-ease), transform var(--hk-ease), box-shadow var(--hk-ease);
}
.hk-item:hover { border-color: var(--hk-line-focus); transform: translateY(-1px); box-shadow: var(--hk-shadow-sm); }
.hk-item-time { flex-shrink: 0; font-family: var(--hk-display); font-weight: 700; font-size: 13px; color: var(--hk-muted); padding-top: 1px; min-width: 42px; }
.hk-item-main { flex: 1; min-width: 0; }
.hk-item-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--hk-ink); overflow-wrap: anywhere; }
.hk-item-title:hover { color: var(--hk-primary); text-decoration: underline; text-underline-offset: 3px; }
.hk-item-excerpt { margin: 5px 0 0; font-size: 13.5px; color: var(--hk-muted); }
.hk-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex-shrink: 0; font-size: 12px; color: var(--hk-faint); }
.hk-badge {
  font-size: 11px; font-weight: 700; text-transform: lowercase;
  color: var(--hk-primary-hover); background: var(--hk-primary-tint);
  border: 1px solid var(--hk-primary-line); border-radius: 999px; padding: 2px 8px;
}
.hk-item-read { font-weight: 600; }

/* --- Top lista --- */
.hk-top { list-style: none; margin: 0; padding: 0; counter-reset: hk; display: grid; gap: 12px; }
.hk-top li {
  counter-increment: hk; position: relative; padding: 0 0 12px 36px;
  border-bottom: 1px solid var(--hk-line);
}
.hk-top li:last-child { border-bottom: 0; padding-bottom: 0; }
.hk-top li::before {
  content: counter(hk); position: absolute; left: 0; top: 0; width: 24px; text-align: center;
  font-family: var(--hk-display); font-weight: 800; font-size: 20px; line-height: 1; color: var(--hk-primary-hover); opacity: .85;
}
.hk-top a { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.hk-top a:hover { color: var(--hk-primary); }
.hk-top span { font-size: 11.5px; font-weight: 600; color: var(--hk-muted); }

/* --- Morzsamenü, oldalfej --- */
.hk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px 4px; font-size: 12.5px; font-weight: 600; color: var(--hk-faint); }
.hk-crumbs a { color: var(--hk-muted); }
.hk-crumbs a:hover { color: var(--hk-primary); }
.hk-crumbs > span:last-child { color: var(--hk-ink); max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-page-head { padding: 24px 28px; }

/* --- Cikk --- */
.hk-article { padding: 32px 40px 40px; }
.hk-article-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--hk-line); }
.hk-article-head .hk-item-meta { margin-bottom: 14px; font-weight: 600; color: var(--hk-muted); }
.hk-article h1 { margin: 0; font-family: var(--hk-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.6px; }
.hk-article-lead { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--hk-muted); }
.hk-cover { margin: 0 0 28px; border-radius: var(--hk-r-md); overflow: hidden; background: var(--hk-alt); }
.hk-cover img { width: 100%; }

.hk-prose { font-size: 16.5px; line-height: 1.75; max-width: 72ch; }
.hk-prose > :first-child { margin-top: 0; }
.hk-prose p { margin: 0 0 1.1em; }
.hk-prose h2, .hk-prose h3, .hk-prose h4 { font-family: var(--hk-display); line-height: 1.25; letter-spacing: -.3px; margin: 1.8em 0 .6em; }
.hk-prose h2 { font-size: 24px; font-weight: 700; }
.hk-prose h3 { font-size: 19px; font-weight: 700; }
.hk-prose h4 { font-size: 16.5px; font-weight: 700; }
.hk-prose a { color: var(--hk-primary-hover); text-decoration: underline; text-decoration-color: var(--hk-primary-line); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.hk-prose a:hover { text-decoration-color: var(--hk-primary); }
.hk-prose ul, .hk-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.hk-prose li { margin: .35em 0; padding-left: .2em; }
.hk-prose li::marker { color: var(--hk-primary); font-weight: 700; }
.hk-prose strong { font-weight: 700; color: var(--hk-ink); }
.hk-prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 3px solid var(--hk-primary); background: var(--hk-primary-tint); border-radius: 0 var(--hk-r-sm) var(--hk-r-sm) 0; color: var(--hk-ink); }
.hk-prose blockquote p:last-child { margin-bottom: 0; }
.hk-prose code { font-size: .88em; background: var(--hk-alt); border: 1px solid var(--hk-line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.hk-prose pre { max-width: 100%; overflow-x: auto; background: var(--hk-alt); border: 1px solid var(--hk-line); border-radius: var(--hk-r-md); padding: 14px 16px; font-size: 14px; line-height: 1.55; }
.hk-prose pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }
.hk-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.4em 0; font-size: 14.5px; }
.hk-prose th, .hk-prose td { border: 1px solid var(--hk-line); padding: 8px 12px; text-align: left; vertical-align: top; }
.hk-prose th { background: var(--hk-alt); font-weight: 700; }
.hk-prose hr { border: 0; border-top: 1px solid var(--hk-line); margin: 2em 0; }
.hk-about { font-size: 15.5px; padding: 26px 28px; }
.hk-about h3 { margin-top: 1.4em; }

/* --- Lábléc --- */
.hk-footer { border-top: 1px solid var(--hk-line); background: var(--hk-card); }
.hk-footer-row { max-width: 1320px; margin: 0 auto; padding: 28px 20px 12px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hk-footer-brand { max-width: 460px; }
.hk-footer-brand .hk-logo-word { font-size: 20px; }
.hk-footer-brand p { margin: 8px 0 0; font-size: 13px; color: var(--hk-muted); }
.hk-footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: flex-start; font-size: 13px; font-weight: 600; color: var(--hk-muted); }
.hk-footer-nav a:hover { color: var(--hk-primary); }
.hk-footer-copy { max-width: 1320px; margin: 0 auto; padding: 0 20px 24px; font-size: 12px; color: var(--hk-faint); }

/* --- Reszponzív --- */
@media (max-width: 1200px) {
  .hk-grid-3 { grid-template-columns: 230px minmax(0, 1fr); }
  .hk-grid-3 .hk-side-right { grid-column: 1 / -1; position: static; }
  .hk-today { display: none; }
}
@media (max-width: 960px) {
  .hk-grid-3, .hk-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hk-side { position: static; }
  .hk-grid-3 .hk-side-left { order: 2; }
  .hk-grid-3 .hk-feed { order: 1; }
  .hk-grid-3 .hk-side-right { order: 3; }
  .hk-article { padding: 24px 22px 28px; }
}
@media (max-width: 720px) {
  .hk-header-row { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; }
  .hk-logo-badge { display: none; }
  .hk-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px; }
  .hk-nav::-webkit-scrollbar { display: none; }
  .hk-shell { padding: 16px 16px 40px; }
  .hk-hero { padding: 22px 20px; }
  .hk-item { flex-wrap: wrap; gap: 6px 12px; padding: 12px 14px; }
  .hk-item-main { flex-basis: calc(100% - 56px); }
  .hk-item-meta { margin-left: 54px; }
  .hk-prose { font-size: 16px; }
  .hk-about, .hk-page-head { padding: 20px; }
}

/* --- Kék hírek archívum --- */
.hk-badge-blue { color: hsl(214, 70%, 40%); background: hsl(214, 90%, 96%); border-color: hsla(214, 70%, 45%, .2); }
.hk-dot-blue { background: hsl(214, 80%, 50%); box-shadow: 0 0 6px hsl(214, 80%, 50%); }
.hk-panel-more { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--hk-line); font-size: 13px; font-weight: 700; }
.hk-panel-more a { color: var(--hk-primary); }
.hk-note { margin: 2em 0 0; padding: 14px 18px; border: 1px dashed var(--hk-line); border-radius: var(--hk-r-md); background: var(--hk-bg); font-size: 14px; line-height: 1.6; color: var(--hk-muted); }
.hk-note strong { color: var(--hk-ink); }
.hk-prose h2[id^="forr"] + ul { font-size: 14px; color: var(--hk-muted); }
.hk-prose h3[id] { scroll-margin-top: 90px; }
.hk-home-archive { margin-top: 8px; }
