/* ============================================
   UnitConverterTool.com — Accessibility Page CSS
   COMPLETE STANDALONE — includes shared base + 
   page-specific styles
   ============================================ */

/* --- Reset & Base --- */
.rsc-wrapper {
  font-family: 'DM Sans', sans-serif;
  color: #C8D8E8;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.rsc-wrapper *,
.rsc-wrapper *::before,
.rsc-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Layout --- */
.rsc-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.rsc-section {
  padding: 60px 0;
}
.rsc-section + .rsc-section {
  padding-top: 0;
}

/* --- Rank Math Breadcrumb --- */
.rank-math-breadcrumb {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}
.rank-math-breadcrumb a {
  color: #5A7090;
  text-decoration: none;
}
.rank-math-breadcrumb a:hover {
  color: #8B5CF6;
}
.rank-math-breadcrumb .separator {
  color: #374B64;
  margin: 0 8px;
}
.rank-math-breadcrumb .last {
  color: #8899AA;
}

/* --- Badge --- */
.rsc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, rgba(20,184,166,0.15), rgba(14,165,233,0.10));
  color: #2DD4BF;
  border: 1px solid rgba(20,184,166,0.2);
  margin-bottom: 20px;
}

/* --- Hero --- */
.rsc-hero {
  text-align: center;
  padding: 70px 0 50px;
}
.rsc-hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.rsc-hero-title .rsc-accent {
  color: #14B8A6;
}
.rsc-hero-sub {
  font-size: 16px;
  color: #8899AA;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.75;
}

