/* PiyasaDetay article-only polish — loaded only on single posts. */
.single-post .pd-side--growth .pd-side-story-panel .pd-side-story-list {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.single-post .pd-side-card__head h3,
.single-post .pd-side-trust-card h3 {
  margin: 0;
  color: var(--text);
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 900;
}
.single-post .pd-side-market-dot.pd-flat,
.single-post .pd-side-market-cell em.pd-flat {
  color: var(--text-muted) !important;
  background-color: color-mix(in srgb, var(--text-muted) 18%, transparent) !important;
}
.single-post .pd-side-story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-post .pd-single-meta-mobile { display:none; }

@media (max-width: 760px) {
  .single-post .pd-single-info-row { margin: 10px 0 14px !important; }
  .single-post .pd-single-meta-card--compact { display:none !important; }
  .single-post .pd-single-meta-mobile {
    display:flex;
    align-items:center;
    gap:7px;
    width:100%;
    padding:9px 11px;
    border:1px solid var(--border);
    border-radius:14px;
    background:var(--surface-soft);
    color:var(--text-muted);
    overflow-x:auto;
    scrollbar-width:none;
    white-space:nowrap;
    font-size:12px;
    line-height:1;
  }
  .single-post .pd-single-meta-mobile::-webkit-scrollbar { display:none; }
  .single-post .pd-single-meta-mobile__author {
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:var(--text);
    font-weight:850;
  }
  .single-post .pd-single-meta-mobile__author img {
    width:24px;
    height:24px;
    border-radius:50%;
  }
  .single-post .pd-single-meta-mobile a { color:inherit; text-decoration:none; }

  /* Mobil makale kartında çift boşluğu azalt, masaüstü genişliğe dokunma. */
  .single-post .pd-article-content,
  .single-post .entry-content,
  .single-post .pd-post-content {
    padding-left:16px !important;
    padding-right:16px !important;
  }
}


/* v1.6.1 — clearer mobile publication metadata + reading chrome auto-hide. */
@media (max-width: 760px) {
  .single-post .pd-single-meta-mobile {
    gap: 6px;
    padding: 9px 12px;
  }
  .single-post .pd-single-meta-mobile__published {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .single-post .pd-single-meta-mobile__label {
    color: var(--accent);
    font-weight: 900;
  }
  .single-post .pd-single-meta-mobile__published time,
  .single-post .pd-single-meta-mobile__reading {
    color: var(--text);
    font-weight: 750;
  }

  /* Only on article reading pages: hide chrome while scrolling down, reveal on scroll up. */
  .single-post .pd-site-header,
  .single-post .pd-bottom-nav {
    transition: transform .22s ease, opacity .22s ease;
    will-change: transform;
  }
  .single-post.pd-reading-chrome-hidden .pd-site-header {
    transform: translateY(calc(-100% - 40px));
  }
  .single-post.pd-reading-chrome-hidden .pd-bottom-nav {
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .single-post .pd-site-header,
  .single-post .pd-bottom-nav {
    transition: none !important;
  }
}


/* v1.7.0 — collapse sticky-header flow space while hidden on mobile articles. */
@media (max-width: 760px) {
  .single-post .pd-site-header {
    margin-bottom: 0;
    transition: transform .22s ease, opacity .22s ease, margin-bottom .22s ease;
  }
  .single-post.pd-reading-chrome-hidden .pd-site-header {
    margin-bottom: -64px;
    opacity: 0;
    pointer-events: none;
  }
  /* Closed sheet must never paint a stray rounded/handle panel. */
  .single-post:not(.pd-mobile-sheet-open) .pd-mobile-sheet,
  html:not(.pd-mobile-sheet-open) body.single-post .pd-mobile-sheet {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .single-post:not(.pd-mobile-sheet-open) .pd-mobile-sheet[hidden],
  html:not(.pd-mobile-sheet-open) body.single-post .pd-mobile-sheet[hidden] {
    display: none !important;
  }
}


/* v1.8.0 — Mobile article chrome: kill legacy empty nav sheet and use a calm two-line meta strip. */
@media (max-width: 760px) {
  /* The site now has a dedicated .pd-mobile-sheet. The legacy .pd-nav mobile drawer is empty
     (desktop menu is hidden on mobile), so never let it paint a blank rounded panel. */
  body.single-post .pd-site-header .pd-nav {
    display: none !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: none !important;
    max-height: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
  body.single-post .pd-site-header .pd-nav::before,
  body.single-post .pd-site-header .pd-nav::after {
    display: none !important;
    content: none !important;
  }

  /* Do not fake-collapse the sticky header with negative margins. Once the legacy drawer is gone,
     transform alone gives the expected reading behavior without pulling content under the header. */
  body.single-post .pd-site-header {
    margin-bottom: 0 !important;
  }
  body.single-post.pd-reading-chrome-hidden .pd-site-header {
    margin-bottom: 0 !important;
    transform: translateY(calc(-100% - 8px)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Two-line metadata strip: author first, publication/read/update details second. */
  body.single-post .pd-single-meta-mobile--two-line {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    padding: 9px 12px !important;
    overflow: hidden !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }
  body.single-post .pd-single-meta-mobile__row {
    min-width: 0;
  }
  body.single-post .pd-single-meta-mobile__row--author {
    display: flex;
    align-items: center;
  }
  body.single-post .pd-single-meta-mobile__author {
    min-width: 0;
    max-width: 100%;
    gap: 8px !important;
  }
  body.single-post .pd-single-meta-mobile__author img {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px;
  }
  body.single-post .pd-single-meta-mobile__author a {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 900;
  }
  body.single-post .pd-single-meta-mobile__row--details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    padding-left: 36px;
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.25;
  }
  body.single-post .pd-single-meta-mobile__published,
  body.single-post .pd-single-meta-mobile__updated {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }
  body.single-post .pd-single-meta-mobile__label {
    color: var(--accent) !important;
    font-weight: 900 !important;
  }
  body.single-post .pd-single-meta-mobile__published time,
  body.single-post .pd-single-meta-mobile__reading {
    color: var(--text) !important;
    font-weight: 750 !important;
  }
  body.single-post .pd-single-meta-mobile__updated-label,
  body.single-post .pd-single-meta-mobile__updated time {
    color: var(--text-muted);
    font-weight: 700;
  }
  body.single-post .pd-single-meta-mobile__separator {
    color: color-mix(in srgb, var(--text-muted) 72%, transparent);
  }
}


/* v1.6.1 — Mobile article meta: restore compact card grid instead of text strip. */
@media (max-width: 760px) {
  body.single-post .pd-single-meta-mobile,
  body.single-post .pd-single-meta-mobile--two-line {
    display: none !important;
  }

  body.single-post .pd-single-meta-card--compact {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.single-post .pd-single-meta-card--compact .pd-single-meta-item {
    min-width: 0;
    min-height: 58px;
    margin: 0 !important;
    padding: 8px 10px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border) !important;
    border-radius: 13px !important;
    background: var(--surface-soft) !important;
    overflow: hidden;
  }

  body.single-post .pd-single-meta-card--compact .pd-single-meta-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    font-size: 13px;
  }

  body.single-post .pd-single-meta-card--compact .pd-single-meta-avatar {
    background: transparent !important;
    overflow: hidden;
    border-radius: 50%;
  }
  body.single-post .pd-single-meta-card--compact .pd-single-meta-avatar img {
    width: 27px !important;
    height: 27px !important;
    border-radius: 50%;
    object-fit: cover;
  }

  body.single-post .pd-single-meta-card--compact .pd-single-meta-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    line-height: 1.16;
  }

  body.single-post .pd-single-meta-card--compact .pd-single-meta-label {
    margin: 0 !important;
    color: var(--accent) !important;
    font-size: 8.5px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body.single-post .pd-single-meta-card--compact .pd-single-meta-text strong,
  body.single-post .pd-single-meta-card--compact .pd-single-meta-text time,
  body.single-post .pd-single-meta-card--compact .pd-meta-author-link {
    display: block;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    color: var(--text) !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* With only three items, let reading-time balance the second row. */
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-item:nth-child(3) {
    grid-column: 1 / -1;
  }

  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-item:nth-child(3) .pd-single-meta-text {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-item:nth-child(3) .pd-single-meta-label::after {
    content: ":";
  }

  body.single-post .pd-single-info-row {
    margin: 10px 0 14px !important;
  }
}


/* v1.6.2 — Mobile article meta: compact 2x2 cards + tighter spot/meta spacing. */
@media (max-width: 760px) {
  /* The theme adds 18px below the hero and this layer added another top margin.
     Collapse that double gap so metadata sits naturally under the spot. */
  body.single-post .pd-single-hero {
    margin-bottom: 5px !important;
  }
  body.single-post .pd-single-info-row {
    margin: 0 0 11px !important;
  }

  body.single-post .pd-single-meta-card--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.single-post .pd-single-meta-card--compact .pd-single-meta-item {
    min-height: 44px !important;
    padding: 6px 8px !important;
    gap: 7px !important;
    border-radius: 11px !important;
  }

  body.single-post .pd-single-meta-card--compact .pd-single-meta-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    flex: 0 0 24px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
  }

  body.single-post .pd-single-meta-card--compact .pd-single-meta-avatar {
    border-radius: 50% !important;
  }
  body.single-post .pd-single-meta-card--compact .pd-single-meta-avatar img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 50% !important;
  }

  body.single-post .pd-single-meta-card--compact .pd-single-meta-text {
    gap: 1px !important;
    line-height: 1.08 !important;
  }

  body.single-post .pd-single-meta-card--compact .pd-single-meta-label {
    margin: 0 !important;
    font-size: 7.8px !important;
    line-height: 1 !important;
    letter-spacing: .055em !important;
  }

  body.single-post .pd-single-meta-card--compact .pd-single-meta-text strong,
  body.single-post .pd-single-meta-card--compact .pd-single-meta-text time,
  body.single-post .pd-single-meta-card--compact .pd-meta-author-link {
    font-size: 10.4px !important;
    line-height: 1.12 !important;
  }

  /* Keep the compact two-column layout even below the theme's 480px breakpoint. */
  body.single-post .pd-single-content-layout .pd-single-meta-card--compact.pd-meta-count-3,
  body.single-post .pd-single-content-layout .pd-single-meta-card--compact.pd-meta-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 360px) {
  body.single-post .pd-single-meta-card--compact {
    gap: 5px !important;
  }
  body.single-post .pd-single-meta-card--compact .pd-single-meta-item {
    padding: 6px 6px !important;
    gap: 5px !important;
  }
  body.single-post .pd-single-meta-card--compact .pd-single-meta-text strong,
  body.single-post .pd-single-meta-card--compact .pd-single-meta-text time,
  body.single-post .pd-single-meta-card--compact .pd-meta-author-link {
    font-size: 9.8px !important;
  }
}


/* v1.6.3 — Keep compact cards, restore reading chrome behavior, tighten vertical rhythm. */
@media (max-width: 760px) {
  /* Breadcrumb/title: reduce the empty band without crowding the heading. */
  body.single-post .pd-breadcrumb {
    margin-top: 10px !important;
    padding-bottom: 2px !important;
  }
  body.single-post .pd-single-hero {
    margin-top: 7px !important;
    margin-bottom: 2px !important;
  }
  body.single-post .pd-single-hero .pd-post-top {
    margin-bottom: 8px !important;
  }
  body.single-post .pd-single-hero .pd-post-spot {
    margin-bottom: 8px !important;
  }
  body.single-post .pd-single-info-row {
    margin: 0 0 9px !important;
  }

  /* Preserve the premium 2x2 card language, but shave a little more height. */
  body.single-post .pd-single-meta-card--compact {
    gap: 5px !important;
  }
  body.single-post .pd-single-meta-card--compact .pd-single-meta-item {
    min-height: 41px !important;
    padding: 5px 7px !important;
    gap: 6px !important;
    border-radius: 10px !important;
  }
  body.single-post .pd-single-meta-card--compact .pd-single-meta-icon {
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    flex-basis: 23px !important;
    border-radius: 7px !important;
    font-size: 10.5px !important;
  }
  body.single-post .pd-single-meta-card--compact .pd-single-meta-avatar img {
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
  }
  body.single-post .pd-single-meta-card--compact .pd-single-meta-label {
    font-size: 7.5px !important;
    letter-spacing: .05em !important;
  }
  body.single-post .pd-single-meta-card--compact .pd-single-meta-text strong,
  body.single-post .pd-single-meta-card--compact .pd-single-meta-text time,
  body.single-post .pd-single-meta-card--compact .pd-meta-author-link {
    font-size: 10.2px !important;
    line-height: 1.08 !important;
  }

  /* Scroll down: hide the real header and bottom navigation. Scroll up: reveal them.
     No negative margins, so the old blank-panel issue cannot return. */
  body.single-post .pd-site-header,
  body.single-post .pd-bottom-nav {
    transition: transform .22s ease, opacity .22s ease !important;
    will-change: transform;
  }
  body.single-post.pd-reading-chrome-hidden .pd-site-header {
    transform: translateY(calc(-100% - 8px)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin-bottom: 0 !important;
  }
  body.single-post.pd-reading-chrome-hidden .pd-bottom-nav {
    transform: translateY(calc(100% + 24px)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}


/* v1.6.4 — Final mobile reading cleanup: lean header + adaptive meta grid. */
@media (max-width: 760px) {
  /* Article pages do not need duplicate live-market/news strips above the reading header. */
  body.single-post .pd-market-strip,
  body.single-post .pd-latest-news-strip {
    display: none !important;
  }

  /* Three facts fit naturally in one row; updated articles keep the balanced 2x2 grid. */
  body.single-post .pd-single-content-layout .pd-single-meta-card--compact.pd-meta-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-item:nth-child(3) {
    grid-column: auto !important;
  }
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-item:nth-child(3) .pd-single-meta-text {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
  }
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-item:nth-child(3) .pd-single-meta-label::after {
    content: none !important;
  }
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-item {
    min-width: 0 !important;
    padding-inline: 6px !important;
  }
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-icon {
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    flex-basis: 21px !important;
  }
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-avatar img {
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
  }
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-label {
    font-size: 7px !important;
    letter-spacing: .035em !important;
  }
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-text strong,
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-text time,
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-meta-author-link {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 9.3px !important;
    line-height: 1.08 !important;
  }

  /* With both upper strips removed the real header becomes the visual start of the page. */
  body.single-post .pd-site-header {
    top: 0 !important;
  }
}

@media (max-width: 380px) {
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 {
    gap: 4px !important;
  }
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-item {
    padding: 5px 4px !important;
    gap: 4px !important;
  }
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-icon {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    flex-basis: 19px !important;
  }
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-avatar img {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
  }
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-label {
    font-size: 6.6px !important;
  }
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-text strong,
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-single-meta-text time,
  body.single-post .pd-single-meta-card--compact.pd-meta-count-3 .pd-meta-author-link {
    font-size: 8.7px !important;
  }
}
