.content-narrow {
  max-width: var(--layout-max, 1200px);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: max(0.75rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
  box-sizing: border-box;
}

.content-narrow--yazili {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.veli-page {
  padding: 1rem 0 2rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.veli-page * {
  box-sizing: border-box;
}

.veli-page__header {
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem 1.1rem 1.5rem;
  background: #374151;
  border-radius: 10px;
  border-left: 4px solid #059669;
}

.veli-page__title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.veli-page__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5e7eb;
}

.veli-section {
  margin-top: 2rem;
}

.veli-section:first-of-type {
  margin-top: 0;
}

.veli-section__title {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: #4b5563;
  border-left: 4px solid #059669;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 1.1rem;
  color: #ffffff;
}

.veli-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.veli-grid--blocks {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .veli-grid--blocks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .veli-grid--blocks {
    grid-template-columns: repeat(4, 1fr);
  }
}

.veli-block {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px 16px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-top: 3px solid #1e3a5f;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  min-width: 0;
  visibility: visible;
  opacity: 1;
}

.veli-block--lise {
  border-top-color: #4b5563;
}

.veli-section__intro {
  margin: -0.35rem 0 1rem;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.veli-block__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.veli-block__head-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
}

.yazili-page .yazili-link-stack,
.yazili-link-stack {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
}

.yazili-page .yazili-link,
.yazili-link-stack .yazili-link {
  display: block;
  width: 100%;
  padding: 0.5rem 0.6rem;
  margin-bottom: 2px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e3a5f;
  background: #fff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  line-height: 1.45;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.yazili-link:hover,
.yazili-link:focus {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #0d47a1;
  text-decoration: none;
  outline: none;
}

.yazili-link--all {
  margin-top: 8px;
  padding-top: 0.6rem;
  border-top: 2px dashed #cbd5e1;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  color: #047857;
  background: #ecfdf5;
}

.yazili-link--all:hover,
.yazili-link--all:focus {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.veli-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #111827;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transform: translateY(0);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.veli-card:hover,
.veli-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  background: #f3f4f6;
  border-color: #d1d5db;
  text-decoration: none;
  outline: none;
}

.veli-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #e5e7eb;
  border: 1px solid #cbd5e1;
  width: fit-content;
}

.veli-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 2px 0 0;
  line-height: 1.35;
}

.veli-card__desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #4b5563;
}

.veli-card--lise {
  border-top: 3px solid #4b5563;
}

.veli-grid--takdir {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.veli-card--takdir {
  border-top: 3px solid #1565c0;
  min-height: 4.5rem;
  justify-content: center;
}

.veli-section--seo {
  margin-top: 2.25rem;
}

.veli-seo {
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #374151;
}

.veli-seo p {
  margin: 0 0 0.9rem;
}

.veli-seo p:last-child {
  margin-bottom: 0;
}

.yazili-seo-prose .yazili-seo-lead {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.yazili-seo-h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.yazili-seo-prose p {
  margin: 0 0 0.85rem;
}

.yazili-seo-grades {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.yazili-seo-grade {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e3a5f;
  text-decoration: none;
  line-height: 1.3;
}

.yazili-seo-grade:hover,
.yazili-seo-grade:focus {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #0d47a1;
  text-decoration: none;
  outline: none;
}

.yazili-seo-close {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .veli-page {
    padding-top: 0.75rem;
  }
  .veli-section {
    margin-top: 1.75rem;
  }
  .veli-seo {
    padding: 1rem 1.25rem;
  }
}
