/* =========================================================
   okulişlerim.com — Öğretmen Maaş Hesaplama (maas-hesaplama.html)
   Sitenin tasarım değişkenlerini (style.css) kullanır; açık/koyu tema uyumlu.
   ========================================================= */
.mh-hero {
  padding: 40px 0 92px;
}
.mh-hero h1 {
  margin-bottom: 6px;
}
.mh-hero-sub {
  font-size: 1.05rem;
}
.mh-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
}
.mh-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}
.mh-trust .icon {
  width: 15px;
  height: 15px;
}
.mh-wrap {
  margin-top: -64px;
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
}
.mh-loading {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  color: var(--muted);
}

/* ---------- Yerleşim ---------- */
.mh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  grid-template-areas: "form result";
  gap: 24px;
  align-items: start;
}
.mh-form {
  grid-area: form;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.mh-result {
  grid-area: result;
  position: sticky;
  top: calc(var(--header-h) + 14px);
}
.mh-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 0;
  min-width: 0;
}

/* ---------- Adımlar ---------- */
.mh-step {
  border: 1px solid var(--border);
}
.mh-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 14px;
  padding: 0;
  color: var(--text);
}
.mh-step-title small {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 2px 10px;
}
.mh-step-no {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.9rem;
  flex: none;
}
[data-theme="dark"] .mh-step-no {
  color: #0f1123;
}
.mh-step-hint {
  margin: -6px 0 12px;
}
.mh-field {
  margin-bottom: 18px;
}
.mh-field:last-child {
  margin-bottom: 0;
}
.mh-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--text);
}
.mh-inline {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
}
.mh-indent {
  margin: 4px 0 10px 28px;
  max-width: 320px;
}
.mh-grid-2,
.mh-grid-3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.mh-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.select-sm,
.input-sm {
  padding: 8px 10px;
  font-size: 0.9rem;
}

/* Bölümlü seçim (radyo) */
.mh-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 12px;
}
.mh-seg label {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.mh-seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.mh-seg span {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  transition:
    background var(--t),
    color var(--t),
    box-shadow var(--t),
    transform var(--t);
}
.mh-seg label:hover span {
  color: var(--text);
}
.mh-seg input:checked + span {
  background: var(--surface);
  color: var(--c-primary);
  box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--c-primary-100);
}
.mh-seg input:focus-visible + span {
  outline: 3px solid var(--c-primary);
  outline-offset: 1px;
}
.mh-seg input:active + span {
  transform: scale(0.98);
}

/* Sayaç */
.mh-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mh-stepper .input {
  width: 84px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  -moz-appearance: textfield;
}
.mh-stepper .input::-webkit-outer-spin-button,
.mh-stepper .input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.mh-step-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--c-primary);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--t),
    border-color var(--t),
    transform var(--t);
}
.mh-step-btn:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-50);
}
.mh-step-btn:active {
  transform: scale(0.94);
}
.mh-step-btn:focus-visible,
.mh-tip:focus-visible,
.mh-row-btn:focus-visible,
.mh-mbar:focus-visible,
.mh-tabs [role="tab"]:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
}
.mh-unit {
  color: var(--muted);
  font-weight: 600;
}
.mh-range {
  width: 100%;
  margin-top: 10px;
  accent-color: var(--c-primary);
}
.mh-dk-tahmin,
.mh-dk-elle {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.mh-dk-elle .mh-inline {
  flex: 1 1 140px;
}
.mh-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--c-primary-50);
  color: var(--c-primary);
  font-weight: 700;
  font-size: 1.05rem;
}
.mh-pill::before {
  content: "Tahmin: ";
  font-weight: 500;
  font-size: 0.82rem;
  margin-right: 4px;
}

