﻿/* Home override to emulate clean classic MixMaster-like portal */
body[data-page="home"] {
  font-family: "Malgun Gothic", "맑은 고딕", Dotum, sans-serif !important;
  font-size: 12px !important;
  background-color: #edf1f5 !important;
  background-image:
    linear-gradient(180deg, rgba(237, 241, 245, 0.82), rgba(237, 241, 245, 0.76)),
    var(--site-background-image) !important;
  background-position: center top, center top !important;
  background-size: auto, cover !important;
  background-repeat: no-repeat, no-repeat !important;
  background-attachment: scroll, fixed !important;
  color: #2d3542 !important;
}

body[data-page="home"] .site-header {
  position: static !important;
  background: #fff !important;
  border-bottom: 1px solid #d8e0ea !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body[data-page="home"] .site-header-utility {
  display: block !important;
  background: rgba(44, 28, 25, 0.92) !important;
  border-bottom: 1px solid rgba(116, 80, 60, 0.35) !important;
}

body[data-page="home"] .site-header-utility-inner {
  display: flex !important;
  justify-content: flex-end !important;
}

body[data-page="home"] .site-header-utility-fill {
  display: none !important;
}

body[data-page="home"] .site-header-utility-links {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  min-height: 34px !important;
}

body[data-page="home"] .site-header-utility-links a,
body[data-page="home"] .header-account-tag {
  color: #f8dfc1 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body[data-page="home"] .site-header-brand-inner {
  min-height: 52px !important;
}

body[data-page="home"] .brand-logo-image {
  max-height: 32px !important;
  width: auto !important;
}

body[data-page="home"] .site-header-nav-line {
  background: #fff !important;
  border-top: 1px solid #edf2f7 !important;
}

body[data-page="home"] .header-inner {
  padding: 0 !important;
}

body[data-page="home"] .grouped-primary-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  justify-content: flex-start !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

body[data-page="home"] .nav-icon-wrap {
  display: none !important;
}

body[data-page="home"] .site-header,
body[data-page="home"] .site-header .container,
body[data-page="home"] .site-header-nav-line,
body[data-page="home"] .header-inner,
body[data-page="home"] .nav-group {
  overflow: visible !important;
}

body[data-page="home"] .nav-group {
  position: relative !important;
}

body[data-page="home"] .nav-group-trigger,
body[data-page="home"] .nav-utility-link {
  min-height: 48px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-right: 1px solid #eef3f8 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1f2b39 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

body[data-page="home"] .nav-group:hover .nav-group-trigger,
body[data-page="home"] .nav-group.is-active .nav-group-trigger,
body[data-page="home"] .nav-utility-link:hover,
body[data-page="home"] .nav-utility-link.is-active {
  color: #1b7ece !important;
  background: #f4f9ff !important;
}

body[data-page="home"] .nav-submenu {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 1px) !important;
  left: 0 !important;
  min-width: 180px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 1px solid #dce5f0 !important;
  background: #fff !important;
  z-index: 2600 !important;
}

body[data-page="home"] .nav-group:hover .nav-submenu,
body[data-page="home"] .nav-group:focus-within .nav-submenu,
body[data-page="home"] .nav-group.is-open .nav-submenu {
  display: block !important;
}

body[data-page="home"] .container {
  width: min(1160px, calc(100% - 24px)) !important;
}

body[data-page="home"] .home-dashboard-shell {
  padding-top: 12px !important;
}

body[data-page="home"] .home-dashboard-grid {
  grid-template-columns: 246px minmax(0, 1fr) !important;
  gap: 10px !important;
}

body[data-page="home"] .table-card,
body[data-page="home"] .premium-table-card,
body[data-page="home"] .home-member-panel-visual {
  border-radius: 4px !important;
  border: 1px solid #dbe3ee !important;
  background: #fff !important;
  box-shadow: none !important;
}

body[data-page="home"] .panel-head {
  margin-bottom: 8px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid #edf2f7 !important;
}

body[data-page="home"] .section-eyebrow {
  font-size: 11px !important;
  letter-spacing: 0 !important;
  color: #6c7c90 !important;
}

body[data-page="home"] .panel-title,
body[data-page="home"] .home-column-title {
  font-family: "Malgun Gothic", "맑은 고딕", Dotum, sans-serif !important;
  font-size: 16px !important;
  color: #26364a !important;
}

body[data-page="home"] .home-hero-card,
body[data-page="home"] .home-hero-card::before,
body[data-page="home"] .home-hero-card::after {
  background: #fff !important;
}

body[data-page="home"] .home-hero-copy .panel-title {
  font-size: 22px !important;
}

body[data-page="home"] .home-hero-copy .section-copy {
  font-size: 13px !important;
  color: #5f7086 !important;
}

body[data-page="home"] .home-hero-notice {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 8px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border: 1px solid #dce5ef !important;
  border-radius: 4px !important;
  background: #f7fbff !important;
  margin-bottom: 8px !important;
}

