/* Minimal styling shim for CMS-authored HTML inside {{ page.content }}.
   Replace with the @tailwindcss/typography `prose` class once the plugin
   is loaded in base_redesigned.html. */
.cms-content p { margin: 0 0 1rem 0; line-height: 1.65; }
.cms-content h1, .cms-content h2, .cms-content h3, .cms-content h4 {
  font-weight: 600; color: #1f2937; margin: 1.5rem 0 0.75rem;
}
.cms-content h2 { font-size: 1.5rem; }
.cms-content h3 { font-size: 1.25rem; }
.cms-content h4 { font-size: 1.125rem; }
.cms-content ul, .cms-content ol { margin: 0 0 1rem 1.5rem; }
.cms-content ul { list-style: disc; }
.cms-content ol { list-style: decimal; }
.cms-content li { margin-bottom: 0.25rem; }
.cms-content a { color: #cc6a00; text-decoration: none; }
.cms-content a:hover,
.cms-content a:focus-visible { color: #994f00; text-decoration: none; }
.cms-content table { border-collapse: collapse; margin: 1rem 0; width: 100%; }
.cms-content th, .cms-content td {
  border: 1px solid #e5e7eb; padding: 0.5rem 0.75rem; text-align: left;
}
.cms-content th { background: #f9fafb; font-weight: 600; }
.cms-content img { max-width: 100%; height: auto; }
.cms-content iframe { max-width: 100%; }
.cms-content blockquote {
  border-left: 4px solid #ff8400; padding-left: 1rem;
  color: #4b5563; margin: 1rem 0;
}

/* CMS-authored button anchors (legacy class names: `btn`, `btn.orange`,
   `btn.large`). Restyled to the new design's primary palette so they read
   as proper CTA buttons instead of plain links. */
.cms-content a.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  font-weight: 600; line-height: 1.25;
  text-decoration: none; transition: background-color 180ms ease;
}
.cms-content a.btn.large { padding: 0.75rem 1.5rem; font-size: 1.0625rem; }
.cms-content a.btn.orange { background: #ff8400; color: #fff; }
.cms-content a.btn.orange:hover,
.cms-content a.btn.orange:focus-visible { background: #cc6a00; color: #fff; text-decoration: none; }
.cms-content .btn .fa { margin-right: 0; }   /* spacing handled by flex `gap` */

/* Redesigned pages — all bare Django form widgets */
.redesigned-page input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not(.border-none):not(.hidden),
.redesigned-page textarea,
.redesigned-page select {
  display: block; width: 100%; border-radius: 0.75rem;
  border: 1px solid #ffd9ad; background-color: #ffffff;
  padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 500;
  color: #111827; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.redesigned-page input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not(.border-none):not(.hidden):focus,
.redesigned-page textarea:focus,
.redesigned-page select:focus {
  border-color: #ff8400; box-shadow: 0 0 0 1px #ff8400;
}

/* Restore icon-offset padding when Tailwind pl-* classes are present */
.redesigned-page input.pl-10 { padding-left: 2.5rem !important; }
.redesigned-page input.pl-11 { padding-left: 2.75rem !important; }
.redesigned-page input.pl-12 { padding-left: 3rem !important; }

/* Borderless inline inputs (e.g. quantity fields inside composite label wrappers) */
.redesigned-page input.border-none {
  background: transparent !important;
  border: none !important;
  padding: 0 0.25rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-block !important;
  width: auto !important;
}

/* Dashboard v2 — form inputs & textareas */
.dashboard-v2-input {
  background: #ffffff;
  border: 1px solid #ffd9ad;
}
.dashboard-v2-input:focus {
  border-color: #ff8400;
  outline: none;
}

/* Order form (form_beta) — inputs & textareas */
#orderForm input[type="text"],
#orderForm input[type="date"],
#orderForm textarea {
  background: #ffffff;
  border: 1px solid #ffd9ad;
}
#orderForm input[type="text"]:focus,
#orderForm input[type="date"]:focus,
#orderForm textarea:focus {
  background: #ffffff;
  border-color: #ff8400;
  outline: none;
}

/* ---- Question card — ink dark, shared across public pages and dashboard ---- */
.page-pm__side-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-pm__side-card--question {
  background: rgba(14, 15, 18, 0.85);
  border: 1px solid rgba(14, 15, 18, 0.50);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: 0 10px 30px -18px rgba(15, 15, 20, 0.4);
  color: #ffffff;
}

.page-pm__side-card--question .page-pm__side-eyebrow {
  color: #ff8400;
}

.page-pm__side-question-body {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.page-pm__side-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.page-pm__side-cta:hover {
  color: #ff8400;
}
