/**
 * Justice Directory — Widget Embed Stylesheet v2
 * Loaded via <link> tag from the blog CMS.
 * All classes use "jdw-" prefix to avoid conflicts with the host site.
 * Fonts: DM Serif Display (headings), Open Sans (body)
 *
 * CMS Compatibility: This stylesheet is designed for CMS platforms that strip
 * <style> blocks, style="" attributes, <svg>, <iframe>, and <script> tags
 * but preserve <link rel="stylesheet"> and CSS class names.
 */

/* ── Reset & Base ── */
.jdw-widget, .jdw-widget * { box-sizing: border-box; margin: 0; padding: 0; }
.jdw-widget { font-family: 'Open Sans', sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.jdw-widget a { text-decoration: none; color: inherit; }
.jdw-widget img { max-width: 100%; display: block; }
.jdw-widget strong { font-weight: 700; }

/* ── Shared tokens ── */
.jdw-widget {
  --jdw-navy: #14213D;
  --jdw-navy-alt: #182E45;
  --jdw-navy-light: #1E3A5F;
  --jdw-gold: #9B854C;
  --jdw-gold-light: #C4A96A;
  --jdw-red: #F73D51;
  --jdw-white: #ffffff;
  --jdw-font-heading: 'DM Serif Display', serif;
  --jdw-font-body: 'Open Sans', sans-serif;
}

/* ═══════════════════════════════════════
   INLINE BANNER — STANDARD
═══════════════════════════════════════ */
.jdw-inline-standard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border: 2px solid var(--jdw-gold);
  border-radius: 4px;
  overflow: hidden;
  margin: 24px 0;
  transition: box-shadow 0.2s;
}
.jdw-inline-standard:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.jdw-inline-standard__badge {
  background: var(--jdw-navy);
  color: var(--jdw-white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--jdw-font-heading);
}
.jdw-inline-standard__text {
  flex: 1;
  background: var(--jdw-gold);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 200px;
  min-height: 44px;
}
.jdw-inline-standard__text p {
  color: var(--jdw-white);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.jdw-inline-standard__text p strong { font-weight: 700; }
.jdw-inline-standard__arrow {
  color: var(--jdw-white);
  font-size: 20px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   INLINE BANNER — CONTEXTUAL
═══════════════════════════════════════ */
.jdw-inline-contextual {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin: 24px 0;
  min-height: 80px;
  border: 1px solid rgba(20,33,61,0.2);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.jdw-inline-contextual__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663366410904/gyz3VzgRqLTqTsBmWDvYAe/inline-banner-bg_69eef02b.png');
  background-size: cover;
  background-position: center;
}
.jdw-inline-contextual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20,33,61,0.9), rgba(20,33,61,0.7), transparent);
}
.jdw-inline-contextual__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 16px;
}
.jdw-inline-contextual__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--jdw-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--jdw-white);
  font-size: 20px;
  font-weight: 700;
}
.jdw-inline-contextual__content { flex: 1; min-width: 200px; }
.jdw-inline-contextual__heading {
  font-family: var(--jdw-font-heading);
  color: var(--jdw-white);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 3px;
}
.jdw-inline-contextual__desc {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin: 0;
}
.jdw-inline-contextual__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--jdw-gold);
  color: var(--jdw-white);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 4px;
  white-space: nowrap;
  min-height: 44px;
  transition: background 0.2s;
}
.jdw-inline-contextual__cta:hover { background: var(--jdw-gold-light); }

/* ═══════════════════════════════════════
   INLINE BANNER — URGENT
═══════════════════════════════════════ */
.jdw-inline-urgent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, var(--jdw-navy), var(--jdw-navy-light));
  border-radius: 4px;
  border-left: 4px solid var(--jdw-gold);
  padding: 14px 20px;
  margin: 24px 0;
  gap: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.jdw-inline-urgent__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 200px;
}
.jdw-inline-urgent__icon {
  color: var(--jdw-gold);
  font-size: 22px;
  flex-shrink: 0;
}
.jdw-inline-urgent__label {
  color: var(--jdw-gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.jdw-inline-urgent__pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jdw-red);
  animation: jdw-pulse 1.5s ease-in-out infinite;
}
@keyframes jdw-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
.jdw-inline-urgent__text {
  color: var(--jdw-white);
  font-size: 14px;
  margin: 0;
}
.jdw-inline-urgent__text strong { color: var(--jdw-gold-light); font-weight: 700; }
.jdw-inline-urgent__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--jdw-gold);
  color: var(--jdw-white);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 4px;
  white-space: nowrap;
  min-height: 44px;
  transition: background 0.2s;
}
.jdw-inline-urgent__cta:hover { background: var(--jdw-gold-light); }

