/* Blog listesi (main.pg-blog) ve yazı sayfası (main.pg-yazi). Her kural sayfanın sınıfıyla başlar, yükleme
   sırası önemsizdir. İçerik: kahramanın penceresi (yazının "Bu yazıda" ana hattı), yazı kartları, kayan konu
   satırı, uzun okuma ölçüsü (62-68 karakter; kit p, ul ve blockquote boşluklarını sıfırlar) ve yan sütun. */

/* ---------------------------------------------------------------- kahraman: ana hat penceresi
   .hero__window'un (lit zemin sage) içinde açık bir pencere; hikâyesi üst 260 px'te, kalanı soluklaşır */
main.pg-blog .bwin, main.pg-yazi .bwin {
  display: grid; gap: var(--s-4); text-align: start; color: var(--ink);
  font: 400 var(--t-body)/1.5 var(--font-text); letter-spacing: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-4) var(--s-6) var(--s-6);
  box-shadow: 0 1px 2px rgb(15 17 19 / .06), 0 24px 48px -28px rgb(15 17 19 / .32);
}
main.pg-blog .bwin__head, main.pg-yazi .bwin__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--line);
}
main.pg-blog .bwin__label, main.pg-yazi .bwin__label { color: var(--ink); font-weight: 500; }
main.pg-blog .bwin__meta, main.pg-yazi .bwin__meta { flex: none; }
main.pg-blog .bwin__title, main.pg-yazi .bwin__title { min-width: 0; font: 500 17px/1.35 var(--font-text); letter-spacing: -0.01em; }
main.pg-blog .bwin__excerpt, main.pg-yazi .bwin__excerpt { max-width: 62ch; }
main.pg-blog .bwin__rows, main.pg-yazi .bwin__rows { display: grid; gap: 2px; margin-top: calc(-1 * var(--s-2)); }
main.pg-blog .bwin__row > a, main.pg-yazi .bwin__row > a {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(64px, 140px) 96px; align-items: center; gap: var(--s-4);
  min-height: 44px; padding: 6px var(--s-3); margin-inline: calc(-1 * var(--s-3)); border-radius: var(--r-sm, 8px);
  transition: background-color var(--dur, .2s) var(--ease, ease);
}
main.pg-blog .bwin__row > a:hover, main.pg-yazi .bwin__row > a:hover,
main.pg-blog .bwin__row > a:focus-visible, main.pg-yazi .bwin__row > a:focus-visible { background: color-mix(in oklab, var(--ink) 6%, var(--bg)); }
main.pg-blog .bwin__name, main.pg-yazi .bwin__name { font-weight: 500; overflow-wrap: anywhere; }
main.pg-blog .bwin__row--sub .bwin__name, main.pg-yazi .bwin__row--sub .bwin__name { padding-inline-start: var(--s-4); font-weight: 400; }
main.pg-blog .bwin__len, main.pg-yazi .bwin__len { height: 6px; border-radius: 999px; overflow: hidden; background: color-mix(in oklab, var(--ink) 8%, var(--bg)); }
main.pg-blog .bwin__len > i, main.pg-yazi .bwin__len > i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); }
main.pg-blog .bwin__words, main.pg-yazi .bwin__words { text-align: end; white-space: nowrap; }
/* the "+n more sections" row (FitRows.tsx shows it when the window cuts rows): one muted line to the first hidden section */
main.pg-blog .bwin__more > a, main.pg-yazi .bwin__more > a { grid-template-columns: 28px minmax(0, 1fr); color: var(--muted); }
main.pg-blog .bwin__more .bwin__name, main.pg-yazi .bwin__more .bwin__name { font-weight: 400; }
/* a row the steps loop has dimmed comes back the moment it holds focus: the keyboard never lands on an invisible link */
main.pg-blog .bwin__row.is-off:focus-within, main.pg-yazi .bwin__row.is-off:focus-within { opacity: 1; transform: none; }
@media (max-width: 1023px) {
  main.pg-blog .bwin__row > a, main.pg-yazi .bwin__row > a { grid-template-columns: 28px minmax(0, 1fr) 96px; }
  main.pg-blog .bwin__len, main.pg-yazi .bwin__len { display: none; }
  main.pg-blog .bwin__more > a, main.pg-yazi .bwin__more > a { grid-template-columns: 28px minmax(0, 1fr); }
}
@media (max-width: 639px) {
  main.pg-blog .bwin, main.pg-yazi .bwin { padding: var(--s-3) var(--s-4) var(--s-4); gap: var(--s-3); }
  main.pg-blog .bwin__meta { display: none; }
  /* the post's own page keeps its date on a phone: the window's head is the first screen's only date */
  main.pg-yazi .bwin__head { flex-wrap: wrap; row-gap: 2px; }
  main.pg-blog .bwin__title, main.pg-yazi .bwin__title { font-size: 16px; }
  main.pg-blog .bwin__row > a, main.pg-yazi .bwin__row > a { grid-template-columns: 24px minmax(0, 1fr) auto; gap: var(--s-3); }
  main.pg-blog .bwin__more > a, main.pg-yazi .bwin__more > a { grid-template-columns: 24px minmax(0, 1fr); }
}

