/* Majd meglátjuk – "Régi újság" (newspaper) theme.
   Loaded on every page next to style.css; active with <html data-theme="ujsag"> and, recoloured by
   themes/ujsag-feher.css, with <html data-theme="ujsag-feher"> (white paper).
   Everything is scoped under that attribute (CSS nesting), system fonts only, no external images. */

html:is([data-theme="ujsag"], [data-theme="ujsag-feher"]) {
  color-scheme: light;
  --paper: #f1e9d3; --paper-2: #e8dec3; --paper-3: #f6f0df;
  --ink: #1a1611; --ink-2: #4f4535; --hair: #a99d82; --red: #8a1c14; --red-strong: #6b130d;
  --stamp-ok: #1f4d2e; --stamp-wip: #7a4a00; --stamp-none: #5a5040; --stamp-contra: #8a1c14;
  --grain: .15;

  --font: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", "Liberation Serif", serif;
  --font-head: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", Georgia, serif;
  --font-mast: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Times New Roman", "Liberation Serif", Georgia, serif;

  /* map onto the variables style.css uses */
  --bg: var(--paper); --surface: var(--paper-3); --surface-2: var(--paper-2); --fg: var(--ink); --muted: var(--ink-2); --line: var(--hair);
  --acc: var(--red); --acc-strong: var(--red-strong); --acc-soft: var(--paper-2); --acc-ring: rgba(138,28,20,.4);
  --warn: var(--red); --warn-soft: transparent;
  --shadow-sm: none; --shadow: none; --shadow-lg: none;
  --r: 0; --r-sm: 0; --ease: 0s;
  --header-h: 8px;
  --b-def-bg: transparent; --b-def-fg: var(--ink); --b-rend-bg: transparent; --b-rend-fg: var(--ink);
  --b-hat-bg: transparent; --b-hat-fg: var(--ink); --b-tv-bg: var(--ink); --b-tv-fg: var(--paper);
  --b-terv-bg: transparent; --b-terv-fg: var(--ink); --b-mk-bg: transparent; --b-mk-fg: var(--ink-2);
  --p-ok: var(--stamp-ok); --p-ok-soft: transparent; --p-wip: var(--stamp-wip); --p-wip-soft: transparent;
  --p-none: var(--stamp-none); --p-none-soft: transparent; --p-contra: var(--stamp-contra); --p-contra-soft: transparent;

  /* ---- Night edition (follows the system dark setting; yellow paper only, the white paper stays white) ---- */
  @media (prefers-color-scheme: dark) { &[data-theme="ujsag"] {
    color-scheme: dark;
    --paper: #1c1914; --paper-2: #26221b; --paper-3: #201d17;
    --ink: #ece3cf; --ink-2: #b8ac94; --hair: #5d5545; --red: #e58a7e; --red-strong: #f5b3a9;
    --stamp-ok: #8fd0a2; --stamp-wip: #e6b565; --stamp-none: #b8ac94; --stamp-contra: #f0988c;
    --grain: .14;
    --acc-ring: rgba(229,138,126,.45);
    --b-tv-bg: var(--ink); --b-tv-fg: var(--paper);
  } }

  /* ---- base: paper, ink, serif ---- */
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 50% 0%, transparent 55%, rgba(90,60,20,.10) 100%);

  /* paper grain: a fixed, click-through noise layer above the page (inline SVG, no image files) */
  body::before { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: var(--grain);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .1 0 0 0 1.2 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  body { background: transparent; font: 17px/1.58 var(--font); color: var(--ink); -webkit-font-smoothing: auto; font-feature-settings: "onum" 0; hyphens: auto; -webkit-hyphens: auto; }
  ::selection { background: var(--ink); color: var(--paper); }
  a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--red); }
  a:hover { color: var(--red); }
  :focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 0; }
  h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: 0; line-height: 1.12; text-wrap: balance; }
  button { font-family: var(--font); }

  /* ---- masthead ---- */
  header.top { display: block; position: static; text-align: center; background: none; border: 0; min-height: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none; padding: .7rem max(1.2rem, calc((100vw - 1240px)/2 + 1.2rem)) 0; }
  .dateline { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink);
    font-variant: small-caps; letter-spacing: .09em; font-size: .92rem; color: var(--ink); }
  .dateline .edition::before { content: " · "; }
  .brand { display: block; font-family: var(--font-mast); font-weight: 900; font-variant-caps: small-caps; letter-spacing: .015em; line-height: 1;
    font-size: clamp(2.7rem, 9.5vw, 6.2rem); padding: .35rem 0 .45rem; color: var(--ink); text-align: center; border-bottom: 1px solid var(--ink); }
  .brand:hover { color: var(--ink); }
  .brand::before { display: none; }
  .top-end { position: relative; display: flex; justify-content: center; align-items: center; gap: .5rem 1rem; padding: .15rem 0; border-bottom: 4px double var(--ink); }
  nav { justify-content: center; gap: 0; flex: 1 1 auto; margin: 0; padding-left: 0; }
  nav a { border-radius: 0; padding: .35rem 1rem; font-variant: small-caps; letter-spacing: .12em; font-size: 1.02rem; font-weight: 700; color: var(--ink);
    border-left: 1px solid transparent; }
  nav a + a { border-left-color: var(--hair); }
  nav a:hover { background: none; color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
  nav a[aria-current=page] { background: var(--ink); color: var(--paper); text-decoration: none; border-left-color: var(--ink); }
  .theme-btn { font-variant: small-caps; letter-spacing: .1em; font-size: .95rem; padding: .25rem .7rem; border: 1px solid var(--ink); border-radius: 0; background: none; color: var(--ink); }
  .theme-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .theme-menu { border: 1px solid var(--ink); border-radius: 0; background: var(--paper-3); box-shadow: 3px 3px 0 var(--ink); }
  .theme-menu button { border: 0; border-radius: 0; font-size: 1.05rem; font-variant: normal; letter-spacing: 0; font-weight: 400; padding: .4rem .8rem .4rem 1.7rem; }
  .theme-menu button:hover { background: var(--ink); color: var(--paper); }
  .theme-menu button[aria-pressed=true] { color: var(--ink); font-weight: 700; }
  .theme-menu button[aria-pressed=true]:hover { color: var(--paper); }

  /* ---- page frame, section heads ---- */
  main h2 { font-size: 1.5rem; }
  main h1 { font-family: var(--font); font-size: .95rem; font-weight: 700; font-variant: small-caps; letter-spacing: .22em; text-align: center;
    margin: .2rem 0 1.1rem; padding: .3rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .intro p { color: var(--ink-2); }
  .layout main h1:first-child, .layout main section.intro:first-child h1 { margin-top: 1.3rem; }
  main:not(.x) > h1:first-child { margin-top: 1.3rem; }

  /* ---- front-page story ---- */
  .card, .card.latest { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: .4rem 0 1.4rem; overflow: visible; }
  .card.latest::before { display: none; }
  .card .date { display: block; background: none; padding: 0; border-radius: 0; color: var(--red); font-variant: small-caps; letter-spacing: .16em; font-size: 1rem; font-weight: 700; margin: 0 0 .1rem; }
  .card h2 { font-weight: 900; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.04; letter-spacing: -.012em; margin: .1rem 0 .7rem; padding-bottom: .65rem; border-bottom: 3px double var(--ink); }
  p.sum-text { font-size: 1.1rem; max-width: none; margin: 0 0 .7rem; text-align: justify; }
  p.sum-text::first-letter { float: left; font-family: var(--font-head); font-weight: 900; font-size: 4.1em; line-height: .78; padding: .07em .06em 0 0; color: var(--ink); }
  .story { columns: 21rem 2; column-gap: 2.2rem; column-rule: 1px solid var(--hair); }
  .highlights { display: block; margin: 0; }
  .highlights li { background: none; border-radius: 0; padding: 0 0 .8rem; margin: 0 0 .8rem; border-bottom: 1px solid var(--hair); break-inside: avoid; font-size: 1rem; line-height: 1.5; text-align: left; }
  .highlights li:last-child { border-bottom: 0; }
  .highlights strong { display: block; font-family: var(--font-head); font-size: 1.22rem; line-height: 1.15; font-weight: 800; margin-bottom: .2rem; text-align: left; }
  .highlights .more { font-variant: small-caps; letter-spacing: .08em; font-weight: 700; }
  .cardlink { margin: .6rem 0 0; padding-top: .5rem; border-top: 1px solid var(--ink); }
  .cardlink a, .cardlink a:hover { background: none; color: var(--ink); padding: 0; border-radius: 0; box-shadow: none; transform: none; font-variant: small-caps; letter-spacing: .12em; font-size: 1.02rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
  .cardlink a:hover { color: var(--red); }
  .allitems > summary { background: none; color: var(--ink); padding: 0; border-radius: 0; margin: .4rem 0 1rem; font-variant: small-caps; letter-spacing: .12em; font-size: 1.02rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
  .allitems > summary:hover { background: none; color: var(--red); }
  .feedtitle { font-variant: small-caps; letter-spacing: .14em; }
  .toplist { font-size: 1rem; }
  .crumbs, .pager { font-variant: small-caps; letter-spacing: .08em; font-size: 1rem; }
  .pager { border-bottom: 1px dotted var(--ink-2); padding-bottom: .35rem; margin-top: 1.1rem; }
  .pager a { font-weight: 700; }
  .muted { color: var(--ink-2); }

  /* ---- sections, groups, briefs ---- */
  .day { margin: 1.8rem 0; }
  .day h2 { display: flex; justify-content: center; align-items: baseline; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; font-variant: small-caps; letter-spacing: .22em; text-align: center;
    padding: .3rem 0; margin: 0 0 .9rem; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .day h2 a { color: var(--ink); }
  .day h2 a:hover { color: var(--red); }
  .day h2 small { background: none; border-radius: 0; padding: 0; color: var(--ink-2); font-size: .85rem; letter-spacing: .08em; font-style: italic; }
  .chip { border-radius: 0; background: none; border: 0; border-bottom: 1px dotted var(--ink-2); padding: 0 .1rem; color: var(--ink-2); font-size: .88rem; font-style: italic; }
  .chips { gap: .3rem 1rem; }
  .summary { background: none; border: 0; border-left: 4px solid var(--ink); border-radius: 0; font-style: italic; padding: .1rem 0 .1rem .8rem; }
  .group { margin-top: 1.5rem; }
  .group h4 { gap: .8rem; font-family: var(--font-head); font-weight: 700; font-variant: small-caps; text-transform: none; letter-spacing: .2em; font-size: 1.02rem; color: var(--ink); }
  .group h4::before, .group h4::after { content: ""; flex: 1; height: 0; background: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); border-bottom-width: 0; box-shadow: 0 3px 0 -2px var(--ink); }
  .group h4::before { content: ""; }

  .item { background: none; border: 0; border-bottom: 1px dotted var(--ink-2); border-radius: 0; margin: 0; box-shadow: none; }
  .item:hover { box-shadow: none; border-color: var(--ink-2); }
  .item:target { border: 0; border-bottom: 1px dotted var(--ink-2); box-shadow: none; background: var(--paper-2); outline: 2px solid var(--red); outline-offset: -2px; }
  .item summary { padding: .5rem 1.8rem .5rem .1rem; border-radius: 0; align-items: baseline; gap: .1rem .6rem; }
  .item summary::after { border: 0; width: auto; height: auto; transform: none; content: "+"; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; line-height: 1; right: .35rem; top: .4rem; color: var(--ink); }
  .item[open] > summary::after { content: "−"; transform: none; top: .4rem; }
  .item summary:hover .t { color: var(--red); }
  .item .t { font-family: var(--font-head); font-size: 1.14rem; font-weight: 700; line-height: 1.22; letter-spacing: 0; }
  .item .by { font-style: italic; font-size: .92rem; color: var(--ink-2); }
  .item .body { border-top: 0; margin: 0 0 .7rem; padding: .7rem 1rem .8rem; background: var(--paper-2); border-left: 3px solid var(--ink); }
  .item .body > :first-child { margin-top: 0; }
  .item .desc { border-left: 0; padding: 0; font-size: 1.02rem; max-width: 74ch; }
  .meta { font-size: .93rem; font-style: italic; }
  .lead { font-size: .95rem; opacity: 1; color: var(--ink-2); }
  .item .src { font-variant: small-caps; letter-spacing: .08em; font-size: 1rem; }
  .docs { font-size: .95rem; }
  .docs li::before { border-radius: 0; opacity: 1; border-color: var(--ink); }
  .badge { border: 1px solid var(--ink); border-radius: 0; background: none; color: var(--ink); font-family: var(--font); font-size: .74rem; font-weight: 700; font-variant: small-caps; letter-spacing: .08em; text-transform: none; padding: 0 .4rem; line-height: 1.5; position: relative; top: -.08em; min-width: 7.2rem; text-align: center; }
  .badge.g-torvenyek, .badge.g-alaptorveny { background: var(--ink); color: var(--paper); }
  .badge.g-jogszabalytervezetek-tarsadalmi-egyeztetes { border-style: dashed; }
  .badge.g-kozlony-lapszamok { color: var(--ink-2); border-color: var(--hair); }
  .late { font-style: italic; color: var(--red); background: none; border-radius: 0; padding: 0; font-weight: 400; font-size: .85rem; }

  /* ---- filters, buttons ---- */
  .filters { background: none; border: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: .55rem .9rem; margin: .8rem 0; outline: 1px solid var(--ink); outline-offset: 3px; }
  .filters summary { font-variant: small-caps; letter-spacing: .14em; font-size: 1.05rem; }
  .boxes { gap: .3rem .5rem; font-size: .95rem; }
  .boxes label { border-radius: 0; border: 1px solid var(--hair); background: none; color: var(--ink-2); padding: .15rem .6rem .15rem .45rem; }
  .boxes label:hover { border-color: var(--ink); }
  .boxes label:has(input:checked) { background: var(--paper-2); border-color: var(--ink); color: var(--ink); }
  .boxes input { accent-color: var(--ink); }
  .boxes .n { background: none; border-radius: 0; padding: 0; font-weight: 400; font-style: italic; }
  button { border-radius: 0; background: none; border: 1px solid var(--ink); color: var(--ink); font-variant: small-caps; letter-spacing: .1em; font-size: .95rem; font-weight: 700; padding: .2rem .75rem; }
  button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .expand-all { font-variant: small-caps; }

  /* ---- archive ---- */
  .tablewrap { background: none; border: 0; border-top: 3px solid var(--ink); border-bottom: 3px double var(--ink); border-radius: 0; box-shadow: none; }
  .arch th { background: none; font-family: var(--font); font-variant: small-caps; text-transform: none; letter-spacing: .12em; font-size: .95rem; color: var(--ink); border-bottom: 1px solid var(--ink); }
  .arch th, .arch td { border-bottom: 1px dotted var(--ink-2); }
  .arch tbody tr:hover { background: var(--paper-2); }
  .arch td:first-child a { font-weight: 700; }
  main h2 + .tablewrap { margin-top: .4rem; }

  /* ---- glossary ---- */
  .glossary { background: none; border: 1px solid var(--ink); border-radius: 0; box-shadow: none; outline: 1px solid var(--ink); outline-offset: 3px; }
  .glossary summary { font-variant: small-caps; letter-spacing: .14em; font-size: 1.05rem; }
  .glossary dt { font-family: var(--font-head); font-size: 1.05rem; }
  .glossary dd { color: var(--ink-2); }

  /* ---- day column: calendar + day list ---- */
  .layout { gap: 0 2rem; }
  aside.days { padding-right: 1.6rem; border-right: 1px solid var(--ink); box-shadow: 4px 0 0 -3px var(--ink); }
  .days-title { font-family: var(--font-head); font-variant: small-caps; text-transform: none; letter-spacing: .2em; font-size: 1rem; color: var(--ink); text-align: center;
    border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding: .2rem 0; margin: 0 0 .3rem; }
  .cal { background: none; border: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: .45rem .5rem .5rem; outline: 1px solid var(--ink); outline-offset: 3px; }
  .cal-head { border-bottom: 3px double var(--ink); padding-bottom: .3rem; margin-bottom: .35rem; }
  .cal-title { font-family: var(--font-head); font-variant: small-caps; letter-spacing: .16em; font-size: 1.02rem; font-weight: 700; }
  .cal-nav { width: 1.7rem; height: 1.7rem; border-radius: 0; border: 1px solid var(--ink); font-size: 1.2rem; }
  .cal-nav:disabled { opacity: .3; border-color: var(--hair); }
  .cal-nav:disabled:hover { background: none; color: var(--ink); }
  .cal-grid { border-spacing: 0; border-collapse: collapse; }
  .cal-grid th { font-family: var(--font); font-variant: small-caps; color: var(--ink); font-size: .78rem; font-weight: 700; letter-spacing: .04em; border-bottom: 1px solid var(--ink); padding: .15rem 0; }
  .cal-grid td { border: 1px dotted var(--hair); }
  .cal-grid a, .cal-grid .none { border-radius: 0; height: 1.9rem; font-size: .9rem; }
  .cal-grid .none { color: var(--ink-2); opacity: .45; }
  .cal-grid a { background: none; color: var(--ink); font-weight: 700; text-decoration: none; }
  .cal-grid a:hover { background: var(--ink); color: var(--paper); }
  .cal-grid a.dec::after { border-radius: 0; background: var(--red); width: 5px; height: 5px; bottom: 3px; transform: translateX(-50%) rotate(45deg); }
  .cal-grid a.dec.l2::after { width: 7px; height: 7px; }
  .cal-grid a.dec.l3::after { width: 9px; height: 9px; }
  .cal-grid a.dec.l3:not(.cur, :hover) { background: var(--paper-2); }
  .cal-grid a.dec:hover::after { background: var(--paper); }
  .cal-grid a.cur, .cal-grid a.cur:hover { background: var(--ink); color: var(--paper); }
  .cal-grid a.cur::after, .cal-grid a.cur:hover::after { background: var(--paper); }
  .cal-legend { color: var(--ink-2); font-style: italic; font-size: .85rem; }
  .dot { border-radius: 0; background: var(--red); transform: rotate(45deg); margin: 0 1px; }
  .daylist { background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: 0; scrollbar-color: var(--hair) transparent; }
  .daylist .mon { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; font-family: var(--font-head); font-variant: small-caps; text-transform: none; letter-spacing: .18em; font-size: .95rem; color: var(--ink);
    padding: .5rem .1rem .2rem; top: 0; border-bottom: 1px solid var(--ink); }
  .daylist ol { gap: 0; }
  .daylist li { border-bottom: 1px dotted var(--ink-2); }
  .daylist a { border-radius: 0; padding: .4rem .5rem .45rem .6rem; font-size: .92rem; }
  .daylist a:hover { background: var(--paper-2); }
  .daylist a.cur { background: var(--ink); color: var(--paper); }
  .daylist a.cur::before { display: none; }
  .daylist a.cur .dd, .daylist a.cur .dd small, .daylist a.cur .hl { color: var(--paper); }
  .daylist .dd { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; }
  .daylist .dd small { font-family: var(--font); font-style: italic; color: var(--ink-2); }
  .daylist .hl { color: var(--ink-2); font-size: .88rem; line-height: 1.35; }

  /* ---- promise tracker ---- */
  .psummary { border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; padding: 1rem 1.2rem; margin: 1rem 3px 1.6rem; }
  .pbar { border-radius: 0; background: none; border: 1px solid var(--ink); height: 16px; }
  .pbar-ok { background: var(--ink); }
  .pbar-wip { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 5px); opacity: 1; }
  .pbar-none { background: none; opacity: 1; }
  .pbar-contra { background: var(--red); }
  .ptiles { gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .ptile { background: none !important; border: 0; border-left: 1px dotted var(--ink-2); border-radius: 0; padding: .55rem .9rem; box-shadow: none; font-variant: normal; letter-spacing: 0; }
  .ptile:first-child { border-left: 0; }
  .ptile:hover { background: var(--paper-2) !important; color: var(--ink); border-color: var(--ink-2); box-shadow: none; }
  .ptile[aria-pressed=true] { box-shadow: inset 0 -4px 0 var(--ink); background: var(--paper-2) !important; }
  .ptile-n { font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; }
  .ptile-l { font-weight: 400; font-style: italic; font-size: .95rem; }
  .pfilters { background: var(--paper); border: 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: .5rem .2rem; top: calc(var(--header-h) + 0px); }
  .pfilters label { font-variant: small-caps; letter-spacing: .1em; font-size: 1rem; }
  .pfilters select { border-radius: 0; background: var(--paper-3); border: 1px solid var(--ink); font-family: var(--font); color: var(--ink); }
  .ptopic { columns: 22rem 2; column-gap: 2.2rem; column-rule: 1px solid var(--hair); }
  .ptopic.single { columns: 1; }
  .ptopic h2 { column-span: all; font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; font-variant: small-caps; letter-spacing: .2em; text-align: center; color: var(--ink);
    margin: 1.6rem 0 .8rem; padding: .3rem 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .pcard { background: none; border: 0; border-bottom: 1px solid var(--hair); border-left: 0; border-radius: 0; box-shadow: none; padding: 0 0 .9rem; margin: 0 0 .9rem; break-inside: avoid; }
  .phead { gap: .3rem .6rem; align-items: center; }
  .pstatus { display: inline-block; background: none; border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: 1px; border-radius: 0; padding: .05rem .5rem; margin: 2px; transform: rotate(-2deg);
    font-variant: small-caps; letter-spacing: .1em; font-size: .95rem; font-weight: 700; color: var(--p-none); opacity: .95; }
  .ps-ok .pstatus { color: var(--p-ok); } .ps-wip .pstatus { color: var(--p-wip); } .ps-contra .pstatus { color: var(--p-contra); }
  .phead { flex-wrap: nowrap; justify-content: flex-start; }
  .pref { flex: 1; display: flex; align-items: baseline; font-style: italic; font-size: .9rem; white-space: nowrap; }
  .pref::before { content: ""; flex: 1; min-width: 1rem; margin: 0 .5rem; border-bottom: 2px dotted var(--ink-2); }
  .pcard h3 { font-size: 1.25rem; font-weight: 800; margin: .5rem 0 .3rem; line-height: 1.15; }
  .pcard blockquote { border-left: 2px solid var(--ink); color: var(--ink-2); font-size: .95rem; padding-left: .7rem; }
  .pnote { font-size: .98rem; }
  .pev summary { font-variant: small-caps; letter-spacing: .08em; color: var(--ink); font-size: 1rem; }
  .pev li { border-top: 1px dotted var(--ink-2); font-size: .95rem; }
  .prel summary { color: var(--ink-2); }
  .pmethod { padding: .7rem 1rem; }
  .pmethod summary { font-variant: small-caps; letter-spacing: .12em; font-size: 1.05rem; }

  /* ---- footer: colophon ---- */
  footer { max-width: 62rem; text-align: center; color: var(--ink-2); font-style: italic; font-size: .92rem; border-top: 4px double var(--ink); margin-top: 2.5rem; padding-top: 1.1rem; }
  footer::before { content: "❦" / ""; display: block; font-style: normal; font-size: 1.4rem; line-height: 1; color: var(--ink); margin-bottom: .4rem; }

  /* ---- small screens ---- */
  @media (max-width: 860px) {
    header.top { padding: .5rem .9rem 0; }
    .dateline { font-size: .8rem; letter-spacing: .05em; }
    header.top { display: grid; grid-template-columns: minmax(0, 1fr); }
    .dateline, .theme-switch { grid-row: 1; grid-column: 1; }
    .dateline { align-self: stretch; align-items: center; }
    .dateline span:nth-child(2) { display: none; }
    .dateline span:first-child { text-align: left; }
    .dateline .edition { display: block; }
    .dateline .edition::before { content: none; }
    .top-end { display: contents; }
    .theme-switch { justify-self: end; align-self: center; z-index: 3; margin-right: 0; }
    .theme-btn { font-size: .85rem; padding: .1rem .5rem; background: var(--paper); }
    .brand { font-size: clamp(1.9rem, 10vw, 3.6rem); white-space: nowrap; letter-spacing: 0; }
    nav { margin-left: 0; flex-basis: auto; grid-row: 3; padding: .2rem 0; border-bottom: 4px double var(--ink); flex-wrap: wrap; }
    nav a { padding: .3rem .45rem; font-size: .92rem; letter-spacing: .06em; }
    aside.days { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; padding: .4rem 0; border-right: 0; box-shadow: none; border-bottom: 1px solid var(--ink); }
    .calbox { padding: 0 .9rem .3rem; }
    .cal-toggle { border-radius: 0; }
    .calbox.open .cal-toggle { background: var(--ink); color: var(--paper); border-color: var(--ink); }
    .calbox.open .cal { background: var(--paper-3); }
    .daylist { border: 0; padding: .1rem .9rem; gap: .3rem; }
    .daylist li { border-bottom: 0; }
    .daylist .mon { background: none; border: 0; }
    .daylist a { border: 1px solid var(--ink); border-radius: 0; background: none; box-shadow: none; padding: .25rem .6rem; }
    .daylist a.cur { background: var(--ink); border-color: var(--ink); }
    .daylist .n { color: var(--ink-2); }
    .card, .card.latest { padding: 0; }
    .card h2 { font-size: 1.85rem; }
    p.sum-text { font-size: 1.05rem; text-align: left; }
    .highlights li, .pnote, .item .desc { text-align: left; }
    .item summary { padding: .5rem 1.8rem .5rem 0; }
    .item .body { padding: .6rem .8rem .7rem; }
    .ptile { flex: 1 1 45%; }
    .ptiles { display: flex; flex-wrap: wrap; }
    .ptile:nth-child(odd) { border-left: 0; }
    .ptopic { columns: 1; }
    .badge { min-width: 0; }
  }
  @media (max-width: 480px) {
    html { font-size: 16px; }
  }
  @media print { .theme-switch { display: none; } }
  /* értékelés */
  .rbadge { border: 1px solid var(--hair); border-radius: 0; background: none; color: var(--ink-2); font-family: var(--font); font-variant: small-caps; letter-spacing: .06em; padding: 0 .35rem; }
  .rbadge.rw3 { border-color: var(--red); color: var(--red); background: none; }
  .rbadge.q-erdemi { color: var(--stamp-ok); } .rbadge.q-reszleges { color: var(--stamp-wip); } .rbadge.q-latszat { color: var(--stamp-contra); }
  .item.w3 { border-left: 0; background: var(--paper-3); }
  .ptile.ps-nke .ptile-n, .ptile.ps-nke .ptile-l { color: var(--stamp-none); }
  /* impresszum: newspaper masthead box */
  .imprint { max-width: 34rem; margin: 1rem auto 2rem; padding: 1rem 1.3rem 1.1rem; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; text-align: center; }
  .imprint .author { flex-direction: column; gap: .5rem; border-bottom: 3px double var(--ink); padding-bottom: .9rem; margin-bottom: .9rem; }
  .imprint .author img { border-radius: 0; border: 1px solid var(--ink); filter: grayscale(1) contrast(1.05); }
  .imprint .author div { align-items: center; }
  .imprint .aname { font-family: var(--font-head); font-weight: 900; font-size: 1.45rem; letter-spacing: 0; }
  .imprint .ilabel, .imprint dt { text-transform: none; font-variant: small-caps; letter-spacing: .16em; font-size: .9rem; font-weight: 700; color: var(--ink); }
  .imprint dl { display: block; }
  .imprint dt { margin-top: .6rem; }
  .imprint dt:first-child { margin-top: 0; }
  .imprint dd { font-family: var(--font-head); color: var(--ink-2); }
  /* ígéret-grafikon: fekete-fehér minták */
  .pchart { border-radius: 0; box-shadow: none; border: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: .6rem 0 .4rem; background: none; }
  .pc-ok { fill: var(--ink); } .pc-wip { fill: url(#pc-hatch); stroke: var(--ink); stroke-width: .8; } .pc-other { fill: url(#pc-dots); stroke: var(--ink); stroke-width: .8; }
  .pc-hatch-ln { stroke: var(--ink); } .pc-dot { fill: var(--ink); }
  .pc-line { stroke: var(--red); stroke-width: 1.8; stroke-dasharray: 5 2; }
  .pc-axis { stroke: var(--ink); } .pc-tick { fill: var(--ink-2); }
  .pc-week:hover .pc-hit { fill: var(--paper-2); }
  .phead:has(.pchanged) { flex-wrap: wrap; } .pchanged { order: 3; flex-basis: 100%; margin: .2rem 0 0; }
  .ptimeline { border-left: 1px solid var(--ink); }
  .ptimeline li::before { border-radius: 0; background: none !important; border: 1px solid var(--ink); }
  .ptimeline li.ps-ok::before { background: var(--ink) !important; }
}
