/* ==================================================================
   v0.18 Rehber (blog) – "sakin vitrin" reading layout. Web ground #FBF9F4, panel #F3F0E8, Bodoni Moda 400 titles,
   Inter 400/500 text, gold only as hairlines. Reading column 680 px, cover up to 1040 px, list grid 3 / 2 / 1 columns.
   Loaded on blog views (inc/blog.php) and by every beydagi/rehber-* block (style handle beydagi-blog).
   ================================================================== */
:root {
	--bdg-okuma: 680px;
	--bdg-okuma-genis: 1040px;
}

/* ---------- frame */
.bdg-rehber-liste, .bdg-rehber-yazi { padding-left: var(--bdg-gutter, 16px); padding-right: var(--bdg-gutter, 16px); }
.bdg-rehber-liste > *, .bdg-rehber-yazi > * { max-width: var(--bdg-container, 1344px); margin-left: auto; margin-right: auto; }

/* ---------- list head */
.bdg-rehber-bas { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 0 28px; border-bottom: 1px solid var(--bdg-cizgi); }
.bdg-rehber-liste .bdg-rehber-bas { margin-bottom: 32px; } /* beats the flow layout's margin-block-end: 0 */
.bdg-rehber-bas .bdg-eyebrow a, .bdg-rehber-ust .bdg-eyebrow a { color: inherit; text-decoration: none; }
.bdg-rehber-bas .bdg-eyebrow a:hover, .bdg-rehber-ust .bdg-eyebrow a:hover { color: var(--bdg-zeytin); }
.bdg-rehber-bas__baslik { margin: 0; font-family: var(--bdg-serif); font-weight: 400; font-size: 38px; line-height: 1.08; letter-spacing: 0; color: var(--bdg-zeytin); }
.bdg-rehber-bas__giris { margin: 0; max-width: 58ch; font-size: 16px; line-height: 1.65; color: var(--bdg-ikincil-metin); }
.bdg-rehber-bas__kat { width: 100%; margin-top: 8px; }
.bdg-rehber-bas__bilgi { margin: 0; font-size: 14px; }
.bdg-rehber-bas__bilgi a { color: var(--bdg-zeytin); text-decoration: none; border-bottom: 1px solid var(--bdg-altin); padding-bottom: 2px; }
.bdg-rehber-bas__bilgi a:hover { color: var(--bdg-ikincil-metin); }
.bdg-rehber-bas__kat ul { display: flex; gap: 8px; margin: 0; padding: 0 0 2px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.bdg-rehber-bas__kat ul::-webkit-scrollbar { display: none; }
.bdg-rehber-bas__kat a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--bdg-cizgi); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--bdg-zeytin); text-decoration: none; white-space: nowrap; background: transparent; }
.bdg-rehber-bas__kat a:hover { border-color: var(--bdg-altin); color: var(--bdg-zeytin); }
.bdg-rehber-bas__kat a[aria-current="page"] { background: var(--bdg-zeytin); border-color: var(--bdg-zeytin); color: var(--bdg-kirec); }
@media (min-width: 900px) {
	.bdg-rehber-bas { padding: 32px 0 36px; gap: 16px; }
	.bdg-rehber-liste .bdg-rehber-bas { margin-bottom: 48px; }
	.bdg-rehber-bas__baslik { font-size: 56px; }
	.bdg-rehber-bas__giris { font-size: 17px; }
	.bdg-rehber-bas__kat ul { flex-wrap: wrap; overflow: visible; }
}

/* ---------- card grid */
.bdg-rehber-grid { display: grid; grid-template-columns: 1fr; gap: 40px 24px; margin: 0; padding: 0; list-style: none; }
.bdg-rehber-grid > li { margin: 0; min-width: 0; }
@media (min-width: 640px) { .bdg-rehber-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bdg-rehber-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; } }

