/* =============================================================================
   Maxima Indo V6 — WordPress views (blog, archives, search, posts, generic pages)
   Uses only the V6 tokens from styles.css. Loaded after polish-v6.css on
   WordPress-driven views only; the 13 approved V6 pages never load this file.
   ========================================================================== */

/* ---- Listing hero ------------------------------------------------------- */
.v6-blog-hero .shero__lede p { margin: 0; }
.v6-blog-hero .related { align-self: start; }
.v6-reassurance { margin-top: 12px; font-size: .9375rem; color: var(--muted); }

/* ---- Post grid ----------------------------------------------------------- */
.v6-post-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 600px) { .v6-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .v6-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.v6-post-card { min-width: 0; }
.v6-post-card__link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; color: var(--text); text-decoration: none;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.v6-post-card__link:hover { color: var(--text); border-color: var(--teal-m); box-shadow: var(--sh-2); transform: translateY(-2px); }
.v6-post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--teal-l); overflow: hidden; }
.v6-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.v6-post-card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--teal); }
.v6-post-card__ph .i { width: 44px; height: 44px; }
.v6-post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.v6-post-card__meta { font-size: .8125rem; color: var(--muted); letter-spacing: .01em; }
.v6-post-card__title { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; }
.v6-post-card__excerpt { font-size: .9375rem; color: var(--body); }
.v6-post-card .more { margin-top: auto; min-height: 36px; }
@media (prefers-reduced-motion: reduce) { .v6-post-card__link, .v6-post-card__link:hover { transition: none; transform: none; } }

/* ---- Pagination -------------------------------------------------------- */
.v6-pager { margin-top: clamp(28px, 4vw, 44px); }
.v6-pager ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.v6-pager a, .v6-pager span.page-numbers {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white);
  color: var(--ink); font-weight: var(--w-nav); text-decoration: none;
}
.v6-pager a:hover { border-color: var(--teal); color: var(--teal-d); }
.v6-pager .current { background: var(--ink); border-color: var(--ink); color: var(--white); }
.v6-pager .dots { border: 0; background: none; }

/* ---- Article ------------------------------------------------------------ */
.v6-article-hero { padding-block: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 40px); }
.v6-article-head { max-width: 880px; }
.v6-article-head h1 { margin-top: 12px; font-size: clamp(1.875rem, 1.35rem + 2.1vw, 2.875rem); line-height: 1.12; }
.v6-article-head .eyebrow { margin-top: 18px; }
.v6-post-meta { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.v6-article-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.v6-article-cta .v6-reassurance { margin: 0; }
.v6-article-layout { display: grid; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 7vw, 88px); }
@media (min-width: 1024px) {
  .v6-article-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .v6-article-layout--single { grid-template-columns: minmax(0, 760px); }
  .v6-article-aside { position: sticky; top: calc(var(--hdr-h) + 20px); }
}
.v6-article-main { min-width: 0; max-width: 760px; }
.v6-article-figure { margin: 0 0 clamp(20px, 3vw, 32px); border-radius: var(--r-lg); overflow: hidden; background: var(--teal-l); }
.v6-article-figure img { width: 100%; }
.v6-aside-card { padding: 22px; border-radius: var(--r-lg); background: var(--mist); border: 1px solid var(--teal-m); }
.v6-aside-card__h { margin-top: 10px; font-weight: var(--w-head); color: var(--ink); font-size: 1.125rem; line-height: 1.3; }
.v6-aside-card p + p { margin-top: 8px; color: var(--body); font-size: .9375rem; }
.v6-aside-card .btn { margin-top: 16px; }
.v6-article-aside .related { margin-top: 18px; }
.v6-article-tags { margin-top: 32px; }
.v6-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.v6-tags a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--teal-l); color: var(--teal-d); text-decoration: none; font-size: .875rem; }
.v6-tags a:hover { background: var(--teal-m); color: var(--ink); }

