/* DHP Dev - Start Free
   Values follow the Developer Experience handoff. Full-bleed tinted band
   (--nav-blue): background on the <section>, content in .container. Panel
   headings get the serif from the theme's .heading-font class in
   module.html. No font-family here: snippets use <pre>, which the browser
   already sets in monospace. */

.dhd-free {
  padding: 7rem 0;
  background-color: var(--nav-blue);
}

/* Heading block */
.dhd-free_head {
  margin: 0 auto 3.5rem;
  max-width: 900px;
  text-align: center;
}
.dhd-free h2 {
  margin-bottom: 1.5rem;
  font-size: 2.75rem;
  line-height: 1.2;
  color: var(--virtru-blue);
}
.dhd-free_head .subtitle {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--dark-gray);
}

/* Panels */
.dhd-free_panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.dhd-free_panels--solo { grid-template-columns: 1fr; }
.dhd-free_panel {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: 16px;
}
.dhd-free_eyebrow {
  margin: 0 0 1rem;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--virtru-blue);
}
.dhd-free_panel h3 {
  margin-bottom: 1.25rem;
  font-size: 1.625rem;
  line-height: 1.25;
  color: var(--dark-blue);
}
.dhd-free_body p,
.dhd-free_body li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark-gray);
}
.dhd-free_body p { margin: 0 0 1rem; }
.dhd-free_body ul,
.dhd-free_body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.dhd-free_body li { margin-bottom: .375rem; }

.dhd-free_snippet {
  margin: 0 0 .75rem;
  padding: .75rem 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--gray);
  background: none;
  border: 1px dashed var(--light-blue);
  border-radius: 8px;
}
.dhd-free_snippet code {
  font-size: inherit;
  color: inherit;
  background: none;
}

/* Content grows to fill the card, so the actions and small print sit at
   its bottom (stacked layout, and browsers without subgrid). */
.dhd-free_main { flex: 1 0 auto; }

/* Buttons and text links share one row. */
.dhd-free_actions {
  padding-top: .75rem;
  align-items: center;
}

/* Side by side: each panel takes three rows of the shared grid (content /
   actions / small print) via subgrid, so the button rows line up across
   both panels even when only one has small print under its buttons. */
@media (min-width: 1081px) {
  @supports (grid-template-rows: subgrid) {
    .dhd-free_panels { row-gap: 0; }
    .dhd-free_panel {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
  }
}

/* Text links: bold and underlined, as in the handoff. */
.dhd-free_link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--virtru-blue);
}
.dhd-free_link:hover { color: var(--dark-blue); }

.dhd-free_note {
  margin: 1.25rem 0 0;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--gray);
}

/* Callout. Text is --dark-blue: --gray would fail AA on --lightest-blue. */
.dhd-free_callout {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--lightest-blue);
  border-radius: 8px;
}
.dhd-free_callout-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark-blue);
}

@media (max-width: 1080px) {
  .dhd-free_panels { grid-template-columns: 1fr; }
}

/* Phones: left-aligned heading block, tighter panels, stacked buttons. */
@media (max-width: 768px) {
  .dhd-free { padding: 3.5rem 0; }
  .dhd-free_head {
    margin-bottom: 1.75rem;
    text-align: left;
  }
  .dhd-free h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    line-height: 1.2;
  }
  .dhd-free_head .subtitle { font-size: 1.0625rem; }
  .dhd-free_panels { gap: .75rem; }
  .dhd-free_panel { padding: 1.5rem 1.25rem; }
  .dhd-free_panel h3 { font-size: 1.375rem; }
  .dhd-free_actions {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .dhd-free_actions .button { text-align: center; }
  .dhd-free_actions .dhd-free_link {
    align-self: flex-start;
    padding: .375rem 0;
  }
}
