/* Developer hub (/{lang}/docs): a stack of full-width rows, one per developer
   surface. Deliberately plain — the list IS the page, so a sub page is never
   more than one glance and one click away. Also carries .docs-back, the
   "up to Developers" link every docs sub page renders in its hero. */

.dh-hero {
  padding: 150px 0 40px;
  text-align: center;
}

.dh-hero .eyebrow-d {
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12.5px;
}

.dh-hero h1 {
  font-family: var(--font-display, inherit);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--w-ink);
}

.dh-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--w-mut);
  max-width: 620px;
  margin: 0 auto;
}

/* ---- The list ---- */
.dh-list-wrap { padding: 12px 0 8px; }

.dh-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dh-row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 26px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--w-line);
  box-shadow: 0 8px 24px rgba(31, 35, 33, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.dh-row:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(51, 117, 77, 0.35);
  box-shadow: 0 14px 34px rgba(31, 35, 33, 0.1);
  transform: translateY(-2px);
  color: inherit;
}

.dh-row:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--w-focus);
}

.dh-row-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(51, 117, 77, 0.1);
  color: var(--green-600);
  font-size: 21px;
}

.dh-row-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dh-row-title {
  font-family: var(--font-display, inherit);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--w-ink);
}

.dh-row-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--w-mut);
}

.dh-row-go {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(51, 117, 77, 0.08);
  color: var(--green-700);
  font-size: 14px;
  transition: transform var(--transition), background var(--transition);
}

.dh-row:hover .dh-row-go {
  background: var(--green-600);
  color: #fffdf4;
  transform: translateX(3px);
}

/* ---- Footer strip ---- */
.dh-foot { padding: 34px 0 80px; }

.dh-foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.dh-foot-card {
  display: block;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--w-line);
  background: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.dh-foot-card:hover {
  border-color: rgba(51, 117, 77, 0.3);
  background: rgba(255, 255, 255, 0.75);
  color: inherit;
}

.dh-foot-card i {
  display: block;
  font-size: 17px;
  color: var(--green-600);
  margin-bottom: 10px;
}

.dh-foot-title {
  display: block;
  font-weight: 650;
  font-size: 15.5px;
  color: var(--w-ink);
  margin-bottom: 4px;
}

.dh-foot-desc {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--w-mut);
}

/* ---- "Up to Developers" link, rendered on every docs sub page ---- */
.docs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
}

.docs-back:hover { color: var(--green-800); }
.docs-back i { font-size: 11px; }

@media (max-width: 720px) {
  .dh-hero { padding: 120px 0 28px; }
  .dh-hero h1 { font-size: 34px; }
  .dh-hero p { font-size: 16px; }
  .dh-row { padding: 20px; gap: 14px; }
  .dh-row-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
  .dh-row-title { font-size: 18px; }
  .dh-row-desc { font-size: 14px; }
  .dh-row-go { width: 30px; height: 30px; }
}
