/* RC-07a: kabuk parçaları için prototipte olmayan ek kurallar. styles.css'e dokunulmaz. */

/* Karusel: gizli slayt kesinlikle görünmez (sınıf kuralları [hidden]'ı ezebilir). */
[hidden] {
  display: none !important;
}

/* Son dakika şeridi: JS kopyası yoksa (JS kapalı ya da hareket azaltma) kayma yok. */
.ticker:not([data-ready]) .ticker-in {
  animation: none;
}
/* RTL: the strip overflows to the left, so it must slide right to stay filled and loop. */
html[dir="rtl"] .ticker-in {
  animation-name: tick-rtl;
}
@keyframes tick-rtl {
  to {
    transform: translateX(50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker {
    overflow-x: auto;
  }
}

/* Gövde yazı boyutu: JS data-font-level özniteliğini hedefe koyar; 3 kademe. */
[data-font-level="0"] {
  font-size: 0.94em;
}
[data-font-level="2"] {
  font-size: 1.12em;
}

/* Liste / ızgara: yalnız tek sütunlu liste düzeni burada; kart biçimi sayfa şablonlarında. */
[data-view="list"] .g4,
[data-view="list"] .g3 {
  grid-template-columns: 1fr;
}
[data-view-toggle].on {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Çekmece: arama kutusu üstte, tam genişlik. */
.drawer .drawer-search {
  padding: 14px 18px 0;
}
.drawer .drawer-search .search-btn {
  width: 100%;
}

/* Masthead logosu: mobilde de görünür, menü ve arama düğmeleriyle sığar. */
.mast .brand {
  min-width: 0;
}
@media (max-width: 760px) {
  .mast .mast-l,
  .mast .mast-r {
    flex: 1 1 0;
    min-width: 0;
  }
  .mast .logo {
    font-size: 20px;
  }
}

/* Alt sekme çubuğu: Anasayfa, Son dakika, Ara, Kategoriler. */
.tabbar {
  grid-template-columns: repeat(4, 1fr);
}

/* Alt bilgi: kategori, kurumsal ve bağlantı sütunları (dörtlü düzen). */
.foot-top {
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.foot-top > div:first-child p {
  font-size: 13px;
  color: var(--mut);
  margin-top: 10px;
}

/* Yukarı çık düğmesi ve toast: görünür durumda tıklanabilir kalır. */
.to-top.show {
  pointer-events: auto;
}

/* RC-08: metin kartı kapağı (yazısız haber fotoğrafı değil). Başlık görselin altında
   düz bir kart olarak durur; koyu gradyan ve görsel üstü yazı kullanılmaz. */
.hero--card {
  min-height: 0;
  display: block;
  color: var(--fg);
  background: var(--surface);
  justify-content: flex-start;
}
.hero--card::after {
  display: none;
}
.hero--card > img {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero--card .hero-in {
  max-width: none;
  padding: 22px 24px 26px;
}
/* Fotoğrafsız manşet en üstte başlar; karusel düğmelerinin altına iner. */
.carousel .hero--card:not(:has(> img)) .hero-in {
  padding-top: 64px;
}
.hero--card h1 {
  color: var(--fg);
}
.hero--card p {
  color: var(--fg2);
}
.hero--card .meta {
  color: var(--mut);
}
.hero--card .kicker {
  color: var(--acc-ink);
}

/* RC-10: prototipe görsel eşitliği. Sayfa ve blok stilleri (eskiden satır içi style)
   burada sınıf olarak tutulur; CSP satır içi style özniteliğine izin vermez. */

/* Anasayfa manşet: karusel kontrolleri manşetin üstünde, SONRAKİ önizlemesi manşet altında. */
.carousel {
  position: relative;
}
.carousel > .hero-dots {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 3;
  margin: 0;
  padding: 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
}
.hero--card .hero-next {
  margin: 0 24px 24px;
  max-width: none;
  background: var(--surface2);
  border-color: var(--line);
}
.hero--card .hero-next .lbl {
  color: var(--mut);
}

/* Anasayfa kategori blokları: üst boşluk ve yan sütun hizası. */
.layout.home-cats {
  margin-top: 4px;
}
.home-cats > .home-aside {
  padding-top: 44px;
}

/* Kategori: büyük manşet yanındaki iki kart, sayfa yan sütunu. */
.cat-lead-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Son dakika: akış sütunu, canlı etiketinden sonra başlık boşluğu, akış etiketi. */
.breaking-feed {
  max-width: 884px;
}
.page-head .live-pill + h1 {
  margin-top: 10px;
}
.feed-item .kicker {
  margin-inline-start: 6px;
}

/* Arama: filtre sütunu genişliği, filtre seçicileri tam genişlik, sonuç sayısı. */
.layout.l-left.search-layout {
  --side: 240px;
  margin-top: 26px;
}
.filters .select {
  width: 100%;
}
.search-count {
  margin-top: 14px;
}

/* Arşiv: takvim sütunu, ay başlığı satırı, yıllar kutusu, gün sayısı. */
.layout.l-left.archive-layout {
  --side: 300px;
  margin-top: 26px;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.archive-years {
  margin-top: 16px;
}
.subnav-flush {
  margin: 0;
}
.day-count {
  margin: -8px 0 18px;
}

/* Etiket: sayfa üst boşluğu. */
.layout.tag-layout {
  margin-top: 26px;
}

/* Kurumsal sayfalar: sol menü sütunu. */
.layout.l-left.static-layout {
  --side: 220px;
  margin-top: 26px;
}

/* Site haritası: dört sütun, başlık ve bağlantı biçimi. */
.sitemap-grid {
  margin-top: 28px;
}
.sitemap-grid h2 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.sitemap-grid ul {
  list-style: none;
  display: grid;
  gap: 7px;
}
.sitemap-grid a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 404: başlık boyutu, arama kutusu ortalama, geri dönüş boşluğu. */
.nf h2 {
  font-family: var(--serif);
  font-size: 30px;
}
.nf .search-big {
  max-width: 480px;
  margin: 0 auto;
}
.nf .nf-back {
  margin-top: 22px;
}

/* Haber detayı: sol sütun ve yan sütun hizası, sonraki haber kutusu, yazı boyutu düğmeleri. */
.layout.article-layout {
  margin-top: 6px;
}
.article-aside {
  padding-top: 30px;
}
.art-head .kicker {
  margin-inline-start: 4px;
}
.art-tools .fs-dn {
  font-weight: 700;
  font-size: 12px;
}
.art-tools .fs-up {
  font-weight: 700;
  font-size: 15px;
}
.art .art-next {
  margin: 26px 0 0;
  max-width: none;
  background: var(--surface);
  color: var(--fg);
  border-color: var(--line);
}
.layout.category-layout > aside {
  padding-top: 22px;
}

/* RD-05: piyasalar, hava durumu ve üst bar. Prototipte satır içi olan biçimler sınıfa taşındı. */
.spark {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 6px;
}
.spark.up polyline {
  stroke: var(--green);
}
.spark.down polyline {
  stroke: var(--red);
}
.tbl .n {
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.widget h3 .more-link {
  margin-inline-start: auto;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.wx-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.wx-head h3 {
  margin: 0;
}
.wx-form {
  margin-inline-start: auto;
}
.wx-select {
  appearance: none;
  background: var(--surface2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 9px center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-block: 5px 5px; padding-inline: 10px 26px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
}
.wx-select:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 1px;
}
.wx-widget .wx {
  gap: 16px;
}
.wx-ico {
  display: block;
  font-size: 46px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.wx-label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--mut);
}
.wx-label::first-letter {
  text-transform: uppercase;
}
.wx-widget .wx-days {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  gap: 4px;
}
.wx-days li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  border-radius: 8px;
}
.wx-days li.today {
  background: var(--surface2);
  color: var(--fg);
}
.wx-days li small {
  font-size: 11.5px;
}
.wx-ico-sm {
  font-size: 20px;
  line-height: 1.2;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.wx-credit {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.5;
  color: var(--mut);
}
.wx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.wx-grid .wx-widget {
  margin: 0;
}
.markets-layout {
  margin-top: 26px;
}
.markets-aside {
  padding-top: 30px;
}
.topbar .mkt {
  min-width: 0;
}
/* Market strip: value, unit and change keep their own space; a thin rule splits the items. */
.topbar .mkt{gap:0}
.topbar .mkt>span{display:inline-flex;align-items:baseline;gap:5px;padding-inline:12px}
.topbar .mkt>span+span{border-inline-start:1px solid var(--line)}
.topbar .mkt>span:first-child{padding-inline-start:0}
.topbar .mkt b{margin:0}
.topbar .mkt small{font-size:.85em;opacity:.7}
/* Theme toggle: the icon wrappers are inline spans whose line box pushed the svg 4 px up. */
.ti-sun,.ti-moon{display:grid;place-items:center}
.ti-moon{display:none}
[data-theme=light] .ti-moon{display:grid}

/* RD-07: hesap, bülten, yorum ve kaydet arayüzü. Prototipte olmayan yardımcılar burada.
   Renkler ve yüzeyler styles.css'in belirteçlerinden (--acc, --line, --surface...) alınır. */

/* Sekmeler bağlantı olduğunda da düğme sekmeleri gibi görünür. */
.tabs a {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--mut);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}
.tabs a.on {
  color: var(--fg);
  border-color: var(--acc);
}
.tabs a:hover {
  color: var(--fg);
}

/* Formlar: alanlar yığılır, hatalar alanın hemen üstünde durur. */
.form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.form .field {
  display: grid;
  gap: 6px;
}
.form .field label,
.check {
  font-size: 14px;
  color: var(--fg2);
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}
.check input {
  margin-top: 4px;
  flex: none;
}
.form-error {
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.flash {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin: 14px 0;
}
.form-aside {
  margin: -4px 0 0;
  text-align: end;
}
.form-note {
  margin-top: 16px;
  font-size: 12px;
}
.auth .btn-block + .form-note {
  margin-top: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.inline {
  display: inline;
}
.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Hesabım */
.account-page {
  max-width: 880px;
  margin: 30px auto 60px;
}
.acc-id {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.acc-av {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--on-acc);
  display: grid;
  place-items: center;
  font: 700 26px var(--serif);
  flex: none;
}
.acc-id h1 {
  font-size: 34px;
}
.acc-id .hint {
  margin: 2px 0 0;
}
.account-page .panel {
  margin-top: 18px;
}
.account-page .panel h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 4px;
}
.account-page .panel .form {
  margin-top: 12px;
}
.acc-saved {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.acc-card {
  align-items: center;
  gap: 12px;
}
.acc-card form {
  margin: 0;
}
.acc-card .tx h3 {
  font-size: 17px;
}
.acc-card .tx p {
  font-size: 13px;
  color: var(--fg2);
  margin-top: 4px;
}
.danger {
  border-color: var(--red) !important;
}
.acc-logout {
  margin-top: 24px;
}

/* Bülten: kartlar yan yana, seçili kart vurgulanır. */
.nl-form {
  margin-top: 26px;
}
.nl-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}
.nl-fieldset legend {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 12px;
}
.nl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.nl-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  cursor: pointer;
}
.nl-card:has(input:checked) {
  border: 2px solid var(--acc);
}
.nl-card input {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 18px;
  height: 18px;
}
.nl-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  padding-inline-end: 28px;
}
.nl-card p {
  font-size: 14px;
}
.nl-subscribe {
  max-width: 640px;
  display: grid;
  gap: 14px;
}
.nl-subscribe h2 {
  font-family: var(--serif);
  font-size: 22px;
}
.nl-result .panel {
  max-width: 640px;
  margin-top: 18px;
}
.nl-widget {
  display: grid;
  gap: 10px;
}
.nl-widget h3 {
  font-family: var(--serif);
}
.nl-mini {
  display: grid;
  gap: 8px;
}
.nl-mini .check {
  font-size: 12px;
}
@media (max-width: 760px) {
  .nl-grid {
    grid-template-columns: 1fr;
  }
}

/* Yorumlar */
.cmt-count {
  color: var(--mut);
  font-weight: 400;
}
.cmt-form {
  display: grid;
  gap: 12px;
  margin: 14px 0 6px;
}
.cmt-form textarea {
  min-height: 110px;
  resize: vertical;
  font: inherit;
}
.cmt-login {
  margin: 14px 0 6px;
}
.cmt-rules {
  font-size: 12px;
  margin-bottom: 8px;
}
.comment .cmt-body {
  flex: 1;
  min-width: 0;
}
.comment .cmt-body p {
  overflow-wrap: anywhere;
}
.comment .acts form {
  display: inline;
}

/* Kaydet düğmesi (makale paylaşım çubuğu) */
.share .share-form {
  display: inline-flex;
}
.save-chip.on {
  background: var(--acc);
  color: var(--on-acc);
}

/* Üst bar hesap bağlantısı */
.acc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-link svg {
  flex: none;
}
.acc-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 760px) {
  .acc-name {
    display: none;
  }
}

/* RD-06: reel player (video page, article) and the article photo gallery. */
.player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.art-video {
  margin: 22px 0;
}
.art-gallery {
  margin: 28px 0;
}
.art-gallery .gal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.art-gallery .gal-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.art-gallery .gal-head span {
  font-size: 12px;
  color: var(--muted);
}
.gal-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gal-mosaic .ph {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--surface3);
}
.gal-mosaic .ph:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gal-mosaic .ph img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s;
}
.gal-mosaic .ph:hover img {
  transform: scale(1.04);
}
.gal-mosaic .ph-hidden {
  display: none;
}
.gal-mosaic .ph-more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
@media (max-width: 760px) {
  .gal-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
  .gal-mosaic .ph:first-child {
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }
}
.kpi .hint {
  display: block;
  margin: 2px 0 4px;
  font-size: 11.5px;
}

/* Persian (rtl) overrides. Layout mirrors through the logical properties above;
   these rules cover what a logical property cannot express: a sliding drawer
   that enters from the start edge, a gradient with a direction, a floated drop
   cap and select arrows drawn as background images. */
html[dir="rtl"] em {
  font-style: normal;
}
html[dir="rtl"] .drawer {
  transform: translateX(100%);
}
html[dir="rtl"] .drawer.open {
  transform: none;
}
html[dir="rtl"] .hero::after {
  background: linear-gradient(270deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 48%, rgba(0,0,0,.08) 80%), linear-gradient(0deg, rgba(0,0,0,.6), transparent 50%);
}
html[dir="rtl"] .art-body p:first-child::first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  margin: 0;
  color: inherit;
}
html[dir="rtl"] .wx-select {
  background-position: left 9px center;
}
/* Header logo image (locales in shell.HEADER_LOGO_LOCALES). The brand logo is white, so the
   light theme inverts it to stay visible on the light header. */
.brand-img{display:block;height:38px;width:auto;max-width:min(260px,60vw);background:none}
.mast .brand-img{height:56px}
.navbar .brand-img,.drawer-head .brand-img{height:30px}
.foot .brand-img{height:34px}
[data-theme=light] .brand-img{filter:invert(1) hue-rotate(180deg)}
@media (max-width:600px){.mast .brand-img{height:42px}}
/* RTL masthead: the logo leads on the right (reading start); menu, search and theme sit left. */
html[dir="rtl"] .mast .brand{order:-1;flex:0 0 auto}
html[dir="rtl"] .mast-l{order:1;justify-content:flex-end}
html[dir="rtl"] .mast-r{order:2;flex:0 0 auto}

/* Pager arrows mirror in right-to-left pages: the previous arrow points right. */
[dir=rtl] .pager>:first-child,[dir=rtl] .pager>:last-child{transform:scaleX(-1)}

.home-main{display:flex;flex-direction:column;gap:20px;min-width:0}
.home-banner{display:block;border-radius:var(--r);overflow:hidden;border:1px solid var(--line)}
.home-banner img{display:block;width:100%;height:auto}