.bdg-rehber-kart { position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%; color: var(--bdg-zeytin); }
.bdg-rehber-kart__medya { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--bdg-radius-lg, 6px); background: var(--bdg-panel); }
.bdg-rehber-kart__medya img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bdg-rehber-kart__ill { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--bdg-zeytin); }
.bdg-rehber-kart__ill svg { width: 38%; height: auto; opacity: .92; }
.bdg-rehber-kart__govde { display: flex; flex-direction: column; gap: 8px; }
.bdg-rehber-kart__kat { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bdg-adacayi-ink, #55624B); }
.bdg-rehber-kart__baslik { margin: 0; font-family: var(--bdg-serif); font-weight: 400; font-size: 24px; line-height: 1.18; letter-spacing: 0; }
.bdg-rehber-kart__link { color: var(--bdg-zeytin); text-decoration: none; }
.bdg-rehber-kart__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--bdg-radius-lg, 6px); } /* whole card clickable, one tab stop */
.bdg-rehber-kart__link:focus-visible { outline: none; }
.bdg-rehber-kart__link:focus-visible::after { outline: 2px solid var(--bdg-altin); outline-offset: 4px; }
.bdg-rehber-kart:hover .bdg-rehber-kart__link { text-decoration: underline; text-decoration-color: var(--bdg-altin); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bdg-rehber-kart__ozet { margin: 0; font-size: 15px; line-height: 1.6; color: var(--bdg-ikincil-metin); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bdg-rehber-kart__meta { margin: 0; font-size: 13px; color: var(--bdg-ikincil-metin); }
@media (prefers-reduced-motion: no-preference) {
	.bdg-rehber-kart__medya img { transition: transform .6s ease; }
	.bdg-rehber-kart:hover .bdg-rehber-kart__medya img { transform: scale(1.025); }
}

/* first post of the first page: one wide, calm feature row */
@media (min-width: 900px) {
	body:not(.paged) .bdg-rehber-liste .bdg-rehber-grid > li:first-child { grid-column: 1 / -1; }
	body:not(.paged) .bdg-rehber-liste .bdg-rehber-grid > li:first-child .bdg-rehber-kart { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 48px; }
	body:not(.paged) .bdg-rehber-liste .bdg-rehber-grid > li:first-child .bdg-rehber-kart__medya { aspect-ratio: 16 / 10; }
	body:not(.paged) .bdg-rehber-liste .bdg-rehber-grid > li:first-child .bdg-rehber-kart__baslik { font-size: 38px; line-height: 1.1; }
	body:not(.paged) .bdg-rehber-liste .bdg-rehber-grid > li:first-child .bdg-rehber-kart__ozet { font-size: 17px; -webkit-line-clamp: 4; }
}

.bdg-rehber-sorgu .bdg-rehber-sayfalar { margin-top: 56px; }
.bdg-rehber-bos { max-width: 58ch; color: var(--bdg-ikincil-metin); }

/* ---------- post head */
.bdg-rehber-makale { max-width: var(--bdg-okuma-genis) !important; }
.bdg-rehber-makale > * { margin-left: auto; margin-right: auto; }
.bdg-rehber-ust, .bdg-rehber-ic, .bdg-rehber-prose, .bdg-rehber-son { max-width: var(--bdg-okuma); }
.bdg-rehber-ust { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0 28px; }
.bdg-rehber-yol ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--bdg-ikincil-metin); }
.bdg-rehber-yol li + li::before { content: "/"; margin: 0 8px; color: rgba(var(--bdg-zeytin-rgb), .35); }
.bdg-rehber-yol a { color: var(--bdg-ikincil-metin); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.bdg-rehber-yol a:hover { color: var(--bdg-zeytin); text-decoration: underline; text-decoration-color: var(--bdg-altin); text-underline-offset: 3px; }
.bdg-rehber-ust__baslik { margin: 6px 0 0; font-family: var(--bdg-serif); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: 0; color: var(--bdg-zeytin); text-wrap: balance; }
.bdg-rehber-ust__giris { margin: 4px 0 0; font-size: 18px; line-height: 1.6; color: var(--bdg-text-3); }
.bdg-rehber-ust__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 0; font-size: 13px; color: var(--bdg-ikincil-metin); }
@media (min-width: 900px) {
	.bdg-rehber-ust { padding: 24px 0 40px; gap: 16px; }
	.bdg-rehber-ust__baslik { font-size: 50px; }
	.bdg-rehber-ust__giris { font-size: 20px; }
}