/* --- Section Headings --- */
.rsc-section-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #14B8A6;
  margin-bottom: 12px;
}
.rsc-section-title {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.rsc-section-sub {
  text-align: center;
  font-size: 15px;
  color: #8899AA;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* --- Highlight Cards (2x2) --- */
.rsc-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.rsc-hl-card {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rsc-hl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,184,166,0.08);
}
.rsc-hl-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(20,184,166,0.15);
  font-size: 22px;
  margin-bottom: 16px;
}
.rsc-hl-title {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.rsc-hl-text {
  font-size: 14px;
  color: #8899AA;
  line-height: 1.65;
}

/* --- Dark vs Light Comparison --- */
.rsc-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.rsc-compare-panel {
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.rsc-compare-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
}
.rsc-compare-light {
  background: #F0F0F0;
  border: 1px solid #D0D0D0;
  color: #1a1a1a;
}
.rsc-compare-light::before {
  background: linear-gradient(90deg, #EF4444, #F97316);
}
.rsc-compare-dark {
  background: #111B2E;
  border: 1px solid rgba(20,184,166,0.25);
}
.rsc-compare-dark::before {
  background: linear-gradient(90deg, #14B8A6, #0EA5E9);
}
.rsc-compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.rsc-compare-badge-bad { background: rgba(239,68,68,0.12); color: #EF4444; }
.rsc-compare-badge-good { background: rgba(20,184,166,0.12); color: #14B8A6; }
.rsc-compare-title { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.rsc-compare-light .rsc-compare-title { color: #1a1a1a; }
.rsc-compare-dark .rsc-compare-title { color: #FFFFFF; }
.rsc-compare-list { list-style: none; padding: 0; }
.rsc-compare-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.rsc-compare-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.rsc-compare-light .rsc-compare-list li { color: #555; }
.rsc-compare-light .rsc-compare-list li::before { background: #EF4444; }
.rsc-compare-dark .rsc-compare-list li { color: #8899AA; }
.rsc-compare-dark .rsc-compare-list li::before { background: #14B8A6; }
.rsc-compare-mock { margin-top: 18px; border-radius: 10px; padding: 16px; font-size: 13px; }
.rsc-compare-light .rsc-compare-mock { background: #FFFFFF; border: 1px solid #e0e0e0; color: #333; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.rsc-compare-light .rsc-compare-mock-label { color: #999; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; font-weight: 600; }
.rsc-compare-light .rsc-compare-mock-text { color: #222; font-weight: 600; }
.rsc-compare-dark .rsc-compare-mock { background: #0A0F1C; border: 1px solid rgba(55,75,100,0.3); color: #C8D8E8; }
.rsc-compare-dark .rsc-compare-mock-label { color: #5A7090; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; font-weight: 600; }
.rsc-compare-dark .rsc-compare-mock-text { color: #C8D8E8; font-weight: 600; }
.rsc-compare-research {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-left: 3px solid #14B8A6;
  border-radius: 0 14px 14px 0;
  padding: 24px 28px;
  font-size: 15px;
  color: #C8D8E8;
  line-height: 1.8;
}
.rsc-compare-research strong { color: #FFFFFF; }

/* --- Color Palette Table --- */
.rsc-palette-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(55,75,100,0.3);
  -webkit-overflow-scrolling: touch;
}
.rsc-palette {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}
.rsc-palette thead th {
  background: rgba(20,184,166,0.08);
  color: #14B8A6;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(55,75,100,0.3);
}
.rsc-palette tbody tr { background: #111B2E; transition: background 0.2s; }
.rsc-palette tbody tr:nth-child(even) { background: #0E1729; }
.rsc-palette tbody tr:hover { background: rgba(20,184,166,0.04); }
.rsc-palette tbody td {
  padding: 14px 18px;
  color: #C8D8E8;
  border-bottom: 1px solid rgba(55,75,100,0.15);
  vertical-align: middle;
}
.rsc-palette-name { font-weight: 600; color: #FFFFFF; }
.rsc-palette-hex { font-family: 'DM Sans', monospace; color: #8899AA; font-size: 13px; }
.rsc-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-block;
  vertical-align: middle;
  border: 1px solid rgba(255,255,255,0.1);
}
.rsc-wcag-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rsc-wcag-aaa { background: rgba(34,197,94,0.15); color: #22C55E; }
.rsc-wcag-aa { background: rgba(234,179,8,0.15); color: #EAB308; }
.rsc-wcag-aa-lg { background: rgba(234,179,8,0.1); color: #D4A30B; }

/* --- Accordion --- */
.rsc-accordion { display: flex; flex-direction: column; gap: 12px; }
.rsc-accord-item {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.rsc-accord-item:hover { box-shadow: 0 4px 16px rgba(20,184,166,0.06); }
.rsc-accord-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
}
.rsc-accord-header:hover { background: rgba(20,184,166,0.04); }
.rsc-accord-num {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(20,184,166,0.15);
  color: #14B8A6;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.rsc-accord-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.rsc-accord-title { flex: 1; font-size: 16px; font-weight: 600; color: #FFFFFF; }
.rsc-accord-arrow {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(55,75,100,0.2);
  transition: transform 0.35s ease, background 0.25s;
  flex-shrink: 0;
}
.rsc-accord-arrow svg {
  width: 14px; height: 14px;
  stroke: #8899AA; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.25s;
}
.rsc-accord-item.rsc-open .rsc-accord-arrow { transform: rotate(180deg); background: rgba(20,184,166,0.15); }
.rsc-accord-item.rsc-open .rsc-accord-arrow svg { stroke: #14B8A6; }
.rsc-accord-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.rsc-accord-content { padding: 0 24px 24px 74px; font-size: 15px; color: #C8D8E8; line-height: 1.8; }
.rsc-accord-content p { margin-bottom: 12px; }
.rsc-accord-content p:last-child { margin-bottom: 0; }
.rsc-accord-content ul { list-style: none; padding: 0; margin: 10px 0; }
.rsc-accord-content ul li {
  position: relative; padding-left: 20px; margin-bottom: 8px;
  color: #8899AA; font-size: 14px;
}
.rsc-accord-content ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: #14B8A6;
}
.rsc-accord-content a { color: #2DD4BF; text-decoration: none; border-bottom: 1px solid rgba(45,212,191,0.3); transition: border-color 0.25s; }
.rsc-accord-content a:hover { border-color: #2DD4BF; }
.rsc-accord-content strong { color: #FFFFFF; font-weight: 600; }

/* --- Interactive Demo --- */
.rsc-demo {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 14px;
  padding: 36px 32px;
}
.rsc-demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rsc-demo-panel {
  background: #0A0F1C;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 12px;
  padding: 24px 20px;
}
.rsc-demo-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #14B8A6; margin-bottom: 14px; }
.rsc-demo-title { font-size: 15px; font-weight: 600; color: #FFFFFF; margin-bottom: 12px; }
.rsc-font-btns { display: flex; gap: 8px; }
.rsc-font-btn {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid rgba(55,75,100,0.4); background: #111B2E;
  color: #C8D8E8; font-family: 'DM Sans', sans-serif; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.rsc-font-btn:hover { border-color: #14B8A6; color: #14B8A6; }
.rsc-font-btn.rsc-active { background: rgba(20,184,166,0.15); border-color: #14B8A6; color: #14B8A6; }
.rsc-font-btn:nth-child(1) { font-size: 13px; }
.rsc-font-btn:nth-child(2) { font-size: 16px; }
.rsc-font-btn:nth-child(3) { font-size: 20px; }
.rsc-contrast-inputs { display: flex; gap: 10px; margin-bottom: 12px; }
.rsc-color-input-wrap { flex: 1; }
.rsc-color-input-label { font-size: 11px; color: #5A7090; margin-bottom: 4px; font-weight: 600; }
.rsc-color-input {
  width: 100%; padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(55,75,100,0.4); background: #111B2E;
  color: #FFFFFF; font-family: 'DM Sans', monospace; font-size: 13px;
  outline: none; transition: border-color 0.2s;
}
.rsc-color-input:focus { border-color: #14B8A6; }
.rsc-contrast-result {
  padding: 12px; border-radius: 8px;
  background: rgba(20,184,166,0.06); border: 1px solid rgba(20,184,166,0.1);
  text-align: center;
}
.rsc-contrast-ratio { font-size: 22px; font-weight: 800; color: #FFFFFF; }
.rsc-contrast-level { font-size: 12px; font-weight: 700; margin-top: 2px; }
.rsc-color-preview { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.rsc-color-swatch-prev {
  width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0;
}
.rsc-motion-toggle-wrap { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.rsc-motion-toggle { position: relative; width: 52px; height: 28px; cursor: pointer; display: inline-block; }
.rsc-motion-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.rsc-motion-track {
  position: absolute; inset: 0; border-radius: 14px;
  background: rgba(55,75,100,0.4); transition: background 0.3s;
}
.rsc-motion-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #8899AA; transition: transform 0.3s, background 0.3s;
}
.rsc-motion-toggle input:checked ~ .rsc-motion-track { background: rgba(20,184,166,0.3); }
.rsc-motion-toggle input:checked ~ .rsc-motion-thumb { transform: translateX(24px); background: #14B8A6; }
.rsc-motion-label { font-size: 14px; color: #C8D8E8; }
.rsc-motion-status { font-size: 12px; color: #5A7090; margin-top: 8px; }

/* --- Blockquote --- */
.rsc-blockquote {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-left: 3px solid #14B8A6;
  border-radius: 0 14px 14px 0;
  padding: 32px 28px;
  font-size: 16px; color: #C8D8E8;
  line-height: 1.85; font-style: italic;
}
.rsc-blockquote strong { color: #FFFFFF; font-style: normal; }

/* --- Standards Cards (3 col) --- */
.rsc-std-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rsc-std-card {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rsc-std-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,184,166,0.08); }
.rsc-std-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; background: rgba(20,184,166,0.12);
  font-size: 26px; margin: 0 auto 18px;
}
.rsc-std-title { font-size: 17px; font-weight: 700; color: #FFFFFF; margin-bottom: 8px; }
.rsc-std-text { font-size: 14px; color: #8899AA; line-height: 1.65; }

/* --- Report Issue CTA --- */
.rsc-report {
  background: #111B2E;
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
}
.rsc-report-icon { font-size: 36px; margin-bottom: 16px; }
.rsc-report-title { font-size: 22px; font-weight: 800; color: #FFFFFF; margin-bottom: 10px; }
.rsc-report-text { font-size: 15px; color: #8899AA; max-width: 520px; margin: 0 auto 20px; line-height: 1.7; }
.rsc-report-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px;
  background: rgba(20,184,166,0.15); color: #14B8A6;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700;
  text-decoration: none; border: 1px solid rgba(20,184,166,0.3);
  transition: all 0.25s;
}
.rsc-report-btn:hover { background: rgba(20,184,166,0.25); transform: translateY(-1px); }
.rsc-report-note { font-size: 13px; color: #5A7090; margin-top: 14px; }

/* --- Quick Links Grid --- */
.rsc-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rsc-link-card {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 14px;
  padding: 28px 24px;
  text-decoration: none;
  display: flex; align-items: center; gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.rsc-link-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,184,166,0.08); border-color: rgba(20,184,166,0.25); }
.rsc-link-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(20,184,166,0.15);
  font-size: 22px; flex-shrink: 0;
}
.rsc-link-info { flex: 1; }
.rsc-link-title { font-size: 16px; font-weight: 700; color: #FFFFFF; margin-bottom: 4px; }
.rsc-link-desc { font-size: 13px; color: #5A7090; }
.rsc-link-arrow { color: #3A4F6A; font-size: 18px; transition: color 0.25s, transform 0.25s; }
.rsc-link-card:hover .rsc-link-arrow { color: #14B8A6; transform: translateX(3px); }

/* --- CTA --- */
.rsc-cta { text-align: center; padding: 70px 0 80px; }
.rsc-cta-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: #FFFFFF; margin-bottom: 14px; letter-spacing: -0.3px; }
.rsc-cta-sub { font-size: 15px; color: #8899AA; max-width: 540px; margin: 0 auto 28px; line-height: 1.7; }
.rsc-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 10px;
  background: linear-gradient(135deg, #14B8A6, #0EA5E9);
  color: #FFFFFF; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s; letter-spacing: 0.2px;
}
.rsc-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(20,184,166,0.25); }

/* --- Reduced Motion Override --- */
.rsc-reduced-motion *,
.rsc-reduced-motion *::before,
.rsc-reduced-motion *::after {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .rsc-hero { padding: 50px 0 35px; }
  .rsc-section { padding: 40px 0; }
  .rsc-highlights { grid-template-columns: 1fr; }
  .rsc-compare { grid-template-columns: 1fr; }
  .rsc-demo-grid { grid-template-columns: 1fr; }
  .rsc-std-grid { grid-template-columns: 1fr; }
  .rsc-links-grid { grid-template-columns: 1fr; }
  .rsc-accord-content { padding-left: 24px; }
  .rsc-accord-header { padding: 16px 18px; gap: 10px; }
  .rsc-hl-card { padding: 22px 20px; }
  .rsc-cta { padding: 50px 0 60px; }
  .rsc-demo { padding: 28px 20px; }
  .rsc-blockquote { padding: 26px 22px; }
  .rsc-report { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .rsc-container { padding: 0 15px; }
  .rsc-hero-title { font-size: 28px; }
  .rsc-accord-num { display: none; }
}
