

/* Masthead ve kabuk — biyoloji/biy9.1.2 referansından.
   Bu dosya karta özgüdür; ortak kit dosyaları değiştirilmez. */
:root {
  --orange: #7cc1c1;
  --rust: #01548a;
  --cream: #fbf8eb;
  --peach: #e2f2f2;
  --accent: #01548a;
  --tint: #eff8f8;
  --line: #c9dbe4;
}

.masthead .brand {
  position: absolute;
  left: -50px;
  top: -100px;
  width: 310px;
  height: 280px;
  border-radius: 50%;
  background: var(--orange);
}
.masthead .brand img {
  position: absolute;
  width: 116px;
  left: 88px;
  top: 124px;
}
.masthead .hero-mark {
  position: absolute;
  width: 132px;
  height: 132px;
  object-fit: cover;
  left: 178px;
  top: 39px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 7px 18px #3e241f35;
}
.masthead .subject {
  position: absolute;
  right: 28px;
  top: 26px;
  text-align: right;
  line-height: 1.05;
  max-width: 46%;
}
.masthead .subject strong {
  display: block;
  color: #b8491a;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .02em;
}
.masthead .subject span {
  display: block;
  color: #282726;
  font-size: 15px;
  font-weight: 700;
  margin-top: 4px;
}
.masthead .grade {
  position: absolute;
  right: 29px;
  bottom: 12px;
  color: var(--rust);
  font-size: 20px;
  font-weight: 600;
  text-align: right;
}
.masthead .grade .squares {
  display: block;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -3px;
}

.page .course-title {
  padding: 16px 0 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #282726;
}

/* Çalışmayı sıfırla — footer altı ince metin düğmesi. */
.storage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto 26px;
  padding: 0 18px;
}
.storage .text-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #b87e61;
  border-radius: 4px;
  background: #fff9;
  color: var(--rust);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.storage #reset {
  background: transparent;
}
.storage .text-button:hover {
  background: var(--peach);
  border-color: var(--rust);
}

/* Sıfırlama onay diyaloğu. */
#reset-dialog {
  border: none;
  border-radius: 8px;
  padding: 26px 28px;
  max-width: 420px;
  box-shadow: 0 18px 50px rgba(40, 39, 38, .25);
}
#reset-dialog::backdrop {
  background: rgba(40, 39, 38, .45);
}
#reset-dialog h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
#reset-dialog p {
  margin: 0 0 18px;
  color: #4a443f;
}
#reset-dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
#reset-dialog .dialog-actions button {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid #b87e61;
  background: #fff;
  color: var(--rust);
  font-weight: 600;
  cursor: pointer;
}
#reset-dialog .dialog-actions #confirm-reset {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}

@media (max-width: 850px) {
  .masthead .brand { left: -80px; width: 250px; }
  .masthead .brand img { width: 90px; left: 104px; top: 119px; }
  .masthead .hero-mark { width: 86px; height: 86px; left: 108px; top: 57px; }
  .masthead .subject { right: 12px; }
  .masthead .subject strong { font-size: 22px; }
  .masthead .subject span { font-size: 12px; }
  .masthead .grade { font-size: 16px; right: 12px; bottom: 6px; }
  .page .course-title { font-size: 12px; }
}

@media (max-width: 560px) {
  .storage .text-button { flex: 1; min-height: 44px; font-size: 12px; padding: 9px 10px; }
  .masthead { border-right-width: 10px; }
}

/* Hero odak — fotoğraftaki öznenin konumu (masthead_kur.py). */
.masthead .hero-mark { object-position: 18.7% 45.2%; }

/* --- 10. sınıf gövde zemini (yayındaki 10. sınıf kartlarıyla aynı aile) --- */
body { background: #f4f8f9; }

/* --- kart özel: radyo satırları --- */
#main .alan-radio { display: flex; align-items: center; gap: 18px; padding: 11px 8px;
  border-bottom: 1px solid var(--line, #c9dbe4); }
#main .alan-radio .alan-etiket { flex: 1 1 auto; margin: 0; font-weight: 500; }
#main .alan-radio .tf-options { flex: 0 0 auto; display: flex; gap: 10px; }
#main .alan-radio .tf-options label { min-width: 96px; justify-content: center; }
@media (max-width: 640px) {
  #main .alan-radio { flex-direction: column; align-items: flex-start; }
  #main .alan-radio .tf-options label { min-width: 0; }
}
/* --- kart özel: bilgi kartı --- */
#main .bilgi-karti { background: var(--tint, #eff8f8); border-left: 4px solid var(--orange, #7cc1c1);
  border-radius: 8px; padding: 14px 16px; margin: 14px 0; }
#main .bilgi-karti h3 { margin: 0 0 6px; color: var(--rust, #01548a); font-size: 1rem; }
#main .bilgi-karti p { margin: 0; }
