/* Yeni sitede eklenen parçalar ve düzen düzeltmeleri (mevcut tasarım diline uygun). */

/* --- Eski sitedeki mobil düzen hataları ---
   site.css'te bazı mobil kurallar ana kuraldan ÖNCE yazıldığı için hiç çalışmıyordu:
   telefonda ana sayfanın alt bölümü ve alt bilgi şeridi ekrandan taşıyordu. */
@media (max-width: 850px) {
  .home-bottom-grid { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .footer-payment-note { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 650px) {
  /* Izgara içindeki kutulara ayrıca yan boşluk verilince küçük telefonlarda taşıyordu */
  .home-bottom-grid > .payment-teaser, .home-bottom-grid > .social-strip { margin-inline: 0; min-width: 0; box-sizing: border-box; }
  ._infoTable_1wmwx_59 { width: 100%; table-layout: fixed; }
  ._infoTable_1wmwx_59 th, ._infoTable_1wmwx_59 td { overflow-wrap: anywhere; }
}
@media (max-width: 650px) {
  /* Yaş grubu kartları: 3 dar sütun yerine yatay, sıkı kartlar */
  .plan-grid { grid-template-columns: 1fr; grid-auto-flow: row; gap: 8px; }
  .plan-card { min-height: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 13px 14px; }
  .plan-card > .plan-icon { grid-row: 1 / span 3; margin: 0; }
  .plan-card .plan-age { grid-column: 2; margin: 0; }
  .plan-card h3 { grid-column: 2; margin: 2px 0 2px; font-size: 17px; }
  .plan-card p { grid-column: 2; font-size: 12px; display: block; -webkit-line-clamp: unset; overflow: visible; }
  .plan-card .plan-card-footer { grid-column: 3; grid-row: 1 / span 3; margin: 0; }
  /* Yıl boyu kaynaklar: tek sütun ve gereksiz yükseklik yerine iki sütun, sıkı */
  .resource-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .resource-row article { padding: 13px; border-radius: 13px; }
  .resource-row h3 { margin: 10px 0 4px; font-size: 14px; }
  .resource-row p { font-size: 11.5px; }
  /* Alt bilgi: grupları iki sütuna yerleştir, aradaki büyük boşlukları kapat */
  .footer-main { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-about, .footer-main > .footer-column:last-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .home-bottom-grid .teaser-methods { grid-template-columns: 1fr; }
  .home-bottom-grid .teaser-methods > div { grid-template-columns: 62px 1fr auto; }
  .home-bottom-grid .teaser-methods b, .home-bottom-grid .teaser-methods .iban-inline-contact { grid-column: 3; grid-row: 1; }
}
@media (max-width: 560px) {
  .site-footer { padding-inline: 18px; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: start; }
  .footer-payment-note { grid-column: auto; justify-content: flex-start; }
  .home-bottom-grid > .social-strip h2 { font-size: 24px; }
}

/* --- Planlar sayfası, telefon: içerikten önceki 6 satırlık şeritleri sıkılaştır --- */
._neutralBadge_1qo0j_5, ._activeBadge_1qo0j_4 { white-space: nowrap; }
@media (max-width: 650px) {
  ._pageHead_1qo0j_2 { align-items: center; }
  ._ageRow_1qo0j_6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  ._ageRow_1qo0j_6 > * { flex-direction: column; justify-content: center; align-items: flex-start; gap: 1px; min-height: 46px; padding: 6px 10px; font-size: 12.5px; }
  ._accessRow_1qo0j_10 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  ._accessRow_1qo0j_10 > * { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 0; padding: 8px 9px; }
  ._accessRow_1qo0j_10 strong { font-size: 10.5px; line-height: 1.2; }
  ._accessRow_1qo0j_10 small { font-size: 8.5px; line-height: 1.25; }
  ._folderGrid_1qo0j_18, ._resourceGrid_1qo0j_144 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  ._folder_1qo0j_18, ._resourceCard_1qo0j_145 { padding: 10px; }
  ._folder_1qo0j_18 h2, ._resourceCard_1qo0j_145 h3 { font-size: 15px; height: auto; margin-top: 7px; }
  ._waitingButton_1qo0j_36, ._openFolder_1qo0j_34 { width: 100%; box-sizing: border-box; min-width: 0; }
  ._resourceHead_1qo0j_140 { flex-direction: row; align-items: flex-end; }
}
@media (max-width: 340px) {
  ._folderGrid_1qo0j_18, ._resourceGrid_1qo0j_144 { grid-template-columns: 1fr; }
}

/* Bulunulan menü öğesi */
.site-header nav a[aria-current="page"] { color: var(--coral-dark); }

/* Planlar: yaş grubu sekmeleri artık bağlantı */
._ageRow_1qo0j_6 > a { transition: border-color .15s, color .15s; }
._ageRow_1qo0j_6 > a:hover { border-color: var(--teal); color: var(--ink); }
html[data-theme=dark] ._ageRow_1qo0j_6 > a { background: #17282c; }
a._waitingButton_1qo0j_36:hover { background: #ebe4d9; }

.mk-hidden-tag { font-size: 10px; font-weight: 800; color: var(--muted); background: #eeeae4; border-radius: 6px; padding: 1px 6px; vertical-align: middle; }

/* Kartlar, formlar, düğmeler (Hesabım + yönetim) */
.mk-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.mk-card h2 { font-size: 17px; letter-spacing: -.02em; margin: 0 0 10px; }
.mk-card h2 + p { margin-top: 0; }
.mk-card > p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.mk-muted { color: var(--muted); }
.mk-hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.mk-form { display: grid; gap: 12px; }
.mk-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 750; color: var(--ink); min-width: 0; }
.mk-form input:not([type=checkbox]), .mk-form select, .mk-form textarea, .mk-toolbar input, .mk-toolbar select, .mk-search input, .mk-inline-form input {
  width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: var(--cream);
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; padding: 8px 11px; box-sizing: border-box;
}
.mk-form textarea { resize: vertical; line-height: 1.5; }
.mk-form input:focus, .mk-form select:focus, .mk-form textarea:focus, .mk-toolbar input:focus, .mk-search input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.mk-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 15px; border: 0; border-radius: 10px;
  background: var(--ink); color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap; }
html[data-theme=dark] .mk-button { color: #10201f; }
.mk-button:hover { filter: brightness(1.08); }
.mk-button-light { background: transparent; color: var(--ink); border: 1px solid var(--line); }
html[data-theme=dark] .mk-button-light { color: var(--ink); }
.mk-button-danger { background: #c0392b; color: #fff; }
.mk-button-small { min-height: 32px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.mk-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.mk-actions form { margin: 0; }
.mk-actions-col { flex-direction: column; align-items: stretch; }
.mk-error { color: #a33a2f; background: #fdeceb; border: 1px solid #f2c7c1; border-radius: 12px; padding: 11px 14px; font-size: 13px; margin: 0 0 14px; }
html[data-theme=dark] .mk-error { color: #ffb4ab; background: #3a2220; border-color: #6b3b36; }
.mk-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; font-size: 13px; margin: 12px 0 0; }
.mk-dl dt { color: var(--muted); }
.mk-dl dd { margin: 0; overflow-wrap: anywhere; }

/* Hesabım */
.mk-account-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
@media (max-width: 760px) { .mk-account-grid { grid-template-columns: 1fr; } }

/* Klasör içi: arama ile liste arasındaki boşluk */
.mk-folder-body { margin-top: 12px; }
.mk-folder-body > ._noFiles_1qo0j_93:first-child { margin-top: 0; }

/* Uzun dosya adlarının taşmasını engelle */
._monthFileList_1qo0j_83 article { min-width: 0; }
._monthHead_1qo0j_67 > div { min-width: 0; }
._monthHead_1qo0j_67 p { overflow-wrap: anywhere; }

/* Ücretsiz çalışmalar, telefon: kart etiketi ve alt bağlantı kesilmesin */
@media (max-width: 650px) {
  ._cardCopy_j09lu_101 small { white-space: normal; overflow: visible; font-size: .62rem; }
  ._downloadLink_j09lu_139 { white-space: normal; overflow: visible; }
}
