/* Yapay Sınıf — Ortak Kes-Katla Akordiyon Motoru (Yatay A4 Büyük Boy) */
@page {
  size: A4 landscape;
  margin: 0;
}

:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --paper-bg: #e2e8f0;
  --fold-line: #475569;
  --sheet-w: 297mm;
  --sheet-h: 210mm;
  --sheet-accent: #0284c7;
  --sheet-pill-bg: #eff6ff;
  --sheet-pill-ink: #1d4ed8;
  --sheet-pill-bd: #bfdbfe;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper-bg);
  min-block-size: 100dvb;
  line-height: 1.25;
}

img, svg {
  display: block;
}

/* ============ EKRAN ARAÇ ÇUBUĞU ============ */
.toolbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
}

.toolbar-inner {
  max-inline-size: 300mm;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  justify-content: space-between;
  gap: 10px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-inline-size: 0;
}

.brand-link {
  color: #93c5fd;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 800;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(147, 197, 253, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.brand-link:hover {
  background: rgba(59, 130, 246, 0.28);
  color: #fff;
}

.toolbar-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
}

.toolbar-chip {
  font-size: 11.5px;
  font-weight: 800;
  color: #cbd5e1;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  gap: 8px;
}

.seg {
  display: inline-flex;
  background: #1e293b;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid #334155;
  gap: 2px;
}

.seg button {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.seg button:hover {
  color: #fff;
}

.seg button[aria-pressed="true"] {
  background: #38bdf8;
  color: #0f172a;
}

.act-btn {
  border: 1px solid #475569;
  background: #1e293b;
  color: #f8fafc;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.act-btn:hover {
  background: #334155;
}

.act-btn[aria-pressed="true"] {
  background: #a855f7;
  border-color: #c084fc;
  color: #fff;
}

.act-btn.primary {
  background: #22c55e;
  border-color: #16a34a;
  color: #052e16;
  padding-inline: 14px;
}

.act-btn.primary:hover {
  background: #4ade80;
}

/* ============ SAYFA SARICI (YATAY A4) ============ */
.stage {
  padding: 18px 14px 32px;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.a4-land {
  inline-size: var(--sheet-w);
  block-size: var(--sheet-h);
  background: #ffffff;
  padding: 7.5mm 8.5mm 6mm;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.18);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  row-gap: 2mm;
  position: relative;
  overflow: clip;
}

/* ============ ÜST BAŞLIK & YÖNERGE ============ */
.sheet-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6mm;
  padding-block-end: 2.2mm;
  border-block-end: 1.5px solid #e2e8f0;
}

.head-text h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 20pt;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.08;
  text-wrap: balance;
  letter-spacing: -0.2px;
}

.head-text h1 .accent {
  color: var(--sheet-accent);
}

.head-sub {
  margin-block-start: 1.1mm;
  font-size: 9pt;
  font-weight: 700;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.pill-grade {
  display: inline-block;
  background: var(--sheet-pill-bg);
  color: var(--sheet-pill-ink);
  border: 1.2px solid var(--sheet-pill-bd);
  padding: 0.4mm 2.8mm;
  border-radius: 99px;
  font-size: 8.3pt;
  font-weight: 800;
}

.guide-box {
  display: flex;
  align-items: center;
  gap: 3mm;
  background: #f8fafc;
  border: 1.4px dashed #cbd5e1;
  border-radius: 4mm;
  padding: 1.6mm 3.6mm 1.6mm 2.4mm;
}

.guide-img {
  inline-size: 12mm;
  block-size: 12mm;
  object-fit: contain;
  flex: none;
}

.guide-steps {
  display: grid;
  gap: 0.4mm;
  font-size: 8.1pt;
  font-weight: 800;
  color: #334155;
  line-height: 1.2;
}

.guide-steps span b {
  color: var(--sheet-accent);
}

/* ============ KATLAMA KILAVUZ SATIRI ============ */
.fold-bar {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 0.7mm;
}

.fold-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 1mm;
  font-size: 7.9pt;
  font-weight: 800;
  color: #64748b;
}

.fold-meta .size-note {
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 99px;
  padding: 0.35mm 2.8mm;
  font-size: 7.7pt;
}

.fold-guides {
  position: relative;
  block-size: 3.8mm;
  inline-size: 100%;
}

