/* ============================================================================
   DVH Member Surface CSS
   Loaded via <Head><link> on DVH member pages only.
   Plain CSS only — all @apply converted to plain CSS.
   ============================================================================ */
@import "./member-shared.css";

/* ─── DVH Brand Vars ───
   --color-* stay for dashboard `bg-primary` chrome (CWA ThemeSync may
   overwrite those). Preview buttons, text, and dropdowns use --dvh-*
   tokens with the original hardcoded values so CMS colors cannot paint
   this surface. Source: dvh-client-app styles.css Figma fallbacks +
   tailwind.shared.js `dvh` palette. */
:root {
  --color-primary: #003478;
  --color-secondary: #000000;
  --color-tertiary: #1D4ED8;
  --color-accent: #f9f9f9;
  --dvh-button-primary: #172554;
  --dvh-button-secondary: #1E40AF;
  --dvh-button-tertiary: #1D4ED8;
  --dvh-text: #030712;
  --dvh-surface: #EFEFEF;
  --dvh-dropdown-bg: #F2F2F2;
  --dvh-blue-50: #EFF6FF;
  --dvh-background: linear-gradient(180deg, var(--dvh-surface) 0%, var(--dvh-surface) 100%);
  --dvh-accent-surface: var(--dvh-blue-50);
  --dvh-accent-shadow: rgba(29, 78, 216, 0.50);
}

/* ============================================================================
   From styles.css (was orphaned — never imported)
   ============================================================================ */

/* ─── Title utilities (converted from @apply) ─── */
.title-lg {
  margin-top: 0;
  font-weight: 600;
  font-size: 1.875rem;
  line-height: 2.5rem;
}
@media (min-width: 640px) {
  .title-lg {
    font-size: 3rem;
    line-height: 1;
  }
}

.title-sm {
  font-size: 1.25rem;
  font-weight: 700;
}
@media (min-width: 640px) {
  .title-sm { font-size: 1.5rem; }
}
@media (min-width: 768px) {
  .title-sm { font-size: 1.875rem; }
}

/* ─── DVH Buttons & Cards ─── */
.bg-dvh {
  border-radius: 5px;
  border: 1px solid var(--dvh-button-secondary);
  background: var(--dvh-button-primary);
  box-shadow: 1.219px -1.219px 1.219px 0px rgba(165, 165, 165, 0.32) inset, -1.219px 1.219px 1.219px 0px rgba(255, 255, 255, 0.32) inset;
  backdrop-filter: blur(2.804421901702881px);
  color: white !important;
}

.dvh-outline {
  border-radius: 5px;
  border: 0.907px solid var(--dvh-button-primary);
  background: var(--dvh-background);
  box-shadow: 0px 0px 3.628px 0px rgba(0, 0, 0, 0.25);
  padding: 10px 20px;
  font-family: var(--font-poppins, 'Poppins', sans-serif);
  font-size: 12px;
  color: var(--dvh-text);
  text-align: center;
  font-weight: 500;
  font-style: normal;
  line-height: normal;
}

.dvh-tertiary {
  border-radius: 5px;
  background: var(--dvh-accent-surface);
  box-shadow: 0px 0px 1px 0px var(--dvh-accent-shadow) inset;
  color: var(--dvh-button-tertiary);
  text-align: center;
}

.dvh-card {
  border-radius: 5px;
  background: var(--dvh-background);
  box-shadow: 0px 0px 8px 0px rgba(130, 130, 130, 0.32);
}

