/* =============================================
   xe8 GUIDE PAGES — shared.css
   Used by: guide hub + how-to-register,
   how-to-deposit, how-to-withdraw
   Nav: WHITE | Footer: LIGHT GREY (designer spec)
   ============================================= */

:root {
  --navy:        #1a2461;
  --navy-mid:    #022a99;
  --blue-acc:    #022a99;
  --orange:      #ff7f00;
  --orange-dark: #d96b00;
  --orange-soft: #fff3e0;
  --white:       #ffffff;
  --off-white:   #f5f6fa;
  --footer-bg:   #eef0f5;
  --grey-light:  #e2e4ed;
  --grey-mid:    #8a90a8;
  --grey-dark:   #555a6e;
  --green:       #1a7a4a;
  --green-soft:  #edf7f2;
  --text-dark:   #111827;
  --text-body:   #374151;
  --text-legal:  #1f2937;

  --nav-bg:     #ffffff;
  --nav-border: #e2e4ed;
  --nav-text:   #374151;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.10);
  --transition: 0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  { font-family: 'Barlow', sans-serif; font-size: 16px; color: var(--text-body); background: var(--white); line-height: 1.75; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--blue-acc); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; padding: 0; }

h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-dark);
}
h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
}
h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}
h4 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}
p {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
}

.label-text { font-size: clamp(12px, 1.4vw, 14px); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3; color: var(--grey-mid); }
.placeholder { background: #fff3e0; border: 1px solid #ff7f0055; border-radius: 3px; padding: 1px 6px; font-size: 0.82rem; color: #c96300; font-weight: 600; }

/* ---- Layout ---- */
.container    { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-md { width: 100%; max-width: 860px;  margin: 0 auto; padding: 0 20px; }
.section-pad    { padding: 56px 0; }
.section-pad-sm { padding: 36px 0; }

/* ---- Buttons ---- */
.btn { display: inline-block; padding: 12px 26px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem; cursor: pointer; border: none; transition: background var(--transition), transform var(--transition), box-shadow var(--transition); text-align: center; text-decoration: none; }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,127,0,0.3); text-decoration: none; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); text-decoration: none; }

/* =============================================
   NAVIGATION — White with dropdown
   ============================================= */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1100px; margin: 0 auto; padding: 0 20px;
}

.logo-xe { font-size: 1.55rem; font-weight: 900; color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.logo-8  { font-size: 1.55rem; font-weight: 900; color: var(--orange); letter-spacing: -0.03em; line-height: 1; }

/* Desktop nav links */
.nav-links { display: none; gap: 2px; align-items: center; }

.nav-item { position: relative; }

.nav-item > a {
  display: block;
  color: var(--nav-text); font-size: 0.82rem; font-weight: 600;
  padding: 6px 11px; border-radius: var(--radius-sm);
  letter-spacing: 0.02em; text-transform: uppercase;
  transition: color var(--transition); text-decoration: none;
}
.nav-item > a:hover  { color: var(--orange); }
.nav-item > a.active { color: var(--orange); }

/* Dropdown trigger */
.nav-item.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 5px;
  vertical-align: middle;
  opacity: 0.6;
  transition: transform var(--transition);
}

/* Dropdown panel */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
  min-width: 210px;
  box-shadow: var(--shadow-md);
  z-index: 300;
  overflow: hidden;
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown.open  .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 11px 16px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-body);
  border-bottom: 1px solid var(--grey-light);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { color: var(--orange); background: var(--off-white); }

/* Nav right */
.nav-right { display: none; align-items: center; gap: 10px; }

.nav-login {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(13,27,75,0.35);
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-login:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

@keyframes register-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(255,127,0,0.4), 0 0 0 0 rgba(255,127,0,0.25); }
  50%       { box-shadow: 0 4px 14px rgba(255,127,0,0.4), 0 0 0 8px rgba(255,127,0,0); }
}
.nav-register {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: 6px;
  white-space: nowrap;
  animation: register-pulse 2.5s ease-in-out infinite;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.nav-register:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255,127,0,0.6);
  animation: none;
  color: var(--white);
}

/* Hamburger */
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.25s ease; }