.fold-guides span {
  position: absolute;
  inset-block-start: 0.1mm;
  transform: translateX(-50%);
  font-size: 7.3pt;
  font-weight: 800;
  color: #475569;
  white-space: nowrap;
  line-height: 1;
  background: #ffffff;
  padding-inline: 1.5mm;
}

/* ============ AKORDİYON ŞERİDİ ============ */
.strip-stage {
  min-block-size: 0;
  perspective: 1400px;
  display: grid;
}

.accordion-strip {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), 1fr);
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 0;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ PANEL SARICI (ÖZEL KESİM KALIPLARI İÇİN) ============ */
.panel-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  min-block-size: 0;
  margin-inline-start: -0.9pt;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.panel-slot:first-child {
  margin-inline-start: 0;
}

.shape-top,
.shape-bottom {
  position: relative;
  inline-size: 100%;
  line-height: 0;
  z-index: 2;
  flex: none;
}

.shape-top svg,
.shape-bottom svg {
  inline-size: 100%;
  block-size: 100%;
  overflow: visible;
}

.panel-body {
  position: relative;
  flex: 1 1 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #ffffff;
  border: 1.8pt solid #1e293b;
  border-radius: var(--panel-radius, 7mm);
  overflow: clip;
  min-inline-size: 0;
  min-block-size: 0;
}

.panel-body.is-cover {
  grid-template-rows: 1fr;
}

.shape-telefon .panel-body.is-cover {
  grid-template-rows: auto 1fr auto;
}

.shape-telefon .panel-inner.is-cover {
  grid-template-rows: 1fr;
}

.panel-slot:not(:first-child) .panel-body {
  border-inline-start: 1.5pt dashed var(--fold-line);
}

.panel-slot:not(:last-child) .panel-body {
  border-inline-end: 1.5pt dashed var(--fold-line);
}

/* ============ KALIP 1: TELEFON ============ */
.shape-telefon .panel-body {
  border-radius: 9mm;
  background: var(--p-frame, #ffffff);
  padding: 2mm;
}

.shape-telefon .panel-inner {
  background: #ffffff;
  border: 1.3pt solid #334155;
  border-radius: 6mm;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: clip;
  min-block-size: 0;
}

.phone-notch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2mm;
  padding-block: 1mm 1.3mm;
}

.phone-notch .speaker {
  inline-size: 13mm;
  block-size: 1.6mm;
  background: #334155;
  border-radius: 99px;
}

.phone-notch .cam {
  inline-size: 2mm;
  block-size: 2mm;
  background: #334155;
  border-radius: 50%;
}

.phone-home {
  display: flex;
  justify-content: center;
  padding-block: 1.4mm 0.4mm;
}

.phone-home span {
  inline-size: 5.5mm;
  block-size: 5.5mm;
  border-radius: 50%;
  border: 1.4pt solid #334155;
  background: #ffffff;
}

/* ============ KALIP 2: ÇATILI EV ============ */
.shape-ev .shape-top {
  block-size: 15mm;
  margin-block-end: -0.9pt;
}

.shape-ev .panel-body {
  border-block-start: none;
  border-radius: 0 0 4.5mm 4.5mm;
}

/* ============ KALIP 3: SIRT ÇANTASI ============ */
.shape-canta .shape-top {
  block-size: 10mm;
  margin-block-end: -0.9pt;
}

.shape-canta .panel-body {
  border-radius: 8mm 8mm 7mm 7mm;
}

/* ============ KALIP 4: TREN VAGONLARI ============ */
.shape-tren .shape-top {
  block-size: 9.5mm;
  margin-block-end: -0.9pt;
}

.shape-tren .shape-bottom {
  block-size: 9mm;
  margin-block-start: -0.9pt;
}

.shape-tren .panel-body {
  border-radius: 4.5mm 4.5mm 3mm 3mm;
}

/* ============ KALIP 5: ROKET KAPSÜLÜ ============ */
.shape-roket .shape-top {
  block-size: 16mm;
  margin-block-end: -0.9pt;
}

.shape-roket .panel-body {
  border-block-start: none;
  border-radius: 0 0 6mm 6mm;
}

