.list-page,
.detail-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0;
}

.page-title__total {
  margin-left: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-muted);
}

.list-page__facts {
  margin-top: calc(var(--space-4) * -1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.notice--line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.notice__link {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
}

.section-tabs,
.sub-tabs {
  display: flex;
  align-items: flex-end;
  gap: var(--space-6);
  overflow-x: auto;
  box-shadow: inset 0 -1px 0 var(--color-divider);
  scrollbar-width: none;
}

.section-tabs__link,
.sub-tabs__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  border-bottom: 2px solid transparent;
  color: var(--color-muted);
  font-size: var(--text-md);
  font-weight: 600;
  white-space: nowrap;
}

.sub-tabs__link {
  min-height: 36px;
  font-weight: 500;
}

.section-tabs__link:hover,
.sub-tabs__link:hover {
  color: var(--color-ink);
  text-decoration: none;
}

.section-tabs__link[aria-current="page"],
.sub-tabs__link[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.sub-tabs__link[aria-current="page"] {
  font-weight: 600;
}

.sub-tab-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.summary-strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.summary-strip__caption {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.summary-strip__cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.summary-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-panel);
  color: var(--color-body);
}

.summary-cell:hover {
  border-color: var(--color-border);
  text-decoration: none;
}

.summary-cell__label,
.summary-cell__secondary,
.summary-cell__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-cell__label {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.summary-cell__value {
  font-size: var(--text-section);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink);
}

.summary-cell__foot,
.metric-row__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 20px;
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.metric-row__cell {
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  box-shadow: -1px 0 0 var(--color-divider);
}

.metric-row__cell:first-child {
  padding-left: 0;
  box-shadow: none;
}

.metric-row__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.metric-row__value {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-ink);
}

.metric-row__value a {
  color: inherit;
}

.detail__aside-toggle {
  display: none;
}

.detail__aside-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