/* Bilgi balonu */
.mh-tip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--c-primary-100);
  background: var(--c-primary-50);
  color: var(--c-primary);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex: none;
  padding: 0;
}
.mh-tip[aria-expanded="true"] {
  background: var(--c-primary);
  color: #fff;
}
.mh-tip-body {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--c-sky-50);
  border-left: 3px solid var(--c-sky);
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.5;
  animation: mh-in 0.18s ease;
}
@keyframes mh-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* Akordeon (Detaylar) */
.mh-acc {
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 10px;
  background: var(--surface);
  transition: box-shadow var(--t);
}
.mh-acc[open] {
  box-shadow: var(--shadow-sm);
}
.mh-acc > summary,
.mh-mini > summary {
  list-style: none;
  cursor: pointer;
}
.mh-acc > summary::-webkit-details-marker,
.mh-mini > summary::-webkit-details-marker {
  display: none;
}
.mh-acc > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 600;
  border-radius: 14px;
}
.mh-acc > summary:hover {
  background: var(--surface-2);
}
.mh-acc > summary:focus-visible {
  outline: 3px solid var(--c-primary);
}
.mh-acc > summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mh-acc > summary em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.mh-acc > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform var(--t);
  margin-left: 4px;
  flex: none;
}
.mh-acc[open] > summary::after {
  transform: rotate(-135deg);
}
.mh-acc > summary em {
  margin-left: auto;
}
.mh-acc-body {
  padding: 4px 16px 16px;
  display: grid;
  gap: 12px;
}
.mh-mini {
  margin-top: 14px;
}
.mh-mini > summary {
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.88rem;
}
.mh-mini[open] > summary {
  margin-bottom: 10px;
}
.mh-wiz-out {
  margin: 4px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--c-green-50);
  color: var(--text-2);
  font-size: 0.88rem;
}
.mh-wiz-out:empty {
  display: none;
}
.mh-only-aday {
  display: none;
}
body.mh-aday .mh-only-aday {
  display: block;
}
body.mh-aday .mh-only-kadrolu {
  display: none;
}

