:root{
  --ya-module-title-size:clamp(1.85rem,2.25vw,2.25rem);
  --ya-module-title-line:1.06;
  --ya-module-title-weight:850;
  --ya-module-title-spacing:-.04em;
  --ya-section-title-size:clamp(1.08rem,1.25vw,1.28rem);
  --ya-page-gutter:clamp(14px,2vw,24px);
  --ya-panel-radius:20px;
  --ya-panel-gap:16px;
}

/*
 * Global ana başlık sözleşmesi.
 * Eser Akışı bilerek bu seçicilerin dışında bırakılmıştır.
 */
.ya-module-title,
:where(
  .ya-feed-header,
  .ya-discover__header,
  .ya-topics-header,
  .ya-communities-header,
  .ya-library-header,
  .ya-marathons-hero,
  .ya-workshops-hero,
  .ya-requests-hero,
  .ya-notifications-app > header,
  .ya-message-list-title,
  .ya-saved-hero,
  .ya-score-hero,
  .ya-books-hero,
  .ya-books-page-head,
  .yac-list__hero,
  .ya-blocked-shell > header,
  .ya-account-head,
  .ya-account-settings__head,
  .ya-studio__header
) > :where(h1,.ya-library-header__title),
:where(
  .ya-feed-header,
  .ya-discover__header,
  .ya-topics-header,
  .ya-communities-header,
  .ya-library-header,
  .ya-marathons-hero,
  .ya-workshops-hero,
  .ya-requests-hero,
  .ya-notifications-app > header,
  .ya-message-list-title,
  .ya-saved-hero,
  .ya-score-hero,
  .ya-books-hero,
  .ya-books-page-head,
  .yac-list__hero,
  .ya-blocked-shell > header,
  .ya-account-head,
  .ya-account-settings__head,
  .ya-studio__header
) :where(h1,.ya-library-header__title){
  margin-block:4px 0!important;
  font-family:inherit!important;
  font-size:var(--ya-module-title-size)!important;
  font-weight:var(--ya-module-title-weight)!important;
  line-height:var(--ya-module-title-line)!important;
  letter-spacing:var(--ya-module-title-spacing)!important;
  text-wrap:balance;
  overflow-wrap:anywhere;
}

/* Giriş gerektiren yalın modül ekranlarında da başlık aynı ölçüdedir. */
:where(.ya-module-login,.ya-saved-login,.ya-profile-state,.ya-books-empty) > h1{
  margin:0 0 10px!important;
  font-size:var(--ya-module-title-size)!important;
  font-weight:var(--ya-module-title-weight)!important;
  line-height:var(--ya-module-title-line)!important;
  letter-spacing:var(--ya-module-title-spacing)!important;
}

/* Gelecekte eklenen modüller bu sınıfı doğrudan kullanır. */
.ya-module-title{
  max-width:24ch;
}

:where(
  .ya-community-featured > header,
  .ya-community-directory > header,
  .ya-community-section-heading,
  .ya-section-heading,
  .ya-workshop-entries > header,
  .ya-discover-section > header,
  .ya-score-events > header,
  .ya-score-history,
  .ya-score-rules,
  .ya-book-chapters > header
) :where(h2,h3){
  font-size:var(--ya-section-title-size)!important;
  line-height:1.16!important;
  letter-spacing:-.025em!important;
}

/* Ortak oran, taşma ve kutu modeli güvenliği. */
:where(
  .ya-feed-app,
  .ya-discover,
  .ya-topics-app,
  .ya-communities-app,
  .ya-library-app,
  .ya-marathons-app,
  .ya-workshops-app,
  .ya-requests-app,
  .ya-notifications-app,
  .ya-messages-app,
  .ya-saved-app,
  .ya-score-page,
  .ya-user-books,
  .yac-app,
  .yac-list,
  .ya-studio
),
:where(
  .ya-feed-app,
  .ya-discover,
  .ya-topics-app,
  .ya-communities-app,
  .ya-library-app,
  .ya-marathons-app,
  .ya-workshops-app,
  .ya-requests-app,
  .ya-notifications-app,
  .ya-messages-app,
  .ya-saved-app,
  .ya-score-page,
  .ya-user-books,
  .yac-app,
  .yac-list,
  .ya-studio
) *{
  box-sizing:border-box;
}

