/* /shortcodes/styles/documents-accordion-simple.css */
/* Contrast-corrected, accessible, responsive */

.ft-docacc {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: clamp(10px, 2.5vw, 16px);
  box-sizing: border-box;
}

/* Title — darker, stronger contrast */
.ft-docacc__title {
  margin: 0 0 clamp(8px, 2vw, 12px) 0;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  color: #0f172a; /* slate-900 */
  line-height: 1.25;
}

/* Toggle row */
.ft-docacc__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 12px);

  border: 1px solid #d1d5db;
  background: #f8fafc; /* very light slate */
  border-radius: 8px;

  padding: clamp(10px, 2.2vw, 14px);
  cursor: pointer;

  color: #0f172a; /* dark text */
  font-size: clamp(13px, 1.2vw, 14px);
  font-weight: 600;

  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.ft-docacc__toggle:hover {
  background: #eef2f7; /* darker than bg, still light */
  border-color: #cbd5e1;
}

.ft-docacc__toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  border-color: #2563eb;
}

/* Left label */
.ft-docacc__toggle-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1.6vw, 10px);
  flex: 1 1 auto;
  white-space: normal;
  overflow-wrap: anywhere;
  color: #0f172a;
}

/* Right side */
.ft-docacc__toggle-right {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 12px);
  flex: 0 0 auto;
}

/* Count pill — darker text */
.ft-docacc__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.25em 0.6em;
  border-radius: 999px;

  background: #e0e7ff;
  color: #1e3a8a; /* indigo-900 */
  font-size: clamp(11px, 1.05vw, 12px);
  font-weight: 700;
}

/* Chevron */
.ft-docacc__chev {
  font-size: clamp(12px, 1.2vw, 14px);
  color: #334155; /* slate-700 */
  transition: transform 140ms ease;
}

.ft-docacc.is-open .ft-docacc__chev {
  transform: rotate(180deg);
}

/* Panel */
.ft-docacc__panel {
  margin-top: clamp(8px, 2vw, 12px);
  border-top: 1px solid #e5e7eb;
  padding-top: clamp(8px, 2vw, 12px);
}

/* Items */
.ft-docacc__item {
  padding: clamp(4px, 1.2vw, 8px) 0;
}

/* Link row */
.ft-docacc__link {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 2vw, 12px);

  padding: clamp(8px, 2vw, 12px);
  border-radius: 8px;
  text-decoration: none;

  background: transparent;
  transition: background 120ms ease;
}

.ft-docacc__link:hover {
  background: #f1f5f9; /* slate-100 */
}

/* Icon */
.ft-docacc__icon {
  flex: 0 0 auto;
}

/* Badge — unchanged logic, better contrast */
.ft-docacc__badge {
  padding: 0.35em 0.6em;
  border-radius: 6px;
  font-size: clamp(10px, 1vw, 11px);
  font-weight: 800;
  letter-spacing: 0.25px;
  line-height: 1;
  white-space: nowrap;
  color: #ffffff;
}

.ft-docacc__badge--pdf { background: #b91c1c; }
.ft-docacc__badge--doc { background: #1d4ed8; }
.ft-docacc__badge--xls { background: #15803d; }
.ft-docacc__badge--file { background: #475569; }

/* Document title text — FIXED hover contrast */
.ft-docacc__text {
  color: #1e3a8a; /* darker blue */
  font-size: clamp(13px, 1.15vw, 14px);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* Hover: darker text, not white */
.ft-docacc__link:hover .ft-docacc__text {
  color: #0f172a; /* slate-900 */
  text-decoration: underline;
}

/* Mobile tightening */
@media (max-width: 480px) {
  .ft-docacc__toggle,
  .ft-docacc__link {
    padding: 10px;
  }
}

