/* Blog pages (views/pages/blog-*.html). Linked only from those pages. Uses the shared variables only
   (--brand, --ink, --muted, --line, --soft, --r, --display, --font): no colours or fonts of its own, no gradients. */

/* ---------- index ---------- */
.blog-head { max-width: 68ch; margin-bottom: 1.25rem }
.blog-head h1 { margin-bottom: .35em }
.blog-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem }
.blog-cats a { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink) }
.blog-cats a small { color: var(--muted); margin-left: .2rem }
.blog-cats a:hover { border-color: var(--brand) }
.blog-cats a[aria-current="page"] { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent) }
.blog-rss { margin-top: 2rem; font-size: .88rem; color: var(--muted) }

/* featured post (first on page 1) */
.pf { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.75rem; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: .6rem; margin-bottom: 1.75rem; position: relative }
.pf-ph, .pc-ph { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: calc(var(--r) - 8px); background: color-mix(in srgb, var(--brand) 7%, transparent) }
.pf-ph img, .pc-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.pf-body { padding: .75rem 1rem .75rem 0 }
.pf-title { font: 600 clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--display); margin: .2em 0 .45em }
.pf-title a, .pc-title a { text-decoration: none; color: var(--ink) }
.pf-title a::after, .pc-title a::after { content: ""; position: absolute; inset: 0 }
.pf-dek { color: var(--muted); margin-bottom: .8em }

/* post cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.25rem }
.pc { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); padding: .5rem }
.pc-body { padding: .8rem .6rem .5rem; display: grid; gap: .35rem }
.pc-meta { display: flex; gap: .5rem; align-items: center; margin: 0; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em }
.pc-cat { position: relative; z-index: 1; color: var(--brand); text-decoration: none }
.pc-draft { border: 1px solid var(--line); border-radius: 999px; padding: 0 .5rem; color: var(--muted) }
.pc-title { font: 600 1.15rem/1.25 var(--display); margin: 0 }
.pc-dek { color: var(--muted); font-size: .93rem; margin: 0 }
.pc-foot { color: var(--muted); font-size: .85rem; margin: .2rem 0 0 }
.pc:hover, .pf:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)) }

/* ---------- article ---------- */
.post-draft { border: 1px dashed var(--brand); border-radius: var(--r); padding: .6rem 1rem; color: var(--ink); font-size: .92rem; margin-bottom: 1rem }
.post-head { max-width: 820px }
.post-cat { display: inline-block; border-radius: 999px; padding: .25rem .8rem; font-size: .82rem; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, transparent); text-decoration: none; margin-bottom: .9rem }
.post-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: .35em }
.post-dek { font-size: 1.15rem; line-height: 1.5; color: var(--ink); max-width: 68ch; margin-bottom: .6em }
.post-meta { color: var(--muted); font-size: .92rem; margin-bottom: 0 }

/* "Rezumă cu:" */
.sum { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .5rem; margin: 1.1rem 0 0 }
.sum-label { font-size: .88rem; color: var(--muted); margin-right: .25rem }
.sum ul { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0 }
.sum a { display: inline-flex; align-items: center; gap: .45rem; height: 34px; padding: 0 .85rem 0 .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 500; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap }
.sum a:hover { border-color: var(--ink); color: var(--ink) }
.sum svg { width: 16px; height: 16px; fill: currentColor; stroke: none }
@media (max-width: 620px) { .sum-label { flex: 0 0 100%; margin: 0 } .sum a { height: 32px; padding: 0 .7rem 0 .6rem; font-size: .84rem } }

/* hero: the illustration in a flat tinted panel */
.post-hero { margin: 1.75rem 0 2rem; padding: clamp(.5rem, 1.6vw, 1rem); border-radius: var(--r); background: color-mix(in srgb, var(--brand) 7%, transparent) }
.post-hero img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: calc(var(--r) - 8px) }

