/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/build/css/intlTelInput.css");

:root {
  --iti-path-flags-1x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/build/img/flags.webp");
  --iti-path-flags-2x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/build/img/flags@2x.webp");
  --iti-path-globe-1x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/build/img/globe.webp");
  --iti-path-globe-2x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/build/img/globe@2x.webp");

  /* Brand Colors - Blue Palette */
  --brand-blue-50: #f0f4f9;
  --brand-blue-100: #e1e9f3;
  --brand-blue-200: #c3d3e7;
  --brand-blue-300: #a5bcdb;
  --brand-blue-400: #698bc2;
  --brand-blue-500: #2d5aa9;
  --brand-blue-600: #0f3a77;
  --brand-blue-700: #0d326a;
  --brand-blue-800: #0a2a5d;
  --brand-blue-900: #082250;

  /* Brand Colors - Red Palette */
  --brand-red-50: #f9f3f1;
  --brand-red-100: #f3e6e2;
  --brand-red-200: #e8ccc5;
  --brand-red-300: #dbb3a9;
  --brand-red-400: #c4857a;
  --brand-red-500: #ad574b;
  --brand-red-600: #8c1915;
  --brand-red-700: #7a1612;
  --brand-red-800: #68120f;
  --brand-red-900: #560f0c;

  /* Brand Colors - Yellow Palette */
  --brand-yellow-50: #fffbf0;
  --brand-yellow-100: #fff8e1;
  --brand-yellow-200: #ffefc2;
  --brand-yellow-300: #ffe6a3;
  --brand-yellow-400: #ffd965;
  --brand-yellow-500: #fbba00;
  --brand-yellow-600: #e6a800;
  --brand-yellow-700: #cc9600;
  --brand-yellow-800: #b38400;
  --brand-yellow-900: #997000;

  /* Neutral Palette */
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
}

.iti {
  width: 100%;
}

.iti__tel-input {
  width: 100%;
}

trix-editor {
  min-height: 7.5rem;
}

.rich-content ol {
  list-style: decimal;
  margin-left: 1.5rem;
  margin-block: 1rem;
}

.rich-content ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-block: 1rem;
}

.rich-content li {
  margin-block: 0.25rem;
}

.rich-content a {
  color: var(--brand-blue-600);
  text-decoration: underline;
  text-underline-offset: 0.125em;
}

.rich-content img {
  max-width: 100%;
  height: auto;
}

.rich-content img.img-align-left,
.rich-content img.alignleft,
.rich-content figure.image.img-align-left,
.rich-content figure.image.image-style-align-left {
  float: left;
  margin: 0.25rem 1rem 0.75rem 0;
}

.rich-content img.img-align-right,
.rich-content img.alignright,
.rich-content figure.image.img-align-right,
.rich-content figure.image.image-style-align-right {
  float: right;
  margin: 0.25rem 0 0.75rem 1rem;
}

.rich-content figure.image {
  max-width: 100%;
}

.rich-content figure.image figcaption {
  text-align: center;
}

.rich-content figure.image:has(> img.img-align-left),
.rich-content figure.image:has(> img.alignleft) {
  float: left;
  margin: 0.25rem 1rem 0.75rem 0;
}

.rich-content figure.image:has(> img.img-align-right),
.rich-content figure.image:has(> img.alignright) {
  float: right;
  margin: 0.25rem 0 0.75rem 1rem;
}

.rich-content figure.image:has(> img.img-align-center) {
  float: none;
  margin: 0.75rem auto;
}

.rich-content figure.image:has(> img.img-align-none) {
  float: none;
  margin: 0.75rem 0;
}

.rich-content figure.image img {
  display: block;
}

.rich-content::after {
  content: "";
  display: block;
  clear: both;
}

.rich-content blockquote {
  border-left: 4px solid var(--brand-blue-300);
  margin-block: 1rem;
  padding-left: 1rem;
  font-style: italic;
  color: var(--neutral-700);
}

.rich-content p,
.rich-content pre,
.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
  margin-block: 0.75rem;
}

.responsive-menu-summary::-webkit-details-marker,
.responsive-menu-summary-sub::-webkit-details-marker {
  display: none;
}

.menu-chevron,
.menu-chevron-sub {
  transition: transform 0.2s ease;
}

.responsive-menu-details[open] > .responsive-menu-summary {
  color: var(--brand-yellow-300);
  background: color-mix(in srgb, var(--brand-blue-800) 55%, transparent);
}

.responsive-menu-details[open] > .responsive-menu-summary .menu-chevron,
.responsive-menu-details-sub[open] > .responsive-menu-summary-sub .menu-chevron-sub {
  transform: rotate(180deg);
}

.responsive-menu-details-sub[open] > .responsive-menu-summary-sub {
  color: var(--brand-yellow-300);
}

@keyframes menuAccordionReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.responsive-menu-details[open] > .responsive-menu-content,
.responsive-menu-details-sub[open] > .responsive-menu-content-sub {
  animation: menuAccordionReveal 0.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .menu-chevron,
  .menu-chevron-sub,
  .responsive-menu-details[open] > .responsive-menu-content,
  .responsive-menu-details-sub[open] > .responsive-menu-content-sub {
    animation: none;
    transition: none;
  }
}

@media (min-width: 1024px) {
  trix-editor {
    min-height: 12rem;
  }
}