/* ---- Prose (legacy Classic Editor content) ------------------------------ */
.v6-prose { color: var(--body); font-size: clamp(1rem, .97rem + .15vw, 1.0625rem); line-height: 1.75; overflow-wrap: anywhere; }
.v6-prose > * + * { margin-top: 1.05em; }
.v6-prose h2 { margin-top: 1.9em; font-size: clamp(1.375rem, 1.15rem + .9vw, 1.75rem); }
.v6-prose h3 { margin-top: 1.6em; font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem); }
.v6-prose h4 { margin-top: 1.4em; font-size: 1.0625rem; }
.v6-prose h2 + *, .v6-prose h3 + *, .v6-prose h4 + * { margin-top: .6em; }
.v6-prose ul, .v6-prose ol { padding-left: 1.4em; }
.v6-prose li + li { margin-top: .35em; }
.v6-prose a { color: var(--teal-d); }
.v6-prose img { border-radius: var(--r); height: auto; }
.v6-prose figure, .v6-prose .wp-caption { max-width: 100%; }
.v6-prose figcaption, .v6-prose .wp-caption-text { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.v6-prose blockquote { padding: 14px 18px; border-left: 4px solid var(--teal); background: var(--mist); border-radius: 0 var(--r) var(--r) 0; }
.v6-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: .9375rem; }
.v6-prose th, .v6-prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.v6-prose th { background: var(--paper); color: var(--ink); }
.v6-prose iframe, .v6-prose video, .v6-prose embed { max-width: 100%; }
.v6-prose .aligncenter { display: block; margin-inline: auto; }
.v6-prose .alignleft { float: left; margin: .3em 1.2em .8em 0; max-width: 50%; }
.v6-prose .alignright { float: right; margin: .3em 0 .8em 1.2em; max-width: 50%; }
.v6-prose::after { content: ""; display: table; clear: both; }
@media (max-width: 599px) { .v6-prose .alignleft, .v6-prose .alignright { float: none; margin: 1em auto; max-width: 100%; } }
/* Easy Table of Contents */
.v6-prose .ez-toc-container, .v6-prose #ez-toc-container { width: 100% !important; max-width: 100%; border-radius: var(--r-lg); border: 1px solid var(--teal-m) !important; background: var(--mist) !important; padding: 16px 20px !important; box-shadow: none !important; }
.v6-prose #ez-toc-container a { color: var(--teal-d); }

/* ---- Comments ------------------------------------------------------------ */
.v6-comments { max-width: 760px; }
.v6-comments__title { font-size: 1.375rem; }
.v6-comment-list { margin-top: 18px; }
.v6-comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.v6-comment-list .children { list-style: none; padding-left: clamp(14px, 4vw, 40px); }
.v6-comment-list .comment-meta { font-size: .875rem; color: var(--muted); }
.v6-comment-list .comment-content { margin-top: 8px; color: var(--body); }
.v6-comment-list .avatar { float: left; margin-right: 10px; border-radius: 50%; }
.v6-comments .comment-respond { margin-top: 32px; }
.v6-comments .comment-form p { margin-top: 14px; }
.v6-comments .comment-form label { display: block; font-weight: var(--w-label); font-size: .875rem; color: var(--ink); }
.v6-comments .comment-form input[type="text"], .v6-comments .comment-form input[type="email"], .v6-comments .comment-form input[type="url"], .v6-comments .comment-form textarea {
  width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 12px; font: inherit; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white);
}

/* ---- Search / empty state ---------------------------------------------- */
.v6-search { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.v6-search .input { flex: 1 1 240px; min-height: 48px; padding: 0 14px; font: inherit; border: 1px solid var(--line-2); border-radius: var(--r); }
.v6-empty { padding: 28px; border-radius: var(--r-lg); background: var(--paper); }

/* ---- Kontak: alternative Forminator form (kept function) ----------------- */
.v6-form-alt__in { display: grid; gap: clamp(20px, 4vw, 48px); }
@media (min-width: 1024px) { .v6-form-alt__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.v6-form-alt__box { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.v6-form-alt .head { margin-bottom: 0; }

/* ---- 6.5.1-wp3: readability (comment submit was 14px) ------------------- */
.v6-comments .comment-form .form-submit .btn { font-size: 1rem; }