:where(
  .ya-feed-app,
  .ya-discover,
  .ya-topics-app,
  .ya-communities-app,
  .ya-library-app,
  .ya-marathons-app,
  .ya-workshops-app,
  .ya-requests-app,
  .ya-notifications-app,
  .ya-messages-app,
  .ya-saved-app,
  .ya-score-page,
  .ya-user-books,
  .yac-app,
  .yac-list,
  .ya-studio
){
  width:100%;
  min-width:0;
  max-width:100%;
}

:where(
  .ya-feed-header,
  .ya-discover__header,
  .ya-topics-header,
  .ya-communities-header,
  .ya-library-header,
  .ya-marathons-hero,
  .ya-workshops-hero,
  .ya-requests-hero,
  .ya-notifications-app > header,
  .ya-saved-hero,
  .ya-score-hero,
  .ya-books-hero,
  .ya-books-page-head,
  .yac-list__hero,
  .ya-blocked-shell > header
){
  min-width:0!important;
  gap:16px!important;
  padding:clamp(20px,3vw,32px)!important;
  border-radius:var(--ya-panel-radius)!important;
}

:where(
  .ya-feed-header,
  .ya-discover__header,
  .ya-topics-header,
  .ya-communities-header,
  .ya-library-header,
  .ya-marathons-hero,
  .ya-workshops-hero,
  .ya-requests-hero,
  .ya-notifications-app > header,
  .ya-saved-hero,
  .ya-score-hero,
  .ya-books-hero,
  .ya-books-page-head,
  .yac-list__hero,
  .ya-blocked-shell > header
) > *{
  min-width:0;
}

:where(
  .ya-marathon-card,
  .ya-workshop-card,
  .ya-request-card,
  .ya-discover-work,
  .ya-book-card,
  .ya-my-book,
  .yac-card
){
  min-width:0!important;
  overflow:hidden!important;
}

:where(
  .ya-marathon-card,
  .ya-workshop-card,
  .ya-request-card,
  .ya-discover-work,
  .ya-book-card,
  .ya-my-book,
  .yac-card
) :where(p,a,span,strong,h2,h3){
  overflow-wrap:anywhere;
}

/* Modül kendi başlığını üretiyorsa temanın tekrarlı WordPress başlığını gizle. */
body:has(.ya-feed-app,.ya-discover,.ya-topics-app,.ya-communities-app,.ya-library-app,.ya-marathons-app,.ya-workshops-app,.ya-requests-app,.ya-notifications-app,.ya-messages-app,.ya-saved-app,.ya-score-page,.ya-user-books,.yac-list) :where(main,.site-main,.entry-content) > .entry-header,
body:has(.ya-feed-app,.ya-discover,.ya-topics-app,.ya-communities-app,.ya-library-app,.ya-marathons-app,.ya-workshops-app,.ya-requests-app,.ya-notifications-app,.ya-messages-app,.ya-saved-app,.ya-score-page,.ya-user-books,.yac-list) .entry-title:first-child{
  display:none!important;
}