/* ═══════════════════════════════════════
   SIDEBAR — CTA CARD
═══════════════════════════════════════ */
.jdw-sidebar-cta {
  width: 100%;
  max-width: 320px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border: 1px solid rgba(20,33,61,0.1);
  margin: 24px 0;
  font-family: var(--jdw-font-body);
}
.jdw-sidebar-cta__hero {
  position: relative;
  height: 140px;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663366410904/gyz3VzgRqLTqTsBmWDvYAe/sidebar-bg_2a764404.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.jdw-sidebar-cta__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--jdw-navy), rgba(20,33,61,0.5), transparent);
}
.jdw-sidebar-cta__hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 1;
}
.jdw-sidebar-cta__hero-title {
  font-family: var(--jdw-font-heading);
  color: var(--jdw-white);
  font-size: 18px;
  margin: 0;
  line-height: 1.3;
}
.jdw-sidebar-cta__hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  margin: 4px 0 0;
}
.jdw-sidebar-cta__body { padding: 16px; background: var(--jdw-white); }
.jdw-sidebar-cta__desc {
  color: var(--jdw-navy);
  font-size: 14px;
  margin: 0 0 12px;
  line-height: 1.6;
}
.jdw-sidebar-cta__stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20,33,61,0.1);
}
.jdw-sidebar-cta__stat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--jdw-navy);
  font-size: 12px;
  font-weight: 600;
}
.jdw-sidebar-cta__stat-icon { color: var(--jdw-gold); }
.jdw-sidebar-cta__btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--jdw-gold);
  color: var(--jdw-white);
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  min-height: 44px;
  transition: background 0.2s;
}
.jdw-sidebar-cta__btn-primary:hover { background: var(--jdw-gold-light); }
.jdw-sidebar-cta__btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--jdw-gold);
  font-size: 12px;
  min-height: 44px;
}
.jdw-sidebar-cta__btn-secondary:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   SIDEBAR — QUICK SEARCH
═══════════════════════════════════════ */
.jdw-sidebar-search {
  width: 100%;
  max-width: 320px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  margin: 24px 0;
  font-family: var(--jdw-font-body);
}
.jdw-sidebar-search__header {
  background: var(--jdw-navy);
  padding: 20px;
}
.jdw-sidebar-search__header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.jdw-sidebar-search__header-icon { color: var(--jdw-gold); font-size: 20px; }
.jdw-sidebar-search__heading {
  font-family: var(--jdw-font-heading);
  color: var(--jdw-white);
  font-size: 16px;
  margin: 0;
}
.jdw-sidebar-search__subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin: 0;
}
.jdw-sidebar-search__form {
  background: var(--jdw-navy-alt);
  padding: 20px;
}
.jdw-sidebar-search__field { margin-bottom: 12px; }
.jdw-sidebar-search__label {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.jdw-sidebar-search__input {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: var(--jdw-white);
  font-size: 14px;
  padding: 12px;
  outline: none;
  min-height: 44px;
  font-family: var(--jdw-font-body);
}
.jdw-sidebar-search__input::placeholder { color: rgba(255,255,255,0.4); }
.jdw-sidebar-search__input:focus { border-color: var(--jdw-gold); }
.jdw-sidebar-search__btn {
  width: 100%;
  background: var(--jdw-gold);
  color: var(--jdw-white);
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--jdw-font-body);
  transition: background 0.2s;
}
.jdw-sidebar-search__btn:hover { background: var(--jdw-gold-light); }
.jdw-sidebar-search__footer {
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  text-align: center;
  margin: 8px 0 0;
}

/* ═══════════════════════════════════════
   FOOTER BANNER — PRIMARY
═══════════════════════════════════════ */
.jdw-footer-primary {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin: 32px 0;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  font-family: var(--jdw-font-body);
}
.jdw-footer-primary__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663366410904/gyz3VzgRqLTqTsBmWDvYAe/footer-hero-bg_58a0deed.png');
  background-size: cover;
  background-position: center;
}
.jdw-footer-primary__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,33,61,0.85);
}
.jdw-footer-primary__inner {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
}
.jdw-footer-primary__badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.jdw-footer-primary__badge {
  background: var(--jdw-gold);
  color: var(--jdw-white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px;
}
.jdw-footer-primary__badge-sub {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}
.jdw-footer-primary__heading {
  font-family: var(--jdw-font-heading);
  color: var(--jdw-white);
  font-size: 24px;
  margin: 0 0 12px;
  max-width: 560px;
  line-height: 1.2;
}
.jdw-footer-primary__body {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin: 0 0 24px;
  max-width: 480px;
  line-height: 1.6;
}
.jdw-footer-primary__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.jdw-footer-primary__stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--jdw-white);
  font-size: 14px;
  font-weight: 600;
}
.jdw-footer-primary__stat-icon { color: var(--jdw-gold); }
.jdw-footer-primary__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.jdw-footer-primary__cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--jdw-gold);
  color: var(--jdw-white) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 4px;
  min-height: 44px;
  transition: background 0.2s;
}
.jdw-footer-primary__cta-primary:hover { background: var(--jdw-gold-light); }
.jdw-footer-primary__cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--jdw-white) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 4px;
  min-height: 44px;
  transition: border-color 0.2s;
}
.jdw-footer-primary__cta-secondary:hover { border-color: rgba(255,255,255,0.5); }