/* Mobile drawer */
.mobile-menu { display: none; background: var(--white); border-top: 1px solid var(--nav-border); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.mobile-menu.open { display: block; }

.mobile-menu > a {
  display: block; color: var(--text-dark); font-size: 0.9rem; font-weight: 600;
  padding: 13px 24px; border-bottom: 1px solid var(--grey-light);
  text-transform: uppercase; letter-spacing: 0.03em;
  transition: color var(--transition), background var(--transition); text-decoration: none;
}
.mobile-menu > a:hover  { color: var(--orange); background: var(--off-white); }
.mobile-menu > a.active { color: var(--orange); }

/* Mobile sub-links (guide children) */
.mobile-sub {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey-light);
}
.mobile-sub a {
  display: block; color: var(--grey-dark); font-size: 0.85rem; font-weight: 600;
  padding: 10px 24px 10px 36px;
  border-bottom: 1px solid var(--grey-light);
  transition: color var(--transition); text-decoration: none;
}
.mobile-sub a:last-child { border-bottom: none; }
.mobile-sub a:hover  { color: var(--orange); }
.mobile-sub a.active { color: var(--orange); }

.mobile-menu-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px 20px;
}
.mobile-menu-actions a {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, filter 0.2s;
}
.mobile-login {
  color: var(--navy);
  border: 2px solid rgba(13,27,75,0.35);
}
.mobile-login:hover {
  background: var(--navy);
  color: var(--white);
}
.mobile-register {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  box-shadow: 0 4px 12px rgba(255,127,0,0.35);
}
.mobile-register:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(255,127,0,0.5);
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb { background: var(--off-white); border-bottom: 1px solid var(--grey-light); padding: 10px 0; }
.breadcrumb-inner { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.8rem; color: var(--grey-mid); }
.breadcrumb-inner a { color: var(--blue-acc); text-decoration: none; }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner .current { color: var(--text-dark); font-weight: 600; }

/* =============================================
   PAGE HERO
   ============================================= */
