/* ================================
   DPH Health Professionals
   (Scoped to .dph)
   Organized + de-duplicated
   ================================ */

/* =========================
   1) Tokens / Base
   ========================= */
.dph {
    --max: 1180px;
    --pad: clamp(16px, 2.4vw, 28px);
    --gap: clamp(14px, 2vw, 22px);
    --radius: 14px;

    --border: rgba(0, 0, 0, 0.12);
    --border-2: rgba(0, 0, 0, 0.16);

    --text: rgba(0, 0, 0, 0.92);
    --muted: rgba(0, 0, 0, 0.68);

    --surface: #fff;
    --surface-soft: rgba(0, 0, 0, 0.02);

    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.07);
    --ring: 0 0 0 3px rgba(0, 0, 0, 0.15);

    --space-1: clamp(8px, 1.2vw, 12px);
    --space-2: clamp(12px, 1.6vw, 16px);
    --space-3: clamp(16px, 2.2vw, 24px);
    --space-4: clamp(22px, 3vw, 32px);

    --text-base: clamp(1rem, 1.05vw, 1.08rem);
    --text-sm: clamp(0.9rem, 0.95vw, 1rem);
    --text-xs: clamp(0.82rem, 0.85vw, 0.92rem);

    --brand: #1a4480;
    --brand-2: #061c60;

    font-size: var(--text-base);
    color: var(--text);

    margin-inline: auto;
    max-width: var(--max);
    padding: var(--pad);

    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
}

/* Focus */
.dph a:focus-visible,
.dph button:focus-visible,
.dph [tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 10px;
}

/* =========================
   2) Typography
   ========================= */
.dph h1 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 10px;
}

.dph p {
    margin: 0 0 var(--space-1);
    line-height: 1.7;
    font-size: var(--text-sm);
}

.dph__lead {
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    color: var(--muted);
}

.dph__note {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-sm);
}

/* Header title: icon + text same row */
.dph__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dph__titleIco {
    opacity: 0.9;
    font-size: 0.95em;
    line-height: 1;
    color: currentColor;
}

/* Note line: subtle icon + link (for the plain note version) */
.dph__note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dph__noteIco {
    opacity: 0.85;
    font-size: 0.95em;
    line-height: 1;
    color: var(--brand);
}

/* Base link (used in header note + elsewhere) */
.dph__link {
    font-weight: 700;
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    position: relative;
}

.dph__link:hover {
    text-decoration-thickness: 2px;
}

/* Subtle inline icon after DPH email link (requires FA) */
/*.dph__link::after {
    content: "\f0e0";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.85em;
    opacity: 0.75;
    transition: transform 120ms ease, opacity 120ms ease;
}

.dph__link:hover::after {
    transform: translateX(2px);
    opacity: 1;
}*/

/* =========================
   3) Layout
   ========================= */
.dph__wrap {
    max-width: var(--max);
    margin: 0 auto;
}

.dph__header {
    margin-bottom: var(--space-3);
}

.dph__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
    align-items: stretch;
}

/* NOTE: You had repeat(1...) — kept as 1 column. Change to 2 if needed. */
@media (min-width: 860px) {
    .dph__grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* =========================
   4) Cards
   ========================= */
.card {
    border: 1px solid rgba(11, 95, 255, 0.18) !important;
    border-radius: var(--radius);

    background: #fff !important;

    padding: clamp(14px, 1.6vw, 18px);
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;

    box-shadow: 0 6px 16px rgba(11, 95, 255, 0.12);
}

.card:hover {
    /* keep hover shadow in same blue family (per your latest request) */
    box-shadow: 0 6px 16px rgba(11, 95, 255, 0.12);
}

/* Card header: icon + title same row */
.card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 var(--space-1);
}

/* Icon pill */
.card__icon {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #f0f5ff;
    border: 1px solid rgba(11, 95, 255, 0.18);
    border-radius: 12px;

    color: var(--brand);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1;

    filter: drop-shadow(0 2px 4px rgba(57, 79, 147, 0.4));
    flex: 0 0 auto;

    transition: transform 0.2s ease;
}

.card:hover .card__icon {
    transform: translateY(-1px);
}

/* Title */
.card__title {
    margin: 0;
    font-size: clamp(1.15rem, 1.3225vw, 1.288rem);
    font-weight: 900;
    line-height: 1.25;
    color: rgb(26 68 128);
    /*border-bottom: 2px solid #d3e2ff;*/
}

.card__title a {
    color: rgb(26 68 128);
    text-decoration: none;
    text-underline-offset: 3px;
}

/* Optional: add underline on hover for title link */
.card__title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* Paragraph card text (if you use <p class="card__text">...) */
.card__text {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* Make anchor links stand out inside card text */
.card__text a {
    font-weight: 800;
    color: var(--brand);
    text-decoration: none;
    border-bottom: 2px solid rgba(26, 68, 128, 0.35);
    text-underline-offset: 3px;
    transition: color 120ms ease, border-color 120ms ease;
}

.card__text a:hover {
    color: var(--brand-2);
    border-bottom-color: var(--brand-2);
}

.card__text a:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 6px;
}

/* List text (if you keep <ul class="card__list">...) */
.card__list {
    color: var(--muted);
    margin: 0;
    padding-left: 1.1rem;
    font-size: var(--text-sm);
}

