/* =========================================================================
   Rehberler ve araçlar — /rehber, /rehber/:slug, /afis-olustur
   Yalnızca app.css token'ları kullanılır; koyu tema token'larla otomatik gelir.
   Afiş "kâğıt" olduğundan her temada açık renk şemasıyla (Canvas/CanvasText) çizilir.
   Bölümler: tonlar · sayfa başlığı · merkez · yazı düzeni · içindekiler · metin · kutular ·
   SSS · kaynaklar · ilgili/son ilanlar · çağrı bandı · afiş aracı · afiş · yazdırma
   ========================================================================= */

/* ---------- Tonlar ---------- */
.tone-brand {
  --tone: var(--brand);
  --tone-soft: var(--brand-soft);
  --tone-ink: var(--brand-ink);
}
.tone-lost {
  --tone: var(--lost);
  --tone-soft: var(--lost-soft);
  --tone-ink: var(--lost-ink);
}
.tone-found,
.tone-success {
  --tone: var(--found);
  --tone-soft: var(--found-soft);
  --tone-ink: var(--found-ink);
}
.tone-reward,
.tone-warning {
  --tone: var(--reward);
  --tone-soft: var(--warning-soft);
  --tone-ink: var(--warning-ink);
}
.tone-info {
  --tone: var(--info-ink);
  --tone-soft: var(--info-soft);
  --tone-ink: var(--info-ink);
}

/* ---------- Sayfa başlığı ---------- */
.gd-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(16px, 3vw, 28px) clamp(26px, 4.5vw, 46px);
  background:
    radial-gradient(60% 95% at 0% 0%, color-mix(in srgb, var(--tone) 14%, transparent), transparent 70%),
    radial-gradient(40% 80% at 100% 0%, color-mix(in srgb, var(--reward) 10%, transparent), transparent 72%),
    linear-gradient(180deg, var(--brand-softer), var(--bg));
  border-bottom: 1px solid var(--border);
}
.gd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 90% at 85% 20%, var(--text) 15%, transparent 75%);
  mask-image: radial-gradient(60% 90% at 85% 20%, var(--text) 15%, transparent 75%);
  pointer-events: none;
}
.gd-head {
  max-width: 800px;
  margin-top: clamp(8px, 2vw, 16px);
}
.gd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 14px 5px 5px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}
.gd-eyebrow-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--tone-soft);
  color: var(--tone);
}
.gd-eyebrow-icon .icon {
  width: 15px;
  height: 15px;
}
.gd-head h1 {
  font-size: clamp(1.8rem, 1.15rem + 2.6vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.gd-lead {
  margin: 0;
  max-width: 68ch;
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.16rem);
  line-height: 1.65;
  color: var(--text-2);
}
.gd-lead strong {
  color: var(--text);
}
.gd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.gd-meta > span,
.gd-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 600;
}
.gd-meta > span .icon {
  color: var(--text-3);
}
.gd-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gd-trust .icon {
  color: var(--found);
}
.gd-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.gd-jump .chip .icon {
  color: var(--brand);
}

/* ---------- Rehber merkezi ---------- */
.gd-hub {
  display: grid;
  gap: clamp(32px, 5vw, 52px);
  padding-block: clamp(28px, 4vw, 44px) 8px;
}
.gd-group-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.gd-group-head h2 {
  margin: 0 0 4px;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
}
.gd-group-head p {
  margin: 0;
  color: var(--text-2);
  max-width: 62ch;
}
.gd-group-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--tone-soft);
  color: var(--tone);
}
.gd-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.gd-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.gd-card:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.gd-card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
}
.gd-card-body {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.gd-card-site {
  justify-self: start;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.74rem;
  font-weight: 700;
}
.gd-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}
.gd-card:hover .gd-card-title {
  color: var(--brand);
}
.gd-card-desc {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.55;
}
.gd-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding-right: 28px; /* ok simgesine yer */
  color: var(--text-3);
  font-size: 0.8rem;
  font-weight: 600;
}
/* Ok simgesi alt köşede durur; metin kartın tüm genişliğini kullanır. */
.gd-card-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--text-3);
  transition: transform 0.2s var(--ease), color 0.15s;
}
.gd-card:hover .gd-card-arrow {
  color: var(--brand);
  transform: translateX(3px);
}
.gd-empty p a {
  font-weight: 600;
}
.gd-other {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--reward) 9%, transparent), transparent 70%),
    var(--surface);
}
.gd-other-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.gd-other-head h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
.gd-other-head p {
  margin: 0;
  color: var(--text-2);
}
.gd-other-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--reward-soft);
  color: var(--reward-ink);
}
.gd-other-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 8px 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.gd-other-list a {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}
.gd-other-list a .icon {
  margin-top: 3px;
  color: var(--text-3);
}
.gd-other-list a:hover {
  color: var(--brand);
}

