/* Minimal page header — the old hero (tag + H1 + subtitle) was removed
   because the selected grade's own block already provides all that
   context. All that remains is a small "return to home" link. */
.ds-page-hero-minimal {
  padding: 32px 0 0;
}

.ds-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ds-back:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--text-faint);
}

.ds-back::before { content: '←'; display: inline-block; font-family: var(--font-body); }

/* Panels — tab bar was removed; the page now shows exactly one `.ds-panel`
   (picked by the #grade-<slug> hash via js/tabs.js). Dead tab-bar styles
   have been cleaned out to keep the stylesheet honest. */
.ds-panels {
  padding: 24px 0 120px;
}

.ds-panel {
  display: none;
}
.ds-panel.active {
  display: block;
  animation: panelFade .4s cubic-bezier(.2,.8,.2,1);
}

@keyframes panelFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Grade header card — photo | title | meta at desktop widths so the
   pellet macro shot reads as the identity moment while the grade name
   and spec dl stay scannable on the right. */
.grade-header {
  background: var(--bg-card);
  border-radius: 4px;
  padding: 48px;
  box-shadow: 0 0 0 1px var(--line);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 240px 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}

.grade-photo {
  margin: 0;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  align-self: stretch;
}
.grade-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grade-title-block h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--text);
}

.grade-position {
  display: inline-block;
  padding: 7px 16px;
  background: var(--accent);
  color: var(--accent-on);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.grade-meta {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px 24px;
  font-size: 14px;
}

.grade-meta dt {
  color: var(--text-faint);
  font-weight: 500;
  margin: 0;
}

.grade-meta dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

/* Data categories */
.ds-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ds-category {
  background: var(--bg-card);
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 0 0 1px var(--line);
}

.ds-category.full {
  grid-column: 1 / -1;
}

.ds-cat-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-cat-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.ds-table {
  width: 100%;
  border-collapse: collapse;
}

.ds-table thead th {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 18px 10px 0;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.ds-table thead th:last-child { padding-right: 0; text-align: right; }

.ds-table tbody td {
  padding: 14px 18px 14px 0;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}

.ds-table tbody td:nth-child(2) {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

.ds-table tbody td:nth-child(3) {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
}

.ds-table tbody td:last-child {
  text-align: right;
  padding-right: 0;
  color: var(--text-dim);
  font-size: 13px;
  font-family: var(--font-mono);
}

.ds-table tbody tr:last-child td {
  border-bottom: none;
}

/* Pill list */
.ds-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.ds-pill {
  font-size: 13px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 4px;
  font-weight: 600;
}

/* "适用范围" lead-in — sits above the pill row, reads as a header for
   the list so customers don't have to guess what the chips mean. */
.ds-apps-intro {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  margin-top: 4px;
}

/* Long-form performance narrative under the pill row. Describes
   hot/cold water cycling, sub-zero toughness and wear endurance — all
   shared across the 5 grades. */
.ds-apps-notes {
  margin: 18px 0 0;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* Bottom CTA */
.ds-panel-cta {
  margin-top: 32px;
  padding: 36px 48px;
  background: var(--text);
  color: var(--bg);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.ds-panel-cta-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.ds-panel-cta-text span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 960px) {
  .grade-header { grid-template-columns: 1fr; gap: 28px; padding: 32px; border-radius: 4px; }
  .grade-photo { max-width: 260px; aspect-ratio: 1 / 1; }
  .ds-categories { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .ds-panel-cta { flex-direction: column; align-items: flex-start; padding: 28px; }
  .ds-table tbody td:nth-child(2), .ds-table thead th:nth-child(2) { display: none; }
}
