/* The download list (public/yazili-listesi.js) on the front page and on
   /yazililar: grade buttons in one row, a white card per ders, a row per paper
   with its "PDF" pill on the right. The pages' own tokens (:root). */
.yl-siniflar { display: flex; gap: 6px; margin: 0 0 14px; }
.yl-sinif { flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 12px; background: #fff; color: var(--navy); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.yl-sinif[aria-pressed="true"] { background: var(--navy); color: #fff; }
.yl-sinif:focus-visible { outline: 3px solid var(--gul-yazi); outline-offset: 2px; }
.yl-not { margin: 0; padding: 2px 0; font-size: 16px; line-height: 1.5; color: var(--soluk); }
.yl-dersler { display: grid; gap: 12px; }
.yl-ders { background: #fff; border-radius: 16px; padding: 14px 16px 4px; min-width: 0; }
.yl-ders h3 { margin: 0 0 2px; font-size: 18px; line-height: 1.3; }
.yl-donem { margin: 0 0 6px; font-size: 14px; color: var(--soluk); }
.yl-donem ~ .yl-donem { margin-top: 8px; }
.yl-satir { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--krem-koyu); font-size: 16px; }
.yl-ad { font-weight: 600; white-space: nowrap; }
.yl-bilgi { min-width: 0; font-size: 14px; color: var(--soluk); }
.yl-pdf { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; background: var(--lavanta-acik); color: var(--navy); font-size: 14px; font-weight: 700; }
.yl-pdf svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.yl-satir:hover .yl-pdf { background: var(--lavanta); }
.yl-sonra { margin: 12px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--gul-acik); color: #5b4a40; font-size: 15px; line-height: 1.5; }
.yl-sonra b { color: var(--navy); }

/* narrow phone (320 px): the row keeps to one line */
@media (max-width: 359px) {
  .yl-ders { padding: 12px 12px 4px; }
  .yl-satir { gap: 8px; font-size: 15px; }
  .yl-bilgi { font-size: 13px; }
  .yl-pdf { padding: 6px 10px; font-size: 13px; }
}

/* laptop: two cards a row, the grade buttons at a button's width */
@media (min-width: 900px) {
  .yl-siniflar { max-width: 560px; }
  .yl-dersler { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .yl-sonra { margin-top: 18px; }
}
