/* Homepage modules only. Layout chrome lives in style.css and loads site wide. */

.dd4791-home { display: block; }

/* ---------- 1. text hero ---------- */

.dd4791-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, .72fr);
  gap: 56px;
  align-items: end;
  padding: 24px 0 0;
}

.dd4791-hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 22px;
  max-width: 15ch;
}
.dd4791-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.dd4791-hero-lead {
  font-size: 17px;
  line-height: 1.68;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0;
}

.dd4791-hero-rule {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--border);
  margin: 34px 0 0;
}

.dd4791-hero-aside {
  padding-bottom: 6px;
  border-left: 1px solid var(--border);
  padding-left: 26px;
}
.dd4791-hero-aside p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.dd4791-hero-aside p:last-child { margin-bottom: 0; }
.dd4791-hero-aside .dd4791-aside-label {
  display: block;
  font-family: var(--font-head);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}

/* ---------- 2. category rail ---------- */

.dd4791-rail {
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.dd4791-rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--neu-out-sm);
  padding: 15px 16px;
  min-height: 66px;
  transition: box-shadow .2s ease;
}
.dd4791-rail a:hover { box-shadow: var(--neu-in); }
.dd4791-rail svg {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dd4791-rail span {
  font-family: var(--font-head);
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--text);
}

/* ---------- 4. four steps ---------- */

.dd4791-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: dd4791step;
}

.dd4791-step {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--neu-out);
  padding: 22px 20px 20px;
}
.dd4791-step-num {
  counter-increment: dd4791step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-alt);
  box-shadow: var(--neu-in);
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
}
.dd4791-step-num::before { content: "0" counter(dd4791step); }
.dd4791-step h3 { font-size: 15px; margin: 0 0 8px; }
.dd4791-step p { margin: 0; font-size: 13px; line-height: 1.62; color: var(--text-muted); }
.dd4791-step::after {
  content: "";
  position: absolute;
  top: 41px;
  right: -18px;
  width: 18px;
  height: 1px;
  background: var(--border);
}
.dd4791-step:last-child::after { display: none; }

/* ---------- 5. author micro card ---------- */

.dd4791-home-author { margin: 46px 0 0; max-width: 720px; }
.dd4791-home-author .dd4791-author { margin: 0; }

@media (max-width: 1180px) {
  .dd4791-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dd4791-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dd4791-step::after { display: none; }
}

@media (max-width: 900px) {
  .dd4791-hero { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .dd4791-hero h1 { max-width: none; }
  .dd4791-hero-aside { border-left: 0; border-top: 1px solid var(--border); padding: 18px 0 0; }
}

@media (max-width: 700px) {
  .dd4791-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dd4791-steps { grid-template-columns: 1fr; }
}
