/* ==================================================
   UNSUPPORTED BROWSER  (/your-app/unsupported)
   Two-panel "fork-in-the-road" rendered when the
   visitor's browser fails the support check. Top
   panel offers the technical fix (install a current
   browser); bottom callout offers the human fallback
   (call or email support).

   Why two panels, not one card with a sub-section:
   the technical and human paths are equal-priority
   alternatives, not a primary CTA with a fine-print
   escape hatch. Stacked cards make that read.

   Defensive baseline: this page assumes nothing about
   JS or modern browser features. tel: and mailto:
   work everywhere. CSS custom properties are honored
   by every browser except IE11, which falls back to
   declared defaults — page still reads, just without
   tokens.
   ================================================== */

.app-cx .unsupported-browser {
  max-width: 540px;
  margin: var(--space-6) auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ---- Top panel: install a current browser ---- */

/* .card supplies bg / radius / shadow / padding. Reset its bottom
   margin so the wrapper's gap controls inter-panel spacing. Bump
   shadow one step (md vs the .card default sm) so the panels feel
   intentional on this short page — sm reads as "row in a list,"
   md reads as "deliberate affordance." */
.app-cx .unsupported-browser-panel {
  margin: 0;
  box-shadow: var(--shadow-lg);
}

/* Icon inline-left of the heading. Same lockup as the callout below
   so the two cards read as visual siblings. */
.app-cx .unsupported-browser-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.app-cx .unsupported-browser-title-row .icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.app-cx .unsupported-browser-title {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-ink);
}

.app-cx .unsupported-browser-lede {
  font-size: var(--text-base);
  color: var(--color-muted-strong);
  line-height: var(--lh-normal);
  margin: 0 0 var(--space-4);
}

/* Tile grid: 4 across at desktop, 2 across at phone width. */
.app-cx .unsupported-browser-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
@media (max-width: 480px) {
  .app-cx .unsupported-browser-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Each tile is an <a> — the whole card is the click target. Override
   the default link underline (.app-cx a { text-decoration: underline })
   because the tile reads as clickable from its border + hover state;
   underlining the label too would feel busy. Hover idiom matches the
   cx .tile pattern: border darkens to primary-soft, soft shadow
   appears. */
.app-cx .unsupported-browser-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--color-ink);
  text-decoration: none;
  transition: border-color var(--duration-fast) var(--ease-standard),
              box-shadow   var(--duration-fast) var(--ease-standard);
}
.app-cx .unsupported-browser-tile:hover,
.app-cx .unsupported-browser-tile:focus-visible {
  border-color: var(--color-primary-soft);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.app-cx .unsupported-browser-tile-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-cx .unsupported-browser-tile-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.app-cx .unsupported-browser-tile-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-ink);
  text-align: center;
  line-height: 1.3;
}

/* ---- Callout: human fallback (info-blue) ---- */

/* Same .card chrome as the top panel; swap fill to info-blue. No
   left-edge stripe — intentionally NOT .banner-info — because the
   two panels are equal-priority siblings, not banner-on-content.
   Token note: info-blue (not warning-amber) is the correct family
   here. Warning-amber would semantically misuse the warning vocab
   for a reassuring affordance. */
.app-cx .unsupported-browser-callout {
  margin: 0;
  background: var(--color-info-bg);
  box-shadow: var(--shadow-lg);
}

.app-cx .unsupported-browser-callout-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
/* Smaller than the top-panel title icon (16 vs 20) so it pairs
   proportionally with the smaller --text-md heading below. */
.app-cx .unsupported-browser-callout-title-row .icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.app-cx .unsupported-browser-callout-title {
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--color-ink);
}

.app-cx .unsupported-browser-callout-body {
  font-size: var(--text-sm);
  color: var(--color-muted-strong);
  line-height: var(--lh-normal);
  margin: 0 0 var(--space-3);
}

/* Phone and email — actionable links in brand navy at weight 600,
   matching how cx.css treats other inline-link affordances. */
.app-cx .unsupported-browser-callout-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}
.app-cx .unsupported-browser-callout-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.app-cx .unsupported-browser-callout-link:hover,
.app-cx .unsupported-browser-callout-link:focus-visible {
  text-decoration: underline;
}
.app-cx .unsupported-browser-callout-link .icon {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* At phone width, stack contact links so each is a comfortable
   full-row tap target instead of a tight inline pair. */
@media (max-width: 480px) {
  .app-cx .unsupported-browser-callout-links {
    flex-direction: column;
    gap: var(--space-2);
  }
}
