.page-home {
  --home-entry-width: 320px;
  --home-gap-md: 40px;
  --home-gap-lg: 64px;
  --home-sticky-top: calc(var(--header-height) + 24px);
  --home-section-gap: 64px;
  --home-entry-bg: linear-gradient(145deg, var(--coral) 0%, var(--coral-soft) 100%);
  --home-entry-text: var(--deep-sea);
}

.page-home .home-layout {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 var(--page-pad) 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap-md);
}

.page-home .home-entry-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  background: var(--home-entry-bg);
  border-radius: var(--radius);
  color: var(--home-entry-text);
  overflow: hidden;
}

.page-home .home-entry-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.25) 0%, transparent 55%),
    linear-gradient(rgba(11, 60, 93, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 60, 93, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px, 22px 22px;
  pointer-events: none;
}

.page-home .home-entry-panel > * {
  position: relative;
  z-index: 1;
}

.page-home .home-entry-panel__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .home-entry-panel__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: var(--deep-sea);
  color: var(--white);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-home .home-entry-panel__tag {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(11, 60, 93, 0.65);
  letter-spacing: 0.08em;
}

.page-home .home-entry-panel__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.15;
  color: var(--deep-sea);
  letter-spacing: 0.01em;
}

.page-home .home-entry-panel__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(11, 60, 93, 0.88);
}

.page-home .home-entry-panel__cta {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
  background: var(--deep-sea);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.page-home .home-entry-panel__cta:hover {
  background: #0E4C74;
  color: var(--white);
}

.page-home .home-entry-panel__note {
  margin: 0;
  font-size: 12px;
  color: rgba(11, 60, 93, 0.7);
}

.page-home .home-entry-panel__nav {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 60, 93, 0.18);
}

.page-home .home-entry-panel__nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  color: var(--deep-sea);
  font-weight: 600;
  font-size: 14px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .home-entry-panel__nav-link:hover,
.page-home .home-entry-panel__nav-link.is-active {
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(2px);
  box-shadow: 0 2px 10px rgba(11, 60, 93, 0.08);
}

.page-home .home-entry-panel__nav-num {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.65;
  min-width: 20px;
}

.page-home .home-entry-panel__foot {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  border-top: 1px solid rgba(11, 60, 93, 0.14);
}

.page-home .home-entry-panel__foot .data-point {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(11, 60, 93, 0.75);
}

.page-home .home-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.page-home .home-hero {
  position: relative;
  padding-top: 24px;
}

.page-home .home-hero__wave {
  position: absolute;
  top: -8px;
  right: 0;
  width: 220px;
  height: 70px;
  opacity: 0.55;
  pointer-events: none;
}

.page-home .home-hero__tag {
  margin-top: 18px;
}

.page-home .home-hero__title {
  margin: 10px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  color: var(--deep-sea);
  max-width: 640px;
}

.page-home .home-hero__lead {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--deep-sea-gray);
  max-width: var(--max-text);
}

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.page-home .home-hero__stat {
  background: var(--light-sea);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  border-left: 3px solid var(--coral);
}

.page-home .home-hero__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--deep-sea);
  line-height: 1.2;
}

.page-home .home-hero__stat-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--deep-sea-gray);
}

.page-home .home-hero__img {
  margin-top: 28px;
}

.page-home .home-hero__hint {
  margin: 20px 0 0;
  font-size: 14px;
}

.page-home .home-hero__hint a,
.page-home .home-table-section__foot a,
.page-home .home-tag-change__foot a {
  color: var(--coral);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.page-home .home-hero__hint a:hover,
.page-home .home-table-section__foot a:hover,
.page-home .home-tag-change__foot a:hover {
  color: var(--coral-soft);
}

.page-home .home-table-section,
.page-home .home-tag-change,
.page-home .home-latest,
.page-home .home-directory {
  margin-top: var(--home-section-gap);
}

.page-home .section-heading {
  margin: 10px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--deep-sea);
  line-height: 1.2;
}

.page-home .home-table-section__desc,
.page-home .home-tag-change__desc,
.page-home .home-latest__desc,
.page-home .home-directory__desc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--deep-sea-gray);
  max-width: var(--max-text);
}

.page-home .home-table-section__grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.page-home .home-table-section__img {
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-table-section__foot {
  margin: 16px 0 0;
  font-size: 14px;
}

.page-home .home-table-card {
  background: var(--white);
  border: 1px solid rgba(139, 90, 43, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}

.page-home .home-table-card:hover {
  box-shadow: 0 6px 24px rgba(11, 60, 93, 0.08);
}

.page-home .home-table-card__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--deep-sea);
  transition: background var(--dur) var(--ease);
}