body[data-page="home"] .home-hero-notice strong {
  font-size: 11px !important;
  color: #1b7ece !important;
}

body[data-page="home"] .home-hero-notice a {
  font-size: 12px !important;
  color: #314963 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body[data-page="home"] .home-hero-meta {
  gap: 8px !important;
}

body[data-page="home"] .home-hero-meta > div {
  min-height: 58px !important;
  border-radius: 4px !important;
  border: 1px solid #e1e8f2 !important;
  background: #f8fbff !important;
}

body[data-page="home"] .home-hero-meta span {
  font-size: 11px !important;
}

body[data-page="home"] .home-hero-meta strong {
  font-size: 15px !important;
}

body[data-page="home"] .home-hero-actions .btn,
body[data-page="home"] .home-button-row .btn,
body[data-page="home"] .home-member-actions .btn {
  min-height: 36px !important;
  border-radius: 2px !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

body[data-page="home"] .btn,
body[data-page="home"] .btn:hover,
body[data-page="home"] .btn:focus {
  border-radius: 2px !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

body[data-page="home"] .btn::before,
body[data-page="home"] .btn::after,
body[data-page="home"] .btn.btn-primary::before,
body[data-page="home"] .btn.btn-primary::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}

body[data-page="home"] .btn.btn-primary {
  background: #2f6ea9 !important;
  border-color: #245883 !important;
  color: #fff !important;
}

/* Readability boost */
body[data-page="home"] .panel-title,
body[data-page="home"] .home-column-title {
  color: #1f2f45 !important;
  font-weight: 800 !important;
}

body[data-page="home"] .home-hero-copy .panel-title {
  color: #17314f !important;
}

body[data-page="home"] .section-copy,
body[data-page="home"] .list-meta,
body[data-page="home"] .home-list-row span,
body[data-page="home"] .home-mini-stats span,
body[data-page="home"] .home-top-summary span,
body[data-page="home"] .home-rank-meta,
body[data-page="home"] .home-empty-state p {
  color: #3e5672 !important;
}

body[data-page="home"] .home-list-row strong,
body[data-page="home"] .home-rank-name,
body[data-page="home"] .home-focus-row span,
body[data-page="home"] .home-mini-stats strong,
body[data-page="home"] .home-top-summary strong {
  color: #223a58 !important;
  font-weight: 700 !important;
}

body[data-page="home"] .home-hero-meta span {
  color: #4a6382 !important;
}

body[data-page="home"] .home-hero-meta strong {
  color: #1f3b5f !important;
}

body[data-page="home"] .btn.btn-ghost {
  background: #f8fbff !important;
  border-color: #c8d5e6 !important;
  color: #334b68 !important;
}

body[data-page="home"] .home-hero-tag {
  animation: none !important;
  border-radius: 3px !important;
  font-size: 11px !important;
}

body[data-page="home"] .home-quick-links {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body[data-page="home"] .home-quick-links > a:nth-child(n+5) {
  display: none !important;
}

body[data-page="home"] .home-quick-links a,
body[data-page="home"] .home-list-row {
  min-height: 36px !important;
  border-radius: 4px !important;
  border: 1px solid #dfe7f1 !important;
  background: #fbfdff !important;
  font-size: 12px !important;
}

body[data-page="home"] .home-list-row strong {
  font-size: 13px !important;
}

body[data-page="home"] .home-list-row span,
body[data-page="home"] .list-meta {
  font-size: 11px !important;
}

body[data-page="home"] .home-board-grid {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

body[data-page="home"] .home-board-grid > .table-card:nth-child(n+2) {
  display: none !important;
}

body[data-page="home"] .home-control-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body[data-page="home"] .home-focus-row {
  display: grid !important;
  gap: 2px !important;
  padding: 8px 10px !important;
  border-radius: 4px !important;
  border: 1px solid #dde6f1 !important;
  background: #f6f9fd !important;
  text-decoration: none !important;
}

body[data-page="home"] .home-focus-row strong {
  font-size: 11px !important;
  color: #1b7ece !important;
}

body[data-page="home"] .home-focus-row span {
  font-size: 12px !important;
  color: #324a66 !important;
}

body[data-page="home"] .home-hero-logo {
  max-height: 220px !important;
  object-fit: contain !important;
}

body[data-page="home"] .home-mini-stats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body[data-page="home"] .home-mini-stats > div {
  min-height: 50px !important;
  padding: 7px 9px !important;
  border: 1px solid #e2e9f2 !important;
  border-radius: 4px !important;
  background: #fbfdff !important;
}

body[data-page="home"] .home-mini-stats span {
  font-size: 11px !important;
}

body[data-page="home"] .home-mini-stats strong {
  font-size: 14px !important;
}

body[data-page="home"] .home-rank-row {
  min-height: 36px !important;
  border-radius: 4px !important;
  border: 1px solid #e2e9f2 !important;
  background: #fbfdff !important;
  padding: 0 8px !important;
}

body[data-page="home"] .home-rank-no {
  width: 22px !important;
  height: 22px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  background: #1b7ece !important;
  color: #fff !important;
}

body[data-page="home"] .home-top-summary {
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid #edf2f7 !important;
}

@media (max-width: 1100px) {
  body[data-page="home"] .home-dashboard-grid,
  body[data-page="home"] .home-board-grid,
  body[data-page="home"] .home-control-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .home-hero-meta,
  body[data-page="home"] .home-quick-links,
  body[data-page="home"] .home-mini-stats {
    grid-template-columns: 1fr !important;
  }

  body[data-page="home"] .grouped-primary-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Restore light theme and keep background image visible */
body[data-page="home"] {
  color: #2d3542 !important;
  background-color: #e2e8f0 !important;
  background-image: url('/homepage.webp'), url('/homepage.png') !important;
  background-position: center top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body[data-page="home"]::before {
  display: none !important;
}

body[data-page="home"] .page-shell,
body[data-page="home"] .home-dashboard-shell,
body[data-page="home"] .home-dashboard-shell::before {
  background: transparent !important;
}

body[data-page="home"] .home-dashboard-shell::before {
  display: none !important;
}

body[data-page="home"] .site-header,
body[data-page="home"] .site-header-nav-line {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: #d8e0ea !important;
}

body[data-page="home"] .nav-group-trigger,
body[data-page="home"] .nav-utility-link {
  color: #1f2b39 !important;
}

body[data-page="home"] .nav-group:hover .nav-group-trigger,
body[data-page="home"] .nav-group.is-open .nav-group-trigger,
body[data-page="home"] .nav-group:focus-within .nav-group-trigger,
body[data-page="home"] .nav-utility-link:hover {
  background: #f4f9ff !important;
  color: #1b7ece !important;
}

body[data-page="home"] .nav-submenu {
  background: #fff !important;
  border-color: #dce5f0 !important;
}

body[data-page="home"] .home-member-panel-visual,
body[data-page="home"] .table-card,
body[data-page="home"] .premium-table-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: #dbe3ee !important;
  color: #2d3542 !important;
}

body[data-page="home"] .btn.btn-primary {
  background: #2f6ea9 !important;
  border-color: #245883 !important;
  color: #fff !important;
}

body[data-page="home"] .btn.btn-danger {
  background: #e04e4e !important;
  border-color: #bf3c3c !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

body[data-page="home"] .brand-logo-image {
  max-height: 56px !important;
}

body[data-page="home"] .site-header-brand-inner {
  min-height: 72px !important;
}

/* Home top 5 menu: stable dropdown under each category */
body[data-page="home"] .site-header.classic-site-header {
  position: relative !important;
  z-index: 3000 !important;
}

body[data-page="home"] .site-header.classic-site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 190px;
  background: rgba(232, 238, 246, 0.58);
  border-top: 1px solid rgba(190, 206, 224, 0.75);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 2100;
}

body[data-page="home"] .site-header.classic-site-header.nav-blind-on::after {
  opacity: 1;
}

body[data-page="home"] .site-header-nav-line,
body[data-page="home"] .header-inner {
  overflow: visible !important;
}

body[data-page="home"] .header-inner {
  display: flex !important;
  justify-content: center !important;
}

body[data-page="home"] .grouped-primary-nav {
  width: auto !important;
  margin: 0 auto !important;
  justify-content: center !important;
  align-items: stretch !important;
}

body[data-page="home"] .nav-group {
  display: flex !important;
  flex-direction: column !important;
  min-width: 130px;
}

body[data-page="home"] .grouped-primary-nav > .nav-group,
body[data-page="home"] .grouped-primary-nav > .nav-utility-link {
  flex: 0 0 130px;
}

body[data-page="home"] .nav-submenu {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  min-width: 0 !important;
  width: 100% !important;
  margin-top: 0 !important;
  padding: 6px 0 !important;
  border-top: 1px solid #e4ecf6 !important;
  border-radius: 0 !important;
  background: #fafdff !important;
}

body[data-page="home"] .nav-submenu a {
  min-height: 34px !important;
  padding: 0 12px !important;
  color: #24415f !important;
}

body[data-page="home"] .nav-group:not(.is-open):not(:hover):not(:focus-within) .nav-submenu {
  display: none !important;
}

body[data-page="home"] .nav-group.is-open .nav-submenu,
body[data-page="home"] .nav-group:hover .nav-submenu,
body[data-page="home"] .nav-group:focus-within .nav-submenu {
  display: block !important;
}

/* 2026-04 header logo size up */
body[data-page="home"] .site-header-brand-line {
  padding: 6px 0 !important;
}

body[data-page="home"] .site-header-brand-inner {
  min-height: 108px !important;
}

body[data-page="home"] .brand-block {
  justify-content: center !important;
}

body[data-page="home"] .brand-logo-image {
  height: 88px !important;
  max-height: none !important;
  width: auto !important;
}
