.page-home {
  --text-on-card: #1A241F;
  --text-on-card-dim: #566057;
  color: var(--text-light);
  padding: 1.5rem 0 4rem;
}
.page-home .breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .875rem;
  color: var(--text-dim);
  padding: .75rem 0 1.5rem;
  flex-wrap: wrap;
}
.page-home .breadcrumb a {
  color: var(--accent-lime);
  text-decoration: none;
}
.page-home .breadcrumb a:hover {
  text-decoration: underline;
}
.page-home .breadcrumb__sep {
  color: var(--line-indigo);
}
.page-home .section-head {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  margin-bottom: 1.25rem;
}
.page-home .section-head h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text-light);
  margin: 0;
}
.page-home .section-head__note {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
  margin: .25rem 0 0;
}
.page-home .section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 .5rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.08);
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.page-home .section-number--lime {
  background: var(--accent-lime);
  color: var(--bg-ink);
}
.page-home .home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.page-home .home-hero__side {
  background: var(--bg-ink);
  border: 1px solid rgba(106,90,205,.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.page-home .home-hero__main {
  background: var(--bg-red);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.page-home .home-hero__masthead {
  margin-bottom: 1.5rem;
}
.page-home .home-stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  color: var(--bg-ink);
  background: var(--tag-yellow);
  border-radius: var(--radius-pill);
  padding: .25rem .625rem;
  margin-bottom: .75rem;
}
.page-home .home-hero__masthead h1 {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-light);
  margin: .5rem 0 .75rem;
}
.page-home .home-hero__lead {
  font-family: var(--font-mono);
  font-size: .875rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
}
.page-home .tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.page-home .tile {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  border-radius: var(--radius-md);
  padding: 1rem;
  text-decoration: none;
  color: var(--text-light);
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: 104px;
}
.page-home .tile:hover,
.page-home .tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.page-home .tile--red {
  background: var(--bg-red);
}
.page-home .tile--purple {
  background: var(--bg-purple);
}
.page-home .tile--blue {
  background: var(--bg-blue);
}
.page-home .tile--card {
  background: var(--bg-card);
  color: var(--text-on-card);
}
.page-home .tile--card .tile__count,
.page-home .tile--card .tile__batch {
  color: var(--text-on-card-dim);
}
.page-home .tile__label {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
}
.page-home .tile__count {
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--text-light);
}
.page-home .tile__batch {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent-lime);
}
.page-home .tile--card .tile__batch {
  color: var(--status-green);
}
.page-home .home-cabinet {
  margin: 0;
}
.page-home .home-cabinet img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  object-fit: cover;
}
.page-home .home-cabinet figcaption {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
  margin-top: .5rem;
}
.page-home .card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
.page-home .card--home {
  background: var(--bg-card);
  color: var(--text-on-card);
  border-radius: var(--radius-md);
  padding: .9rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.page-home .card--home:hover,
.page-home .card--home:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.page-home .card__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.page-home .card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}
.page-home .card-title {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-on-card);
  margin: 0;
  line-height: 1.35;
}
.page-home .card-summary {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-on-card-dim);
  margin: 0;
  line-height: 1.5;
}
.page-home .card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .25rem;
}
.page-home .card__section {
  font-family: var(--font-mono);
  font-size: .6875rem;
  background: rgba(26,36,31,.08);
  border-radius: var(--radius-pill);
  padding: .125rem .5rem;
  color: var(--text-on-card-dim);
}
.page-home .card__batch {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  background: rgba(47,158,68,.15);
  color: #1b6e2f;
  border-radius: var(--radius-pill);
  padding: .125rem .5rem;
}
.page-home .status-badge--new {
  background: var(--status-red);
  color: #fff;
}
.page-home .status-badge--archived {
  background: var(--status-green);
  color: #fff;
}
.page-home .home-tagboard {
  background: var(--bg-purple);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.page-home .home-tagboard__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .18;
  pointer-events: none;
}
.page-home .home-tagboard > *:not(img) {
  position: relative;
  z-index: 1;
}
.page-home .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  align-items: baseline;
  line-height: 1;
}
.page-home .tag-item {
  font-family: var(--font-mono);
  font-size: .8125rem;
  padding: .45rem .8rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.08);
  color: var(--text-light);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
  display: inline-block;
}
.page-home .tag-item:hover,
.page-home .tag-item:focus-visible {
  transform: scale(1.06);
  background: rgba(255,255,255,.16);
}
.page-home .tag-item--hot {
  font-size: 1.35rem;
  background: var(--tag-yellow);
  color: var(--bg-ink);
  font-weight: 700;
}
.page-home .tag-item--hot:hover {
  background: #fff5c2;
}
.page-home .tag-item--warn {
  font-size: 1.1rem;
  background: var(--tag-orange);
  color: var(--bg-ink);
  font-weight: 700;
}
.page-home .tag-item--warn:hover {
  background: #ffb54d;
}
.page-home .tag-item--lime {
  font-size: .9375rem;
  background: var(--accent-lime);
  color: var(--bg-ink);
  font-weight: 700;
}
.page-home .tag-item--lime:hover {
  background: #c8ff66;
}
.page-home .tag-item--outline {
  background: transparent;
  border: 1px solid var(--line-indigo);
  color: var(--text-dim);
}
.page-home .home-ranking {
  background: var(--bg-blue);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.page-home .home-ranking__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.page-home .sort-bar {
  display: flex;
  align-items: center;
  gap: .375rem;
}
.page-home .sort-bar__label {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
  margin-right: .25rem;
}
.page-home .sort-button {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255,255,255,.08);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: .375rem .75rem;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.page-home .sort-button:hover {
  color: var(--text-light);
}
.page-home .sort-button.is-active {
  background: var(--accent-lime);
  color: var(--bg-ink);
}
.page-home .home-ranking__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.page-home .metric-list {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.page-home .metric-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .625rem .75rem;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-md);
  transition: background .2s ease;
}
.page-home .metric-item:hover {
  background: rgba(255,255,255,.09);
}
.page-home .metric-item__main {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  min-width: 0;
}
.page-home .metric-item__name {
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}
.page-home .metric-item__name:hover {
  color: var(--accent-lime);
}
.page-home .metric-track {
  height: 6px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.page-home .metric-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-lime), #d4ff66);
}
.page-home .metric-val {
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
}
.page-home .index-number--top1 {
  background: var(--tag-yellow);
  color: var(--bg-ink);
}
.page-home .index-number--red {
  background: var(--status-red);
  color: #fff;
}
.page-home .home-ranking__visual {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  align-items: center;
  justify-content: center;
}
.page-home .home-ranking__visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.page-home .home-ranking__caption {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
}
@keyframes page-home-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-home .card--home,
.page-home .metric-item,
.page-home .tile {
  animation: page-home-fade-up .45s ease both;
}
.page-home .card--home:nth-child(2),
.page-home .metric-item:nth-child(2),
.page-home .tile:nth-child(2) {
  animation-delay: .05s;
}
.page-home .card--home:nth-child(3),
.page-home .metric-item:nth-child(3),
.page-home .tile:nth-child(3) {
  animation-delay: .1s;
}
.page-home .card--home:nth-child(4),
.page-home .metric-item:nth-child(4),
.page-home .tile:nth-child(4) {
  animation-delay: .15s;
}
@media (min-width: 860px) {
  .page-home {
    padding: 2rem 0 5rem;
  }
  .page-home .home-hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 1.5rem;
  }
  .page-home .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .page-home .home-ranking__layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.6fr);
    gap: 1.5rem;
  }
  .page-home .home-hero__side,
  .page-home .home-hero__main,
  .page-home .home-tagboard,
  .page-home .home-ranking {
    padding: 2rem;
  }
  .page-home .home-hero__masthead h1 {
    font-size: 2.25rem;
  }
  .page-home .tile-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-home .home-ranking__visual img {
    max-height: 400px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .card--home,
  .page-home .metric-item,
  .page-home .tile,
  .page-home .tag-item {
    animation: none;
    transition: none;
  }
}
