.page-home {
  --home-grad-orange: linear-gradient(135deg, #FF8A00 0%, #FF5E00 100%);
  --home-grad-cyan: linear-gradient(135deg, #00A8FF 0%, #0066FF 100%);
  --home-card-bg: rgba(255, 255, 255, 0.035);
  --home-speed-line: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 12px);
  overflow-x: clip;
}

.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.page-home .home-hero {
  position: relative;
  padding: 40px 0 48px;
  background:
    radial-gradient(1000px 420px at 82% -10%, rgba(0, 168, 255, 0.12) 0%, rgba(11, 26, 47, 0) 60%),
    linear-gradient(115deg, rgba(255, 107, 0, 0.1) 0%, transparent 34%),
    var(--home-speed-line),
    var(--bg-primary);
  border-bottom: 1px solid var(--steel-blue);
}

.page-home .hero-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}

.page-home .hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-home .hero-breadcrumb span:last-child {
  color: var(--accent-orange);
}

.page-home .hero-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.page-home .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
}

.page-home .hero-main {
  display: grid;
  gap: 32px;
}

.page-home .hero-copy {
  max-width: 640px;
}

.page-home .hero-title {
  margin: 16px 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--surface-white);
}

.page-home .hero-desc {
  margin: 0 0 28px;
  padding-left: 16px;
  border-left: 3px solid var(--accent-orange);
  font-size: 15px;
  line-height: 1.75;
  color: #C8D2DC;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--steel-blue);
  background: var(--bg-secondary);
}

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

.page-home .hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(11, 26, 47, 0.6) 10%, rgba(11, 26, 47, 0.16) 45%, transparent 72%);
}

.page-home .hero-veil::after {
  content: "";
  position: absolute;
  right: -15%;
  bottom: 0;
  width: 72%;
  height: 1px;
  background: var(--home-grad-orange);
  transform: rotate(-8deg);
  transform-origin: right center;
}

.page-home .hero-signal {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 120px;
  height: 40px;
  opacity: 0.9;
  pointer-events: none;
}

.page-home .hero-preview-grid {
  display: grid;
  gap: 16px;
}

.page-home .hero-preview {
  position: relative;
  display: block;
  padding: 22px 20px 20px;
  background: rgba(14, 33, 59, 0.82);
  border: 1px solid var(--steel-blue);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-home .hero-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--home-grad-orange);
  opacity: 0.85;
}

.page-home .hero-preview:nth-child(2)::before {
  background: var(--home-grad-cyan);
}

.page-home .hero-preview:hover,
.page-home .hero-preview:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}

.page-home .hero-preview-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-orange);
}

.page-home .hero-preview:nth-child(2) .hero-preview-num {
  color: var(--accent-cyan);
}

.page-home .hero-preview-title {
  margin: 14px 0 8px;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--surface-white);
}

.page-home .hero-preview-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-home .hero-preview-metric {
  display: block;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(43, 74, 110, 0.55);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--accent-orange);
}

.page-home .hero-preview:nth-child(2) .hero-preview-metric {
  color: var(--accent-cyan);
}

.page-home .hero-preview:nth-child(3) .hero-preview-metric {
  color: var(--accent-orange-bright);
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-home .hero-stat {
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--steel-blue);
  text-align: center;
}

.page-home .hero-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--accent-orange);
}

.page-home .hero-stat:nth-child(even) .hero-stat-value {
  color: var(--accent-cyan);
}

.page-home .hero-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-home .home-slice {
  scroll-margin-top: 84px;
  padding: 56px 0;
  border-bottom: 1px solid rgba(43, 74, 110, 0.55);
}

.page-home .home-slice--alt {
  background: var(--bg-secondary);
}

.page-home .home-slice--light {
  background: var(--light-gray);
  border-bottom-color: #D9E2EC;
}

.page-home .section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.page-home .section-heading {
  flex: 1;
}

.page-home .section-index {
  display: block;
  min-width: 52px;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  line-height: 0.9;
  color: rgba(255, 107, 0, 0.9);
  letter-spacing: 0.02em;
}

.page-home .section-title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--surface-white);
}

.page-home .section-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.page-home .page-card {
  padding: 24px;
  background: var(--home-card-bg);
  border: 1px solid rgba(43, 74, 110, 0.55);
  border-radius: 0;
}

.page-home .block-title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--surface-white);
}

.page-home .page-card p,
.page-home .page-card li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.page-home .check-list,
.page-home .quick-link-list,
.page-home .news-list,
.page-home .step-list {
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.page-home .check-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--surface-white);
}

.page-home .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--home-grad-orange);
  transform: rotate(45deg);
}

.page-home .region-grid {
  display: grid;
  gap: 20px;
}

.page-home .region-figure,
.page-home .update-figure,
.page-home .sync-figure {
  margin: 0;
}

