.price-card-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.price-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.price-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: #111827;
  margin-bottom: 0.75rem;
}

.price-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  background: #eef2ff;
  color: #4338ca;
}

.price-card--standard .price-card-tag {
  background: #e0f2fe;
  color: #0369a1;
}

.price-card--cache .price-card-tag {
  background: #fef3c7;
  color: #b45309;
}

.price-card--extended .price-card-tag {
  background: #fee2e2;
  color: #b91c1c;
}

.price-card-body {
  margin-top: 0.35rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 0.45rem 0.4rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #1f2937;
  vertical-align: top;
}

.price-table th {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #6b7280;
  background: #f8fafc;
}

.price-table tr:first-child th,
.price-table tr:first-child td {
  border-top: none;
}

.price-table td:first-child {
  font-weight: 600;
  width: 26%;
}

.price-value {
  font-weight: 600;
  color: #0f172a;
}

.price-meta {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.2rem;
}

@media (max-width: 640px) {
  .price-card {
    padding: 1.05rem;
  }
}

.model-description-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  color: #4338ca;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.model-description-header h3 {
  font-size: 1.75rem;
  margin: 1rem 0 0.75rem;
  color: #111827;
  font-weight: 700;
}

.model-description-header p {
  margin: 0;
  color: #4b5563;
  line-height: 1.8rem;
  font-size: 1rem;
}

.model-description-content {
  color: #1f2937;
  font-size: 1.05rem;
  line-height: 1.9rem;
}

.model-description-content p {
  margin-bottom: 1.25rem;
}

.model-description-content h1,
.model-description-content h2,
.model-description-content h3,
.model-description-content h4 {
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #111827;
}

.model-description-content h2 {
  border-left: 4px solid rgba(79, 70, 229, 0.35);
  padding-left: 0.75rem;
}

.model-description-content blockquote {
  border-left: 4px solid rgba(99, 102, 241, 0.3);
  background: rgba(79, 70, 229, 0.06);
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  margin: 1.6rem 0;
  font-style: italic;
}

.model-description-content pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6rem;
}

.model-description-content code {
  background: rgba(15, 23, 42, 0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.model-description-content ul,
.model-description-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1.4rem;
}

.model-description-content ul li,
.model-description-content ol li {
  margin-bottom: 0.6rem;
}

.model-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.model-meta-row p {
  margin: 0;
}

.view-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: default;
}

.view-counter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #f97316;
  font-size: 1rem;
}

.view-counter-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
}