/* ---------- Yazı düzeni ---------- */
.gd-layout {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding-block: clamp(22px, 3.5vw, 36px) 8px;
}
.gd-main {
  min-width: 0;
  max-width: 780px;
}
.gd-aside {
  display: none;
}
@media (min-width: 1024px) {
  .gd-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 56px;
  }
  .gd-aside {
    display: grid;
    gap: 14px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .gd-toc-mobile {
    display: none;
  }
}

/* ---------- İçindekiler ---------- */
.gd-toc {
  padding: 16px 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.gd-toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding-inline: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.gd-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
/* Başlıklar içerikte zaten numaralı olabildiğinden içindekiler numarasızdır; sol çizgi konumu gösterir. */
.gd-toc-list a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}
.gd-toc-list a:hover {
  background: var(--surface-2);
  border-left-color: var(--brand);
  color: var(--text);
  text-decoration: none;
}
.gd-aside-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.92rem;
}
.gd-aside-cta:hover {
  text-decoration: none;
  background: color-mix(in srgb, var(--brand) 16%, var(--surface));
}
.gd-toc-mobile {
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.gd-toc-mobile > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.gd-toc-mobile > summary::-webkit-details-marker {
  display: none;
}
.gd-toc-mobile > summary span {
  flex: 1 1 auto;
}
.gd-toc-mobile nav {
  padding: 0 8px 10px;
}
.gd-chevron {
  flex: none;
  color: var(--text-3);
  transition: transform 0.2s var(--ease);
}
details[open] > summary .gd-chevron {
  transform: rotate(180deg);
}

/* ---------- "Hemen yapın" kutusu ---------- */
.gd-quick {
  margin: 0 0 28px;
  padding: clamp(18px, 3vw, 24px);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone-soft) 70%, var(--surface)), var(--surface));
  box-shadow: var(--shadow-xs);
}
.gd-quick h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.gd-quick h2 .icon {
  color: var(--tone);
}
.gd-quick ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: gd-step;
}
.gd-quick li {
  counter-increment: gd-step;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--text);
  line-height: 1.55;
}
.gd-quick li::before {
  content: counter(gd-step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--tone-ink);
  color: var(--surface);
  font-size: 0.85rem;
  font-weight: 800;
}

/* ---------- Uzun metin ---------- */
.gd-prose {
  max-width: 70ch;
  font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.08rem);
  line-height: 1.75;
  color: var(--text-2);
  overflow-wrap: break-word;
}
.gd-section + .gd-section {
  margin-top: 2.4em;
}
.gd-prose h2 {
  margin: 0 0 0.6em;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.65rem);
  line-height: 1.25;
  color: var(--text);
}
.gd-prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.14rem;
  color: var(--text);
}
.gd-prose p {
  margin: 0 0 1.05em;
}
.gd-prose ul,
.gd-prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.4em;
}
.gd-prose li {
  margin-bottom: 0.45em;
  padding-left: 0.2em;
}
.gd-prose li::marker {
  color: var(--brand);
  font-weight: 700;
}
.gd-prose strong {
  color: var(--text);
}
.gd-prose a,
.gd-faq a,
.gd-quick a,
.gd-lead a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent);
  overflow-wrap: anywhere;
}
.gd-prose a:hover,
.gd-faq a:hover,
.gd-quick a:hover,
.gd-lead a:hover {
  text-decoration-color: currentColor;
}
.gd-ext .icon {
  margin-left: 3px;
  vertical-align: -0.1em;
  opacity: 0.7;
}