/* ============ KALIP 6: GERİ DÖNÜŞÜM KUTUSU ============ */
.shape-kutu .shape-top {
  block-size: 11mm;
  margin-block-end: -0.9pt;
}

.shape-kutu .panel-body {
  border-block-start: none;
  border-radius: 0 0 5mm 5mm;
}

/* ============ KALIP 7: DEDEKTİF DOSYA SEKMESİ ============ */
.shape-dosya .shape-top {
  block-size: 10mm;
  margin-block-end: -0.9pt;
}

.shape-dosya .panel-body {
  border-radius: 0 4mm 5mm 5mm;
}

/* ============ KALIP 8: SPİRAL DEFTER ============ */
.shape-defter .shape-top {
  block-size: 8.5mm;
  margin-block-end: -2mm;
}

.shape-defter .panel-body {
  border-radius: 4mm 4mm 5.5mm 5.5mm;
}

/* ============ KALIP 9: T.C. KİMLİK KARTI ============ */
.shape-kimlik .panel-body {
  border-radius: 5.5mm;
  border-width: 1.9pt;
}

/* ============ KALIP 10: TRAFİK IŞIĞI ============ */
.shape-trafik .shape-top {
  block-size: 11.5mm;
  margin-block-end: -0.9pt;
}

.shape-trafik .panel-body {
  border-block-start: none;
  border-radius: 0 0 6.5mm 6.5mm;
}

/* ============ KALIP 11: YAPRAK / DOĞA & AĞAÇ ============ */
.shape-yaprak .shape-top,
.shape-agac .shape-top,
.shape-tabak .shape-top,
.shape-damla .shape-top,
.shape-bulut .shape-top {
  block-size: 12mm;
  margin-block-end: -0.9pt;
}

.shape-yaprak .panel-body,
.shape-agac .panel-body,
.shape-tabak .panel-body,
.shape-damla .panel-body,
.shape-bulut .panel-body {
  border-block-start: none;
  border-radius: 0 0 6.5mm 6.5mm;
}

/* ============ KALIP 12: PASAPORT / DÜNYA ============ */
.shape-pasaport .shape-top {
  block-size: 12.5mm;
  margin-block-end: -0.9pt;
}

.shape-pasaport .panel-body {
  border-block-start: none;
  border-radius: 0 0 5.5mm 5.5mm;
}

/* ============ KALIP 13: OKUL BİNASI (SAATLİ ALINLIK) ============ */
.shape-okul .shape-top {
  block-size: 15.5mm;
  margin-block-end: -0.9pt;
}

.shape-okul .panel-body {
  border-block-start: none;
  border-radius: 0 0 4.5mm 4.5mm;
}

/* ============ KALIP 14: MESLEK YAKA KARTI (ROZET) ============ */
.shape-rozet .shape-top {
  block-size: 11mm;
  margin-block-end: -0.9pt;
}

.shape-rozet .panel-body {
  border-radius: 5.5mm;
  border-width: 1.8pt;
}

/* ============ KALIP 15: ÇALAR SAAT (ALARM CLOCK) ============ */
.shape-saat .shape-top {
  block-size: 13mm;
  margin-block-end: -0.9pt;
}

.shape-saat .panel-body {
  border-radius: 7.5mm;
  border-width: 1.8pt;
}

/* ============ KALIP 16: KONUŞMA BALONU ============ */
.shape-konusma .shape-top {
  block-size: 12.5mm;
  margin-block-end: -0.9pt;
}

.shape-konusma .panel-body {
  border-block-start: none;
  border-radius: 0 0 7mm 7mm;
}

/* ============ KALIP 17: PORTRE ÇERÇEVESİ ============ */
.shape-cerceve .shape-top {
  block-size: 12.5mm;
  margin-block-end: -0.9pt;
}

.shape-cerceve .panel-body {
  border-radius: 4mm;
  border-width: 1.9pt;
}

/* ============ KALIP 18: DENEY ŞİŞESİ (LAB FLASK) ============ */
.shape-deney .shape-top {
  block-size: 14mm;
  margin-block-end: -0.9pt;
}

.shape-deney .panel-body {
  border-block-start: none;
  border-radius: 0 0 7mm 7mm;
}

/* ============ KALIP 19: PUSULA (COMPASS) ============ */
.shape-pusula .shape-top {
  block-size: 14mm;
  margin-block-end: -0.9pt;
}

