/* Home page of the documentation (docs/index.md). Every rule targets the 'dcn-' classes of that page, so that the
   readthedocs theme of the other pages is left as it is. */

:root {
  --dcn-blue: #2b95f6;
  --dcn-blue-dark: #1565c0;
  --dcn-ink: #1f2933;
  --dcn-muted: #52606d;
  --dcn-border: #d9e2ec;
  --dcn-surface: #f5f8fc;
}

/* Hero */
.dcn-hero {
  margin: 0 0 32px;
  padding: 40px 36px 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--dcn-blue-dark) 0%, var(--dcn-blue) 60%, #4fc3f7 100%);
}

.dcn-hero .dcn-hero-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.rst-content .dcn-hero h1.dcn-hero-title {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.1;
  color: #fff;
}

.dcn-hero .dcn-hero-lead {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.55;
}

.dcn-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rst-content a.dcn-button,
.rst-content a.dcn-button:visited {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.rst-content a.dcn-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.rst-content a.dcn-button-primary,
.rst-content a.dcn-button-primary:visited {
  border-color: #fff;
  background-color: #fff;
  color: var(--dcn-blue-dark);
}

.rst-content a.dcn-button-primary:hover {
  background-color: #e3f2fd;
}

/* Collect / Understand / Govern */
.dcn-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
  margin: 0 0 32px;
}

.dcn-pillar {
  padding: 20px;
  border: 1px solid var(--dcn-border);
  border-radius: 10px;
  background: var(--dcn-surface);
}

.dcn-pillar-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  background: var(--dcn-blue);
}

.rst-content .dcn-pillar h3,
.rst-content .dcn-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--dcn-ink);
}

.rst-content .dcn-pillar p,
.rst-content .dcn-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dcn-muted);
}

/* Architecture */
.dcn-architecture {
  margin: 8px 0 24px;
  padding: 16px;
  border: 1px solid var(--dcn-border);
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.dcn-architecture img {
  max-width: 100%;
  height: auto;
}

.dcn-architecture figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--dcn-muted);
}

.dcn-ports-wrapper {
  margin: 0 0 16px;
  overflow-x: auto;
}

.rst-content table.dcn-ports {
  width: 100% !important;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
}

.rst-content table.dcn-ports th,
.rst-content table.dcn-ports td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--dcn-border);
  text-align: left;
}

.rst-content table.dcn-ports th {
  color: var(--dcn-muted);
  font-weight: 600;
  background: var(--dcn-surface);
}

/* Views */
.dcn-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  margin: 0 0 32px;
}

.rst-content a.dcn-card,
.rst-content a.dcn-card:visited {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--dcn-border);
  border-top: 3px solid var(--dcn-blue);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.rst-content a.dcn-card:hover {
  box-shadow: 0 6px 18px rgba(31, 41, 51, 0.12);
  transform: translateY(-2px);
}

/* Getting started */
.rst-content ol.dcn-steps {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: dcn-step;
}

.rst-content ol.dcn-steps li {
  position: relative;
  margin: 0 0 12px;
  padding: 2px 0 0 44px;
  min-height: 32px;
  line-height: 1.55;
  list-style: none;
  counter-increment: dcn-step;
}

.rst-content ol.dcn-steps li::before {
  content: counter(dcn-step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--dcn-blue);
  border-radius: 50%;
  font-weight: 700;
  color: var(--dcn-blue);
}

@media (max-width: 600px) {
  .dcn-hero {
    padding: 28px 20px;
  }

  .rst-content .dcn-hero h1.dcn-hero-title {
    font-size: 32px;
  }
}
