/* Twaino — Definition pages CSS v3 (.def-) */

/* Hide native GP title + featured image + GP Elements hero */
body.category-definition .page-hero,
body.category-definition .featured-image,
body.category-definition .post-image,
body.category-definition .post-thumbnail,
body.category-definition .entry-header,
body.category-definition .post-image-above-header,
body.category-definition .post-image-aligned-center {
  display: none !important;
}
body.category-definition .site-content { padding-top: 1rem !important; }
body.category-definition .grid-container {
  max-width: 100% !important;
  padding: 0 !important;
}
body.category-definition .site-header .grid-container,
body.category-definition .inside-header.grid-container,
body.category-definition .inside-navigation.grid-container,
body.category-definition .navigation-branding,
body.category-definition .site-footer .grid-container {
  max-width: 1300px !important;
  padding: 0 40px !important;
}

.def-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 24px 4rem;
  font-family: 'Gudea', sans-serif;
  color: #1f2937;
  line-height: 1.7;
}

/* Breadcrumb */
.def-breadcrumb {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.def-breadcrumb a { color: #56aea4; text-decoration: none; }
.def-breadcrumb a:hover { text-decoration: underline; }
.def-breadcrumb span[aria-current] { color: #1f2937; font-weight: 600; }

/* MAIN 3-col layout */
.def-main {
  display: grid;
  grid-template-columns: 180px 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* LEFT SIDEBAR : A-Z grid */
.def-az {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.def-az-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.def-az-head-icon { font-size: 18px; }
.def-az-head-label {
  font-family: 'Dosis', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #010643;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.def-az-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.def-az-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-family: 'Dosis', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #374151;
  background: #f3f4f6;
  border-radius: 6px;
  text-decoration: none;
  transition: all .15s;
}
.def-az-letter:hover:not(.is-disabled):not(.is-active) {
  background: #9FFDCE;
  color: #010643;
  transform: scale(1.08);
}
.def-az-letter.is-active {
  background: #010643;
  color: #fff;
  box-shadow: 0 4px 10px rgba(1,6,67,.25);
}
.def-az-letter.is-disabled {
  color: #d1d5db;
  background: #fafafa;
  cursor: not-allowed;
}
.def-az-all {
  display: block;
  margin-top: 14px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #56aea4;
  text-align: center;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all .15s;
}
.def-az-all:hover { background: #f0fdfa; color: #010643; border-color: #56aea4; }

/* CONTENT */
.def-content { min-width: 0; }

/* HERO */
.def-hero { margin-bottom: 2rem; }
.def-hero.has-thumb {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  gap: 32px;
  align-items: start;
}
.def-hero-text { min-width: 0; }
.def-hero-thumb {
  margin: 0;
  padding: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(1,6,67,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.def-hero-thumb img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
@media (max-width: 768px) {
  .def-hero.has-thumb { grid-template-columns: 1fr; gap: 20px; }
  .def-hero-thumb { max-width: 320px; margin: 0 auto; }
}
.def-hero-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.def-hero-letter {
  display: inline-flex;
  width: 40px; height: 40px;
  background: #010643;
  color: #fff;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-family: 'Dosis', sans-serif;
  font-weight: 700;
  font-size: 20px;
}
.def-hero-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #9FFDCE;
  color: #010643;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.def-hero-title {
  font-family: 'Dosis', sans-serif;
  font-size: 46px;
  font-weight: 700;
  color: #010643;
  margin: 4px 0 16px 0;
  line-height: 1.1;
}
.def-intro {
  margin: 0 0 18px 0;
  padding-left: 16px;
  border-left: 4px solid #9FFDCE;
}
.def-intro-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #1f2937;
  font-weight: 500;
}
.def-hero-byline {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.def-hero-byline strong { color: #1f2937; font-weight: 600; }

/* BODY */
.def-body { margin-top: 2rem; }
.def-body h2 {
  font-family: 'Dosis', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #010643;
  margin: 2.5rem 0 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #9FFDCE;
}
.def-body h3 { font-family: 'Dosis', sans-serif; font-size: 22px; font-weight: 700; color: #010643; margin: 2rem 0 .75rem; }
.def-body h4 { font-family: 'Dosis', sans-serif; font-size: 18px; font-weight: 700; color: #010643; margin: 1.5rem 0 .5rem; }
.def-body p { font-size: 16px; line-height: 1.75; margin: 1rem 0; }
.def-body a { color: #56aea4; }
.def-body a:hover { color: #010643; }
.def-body ul, .def-body ol { margin: 1rem 0; padding-left: 1.5rem; }
.def-body li { margin: .5rem 0; line-height: 1.65; }
.def-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.5rem 0; }
.def-body blockquote {
  border-left: 4px solid #9FFDCE;
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  color: #374151;
  font-style: italic;
  background: #f9fafb;
  border-radius: 4px;
}

/* SVG illustration */
.def-svg-inline {
  max-width: 520px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

/* Related */
.def-related {
  margin-top: 3.5rem;
  padding: 1.75rem;
  background: #f9fafb;
  border-radius: 14px;
}
.def-related h2 { margin-top: 0; border: none; padding: 0; font-family: 'Dosis', sans-serif; font-size: 22px; color: #010643; }
.def-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 1rem;
}
.def-related-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s;
  overflow: hidden;
}
.def-related-card:hover { border-color: #9FFDCE; transform: translateY(-3px); box-shadow: 0 8px 22px rgba(86,174,164,.18); }
.def-related-thumb {
  display: block;
  width: 100%;
  height: 140px;
  background: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
  overflow: hidden;
  position: relative;
}
.def-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.def-related-card:hover .def-related-thumb img { transform: scale(1.04); }
.def-related-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Dosis', sans-serif;
  font-size: 58px;
  font-weight: 800;
  color: #010643;
  background: linear-gradient(135deg, #9FFDCE 0%, #7aecbc 100%);
  line-height: 1;
}
.def-related-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}
.def-related-title { font-family: 'Dosis', sans-serif; font-weight: 700; font-size: 16px; color: #010643; line-height: 1.3; }
.def-related-excerpt { font-size: 13px; color: #6b7280; line-height: 1.45; }
/* Legacy letter badge — kept hidden for back-compat with any card variant */
.def-related-letter { display: none; }

/* RIGHT SIDEBAR : CTA contextuel — fond blanc entouré vert menthe, bouton menthe */
.def-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.def-cta-card {
  background: #fff;
  color: #010643;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 18px;
  text-align: center;
  border: 2px solid #9FFDCE;
  box-shadow: 0 10px 30px rgba(86,174,164,.18);
  position: relative;
  overflow: hidden;
}
.def-cta-card::before {
  content: '';
  position: absolute;
  top: -90px; right: -90px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(159,253,206,.45) 0%, transparent 70%);
  border-radius: 50%;
}
.def-cta-icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 14px;
  display: inline-block;
  padding: 14px;
  background: #9FFDCE;
  border-radius: 16px;
  position: relative;
}
.def-cta-title {
  font-family: 'Dosis', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #010643;
  margin: 0 0 10px;
  line-height: 1.2;
  position: relative;
}
.def-cta-subtitle {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 18px;
  line-height: 1.55;
  position: relative;
}
.def-cta-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
  position: relative;
}
.def-cta-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: #1f2937;
  line-height: 1.45;
  font-weight: 500;
}
.def-cta-benefits svg { flex-shrink: 0; margin-top: 2px; stroke: #56aea4; }

.def-cta-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}
.def-cta-stat {
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.3;
}
.def-cta-stat strong {
  display: block;
  font-family: 'Dosis', sans-serif;
  font-size: 16px;
  color: #010643;
  font-weight: 700;
  margin-bottom: 2px;
}

.def-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: #9FFDCE;
  color: #010643;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s;
  position: relative;
  box-sizing: border-box;
  border: 2px solid #9FFDCE;
}
.def-cta-btn:hover {
  background: #010643;
  color: #9FFDCE;
  border-color: #010643;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1,6,67,.25);
}
.def-cta-btn svg { transition: transform .2s; }
.def-cta-btn:hover svg { transform: translateX(4px); }

.def-cta-note {
  font-size: 11px !important;
  color: #6b7280 !important;
  margin: 12px 0 0 !important;
  position: relative;
  line-height: 1.4;
}

/* AUTHOR BOX */
.def-author {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 3.5rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.def-author-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #9FFDCE;
}
.def-author-body {
  min-width: 0;
}
.def-author-name {
  font-family: 'Dosis', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #010643;
  margin: 0 0 4px;
}
.def-author-role {
  display: inline-block;
  padding: 3px 10px;
  background: #9FFDCE;
  color: #010643;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}
.def-author-bio {
  margin: 0 0 14px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}
.def-author-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.def-author-links a,
.def-author-links .def-author-obf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all .15s;
  cursor: pointer;
}
.def-author-links a:hover,
.def-author-links .def-author-obf:hover { background: #9FFDCE; color: #010643; }
.def-author-links svg { flex-shrink: 0; }

@media (max-width: 640px) {
  .def-author { grid-template-columns: 1fr; text-align: center; }
  .def-author-photo { margin: 0 auto; }
  .def-author-links { justify-content: center; }
}

/* ============================================================
   ARCHIVE /definition/ (Option A)
   ============================================================ */
.def-archive-content {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 1rem;
}
.def-archive-hero {
  margin: 2.5rem 0 3rem;
  padding: 3rem 2.5rem 2.75rem;
  background: linear-gradient(135deg, #f0fffa 0%, #fff 70%);
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.def-archive-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(159,253,206,.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.def-archive-hero-meta { margin-bottom: 14px; position: relative; }
.def-archive-title {
  font-family: 'Dosis', sans-serif;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  color: #010643;
  margin: 0 0 12px;
  position: relative;
}
.def-archive-subtitle {
  font-size: 16px;
  color: #4b5563;
  margin: 0 0 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  position: relative;
}
.def-archive-subtitle strong { color: #010643; font-weight: 700; }

.def-archive-search {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid #9FFDCE;
  border-radius: 14px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 4px 18px rgba(86,174,164,.15);
  position: relative;
}
.def-archive-search-icon { color: #56aea4; flex-shrink: 0; }
.def-archive-search input[type="search"] {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-family: 'Gudea', sans-serif;
  font-size: 15px;
  color: #1f2937;
  padding: 10px 14px;
  min-width: 0;
}
.def-archive-search input[type="search"]::placeholder { color: #9ca3af; }
.def-archive-search-btn {
  padding: 11px 22px;
  background: #010643;
  color: #9FFDCE;
  border: 0;
  border-radius: 10px;
  font-family: 'Dosis', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.def-archive-search-btn:hover { background: #9FFDCE; color: #010643; }

.def-archive-section { margin: 3rem 0; }
.def-archive-section > h2 {
  font-family: 'Dosis', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #010643;
  margin: 0 0 6px;
}
.def-archive-section-lead {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 1.5rem;
}

.def-archive-az-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 10px;
  margin-top: 1.5rem;
}
.def-archive-letter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all .15s ease;
  padding: 8px 4px;
}
.def-archive-letter:hover {
  background: #9FFDCE;
  border-color: #9FFDCE;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(86,174,164,.25);
}
.def-archive-letter-char {
  font-family: 'Dosis', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #010643;
  line-height: 1;
}
.def-archive-letter-count {
  font-size: 10px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.def-archive-letter:hover .def-archive-letter-count { color: #010643; }
.def-archive-letter.is-disabled {
  background: #f9fafb;
  border-color: #f3f4f6;
  cursor: not-allowed;
}
.def-archive-letter.is-disabled .def-archive-letter-char { color: #d1d5db; }
.def-archive-letter.is-disabled .def-archive-letter-count { color: #d1d5db; }

.def-archive-cta-wrap {
  margin-top: 3rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .def-archive-az-grid { grid-template-columns: repeat(9, 1fr); }
}
@media (max-width: 768px) {
  .def-archive-title { font-size: 32px; }
  .def-archive-hero { padding: 2rem 1.25rem; }
  .def-archive-search { flex-direction: column; padding: 12px; gap: 10px; align-items: stretch; }
  .def-archive-search input[type="search"] { padding: 10px 8px; }
  .def-archive-search-btn { width: 100%; }
  .def-archive-az-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 480px) {
  .def-archive-az-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .def-archive-letter-char { font-size: 18px; }
  .def-archive-letter-count { font-size: 9px; }
}

/* ============================================================
   LETTER ARCHIVE /definition/{a..z}/
   ============================================================ */
.def-letter-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  align-items: center;
  margin: 2.5rem 0 3rem;
  padding: 2.25rem;
  background: linear-gradient(135deg, #f0fffa 0%, #fff 70%);
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.def-letter-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(159,253,206,.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.def-letter-hero-badge {
  width: 160px;
  height: 160px;
  border-radius: 30px;
  background: #9FFDCE;
  color: #010643;
  font-family: 'Dosis', sans-serif;
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(86,174,164,.3);
  position: relative;
  z-index: 1;
}
.def-letter-hero-text { min-width: 0; position: relative; }
.def-letter-hero-title {
  font-family: 'Dosis', sans-serif;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  color: #010643;
  margin: 10px 0 10px;
}
.def-letter-hero-count {
  font-size: 15px;
  color: #4b5563;
  margin: 0;
}
.def-letter-hero-count strong { color: #010643; font-weight: 700; }

.def-letter-grid { grid-template-columns: repeat(3, 1fr); }
.def-letter-empty {
  text-align: center;
  color: #6b7280;
  padding: 3rem;
  background: #f9fafb;
  border-radius: 14px;
}

.def-archive-letter.is-current {
  background: #010643;
  border-color: #010643;
  cursor: default;
}
.def-archive-letter.is-current .def-archive-letter-char { color: #9FFDCE; }
.def-archive-letter.is-current .def-archive-letter-count { color: #9FFDCE; opacity: .7; }

@media (max-width: 768px) {
  .def-letter-hero { grid-template-columns: 1fr; text-align: center; gap: 20px; padding: 1.75rem 1.25rem; }
  .def-letter-hero-badge { width: 130px; height: 130px; font-size: 90px; margin: 0 auto; border-radius: 24px; }
  .def-letter-hero-title { font-size: 28px; }
  .def-letter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .def-letter-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RTL (Arabic)
   ============================================================ */
.def-wrapper[dir="rtl"] .def-breadcrumb { flex-direction: row-reverse; }
.def-wrapper[dir="rtl"] .def-az-all,
.def-wrapper[dir="rtl"] .def-archive-subtitle,
.def-wrapper[dir="rtl"] .def-archive-section-lead,
.def-wrapper[dir="rtl"] .def-related-title,
.def-wrapper[dir="rtl"] .def-related-excerpt,
.def-wrapper[dir="rtl"] .def-author-bio,
.def-wrapper[dir="rtl"] .def-cta-subtitle,
.def-wrapper[dir="rtl"] .def-cta-benefits,
.def-wrapper[dir="rtl"] .def-letter-hero-title,
.def-wrapper[dir="rtl"] .def-letter-hero-count { text-align: right; }
.def-wrapper[dir="rtl"] .def-hero-byline { flex-direction: row-reverse; }
.def-wrapper[dir="rtl"] .def-cta-btn svg,
.def-wrapper[dir="rtl"] .def-az-all { transform: scaleX(-1); }
.def-wrapper[dir="rtl"] .def-letter-hero { grid-template-columns: 1fr 180px; }
.def-wrapper[dir="rtl"] .def-hero.has-thumb { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); }
.def-wrapper[dir="rtl"] .def-cta-benefits li { flex-direction: row-reverse; }
@media (max-width: 768px) {
  .def-wrapper[dir="rtl"] .def-letter-hero,
  .def-wrapper[dir="rtl"] .def-hero.has-thumb { grid-template-columns: 1fr; }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .def-main { grid-template-columns: 150px 1fr 290px; gap: 24px; }
}
@media (max-width: 1024px) {
  .def-main { grid-template-columns: 1fr; gap: 24px; }
  .def-az, .def-sidebar { position: static; max-width: 500px; margin: 0 auto; width: 100%; }
  .def-az-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 768px) {
  .def-wrapper { padding: 1rem 16px 3rem; }
  .def-hero-title { font-size: 34px; }
  .def-intro-text { font-size: 16px; }
  .def-related-grid { grid-template-columns: 1fr 1fr; }
  .def-az-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 480px) {
  .def-related-grid { grid-template-columns: 1fr; }
  .def-hero-title { font-size: 28px; }
  .def-az-grid { grid-template-columns: repeat(5, 1fr); }
}
