/* Hírtaláló Statisztika – a hirtalalo.com megjelenéséhez igazítva */
:root {
  --bg: #f5f6f8; --fg: #1b1b1f; --card: #ffffff; --line: #e3e4e8; --soft: #f0f1f4;
  --link: #1558d6; --link-hover: #0f46b0; --muted: #5b5e68; --accent: #1b2547;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #16171a; --fg: #e6e6e9; --card: #1f2024; --line: #2a2c31; --soft: #26272c;
          --link: #8ab4f8; --link-hover: #b3cffb; --muted: #a3a6b0; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem; line-height: 1.55;
}
a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: .5rem; top: -4rem; background: var(--card); color: var(--fg);
        padding: .6rem .9rem; border: 2px solid var(--link); border-radius: 6px; z-index: 10; }
.skip:focus { top: .5rem; }
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1rem; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); padding: .6rem 0 0; }
.topbar { font-size: .8rem; margin-bottom: .5rem; }
.topbar a { color: var(--muted); text-decoration: none; display: inline-block; padding: .25rem 0; }
.topbar a:hover { text-decoration: underline; color: var(--link); }
.brand { display: flex; align-items: center; gap: .8rem; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { border-radius: 8px; }
.site-title { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.site-title a { color: inherit; text-decoration: none; }
.tagline { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
.site-header nav ul { list-style: none; margin: .7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.site-header nav a { display: inline-block; padding: .55rem .15rem; min-height: 2.75rem; text-decoration: none; color: var(--fg);
                     border-bottom: 3px solid transparent; font-weight: 600; font-size: .95rem; }
.site-header nav a:hover { border-bottom-color: var(--line); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--link); color: var(--link); }

main.wrap { padding-top: 1.25rem; padding-bottom: 2.5rem; min-height: 55vh; }
a:not([href]) { color: inherit; text-decoration: none; }
.page-title { font-size: 1.5rem; line-height: 1.25; margin: 0 0 .5rem; }
.lead { color: var(--muted); margin: 0 0 1.25rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 .75rem; }

.day { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin: 0 0 1.25rem; overflow: hidden; }
.day-title { margin: 0; padding: .7rem 1rem; font-size: 1.15rem; background: var(--soft); border-bottom: 1px solid var(--line); line-height: 1.3; }
.day-title a { text-decoration: none; }
.day-title a:hover { text-decoration: underline; }
h1.day-title { font-size: 1.4rem; }
.day-body { padding: .85rem 1rem 1rem; overflow-wrap: anywhere; }
.day-body > :first-child { margin-top: 0; }
.day-body > :last-child { margin-bottom: 0; }
.day-body h3 { font-size: 1.05rem; margin: 1.3rem 0 .4rem; line-height: 1.3; }
.day-body h4 { font-size: .98rem; margin: 1rem 0 .3rem; }
.day-body p, .day-body ul, .day-body ol, .day-body blockquote { margin: .5rem 0 .8rem; }
.day-body li { margin: .25rem 0; }
.day-body blockquote { border-left: 4px solid var(--line); padding: .1rem 0 .1rem .9rem; color: var(--muted); }
.day-body code, .day-body pre { background: var(--soft); border-radius: 4px; font-size: .9em; }
.day-body code { padding: .1em .3em; }
.day-body pre { padding: .6rem .8rem; overflow-x: auto; }
.day-body table { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; margin: .6rem 0 1rem; }
.day-body th, .day-body td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; vertical-align: top; }
.day-body th { background: var(--soft); }
.day-body caption { text-align: left; font-weight: 600; padding-bottom: .3rem; }
.day-body hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

.day-figure { margin: 0 0 1rem; }
.day-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.day-figure figcaption {
  margin: .5rem 0 0;
  font-size: .9rem;
  color: var(--muted);
}

.more { margin: 1rem 0 0; font-weight: 600; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: 0; margin: 1rem 0 0; }
.pager a { display: inline-block; padding: .6rem .8rem; min-height: 2.75rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pager a:hover { border-color: var(--link); }

.month { font-size: 1.1rem; margin: 1.5rem 0 .5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--line); }
.archive { list-style: none; margin: 0; padding: 0; }
.archive li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.archive a { font-weight: 600; }
.snippet { color: var(--muted); font-size: .9rem; }

.empty { background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: 2rem 1.25rem; text-align: center; }
.empty-title { font-size: 1.6rem; font-weight: 700; margin: 0 0 .5rem; }
.empty p:last-child { max-width: 38rem; margin: 0 auto; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 1rem 0 1.5rem; font-size: .85rem; color: var(--muted); }
.site-footer p { margin: .3rem 0; }

@media (max-width: 40rem) {
  .site-title { font-size: 1.15rem; }
  .tagline { font-size: .78rem; }
  .page-title { font-size: 1.3rem; }
  .day { border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Süti-banner: a hirtalalo.com megjelenését követi */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; gap: 10px 14px; align-items: center; justify-content: center;
  flex-wrap: wrap; padding: 10px 16px; font-size: .8rem;
  background: #1f2024; color: #e9e9ec; box-shadow: 0 -1px 8px rgba(0,0,0,.18);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; max-width: 720px; }
.cookie-banner a { color: #8ab4f8; }
.cookie-banner button {
  border: 0; border-radius: 6px; padding: 8px 16px; font-size: .8rem;
  cursor: pointer; white-space: nowrap; min-height: 2.75rem;
}
.cookie-banner .acc { background: #1558d6; color: #fff; }
.cookie-banner .rej { background: #3a3c42; color: #e9e9ec; }
body:has(#cookie-banner:not([hidden])) { padding-bottom: 6rem; }