/* Not kutuları */
.gd-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 1.4em 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent);
  border-left: 4px solid var(--tone);
  background: var(--tone-soft);
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.6;
}
.gd-note p {
  margin: 0;
}
.gd-note-icon {
  flex: none;
  margin-top: 1px;
  color: var(--tone);
}
.gd-note-label {
  color: var(--tone-ink);
}

/* Alıntı (kanun metni vb.) */
.gd-quote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
}
.gd-quote blockquote {
  margin: 0;
}
.gd-quote blockquote p {
  margin: 0;
  font-size: 1.02rem;
  font-style: italic;
  color: var(--text);
}
.gd-quote figcaption {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Çağrı kutusu ---------- */
.gd-cta {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin: 40px 0;
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--tone) 28%, var(--border));
  background:
    radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--tone) 12%, transparent), transparent 65%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) {
  .gd-cta {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .gd-cta-actions {
    grid-column: 2;
  }
}
.gd-cta-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--tone-soft);
  color: var(--tone);
}
.gd-cta-icon .icon {
  width: 26px;
  height: 26px;
}
.gd-cta-copy h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}
.gd-cta-copy p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}
.gd-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- SSS ---------- */
.gd-faq {
  margin: 40px 0;
}
.gd-faq > h2,
.gd-sources > h2 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 1.12rem + 0.7vw, 1.55rem);
}
.gd-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.gd-faq-item + .gd-faq-item {
  margin-top: 10px;
}
.gd-faq-item > summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.gd-faq-item > summary::-webkit-details-marker {
  display: none;
}
.gd-faq-item > summary:hover {
  background: var(--surface-2);
}
.gd-faq-item > summary .gd-chevron {
  margin-top: 4px;
}
.gd-faq-answer {
  padding: 0 16px 16px;
  color: var(--text-2);
  line-height: 1.7;
}
.gd-faq-answer p {
  margin: 0;
}