.model-description-content img {
  border-radius: 14px;
  margin: 1.5rem 0;
  max-width: 100%;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

@media (max-width: 768px) {
  .model-description-header h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 640px) {
  .model-description-header h3 {
    font-size: 1.2rem;
    line-height: 1.5rem;
  }

  .model-description-content {
    font-size: 1rem;
    line-height: 1.7rem;
  }
}

@media (max-width: 480px) {
  .model-description-header h3 {
    font-size: 1.15rem;
  }
}

.mobile-full-bleed {
  position: relative;
}

@media (max-width: 640px) {
  .mobile-full-bleed {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 16px;
  }

  .mobile-full-bleed .px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .mobile-full-bleed .py-6 {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  .mobile-full-bleed .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

.model-detail-region {
  --toc-width: 220px;
  --toc-gap: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: var(--toc-gap);
  max-width: calc(72rem + (var(--toc-width) + var(--toc-gap)) * 2);
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.model-detail-region::after {
  content: "";
  flex: 1 1 var(--toc-width);
  max-width: var(--toc-width);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.model-detail-shell {
  flex: 1 1 80rem;
  max-width: 80rem;
  width: 100%;
}

.model-toc {
  position: sticky;
  top: 1.25rem;
  align-self: flex-start;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.6rem 1.4rem 1.8rem 1.8rem;
  flex: 0 0 var(--toc-width);
  width: var(--toc-width);
  margin-top: 2rem;
  --toc-handle-width: 3.25rem;
  transition: transform 0.3s ease;
}

.model-toc-inner {
  display: flex;
  flex-direction: column;
}

.model-toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4f46e5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.model-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.model-toc-list::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.5rem;
  bottom: 0.5rem;
  border-left: 2px solid rgba(99, 102, 241, 0.18);
}

.model-toc-item {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
}

.model-toc-item:last-child {
  margin-bottom: 0;
}

.model-toc-item::before {
  content: "";
  position: absolute;
  left: -0.05rem;
  top: 0.32rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 2px solid rgba(79, 70, 229, 0.45);
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.18);
}

.model-toc-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  color: #1e293b;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.model-toc-link:hover,
.model-toc-link:focus {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.2);
}

.model-toc-toggle {
  position: absolute;
  left: 0;
  top: 1.25rem;
  transform: translateX(-50%);
  min-width: var(--toc-handle-width);
  padding: 0.55rem 0.9rem;
  background: #ffffff;
  color: #4f46e5;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.model-detail-main {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
}

.model-detail-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem 2.75rem;
}

.model-detail-main h2 {
  scroll-margin-top: 110px;
}

@media (max-width: 1280px) {
  .model-detail-region {
    --toc-width: 240px;
    --toc-gap: 2rem;
    padding: 0 1rem;
  }
}

@media (max-width: 1024px) {
  .model-detail-region {
    flex-direction: column;
    max-width: 100%;
    padding: 0 1rem;
    --toc-width: min(280px, 86vw);
    --toc-gap: 1.5rem;
  }

  .model-detail-region::after {
    content: none;
    flex: none;
  }

  .model-detail-shell,
  .model-detail-main,
  .model-detail-content {
    max-width: 100%;
  }

  .model-detail-content {
    padding: 2rem 0 2.25rem;
  }

  .model-toc {
    position: fixed;
    top: 110px;
    left: 0;
    width: var(--toc-handle-width);
    flex: none;
    margin-top: 0;
    padding: 0 1.5rem 0 0;
    --toc-handle-width: 4.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    transform: none;
    transition: width 0.28s ease;
    z-index: 40;
  }

  .model-toc-inner {
    width: var(--toc-width);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease, padding 0.28s ease, max-height 0.28s ease;
  }

  .model-toc-list {
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    padding-right: 0.2rem;
  }

  .model-toc-list::before {
    left: 0.35rem;
  }

  .model-toc-toggle {
    position: static;
    display: inline-flex;
    margin: 0.75rem 0.6rem 0.6rem;
    width: 100%;
    max-width: var(--toc-handle-width);
    min-width: 0;
    justify-content: center;
    transform: none;
    align-self: flex-start;
  }

  .model-toc.is-open {
    width: var(--toc-width);
  }

  .model-toc.is-open .model-toc-inner {
    padding: 1.25rem 1.4rem 1.6rem 1.75rem;
    max-height: calc(100vh - 180px);
    transform: translateX(0);
    opacity: 1;
  }

  .model-toc-title {
    display: none;
  }
}

@media (max-width: 640px) {
  .model-detail-region {
    padding: 0 0.75rem;
    --toc-width: min(90vw, 220px);
  }

  .model-toc {
    top: 94px;
    --toc-handle-width: 4.8rem;
  }

  .model-toc-inner {
    width: min(90vw, 220px);
  }

  .model-toc.is-open {
    width: min(90vw, 220px);
  }

  .model-toc.is-open .model-toc-inner {
    padding: 1rem 1.1rem 1.3rem 1.4rem;
    max-height: calc(100vh - 150px);
  }

  .model-toc-toggle {
    margin: 0.75rem 0.75rem 0.6rem;
  }

  .model-toc-list {
    max-height: calc(100vh - 150px);
  }
}

.benchmark-detail-list a:link {
  text-decoration: underline !important;
}