/* ---------- Sonuç kartı ---------- */
.mh-card-result {
  padding: 22px 22px 18px;
  border: 0;
  background:
    radial-gradient(500px 160px at 100% 0%, rgba(250, 173, 40, 0.16), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-lg);
  outline: 1px solid var(--border);
}
.mh-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.mh-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.mh-month-select {
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}
.mh-month-select:focus-visible {
  outline: 3px solid var(--c-primary);
}
.mh-net {
  display: block;
  margin: 8px 0 2px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-primary);
  font-variant-numeric: tabular-nums;
}
.mh-net-tl {
  font-size: 0.5em;
  color: var(--muted);
  font-weight: 600;
}
.mh-delta {
  min-height: 20px;
  font-size: 0.82rem;
  color: var(--muted);
}
.mh-delta .up {
  color: var(--c-green);
  font-weight: 700;
}
.mh-delta .down {
  color: var(--c-rose);
  font-weight: 700;
}
.mh-delta.flash {
  animation: mh-flash 1.2s ease;
}
@keyframes mh-flash {
  0% {
    opacity: 0;
    transform: translateY(-3px);
  }
  15% {
    opacity: 1;
    transform: none;
  }
}
.mh-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0 10px;
  background: var(--surface-2);
  gap: 2px;
}
.mh-bar .seg {
  flex-basis: 0;
  min-width: 4px;
  transition: flex-grow 0.35s ease;
}
.seg-net {
  background: var(--c-primary);
}
.seg-sgk {
  background: var(--c-sky);
}
.seg-vergi {
  background: var(--c-rose);
}
.seg-diger {
  background: var(--c-accent);
}
.mh-legend {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
}
.mh-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mh-legend li b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.mh-legend li.brut {
  color: var(--muted);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 4px;
  margin-bottom: 2px;
}
.mh-legend .dot,
.mh-strip-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
  display: inline-block;
}
.mh-insights {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-2);
}
.mh-insights li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.mh-insights .icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--c-sky);
}
.mh-insights li.ok .icon {
  color: var(--c-green);
}
.mh-insights li.warn .icon {
  color: var(--c-accent);
}
.mh-notes:empty {
  display: none;
}
.mh-unverified {
  margin: 10px 0 0;
  color: var(--text-2);
  line-height: 1.45;
}
.mh-badge-warn {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 4px;
  border-radius: 999px;
  background: var(--c-accent-50);
  color: #8a5a00;
  border: 1px solid rgba(250, 173, 40, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
[data-theme="dark"] .mh-badge-warn {
  color: var(--c-accent);
}
.mh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.mh-actions .btn {
  flex: 1 1 auto;
}
.mh-saved {
  margin: 10px 0 0;
  text-align: center;
}

/* Mobil yapışkan şerit */
.mh-netbar {
  /* v3.2.2: sticky (akışta yer kaplayan) yerine fixed — görünüp gizlenince sayfa kaymaz, gözlemci sınırda titremez */
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow);
  animation: mh-in 0.2s ease;
}
[data-theme="dark"] .mh-netbar {
  color: #0f1123;
}
.mh-netbar .container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}
.mh-netbar strong {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.mh-netbar-l {
  font-size: 0.82rem;
  opacity: 0.9;
}
.mh-netbar-btn {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}
.mh-netbar-btn .icon {
  width: 14px;
  height: 14px;
}
.mh-netbar[hidden] {
  display: none;
}

/* ---------- Ayrıntılar ---------- */
.mh-more {
  margin-top: 24px;
}
.mh-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 14px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.mh-tabs [role="tab"] {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.mh-tabs [role="tab"][aria-selected="true"] {
  background: var(--surface);
  color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}
.mh-tabs .icon {
  width: 16px;
  height: 16px;
}
.mh-panel h2 {
  font-size: 1.2rem;
  margin: 0 0 4px;
}
.mh-panel h3 {
  font-size: 1rem;
  margin: 20px 0 8px;
}
.mh-bordro-head {
  margin-bottom: 12px;
}
.mh-bordro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.mh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.mh-table caption {
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-bottom: 6px;
}
.mh-table th,
.mh-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-weight: 500;
}
.mh-table .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mh-table tfoot th,
.mh-table tfoot td {
  font-weight: 700;
  border-bottom: 0;
}
.mh-net-row th,
.mh-net-row td {
  color: var(--c-primary);
  font-size: 1.05rem;
  background: var(--c-primary-50);
}
.mh-net-row th {
  border-radius: 10px 0 0 10px;
}
.mh-net-row td {
  border-radius: 0 10px 10px 0;
}
.mh-row-btn {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}
.mh-row-btn .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--muted);
  transition: transform var(--t);
  flex: none;
}
.mh-row-btn[aria-expanded="true"] .icon {
  transform: rotate(90deg);
}
.mh-row-info td {
  background: var(--surface-2);
  font-size: 0.84rem;
  color: var(--text-2);
  border-radius: 10px;
}
.mh-row-info p {
  margin: 0 0 6px;
}
.mh-formula code {
  font-size: 0.82rem;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 6px;
}
.mh-src {
  display: grid;
  gap: 4px;
  line-height: 1.5;
  margin-top: 8px;
}
.mh-src-h {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.mh-src-h .icon {
  width: 13px;
  height: 13px;
}
.mh-kn small {
  display: block;
  font-size: 0.74rem;
  font-weight: 400;
}
.mh-src a .icon,
.mh-links a .icon {
  width: 12px;
  height: 12px;
  margin: 0;
  vertical-align: -1px;
}
.mh-matrah {
  margin-top: 12px;
}

/* 12 aylık şerit */
.mh-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  height: 210px;
  margin: 16px 0 8px;
}
.mh-mbar {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-2);
  font: inherit;
  min-width: 0;
}
.mh-mbar-flag {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--c-rose);
  min-height: 14px;
  white-space: nowrap;
}
.mh-mbar-col {
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  background: var(--c-primary-100);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition:
    height 0.35s ease,
    background var(--t),
    transform var(--t);
  max-height: calc(100% - 52px);
}
.mh-mbar.d20 .mh-mbar-col {
  background: color-mix(in srgb, var(--c-accent) 55%, var(--surface));
}
.mh-mbar.d27 .mh-mbar-col,
.mh-mbar.d35 .mh-mbar-col,
.mh-mbar.d40 .mh-mbar-col {
  background: color-mix(in srgb, var(--c-rose) 45%, var(--surface));
}
.mh-mbar:hover .mh-mbar-col {
  transform: translateY(-2px);
}
.mh-mbar.sel .mh-mbar-col {
  background: var(--c-primary);
  box-shadow: 0 6px 14px rgba(69, 39, 212, 0.3);
}
.mh-mbar-val {
  font-size: 0.66rem;
  font-weight: 700;
  margin-top: 4px;
  color: var(--text);
  white-space: nowrap;
}
.mh-mbar.sel .mh-mbar-val {
  color: #fff;
}
[data-theme="dark"] .mh-mbar.sel .mh-mbar-val {
  color: #0f1123;
}
.mh-mbar-ay {
  font-size: 0.75rem;
  font-weight: 600;
}
.mh-mbar-d {
  font-size: 0.66rem;
  color: var(--muted);
}
.mh-strip-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  margin-bottom: 14px;
}
.mh-strip-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot.d15 {
  background: var(--c-primary-100);
}
.dot.d20 {
  background: color-mix(in srgb, var(--c-accent) 55%, var(--surface));
}
.dot.d27 {
  background: color-mix(in srgb, var(--c-rose) 45%, var(--surface));
}
.mh-table-wrap {
  overflow-x: auto;
}
.mh-year-table tr.sel th,
.mh-year-table tr.sel td {
  background: var(--c-primary-50);
}