.shape-pusula .panel-body {
  border-block-start: none;
  border-radius: 0 0 6mm 6mm;
}

/* ============ KALIP 20: KURŞUN KALEM (PENCIL) ============ */
.shape-kalem .shape-top {
  block-size: 14.5mm;
  margin-block-end: -0.9pt;
}

.shape-kalem .panel-body {
  border-block-start: none;
  border-radius: 0 0 5.5mm 5.5mm;
}

/* ============ KALIP 21: CETVEL (RULER) ============ */
.shape-cetvel .shape-top {
  block-size: 11mm;
  margin-block-end: -0.9pt;
}

.shape-cetvel .panel-body {
  border-block-start: none;
  border-radius: 0 0 4.5mm 4.5mm;
}

/* ============ KALIP 22: BAYRAK / FLAMA (BANNER) ============ */
.shape-bayrak .shape-top {
  block-size: 12.5mm;
  margin-block-end: -0.9pt;
}

.shape-bayrak .panel-body {
  border-block-start: none;
  border-radius: 0 0 5.5mm 5.5mm;
}

/* ============ KALIP 23: KUMBARA (PIGGY BANK) ============ */
.shape-kumbara .shape-top {
  block-size: 13.5mm;
  margin-block-end: -0.9pt;
}

.shape-kumbara .panel-body {
  border-block-start: none;
  border-radius: 0 0 7mm 7mm;
}

/* ============ KALIP 24: AMPUL / BULUŞ (LIGHTBULB) ============ */
.shape-ampul .shape-top {
  block-size: 14mm;
  margin-block-end: -0.9pt;
}

.shape-ampul .panel-body {
  border-block-start: none;
  border-radius: 0 0 6.5mm 6.5mm;
}

