/* site-extras.css — named utilities for things the pre-built theme.css lacks.
 *
 * theme.css is a compiled Tailwind bundle with no arbitrary-value support at
 * runtime and, notably, no form-input styles at all (its only form-adjacent
 * selector is .transition-transform). Rather than invent Tailwind classes that
 * would silently do nothing, the homepage uses the named classes below.
 *
 * Keep this file small and additive. Never restyle existing site elements here.
 */

/* --- card grids ------------------------------------------------------------
 * theme.css is ~5 concatenated Tailwind builds, so utilities are declared many
 * times over. The LAST `.sm\:grid-cols-2` sits after the LAST `.lg\:grid-cols-3`,
 * and media queries carry no specificity, so above 1024px the sm rule wins and a
 * three-column grid silently renders as two. These named classes load after
 * theme.css and sidestep the collision entirely.
 */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .cc-grid-2,
  .cc-grid-3,
  .cc-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cc-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cc-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- translucent card on the dark navy bands -------------------------------
 * Replaces bg-[#F7F5EF]/[0.06], which has no compiled selector.
 */
.cc-card-dark {
  background-color: rgba(247, 245, 239, 0.06);
}

/* --- bullet lists without default padding ---------------------------------
 * Replaces p-0, absent from theme.css.
 */
.cc-bare-list {
  padding-left: 0;
  margin-left: 0;
}

/* --- form fields ---------------------------------------------------------- */
.cc-full {
  width: 100%;
}

.cc-break {
  overflow-wrap: anywhere;
}

.cc-label {
  display: block;
}

.cc-field {
  margin-top: 0.5rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  color: #273442;
  border: 1px solid rgba(7, 59, 115, 0.22);
  border-radius: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}

.cc-field::placeholder {
  color: #8494a5;
}

.cc-field:focus-visible {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.28);
}

.cc-field-tall {
  min-height: 8rem;
  padding-top: 0.875rem;
  resize: vertical;
}

/* native select needs its own arrow since appearance is stripped */
select.cc-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23073B73' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

/* --- FAQ disclosure ------------------------------------------------------- */
.cc-faq summary::-webkit-details-marker {
  display: none;
}

.cc-faq summary {
  position: relative;
  padding-right: 2rem;
}

.cc-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: #007bff;
}

.cc-faq[open] summary::after {
  content: "\2212"; /* minus */
}
