/* ==========================================================================
   blog.css — additive, namespaced .evolt-blog-*: /blog/ (templates/home.html),
   single posts (single.html), archives (archive.html) and one header rule for
   the extra "Blog" menu item. Loads after theme.css (dependency 'evolt-theme'),
   so the theme.css :root tokens (--primary, --head, --text, --muted, --line,
   --tint, --sh-card, --ease, --cta) are available here.
   ========================================================================== */

/* ---------- header: room for the 9th menu item ----------
   Measured (Chrome, Segoe UI): with "Blog" and the stock gap of 24px the menu
   wraps "Kontakt" into a 2nd row and brand + phone break at every desktop
   width. With 16px between items the row stays single-line from 1240px up,
   exactly as today; below that it wraps as it already does today. */
.nav-row .menu{column-gap:16px}

/* ---------- hero (hero--panel skeleton from inc/components.php) ---------- */
.hero.evolt-blog-hero .evolt-blog-title{overflow-wrap:break-word;hyphens:auto}
.hero.evolt-blog-post-hero .evolt-blog-title{font-size:clamp(26px,3.6vw,44px);line-height:1.1;max-width:30ch;text-wrap:balance}
.evolt-blog-hero .evolt-blog-date{margin-top:16px;font-size:13.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.85)}
.evolt-blog-hero .evolt-blog-term-lead{margin-top:14px;max-width:56ch;font-size:1.0625rem;color:#fff}
.evolt-blog-hero .evolt-blog-term-lead p{margin:0;color:#fff}

/* ---------- post list (Query Loop on the theme's .g3 + .scard) ---------- */
.evolt-blog-list .evolt-blog-grid{list-style:none;padding:0;margin:0}
.evolt-blog-list .evolt-blog-grid>li{margin:0;display:flex;min-width:0}
.evolt-blog-list .evolt-blog-card{width:100%}
.evolt-blog-list .evolt-blog-card>*{margin:0}
.evolt-blog-list .evolt-blog-card .evolt-blog-thumb a{display:block}
.evolt-blog-list .evolt-blog-card .evolt-blog-thumb img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.evolt-blog-list .evolt-blog-card .bd{flex:1;display:flex;flex-direction:column}
.evolt-blog-list .evolt-blog-card .bd>*{margin:0}
.evolt-blog-list .evolt-blog-card .evolt-blog-date{margin-bottom:8px;font-size:12.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.evolt-blog-list .evolt-blog-card .evolt-blog-card-title{margin:0 0 9px;font-size:19px;line-height:1.35;overflow-wrap:break-word;hyphens:auto}
.evolt-blog-list .evolt-blog-card .evolt-blog-card-title a{color:var(--head);text-decoration:none}
.evolt-blog-list .evolt-blog-card .evolt-blog-card-title a:hover{color:var(--primary)}
.evolt-blog-list .evolt-blog-card .wp-block-post-excerpt__excerpt{margin:0}
.evolt-blog-list .evolt-blog-card .more{align-self:flex-start;margin-top:auto;padding-top:16px;text-decoration:none}
.evolt-blog-list .evolt-blog-card .more::after{content:"";flex:none;width:15px;height:15px;background:currentColor;transition:transform .3s var(--ease);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
.evolt-blog-list .evolt-blog-card:hover .more::after{transform:translateX(5px)}
.evolt-blog-list .screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* empty state (query-no-results) */
.evolt-blog-list .evolt-blog-empty{max-width:64ch;background:#fff;box-shadow:var(--sh-card);padding:clamp(26px,3vw,38px)}
.evolt-blog-list .evolt-blog-empty>*{margin:0}
.evolt-blog-list .evolt-blog-empty p{font-size:16.5px;line-height:1.8;color:var(--text)}
.evolt-blog-list .evolt-blog-empty strong{color:var(--head)}
.evolt-blog-list .evolt-blog-empty .callrow{margin-top:24px;text-decoration:none}

/* pagination */
.evolt-blog-list .evolt-blog-pagination{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;margin:44px 0 0}
.evolt-blog-list .evolt-blog-pagination>*{margin:0}
.evolt-blog-pagination .wp-block-query-pagination-numbers{display:flex;flex-wrap:wrap;gap:10px}
.evolt-blog-pagination a,.evolt-blog-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 16px;background:#fff;border:1px solid var(--line);font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--head);text-decoration:none}
.evolt-blog-pagination a:hover{border-color:var(--primary);color:var(--primary)}
.evolt-blog-pagination .page-numbers.current{background:var(--primary);border-color:var(--primary);color:#fff}
.evolt-blog-pagination .page-numbers.dots{background:transparent;border-color:transparent}

/* ---------- single post ---------- */
.evolt-blog-article .evolt-blog-body{max-width:760px}
.evolt-blog-article .evolt-blog-image{margin:0 0 36px}
.evolt-blog-article .evolt-blog-image img{width:100%;height:auto;object-fit:cover}
.evolt-blog-article .evolt-blog-back{margin:48px 0 0;padding-top:24px;border-top:1px solid var(--line)}
.evolt-blog-article .evolt-blog-back a{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--primary);text-decoration:none}
.evolt-blog-article .evolt-blog-back svg{width:15px;height:15px;flex:none;transform:rotate(180deg);transition:transform .3s var(--ease)}
.evolt-blog-article .evolt-blog-back a:hover svg{transform:rotate(180deg) translateX(5px)}

/* ---------- prose: post content written in the block editor ----------
   body-prefixed margins outrank :root :where(.is-layout-flow) > * */
.evolt-blog-prose{font-size:1.0625rem;line-height:1.8;color:var(--text)}
body .evolt-blog-prose>*{margin-top:0;margin-bottom:0}
body .evolt-blog-prose>*+*{margin-top:1.25em}
body .evolt-blog-prose>:is(h1,h2){margin-top:2em}
body .evolt-blog-prose>h3{margin-top:1.7em}
body .evolt-blog-prose>:is(h4,h5,h6){margin-top:1.5em}
body .evolt-blog-prose>:is(h1,h2,h3,h4,h5,h6)+*{margin-top:.6em}
.evolt-blog-prose :is(h1,h2){font-size:clamp(1.5rem,2.6vw,2rem);line-height:1.2;letter-spacing:-.01em}
.evolt-blog-prose h3{font-size:1.25rem;line-height:1.3}
.evolt-blog-prose :is(h4,h5,h6){font-size:1.0625rem;line-height:1.35}
.evolt-blog-prose a{color:var(--primary-hover);text-decoration:underline;text-underline-offset:3px}
.evolt-blog-prose a:hover{color:var(--primary-dark)}
.evolt-blog-prose :is(strong,b){color:var(--head)}
.evolt-blog-prose :is(ul,ol){padding-left:1.4em}
.evolt-blog-prose li+li{margin-top:.45em}
.evolt-blog-prose :is(ul,ol)>li::marker{color:var(--primary);font-weight:700}
.evolt-blog-prose blockquote{margin-left:0;margin-right:0;padding:22px 26px;border-left:5px solid var(--primary);background:var(--tint);color:var(--head)}
.evolt-blog-prose blockquote>*{margin:0}
.evolt-blog-prose blockquote>*+*{margin-top:.6em}
.evolt-blog-prose blockquote cite{display:block;margin-top:10px;font-size:.9375rem;font-style:normal;color:var(--muted)}
.evolt-blog-prose figure{margin-left:0;margin-right:0}
.evolt-blog-prose img{max-width:100%;height:auto}
.evolt-blog-prose :is(figcaption,.wp-element-caption){margin-top:8px;font-size:.9375rem;line-height:1.6;color:var(--muted)}
.evolt-blog-prose hr,.evolt-blog-prose hr.wp-block-separator{width:auto;height:0;border:0;border-top:1px solid var(--line);background:none;opacity:1}
.evolt-blog-prose .wp-block-table{overflow-x:auto}
.evolt-blog-prose table{width:100%;border-collapse:collapse;font-size:.9375rem;line-height:1.6}
.evolt-blog-prose table :is(th,td){border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
.evolt-blog-prose table th,.evolt-blog-prose table thead td{background:var(--tint);color:var(--head);font-weight:700}
.evolt-blog-prose .wp-block-table :is(thead,tfoot){border:0}
.evolt-blog-prose code{font-size:.9em;background:var(--tint);padding:.1em .35em}
.evolt-blog-prose .has-text-align-center{text-align:center}
.evolt-blog-prose .has-text-align-right{text-align:right}
body .evolt-blog-prose>.aligncenter,.evolt-blog-prose .aligncenter{margin-left:auto;margin-right:auto}
.evolt-blog-prose .aligncenter img{margin-inline:auto}
body .evolt-blog-prose>.alignleft{float:left;max-width:50%;margin:.3em 1.5em 1em 0}
body .evolt-blog-prose>.alignright{float:right;max-width:50%;margin:.3em 0 1em 1.5em}
body .evolt-blog-prose>:is(.alignwide,.alignfull){max-width:100%;margin-left:0;margin-right:0}
.evolt-blog-prose::after{content:"";display:table;clear:both}
.evolt-blog-prose :is(iframe,video){max-width:100%}
/* core buttons: brand colour, like .btn--brand (yellow stays the call action) */
.evolt-blog-prose .wp-block-buttons{display:flex;flex-wrap:wrap;gap:12px}
.evolt-blog-prose :is(.wp-block-button__link,.wp-element-button){display:inline-flex;align-items:center;min-height:44px;padding:15px 30px;border-radius:0;background:var(--primary);color:#fff;font-size:14px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;text-decoration:none}
.evolt-blog-prose :is(.wp-block-button__link,.wp-element-button):hover{background:var(--primary-hover);color:#fff}
/* core details: same look as the theme's .faq-item accordion */
.evolt-blog-prose .wp-block-details{background:#fff;border:1px solid var(--line);padding:0;transition:.3s var(--ease)}
.evolt-blog-prose .wp-block-details[open]{padding-bottom:20px;box-shadow:var(--sh-card);border-color:transparent}
.evolt-blog-prose .wp-block-details summary{list-style:none;cursor:pointer;display:flex;gap:16px;align-items:center;min-height:44px;padding:18px 20px;font-weight:700;font-size:16px;line-height:1.45;color:var(--head)}
.evolt-blog-prose .wp-block-details summary::-webkit-details-marker{display:none}
.evolt-blog-prose .wp-block-details summary::after{content:"";flex:none;margin-left:auto;width:24px;height:24px;background:var(--primary);clip-path:polygon(43% 0,57% 0,57% 43%,100% 43%,100% 57%,57% 57%,57% 100%,43% 100%,43% 57%,0 57%,0 43%,43% 43%);transition:transform .3s var(--ease),background .3s}
.evolt-blog-prose .wp-block-details[open] summary::after{transform:rotate(135deg);background:var(--cta)}
body .evolt-blog-prose .wp-block-details>*{margin:0}
body .evolt-blog-prose .wp-block-details>:not(summary){margin:0 20px;font-size:15.5px;line-height:1.78}
body .evolt-blog-prose .wp-block-details>:not(summary)+:not(summary){margin-top:.8em}

@media (max-width:760px){
  body .evolt-blog-prose>.alignleft,body .evolt-blog-prose>.alignright{float:none;max-width:100%;margin:1.25em 0 0}
  .evolt-blog-article .evolt-blog-image{margin-bottom:28px}
}