/* Keşfet / Yönetici Seçkisi: genişliğe göre 1–3 kart, hiçbir zaman ezilmiş üç sütun değil. */
.ya-discover-section--pinned{
  container-type:inline-size;
  overflow:hidden!important;
}
.ya-discover-grid--pinned{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))!important;
  align-items:stretch!important;
  gap:14px!important;
  padding:14px!important;
}
.ya-discover-grid--pinned .ya-discover-work{
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  height:100%!important;
  border:1px solid var(--ya-line,#dedcd5)!important;
  border-radius:17px!important;
  overflow:hidden!important;
}
.ya-discover-grid--pinned .ya-discover-work__body{
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  flex-direction:column!important;
  padding:15px!important;
}
.ya-discover-grid--pinned .ya-discover-work__author,
.ya-discover-grid--pinned .ya-discover-work__status,
.ya-discover-grid--pinned .ya-discover-work__title{
  min-width:0!important;
  max-width:100%!important;
}
.ya-discover-grid--pinned .ya-discover-work__status{
  display:-webkit-box!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:4!important;
}
.ya-discover-grid--pinned .ya-discover-work__actions{
  margin-top:auto!important;
  padding-top:13px!important;
}
@container (max-width:610px){
  .ya-discover-grid--pinned{grid-template-columns:minmax(0,1fr)!important;padding:9px!important}
}

/* Canlı rozet ve sayfa yenilemeden gelen köşe bildirimleri. */
.ya-live-badge{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  margin-left:auto;
  padding:0 6px;
  border-radius:999px;
  background:var(--ya-accent,#f2c94c);
  color:#17140b;
  font-size:.65rem;
  font-weight:900;
  line-height:1;
}
.ya-live-badge[hidden]{display:none!important}
.ya-live-toast-region{
  position:fixed;
  z-index:2147483000;
  right:max(16px,env(safe-area-inset-right));
  bottom:max(18px,calc(env(safe-area-inset-bottom) + 18px));
  display:grid;
  gap:10px;
  width:min(92vw,390px);
  pointer-events:none;
}
.ya-live-toast{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:12px 13px;
  border:1px solid var(--ya-line,#d9d6cd);
  border-radius:16px;
  background:color-mix(in srgb,var(--ya-surface,#fff) 96%,transparent);
  color:var(--ya-text,#171717);
  box-shadow:0 16px 50px rgba(20,18,12,.18);
  backdrop-filter:blur(16px);
  pointer-events:auto;
  animation:ya-live-toast-in .22s ease-out both;
}
.ya-live-toast__icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background:var(--ya-accent-soft,#fff2bd);
  font-weight:900;
}
.ya-live-toast__copy{display:grid;gap:2px;min-width:0}
.ya-live-toast__copy strong,
.ya-live-toast__copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ya-live-toast__copy span{color:var(--ya-muted,#6f6d67);font-size:.75rem}
.ya-live-toast a{
  padding:8px 10px;
  border-radius:999px;
  background:var(--ya-accent,#f2c94c);
  color:#17140b;
  font-size:.72rem;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}
@keyframes ya-live-toast-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

.ya-legacy-quote-source{
  margin-top:14px!important;
  color:var(--ya-muted,#716e66)!important;
  font-size:.9em!important;
  font-style:italic;
}

@media(max-width:720px){
  :root{
    --ya-module-title-size:1.72rem;
    --ya-section-title-size:1.1rem;
    --ya-panel-radius:16px;
  }
  :where(
    .ya-feed-header,
    .ya-discover__header,
    .ya-topics-header,
    .ya-communities-header,
    .ya-library-header,
    .ya-marathons-hero,
    .ya-workshops-hero,
    .ya-requests-hero,
    .ya-notifications-app > header,
    .ya-saved-hero,
    .ya-score-hero,
    .ya-books-hero,
    .ya-books-page-head,
    .yac-list__hero,
    .ya-blocked-shell > header
  ){
    padding:18px!important;
    border-radius:16px!important;
  }
  .ya-live-toast-region{
    right:10px;
    bottom:calc(72px + env(safe-area-inset-bottom));
    left:10px;
    width:auto;
  }
  .ya-live-toast{grid-template-columns:34px minmax(0,1fr) auto;padding:10px}
  .ya-live-toast__icon{width:34px;height:34px}
}

@media(max-width:430px){
  :root{--ya-module-title-size:1.58rem}
  .ya-live-toast{grid-template-columns:32px minmax(0,1fr)}
  .ya-live-toast a{grid-column:2;justify-self:start}
}

@media(prefers-reduced-motion:reduce){
  .ya-live-toast{animation:none}
}

/* Stüdyo normal modül başlığıdır; yalnız Eser Akışı ortak başlık sözleşmesinin dışındadır. */
.ya-studio-topbar__title.ya-module-title{
  margin:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/*
 * Kesin ana başlık kilidi.
 * Modül CSS dosyalarında eski !important değerleri bulunsa bile bu sözleşme kazanır.
 * Eser Akışı bu listenin dışında tutulmuştur.
 */
html body .ya-feed-app .ya-feed-header h1,
html body .ya-discover .ya-discover__header h1,
html body .ya-topics-app .ya-topics-header h1,
html body .ya-communities-app .ya-communities-header h1,
html body .ya-library-app .ya-library-header .ya-library-header__title,
html body .ya-marathons-app .ya-marathons-hero h1,
html body .ya-workshops-app .ya-workshops-hero h1,
html body .ya-requests-app .ya-requests-hero h1,
html body .ya-notifications-app > header h1,
html body .ya-messages-app .ya-message-list-title h1,
html body .ya-saved-app .ya-saved-hero h1,
html body .ya-score-page .ya-score-hero h1,
html body .ya-user-books .ya-books-hero h1,
html body .ya-user-books .ya-books-page-head h1,
html body .yac-list .yac-list__hero h1,
html body .ya-blocked-shell > header h1,
html body .ya-account-shell .ya-account-head h1,
html body .ya-account-settings .ya-account-settings__head h1,
html body .ya-studio .ya-studio-topbar__title,
html body .ya-studio .ya-studio__header h1,
html body .ya-module-title.ya-module-title.ya-module-title{
  margin-block:4px 0!important;
  font-family:inherit!important;
  font-size:var(--ya-module-title-size)!important;
  font-weight:var(--ya-module-title-weight)!important;
  line-height:var(--ya-module-title-line)!important;
  letter-spacing:var(--ya-module-title-spacing)!important;
}


/* 1.4.2 — yapısal iç çerçeveleri kaldır, ana içerik çerçevesini tek yüzey olarak bırak. */
html{scrollbar-gutter:stable}

:where(
  .ya-feed-header,
  .ya-discover__header,
  .ya-topics-header,
  .ya-communities-header,
  .ya-library-header,
  .ya-marathons-hero,
  .ya-workshops-hero,
  .ya-requests-hero,
  .ya-notifications-app > header,
  .ya-saved-hero,
  .ya-score-hero,
  .ya-books-hero,
  .ya-books-page-head,
  .yac-list__hero,
  .ya-account-settings__head,
  .ya-studio__header
){
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}

/* İçerik alanı zaten dış kabuk tarafından sınırlandığında ikinci bir panel çizgisi üretme. */
:where(
  .ya-user-books,
  .ya-feed-app,
  .ya-discover,
  .ya-topics-app,
  .ya-communities-app,
  .ya-library-app,
  .ya-marathons-app,
  .ya-workshops-app,
  .ya-requests-app,
  .ya-notifications-app,
  .ya-messages-app,
  .ya-saved-app,
  .ya-score-page,
  .ya-studio
) > :where(.ya-module-shell,.ya-module-panel,.ya-page-panel,.ya-content-panel){
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}

/* Sol/üst ana gezinmede sayfa geçişinde transform/ölçek animasyonu kullanılmaz; reflow titremesi azalır. */
:where(aside,nav,[role="navigation"]) a{
  transform:none!important;
}
:where(aside,nav,[role="navigation"]) :where(a,button){
  transition-property:background-color,color,border-color,opacity!important;
  transition-duration:.12s!important;
}

@media(max-width:720px){
  :where(
    .ya-feed-header,
    .ya-discover__header,
    .ya-topics-header,
    .ya-communities-header,
    .ya-library-header,
    .ya-marathons-hero,
    .ya-workshops-hero,
    .ya-requests-hero,
    .ya-notifications-app > header,
    .ya-saved-hero,
    .ya-score-hero,
    .ya-books-hero,
    .ya-books-page-head,
    .yac-list__hero,
    .ya-account-settings__head,
    .ya-studio__header
  ){
    padding-inline:0!important;
  }
}

/* Kısa kodu saran tema/WordPress iç kabuklarında ikinci çerçeveyi bastır. Ana merkez sütun korunur. */
body:has(.ya-user-books,.ya-feed-app,.ya-discover,.ya-library-app,.ya-notifications-app,.ya-messages-app,.ya-saved-app,.ya-score-page,.ya-studio)
:where(.entry-content,.wp-block-post-content,.site-content,.content-area)
> :where(.wp-block-group,.wp-block-columns,.wp-block-column,article,section,div):has(> .ya-user-books,> .ya-feed-app,> .ya-discover,> .ya-library-app,> .ya-notifications-app,> .ya-messages-app,> .ya-saved-app,> .ya-score-page,> .ya-studio){
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}

/* 1.4.5 — ana başlık kırılma güvenliği ve tek-kabuk sözleşmesi. */
html body :where(
  .ya-feed-header,
  .ya-discover__header,
  .ya-topics-header,
  .ya-communities-header,
  .ya-library-header,
  .ya-marathons-hero,
  .ya-workshops-hero,
  .ya-requests-hero,
  .ya-notifications-app > header,
  .ya-message-list-title,
  .ya-saved-hero,
  .ya-score-hero,
  .ya-books-hero,
  .ya-books-page-head,
  .yac-list__hero,
  .ya-account-head,
  .ya-account-settings__head
) :where(h1,.ya-library-header__title,.ya-module-title){
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}

html body :where(
  .ya-user-books,
  .ya-feed-app,
  .ya-discover,
  .ya-topics-app,
  .ya-communities-app,
  .ya-library-app,
  .ya-marathons-app,
  .ya-workshops-app,
  .ya-requests-app,
  .ya-notifications-app,
  .ya-messages-app,
  .ya-saved-app,
  .ya-score-page
) > :where(.ya-module-shell,.ya-page-shell,.ya-content-shell):only-child{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}

/* Core 1.5.8 — mobil alt gezinme temaya bırakıldı; önceki global override'lar kaldırıldı. */
