/* =============================================================================
   DPL page shell (redesign batch 8): the shared look of the pages no earlier batch covered (account, order
   received, blog, content and legal pages). Tokens: dpl-design-system.css. The page banner itself:
   component-dpl-page-banner.css.
   ============================================================================= */

.dpl-page {
  background: var(--dpl-surface-grey);
  padding: 24px 0 var(--dpl-section-padding);
}

.dpl-page > .page-width {
  display: grid;
  gap: 24px;
}

/* The page banner on a content page: the same dark band as search and the categories. */
.dpl-page-banner--page {
  padding: 32px 20px;
}

@media screen and (min-width: 750px) {
  .dpl-page-banner--page {
    padding: 48px 40px;
  }

  .dpl-page-banner--page .dpl-page-banner__title {
    font-size: 40px;
  }
}

/* The white heading on account and order pages, where the forms are the focus. */
.dpl-page-head {
  display: grid;
  gap: 8px;
}

.dpl-page-head h1,
.dpl-page-head__title {
  font-family: var(--dpl-font-heading);
  font-weight: var(--dpl-weight-strong);
  font-size: var(--dpl-h1);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--dpl-text);
  margin: 0;
}

.dpl-page-head p {
  margin: 0;
  color: var(--dpl-text-muted);
}

/* Long text: legal pages, policies, the article body. */
.dpl-prose {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: var(--dpl-surface);
  border: 1px solid var(--dpl-border);
  border-radius: var(--dpl-radius-card);
  box-shadow: var(--dpl-shadow-card);
  padding: 28px 20px;
  font-size: var(--dpl-text-size);
  line-height: 1.65;
  color: var(--dpl-text-body);
  overflow-wrap: anywhere;
}

@media screen and (min-width: 750px) {
  .dpl-prose {
    padding: 40px;
  }
}

.dpl-prose > :first-child {
  margin-top: 0;
}

.dpl-prose > :last-child {
  margin-bottom: 0;
}

.dpl-prose h2 {
  font-size: var(--dpl-h2);
  font-weight: var(--dpl-weight-strong);
  line-height: 1.25;
  margin: 1.6em 0 0.6em;
  color: var(--dpl-text);
}

.dpl-prose h3 {
  font-size: var(--dpl-h3);
  font-weight: var(--dpl-weight-strong);
  line-height: 1.3;
  margin: 1.4em 0 0.5em;
  color: var(--dpl-text);
}

.dpl-prose a {
  color: var(--dpl-text);
  text-decoration: underline;
  text-decoration-color: var(--dpl-accent);
  text-underline-offset: 3px;
}

.dpl-prose table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.dpl-prose th,
.dpl-prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--dpl-border);
  text-align: left;
}

/* Fields: the checkout's look (batch 6). */
.dpl-field-group label {
  display: block;
  font-size: var(--dpl-text-size-small);
  font-weight: 500;
  color: var(--dpl-text);
  letter-spacing: 0;
  margin-bottom: 6px;
}

.dpl-field-group input[type='text'],
.dpl-field-group input[type='email'],
.dpl-field-group input[type='password'],
.dpl-field-group input[type='tel'],
.dpl-field-group input[type='number'],
.dpl-field-group select,
.dpl-field-group textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--dpl-border);
  border-radius: var(--dpl-radius-input);
  background: var(--dpl-surface);
  padding: 12px 14px;
  font: inherit;
  color: var(--dpl-text);
  box-shadow: none;
}

.dpl-field-group input:focus-visible,
.dpl-field-group select:focus-visible,
.dpl-field-group textarea:focus-visible {
  outline: 2px solid var(--dpl-accent);
  outline-offset: 1px;
  border-color: var(--dpl-accent);
}

/* Pill navigation (account menu, FAQ groups). */
.dpl-pill-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
  padding: 2px;
  list-style: none;
}

.dpl-pill-nav::-webkit-scrollbar {
  display: none;
}

.dpl-pill-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--dpl-btn-height-sm);
  padding: 0 18px;
  border-radius: var(--dpl-radius-pill);
  border: 1px solid var(--dpl-border);
  background: var(--dpl-surface);
  color: var(--dpl-text);
  font-size: var(--dpl-text-size-small);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--dpl-duration-btn) var(--dpl-ease), background-color var(--dpl-duration-btn) var(--dpl-ease);
}

.dpl-pill-nav__link:hover {
  border-color: var(--dpl-border-hover);
}

.dpl-pill-nav__link--active,
.dpl-pill-nav__link[aria-current='page'] {
  background: var(--dpl-surface-tint);
  border-color: var(--dpl-accent);
  color: var(--dpl-text);
  font-weight: var(--dpl-weight-strong);
}

@media (prefers-reduced-motion: reduce) {
  .dpl-pill-nav__link {
    transition: none;
  }
}

/* Bold text on these pages: 600, the design's heaviest weight (the legal HTML uses <strong>). */
.dpl-page strong,
.dpl-page b {
  font-weight: var(--dpl-weight-strong);
}

/* Table headers in prose and policy tables, and CusRev's light date line: within the design's 400-600. */
.dpl-page th {
  font-weight: var(--dpl-weight-strong);
}

.dpl-page .datetime {
  font-weight: var(--dpl-weight-body);
}