/* Kariyer */
.mh-scns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.mh-scn {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
  transition:
    transform var(--t),
    box-shadow var(--t);
}
.mh-scn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.mh-scn.base {
  background: var(--surface-2);
}
.mh-scn-t {
  font-weight: 700;
}
.mh-scn-n {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.mh-scn-d {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}
.mh-scn-d.up {
  color: var(--c-green);
}
.mh-scn-d.down {
  color: var(--c-rose);
}

/* Kaynaklar */
.mh-links {
  columns: 2;
  padding-left: 18px;
  font-size: 0.88rem;
}
.mh-links li {
  margin-bottom: 4px;
  break-inside: avoid;
}
.mh-unv-list {
  padding-left: 18px;
  color: var(--text-2);
}

.mh-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--c-accent-50);
  border: 1px solid rgba(250, 173, 40, 0.4);
  color: var(--text-2);
  font-size: 0.88rem;
}
.mh-disclaimer p {
  margin: 0;
}
.mh-disclaimer .icon {
  color: #b27300;
  flex: none;
  margin-top: 2px;
}

/* ---------- Duyarlı ---------- */
@media (max-width: 980px) {
  .mh-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "result"
      "form";
  }
  .mh-result {
    position: static;
  }
  .mh-bordro {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .mh-hero {
    padding: 18px 0 70px;
  }
  .mh-hero .breadcrumb {
    display: none;
  }
  .mh-hero h1 {
    font-size: 1.55rem;
  }
  .mh-hero-sub {
    font-size: 0.92rem;
  }
  .mh-trust {
    display: none;
  }
  .mh-wrap {
    margin-top: -58px;
  }
  .mh-card {
    padding: 18px 16px;
    border-radius: 18px;
  }
  .mh-seg {
    grid-auto-flow: row;
  }
  .mh-seg:not(.mh-seg-3) {
    grid-auto-flow: column;
  }
  .mh-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .mh-strip {
    gap: 3px;
    height: 180px;
  }
  .mh-mbar-val {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.6rem;
  }
  .mh-mbar-flag {
    font-size: 0.56rem;
  }
  .mh-links {
    columns: 1;
  }
  .mh-year-table .c-brut {
    display: none;
  }
  .mh-actions .btn {
    padding: 9px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mh-mbar-col,
  .mh-bar .seg,
  .mh-delta.flash,
  .mh-tip-body {
    transition: none;
    animation: none;
  }
}

/* ---------- Yazdırma ---------- */
@media print {
  .mh-wrap {
    margin-top: 0;
  }
  .mh-layout {
    display: block;
  }
  .mh-result {
    position: static;
  }
  .mh-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .mh-panel[hidden] {
    display: block !important;
  }
  .mh-panel {
    margin-bottom: 16px;
  }
  .mh-row-info[hidden],
  .mh-netbar {
    display: none !important;
  }
  .mh-net {
    color: #000;
  }
}

/* [hidden] her zaman gizler (grid/flex sınıflarının üzerine) */
.mh-wrap [hidden],
.mh-netbar[hidden] {
  display: none !important;
}
/* fieldset legend kenarlığa oturmasın */
legend.mh-step-title {
  float: left;
  width: 100%;
}
legend.mh-step-title + * {
  clear: both;
}
.mh-seg span {
  pointer-events: none;
}
.mh-seg input {
  z-index: 1;
  margin: 0;
  width: 100%;
  height: 100%;
}

/* v3.1.1 — bordro ayrımı (maaş + ek ders), KBS adları, 4'lü ek ders seçimi */
.mh-seg-4 {
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .mh-seg.mh-seg-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.mh-split {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.88rem;
}
.mh-split > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mh-split b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.mh-kbs {
  display: block;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--muted);
}
.mh-bordro-ek {
  margin-top: 20px;
  max-width: 560px;
}

/* v3.2.2: ek ders ayrı kart + maaşa etkisi notu (önce mobil) */
.mh-ednot:empty {
  display: none;
}
.mh-ednot {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  background: var(--c-primary-50);
  color: var(--text, inherit);
}
.mh-ednot.warn {
  background: #fff6e5;
  border-left: 3px solid #f0a020;
}
.mh-ednot a {
  font-weight: 600;
}
.mh-ednot .mh-tip-body {
  margin-top: 6px;
}
.mh-split.mh-edkart {
  border: 1px solid var(--border, #e5e5f0);
  background: var(--surface-2);
}
.mh-edkart .mh-edkart-h {
  font-weight: 600;
}
.mh-edkart .mh-edkart-top {
  padding-top: 4px;
  border-top: 1px dashed var(--border, #ddd);
  color: var(--muted);
}
[data-theme="dark"] .mh-ednot.warn {
  background: rgba(240, 160, 32, 0.14);
}

/* ---------- v3.2.6: nöbet günü, rehberlik, okul takviminden hafta; ek ders kartında bordro tutarı ---------- */
.mh-edek {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px dashed var(--c-primary-100, #d9d4ff);
  display: grid;
  gap: 10px;
}
.mh-edek-satir {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.mh-edek-ad {
  font-weight: 600;
  min-width: 64px;
}
.mh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mh-chips label {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.mh-chips input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.mh-chips span {
  display: inline-block;
  min-height: 36px;
  line-height: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border, #e2e2ee);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  transition:
    background var(--t),
    color var(--t),
    border-color var(--t);
}
.mh-chips input:checked + span {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.mh-chips input:focus-visible + span {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
}
.mh-edek-check {
  margin: 0;
}
.mh-edek-artı {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--c-primary-100, #ece9ff);
  color: var(--c-primary);
  font-size: 0.8rem;
}
.mh-edek-hafta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.9rem;
}
.mh-edek-hafta svg {
  width: 18px;
  height: 18px;
  color: var(--c-primary);
}
.mh-hafta-inp {
  width: 5.5em;
}
.mh-linkbtn {
  border: 0;
  background: none;
  padding: 2px 4px;
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mh-edkart .mh-edkart-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding-top: 6px;
}
.mh-edkart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--c-primary);
  background: var(--surface);
  color: var(--c-primary);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}
.mh-edkart-btn:hover {
  background: var(--c-primary);
  color: #fff;
}
.mh-edkart-btn svg,
.mh-edkart-ok svg {
  width: 16px;
  height: 16px;
}
.mh-edkart-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #15803d;
  font-weight: 600;
  font-size: 0.86rem;
}

/* v3.2.7: ek ders kartında "Ekim bordrosunda Eylül derslerinin ek dersi ödenir" */
.mh-edkart-ay {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.45rem 0 0;
  color: var(--muted, #6b7280);
}
.mh-edkart-ay i {
  width: 14px;
  height: 14px;
  flex: none;
}