.guide-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #022a99 60%, #1a2461 100%);
  padding: 48px 0 44px;
  text-align: center;
}
.guide-hero h1       { color: var(--white); margin-bottom: 14px; }
.guide-hero h1 span  { color: var(--orange); }
.guide-hero .hero-sub {
  color: rgba(255,255,255,0.75); font-size: 0.97rem;
  max-width: 600px; margin: 0 auto 24px; line-height: 1.75;
}
.guide-hero .hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.hero-chip {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header { margin-bottom: 28px; }
.section-header .label-text { margin-bottom: 6px; }
.section-header h2 { margin-bottom: 10px; }
.section-header .section-desc { font-size: 0.95rem; color: var(--text-body); line-height: 1.75; max-width: 700px; }

/* =============================================
   PREREQUISITES TABLE
   ============================================= */
.prereq-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prereq-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 480px;
}
.prereq-table thead tr { background: var(--navy); }
.prereq-table thead th { color: var(--white); font-weight: 700; padding: 12px 14px; text-align: left; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.prereq-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.prereq-table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.prereq-table tbody tr:nth-child(odd)  { background: var(--off-white); }
.prereq-table tbody tr:nth-child(even) { background: var(--white); }
.prereq-table td { padding: 13px 14px; border-bottom: 1px solid var(--grey-light); vertical-align: top; line-height: 1.65; color: var(--text-legal); }
.prereq-table .req-name { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Mobile prereq cards */
.prereq-cards { display: none; }
.prereq-card { background: var(--white); border: 1px solid var(--grey-light); border-left: 4px solid var(--navy); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.prereq-card-name { font-weight: 700; color: var(--navy); font-size: 0.9rem; margin-bottom: 5px; }
.prereq-card-detail { font-size: 0.855rem; color: var(--text-body); line-height: 1.55; margin-bottom: 5px; }
.prereq-card-why { font-size: 14px; color: var(--grey-mid); }

/* =============================================
   STEP BOXES
   ============================================= */
.steps-list { margin: 0; }

.step-item {
  display: flex; gap: 20px; align-items: flex-start;
  margin-bottom: 16px; position: relative;
}

/* Connector line between steps */
.step-item:not(:last-child)::after {
  content: ''; position: absolute;
  left: 19px; top: 42px;
  width: 2px; height: calc(100% - 10px);
  background: var(--grey-light); z-index: 0;
}

.step-num {
  flex-shrink: 0; width: 40px; height: 40px;
  border-radius: 50%; background: var(--orange);
  color: var(--white); font-weight: 900; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 1; position: relative;
  box-shadow: 0 2px 8px rgba(255,127,0,0.3);
}

.step-card {
  flex: 1; background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}

.step-card h3 { font-size: 0.97rem; color: var(--navy); margin-bottom: 7px; }
.step-card p  { font-size: 0.875rem; color: var(--text-body); line-height: 1.7; }
.step-card p strong { color: var(--text-dark); }

/* Method anchor heading */
.method-anchor { scroll-margin-top: 80px; }

/* =============================================
   DATA TABLES — shared
   ============================================= */
.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 460px;
}
.data-table thead tr { background: var(--navy-mid); }
.data-table thead th { color: var(--white); font-weight: 700; padding: 12px 14px; text-align: left; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.data-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.data-table tbody tr:nth-child(odd)  { background: var(--off-white); }
.data-table tbody tr:nth-child(even) { background: var(--white); }
.data-table tbody tr:hover { background: #eef2ff; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--grey-light); vertical-align: top; line-height: 1.65; font-size: 0.875rem; color: var(--text-legal); }
.data-table .cell-label { font-weight: 700; color: var(--navy); white-space: nowrap; }
.data-table .cell-good  { color: var(--green); font-weight: 600; }

/* Orange header variant */
.data-table.orange thead tr { background: var(--orange); }

/* Mobile data cards */
.data-cards { display: none; }
.data-card { background: var(--white); border: 1px solid var(--grey-light); border-radius: var(--radius-md); margin-bottom: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.data-card-header { background: var(--navy-mid); color: var(--white); padding: 11px 16px; font-weight: 700; font-size: 0.9rem; }
.data-card-header.orange { background: var(--orange); }
.data-card-body  { padding: 13px 16px; }
.data-card-row   { margin-bottom: 9px; font-size: 0.875rem; }
.data-card-row:last-child { margin-bottom: 0; }
.data-card-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--grey-mid); margin-bottom: 3px; }
.data-card-value { color: var(--text-body); line-height: 1.5; }
.data-card-value.good { color: var(--green); font-weight: 600; }

/* =============================================
   CALLOUT BOXES
   ============================================= */
.callout {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px; margin: 20px 0;
  font-size: 0.875rem; line-height: 1.7;
}
.callout-title { font-weight: 700; margin-bottom: 6px; }
.callout.warning { background: var(--orange-soft); border-left: 4px solid var(--orange); color: #7a4000; }
.callout.warning .callout-title { color: var(--navy); }
.callout.info    { background: #e8f0ff; border-left: 4px solid var(--blue-acc); color: var(--text-body); }
.callout.info .callout-title { color: var(--navy); }
.callout.green   { background: var(--green-soft); border-left: 4px solid var(--green); color: var(--text-body); }
.callout.green .callout-title { color: var(--green); }
.callout a { font-weight: 600; }

/* Quick check box */
.quick-check {
  background: var(--green-soft); border: 1px solid #b8dece;
  border-radius: var(--radius-md); padding: 16px 20px;
  margin: 20px 0; font-size: 0.875rem; color: var(--text-body); line-height: 1.7;
}
.quick-check strong { color: var(--green); }

/* =============================================
   METHOD SECTION (deposit)
   ============================================= */
.method-section { margin-bottom: 52px; }
.method-section:last-child { margin-bottom: 0; }

.method-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; margin-bottom: 20px;
  background: var(--off-white); border: 1px solid var(--grey-light);
  border-radius: var(--radius-md); border-left: 4px solid var(--orange);
}
.method-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-weight: 900; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.method-header h2 { margin: 0; font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: var(--navy); }

/* Method specs mini-table */
.method-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin-top: 16px;
}
.spec-item {
  background: var(--off-white); border: 1px solid var(--grey-light);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.spec-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--grey-mid); margin-bottom: 3px; }
.spec-value { font-size: 0.875rem; font-weight: 600; color: var(--text-dark); }
.spec-value.good { color: var(--green); }

/* =============================================
   TROUBLESHOOTING TABLE
   ============================================= */
.trouble-section { background: var(--off-white); }

.trouble-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.trouble-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 560px;
}
.trouble-table thead tr { background: var(--navy); }
.trouble-table thead th { color: var(--white); font-weight: 700; padding: 12px 14px; text-align: left; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.trouble-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.trouble-table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.trouble-table tbody tr:nth-child(odd)  { background: var(--white); }
.trouble-table tbody tr:nth-child(even) { background: #f8f9fc; }
.trouble-table td { padding: 13px 14px; border-bottom: 1px solid var(--grey-light); vertical-align: top; line-height: 1.65; font-size: 0.875rem; color: var(--text-legal); }
.trouble-table .symptom { font-weight: 700; color: var(--navy); }
.trouble-table .cause   { font-size: 14px; color: var(--grey-mid); }

/* Mobile trouble cards */
.trouble-cards { display: none; }
.trouble-card { background: var(--white); border: 1px solid var(--grey-light); border-radius: var(--radius-md); margin-bottom: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.trouble-card-symptom { background: var(--navy); color: var(--white); padding: 11px 16px; font-weight: 700; font-size: 0.875rem; }
.trouble-card-body    { padding: 13px 16px; }
.trouble-card-row     { margin-bottom: 9px; font-size: 0.875rem; }
.trouble-card-row:last-child { margin-bottom: 0; }
.trouble-card-label   { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--grey-mid); margin-bottom: 3px; }
.trouble-card-value   { color: var(--text-body); line-height: 1.5; }

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section { background: var(--white); }

.faq-list { margin-top: 24px; }
.faq-item {
  background: var(--white); border: 1px solid var(--grey-light);
  border-radius: var(--radius-md); margin-bottom: 10px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%; background: none; border: none;
  padding: 17px 20px; display: flex; align-items: center;
  justify-content: space-between; cursor: pointer; text-align: left; gap: 12px;
}
.faq-question-text { font-weight: 700; font-size: 0.92rem; color: var(--text-dark); line-height: 1.4; flex: 1; }
.faq-chevron { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--off-white); display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.faq-chevron svg { width: 12px; height: 12px; stroke: var(--grey-mid); stroke-width: 2.5; fill: none; transition: transform var(--transition); }
.faq-item.open .faq-chevron { background: var(--orange); }
.faq-item.open .faq-chevron svg { stroke: var(--white); transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 16px 20px 20px; font-size: 0.88rem; color: var(--text-body); line-height: 1.75; border-top: 1px solid var(--grey-light); }

/* =============================================
   RELATED GUIDES / CTA
   ============================================= */
.related-section { background: var(--off-white); }

.related-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px;
}
.related-card {
  background: var(--white); border: 1px solid var(--grey-light);
  border-radius: var(--radius-md); padding: 18px 20px;
  box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none; color: inherit;
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.related-card-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--off-white); border: 1px solid var(--grey-light);
  display: flex; align-items: center; justify-content: center;
}
.related-card-icon svg { width: 20px; height: 20px; stroke: var(--navy); stroke-width: 1.8; fill: none; }
.related-card-title { font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.related-card-desc  { font-size: 14px; color: var(--grey-dark); line-height: 1.5; }

/* =============================================
   FOOTER — Light grey per designer
   ============================================= */
.footer { background: var(--footer-bg); border-top: 1px solid var(--grey-light); padding: 52px 0 0; color: var(--text-body); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
.footer-logo { display: flex; align-items: center; margin-bottom: 14px; }
.footer-logo .logo-xe { font-size: 1.6rem; }
.footer-logo .logo-8  { font-size: 1.6rem; }
.footer-desc { font-size: 0.875rem; color: var(--grey-dark); line-height: 1.7; margin-bottom: 18px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.8rem; font-weight: 700;
  transition: background var(--transition), transform var(--transition); text-decoration: none;
}
.social-btn:hover { background: var(--orange); transform: translateY(-2px); }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dark); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--grey-dark); transition: color var(--transition); text-decoration: none; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dark); margin-bottom: 12px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--grey-dark); line-height: 1.5; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--orange); }
.footer-contact-item a { color: var(--grey-dark); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--orange); }
.footer-map { margin-top: 14px; border-radius: 8px; overflow: hidden; border: 1px solid var(--grey-light); }
.footer-map iframe { display: block; width: 100%; height: 130px; border: 0; }