/* on a phone the hero's buttons stack full width: the text link keeps its own width, centred */
@media (max-width: 639px) { main.pg-blog .hero--centred .btn-row > .link, main.pg-yazi .hero--centred .btn-row > .link { align-self: center; } }

/* the centred hero's grey lead reads 5.4:1; body text here keeps 7:1 (the mono labels' ink mix) */
main.pg-blog .hero--centred .hero__lead, main.pg-yazi .hero--centred .hero__lead { color: color-mix(in oklab, var(--ink) 76%, var(--bg)); }

/* the window takes the height the words leave, and FitRows shows as many outline rows as fit above its fade:
   the words sit one step closer (12 between pill, headline and lead, 16 to the buttons, 24 to the window, the
   window's piece 24 under the frame's top), so the outline keeps its four rows at 1440x900 in all three
   languages (the Arabic headline takes two taller lines) and two rows, not one, at 1024x768 and on a phone */
main.pg-blog .hero--centred .hero__c, main.pg-yazi .hero--centred .hero__c { gap: var(--s-3); }
main.pg-blog .hero--centred .btn-row, main.pg-yazi .hero--centred .btn-row { margin-top: var(--s-1); }
main.pg-blog .hero--centred .hero__window, main.pg-yazi .hero--centred .hero__window { margin-top: var(--s-5); }
@media (min-width: 640px) {
  main.pg-blog .hero--centred .hero__window > .ly-piece, main.pg-yazi .hero--centred .hero__window > .ly-piece { top: var(--s-5); }
}

/* a hyphenated word (e-ticaret) in the performance line never breaks at its hyphen (parts.tsx Unbroken) */
main.pg-blog .nobr, main.pg-yazi .nobr { white-space: nowrap; }

/* ---------------------------------------------------------------- liste: yazı kartları ve konu satırı
   the list grows with its content where the kit fixes a section at its screens (1280 and wider): a long
   admin excerpt never runs the cards into the close */
