/* MotorGT Docs */
.mg-docs-wrap {
  background: #f6f7f9;
  padding: 24px 0 48px;
}
.mg-docs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.mg-docs-bc {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}
.mg-docs-bc a {
  color: #c4161c;
  text-decoration: none;
}
.mg-docs-title {
  font-size: 28px;
  margin: 0 0 16px;
  color: #1a1a1a;
}
.mg-docs-lead {
  color: #444;
  margin-bottom: 20px;
}
.mg-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.mg-docs-grid-models {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.mg-docs-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.mg-docs-card:hover {
  border-color: #c4161c;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.mg-docs-card-title {
  font-weight: 700;
  font-size: 18px;
}
.mg-docs-card-meta {
  font-size: 13px;
  color: #777;
  margin-top: 6px;
}
.mg-docs-card-model img,
.mg-docs-model-hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}
.mg-docs-card-ph {
  height: 120px;
  background: linear-gradient(135deg, #eee, #fafafa);
  border-radius: 6px;
  margin-bottom: 10px;
}
.mg-docs-model-hero {
  max-width: 480px;
  margin: 0 auto 20px;
}
.mg-docs-years {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mg-docs-year-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid #222;
  border-radius: 999px;
  text-decoration: none;
  color: #222 !important;
  background: #fff;
}
.mg-docs-year-btn:hover,
.mg-docs-year-btn:focus {
  background: #c4161c;
  border-color: #c4161c;
  color: #fff !important;
}
.mg-docs-reader {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.mg-docs-toc {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.mg-docs-toc h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.mg-docs-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mg-docs-toc-list li {
  margin: 0 0 6px;
}
.mg-docs-toc-list a {
  color: #333;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  display: block;
}
.mg-docs-toc-list li.is-active a,
.mg-docs-toc-list a:hover {
  color: #c4161c;
}
.mg-docs-body {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
  line-height: 1.65;
  font-size: 15px;
}
.mg-docs-body p {
  margin: 0 0 12px;
}
.mg-docs-disclaimer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #666;
}
.mg-docs-page {
  margin: 0 0 16px;
}
.mg-docs-page img {
  width: 100%;
  height: auto;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fff;
}
.mg-docs-pager a {
  color: #c4161c;
  text-decoration: none;
  font-weight: 600;
}
.mg-docs-news {
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 8px 0 16px;
}
body.mg-docs-active .ct-above-footer .mg-docs-news {
  margin-top: 8px;
}
body.mg-docs-active .ct-above-footer .refined-magazine-thumbnail-post {
  display: none !important;
}
.mg-docs-news-title {
  font-size: 22px;
  margin: 0 0 16px;
  color: #1a1a1a;
}
.mg-docs-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.mg-docs-news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.mg-docs-news-card:hover {
  border-color: #c4161c;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  color: inherit;
}
.mg-docs-news-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: #eee;
  overflow: hidden;
}
.mg-docs-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mg-docs-news-thumb-empty {
  background: linear-gradient(135deg, #eee, #f7f7f7);
}
.mg-docs-news-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}
.mg-docs-news-meta time {
  font-size: 12px;
  color: #888;
}
.mg-docs-news-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #222;
}
@media (max-width: 800px) {
  .mg-docs-reader {
    grid-template-columns: 1fr;
  }
  .mg-docs-toc {
    position: static;
    max-height: 220px;
  }
}