.footer-bottom { border-top: 1px solid var(--grey-light); padding: 18px 0; text-align: center; font-size: 0.78rem; color: var(--grey-mid); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 600px) {
  .related-grid  { grid-template-columns: 1fr 1fr; }
  .method-specs  { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .section-pad { padding: 72px 0; }
  .hamburger   { display: none; }
  .nav-links   { display: flex; }
  .nav-right   { display: flex; }
  .mobile-menu { display: none !important; }
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1.4fr; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .method-specs { grid-template-columns: repeat(5, 1fr); }
}

/* Table vs card switching */
@media (max-width: 767px) {
  .prereq-table-wrap  { display: none; }
  .prereq-cards       { display: block; }
  .data-table-wrap    { display: none; }
  .data-cards         { display: block; }
  .trouble-table-wrap { display: none; }
  .trouble-cards      { display: block; }
}
@media (min-width: 768px) {
  .prereq-table-wrap  { display: block; }
  .prereq-cards       { display: none; }
  .data-table-wrap    { display: block; }
  .data-cards         { display: none; }
  .trouble-table-wrap { display: block; }
  .trouble-cards      { display: none; }
}

/* Site logo image */
.site-logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-logo .site-logo-img,
.footer-brand .site-logo-img {
  height: 30px;
}

/* ── Scroll-to-top button ── */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ff7f00;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 999;
}
#scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scroll-top:hover { background: #d96b00; }
#scroll-top:focus-visible { outline: 3px solid #ff7f00; outline-offset: 3px; }
