/* The blog (/blog/): the category tabs, the lists, an article and its blocks (blog/templates/blog/).
   Variant A tokens from traxer.css; the article's running text in Source Serif 4 (--font-serif, fonts.css), every
   number in Montserrat as everywhere. Owner, 2026-11-02 („твърде голям е шрифтът и е много събран в ляво“): the
   journal layout – a contained header card whose text starts on the same x as the contents list, the contents on
   the left, a 700px text column, smaller type. The header card's look is a setting (BLOG_HEADER_STYLE: dark | light). */

/* ---------------------------------------------------------------- shared */
.post-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--faint); }
.post-crumbs a { color: var(--muted); text-decoration: none; }
.post-crumbs a:hover { color: var(--accent); }
.post-crumbs > span[aria-hidden] { color: var(--faint-deco); }
/* the category above a title: white on the accent, small caps */
.post-kicker {
  display: inline-block; margin: 0; padding: 5px 9px; border-radius: 4px; background: var(--accent); color: #FFFFFF;
  font: 700 11px/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase;
}

/* ---------------------------------------------------------------- the category tabs (every blog page; not sticky) */
.blog-tabs { background: var(--bg); border-bottom: 1px solid var(--line); }
.blog-tabs__scroll { position: relative; display: flex; gap: 28px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.blog-tabs__scroll::-webkit-scrollbar { display: none; }
.blog-tabs__tab {
  flex: none; display: inline-flex; align-items: baseline; gap: 6px; padding: 13px 0 11px; border-bottom: 2px solid transparent;
  font: 500 13.5px/1.2 var(--font-sans); color: var(--muted); text-decoration: none; white-space: nowrap;
}
.blog-tabs__tab:hover { color: var(--ink); }
.blog-tabs__tab:focus-visible { outline-offset: -2px; }
.blog-tabs__tab[aria-current] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.blog-tabs__count { font-size: 12px; font-weight: 500; color: var(--faint); }
/* a phone: the row scrolls sideways and fades only at the end where more tabs hide (blog.js sets the classes) */
.blog-tabs__scroll.is-clipped-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.blog-tabs__scroll.is-clipped-start { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.blog-tabs__scroll.is-clipped-start.is-clipped-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

/* ---------------------------------------------------------------- an article: one left edge
   The site's container (traxer.css) puts its text at max((100% − 1240px) / 2, 0) + 24px: 364px at 1920, 124px at
   1440, 44px at 1280, 24px under 1240 – where the logo and the category tabs are. The body is that container's box;
   the header card is inset from the window (--hero-inset, 8–24px) and pads its text (--hero-pad, 16px), and the inset
   follows that edge, so inset + pad never passes it: the card's text, the contents list, the logo and the tabs share
   one x at every width over 640px. On a phone the card sits on the gutter, its text padded inside it. */
.post {
  --hero-pad: 16px;
  --hero-inset: clamp(8px, max((100% - var(--maxw)) / 2, 0px) + var(--gutter) - var(--hero-pad), 24px);
}
.post-wrap { width: min(var(--maxw) - 2 * var(--gutter), 100% - 2 * var(--post-edge, var(--gutter))); margin-inline: auto; }
@media (max-width: 640px) {
  .post { --hero-inset: var(--gutter); --hero-pad: 18px; }
}

.post-preview { background: var(--warn-soft); border-bottom: 1px solid #F3D9B5; color: var(--warn-ink); font-size: 14px; padding-block: 10px; }
.post-preview a { color: var(--warn-ink); }

/* ---------------------------------------------------------------- the header card */
.post-hero {
  --post-edge: var(--hero-pad);
  position: relative; width: min(1400px, 100% - 2 * var(--hero-inset)); margin: 16px auto 0; padding-block: 28px 34px;
  border-radius: var(--r-lg); overflow: hidden; border-bottom: 6px solid var(--accent);
}
/* the two skins (BLOG_HEADER_STYLE), shared by the article's header card and the featured card of the lists */
.post-hero--dark, .blog-featured--dark {
  --hero-text: #FFFFFF; --hero-meta: rgba(255, 255, 255, .62); --hero-rule: rgba(255, 255, 255, .14);
  --hero-cell: #121A2B; --hero-first: #9DB5FF;   /* the first key number: 9.3:1 on the navy */
  color: var(--hero-text);
}
.post-hero--light, .blog-featured--light {
  --hero-text: var(--ink); --hero-meta: var(--muted); --hero-rule: var(--line);
  --hero-cell: #FFFFFF; --hero-first: var(--accent);
  /* the 1px frame as an inset shadow, not a border – that would move the card's text 1px off the shared edge */
  background: linear-gradient(180deg, var(--canvas) 0%, #FFFFFF 100%);
  box-shadow: inset 0 1px 0 var(--line), inset 1px 0 0 var(--line), inset -1px 0 0 var(--line);
  color: var(--hero-text);
}
.post-hero--dark { background: radial-gradient(ellipse 760px 420px at 88% -10%, rgba(47, 91, 234, .18), transparent 70%), var(--ink); }
.post-hero .post-crumbs, .post-hero .post-crumbs a { color: var(--hero-meta); }
.post-hero .post-crumbs > span[aria-hidden] { color: var(--hero-meta); opacity: .7; }
.post-hero .post-crumbs a:hover { color: var(--hero-text); }
.post-hero .post-kicker { margin-top: 18px; }
.post-title {
  margin: 14px 0 0; max-width: 16.152em; color: var(--hero-text); text-wrap: balance;   /* 24ch, see „Measures“ (traxer.css) */
  font: 800 clamp(27px, 3.2vw, 40px)/1.08 var(--font-display); letter-spacing: -.03em;
}
.post-byline { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--hero-rule); }
.post-byline__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin: 0; font: 500 13px/1.5 var(--font-sans); color: var(--hero-meta); }
.post-byline__author { font-weight: 600; color: var(--hero-text); }
.post-byline__meta { display: inline-flex; flex-wrap: wrap; align-items: baseline; }
.post-byline__sep { margin-inline: 8px; opacity: .7; }
.post-share {
  flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; margin: -6px -8px -6px auto; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--hero-meta); cursor: pointer;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
/* without the script the button stays hidden, but keeps its room: the row does not grow when blog.js shows it */
.post-share[hidden] { visibility: hidden; }
.post-share:hover { color: var(--hero-text); background: var(--hero-rule); }
.post-share:focus-visible { outline: 2px solid currentColor; outline-offset: 0; border-radius: 50%; }
/* „Линкът е копиран“: a live region that stays in the page (empty, it takes no room), so a screen reader hears it */
.post-share__note { position: absolute; right: 36px; top: 14px; font: 600 12.5px/1.5 var(--font-sans); color: var(--hero-text); white-space: nowrap; pointer-events: none; }
/* a narrow row: above the byline, never over the date */
@media (max-width: 720px) { .post-share__note { top: auto; bottom: calc(100% + 2px); right: 0; } }

/* the key numbers: up to 3 cells in one row (4 as 2×2; one column under 928px), the leading number big, its unit
   smaller; the label as written (up to 70 characters, blog.lint), in two lines at most – 880px gives a cell of three
   the room for that */
.post-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; max-width: 880px; margin: 22px 0 0; padding: 0;
  list-style: none; background: var(--hero-rule); border: 1px solid var(--hero-rule); border-radius: 12px; overflow: hidden;
}
.post-facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-facts--2 { max-width: 620px; }
.post-facts--1 { grid-template-columns: minmax(0, 1fr); max-width: 410px; }
.post-fact { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 14px 16px 13px; background: var(--hero-cell); }
.post-fact__fig { font: 600 26px/1.05 var(--font-num); letter-spacing: -.02em; color: var(--hero-text); }
.post-fact__n { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums !important; }
.post-fact__pre, .post-fact__unit { font-size: .6em; font-weight: 600; letter-spacing: 0; }
.post-fact:first-child .post-fact__fig { color: var(--hero-first); }
.post-fact__label { font: 500 12px/1.4 var(--font-sans); color: var(--hero-meta); text-wrap: balance; }
/* a tablet: one column – the figure beside its label (one line), a long figure („5 381 917,65 €“ is ~230px, three
   do not fit in a row here) above it */
@media (min-width: 641px) and (max-width: 927px) {
  .post-facts.post-facts { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .post-hero .post-facts:not(.post-facts--long) .post-fact { flex-direction: row; align-items: baseline; gap: 16px; }
  .post-hero .post-facts:not(.post-facts--long) .post-fact__fig { flex: none; width: 156px; }   /* „над 30 минути“ */
}
@media (max-width: 640px) {
  .post-hero { margin-top: 12px; padding-block: 20px 24px; }
  .post-title { font-size: clamp(25px, 7vw, 28px); }
  /* one column, the figure above its label, which keeps the full width: two lines at 390px (three at 320px), not
     a narrow column of six; compact, so the first lines of the text still reach the first screen */
  .post-facts.post-facts { grid-template-columns: minmax(0, 1fr); max-width: none; margin-top: 18px; }
  .post-fact { padding: 10px 14px 9px; gap: 4px; }
  .post-fact__fig { font-size: 22px; }
  .post-fact__label { font-size: 12.5px; line-height: 1.38; }
  /* the author on its own line (the share button beside it), the reading time and the date under it: no dot is
     left hanging at the end of a line */
  .post-byline { display: block; }
  .post-byline__text { flex-direction: column; align-items: flex-start; gap: 2px; }
  .post-byline__author { padding-right: 40px; }
  .post-byline__text > .post-byline__sep { display: none; }
  .post-byline__sep { margin-inline: 6px; }
  .post-share { position: absolute; top: 9px; right: -8px; margin: 0; }
  .post-share__note { top: auto; bottom: calc(100% + 2px); right: 0; }
}

/* ---------------------------------------------------------------- the body: contents on the left, the text column */
.post-layout { padding-block: 40px 56px; }
.post-layout > * { min-width: 0; }
@media (min-width: 1080px) {
  .post-layout { display: grid; grid-template-columns: 168px minmax(0, 700px); column-gap: 44px; justify-content: start; align-items: start; }
  .post-layout > .post-body { grid-column: 2; }
  .post-toc-mobile { display: none; }
}
@media (max-width: 1079px) { .post-toc { display: none; } }

.post-toc {
  position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px 0 8px;
}
.post-toc__title { margin: 0 0 14px; font: 700 12px/1.3 var(--font-sans); color: var(--ink); }
.post-toc__list { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.post-toc__list li { margin: 0; }
.post-toc__list a {
  display: block; margin-left: -1px; padding: 7px 0 7px 14px; border-left: 2px solid transparent;
  font: 400 12.5px/1.4 var(--font-sans); color: var(--muted); text-decoration: none; transition: color .15s var(--ease);
}
.post-toc__list a:hover { color: var(--ink); }
.post-toc__list a:focus-visible { outline-offset: -2px; }
/* the section being read: colour and the ink rail only – a bolder weight would rewrap the link and move the list */
.post-toc__list a[aria-current] { color: var(--ink); border-left-color: var(--ink); }
.post-toc__more { display: inline-block; margin: 18px 0 0 15px; font: 600 12.5px/1.4 var(--font-sans); color: var(--accent); text-decoration: none; }
.post-toc__more:hover { color: var(--accent-ink); text-decoration: underline; }

.post-toc-mobile { margin: 0 0 28px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--canvas); font: 400 15px/1.5 var(--font-sans); }
.post-toc-mobile summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.post-toc-mobile ol { margin: 12px 0 0; padding-left: 22px; }
.post-body .post-toc-mobile li { margin: 6px 0; font-size: 15px; line-height: 1.5; }
/* inside .post-body: more specific than the text's links (.post-body a[href]), or they would win */
.post-body .post-toc-mobile a[href] { color: var(--ink-2); text-decoration: none; }
.post-body .post-toc-mobile a[href]:hover { color: var(--accent); }

/* ---------------------------------------------------------------- the text (Source Serif 4) */
.post-body { max-width: 700px; font: 400 16px/1.72 var(--font-serif); color: var(--ink-2); overflow-wrap: break-word; }
.post-body :where(p) { margin: 0 0 1.05em; }
.post-body > p:first-of-type { font-size: 18.5px; line-height: 1.6; color: var(--ink); }   /* the lede */
.post-body :where(strong, b) { font-weight: 600; color: var(--ink); }
.post-body :where(h2) {
  margin: 2em 0 .6em; font: 800 clamp(21px, 1.9vw, 23.5px)/1.25 var(--font-display); letter-spacing: -.02em; color: var(--ink);
  scroll-margin-top: 16px;   /* on top of the page's scroll-padding (the sticky header, traxer.css) */
}
.post-body :where(h3) { margin: 1.6em 0 .5em; font: 700 18px/1.35 var(--font-display); letter-spacing: -.01em; color: var(--ink); scroll-margin-top: 16px; }
.post-body :where(h4) { margin: 1.4em 0 .4em; font: 700 16px/1.4 var(--font-display); color: var(--ink); }
.post-body :where(ul, ol) { margin: 0 0 1.15em; padding-left: 24px; }
.post-body :where(li) { margin: 0 0 10px; font-size: 16px; line-height: 1.65; }
.post-body :where(li > ul, li > ol) { margin: 10px 0 0; }
.post-body :where(ul > li)::marker { color: var(--accent); font-size: 1.15em; }   /* a 6px accent dot */
.post-body :where(ol > li)::marker { font: 600 15px var(--font-num); color: var(--accent); }
.post-body :where(li) > p { margin-bottom: .4em; }
.post-body a[href] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a[href]:hover { color: var(--accent-ink); }
.post-body a:not([href]) { color: inherit; text-decoration: none; }
.post-body :where(hr) { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.post-body :where(code) { padding: 1px 6px; border-radius: 6px; background: var(--soft); font-size: .88em; }
.post-body :where(em, i) { font-style: italic; }
.post-body > :first-child { margin-top: 0; }

/* tables: in the sans, numbers tabular; a wide one scrolls inside its frame on a phone, its clipped edge fading out
   (blog.js sets the classes, as for the category tabs) */
.post-table { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.post-table.is-clipped-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
.post-table.is-clipped-start { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); }
.post-table.is-clipped-start.is-clipped-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.post-table table { width: 100%; border-collapse: collapse; font: 400 14px/1.5 var(--font-sans); color: var(--ink-2); }
.post-table th { padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--canvas); text-align: left; vertical-align: bottom; font: 600 12.5px/1.35 var(--font-sans); color: var(--ink); }
.post-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-variant-numeric: lining-nums tabular-nums !important; }
.post-table tr:last-child td { border-bottom: 0; }
.post-table :where(strong, b) { color: var(--ink); }

/* callouts: a tinted box with its label on its own small line; a blockquote without a label is a pull quote */
.post-body blockquote { margin: 1.8em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--accent); background: none; font: 600 19px/1.45 var(--font-serif); color: var(--ink); }
.post-body blockquote > :last-child { margin-bottom: 0; }
.post-body blockquote.callout {
  display: block; margin: 1.7em 0; padding: 16px 20px 18px; border: 0; border-radius: var(--r); background: var(--canvas);
  font: 400 15.5px/1.6 var(--font-serif); color: var(--ink-2);
}
.post-body blockquote.callout :where(li) { font-size: 15.5px; line-height: 1.6; margin-bottom: 6px; }
.post-body .callout__label { margin: 0 0 6px; font: 700 11px/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post-body .callout__label + p::first-letter { text-transform: uppercase; }   /* „Пример: цена …“ → its own line, „Цена …“ */
.post-body blockquote.callout--warn { background: var(--warn-soft); }
.post-body .callout--warn .callout__label { color: var(--warn-ink); }
.post-body blockquote.callout--tip { background: var(--ok-soft); }
.post-body .callout--tip .callout__label { color: var(--ok); }
.post-body blockquote.callout--example { background: var(--accent-soft); }
.post-body .callout--example .callout__label { color: var(--accent-ink); }

/* figures: our SVG diagrams (720 wide, drawn for a phone) at 600px, centred – each draws its own rounded frame
   (rx 18), so no CSS one: two radii would not meet in the corners; screenshots get the frame and may take the column */
.post-figure { max-width: 600px; margin: 2em auto; }
.post-figure--shot { max-width: none; }
.post-figure img { display: block; width: 100%; height: auto; }
.post-figure--shot img { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.post-figure figcaption { margin-top: 10px; font: 400 13.5px/1.5 var(--font-sans); color: var(--muted); text-align: center; }

/* call-to-action cards ([[cta: …]]): calm, in the sans, one primary button */
.post-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 2em 0;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-family: var(--font-sans);
}
.post-cta__body { flex: 1 1 300px; min-width: 0; }
.post-body .post-cta__title { margin: 0 0 4px; font: 700 17px/1.35 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.post-body .post-cta__text { margin: 0; font: 400 14.5px/1.55 var(--font-sans); color: var(--ink-2); }
.post-body .post-cta__price { margin: 10px 0 0; font: 400 13px/1.5 var(--font-sans); }
.post-cta__price .num { font-size: 17px; font-weight: 600; color: var(--ink); }
.post-body .post-cta__note { margin: 6px 0 0; font: 400 13px/1.5 var(--font-sans); color: var(--muted); }
.post-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-body .post-cta a.btn { text-decoration: none; }
.post-body .post-cta a.btn--primary { color: #FFFFFF; }
.post-body .post-cta a.btn--text { color: var(--muted); }
.post-body .post-cta a.btn--text:hover { color: var(--ink); }

/* live tenders ([[tenders: …]]): a soft box of compact rows, the days left as a pill */
.post-tenders { margin: 2em 0; padding: 14px; border-radius: 12px; background: var(--canvas); font-family: var(--font-sans); }
.post-tenders__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 2px 4px 10px; }
.post-body .post-tenders__title { margin: 0; font: 700 14px/1.4 var(--font-sans); color: var(--ink); }
.post-body a.post-tenders__more[href] { font: 600 13px/1.4 var(--font-sans); white-space: nowrap; text-decoration: none; }
.post-body .post-tenders__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.post-body .post-tenders__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; margin: 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 14px; line-height: 1.45;
}
.post-body a.post-tenders__name[href] { grid-column: 1; font: 600 14px/1.4 var(--font-sans); color: var(--ink); text-decoration: none; }
.post-body a.post-tenders__name[href]:hover { color: var(--accent); text-decoration: underline; }
.post-tenders__meta { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.post-tenders__facts { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.post-tenders__facts .num { font-weight: 600; }

/* the FAQ: the questions as bold lines between rules, the answers in the serif */
.post-faq { margin-top: 2.4em; }
.post-body .post-faq h2 { margin-bottom: .4em; }
.post-body .post-faq :where(h3) { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.post-body .post-faq :where(h2 + h3) { border-top: 0; padding-top: 6px; }
.post-body .post-faq :where(p) { margin: 8px 0 18px; font-size: 15.5px; line-height: 1.65; }

.post-body .post-disclaimer { margin: 3em 0 0; padding-top: 16px; border-top: 1px solid var(--line); font: 400 13px/1.55 var(--font-sans); color: var(--faint); }

@media (max-width: 640px) {
  .post-layout { padding-block: 22px 44px; }
  .post-toc-mobile { margin-bottom: 22px; }
  .post-body { font-size: 16px; }
  .post-body > p:first-of-type { font-size: 17.5px; line-height: 1.58; }
  .post-body :where(li) { font-size: 16px; }
  .post-body :where(h2) { font-size: 20px; }
  .post-body :where(h3) { font-size: 17px; }
  .post-body blockquote { font-size: 17.5px; }
  .post-cta { padding: 16px; }
  .post-cta__actions, .post-cta__actions .btn { width: 100%; }
  .post-cta__actions .btn { justify-content: center; }
  .post-table table:has(tr > :nth-child(3)) { min-width: 540px; }   /* 3+ columns: readable cells, the frame scrolls */
  .post-tenders { padding: 10px; margin-inline: -4px; }
  .post-body .post-tenders__row { grid-template-columns: minmax(0, 1fr); }
  .post-tenders__facts { grid-column: 1; grid-row: auto; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; }
  .post-figure { margin-block: 1.6em; }
}

/* ---------------------------------------------------------------- the cards: „Прочетете също“ and the lists
   No share image here: drawn with the title and the summary, it repeated the card's own text in small type.
   BLOG_CARD_STYLE: number = the article's first key number in a box where a picture would be; plain = no box, a rule
   above the category. In a row of cards the title keeps three lines and the date sits at the bottom, so the
   summaries and the dates of a row line up. */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.post-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.post-card__cover {
  display: flex; flex-direction: column; justify-content: center; gap: 10px; aspect-ratio: 1200 / 630; overflow: hidden;
  padding: 18px 22px; border-radius: 12px; border-bottom: 4px solid var(--accent);
  background: linear-gradient(180deg, var(--canvas) 0%, #FFFFFF 100%);
  box-shadow: inset 0 1px 0 var(--line), inset 1px 0 0 var(--line), inset -1px 0 0 var(--line);
}
.post-card__fig { font: 600 40px/1.05 var(--font-num); letter-spacing: -.02em; color: var(--accent); }
.post-card__cover--long .post-card__fig { font-size: 30px; }   /* „5 381 917,65 €“ */
.post-card__n { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums !important; }
.post-card__pre, .post-card__unit { font-size: .6em; letter-spacing: 0; }
.post-card__fig--word { font: 800 26px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--ink); }   /* no key number */
.post-card__fact {
  max-width: 34em; font: 500 13.5px/1.45 var(--font-sans); color: var(--ink-2); text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-related .post-card__cover { background: linear-gradient(180deg, #FFFFFF 0%, var(--canvas) 100%); }   /* on the canvas band */
.post-card--plain { padding-top: 14px; border-top: 2px solid var(--ink); }
.post-card__cat { margin: 14px 0 6px; font: 700 11px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.post-card--plain .post-card__cat { margin-top: 0; }
.post-card__title {
  margin: 0; font: 700 17px/1.28 var(--font-display); letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 601px) { .post-card__title { min-height: calc(3 * 1.28em); } }   /* a row of cards: three lines each */
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }   /* the whole card is the link */
/* the focus ring on the whole card (the title clips its own lines, and with them the link's outline) */
.post-card__title a:focus-visible { outline: none; }
.post-card__title a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 4px; }
.post-card:hover .post-card__title a { color: var(--accent-ink); }
.post-card__summary {
  margin: 8px 0 0; font: 400 14.5px/1.55 var(--font-sans); color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__meta { margin: auto 0 0; padding-top: 8px; font-size: 13px; color: var(--faint); }

.post-related { padding-block: 48px 64px; background: var(--canvas); border-top: 1px solid var(--line); }
.post-related__title { margin: 0 0 24px; font: 800 26px/1.2 var(--font-display); letter-spacing: -.02em; }
main:has(> .post-related:last-child) + .site-footer { margin-top: 0; }

/* ---------------------------------------------------------------- the lists (/blog/, a category) */
.blog-head { padding-block: 26px 4px; }
.blog-head__title { margin: 12px 0 0; font: 800 clamp(28px, 3vw, 36px)/1.1 var(--font-display); letter-spacing: -.025em; }
.blog-head__lead { max-width: 640px; margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: balance; }   /* no word left alone on the last line */
.blog-list { padding-block: 24px 64px; }
.blog-drafts { margin-bottom: 28px; padding: 16px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--warn-soft); }
.blog-drafts__title { margin: 0 0 8px; font-weight: 600; color: var(--warn-ink); }
.blog-drafts ul { margin: 0; padding-left: 20px; }
.blog-drafts li { margin: 4px 0; }

/* the newest article: a wide card in the article header's look – its text, and its key numbers beside it (one
   column, each figure above its label) */
.blog-featured {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center;
  margin: 0 0 48px; border-radius: var(--r-lg); overflow: hidden; border-bottom: 6px solid var(--accent);
}
.blog-featured:not(.blog-featured--facts) { grid-template-columns: minmax(0, 1fr); }   /* no key numbers: the text alone */
.blog-featured--dark { background: radial-gradient(ellipse 620px 380px at 100% 0%, rgba(47, 91, 234, .18), transparent 70%), var(--ink); }
.blog-featured__body { padding: 34px 40px 36px; }
.blog-featured__facts.post-facts { grid-template-columns: minmax(0, 1fr); max-width: none; margin: 32px 32px 32px 0; }
.blog-featured__facts .post-fact { padding: 14px 18px 13px; }
.blog-featured__facts .post-fact__label { font-size: 13px; }
.blog-featured__title { margin: 14px 0 0; font: 800 clamp(24px, 2.6vw, 32px)/1.12 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
.blog-featured__title a { color: var(--hero-text); text-decoration: none; }
.blog-featured__title a::after { content: ""; position: absolute; inset: 0; }
/* the focus ring on the whole card; where :has() is not supported, the link keeps its own */
@supports selector(:has(*)) {
  .blog-featured__title a:focus-visible { outline: none; }
  .blog-featured:has(.blog-featured__title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
}
.blog-featured__summary { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--hero-meta); }
.blog-featured--dark .blog-featured__summary { color: rgba(255, 255, 255, .8); }
.blog-featured__meta { margin: 14px 0 0; font: 500 13px/1.5 var(--font-sans); color: var(--hero-meta); }
.blog-featured__more { margin: 18px 0 0; font: 600 14px/1.4 var(--font-sans); color: var(--hero-text); }
.blog-featured--light .blog-featured__more { color: var(--accent); }
.blog-featured:hover .blog-featured__more { text-decoration: underline; text-underline-offset: 3px; }

.blog-latest__title { margin: 0 0 22px; font: 800 24px/1.2 var(--font-display); letter-spacing: -.02em; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; }

/* a tablet: the numbers under the text, across the card – each figure beside its label, as in the article header */
@media (max-width: 860px) {
  .blog-featured { grid-template-columns: minmax(0, 1fr); }
  .blog-featured__body { padding: 26px 28px 8px; }
  .blog-featured__facts.post-facts { margin: 16px 28px 28px; }
  .blog-featured__summary { font-size: 15px; }
}
@media (min-width: 641px) and (max-width: 860px) {
  .blog-featured__facts:not(.post-facts--long) .post-fact { flex-direction: row; align-items: baseline; gap: 16px; }
  .blog-featured__facts:not(.post-facts--long) .post-fact__fig { flex: none; width: 156px; }
}
@media (max-width: 640px) {
  .blog-head { padding-top: 18px; }
  .blog-list { padding-top: 18px; }
  .blog-featured { margin-bottom: 36px; }
  .blog-featured__body { padding: 20px 18px 4px; }
  .blog-featured__facts.post-facts { margin: 14px 18px 20px; }
  .blog-featured__facts .post-fact__label { font-size: 12.5px; }
  .blog-latest__title { font-size: 21px; }
}

/* a „по-“ / „най-“ compound in a title or a label (blog_tags.nbsp) never breaks at its hyphen, nor a range („1–2“)
   at its dash */
.nobr { white-space: nowrap; }
