/*
 * Legacy fallback. The link starts with media="not all"; the feature-detection
 * script in app/layout.tsx changes it to "all" only when CSS Nesting is absent.
 * That is effectively the same cutoff as Tailwind 4 (Safari 16.4+, Chrome 111+,
 * Firefox 128+).
 *
 * Scope: a readable single-column page and an honest message that the tool
 * itself needs a newer browser. No attempt is made to run the tools here;
 * these browsers lack the WebAssembly and Worker support anyway.
 */

body {
  margin: 0 !important;
  padding: 0 16px !important;
  background: #f3f2f2 !important;
  color: #201f1d !important;
  font: 16px/1.7 Georgia, "Times New Roman", serif !important;
}

.mx-auto,
main,
header,
footer,
article,
section {
  display: block !important;
  float: none !important;
  width: auto !important;
  max-width: 42em !important;
  margin: 0 auto !important;
  position: static !important;
}

h1 {
  font-size: 28px !important;
  line-height: 1.2 !important;
  margin: 24px 0 8px !important;
}

h2 {
  font-size: 22px !important;
  margin: 24px 0 8px !important;
}

h3 {
  font-size: 18px !important;
  margin: 18px 0 6px !important;
}

p,
li {
  font-size: 16px !important;
  line-height: 1.7 !important;
  text-align: left !important;
  margin: 0 0 14px !important;
}

a {
  color: #7d5411 !important;
  text-decoration: underline !important;
}

header {
  border-bottom: 1px solid #c9c5c5 !important;
  padding: 12px 0 !important;
}

footer {
  border-top: 1px solid #201f1d !important;
  padding: 20px 0 40px !important;
}

/* The reading area is the whole of what works here, so the FAQ opens flat
   rather than depending on <details> toggling. */
details > summary {
  font-weight: bold !important;
  margin: 14px 0 6px !important;
  list-style: none !important;
}

details {
  display: block !important;
  border-bottom: 1px solid #c9c5c5 !important;
}

/* The tool itself: hidden, and replaced by one honest sentence. */
.device-body > *,
.anchored,
.tick,
.device-rule {
  display: none !important;
}

.device-body {
  padding: 0 !important;
}

.legacy-note {
  display: block !important;
  border-left: 3px solid #b68235 !important;
  padding: 4px 0 4px 14px !important;
  margin: 8px 0 !important;
  font-size: 16px !important;
}

/* Reserved ad space is meaningless without the ad script. */
.ad-slot {
  display: none !important;
}
