/* 교민물류 앱 유도 (layout.html, every page): header link, [교민물류 앱 시작하기] buttons, the main app section and the
   /find-gx app cards. Site tokens only. .gx-app-stores holds the store buttons (App Store goes next to Google Play). */
body.ea-site.gx-site .gx-nav-app {
  color: var(--ea-blue) !important;
  font-weight: 800;
}

body.ea-site.gx-site .gx-app-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.ea-site.gx-site .gx-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

/* Main page section (#gx-app) */
body.ea-site.gx-site .gx-app {
  padding: 28px;
  border: var(--ea-card-border);
  border-radius: var(--ea-radius);
  background: linear-gradient(180deg, var(--ea-blue-soft), #fff 70%);
}

body.ea-site.gx-site .gx-app .ea-section__head {
  margin-bottom: 18px;
}

body.ea-site.gx-site .gx-app__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.ea-site.gx-site .gx-app__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: var(--ea-card-border);
  border-radius: var(--ea-radius-sm);
  background: #fff;
}

body.ea-site.gx-site .gx-app__icon {
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ea-blue-soft);
  color: var(--ea-blue);
  font-size: 1.15rem;
  font-weight: 800;
}

body.ea-site.gx-site .gx-app__item h3 {
  margin: 0 0 4px;
  color: var(--ea-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

body.ea-site.gx-site .gx-app__item p {
  margin: 0;
  color: var(--ea-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

body.ea-site.gx-site .gx-app__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: 18px;
}

body.ea-site.gx-site .gx-app__existing {
  display: flex;
  gap: 8px;
  flex: 1 1 320px;
  margin: 0;
  color: var(--ea-ink);
  font-size: 0.92rem;
  line-height: 1.6;
}

body.ea-site.gx-site .gx-app__existing i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--ea-blue);
}

/* App card (/find-gx before / after a lookup, 주소 기재 방법 app member card) */
body.ea-site.gx-site .gx-app-card {
  padding: 20px;
  border: 2px solid var(--ea-blue);
  border-radius: var(--ea-radius);
  background: linear-gradient(180deg, var(--ea-blue-soft), #fff 75%);
  text-align: left;
}

body.ea-site.gx-site .gx-app-card h3 {
  margin: 0 0 6px;
  color: var(--ea-ink);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.ea-site.gx-site .gx-app-card > p {
  margin: 0 0 12px;
  color: var(--ea-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

body.ea-site.gx-site .gx-app-checks {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

body.ea-site.gx-site .gx-app-checks li {
  display: flex;
  gap: 8px;
  color: var(--ea-ink);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.5;
}

body.ea-site.gx-site .gx-app-checks li::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--ea-blue);
  font-weight: 800;
}

body.ea-site.gx-site .gx-app-card .gx-app-btn {
  width: 100%;
}

@media (max-width: 980px) {
  body.ea-site.gx-site .gx-app__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.ea-site.gx-site .gx-app {
    padding: 18px 16px;
  }

  body.ea-site.gx-site .gx-app__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.ea-site.gx-site .gx-app__item {
    padding: 12px;
  }

  body.ea-site.gx-site .gx-app__foot .gx-app-stores,
  body.ea-site.gx-site .gx-app__foot .gx-app-btn {
    width: 100%;
  }

  body.ea-site.gx-site .gx-app-card {
    padding: 16px;
  }
}

/* 주소 기재 방법, 앱 회원 card: what the app adds + the button */
body.ea-site.gx-site .ug-way__appcta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

body.ea-site.gx-site .ug-way .ug-way__appcta p {
  margin: 0;
  color: var(--ea-ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

body.ea-site.gx-site .ug-way .ug-way__appcta p.ug-way__existing {
  display: flex;
  gap: 8px;
  color: var(--ea-muted);
  font-weight: 500;
}

body.ea-site.gx-site .ug-way__existing i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--ea-blue);
}

@media (max-width: 640px) {
  body.ea-site.gx-site .ug-way__appcta .gx-app-btn,
  body.ea-site.gx-site .ug-way__app .gx-app-btn {
    width: 100%;
  }
}

/* Footer contact (layout.html, every page) */
body.ea-site.gx-site .gx-footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 0.95rem;
}

body.ea-site.gx-site .gx-footer-contact i {
  color: var(--ea-blue);
}

body.ea-site.gx-site .gx-footer-contact a {
  color: var(--ea-ink);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.ea-site.gx-site .gx-footer-contact a:hover {
  color: var(--ea-blue);
  text-decoration: underline;
}