.dvh-cta {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 5px;
  background: var(--dvh-button-primary);
  box-shadow: 1.219px -1.219px 1.219px 0px rgba(165, 165, 165, 0.32) inset, -1.219px 1.219px 1.219px 0px rgba(255, 255, 255, 0.32) inset;
  backdrop-filter: blur(2.804421901702881px);
  color: white;
  padding: 10px 20px;
  font-family: var(--font-poppins, 'Poppins', sans-serif);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.dvh-cta.dvh-outline {
  border: 0.907px solid var(--dvh-button-primary);
  background: var(--dvh-background);
  box-shadow: 0px 0px 3.628px 0px rgba(0, 0, 0, 0.25);
  color: var(--dvh-text);
  backdrop-filter: none;
}

.dvh-cta-only {
  font-family: var(--font-poppins, 'Poppins', sans-serif);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.border-dvh {
  border: 1px solid;
  border-image-source: linear-gradient(168.35deg, #283968 0%, #003d78 49.2%, #0d1e44 99.43%);
}

.text-dvh {
  background: linear-gradient(168.35deg, #283968 0%, #003d78 49.2%, #0d1e44 99.43%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dvh-dropdown {
  border-radius: 7.255px;
  background: var(--dvh-dropdown-bg);
  box-shadow: 0px 0px 1px 0.907px rgba(0, 0, 0, 0.1) inset;
}

.dvh-bg-gr {
  background: var(--dvh-background);
}

.dvh-cta.dvh-accent,
.dvh-accent {
  border-radius: 5px;
  background: var(--dvh-accent-surface);
  box-shadow: 0px 0px 1px 0px var(--dvh-accent-shadow) inset;
  text-align: center;
  font-family: var(--font-poppins, 'Poppins', sans-serif);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: var(--dvh-button-tertiary) !important;
}

/* ─── Form inputs (converted from @apply) ─── */
.form-submit-btn { width: 15rem; }
@media (min-width: 768px) { .form-submit-btn { width: 20rem; } }
.form-label { font-weight: 400; }
.form-field { height: 3rem; font-weight: 600; }
.tools-form-field { height: 3rem; font-weight: 400; }

/* ─── Table scrollbar ─── */
.table ::-webkit-scrollbar { width: 0; background: transparent; }
.table ::-webkit-scrollbar-thumb { background: #ff0000; }

/* ─── Scrollbar utilities ─── */
@media (min-width: 768px) {
  .scroll-bar-x {
    overflow-x: scroll;
    padding-bottom: 2px;
  }
  .scroll-bar-x::-webkit-scrollbar { width: 80px; height: 8px; }
  .scroll-bar-x::-webkit-scrollbar-thumb {
    width: 80px;
    border-radius: 25px;
    -webkit-box-shadow: inset 0 0 10px #c6c3c3;
  }
  .scroll-bar-y {
    overflow-x: scroll;
    padding-bottom: 2px;
  }
  .scroll-bar-y::-webkit-scrollbar { width: 8px; height: 8px; }
  .scroll-bar-y::-webkit-scrollbar-thumb {
    width: 8px;
    border-radius: 25px;
    -webkit-box-shadow: inset 0 0 10px #c6c3c3;
  }
}

.custom-scrollbar::-webkit-scrollbar { width: 1px; height: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: var(--color-secondary); border-radius: 100px; }

.progress-ring__circle {
  transition: stroke-dashoffset 0.35s;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* ============================================================================
   From typography.css (was orphaned — never imported)
   ============================================================================ */

/* ─── Shared base for DVH typography ─── */
.h2, .h3, .h4, .h4-regular, .h4-semibold,
.body, .body-medium, .body2,
.cta, .cta-only, .field {
  font-family: var(--font-poppins, 'Poppins', sans-serif);
  color: var(--dvh-text);
  font-style: normal;
  line-height: normal;
}

/* ─── Mobile sizes ─── */
.h2 { font-size: 22px; font-weight: 700; line-height: 108.4%; }
.h3 { font-size: 18px; font-weight: 700; }
.h4 { font-size: 16px; font-weight: 700; }
.h4-regular { font-size: 16px; font-weight: 400; }
.h4-semibold { font-size: 16px; font-weight: 600; }
.body { font-size: 14px; font-weight: 400; }
.body-medium { font-size: 14px; font-weight: 500; }
.body2 { font-size: 12px; font-weight: 400; }
.cta { font-size: 12px; font-weight: 500; }
.cta-only { font-size: 12px; font-weight: 500; }
.cta-tertiary { font-size: 12px; font-weight: 400; }
.field { font-size: 12px; font-weight: 500; }

/* ─── Tablet+ overrides (430px+) ─── */
@media screen and (min-width: 430px) {
  .h2 { font-size: 26px; }
  .h3 { font-size: 22px; }
  .h4 { font-size: 20px; }
  .h4-regular { font-size: 20px; line-height: 120%; }
  .h4-semibold { font-size: 20px; line-height: 120%; }
  .body { font-size: 18px; }
  .body-medium { font-size: 18px; }
  .body2 { font-size: 16px; }
  .cta { font-size: 16px; font-weight: 700; }
  .cta-tertiary { font-size: 16px; }
  .field { font-size: 16px; }
}

/* ─── .cta button properties ─── */
.cta {
  border-radius: 5px;
  background: var(--dvh-button-primary);
  box-shadow: 1.219px -1.219px 1.219px 0px rgba(165, 165, 165, 0.32) inset, -1.219px 1.219px 1.219px 0px rgba(255, 255, 255, 0.32) inset;
  backdrop-filter: blur(2.804421901702881px);
  color: white;
  padding: 10px 20px;
}

/* ─── .cta-tertiary text decoration ─── */
.cta-tertiary {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

/* ─── .field placeholder (converted from @apply) ─── */
.field::placeholder {
  font-size: 12px;
  color: hsl(215.4, 16.3%, 46.9%);
}
@media screen and (min-width: 430px) {
  .field::placeholder { font-size: 16px; }
}

/* ============================================================================
   Tailwind dvh.* compat (from dvh-client-app/tailwind.shared.js)
   Plain CSS so these utilities exist on the DVH member surface only.
   Do not add these to shared @theme — globals.css is every member site.
   ============================================================================ */

.text-dvh-primary { color: #172554; }
.bg-dvh-primary { background-color: #172554; }
.border-dvh-primary { border-color: #172554; }

.text-dvh-accent { color: #1E40AF; }
.bg-dvh-accent { background-color: #1E40AF; }

.text-dvh-success { color: #4CAF50; }

.bg-dvh-blue50 { background-color: #EFF6FF; }

.bg-dvh-slate200 { background-color: #E2E8F0; }
.border-dvh-slate200 { border-color: #E2E8F0; }

.bg-dvh-gray100 { background-color: #F3F4F6; }

.text-dvh-gray600 { color: #4B5563; }

.text-dvh-buttonSecondary { color: #1E40AF; }
.bg-dvh-buttonSecondary { background-color: #1E40AF; }
.border-dvh-buttonSecondary { border-color: #1E40AF; }

.text-dvh-buttonTertiary { color: #1D4ED8; }
.bg-dvh-buttonTertiary { background-color: #1D4ED8; }
.border-dvh-buttonTertiary { border-color: #1D4ED8; }

.text-dvh-mainText { color: #030712; }

.bg-dvh-accent\/\[0\.08\] { background-color: rgb(30 64 175 / 0.08); }

.from-dvh-primary {
  --tw-gradient-from: #172554;
  --tw-gradient-to: rgb(23 37 84 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-dvh-accent {
  --tw-gradient-to: #1E40AF;
}