/* cover: wider than the text column */
.bdg-rehber-kapak { max-width: var(--bdg-okuma-genis); margin: 0 auto 40px !important; overflow: hidden; }
.bdg-rehber-kapak img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .bdg-rehber-kapak { margin-bottom: 56px !important; } }

/* ---------- table of contents */
/* quieter than the "Kısaca" box that usually follows: no fill, hairlines, two columns for long lists on desktop */
.bdg-rehber-ic { margin: 0 auto 40px; padding: 18px 0 16px; border-top: 1px solid rgba(var(--bdg-altin-rgb), .55); border-bottom: 1px solid var(--bdg-cizgi); }
@media (min-width: 900px) { nav.bdg-rehber-ic ol { display: block; columns: 2; column-gap: 40px; } nav.bdg-rehber-ic li { break-inside: avoid; } }
.bdg-rehber-ic__baslik { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bdg-adacayi-ink, #55624B); }
.bdg-rehber-ic ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.5; }
.bdg-rehber-ic li::marker { color: var(--bdg-altin-ink, #83671E); font-variant-numeric: tabular-nums; }
.bdg-rehber-ic a { display: inline-block; padding: 6px 0; color: var(--bdg-zeytin); text-decoration: none; }
.bdg-rehber-ic a:hover { text-decoration: underline; text-decoration-color: var(--bdg-altin); text-underline-offset: 3px; }

/* ---------- reading text */
.bdg-rehber-prose { margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--bdg-zeytin); }
.bdg-rehber-prose > * { margin-top: 0; margin-bottom: 0; }
.bdg-rehber-prose > * + * { margin-top: 1.3em; }
.bdg-rehber-prose h2 { margin-top: 2.4em; font-family: var(--bdg-serif); font-weight: 400; font-size: 28px; line-height: 1.18; letter-spacing: 0; scroll-margin-top: calc(var(--bdg-header-h, 61px) + 16px); }
.bdg-rehber-prose h3 { margin-top: 2em; font-family: var(--bdg-sans); font-weight: 500; font-size: 19px; line-height: 1.35; scroll-margin-top: calc(var(--bdg-header-h, 61px) + 16px); }
.bdg-rehber-prose h2 + *, .bdg-rehber-prose h3 + * { margin-top: .7em; }
.bdg-rehber-prose ul, .bdg-rehber-prose ol { padding-left: 1.3em; }
.bdg-rehber-prose li + li { margin-top: .4em; }
.bdg-rehber-prose li::marker { color: var(--bdg-altin-ink, #83671E); }
.bdg-rehber-prose a:not(.wp-element-button) { color: var(--bdg-zeytin); text-decoration: underline; text-decoration-color: var(--bdg-altin); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bdg-rehber-prose a:not(.wp-element-button):hover { color: var(--bdg-ikincil-metin); }
/* buttons inside the text (content: core/buttons after .bdg-cta) keep the theme button – never the link colours */
.bdg-rehber-prose .wp-block-buttons { gap: 12px; }
.bdg-rehber-prose .wp-block-button__link, .bdg-rehber-prose .wp-block-button__link:visited { display: inline-flex; align-items: center; min-height: 48px; background: var(--bdg-zeytin); color: var(--bdg-kirec); text-decoration: none; font-family: var(--bdg-sans); font-size: 15px; font-weight: 500; line-height: 1.3; border-radius: var(--bdg-radius, 4px); padding: 12px 24px; }
.bdg-rehber-prose .wp-block-button__link:hover, .bdg-rehber-prose .wp-block-button__link:focus-visible { background: var(--bdg-adacayi); color: var(--bdg-kirec); }
.bdg-rehber-prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--bdg-zeytin); box-shadow: inset 0 0 0 1px var(--bdg-zeytin); }
.bdg-rehber-prose strong { font-weight: 500; }
.bdg-rehber-prose blockquote, .bdg-rehber-prose .wp-block-quote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--bdg-altin); font-family: var(--bdg-serif); font-size: 22px; line-height: 1.45; }
.bdg-rehber-prose blockquote cite { display: block; margin-top: 8px; font-family: var(--bdg-sans); font-size: 13px; font-style: normal; color: var(--bdg-ikincil-metin); }
.bdg-rehber-prose figure { margin-left: 0; margin-right: 0; }
.bdg-rehber-prose img { max-width: 100%; height: auto; border-radius: var(--bdg-radius-lg, 6px); }
.bdg-rehber-prose figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--bdg-ikincil-metin); text-align: left; }
.bdg-rehber-prose .alignwide { max-width: var(--bdg-okuma-genis); width: min(var(--bdg-okuma-genis), calc(100vw - 2 * var(--bdg-gutter, 16px))); margin-left: 50%; transform: translateX(-50%); }
.bdg-rehber-prose hr, .bdg-rehber-prose .wp-block-separator { border: 0; height: 1px; background: var(--bdg-cizgi); margin: 2.4em auto; }
/* tables (ayar / milyem …) */
.bdg-rehber-prose .wp-block-table { overflow-x: auto; }
.bdg-rehber-prose table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.bdg-rehber-prose th, .bdg-rehber-prose td { padding: 12px 14px; border-bottom: 1px solid var(--bdg-cizgi); text-align: left; vertical-align: top; }
.bdg-rehber-prose thead th { font-weight: 500; font-size: 13px; letter-spacing: .04em; color: var(--bdg-ikincil-metin); border-bottom-color: rgba(var(--bdg-altin-rgb), .6); }
/* content classes of the Rehber posts (C):
   .bdg-ozet "Kısaca" box at the top · .bdg-not quiet information note · .bdg-cta closing direction (before core/buttons) */