/* ═══════════════════════════════════════
   FOOTER BANNER — COMPACT
═══════════════════════════════════════ */
.jdw-footer-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: var(--jdw-navy);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  margin: 24px 0;
  padding: 16px 24px;
  gap: 12px;
  font-family: var(--jdw-font-body);
}
.jdw-footer-compact__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 200px;
}
.jdw-footer-compact__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(155,133,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--jdw-gold);
  font-size: 18px;
  font-weight: 700;
}
.jdw-footer-compact__heading {
  font-family: var(--jdw-font-heading);
  color: var(--jdw-white);
  font-size: 16px;
  margin: 0;
}
.jdw-footer-compact__desc {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin: 2px 0 0;
}
.jdw-footer-compact__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--jdw-gold);
  color: var(--jdw-white);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 4px;
  min-height: 44px;
  white-space: nowrap;
  transition: background 0.2s;
}
.jdw-footer-compact__cta:hover { background: var(--jdw-gold-light); }

/* ═══════════════════════════════════════
   WIZARD HELP FINDER
═══════════════════════════════════════ */
.jdw-wizard {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  border: 1px solid rgba(20,33,61,0.1);
  margin: 32px 0;
  font-family: var(--jdw-font-body);
}
.jdw-wizard__header {
  position: relative;
  padding: 24px 28px;
  overflow: hidden;
}
.jdw-wizard__header-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663366410904/gyz3VzgRqLTqTsBmWDvYAe/wizard-header-bg_51696a27.png');
  background-size: cover;
  background-position: center;
}
.jdw-wizard__header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,33,61,0.6);
}
.jdw-wizard__header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.jdw-wizard__header-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--jdw-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--jdw-white);
  font-weight: 700;
}
.jdw-wizard__header-title {
  font-family: var(--jdw-font-heading);
  color: var(--jdw-white);
  font-size: 20px;
  margin: 0;
}
.jdw-wizard__header-sub {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin: 2px 0 0;
}
.jdw-wizard__body {
  background: var(--jdw-white);
  padding: 24px 28px;
}
.jdw-wizard__question {
  font-family: var(--jdw-font-heading);
  color: var(--jdw-navy);
  font-size: 17px;
  margin: 0 0 4px;
}
.jdw-wizard__hint {
  color: rgba(20,33,61,0.6);
  font-size: 13px;
  margin: 0 0 16px;
}
.jdw-wizard__option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: rgba(20,33,61,0.03);
  border: 1px solid rgba(20,33,61,0.1);
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 8px;
  color: var(--jdw-navy);
  min-height: 56px;
  transition: border-color 0.2s, background 0.2s;
}
.jdw-wizard__option:hover {
  border-color: var(--jdw-gold);
  background: rgba(155,133,76,0.05);
}
.jdw-wizard__option-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(20,33,61,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(20,33,61,0.6);
  font-size: 18px;
}
.jdw-wizard__option-text { flex: 1; min-width: 0; }
.jdw-wizard__option-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--jdw-navy);
}
.jdw-wizard__option-desc {
  display: block;
  font-size: 12px;
  color: rgba(20,33,61,0.5);
  margin-top: 2px;
}
.jdw-wizard__option-arrow {
  color: rgba(20,33,61,0.3);
  font-size: 16px;
  flex-shrink: 0;
}
.jdw-wizard__footer {
  text-align: center;
  color: rgba(20,33,61,0.4);
  font-size: 11px;
  margin: 16px 0 0;
}
.jdw-wizard__footer a { color: var(--jdw-gold); }
.jdw-wizard__footer a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 640px) {
  /* Inline Standard */
  .jdw-inline-standard { flex-direction: column; }
  .jdw-inline-standard__badge { width: 100%; justify-content: center; }
  .jdw-inline-standard__text { width: 100%; justify-content: center; text-align: center; }

  /* Inline Contextual */
  .jdw-inline-contextual__inner { flex-direction: column; text-align: center; }
  .jdw-inline-contextual__cta { width: 100%; justify-content: center; }

  /* Inline Urgent */
  .jdw-inline-urgent { flex-direction: column; }
  .jdw-inline-urgent__cta { width: 100%; justify-content: center; }

  /* Sidebar */
  .jdw-sidebar-cta { max-width: 100%; }
  .jdw-sidebar-search { max-width: 100%; }

  /* Footer Primary */
  .jdw-footer-primary__inner { padding: 24px 20px; }
  .jdw-footer-primary__heading { font-size: 22px; }
  .jdw-footer-primary__ctas { flex-direction: column; }
  .jdw-footer-primary__cta-primary,
  .jdw-footer-primary__cta-secondary { width: 100%; justify-content: center; }

  /* Footer Compact */
  .jdw-footer-compact { flex-direction: column; text-align: center; }
  .jdw-footer-compact__left { justify-content: center; flex-direction: column; }
  .jdw-footer-compact__cta { width: 100%; justify-content: center; }

  /* Wizard */
  .jdw-wizard__header { padding: 20px; }
  .jdw-wizard__body { padding: 20px; }
  .jdw-wizard__option { padding: 12px; }
}