/* ---------- Kaynaklar ve notlar ---------- */
.gd-sources {
  margin: 40px 0 24px;
}
.gd-sources ol {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 10px;
}
.gd-sources li {
  color: var(--text-3);
  padding-left: 0.2em;
}
.gd-sources a {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.gd-sources a .icon {
  margin-left: 4px;
  opacity: 0.7;
}
.gd-source-host {
  display: block;
  font-size: 0.8rem;
  color: var(--text-3);
}
.gd-foot-notes {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.gd-disclaimer,
.gd-feedback {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.55;
}
.gd-disclaimer {
  background: var(--warning-soft);
  color: var(--warning-ink);
}
.gd-disclaimer strong {
  color: inherit;
}
.gd-feedback {
  background: var(--surface-2);
  color: var(--text-2);
}
.gd-disclaimer .icon,
.gd-feedback .icon {
  margin-top: 3px;
}

/* ---------- İlgili rehberler ve son ilanlar ---------- */
.gd-related {
  margin-top: clamp(16px, 3vw, 28px);
}
.gd-latest .section-head p {
  font-size: 0.95rem;
}
/* Dört ilan: telefonda/tablette 2×2, geniş ekranda tek sıra (yetim kart kalmaz). */
.gd-latest .listing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1000px) {
  .gd-latest .listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Ücretsiz ilan bandı ---------- */
.gd-band {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 120% at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(50% 100% at 100% 100%, color-mix(in srgb, var(--found) 12%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 1100px) {
  .gd-band {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
  }
}
.gd-band-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
}
.gd-band-copy p {
  margin: 0;
  color: var(--text-2);
  max-width: 62ch;
}
.gd-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================================
   Afiş aracı — /afis-olustur
   ========================================================================= */
.afis-tool {
  padding-block: clamp(20px, 3.5vw, 36px) 8px;
}
.afis-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 980px) {
  .afis-grid {
    grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
    gap: 36px;
  }
  /* Yapışkan önizleme ekran yüksekliğine sığar: afişin altı (QR kod) kaydırmadan görünür. */
  .afis-preview {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    --afis-w: min(100%, 210mm, max(300px, calc((100vh - var(--header-h) - 150px) * 0.7071)));
  }
  @supports (height: 100dvh) {
    .afis-preview {
      --afis-w: min(100%, 210mm, max(300px, calc((100dvh - var(--header-h) - 150px) * 0.7071)));
    }
  }
}
.afis-form-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.afis-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.afis-choices .choice-card {
  padding: 12px;
  gap: 10px;
  align-items: center;
}
.afis-choices .choice-icon {
  width: 38px;
  height: 38px;
}
.afis-choices strong {
  letter-spacing: 0.04em;
}
@media (max-width: 380px) {
  .afis-choices .choice-icon {
    display: none;
  }
}
.afis-date .input {
  max-width: 220px;
}
.afis-photo-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.afis-photo-picker label.btn {
  cursor: pointer;
}
.afis-photo-picker:has(input:focus-visible) label.btn {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.afis-fit {
  margin-top: 6px;
  font-size: 0.9rem;
}
.afis-link-status.is-ok {
  color: var(--found-ink);
}
.afis-link-status.is-error {
  color: var(--danger);
}
.afis-link-hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--brand-softer);
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.5;
}
.afis-link-hint .icon {
  margin-top: 2px;
  color: var(--brand);
}
.afis-street-toggle {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.afis-street-toggle strong {
  display: block;
  color: var(--text);
}
.afis-street-toggle .help {
  display: block;
  margin-top: 2px;
}
.afis-street-toggle:has(input:checked) {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  background: var(--brand-softer);
}
.afis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}
.afis-actions .btn-primary {
  flex: 1 1 200px;
}
.afis-preview {
  --afis-w: min(100%, 210mm);
  min-width: 0;
}
.afis-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: var(--afis-w);
  margin: 0 auto 12px;
}
.afis-preview-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}
.afis-print-hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  width: var(--afis-w);
  margin: 14px auto 0;
  color: var(--text-3);
  font-size: 0.85rem;
  line-height: 1.5;
}
.afis-print-hint .icon {
  margin-top: 2px;
}

/* İpuçları */
.afis-tip-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.afis-tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.afis-tip h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.35;
}
.afis-tip p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.6;
}
.afis-tip-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--tone-soft);
  color: var(--tone);
}
.afis-tip.tone-reward .afis-tip-icon {
  color: var(--reward-ink);
}

/* ---------- Afiş (kâğıt) ----------
   İç ölçüler kapsayıcı birimleriyle (cqi): ekrandaki önizleme baskının birebir küçültülmüşüdür. */
