/* Appily Seventeen — Grow Relay Post contact */

.page-grow-relay .page-main {
  background: linear-gradient(180deg, #eef6f1 0%, #f4f8f5 28%, #fafcfb 100%);
}

/* ── Relay post hero ── */
.gr-post {
  position: relative;
  padding: 48px 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 75% 30%, rgba(59, 183, 126, 0.18) 0%, transparent 55%),
    linear-gradient(165deg, #1e3d32 0%, #2a5244 45%, #253d4e 100%);
  color: #f0f7f3;
}
.gr-post-mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.gr-post-lamp {
  position: absolute;
  top: 24px;
  right: 12%;
  pointer-events: none;
}
.gr-lamp-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.35) 0%, transparent 70%);
  animation: grLampGlow 3s ease-in-out infinite;
}
.gr-lamp-bulb {
  position: relative;
  display: block;
  width: 28px;
  height: 36px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #ffc107, #ff9800);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
}
.gr-lamp-bulb::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 12px;
  height: 8px;
  margin-left: -6px;
  background: #6b7280;
  border-radius: 0 0 4px 4px;
}
@keyframes grLampGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.gr-post-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 36px;
}
.gr-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(59, 183, 126, 0.2);
  border: 1px solid rgba(126, 224, 173, 0.35);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7ee0ad;
}
.gr-post-copy h1 {
  margin: 0 0 14px;
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  line-height: 1.12;
  font-weight: 700;
}
.gr-post-copy h1 em {
  font-style: normal;
  color: #7ee0ad;
}
.gr-lede {
  margin: 0 0 18px;
  max-width: 48ch;
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(240, 247, 243, 0.82);
}
.gr-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gr-topic-chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  font-weight: 600;
}

.gr-post-badge {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 22px 20px 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}
.gr-badge-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3bb77e, #2d9668);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.gr-badge-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 247, 243, 0.55);
}
.gr-badge-code {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.82rem;
  color: #7ee0ad;
}
.gr-post-lip {
  position: relative;
  height: 12px;
  background: linear-gradient(180deg, #253d4e, #7aab8e);
}
.gr-post-lip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, #3bb77e 0, #3bb77e 14px, #2d9668 14px, #2d9668 16px);
  opacity: 0.55;
}

/* ── Floor layout ── */
.gr-floor {
  padding: 40px 0 72px;
}
.gr-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

/* Relay slip form */
.gr-slip {
  position: relative;
  padding: 28px 28px 32px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dceee4;
  box-shadow: 0 20px 56px rgba(30, 61, 50, 0.08);
  overflow: hidden;
}
.gr-slip-slot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 8px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #253d4e, #1a3d32);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.gr-slip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  margin-bottom: 24px;
  padding-top: 8px;
  padding-bottom: 18px;
  border-bottom: 2px dashed #dceee4;
}
.gr-slip-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3bb77e, #2d9668);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}
.gr-slip-label {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3bb77e;
}
.gr-slip-head h2 {
  margin: 0;
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: 1.35rem;
  color: #253d4e;
}
.gr-slip-ref {
  margin-left: auto;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.72rem;
  color: #8a9aa8;
}

.gr-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.gr-notice-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.gr-notice-success p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}
.gr-notice-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3bb77e;
  color: #fff;
  font-weight: 800;
}
.gr-notice-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.gr-fields {
  display: grid;
  gap: 16px;
}
.gr-fields-duo {
  grid-template-columns: 1fr 1fr;
}
.gr-field-wide {
  grid-column: 1 / -1;
}
.gr-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4b5563;
}
.gr-optional {
  font-weight: 500;
  color: #9ca3af;
}
.gr-field input,
.gr-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c8ddd2;
  border-radius: 10px;
  background: #fafcfb;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gr-field input:focus,
.gr-field textarea:focus {
  outline: none;
  border-color: #3bb77e;
  box-shadow: 0 0 0 3px rgba(59, 183, 126, 0.15);
  background: #fff;
}
.gr-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #eef6f1;
}
.gr-fine {
  margin: 0;
  font-size: 0.78rem;
  color: #8a9aa8;
}
.gr-fine a {
  color: #3bb77e;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gr-slip-perf {
  position: absolute;
  bottom: 12px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: repeating-linear-gradient(90deg, #253d4e 0, #253d4e 4px, transparent 4px, transparent 8px);
  opacity: 0.08;
}

/* Registry sidebar */
.gr-registry {
  position: sticky;
  top: 100px;
  padding: 24px 22px;
  border-radius: 16px;
  background: linear-gradient(160deg, #253d4e 0%, #1a3d32 100%);
  color: #f0f7f3;
  overflow: hidden;
}
.gr-registry-texture {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23fff' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}
.gr-registry-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.gr-registry-icon {
  font-size: 1.4rem;
}
.gr-registry-head h2 {
  margin: 0 0 4px;
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: 1.15rem;
}
.gr-registry-head p {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.75;
}
.gr-registry-list {
  position: relative;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gr-registry-card {
  position: relative;
  padding: 12px 14px 12px 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.gr-registry-dot {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ee0ad;
  box-shadow: 0 0 8px rgba(126, 224, 173, 0.5);
}
.gr-registry-key {
  display: block;
  margin-bottom: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}
.gr-registry-val {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  text-decoration: none;
  word-break: break-word;
}
a.gr-registry-val:hover {
  color: #7ee0ad;
}
.gr-registry-links {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Buttons */
.gr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.gr-btn-primary {
  background: linear-gradient(145deg, #3bb77e, #2d9668);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 183, 126, 0.35);
}
.gr-btn-primary:hover {
  background: linear-gradient(145deg, #45c98a, #359f72);
  transform: translateY(-1px);
}
.gr-btn-soft {
  background: rgba(59, 183, 126, 0.2);
  color: #7ee0ad;
  border: 1px solid rgba(126, 224, 173, 0.3);
}
.gr-btn-soft:hover {
  background: rgba(59, 183, 126, 0.3);
}
.gr-btn-outline {
  background: transparent;
  color: rgba(240, 247, 243, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.gr-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Quick rail */
.gr-quick-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gr-quick-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dceee4;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.gr-quick-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(30, 61, 50, 0.1);
  border-color: #3bb77e;
}
.gr-quick-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #253d4e;
  color: #7ee0ad;
  font-size: 0.78rem;
  font-weight: 800;
}
.gr-quick-body strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--fv-font-alt, 'Quicksand', sans-serif);
  font-size: 0.95rem;
  color: #253d4e;
}
.gr-quick-body span {
  font-size: 0.78rem;
  color: #6b7280;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .gr-post-inner {
    grid-template-columns: 1fr;
  }
  .gr-post-lamp {
    display: none;
  }
  .gr-layout {
    grid-template-columns: 1fr;
  }
  .gr-registry {
    position: static;
  }
  .gr-fields-duo {
    grid-template-columns: 1fr;
  }
  .gr-quick-rail {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .gr-slip {
    padding: 22px 18px 28px;
  }
  .gr-slip-ref {
    margin-left: 0;
    width: 100%;
  }
  .gr-form-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .gr-form-foot .gr-btn {
    width: 100%;
  }
}