.bdg-rehber-prose .bdg-ozet { padding: 20px 22px; background: var(--bdg-panel); border-left: 2px solid var(--bdg-altin); border-radius: 0 var(--bdg-radius-lg, 6px) var(--bdg-radius-lg, 6px) 0; font-size: 16px; line-height: 1.7; color: var(--bdg-zeytin); }
.bdg-rehber-prose .bdg-ozet strong:first-child { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bdg-adacayi-ink, #55624B); }
.bdg-rehber-prose .bdg-not { padding: 12px 0 0; border-top: 1px solid var(--bdg-cizgi); font-size: 14px; line-height: 1.6; color: var(--bdg-ikincil-metin); }
.bdg-rehber-prose .bdg-not > * + * { margin-top: .6em; }
.bdg-rehber-prose .bdg-cta { margin-top: 2.4em; padding-top: 24px; border-top: 1px solid rgba(var(--bdg-altin-rgb), .55); font-family: var(--bdg-serif); font-size: 21px; line-height: 1.45; color: var(--bdg-zeytin); }
.bdg-rehber-prose .bdg-cta + .wp-block-buttons { margin-top: 18px; }
@media (min-width: 900px) { .bdg-rehber-prose .bdg-ozet { padding: 24px 28px; font-size: 17px; } .bdg-rehber-prose .bdg-cta { font-size: 24px; } }
/* FAQ: core/details under "Sık sorulan sorular" */
.bdg-rehber-prose details, .bdg-rehber-prose .wp-block-details { margin-top: 0; border-bottom: 1px solid var(--bdg-cizgi); }
.bdg-rehber-prose h2 + details, .bdg-rehber-prose h2 + .wp-block-details { border-top: 1px solid var(--bdg-cizgi); margin-top: 1em; }
.bdg-rehber-prose details + details, .bdg-rehber-prose .wp-block-details + .wp-block-details { margin-top: 0; }
.bdg-rehber-prose summary { position: relative; display: block; min-height: 44px; padding: 16px 40px 16px 0; font-weight: 500; font-size: 17px; line-height: 1.45; cursor: pointer; list-style: none; }
.bdg-rehber-prose summary::-webkit-details-marker { display: none; }
.bdg-rehber-prose summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--bdg-altin-ink, #83671E), var(--bdg-altin-ink, #83671E)) center / 12px 1.5px no-repeat, linear-gradient(var(--bdg-altin-ink, #83671E), var(--bdg-altin-ink, #83671E)) center / 1.5px 12px no-repeat; }
.bdg-rehber-prose details[open] > summary::after { background: linear-gradient(var(--bdg-altin-ink, #83671E), var(--bdg-altin-ink, #83671E)) center / 12px 1.5px no-repeat; }
.bdg-rehber-prose details > :not(summary) { margin: 0 0 18px; color: var(--bdg-text-3); }
.bdg-rehber-prose details > :not(summary) + :not(summary) { margin-top: -6px; }
@media (min-width: 900px) {
	.bdg-rehber-prose { font-size: 18px; }
	.bdg-rehber-prose h2 { font-size: 34px; }
	.bdg-rehber-prose h3 { font-size: 21px; }
}

/* ---------- end of post */
.bdg-rehber-son { margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--bdg-cizgi); display: flex; flex-direction: column; gap: 16px; }
.bdg-rehber-son__not { margin: 0; padding: 14px 16px; background: var(--bdg-panel); border-radius: var(--bdg-radius-lg, 6px); font-size: 14px; line-height: 1.6; color: var(--bdg-ikincil-metin); }
.bdg-rehber-son__soru { margin: 0; font-size: 15px; color: var(--bdg-text-3); }
.bdg-rehber-son__soru a, .bdg-rehber-son__don a { color: var(--bdg-zeytin); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--bdg-altin); padding-bottom: 2px; }
.bdg-rehber-son__soru a:hover, .bdg-rehber-son__don a:hover { color: var(--bdg-ikincil-metin); }
.bdg-rehber-son__don { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 15px; }
.bdg-rehber-son__don a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border-bottom: 0; padding-bottom: 0; }
.bdg-rehber-son__don a span[aria-hidden] { color: var(--bdg-altin-ink, #83671E); }

/* ---------- product shelf */
.bdg-rehber-raf { margin-top: 72px !important; padding: 40px 0 8px; border-top: 1px solid var(--bdg-cizgi); }
.bdg-rehber-raf__ic { display: flex; flex-direction: column; gap: 24px; }
.bdg-rehber-raf__bas { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.bdg-rehber-raf__baslik, .bdg-rehber-ilgili__baslik { margin: 0; font-family: var(--bdg-serif); font-weight: 400; font-size: 26px; line-height: 1.12; letter-spacing: 0; color: var(--bdg-zeytin); }
.bdg-rehber-raf__not { margin: 0; font-size: 13px; color: var(--bdg-ikincil-metin); }
.bdg-rehber-raf__urunler { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin: 0; padding: 0; list-style: none; }
.bdg-rehber-raf__urunler > li { min-width: 0; }
@media (min-width: 900px) { .bdg-rehber-raf__urunler { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } .bdg-rehber-raf { margin-top: 96px !important; padding-top: 56px; } .bdg-rehber-raf__baslik, .bdg-rehber-ilgili__baslik { font-size: 32px; } }
.bdg-rehber-raf__kat { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.bdg-rehber-raf__tum { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--bdg-zeytin); text-decoration: none; }
.bdg-rehber-raf__tum:hover { color: var(--bdg-ikincil-metin); text-decoration: underline; text-decoration-color: var(--bdg-altin); text-underline-offset: 3px; }

/* ---------- related posts */
.bdg-rehber-ilgili { margin-top: 64px !important; padding-top: 40px; border-top: 1px solid var(--bdg-cizgi); }
.bdg-rehber-ilgili__baslik { margin-bottom: 28px; }
.bdg-rehber-ilgili .bdg-rehber-kart__baslik { font-size: 22px; }
@media (min-width: 900px) { .bdg-rehber-ilgili { margin-top: 80px !important; padding-top: 56px; } .bdg-rehber-ilgili__baslik { margin-bottom: 36px; } }