.post-layout { display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, 260px); justify-content: space-between; gap: 3rem; align-items: start }
.post-aside { grid-column: 2; grid-row: 1; position: sticky; top: 90px }
.post-main { grid-column: 1; grid-row: 1; min-width: 0 }
.post-toc { border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem }
.post-toc summary { cursor: pointer; font: 600 .95rem/1.3 var(--display); list-style: none }
.post-toc summary::-webkit-details-marker { display: none }
.post-toc ol { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .1rem }
.post-toc a { display: block; padding: .35rem .5rem; border-radius: 8px; font-size: .9rem; color: var(--muted); text-decoration: none; line-height: 1.35 }
.post-toc a:hover { background: var(--soft); color: var(--ink) }

/* body: comfortable reading width */
.post-body { font-size: 1.075rem; line-height: 1.7; color: var(--ink); max-width: 68ch }
.post-body h2 { font: 600 clamp(1.4rem, 2.6vw, 1.8rem)/1.2 var(--display); margin: 2em 0 .6em; scroll-margin-top: 90px }
.post-body h2:first-child { margin-top: 0 }
.post-body h3 { font: 600 1.15rem/1.3 var(--display); margin: 1.6em 0 .4em }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1.05em }
.post-body ul, .post-body ol { padding-left: 1.3rem }
.post-body li { margin-bottom: .35em }
.post-body a { color: var(--brand); text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent) }
.post-body blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--brand); color: var(--muted) }

.post-sec { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 90px }
.post-hotels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 1rem }
.post-more { font-weight: 600; color: var(--brand); text-decoration: none; display: inline-block; margin-top: 1rem }
.post-faq details { border-bottom: 1px solid var(--line); padding: .9rem 0 }
.post-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem }
.post-faq summary::-webkit-details-marker { display: none }
.post-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand) }
.post-faq details[open] summary::after { content: "−" }
.post-faq details div { margin-top: .5rem; color: var(--ink); max-width: 68ch }
.post-faq details div p:last-child { margin-bottom: 0 }
.post-byline { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem }
.post-byline b { color: var(--ink) }
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .5rem 0 0; padding: 0 }
.post-tags li { background: var(--soft); border-radius: 999px; padding: .15rem .65rem; font-size: .82rem; color: var(--ink) }
.post-related { margin-top: 3.5rem }

@media (max-width: 1020px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem }
  .post-aside { grid-column: 1; grid-row: 1; position: static }
  .post-main { grid-row: 2 }
  .post-toc:not([open]) { padding-bottom: .9rem }
}
@media (max-width: 720px) {
  .pf { grid-template-columns: minmax(0, 1fr); gap: .5rem }
  .pf-body { padding: .5rem .5rem .6rem }
  .post-body { font-size: 1.03rem }
}

/* one centred column (owner, 11 Oct 2026: "max width content and image and mx-auto"): the notice, header, picture
   and body share the same 760px column. The contents float in the empty space left of it and stay in view while
   reading (owner: "like micapoveste.ro, contents as a floating bar on the left"); site.js marks the section in view.
   Where the left space is too narrow for them, they sit above the body. */
.post > .post-draft, .post-head, .post-hero { max-width: 760px; margin-inline: auto }
.post-head .post-dek { max-width: none }
.post-body { max-width: none }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr); gap: 0 2.5rem; align-items: start }
.post-main { grid-column: 2; grid-row: 1 }
.post-aside { grid-column: 1; grid-row: 1; justify-self: end; width: 100%; max-width: 250px; position: sticky; top: 96px }
.post-toc { border: 0; padding: 0; border-radius: 0 }
.post-toc summary { font: 700 .75rem/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem }
.post-toc ol { border-left: 2px solid var(--line); gap: 0 }
.post-toc a { margin-left: -2px; padding: .4rem .8rem; border-left: 2px solid transparent; border-radius: 0; color: var(--muted); transition: color .15s, border-color .15s }
.post-toc a:hover { background: none; color: var(--ink) }
.post-toc a[aria-current="true"] { color: var(--ink); font-weight: 600; border-left-color: var(--brand) }
.post-related { max-width: 1200px; margin-inline: auto }
@media (max-width: 1280px) {
  .post-layout { display: block; max-width: 760px; margin-inline: auto }
  .post-aside { position: static; max-width: none; margin-bottom: 2rem }
  .post-toc { border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem }
}
