/* =====================================================================
   device-compatibility.css - styles for /device-compatibility
   ---------------------------------------------------------------------
   Loaded ONLY by that page, via the layout's pageStyles hook.
   The shared layout (frontend/layout/app.php) does not load v2.css, so
   these rules cannot live there. Self-contained on purpose: no v2 or
   refresh tokens, so it renders correctly with styles.css alone.
   ===================================================================== */

/* ------------------------------------------------------------------ *
   Device compatibility page (/device-compatibility)

   Shares the compatibility card's warm palette so the journey from the
   home-page card to this page feels like one thing. Mobile-first.
 * ------------------------------------------------------------------ */
.dvc {
  --dvc-orange: #ff6b00;
  --dvc-orange-hover: #e95f00;
  --dvc-wash: #fff4eb;
  --dvc-border: #ffe1cc;
  --dvc-ink: #1f2937;
  --dvc-muted: #6b7280;
  --dvc-hairline: #eef0f4;

  padding-block: clamp(1.5rem, 1rem + 2.5vw, 3.5rem) clamp(2.5rem, 1.8rem + 3.5vw, 5rem);
}

/* Same .container override as above: restore a gutter below 768px. */
@media (max-width: 767px) {
  .dvc .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
@media (max-width: 380px) {
  .dvc .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- The universal check, up top ---- */
.dvc-check {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--dvc-border);
  border-radius: 18px;
  background: var(--dvc-wash);
}
.dvc-check-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--dvc-orange);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 0, .1);
}
.dvc-check-ic svg { width: 19px; height: 19px; }
.dvc-check-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--dvc-ink);
}
.dvc-check-text {
  margin: 0;
  max-width: 68ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: #4b5563;
}
.dvc-check-text strong { color: var(--dvc-ink); font-weight: 600; }

.dvc code {
  padding: 2px 8px;
  border-radius: 7px;
  border: 1px solid var(--dvc-border);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .94em;
  font-weight: 600;
  color: var(--dvc-ink);
}

/* ---- Search ---- */
.dvc-search { margin-bottom: 28px; }
.dvc-search-field {
  position: relative;
  display: flex;
  align-items: center;
}
.dvc-search-ic {
  position: absolute;
  left: 16px;
  width: 17px; height: 17px;
  color: #9aa3af;
  pointer-events: none;
}
.dvc-search-input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px 0 50px;
  border: 1px solid var(--dvc-hairline);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
  font: inherit;
  font-size: 16px;
  color: var(--dvc-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dvc-search-input::placeholder { color: #9aa3af; }
.dvc-search-input:focus {
  outline: 0;
  border-color: var(--dvc-border);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, .12), 0 8px 30px rgba(0, 0, 0, .05);
}
.dvc-count {
  margin: 12px 2px 0;
  font-size: 14px;
  color: var(--dvc-muted);
}

/* ---- Groups ---- */
.dvc-groups { display: grid; gap: 16px; }
.dvc-group {
  padding: 18px;
  border: 1px solid var(--dvc-hairline);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
}
.dvc-group[hidden] { display: none; }
.dvc-group-head { margin-bottom: 14px; }
.dvc-group-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--dvc-ink);
}
.dvc-group-note {
  margin: 5px 0 0;
  max-width: 70ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--dvc-muted);
}

.dvc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dvc-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.45;
  color: #374151;
}
.dvc-item[hidden] { display: none; }
.dvc-item-tick {
  flex: none;
  width: 14px; height: 14px;
  color: var(--dvc-orange);
}

.dvc-empty {
  margin: 0;
  padding: 22px 18px;
  border: 1px dashed var(--dvc-border);
  border-radius: 18px;
  background: var(--dvc-wash);
  font-size: 14.5px;
  line-height: 1.65;
  color: #4b5563;
  text-align: center;
}
.dvc-empty[hidden] { display: none; }

/* ---- Caveats ---- */
.dvc-notes {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--dvc-hairline);
  border-radius: 18px;
  background: #fff;
}
.dvc-notes-title {
  margin: 0 0 12px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--dvc-ink);
}
.dvc-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.dvc-notes li {
  max-width: 78ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--dvc-muted);
}
.dvc-notes strong { color: var(--dvc-ink); font-weight: 600; }
.dvc-notes a {
  color: var(--dvc-orange);
  font-weight: 500;
  text-decoration: none;
}
.dvc-notes a:hover { color: var(--dvc-orange-hover); text-decoration: underline; text-underline-offset: 3px; }

/* Provenance note — quieter than the caveats it follows. */
.dvc-source {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--dvc-hairline);
  max-width: 78ch;
  font-size: 13px;
  line-height: 1.65;
  color: #8a94a3;
}
.dvc-source code { font-size: .92em; padding: 1px 6px; }

/* ---- CTA ---- */
.dvc-cta { margin-top: 24px; text-align: center; }
.dvc-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--dvc-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 107, 0, .22);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.dvc-cta-btn:hover {
  background: var(--dvc-orange-hover);
  box-shadow: 0 8px 22px rgba(255, 107, 0, .28);
  transform: translateY(-2px);
  color: #fff;
}
.dvc-cta-btn:focus-visible { outline: 2px solid var(--dvc-orange); outline-offset: 3px; }

@media (min-width: 560px) {
  .dvc-check { padding: 24px; gap: 18px; border-radius: 20px; margin-bottom: 32px; }
  .dvc-check-ic { width: 46px; height: 46px; }
  .dvc-check-ic svg { width: 22px; height: 22px; }
  .dvc-item-tick { width: 15px; height: 15px; }
  .dvc-check-title { font-size: 19px; }
  .dvc-check-text { font-size: 15.5px; line-height: 1.7; }
  .dvc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dvc-group, .dvc-notes { padding: 24px; border-radius: 20px; }
  .dvc-group-title, .dvc-notes-title { font-size: 18px; }
  .dvc-group-note, .dvc-item, .dvc-notes li, .dvc-empty { font-size: 15px; }
  .dvc-cta-btn { width: auto; min-height: 54px; padding: 0 32px; border-radius: 15px; }
}
@media (min-width: 768px) {
  .dvc-check {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-radius: 22px;
  }
  .dvc-check-ic { width: 50px; height: 50px; }
  .dvc-check-ic svg { width: 24px; height: 24px; }
  .dvc-item-tick { width: 16px; height: 16px; }
  .dvc-check-title { font-size: 22px; }
  .dvc-check-text { font-size: 16px; }
  .dvc-groups { gap: 20px; }
  .dvc-group, .dvc-notes { padding: 32px; border-radius: 22px; }
  .dvc-group-title, .dvc-notes-title { font-size: 19px; }
  .dvc-item, .dvc-notes li { font-size: 15.5px; }
  .dvc-cta-btn { min-height: 56px; padding: 0 36px; border-radius: 16px; }
  .dvc-cta { margin-top: 32px; }
  .dvc-notes { margin-top: 32px; }
}
@media (min-width: 1024px) {
  .dvc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .dvc-cta-btn, .dvc-search-input { transition: none; }
  .dvc-cta-btn:hover { transform: none; }
}

