/* Shared article previews and navigation. No Elementor selectors or post IDs. */
.dp-feed, .dp-feed-page {
  --dp-feed-ink: var(--dp-primary, #1d3557);
  --dp-feed-teal: var(--dp-secondary, #2a9d8f);
  --dp-feed-muted: #4b5f73;
  --dp-feed-line: #dbe6ef;
  color: var(--dp-feed-ink);
  font-family: var(--dp-font-body, "Open Sans", system-ui, sans-serif);
  min-width: 0;
}
.dp-feed *, .dp-feed-page * { box-sizing: border-box; }
.dp-feed__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dp-feed__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dp-feed .dp-preview {
  min-width: 0; margin: 0; padding: 26px; display: flex; flex-direction: column;
  border: 1px solid var(--dp-feed-line); border-radius: 18px; background: #fff;
  box-shadow: 0 8px 24px rgba(16, 36, 58, .04);
}
.dp-feed .dp-preview--featured { background: #edf6f4; border-color: #a8cdc6; border-top: 4px solid var(--dp-feed-teal); padding-top: 23px; }
.dp-preview__date {
  display: block; margin: 0 0 15px; color: #4b5f73; font-size: .82rem;
  font-weight: 500; line-height: 1.55; overflow-wrap: anywhere;
}
.dp-preview__date--updated { color: #185b51; border-left: 3px solid #2a9d8f; padding-left: 10px; font-weight: 700; }
.dp-feed .dp-preview__date { margin: 0 0 15px; font-size: .82rem; line-height: 1.55; }
.dp-feed .dp-preview__topic { color: #41627f; font-size: .72rem; font-weight: 700; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.dp-feed .dp-preview .dp-preview__title { margin: 0 0 16px; font-family: var(--dp-font-head, "Montserrat", system-ui, sans-serif); font-size: clamp(1.15rem, 1.5vw, 1.3rem); font-weight: 700; line-height: 1.35 !important; letter-spacing: normal; text-wrap: pretty; color: var(--dp-feed-ink); overflow-wrap: anywhere !important; word-break: normal !important; hyphens: auto !important; }
.dp-feed .dp-preview .dp-preview__title a { display: inline; color: inherit; font-family: inherit; letter-spacing: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; text-decoration: none; overflow-wrap: anywhere !important; word-break: normal !important; hyphens: auto !important; }
.dp-feed .dp-preview__title a:hover { color: #1d6e63; text-decoration: underline; text-underline-offset: 3px; }
.dp-feed .dp-preview__excerpt { margin: 0 0 22px; color: var(--dp-feed-muted); font-size: .96rem; line-height: 1.7; overflow-wrap: anywhere; }
.dp-feed .dp-preview__more { margin-top: auto; padding-top: 4px; color: var(--dp-feed-ink); font-size: .93rem; font-weight: 700; line-height: 1.55; text-decoration: underline; text-underline-offset: 4px; }
.dp-feed a:focus-visible, .dp-feed-page a:focus-visible { outline: 3px solid #e9c46a; outline-offset: 4px; border-radius: 2px; }
.dp-feed--section { width: min(1180px, 100%); margin: 64px auto; padding: 0 24px; }
.dp-feed__section-head { max-width: 820px; margin-bottom: 26px; }
.dp-feed .dp-feed__section-head h2, .dp-feed-page h2 { color: var(--dp-feed-ink); margin: 0 0 16px; font-size: clamp(1.65rem, 2.8vw, 2.25rem); line-height: 1.25; overflow-wrap: anywhere !important; word-break: normal !important; hyphens: auto !important; }
.dp-feed .dp-feed__section-head p, .dp-feed-page__intro p { font-size: 1rem; line-height: 1.75; }
.dp-feed .dp-feed__eyebrow, .dp-feed-page .dp-feed__eyebrow { color: #41627f; margin: 0 0 12px; font-size: .78rem; line-height: 1.5; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dp-feed .dp-feed__all { margin: 24px 0 0; }
.dp-feed .dp-feed__all a { color: var(--dp-feed-ink); font-size: 1rem; line-height: 1.6; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.dp-feed-page { max-width: 1180px; margin: 0 auto; padding: 40px 24px 64px; }
.dp-feed-page__intro { max-width: 900px; margin-bottom: 48px; }
.dp-feed-page h1 { color: var(--dp-feed-ink); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; margin: 0 0 24px; overflow-wrap: anywhere !important; word-break: normal !important; hyphens: auto !important; }
.dp-feed-page__section { margin: 48px 0; }
.dp-feed-page__section > p { max-width: 840px; margin: 0 0 24px; font-size: 1rem; line-height: 1.7; }
.dp-feed__pagination { margin-top: 32px; }
.dp-feed .dp-feed__pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dp-feed .dp-feed__pagination li { margin: 0; padding: 0; list-style: none; }
.dp-feed .dp-feed__pagination a, .dp-feed .dp-feed__pagination span { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; font-size: .95rem; line-height: 1.5; color: var(--dp-feed-ink); border: 1px solid var(--dp-feed-line); border-radius: 8px; text-decoration: none; background: #fff; }
.dp-feed .dp-feed__pagination .current { background: var(--dp-feed-ink); color: #fff; border-color: var(--dp-feed-ink); }
.dp-feed .dp-feed__pagination a:hover { background: #edf6f4; }
.dp-feed-page__cta { padding: 32px; border-radius: 20px; background: #1d3557; color: #fff; }
.dp-feed-page .dp-feed-page__cta h2 { color: #fff; }
.dp-feed-page__cta p { font-size: 1rem; line-height: 1.7; }
.dp-feed-page .dp-feed-page__cta a { display: inline-block; padding: 12px 20px; border-radius: 12px; background: #e9c46a; color: #1d3557; font-weight: 700; font-size: 1rem; line-height: 1.5; text-decoration: none; }
.wp-block-latest-posts .dp-preview__date { margin-bottom: 8px; font-size: .78rem; line-height: 1.5; }
.posts-wrapper .dp-preview__date { margin-bottom: 12px; }
/* Prefer whole words when several cards sit side by side. Small screens retain
   automatic hyphenation and an emergency wrap for exceptionally long words. */
@media (min-width: 1101px) {
  .dp-feed .dp-preview .dp-preview__title,
  .dp-feed .dp-preview .dp-preview__title a { hyphens: manual !important; }
}
/* Align the five content rows within each visible card row, without fixed
   heights, clipped text or JavaScript. The existing flex layout is the fallback. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 601px) {
    .dp-feed .dp-feed__grid > .dp-preview:not(.dp-preview--topic) {
      display: grid; grid-template-rows: subgrid; grid-row: span 5;
      row-gap: 0; align-items: start;
    }
    .dp-feed .dp-feed__grid > .dp-preview:not(.dp-preview--topic) > .dp-preview__date { grid-row: 1; }
    .dp-feed .dp-feed__grid > .dp-preview:not(.dp-preview--topic) > .dp-preview__topic { grid-row: 2; }
    .dp-feed .dp-feed__grid > .dp-preview:not(.dp-preview--topic) > .dp-preview__title { grid-row: 3; }
    .dp-feed .dp-feed__grid > .dp-preview:not(.dp-preview--topic) > .dp-preview__excerpt { grid-row: 4; }
    .dp-feed .dp-feed__grid > .dp-preview:not(.dp-preview--topic) > .dp-preview__more { grid-row: 5; align-self: end; }
  }
}
@media (max-width: 1100px) {
  .dp-feed__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-feed__grid--topic > .dp-preview--featured { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .dp-feed__grid, .dp-feed__grid--two { grid-template-columns: 1fr; gap: 18px; }
  .dp-feed .dp-preview { padding: 22px; }
  .dp-feed .dp-preview .dp-preview__title { font-size: 1.2rem; }
  .dp-feed--section { padding: 0 16px; margin: 44px auto; }
  .dp-feed-page { padding: 28px 16px 44px; }
  .dp-feed-page__section { margin: 36px 0; }
  .dp-feed-page__cta { padding: 24px; }
}
