/* Styling for Noscript and Unsupported Browser messages (legacy browser friendly) */

body.unsupported-mode {
  background-color: #f8fafc;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  margin: 0;
  padding: 0;
}

.legacy-grid-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    linear-gradient(to right, #e2e8f0 1px, transparent 1px),
    linear-gradient(to bottom, #e2e8f0 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  z-index: 1;
}

.legacy-screen {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: block;
  padding: 20px;
  box-sizing: border-box;
}

.legacy-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  max-width: 600px;
  margin: 40px auto;
  padding: 40px;
  position: relative;
  z-index: 10;
}

.legacy-brand {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.legacy-status-code {
  font-size: 48px;
  font-weight: 900;
  color: #2563eb;
  margin-bottom: 15px;
}

.legacy-h1 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.legacy-message {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 20px 0;
}

.legacy-footer {
  color: #64748b;
  font-size: 11px;
  border-top: 1px solid #e2e8f0;
  padding-top: 15px;
  margin-top: 30px;
}

/* Tabs layout */
.tabs {
  border-bottom: 2px solid #e2e8f0;
  margin-top: 20px;
  margin-bottom: 25px;
  display: block;
  width: 100%;
  height: 45px;
}

.tab-btn {
  float: left;
  width: 50%;
  height: 45px;
  box-sizing: border-box;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: bold;
  color: #64748b;
  cursor: pointer;
  text-align: center;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.tab-btn.active.active-green {
  color: #02b350;
  border-bottom-color: #02b350;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Section styling (guide, help, step) */
.guide-section,
.help-section,
.step-section {
  margin-top: 20px;
  margin-bottom: 25px;
  text-align: left;
}

.guide-section h2,
.help-section h2,
.step-section h2 {
  font-size: 17px;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 10px;
  border-left: 4px solid #2563eb;
  padding-left: 10px;
}

.tab-tech .guide-section h2 {
  border-left-color: #02b350;
}

.guide-section p,
.guide-section ul,
.guide-section ol,
.help-section p,
.help-section ul,
.help-section ol,
.step-section p,
.step-section ul,
.step-section ol {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.guide-section p,
.help-section p,
.step-section p {
  margin: 0 0 12px 0;
}

.guide-section ul,
.guide-section ol,
.help-section ul,
.help-section ol,
.step-section ul,
.step-section ol {
  margin: 0 0 15px 0;
  padding-left: 20px;
}

.guide-section li,
.help-section li,
.step-section li {
  margin-bottom: 12px;
}

.guide-section li li,
.help-section li li,
.step-section li li {
  margin-bottom: 6px;
}

/* Code block styling */
pre {
  background-color: #0f172a;
  color: #38bdf8;
  padding: 12px;
  font-family: monospace;
  font-size: 13px;
  overflow-x: auto;
  margin: 10px 0;
  border-radius: 4px;
}

/* Callout boxes */
.highlight-box,
.warning-box,
.security-overlay-box {
  padding: 15px;
  margin-bottom: 20px;
}

.highlight-box {
  background-color: #eff6ff;
  border-left: 4px solid #3b82f6;
}

.highlight-box p {
  margin: 0;
  font-size: 13.5px;
  color: #1e3a8a;
  line-height: 1.5;
}

.warning-box {
  background-color: #fff7ed;
  border-left: 4px solid #f97316;
}

.security-overlay-box {
  background-color: #fef2f2;
  border: 3px solid #ef4444;
  border-radius: 4px;
}

/* Tables styling */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  font-size: 13.5px;
}

table.data-table th,
table.data-table td {
  padding: 8px;
  border: 1px solid #cbd5e1;
}

table.data-table th {
  background-color: #f1f5f9;
  text-align: left;
  color: #0f172a;
}

table.data-table td {
  color: #475569;
  vertical-align: top;
}

table.data-table.table-ssd {
  font-size: 13.5px;
}

table.data-table.table-soft {
  font-size: 13px;
}

table.data-table td ul {
  margin: 0;
  padding-left: 15px;
  list-style-type: square;
  line-height: 1.4;
}

table.data-table td.soft-equivalent {
  font-weight: bold;
}

/* Description text styles */
.step-desc {
  font-size: 13.5px;
  color: #475569;
  display: block;
  margin-top: 3px;
  line-height: 1.5;
}

.step-desc-sub {
  font-size: 13px;
  color: #64748b;
  display: block;
  margin-top: 2px;
  line-height: 1.4;
}

.nested-list {
  margin: 5px 0 5px 15px;
  padding: 0;
  list-style-type: circle;
  font-size: 13px;
  color: #64748b;
}

/* Screenshots */
.screenshot-thumb {
  max-width: 100%;
  height: auto;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  margin-top: 5px;
  margin-bottom: 12px;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Navigation button */
.back-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 16px;
  background-color: #0f172a;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 10px;
}

.back-btn:hover {
  background-color: #1e293b;
}

/* Inline links */
.link-inline {
  color: #2563eb;
  font-weight: bold;
  text-decoration: underline;
}

/* Collapsible summary lists styling */
summary::-webkit-details-marker {
  display: none;
}
summary {
  list-style: none;
}