.page-home .home-table-card__summary:hover {
  background: var(--beach-sand);
}

.page-home .home-table-card__summary::-webkit-details-marker {
  display: none;
}

.page-home .home-table-card__summary-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 12px;
  background: var(--coral);
  color: var(--white);
  border-radius: 999px;
  white-space: nowrap;
}

.page-home .home-table-card__body {
  padding: 0 20px 20px;
  overflow-x: auto;
}

.page-home .index-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .index-table th {
  background: var(--light-sea);
  padding: 10px 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--deep-sea);
  white-space: nowrap;
}

.page-home .index-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(139, 90, 43, 0.12);
  color: var(--deep-sea-gray);
  white-space: nowrap;
}

.page-home .index-table tbody tr:last-child td {
  border-bottom: none;
}

.page-home .home-tag-change {
  background: var(--light-sea);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.page-home .home-tag-change__grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.page-home .home-tag-change__card {
  background: var(--white);
  padding: 20px;
  border-left: 3px solid var(--coconut);
}

.page-home .home-tag-change__card p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--deep-sea-gray);
}

.page-home .home-tag-change__list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.page-home .home-tag-change__list li {
  padding: 10px 12px;
  background: var(--beach-sand);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--deep-sea-gray);
}

.page-home .home-tag-change__list .mono {
  color: var(--deep-sea);
  font-weight: 700;
  margin-right: 8px;
}

.page-home .home-tag-change__foot {
  margin: 20px 0 0;
  font-size: 14px;
}

.page-home .home-latest__grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.page-home .home-latest__timeline .timeline {
  display: grid;
  gap: 14px;
}

.page-home .home-latest__timeline .timeline__item {
  padding: 16px 18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--coconut);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-latest__timeline .timeline__item[data-active] {
  border-left-color: var(--coral);
  box-shadow: 0 4px 20px rgba(255, 111, 97, 0.14);
  transform: scale(1.01);
}

.page-home .home-latest__timeline .timeline__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--coral);
  letter-spacing: 0.05em;
}

.page-home .home-latest__timeline .timeline__title {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--deep-sea);
  line-height: 1.4;
}

.page-home .home-latest__timeline .timeline__desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--deep-sea-gray);
  line-height: 1.6;
}

.page-home .home-latest__img {
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-directory__grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.page-home .home-directory__text {
  background: var(--beach-sand);
  border-radius: var(--radius);
  padding: 24px;
}

.page-home .home-directory__title {
  margin: 0;
  font-size: 18px;
  font-family: var(--font-heading);
  color: var(--deep-sea);
}

.page-home .home-directory__list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.page-home .home-directory__list li {
  font-size: 14px;
  color: var(--deep-sea-gray);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.page-home .home-directory__list .data-point {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--deep-sea);
  font-weight: 700;
  margin-right: 4px;
}

.page-home .home-directory__btn {
  margin-top: 20px;
}

.page-home .home-directory__img {
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .home-connect-hint {
  margin-top: 48px;
  padding: 16px 20px;
  background: var(--light-sea);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--deep-sea-gray);
  text-align: center;
}

.page-home .home-connect-hint a {
  color: var(--coral);
  font-weight: 700;
  text-decoration: none;
}

.page-home .home-connect-hint a:hover {
  color: var(--coral-soft);
}

.page-home img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (min-width: 720px) {
  .page-home .home-hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-table-section__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

  .page-home .home-tag-change__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .home-latest__grid {
    grid-template-columns: 1fr 0.9fr;
    align-items: start;
  }

  .page-home .home-directory__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .page-home .home-entry-panel {
    padding: 32px 28px;
  }

  .page-home .home-entry-panel__cta {
    font-size: 15px;
  }
}

@media (min-width: 960px) {
  .page-home .home-layout {
    grid-template-columns: var(--home-entry-width) minmax(0, 1fr);
    gap: var(--home-gap-lg);
    padding: 24px var(--page-pad) 80px;
    align-items: start;
  }

  .page-home .home-entry-panel {
    position: sticky;
    top: var(--home-sticky-top);
    min-height: 520px;
    gap: 16px;
  }

  .page-home .home-entry-panel__title {
    font-size: 28px;
  }

  .page-home .home-entry-panel__desc {
    font-size: 15px;
  }

  .page-home .home-entry-panel__nav {
    margin-top: 12px;
    padding-top: 18px;
  }

  .page-home .home-hero {
    padding-top: 32px;
  }

  .page-home .home-hero__wave {
    width: 360px;
    top: 0;
  }

  .page-home .home-hero__lead {
    font-size: 17px;
  }
}
