/* Softeconomics inner pages: page, post, blog list, archive, search, 404.
   Same tokens as the home page (system.css + palette.css); loaded everywhere except the front page.
   Inner pages are long, so their section is not held to one screen like the home page's sections. */

main.page-main > .page-section {
  display: block; height: auto; min-height: 0;
  padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9);
}
main.page-main > .page-section + .page-section { padding-top: 0; }
main.page-main > .page-section > .wrap { display: block; height: auto; }
@media (max-width: 639px) {
  main.page-main > .page-section { padding: calc(var(--nav) + var(--s-6)) 0 var(--s-8); }
}

/* page head: path, title, one line under it */
.page-head { display: grid; gap: var(--s-4); max-width: 860px; margin-bottom: var(--s-8); }
.page-head h1 { font-size: clamp(34px, 2.1vw + 24px, 56px); line-height: 1.08; }
.page-head .t-lead { max-width: 62ch; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); color: var(--muted); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.page-head__meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: from-font; }
@media (max-width: 639px) { .page-head { margin-bottom: var(--s-7); } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); font-size: var(--t-small); color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; background: var(--mark-red); flex: none; }
.crumbs a { color: var(--ink); text-underline-offset: 3px; }
.crumbs a:hover, .crumbs a:focus-visible { text-decoration: underline; }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 48ch; }
@media (max-width: 639px) { .crumbs a { display: inline-flex; align-items: center; min-height: 32px; } }