.afis-frame {
  container-type: inline-size;
  width: var(--afis-w, min(100%, 210mm));
  margin-inline: auto;
}
.afis-sheet {
  color-scheme: light;
  --ink-2: color-mix(in srgb, CanvasText 74%, Canvas);
  --ink-3: color-mix(in srgb, CanvasText 52%, Canvas);
  --line: color-mix(in srgb, CanvasText 16%, Canvas);
  --tint: color-mix(in srgb, CanvasText 5%, Canvas);
  --accent: color-mix(in srgb, var(--lost) 80%, CanvasText);
  --accent-soft: color-mix(in srgb, var(--lost) 10%, Canvas);
  display: flex;
  flex-direction: column;
  aspect-ratio: 210 / 297;
  padding: 4.762cqi; /* 10 mm / 210 mm */
  background: Canvas;
  color: CanvasText;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.afis-sheet.is-found {
  --accent: color-mix(in srgb, var(--found) 78%, CanvasText);
  --accent-soft: color-mix(in srgb, var(--found) 10%, Canvas);
}
/* Koyu temada durum renkleri açık tonlardır; kâğıtta beyaz yazının okunaklı kalması için koyulaştırılır. */
@media (prefers-color-scheme: dark) {
  .afis-sheet {
    --accent: color-mix(in srgb, var(--lost) 60%, CanvasText);
  }
  .afis-sheet.is-found {
    --accent: color-mix(in srgb, var(--found) 58%, CanvasText);
  }
}
.afis {
  container-type: inline-size;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2cqi;
  overflow: hidden;
  font-family: var(--font);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.afis-band {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 0.6cqi;
  padding: 2.2cqi 3cqi 2.4cqi;
  border-radius: 1.6cqi;
  background: var(--accent);
  color: Canvas;
  text-align: center;
}
.afis-heading {
  font-size: 14.5cqi;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.04em;
}
.afis-tagline {
  font-size: 3cqi;
  font-weight: 700;
  line-height: 1.25;
}
/* Fotoğraf kalan yüksekliği alır; boyut kapsayıcısı olduğundan içerik afişi taşırmaz. */
.afis-photo {
  flex: 1 1 0;
  min-height: 28cqi;
  container-type: size;
  display: grid;
  place-items: center;
  border-radius: 1.6cqi;
  background: var(--tint);
  border: 0.25cqi solid var(--line);
  overflow: hidden;
}
.afis-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.afis-photo.is-cover img {
  object-fit: cover;
}
.afis-photo-empty {
  display: grid;
  justify-items: center;
  gap: 4cqmin;
  color: var(--ink-3);
  text-align: center;
}
.afis-photo-empty-icon {
  display: grid;
  place-items: center;
  width: 46cqmin;
  height: 46cqmin;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.afis-photo-empty-icon .icon {
  width: 50%;
  height: 50%;
}
.afis-photo-empty-text {
  font-size: max(11px, 5cqmin);
  font-weight: 600;
}
.afis-title {
  flex: none;
  margin: 0;
  font-size: 6.2cqi;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
  color: CanvasText;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.afis-title.is-placeholder {
  color: var(--ink-3);
}
.afis-desc {
  flex: none;
  margin: 0;
  font-size: 2.9cqi;
  line-height: 1.42;
  text-align: center;
  color: var(--ink-2);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.afis-facts {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2cqi 3cqi;
  margin: 0;
  padding: 1.6cqi 2.4cqi;
  border-radius: 1.6cqi;
  background: var(--tint);
}
.afis-fact {
  flex: 1 1 30cqi;
  min-width: 0;
}
.afis-fact dt {
  font-size: 1.9cqi;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.afis-fact dd {
  margin: 0;
  font-size: 3cqi;
  font-weight: 700;
  line-height: 1.3;
  color: CanvasText;
  overflow-wrap: anywhere;
}
.afis-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 3.4cqi;
  padding-top: 2cqi;
  border-top: 0.5cqi dashed var(--line);
}
/* QR: 4 modüllük beyaz sessiz bölge SVG'nin içindedir; dıştaki ince çizgi yalnızca çerçeve. */
.afis-qr {
  flex: none;
  width: 24cqi;
  border-radius: 1.2cqi;
  border: 0.25cqi solid var(--line);
  background: Canvas;
  overflow: hidden;
}
.afis-qr img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  image-rendering: pixelated;
}
.afis-cta {
  min-width: 0;
  display: grid;
  gap: 0.7cqi;
}
.afis-cta p {
  margin: 0;
}
.afis-cta-title {
  font-size: 3.8cqi;
  font-weight: 800;
  line-height: 1.15;
  color: var(--accent);
}
.afis-cta-text {
  font-size: 2.6cqi;
  line-height: 1.4;
  color: var(--ink-2);
}
.afis-url {
  justify-self: start;
  max-width: 100%;
  padding: 0.5cqi 1.4cqi;
  border-radius: 1cqi;
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 3cqi;
  font-weight: 800;
  color: CanvasText;
  overflow-wrap: anywhere;
}
.afis-brand {
  font-size: 1.9cqi;
  font-weight: 600;
  color: var(--ink-3);
}

/* Sokak afişi modu: uzaktan okunur dev başlık, tek büyük fotoğraf ve büyük QR */
.afis-sheet.is-street .afis {
  gap: 2.4cqi;
  padding: 2cqi;
  border: 1.4cqi solid var(--accent);
  border-radius: 2cqi;
}
.afis-sheet.is-street .afis-band {
  padding: 1.6cqi 3cqi 2cqi;
}
.afis-sheet.is-street .afis-heading {
  font-size: 17cqi;
}
.afis-sheet.is-street .afis-tagline,
.afis-sheet.is-street .afis-desc,
.afis-sheet.is-street [data-afis-date-wrap],
.afis-sheet.is-street .afis-cta-text,
.afis-sheet.is-street .afis-brand {
  display: none;
}
.afis-sheet.is-street .afis-title {
  font-size: 8.6cqi;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.afis-sheet.is-street .afis-facts {
  justify-content: center;
  padding: 1cqi 2cqi;
  background: none;
}
.afis-sheet.is-street .afis-fact {
  flex: 0 1 auto;
  text-align: center;
}
.afis-sheet.is-street .afis-fact dt {
  display: none;
}
.afis-sheet.is-street .afis-fact dd {
  font-size: 4.2cqi;
}
.afis-sheet.is-street .afis-qr {
  width: 30cqi;
}
.afis-sheet.is-street .afis-cta-title {
  font-size: 5cqi;
}
.afis-sheet.is-street .afis-url {
  font-size: 3.6cqi;
}

/* =========================================================================
   Yazdırma
   ========================================================================= */
@page {
  size: A4 portrait;
  margin: 10mm;
}
@media print {
  /* Rehber yazısı: gezinme ve çağrılar çıkar, metin ve kaynaklar kalır */
  .gd-hero {
    background: none;
    border: 0;
    padding-block: 0 12px;
  }
  .gd-hero::before,
  .gd-hero .breadcrumbs,
  .gd-jump,
  .gd-aside,
  .gd-toc-mobile,
  .gd-cta,
  .gd-feedback,
  .gd-related,
  .gd-latest,
  .gd-band,
  .gd-band-actions {
    display: none !important;
  }
  .gd-layout {
    display: block;
    padding: 0;
  }
  .gd-prose a[href^='http']::after,
  .gd-sources a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: var(--text-3);
    overflow-wrap: anywhere;
  }
  .gd-faq-item::details-content {
    content-visibility: visible;
    display: block;
  }
  .gd-faq-item > summary .gd-chevron {
    display: none;
  }
  .gd-quick,
  .gd-note,
  .gd-quote,
  .gd-faq-item {
    break-inside: avoid;
  }

  /* Afiş aracı: yalnızca A4 afiş basılır, tek sayfa */
  html:has(body.afis-page),
  body.afis-page {
    background: Canvas;
    min-height: 0;
    display: block;
  }
  body.afis-page main > :not(.afis-tool),
  body.afis-page .skip-link {
    display: none !important;
  }
  body.afis-page .afis-tool {
    padding: 0;
  }
  body.afis-page .afis-grid {
    display: block;
    max-width: none;
    padding: 0;
  }
  body.afis-page .afis-preview {
    position: static;
  }
  body.afis-page .afis-frame {
    width: 100%;
    margin: 0;
  }
  body.afis-page .afis-title.is-placeholder,
  body.afis-page .afis-photo-empty-text {
    visibility: hidden;
  }
  body.afis-page .afis-sheet {
    aspect-ratio: auto;
    /* A4 yüksekliği (297 mm) − 2 × 10 mm kenar; yuvarlama payı ile tek sayfa */
    height: 276mm;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