/* ============ KAPAK PANELİ İÇERİĞİ ============ */
.cover-wrap {
  background: var(--p-soft, #eff6ff);
  padding: 3.4mm 3mm 3mm;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto auto;
  justify-items: center;
  align-items: center;
  text-align: center;
  gap: 2mm;
  block-size: 100%;
  min-block-size: 0;
}

.cover-badge {
  background: var(--p-head, #0284c7);
  color: #ffffff;
  font-family: 'Fredoka', sans-serif;
  font-size: 9.6pt;
  font-weight: 600;
  letter-spacing: 0.45px;
  padding: 1mm 3.8mm;
  border-radius: 99px;
  text-transform: uppercase;
}

.cover-big {
  font-family: 'Fredoka', sans-serif;
  font-size: 21pt;
  font-weight: 700;
  color: var(--p-dark, #0369a1);
  line-height: 1.04;
  text-wrap: balance;
}

.cols-4 .cover-big {
  font-size: 24pt;
}

.cover-art {
  inline-size: 44mm;
  block-size: 44mm;
  background: #ffffff;
  border: 1.8pt solid var(--p-border, #7dd3fc);
  border-radius: 6mm;
  display: grid;
  place-items: center;
  padding: 2.2mm;
  box-shadow: 0 3px 0 var(--p-border, #7dd3fc);
}

.cols-4 .cover-art {
  inline-size: 52mm;
  block-size: 48mm;
}

.cover-art img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

.cover-sub {
  font-size: 10pt;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.22;
  text-wrap: balance;
}

.cols-4 .cover-sub {
  font-size: 11pt;
}

.cover-callout {
  inline-size: 100%;
  background: #ffffff;
  border: 1.4pt solid var(--p-border, #7dd3fc);
  border-radius: 3.8mm;
  padding: 2.2mm 2.6mm;
  font-size: 9.5pt;
  font-weight: 800;
  color: var(--p-dark, #0369a1);
  line-height: 1.25;
  text-wrap: balance;
}

.cols-4 .cover-callout {
  font-size: 10.4pt;
}

.cover-name {
  inline-size: 100%;
  font-size: 9.4pt;
  font-weight: 800;
  color: #475569;
  padding-block-start: 1.6mm;
  border-block-start: 1.2px dashed var(--p-border, #94a3b8);
  text-align: start;
  display: flex;
  align-items: flex-end;
  gap: 1.6mm;
}

.cover-name .line {
  flex: 1;
  border-block-end: 1.3px dotted #64748b;
  block-size: 3.4mm;
}

/* ============ İÇ PANEL BAŞLIĞI ============ */
.p-head {
  background: var(--p-head, #0284c7);
  color: #ffffff;
  padding: 2.5mm 2.4mm 2.2mm;
  text-align: center;
  border-block-end: 1.5pt solid #1e293b;
  display: grid;
  justify-items: center;
  gap: 0.7mm;
}

.p-head-tag {
  font-size: 7.4pt;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.24);
  padding: 0.35mm 2.6mm;
  border-radius: 99px;
}

.p-head h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 13.4pt;
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

.cols-4 .p-head h2 {
  font-size: 15pt;
}

/* ============ İÇ PANEL GÖVDESİ ============ */
.p-content {
  padding: 2.4mm 2.4mm;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 2.2mm;
  min-block-size: 0;
  background: #ffffff;
}

.shape-defter .p-content {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 7.2mm,
    #e2e8f0 7.2mm,
    #e2e8f0 7.5mm
  );
}

/* Panel tepe illüstrasyonu (mevsimler, canlılar, odalar, hâller gibi konularda) */
.p-hero {
  display: grid;
  place-items: center;
  background: var(--p-soft, #f8fafc);
  border: 1.4pt solid var(--p-border, #cbd5e1);
  border-radius: 4.2mm;
  padding: 2mm;
  block-size: 40mm;
  flex: none;
  overflow: clip;
}

.cols-4 .p-hero {
  block-size: 42mm;
}

.p-hero img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

/* Madde kartları: kalan tüm yüksekliği eşit ve dolu doldurur */
.item-card {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2.2mm;
  background: var(--p-soft, #f8fafc);
  border: 1.25pt solid var(--p-border, #cbd5e1);
  border-radius: 3.6mm;
  padding: 2mm 2.4mm;
  min-inline-size: 0;
  min-block-size: 0;
}

.item-card.no-icon {
  grid-template-columns: 1fr;
}

.item-ico {
  inline-size: 12.5mm;
  block-size: 12.5mm;
  background: #ffffff;
  border: 1.1pt solid var(--p-border, #cbd5e1);
  border-radius: 3mm;
  display: grid;
  place-items: center;
  padding: 1mm;
  flex: none;
}

.cols-4 .item-ico {
  inline-size: 14.5mm;
  block-size: 14.5mm;
}

.item-ico img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

/* Vektör Ülke Bayrağı kutusu (3:2 oran, boyamalı S/B destekli) */
.item-flag {
  inline-size: 18mm;
  block-size: 12mm;
  border-radius: 1.8mm;
  border: 1.2pt solid #1e293b;
  overflow: clip;
  background: #ffffff;
  flex: none;
  box-shadow: 0 1.5px 0 rgba(15, 23, 42, 0.14);
}

.item-flag svg {
  inline-size: 100%;
  block-size: 100%;
}

.p-content.layout-stacked .item-flag {
  inline-size: 30mm;
  block-size: 20mm;
  border-radius: 2.4mm;
  border-width: 1.4pt;
}

/* Vektör Analog Saat & Yer Edatı Diyagramı kutuları */
.item-svg {
  inline-size: 16mm;
  block-size: 16mm;
  border-radius: 3.4mm;
  border: 1.2pt solid var(--p-border, #cbd5e1);
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 1mm;
  flex: none;
}

.item-svg svg {
  inline-size: 100%;
  block-size: 100%;
}

.p-content.layout-stacked .item-svg {
  inline-size: 24mm;
  block-size: 24mm;
  border-radius: 4.5mm;
  border-width: 1.4pt;
  padding: 1.2mm;
}

.p-content.layout-stacked .item-svg.is-prep {
  inline-size: 30mm;
  block-size: 21mm;
}

.item-badge {
  inline-size: 8.6mm;
  block-size: 8.6mm;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 12.5pt;
  font-weight: 700;
  flex: none;
}

.cols-4 .item-badge {
  inline-size: 9.6mm;
  block-size: 9.6mm;
  font-size: 13.5pt;
}

.item-badge.ok {
  background: #dcfce7;
  color: #15803d;
  border: 1.4pt solid #22c55e;
}

.item-badge.no {
  background: #fee2e2;
  color: #dc2626;
  border: 1.4pt solid #ef4444;
}

.item-badge.num {
  background: var(--p-head, #0284c7);
  color: #ffffff;
  border: 1.2pt solid #1e293b;
  font-size: 9.8pt;
  inline-size: auto;
  min-inline-size: 9.4mm;
  padding-inline: 2mm;
  border-radius: 999px;
  white-space: nowrap;
}

.item-badge.sym {
  background: #ffffff;
  color: var(--p-dark, #0369a1);
  border: 1.6pt solid var(--p-head, #0284c7);
  font-size: 14pt;
}

.item-txt {
  font-size: 10.6pt;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.22;
  min-inline-size: 0;
}

.cols-4 .item-txt {
  font-size: 11.8pt;
  line-height: 1.24;
}

.item-txt strong {
  color: var(--p-dark, #0369a1);
  font-weight: 900;
}

.item-txt .ex {
  display: block;
  margin-block-start: 0.9mm;
  font-size: 9.2pt;
  font-weight: 700;
  color: #475569;
  font-style: italic;
}

.cols-4 .item-txt .ex {
  font-size: 10.2pt;
}

/* 2 maddeli geniş paneller (5N1K, Noktalama vb.): GÖRSEL ÜSTTE KOCAMAN, METİN ALTTA GENİŞ! */
.p-content.layout-stacked .item-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2mm;
  padding: 2.6mm 2.8mm;
}

.p-content.layout-stacked .item-ico {
  inline-size: 19mm;
  block-size: 19mm;
  border-radius: 3.8mm;
  padding: 1.4mm;
}

.p-content.layout-stacked .item-badge {
  inline-size: 11.5mm;
  block-size: 11.5mm;
  font-size: 16pt;
}

.p-content.layout-stacked .item-badge.num {
  inline-size: auto;
  min-inline-size: 13mm;
  block-size: 10.5mm;
  padding-inline: 3.4mm;
  border-radius: 999px;
  font-size: 13pt;
  white-space: nowrap;
}

.p-content.layout-stacked .item-txt {
  font-size: 11.2pt;
  line-height: 1.24;
  text-wrap: balance;
}

.p-content.layout-stacked .item-txt .ex {
  font-size: 9.6pt;
  margin-block-start: 1.2mm;
}

/* 4 maddeli yoğun paneller (5 sütunda) için dengeli nefes payı */
.cols-5 .p-content.items-4 {
  gap: 1.7mm;
}
.cols-5 .p-content.items-4 .item-card {
  padding: 1.5mm 2mm;
}
.cols-5 .p-content.items-4 .item-ico {
  inline-size: 11mm;
  block-size: 11mm;
}
.cols-5 .p-content.items-4 .item-txt {
  font-size: 9.8pt;
}

/* Hero + 3 maddeli paneller (Dünya'nın Hareketleri) */
.p-content.has-hero.items-3 .p-hero {
  block-size: 36mm;
}
.p-content.has-hero.items-3 .item-txt {
  font-size: 11pt;
}

/* Boşluk Doldur modu: {{kelime}} -> yazma kutusu */
body[data-mode="blank"] .kw {
  display: inline-block;
  min-inline-size: 14mm;
  border-block-end: 1.5pt solid var(--p-dark, #0f172a);
  background: #ffffff;
  color: transparent !important;
  border-radius: 1.2mm;
  padding-inline: 1.5mm;
  line-height: 1.12;
  vertical-align: baseline;
  user-select: none;
}

/* ============ İÇ PANEL ALT VURGU BANDI ============ */
.p-foot {
  background: var(--p-soft, #f0f9ff);
  border-block-start: 1.4pt dashed var(--p-border, #7dd3fc);
  padding: 2mm 2.6mm;
  min-block-size: 14.5mm;
  display: grid;
  place-items: center;
  text-align: center;
}

.p-foot p {
  font-size: 9.6pt;
  font-weight: 800;
  color: var(--p-dark, #0369a1);
  line-height: 1.2;
  text-wrap: balance;
}

.cols-4 .p-foot p {
  font-size: 10.6pt;
}

/* ============ RENK PALETLERİ ============ */
.c-sky    { --p-head: #0284c7; --p-dark: #0369a1; --p-soft: #f0f9ff; --p-border: #7dd3fc; --p-frame: #bae6fd; }
.c-red    { --p-head: #dc2626; --p-dark: #b91c1c; --p-soft: #fef2f2; --p-border: #fca5a5; --p-frame: #fecaca; }
.c-orange { --p-head: #ea580c; --p-dark: #c2410c; --p-soft: #fff7ed; --p-border: #fdba74; --p-frame: #fed7aa; }
.c-amber  { --p-head: #d97706; --p-dark: #b45309; --p-soft: #fffbeb; --p-border: #fcd34d; --p-frame: #fde68a; }
.c-green  { --p-head: #16a34a; --p-dark: #15803d; --p-soft: #f0fdf4; --p-border: #86efac; --p-frame: #bbf7d0; }
.c-teal   { --p-head: #0d9488; --p-dark: #0f766e; --p-soft: #f0fdfa; --p-border: #5eead4; --p-frame: #99f6e4; }
.c-blue   { --p-head: #2563eb; --p-dark: #1d4ed8; --p-soft: #eff6ff; --p-border: #93c5fd; --p-frame: #bfdbfe; }
.c-indigo { --p-head: #4f46e5; --p-dark: #4338ca; --p-soft: #eef2ff; --p-border: #a5b4fc; --p-frame: #c7d2fe; }
.c-purple { --p-head: #7c3aed; --p-dark: #6d28d9; --p-soft: #f5f3ff; --p-border: #c4b5fd; --p-frame: #ddd6fe; }
.c-rose   { --p-head: #e11d48; --p-dark: #be123c; --p-soft: #fff1f2; --p-border: #fda4af; --p-frame: #fecdd3; }
.c-slate  { --p-head: #334155; --p-dark: #1e293b; --p-soft: #f8fafc; --p-border: #94a3b8; --p-frame: #cbd5e1; }

/* ============ ALTBİLGİ ============ */
.sheet-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block-start: 1.4mm;
  border-block-start: 1px solid #e2e8f0;
  font-size: 7.9pt;
  font-weight: 700;
  color: #64748b;
}

.sheet-foot strong {
  color: #0f172a;
  font-weight: 800;
}

/* ============ BOYAMALI (S/B FOTOKOPİ) MODU ============ */
body[data-theme="bw"] .cover-wrap,
body[data-theme="bw"] .p-head,
body[data-theme="bw"] .p-foot,
body[data-theme="bw"] .p-hero,
body[data-theme="bw"] .item-card,
body[data-theme="bw"] .cover-badge,
body[data-theme="bw"] .pill-grade,
body[data-theme="bw"] .fold-meta .size-note,
body[data-theme="bw"] .guide-box,
body[data-theme="bw"] .shape-telefon .panel-body {
  background: #ffffff !important;
  color: #0f172a !important;
}

body[data-theme="bw"] .head-text h1 .accent,
body[data-theme="bw"] .guide-steps span b,
body[data-theme="bw"] .cover-big,
body[data-theme="bw"] .cover-callout,
body[data-theme="bw"] .p-head h2,
body[data-theme="bw"] .item-txt strong:not(.kw),
body[data-theme="bw"] .p-foot p,
body[data-theme="bw"] .item-badge {
  color: #0f172a !important;
}

body[data-theme="bw"][data-mode="blank"] .kw {
  color: transparent !important;
  border-block-end-color: #0f172a !important;
  background: #ffffff !important;
}

body[data-theme="bw"] .cover-badge,
body[data-theme="bw"] .pill-grade,
body[data-theme="bw"] .cover-art,
body[data-theme="bw"] .cover-callout,
body[data-theme="bw"] .p-hero,
body[data-theme="bw"] .item-card,
body[data-theme="bw"] .item-ico,
body[data-theme="bw"] .item-badge,
body[data-theme="bw"] .p-foot {
  border-color: #334155 !important;
  box-shadow: none !important;
}

body[data-theme="bw"] .cover-badge,
body[data-theme="bw"] .item-badge.num {
  background: #ffffff !important;
  border: 1.4pt solid #0f172a !important;
}

body[data-theme="bw"] .item-badge.ok,
body[data-theme="bw"] .item-badge.no {
  background: #ffffff !important;
}

body[data-theme="bw"] .p-head-tag {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 0.8pt solid #334155;
}

body[data-theme="bw"] .shape-top svg [data-fill],
body[data-theme="bw"] .shape-bottom svg [data-fill] {
  fill: #ffffff !important;
}

body[data-theme="bw"] .shape-top svg text {
  fill: #0f172a !important;
}

body[data-theme="bw"] .item-flag {
  box-shadow: none !important;
}

body[data-theme="bw"] .item-svg {
  border-color: #334155 !important;
}

body[data-theme="bw"] .item-svg svg [data-svg-fill] {
  fill: #ffffff !important;
}

body[data-theme="bw"] .item-svg svg [data-svg-tint] {
  fill: #f1f5f9 !important;
}

body[data-theme="bw"] .item-flag svg [data-flag-fill] {
  fill: #ffffff !important;
}

body[data-theme="bw"] .item-flag svg [data-flag-stroke] {
  stroke: #334155 !important;
}

body[data-theme="bw"] .item-flag svg [data-flag-line] {
  stroke: #334155 !important;
  stroke-width: 0.9 !important;
  opacity: 1 !important;
}

body[data-theme="bw"] img {
  filter: grayscale(100%) contrast(1.22) brightness(1.06);
}

/* ============ 3B Z-KATLAMA EKRAN ÖNİZLEMESİ ============ */
body.folded-preview .accordion-strip {
  transform: scale(0.86);
  transform-origin: center center;
}

body.folded-preview .panel-slot:nth-child(odd) {
  transform: perspective(1050px) rotateY(18deg);
  transform-origin: right center;
  filter: drop-shadow(-4px 9px 10px rgba(15, 23, 42, 0.14));
  z-index: 4;
}

body.folded-preview .panel-slot:nth-child(even) {
  transform: perspective(1050px) rotateY(-20deg);
  transform-origin: left center;
  filter: drop-shadow(3px 9px 10px rgba(15, 23, 42, 0.1));
  z-index: 3;
}

/* ============ BASKI MODU ============ */
@media print {
  html, body {
    background: #ffffff;
    min-block-size: 0 !important;
    block-size: auto !important;
    overflow: hidden !important;
  }
  .toolbar {
    display: none !important;
  }
  .stage {
    padding: 0;
    gap: 0;
    display: block;
  }
  .a4-land {
    inline-size: 297mm;
    block-size: 209.4mm;
    margin: 0;
    box-shadow: none;
    break-after: avoid;
  }
  body.folded-preview .accordion-strip {
    transform: none !important;
  }
  body.folded-preview .panel-slot {
    transform: none !important;
    filter: none !important;
  }
}

/* ============ KART KAPAĞI ÖNİZLEME (#oniz — kapak_uret.py 794×1123 dikey) ============ */
html.oniz,
html.oniz body {
  background: #ffffff !important;
  inline-size: 210mm !important;
  block-size: 297mm !important;
  overflow: hidden !important;
}
html.oniz .toolbar,
html.oniz .oniz-banner {
  display: none !important;
}
html.oniz .stage {
  inline-size: 210mm !important;
  block-size: 297mm !important;
  padding: 3mm 4mm 6mm !important;
  margin: 0 !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5mm !important;
  overflow: clip !important;
}
html.oniz .a4-land {
  inline-size: 297mm !important;
  block-size: 210mm !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1) !important;
  border: 1.2px solid #cbd5e1 !important;
  border-radius: 3.5mm !important;
  transform: scale(0.68) !important;
  transform-origin: top center !important;
  margin: 0 0 -67mm 0 !important;
  flex: none !important;
}
html.oniz .oniz-features {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 3mm !important;
  max-inline-size: 196mm !important;
  flex: none !important;
}
html.oniz .oniz-features span {
  display: inline-block !important;
  background: #ffffff !important;
  border: 1.3px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-size: 9.5pt;
  font-weight: 800;
  padding: 1.8mm 4.2mm;
  border-radius: 99px;
  line-height: 1.2;
}

.oniz-banner,
.oniz-features {
  display: none;
}

@media screen and (max-width: 1160px) {
  .stage {
    overflow-x: auto;
    justify-items: start;
  }
}