@media (min-width: 1280px) {
  main.pg-blog :is(#yazilar, #arsiv) { height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh); display: flex; flex-direction: column; }
  /* as the kit does from 640 to 1279: the .wrap fills the screens, so the topics row still sits at the foot */
  main.pg-blog :is(#yazilar, #arsiv) > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}
main.pg-blog .post-card { gap: var(--s-3); }
main.pg-blog .post-card > h3 { font-size: var(--t-h3); line-height: 1.2; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
main.pg-blog .post-card > p:not(.mono-label) { max-width: 56ch; }
/* the owner's excerpt in three lines at most: cards in a row keep one height whatever the panel saves */
main.pg-blog .post-card__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
main.pg-blog .post-card__foot {
  margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4);
}
/* the topics row closes the section at its foot (the space under the cards stays inside the section) */
main.pg-blog .topics { margin-top: auto; padding-top: var(--s-8); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
main.pg-blog .topics > [data-moment] { min-width: 0; }
main.pg-blog .topics__label { color: var(--muted); }
main.pg-blog [data-moment="marquee-row"] .mo-mq__track { color: var(--ink); }
/* fewer than six topics: the same words standing in one wrapped row (no moment) */
main.pg-blog .topics__still { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); font-size: 20px; line-height: 1.4; }
/* the archive: one line a post, its title and its date */
main.pg-blog .archive { margin-top: var(--s-7); }
main.pg-blog .archive > li { align-items: baseline; padding-block: var(--s-2); }
main.pg-blog .archive__link { display: inline-block; padding-block: 10px; line-height: 1.4; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color var(--dur, .2s) var(--ease, ease); }
main.pg-blog .archive__link:hover, main.pg-blog .archive__link:focus-visible { text-decoration-color: currentColor; }
/* a long archive in two columns from a tablet's width up (newest first, row by row) */
@media (min-width: 1024px) {
  main.pg-blog .archive--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
}
/* Arapçada kayan satırın rayı soldan sağa kurulur (kopya hep izin peşinden gelsin), her konu kendi yönünde okunur */
main.pg-blog .mo-mq.is-live:dir(rtl) { direction: ltr; }
main.pg-blog .mo-mq.is-live li:dir(rtl) { direction: rtl; }
@media (max-width: 639px) {
  main.pg-blog .topics { padding-top: var(--s-6); }
  main.pg-blog .post-card { gap: var(--s-2); }
  main.pg-blog .post-card > h3 { font-size: 22px; }
  /* telefonda kart tarih, okuma süresi ve başlıktır (kartın tamamı yazıya gider); özet yazının kahramanında */
  main.pg-blog .post-card__excerpt, main.pg-blog .post-card__foot { display: none; }
  main.pg-blog .mo-mq:not(.is-live) .mo-mq__track { column-gap: var(--s-5); }
}

/* ---------------------------------------------------------------- yazı: kahraman başlığı
   başlıklar panelde serbest yazılır: 36 karakteri geçen bir başlık bir adım küçük, 60'ı geçen iki adım */
/* the breadcrumb stands on the container's start line above the centred words (detail pages share it) */
main.pg-yazi .hero--centred .hero-text > .crumbs { margin-bottom: var(--s-4); }
/* on a phone the trail stops at the blog: the post's own title, the current page, is the headline right under it
   (two lines of the same words cost the outline window its rows). The full trail stays in BreadcrumbList JSON-LD */
@media (max-width: 639px) {
  main.pg-yazi .hero--centred .crumbs li:last-child { display: none; }
  main.pg-yazi .hero--centred .crumbs li:nth-last-child(2)::after { content: none; }
}
main.pg-yazi .hero--centred h1.is-long { font-size: var(--ly-h1-quiet); max-width: 22ch; line-height: 1.08; }
main.pg-yazi .hero--centred h1.is-longer { font-size: clamp(30px, 1.43vw + 23.4px, 44px); max-width: 28ch; line-height: 1.1; }
main.pg-yazi .hero--centred .hero__lead { max-width: 60ch; }

/* ---------------------------------------------------------------- yazı: gövde (uzun okuma)
   panelin markdown'ı (marked): başlık, paragraf, liste, kod, alıntı, tablo, görsel. Ölçü 66 karakter. */
main.pg-yazi #yazi { height: auto; min-height: calc(var(--h, 1) * 100svh); }
main.pg-yazi .prose { max-width: 66ch; font-size: 18px; line-height: 1.7; color: var(--ink); }
main.pg-yazi .prose__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); margin-bottom: var(--s-7); background: var(--surface); }
main.pg-yazi .prose__body > * + * { margin-top: 1.05em; }
main.pg-yazi .prose__body :is(h2, h3) { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
main.pg-yazi .prose__body h2 { font-size: clamp(24px, .76vw + 21px, 32px); line-height: 1.2; }
main.pg-yazi .prose__body h3 { font-size: clamp(20px, .38vw + 18.5px, 24px); line-height: 1.3; }
main.pg-yazi .prose__body > h2:not(:first-child) { margin-top: 1.9em; }
main.pg-yazi .prose__body > h3:not(:first-child) { margin-top: 1.6em; }
main.pg-yazi .prose__body > :is(h2, h3) + * { margin-top: .6em; }
main.pg-yazi .prose__body :is(ul, ol) { padding-inline-start: 1.3em; }
main.pg-yazi .prose__body ul { list-style: disc; }
main.pg-yazi .prose__body ol { list-style: decimal; padding-inline-start: 1.6em; }
main.pg-yazi .prose__body li + li, main.pg-yazi .prose__body li > :is(ul, ol) { margin-top: .4em; }
main.pg-yazi .prose__body li::marker { color: var(--muted); }
main.pg-yazi .prose__body li > p + p { margin-top: .6em; }
main.pg-yazi .prose__body :is(strong, b) { font-weight: 500; }
main.pg-yazi .prose__body a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
main.pg-yazi .prose__body a:hover { text-decoration-color: currentColor; }
main.pg-yazi .prose__body code { font-family: var(--font-mono); font-size: .86em; padding: .12em .36em; border-radius: 4px; background: var(--surface); }
main.pg-yazi .prose__body pre {
  direction: ltr; text-align: left; overflow-x: auto; padding: var(--s-4) var(--s-5); border-radius: var(--r-md);
  background: var(--surface); font: 400 14px/1.6 var(--font-mono);
}
main.pg-yazi .prose__body pre code { padding: 0; background: none; font-size: inherit; }
main.pg-yazi .prose__body blockquote { padding-inline-start: var(--s-5); border-inline-start: 2px solid var(--accent); font-size: 20px; line-height: 1.55; }
main.pg-yazi .prose__body blockquote > * + * { margin-top: .6em; }
main.pg-yazi .prose__body hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
main.pg-yazi .prose__body img { max-width: 100%; height: auto; border-radius: var(--r-md); }
main.pg-yazi .prose__body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
main.pg-yazi .prose__body :is(th, td) { padding: 10px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
main.pg-yazi .prose__body th { font-weight: 500; }
main.pg-yazi .prose__body :is(h2, h3)[id] { scroll-margin-top: calc(var(--nav, 72px) + var(--s-5)); }
@media (max-width: 639px) {
  main.pg-yazi .prose { font-size: 17px; }
  main.pg-yazi .prose__body blockquote { font-size: 18px; }
}

/* ---------------------------------------------------------------- yazı: yan sütun (bilgi ve diğer yazılar) */
main.pg-yazi .post-aside { display: grid; gap: var(--s-7); align-content: start; }
main.pg-yazi .post-facts dl { margin: var(--s-3) 0 0; display: grid; }
main.pg-yazi .post-facts dl > div { display: grid; gap: 2px; padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
main.pg-yazi .post-facts dd { margin: 0; }
main.pg-yazi .post-facts__langs { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
main.pg-yazi .post-facts__langs > * { display: inline-flex; align-items: center; min-height: 44px; }
main.pg-yazi .post-facts__langs a { font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
main.pg-yazi .post-facts__langs a:hover { text-decoration-color: currentColor; }
main.pg-yazi .post-facts__langs [aria-current] { color: var(--muted); }
main.pg-yazi .post-others .rows { margin-top: var(--s-3); }
main.pg-yazi .post-others .rows > li { grid-template-columns: minmax(0, 1fr); padding-block: var(--s-2) var(--s-3); }
main.pg-yazi .post-others .rows > li:first-child { padding-top: 0; }
main.pg-yazi .post-others__link { display: inline-block; padding-block: 10px; line-height: 1.5; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
main.pg-yazi .post-others__link:hover { text-decoration-color: currentColor; }
@media (max-width: 1023px) { main.pg-yazi .post-aside { margin-top: var(--s-7); } }

/* ---------------------------------------------------------------- yazı: komşu yazı (#sonraki)
   the next post's own excerpt as the word-highlight statement, then one link to it */
main.pg-yazi .post-next .t-label { color: var(--muted); }
main.pg-yazi .post-next .post-next__go { margin-top: var(--s-7); }

/* ---------------------------------------------------------------- yazı: performans bloğu (yan sütunun ilk bloğu)
   R3's lead service beside every post (components/kit/blog/perf.tsx): the brand-gradient title is the one link to
   the performance page, one line under it, and the logo's gradient line closing the block. No box: the side column
   stays within one screen at 1440x900 (screensOf in the post page counts it as PERF_BLOCK). The title's text starts
   the column, level with the post's first line (a split's columns are top-aligned) */
main.pg-yazi .post-perf { display: grid; gap: var(--s-2); padding-bottom: var(--s-4); border-bottom: 2px solid transparent; border-image: var(--r3-grad) 1; }
main.pg-yazi .post-perf__h {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: var(--t-h3); line-height: 1.2;
}
/* the kit link (underline in --line-strong, arrow after) in the title's own face; the gradient is on the words'
   own span (a flex item: the clip reaches its text), the arrow takes the gradient's end tone (6.8:1) */
main.pg-yazi .post-perf__h > .link { font: inherit; letter-spacing: inherit; }
main.pg-yazi .post-perf__h > .link::after { color: var(--r3-red-deep); }
main.pg-yazi .post-perf__h > .link:hover, main.pg-yazi .post-perf__h > .link:focus-visible { text-decoration-color: var(--r3-teal-deep); }