.page-home .region-figure img,
.page-home .update-figure img,
.page-home .sync-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .region-figure,
.page-home .update-figure,
.page-home .sync-figure {
  overflow: hidden;
  border: 1px solid var(--steel-blue);
  background: var(--bg-secondary);
}

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

.page-home .region-picker summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-cyan);
  transition: color 0.2s ease;
}

.page-home .region-picker summary::-webkit-details-marker {
  display: none;
}

.page-home .region-picker summary:hover {
  color: var(--accent-orange);
}

.page-home .region-picker-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  background: rgba(11, 26, 47, 0.68);
  border: 1px solid var(--steel-blue);
}

.page-home .region-picker-panel span {
  padding: 8px 10px;
  font-size: 13px;
  text-align: center;
  color: var(--text-muted);
  border: 1px solid rgba(43, 74, 110, 0.5);
}

.page-home .region-picker-panel span:hover {
  color: var(--surface-white);
  border-color: var(--accent-orange);
}

.page-home .quick-link-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.page-home .quick-link-list a {
  display: block;
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  border: 1px solid rgba(43, 74, 110, 0.6);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.page-home .quick-link-list a:hover,
.page-home .quick-link-list a:focus-visible {
  color: var(--surface-white);
  background: rgba(0, 168, 255, 0.12);
  border-color: var(--accent-cyan);
}

.page-home .region-quick-note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-home .update-grid {
  display: grid;
  gap: 20px;
}

.page-home .news-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(43, 74, 110, 0.5);
}

.page-home .news-item:last-child {
  border-bottom: 0;
}

.page-home .news-tag {
  margin-bottom: 6px;
}

.page-home .news-link {
  display: block;
  margin-top: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--surface-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .news-link:hover {
  color: var(--accent-orange);
}

.page-home .news-meta {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-home .calendar-week {
  display: flex;
  gap: 4px;
  margin: 16px 0;
}

.page-home .week-day {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid rgba(43, 74, 110, 0.6);
}

.page-home .week-day--active {
  background: var(--home-grad-orange);
  border-color: var(--accent-orange);
  color: var(--surface-white);
  font-weight: 800;
}

.page-home .calendar-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--steel-blue);
  border-bottom: 1px solid var(--steel-blue);
}

.page-home .calendar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
}

.page-home .calendar-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--surface-white);
}

.page-home .calendar-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-home .update-figure img {
  aspect-ratio: 16 / 9;
}

.page-home .favorite-grid {
  display: grid;
  gap: 20px;
}

.page-home .step-list {
  counter-reset: step;
}

.page-home .step-list li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--surface-white);
}

.page-home .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: var(--surface-white);
  background: var(--home-grad-orange);
}

.page-home .sync-panel {
  display: grid;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.09) 0%, rgba(255, 107, 0, 0.06) 100%);
  border: 1px solid var(--steel-blue);
}

.page-home .section-index--inline {
  display: inline-block;
  min-width: auto;
  margin-right: 12px;
  font-size: 22px;
  line-height: 1;
  vertical-align: 3px;
}

.page-home .sync-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.page-home .sync-point {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: rgba(11, 26, 47, 0.55);
  border: 1px solid var(--steel-blue);
}

.page-home .sync-point-value {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-orange);
}

.page-home .sync-point:nth-child(2) .sync-point-value {
  color: var(--accent-cyan);
}

.page-home .sync-point-label {
  font-size: 13px;
  color: var(--text-muted);
}

.page-home .site-links-grid {
  display: grid;
  gap: 24px;
}

.page-home .home-slice--light .section-title,
.page-home .home-slice--light .block-title {
  color: var(--dark-gray);
}

.page-home .home-slice--light .site-links-desc {
  margin: 0;
  color: #3A4657;
}

.page-home .footnote-inner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .footnote-inner-links a {
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan-deep);
  text-decoration: none;
  border: 1px solid #8FA8C4;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-home .footnote-inner-links a:hover {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
  background: rgba(255, 107, 0, 0.08);
}

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

  .page-home .hero-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .favorite-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .page-home .update-figure {
    grid-column: 1 / -1;
  }

  .page-home .region-figure img {
    height: 100%;
    max-height: 420px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-main {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .page-home .hero-copy {
    grid-column: 1;
  }

  .page-home .hero-visual {
    grid-column: 2;
  }

  .page-home .hero-preview-grid,
  .page-home .hero-stats {
    grid-column: 1 / -1;
  }

  .page-home .hero-stats {
    margin-top: 8px;
  }

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

  .page-home .region-figure {
    height: 100%;
    min-height: 320px;
  }

  .page-home .region-figure img {
    height: 100%;
    max-height: none;
  }

  .page-home .favorite-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

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

  .page-home .sync-figure {
    width: 100%;
  }

  .page-home .site-links-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}