.card__list li {
    margin: 0 0 var(--space-1);
}

.card__list li:last-child {
    margin-bottom: 0;
}

/* =========================
   5) Buttons (optional)
   ========================= */
.card__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .card__actions {
        flex-direction: column;
        align-items: center;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;

    font-weight: 800;
    font-size: var(--text-sm);
    text-decoration: none;
    text-align: center;

    white-space: nowrap;
    max-width: 100%;

    border: 1px solid rgba(0, 0, 0, 0.16);
    background: #fff;
    color: rgba(0, 0, 0, 0.92);

    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.10);
}

.btn--primary {
    background: var(--brand);
    color: #fff;
    border-color: rgba(26, 68, 128, 0.65);
}

.btn--ghost {
    background: #fff;
    color: var(--brand);
    border-color: rgba(26, 68, 128, 0.35);
}

.btn--ghost:hover {
    background: rgba(26, 68, 128, 0.06);
}

/* =========================
   6) Optional: DPH Comments Header (banner style)
   Use only if you wrap the note in .dph-noteHeader
   ========================= */
.dph-noteHeader {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;

    border-radius: 0;
    padding: clamp(1rem, 2vw, 1.6rem);
    margin-top: var(--space-2);
    margin-bottom: var(--space-3);

    position: relative;
    overflow: hidden;
}

.dph-noteHeader::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(500px 220px at 15% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
        radial-gradient(420px 220px at 95% 10%, rgba(255, 255, 255, 0.16), transparent 60%);
    pointer-events: none;
}

.dph-noteHeader .dph__note {
    margin: 0;
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;

    font-size: clamp(1rem, 1.1vw + 0.75rem, 1.2rem);
    line-height: 1.5;
    color: #fff;
}

.dph-noteHeader__ico {
    opacity: 0.9;
    font-size: 1em;
}

.dph-noteHeader .dph__link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dph-noteHeader .dph__link:hover {
    text-decoration-thickness: 2px;
}

/* =========================
   Subtle icon-after-link treatment
   (Font Awesome external icon)
   ========================= */

/* Base for in-card links */
.card__text a,
.card__title a,
.card__list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Default: no icon for internal links */
.card__text a::after,
.card__title a::after,
.card__list a::after {
    content: "\f35d";
    /* fa-arrow-up-right-from-square */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7em;
    opacity: 0.6;

    transform: translate(0, 0);
    transition: transform 120ms ease, opacity 120ms ease;
}

/* External link indicator (target=_blank) */
.card__text a[target="_blank"]::after,
.card__title a[target="_blank"]::after,
.card__list a[target="_blank"]::after {
    content: "\f35d";
    /* fa-arrow-up-right-from-square */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    font-size: 0.75em;
    line-height: 1;

    opacity: 0.6;
    transform: translate(0, 0);

    transition: transform 120ms ease, opacity 120ms ease;
}

/* Hover/focus: subtle motion + clarity */
/* Hover/focus: subtle motion for ALL links */
.card__text a:hover::after,
.card__title a:hover::after,
.card__list a:hover::after,
.card__text a:focus-visible::after,
.card__title a:focus-visible::after,
.card__list a:focus-visible::after {
  opacity: 0.9;
  transform: translate(1px, -1px);
}

/* Subtle emphasis (lighter than default bold) */
.card__emphasis {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.92);
}

/* =========================
   DPH Header — Standout Hero
   ========================= *

.dph__header {
  background: linear-gradient(135deg, #f7faff, #eef4ff);
  border: 1px solid rgba(11, 95, 255, 0.18);
  border-left: 6px solid var(--brand);
  border-right: 6px solid var(--brand);


  border-radius: 14px;
  padding: clamp(1rem, 2vw, 1.6rem);

  margin-bottom: var(--space-3);

  box-shadow: 0 6px 16px rgba(11, 95, 255, 0.10);

  position: relative;
  overflow: hidden;
}

/* subtle light pattern *
.dph__header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 200px at 10% 0%, rgba(26,68,128,0.08), transparent 60%),
    radial-gradient(360px 180px at 100% 0%, rgba(26,68,128,0.06), transparent 60%);
  pointer-events: none;
}

.dph__header > * {
  position: relative;
  z-index: 1;
}

/* Title stronger presence *
.dph__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  color: var(--brand);
}

/* Title icon *
.dph__titleIco {
  color: var(--brand);
  font-size: 0.95em;
}

/* Lead text *
.dph__lead {
  color: rgba(0, 0, 0, 0.72);
  max-width: 70ch;
}

/* Note line slightly separated *
.dph__note {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: rgba(0, 0, 0, 0.72);
}*/

/* =========================
   Accessible Skip Link
   ========================= */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-120%);
  background: #0b3b67;          /* deep civic blue */
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  transition: transform .2s ease;
}

/* Visible when keyboard users tab to it */
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid #93c5fd;   /* strong accessible focus */
  outline-offset: 2px;
}

/* Optional hover (mouse users rarely see it) */
.skip-link:hover {
  text-decoration: underline;
}

#dph-header a:focus-visible,
#dph-leftnav a:focus-visible,
.carousel-container button:focus-visible,
.carousel-container a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}