/* reading text: a comfortable measure; low weight (:where) so Elementor's own widget CSS still wins */
.prose { max-width: 72ch; font-size: 17px; line-height: 1.7; }
.prose :where(p, ul, ol, blockquote, figure, table, pre) { margin: 0 0 var(--s-5); }
.prose :where(h2) { font-size: clamp(26px, .95vw + 22px, 34px); line-height: 1.2; margin: var(--s-8) 0 var(--s-4); }
.prose :where(h3) { font-size: clamp(20px, .4vw + 18.5px, 24px); line-height: 1.3; margin: var(--s-7) 0 var(--s-3); }
.prose :where(h4) { margin: var(--s-6) 0 var(--s-2); }
.prose > :where(:first-child), .prose .entry > :where(:first-child) { margin-top: 0; }
.prose :where(ul) { list-style: disc; padding-inline-start: 1.3em; }
.prose :where(ol) { list-style: decimal; padding-inline-start: 1.4em; }
.prose :where(li) { margin: 0 0 var(--s-2); }
.prose :where(li)::marker { color: var(--muted); }
.prose :where(a:not(.btn)) { color: var(--action); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: from-font; }
.prose :where(strong, b) { font-weight: 600; }
.prose :where(blockquote) { padding-left: var(--s-5); border-left: 3px solid var(--mark-red); font-size: var(--t-lead); }
.prose :where(img) { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose :where(figcaption) { margin-top: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.prose :where(table) { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose :where(th, td) { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose :where(hr) { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
.prose :where(iframe, video) { max-width: 100%; }

/* pages built with Elementor take the full container width (as in the Lopus PDKS theme) */
.prose:has(.elementor) { max-width: none; font-size: var(--t-body); line-height: 1.6; }
.prose:has(.elementor) :where(h2) { margin-top: var(--s-6); }
/* Elementor "full width" templates render under the fixed header */
body.page-template-elementor_header_footer .elementor[data-elementor-type="wp-page"] { padding-top: calc(var(--nav) + 40px); padding-bottom: 64px; }
/* when the Elementor plugin is off, its saved markup still reads as a simple column layout */
body:not([class*="elementor-kit"]) .prose .elementor-container { display: flex; flex-wrap: wrap; gap: var(--s-6); }
body:not([class*="elementor-kit"]) .prose .elementor-column { flex: 1 1 280px; min-width: 0; }
body:not([class*="elementor-kit"]) .prose .elementor-section { margin-bottom: var(--s-7); }
body:not([class*="elementor-kit"]) .prose .elementor-widget-container > :where(img) { width: auto; max-height: 520px; object-fit: contain; }
body:not([class*="elementor-kit"]) .prose .elementor-icon-list-items { list-style: none; padding: 0; }
body:not([class*="elementor-kit"]) .prose :where(.elementor-screen-only, .screen-reader-text) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body:not([class*="elementor-kit"]) .prose :where(svg) { max-width: 48px; max-height: 48px; }

/* post: cover, closing call, related posts */
.article { max-width: 72ch; }
.article-cover { margin: 0 0 var(--s-7); max-width: 960px; }
.article-cover img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); }
.article-cta { margin-top: var(--s-9); padding: var(--s-7); border-radius: var(--r-lg); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); }
.article-cta > div { display: grid; gap: var(--s-3); max-width: 60ch; }
.article-cta h2 { font-size: var(--t-h3); line-height: 1.2; }
@media (max-width: 639px) { .article-cta { padding: var(--s-5); } .article-cta .btn { width: 100%; justify-content: center; } }
.related { margin-top: var(--s-9); }
.related > h2 { font-size: var(--t-h3); margin-bottom: var(--s-6); }

/* post list (blog, category, author, search) */
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--gutter); }
@media (max-width: 1023px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .post-list { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }
.post-card { display: grid; align-content: start; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.post-card__img { display: block; margin-bottom: var(--s-2); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.post-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__meta { font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.post-card h2, .post-card h3 { font: 500 var(--t-card)/1.35 var(--font-text); letter-spacing: -0.01em; }
.post-card h2 .row-link::before, .post-card h3 .row-link::before { display: none; }
.post-card p { color: var(--ink); opacity: .86; }
.post-card .row-link { color: var(--ink); }
.post-list--first .post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); padding-bottom: var(--s-4); }
.post-list--first .post-card:first-child > * { grid-column: 2; }
.post-list--first .post-card:first-child > .post-card__img { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
.post-list--first .post-card:first-child:not(:has(.post-card__img)) > * { grid-column: 1 / -1; max-width: 72ch; }
.post-list--first .post-card:first-child h2 { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
@media (max-width: 1023px) { .post-list--first .post-card:first-child { display: grid; grid-template-columns: minmax(0, 1fr); } .post-list--first .post-card:first-child > * { grid-column: 1; } .post-list--first .post-card:first-child > .post-card__img { grid-row: auto; } }

.pager { margin-top: var(--s-8); }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-btn); color: var(--ink); font-variant-numeric: tabular-nums; }
.pager a.page-numbers:hover, .pager a.page-numbers:focus-visible { border-color: var(--ink); }
.pager .current { background: var(--action); border-color: var(--action); color: var(--action-ink, #fff); }
.pager .dots { border: 0; }

/* search form */
.se-search { display: grid; gap: var(--s-2); max-width: 560px; }
.se-search__row { display: flex; gap: var(--s-2); }
.se-search input[type="search"] { flex: 1 1 auto; min-width: 0; height: var(--btn-h); padding: 0 var(--s-4); border: 1px solid var(--line-strong, var(--line)); border-radius: var(--r-btn); background: #fff; color: var(--ink); font: inherit; }
.se-search input[type="search"]:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

/* 404 and empty states */
.empty { display: grid; gap: var(--s-5); max-width: 62ch; }
.empty .rows { margin-top: var(--s-4); }

/* old Hub theme leftovers inside saved content: its own breadcrumb repeats ours */
.prose ol.breadcrumb { display: none; }

/* forms inside content (Contact Form 7 on /iletisim/) in the kit's field style */
.prose :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea) {
  width: 100%; max-width: 560px; min-height: var(--btn-h); padding: var(--s-2) var(--s-4); border: 1px solid var(--line-strong, var(--line));
  border-radius: var(--r-btn); background: #fff; color: var(--ink); font: inherit; }
.prose :where(textarea) { min-height: 140px; resize: vertical; }
.prose :where(input, select, textarea):focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.prose :where(input[type="submit"], button[type="submit"]) { display: inline-flex; align-items: center; height: var(--btn-h); padding: 0 var(--s-5);
  border: 0; border-radius: var(--r-btn); background: var(--action); color: var(--p-action-ink); font: 500 15px/1 var(--font-text); cursor: pointer; }
.prose .wpcf7-form p { margin-bottom: var(--s-4); }
.prose .wpcf7-not-valid-tip { color: #b3261e; font-size: var(--t-small); }
