/* ========================================================
   ThaiPartners · 1-to-1 Pixel-Accurate Editorial Design System
   Matches the approved editorial corporate landing mockup exactly
   ======================================================== */

:root {
  --tp-ink: #0F172A;
  --tp-ink-soft: #1E293B;
  --tp-body: #475569;
  --tp-muted: #64748B;
  --tp-faint: #94A3B8;
  --tp-border: #E2E8F0;
  --tp-border-subtle: #F1F5F9;
  
  --tp-bg: #FFFFFF;
  --tp-bg-alt: #FAFAFA;
  --tp-bg-card: #FFFFFF;
  
  --tp-red: #C92A2A;
  --tp-red-hover: #B02525;
  --tp-red-light: #FEE2E2;
  --tp-red-border: #FECACA;
  
  --tp-green: #059669;
  --tp-green-light: #ECFDF5;
  --tp-green-border: #A7F3D0;
  
  --tp-font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tp-font-serif: 'Instrument Serif', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.editorial-theme {
  font-family: var(--tp-font-sans);
  color: var(--tp-ink);
  background-color: var(--tp-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}


.ed-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========================================================
   HEADER / NAVBAR
   ======================================================== */
.ed-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #EDEDED;
  height: 72px;
  display: flex;
  align-items: center;
}

.ed-header .ed-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ed-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ed-brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.15s ease;
}

.ed-brand-logo-img:hover {
  transform: scale(1.02);
}

.foot-logo {
  height: 38px;
  margin-bottom: 12px;
}

.ed-brand-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.ed-brand-text {
  display: flex;
  flex-direction: column;
}

.ed-brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #0F172A;
  line-height: 1.15;
}

.ed-brand-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #94A3B8;
  text-transform: uppercase;
}

.ed-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ed-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--tp-body);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ed-nav a:hover {
  color: var(--tp-ink);
}

.ed-nav a.on {
  color: #0F172A;
  font-weight: 700;
  position: relative;
}

.ed-nav a.on::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tp-red);
  border-radius: 9999px;
}

.ed-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ed-header-right .desk {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}


/* Language selector */
.ed-lang-wrap {
  position: relative;
}

.ed-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ed-lang-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.ed-lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 6px;
  display: none;
  flex-direction: column;
  min-width: 130px;
  z-index: 110;
}

.ed-lang-dropdown.open {
  display: flex;
}

.ed-lang-dropdown button {
  background: none;
  border: none;
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--tp-ink);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.ed-lang-dropdown button:hover {
  background: #F1F5F9;
}

.ed-lang-dropdown button.active {
  font-weight: 700;
  color: var(--tp-red);
}

/* Pill Buttons */
.ed-btn-dark {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ed-btn-dark:hover {
  background: #000000;
  transform: translateY(-1px);
}

.ed-btn-red {
  background: var(--tp-red);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(201, 42, 42, 0.22);
  transition: all 0.2s ease;
}

.ed-btn-red:hover {
  background: var(--tp-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 42, 42, 0.32);
}

.ed-btn-outline {
  background: #F8FAFC;
  color: #1E293B;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ed-header-signin {
  font-size: 13.5px;
  font-weight: 600;
  color: #1E293B;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.ed-header-signin:hover {
  color: var(--tp-red);
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.wiz-signin-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #475569;
  gap: 10px;
}

.wiz-signin-callout .wiz-signin-btn {
  font-weight: 600;
  color: var(--tp-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.wiz-signin-callout .wiz-signin-btn:hover {
  text-decoration: underline;
}

/* Mobile burger */
.ed-burger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--tp-ink);
}

/* ========================================================
   SECTION TAGS & HEADINGS
   ======================================================== */
.ed-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tp-muted);
  margin-bottom: 14px;
}

.ed-tag .ed-num {
  color: var(--tp-red);
}

.ed-sec-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.9px;
  color: var(--tp-ink);
  margin-bottom: 14px;
}

.ed-sec-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--tp-body);
  max-width: 580px;
}

.ed-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tp-ink);
  text-decoration: none;
  margin-top: 18px;
  transition: gap 0.2s ease, color 0.15s ease;
}

.ed-link-arrow:hover {
  color: var(--tp-red);
  gap: 9px;
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.ed-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  background-color: #FFFFFF;
}

.ed-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ed-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 1;
}

.ed-hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #FFFFFF 0%, rgba(255, 255, 255, 0.95) 15%, rgba(255, 255, 255, 0.22) 55%, rgba(255, 255, 255, 0) 100%),
              linear-gradient(to top, #FFFFFF 0%, rgba(255, 255, 255, 0.2) 10%, transparent 100%);
}

.ed-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ed-hero-content {
  max-width: 560px;
}

.ed-hero-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 20px;
}

.ed-hero-corner-mark {
  text-align: right;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #475569;
  margin-top: 4px;
}

.ed-hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.8px;
  color: #0F172A;
  margin-bottom: 22px;
}

.ed-hero-title .red {
  color: var(--tp-red);
}

.ed-hero-sub {
  font-size: 16px;
  line-height: 1.62;
  color: var(--tp-body);
  margin-bottom: 32px;
  max-width: 500px;
}

.ed-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.ed-trust-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

.ed-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1E293B;
}

.ed-trust-item svg {
  width: 17px;
  height: 17px;
  color: #64748B;
  flex-shrink: 0;
}

/* ========================================================
   SECTION 01 & 02: PROBLEM VS SOLUTION + CENTER TUK TUK
   ======================================================== */
.ed-split-sec {
  padding: 88px 0;
  border-top: 1px solid var(--tp-border-subtle);
  background-color: #FFFFFF;
}

.ed-split-grid {
  display: grid;
  grid-template-columns: 1fr 340px 1fr;
  gap: 48px;
  align-items: center;
}

.ed-split-col {
  display: flex;
  flex-direction: column;
}

.ed-split-photo {
  width: 100%;
  height: 490px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.09);
}

.ed-split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
}

.ed-split-photo:hover img {
  transform: scale(1.02);
}

.ed-split-col .ed-sec-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.ed-bullet-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.ed-bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: #0F172A;
}

.ed-bullet-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ed-bullet-icon.red {
  background-color: #FEE2E2;
  color: var(--tp-red);
}

.ed-bullet-icon.green {
  background-color: #0F766E;
  color: #FFFFFF;
}

/* ========================================================
   SECTION 03: HOW IT WORKS (3 STEPS)
   ======================================================== */
.ed-steps-sec {
  padding: 88px 0;
  border-top: 1px solid var(--tp-border-subtle);
  background-color: #FFFFFF;
}

.ed-steps-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.ed-steps-badge {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tp-muted);
}

.ed-steps-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: flex-start;
  gap: 48px;
}

.ed-step-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: auto;
}

.ed-step-card:hover {
  transform: none;
  box-shadow: none;
}

.ed-step-num {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 18px;
}

.ed-step-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ed-step-icon {
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.ed-step-arrow {
  color: #475569;
  display: flex;
  align-items: center;
  padding-right: 16px;
}

.ed-step-title {
  font-size: 17.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.ed-step-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--tp-body);
  margin-bottom: 0;
}

.ed-step-btn {
  margin-top: 20px;
  background: var(--tp-red);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s;
}

.ed-step-btn:hover {
  background: var(--tp-red-hover);
}

/* ========================================================
   SECTION 04: THE NETWORK (PROFILES)
   ======================================================== */
.ed-network-sec {
  padding: 88px 0;
  border-top: 1px solid var(--tp-border-subtle);
  background-color: #FFFFFF;
}

.ed-network-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.ed-partner-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ed-partner-card {
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ed-partner-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.ed-partner-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
}

.ed-partner-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ed-partner-name {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
}

.ed-partner-loc {
  font-size: 12.5px;
  color: #64748B;
  margin-top: 2px;
  margin-bottom: 12px;
}

.ed-partner-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ed-badge-tier {
  font-size: 11px;
  font-weight: 700;
  background: #F8FAFC;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  padding: 2px 7px;
  border-radius: 4px;
}

.ed-badge-sector {
  font-size: 11px;
  font-weight: 600;
  background: #F1F5F9;
  color: #334155;
  padding: 2px 8px;
  border-radius: 4px;
}

.ed-network-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.ed-network-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0 28px;
}

.ed-net-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: var(--ff-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.ed-net-tab:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

.ed-net-tab.on {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

.ed-net-tab .net-ct {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.ed-net-tab.on .net-ct {
  background: rgba(255, 255, 255, 0.2);
}

.ed-partner-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ed-badge-role {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
}

.ed-badge-role.thai {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.ed-badge-role.foreign {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.ed-partner-bio {
  font-size: 13px;
  line-height: 1.5;
  color: var(--tp-body);
}

/* ========================================================
   SECTION 05: CAPITAL TIERS
   ======================================================== */
.ed-tiers-sec {
  padding: 88px 0;
  border-top: 1px solid var(--tp-border-subtle);
  background-color: #FAFAFA;
}

.ed-tiers-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.ed-tier-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ed-tier-box {
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ed-tier-box:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
}

.ed-tier-id {
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ed-tier-amount {
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
  white-space: nowrap;
}

.ed-tier-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--tp-body);
}

/* ========================================================
   SECTION 06: TRUST & LEGAL FRAMEWORK
   ======================================================== */
.ed-legal-sec {
  padding: 88px 0;
  border-top: 1px solid var(--tp-border-subtle);
  background-color: #FFFFFF;
}

.ed-legal-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
}

.ed-legal-layout .ed-sec-title {
  font-size: 34px;
  line-height: 1.2;
}

.ed-legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 36px;
}

.ed-legal-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.ed-legal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0;
  color: #0F172A;
}

.ed-legal-body {
  display: flex;
  flex-direction: column;
}

.ed-legal-item-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
}

.ed-legal-item-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--tp-body);
}

/* ========================================================
   SECTION 07: WAT ARUN NIGHT CTA BANNER
   ======================================================== */
.ed-night-banner {
  position: relative;
  background-color: #0B1220;
  background-image: url('/assets/watarun-panorama.jpg');
  background-size: cover;
  background-position: center center;
  color: #FFFFFF;
  padding: 104px 0 64px;
  text-align: center;
  overflow: hidden;
}

.ed-night-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.78) 0%, rgba(11, 18, 32, 0.6) 50%, rgba(11, 18, 32, 0.88) 100%);
}

.ed-night-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.ed-night-title {
  font-family: var(--tp-font-serif);
  font-size: 58px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.ed-night-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 36px;
}

.ed-night-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.ed-btn-night-outline {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.15s ease;
}

.ed-btn-night-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.ed-night-footer-note {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================================
   SECTION 08: CLEAN 4-COLUMN FOOTER
   ======================================================== */
.ed-footer {
  background-color: #FFFFFF;
  padding: 64px 0 36px;
  border-top: 1px solid #E2E8F0;
}

.ed-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.ed-foot-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--tp-muted);
  margin: 16px 0 12px;
  max-width: 280px;
}

.ed-foot-meta {
  font-size: 12.5px;
  color: var(--tp-faint);
}

.ed-foot-col h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tp-ink);
  margin-bottom: 16px;
}

.ed-foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ed-foot-col a {
  font-size: 13px;
  color: var(--tp-body);
  text-decoration: none;
  transition: color 0.15s;
}

.ed-foot-col a:hover {
  color: var(--tp-ink);
}

.ed-foot-motto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ed-foot-motto-dash {
  width: 14px;
  height: 2.5px;
  background-color: var(--tp-red);
  margin-bottom: 12px;
}

.ed-foot-motto-text {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #94A3B8;
}

.ed-foot-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--tp-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--tp-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ========================================================
   RESPONSIVE MEDIA QUERIES
   ======================================================== */
@media (max-width: 1024px) {
  .ed-nav {
    display: none;
  }
  .ed-burger {
    display: block;
  }
  .ed-hero-inner {
    grid-template-columns: 1fr;
  }
  .ed-hero-bg {
    width: 100%;
    opacity: 0.25;
  }
  .ed-hero-title {
    font-size: 42px;
  }
  .ed-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ed-split-photo {
    height: 320px;
    order: -1;
  }
  .ed-steps-rail {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ed-step-arrow {
    display: none;
  }
  .ed-network-sidebar {
    position: static;
  }
  .ed-network-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ed-network-layout,
  .ed-tiers-layout,
  .ed-legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ed-partner-cards {
    grid-template-columns: 1fr 1fr;
  }
  .ed-tier-cards {
    grid-template-columns: 1fr 1fr;
  }
  .ed-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .ed-wrap {
    padding: 0 18px;
  }
  .ed-brand-logo-img {
    height: 32px;
  }
  .ed-header-right {
    gap: 8px;
  }
  .ed-hero-title {
    font-size: 34px;
  }
  .ed-sec-title {
    font-size: 28px;
  }
  .ed-night-title {
    font-size: 38px;
  }
  .ed-partner-cards {
    grid-template-columns: 1fr;
  }
  .ed-tier-cards {
    grid-template-columns: 1fr;
  }
  .ed-legal-grid {
    grid-template-columns: 1fr;
  }
  .ed-footer-grid {
    grid-template-columns: 1fr;
  }
  .ed-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ============ WIZARD MODAL MODERNIZATION & STEPPER CIRCLE ============ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}
.modal.open {
  display: flex;
}

.wiz {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 36px 36px 40px !important;
  position: relative;
  font-family: var(--tp-font-sans, -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif);
}

.wnav {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 28px !important;
  padding-top: 20px !important;
  padding-bottom: 4px !important;
  border-top: 1px solid #E2E8F0 !important;
  gap: 12px !important;
}

.wiz .close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.wiz .close:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

.wiz h3,
#wiz-title {
  font-family: var(--tp-font-sans, -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
  color: #0F172A !important;
  margin: 0 0 6px !important;
  line-height: 1.25 !important;
}

.wiz .wsub {
  font-size: 14.5px !important;
  color: #64748B !important;
  margin: 0 0 22px !important;
  line-height: 1.5 !important;
}

/* Stepper Bar & Perfect Circular Dots */
.wiz-progress {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 16px 0 24px !important;
  width: 100%;
}

.wp-dot {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  background: #F8FAFC !important;
  color: #64748B !important;
  border: 1.5px solid #CBD5E1 !important;
  flex: 0 0 28px !important;
  line-height: 1 !important;
  text-align: center !important;
  overflow: hidden !important;
}

.wp-dot.on {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border-color: #0F172A !important;
}

.wp-dot.done {
  background: #ECFDF5 !important;
  color: #059669 !important;
  border-color: #059669 !important;
  padding: 0 !important;
}

.wp-bar {
  height: 2px !important;
  flex: 1 !important;
  background: #E2E8F0 !important;
}
.wp-bar.on {
  background: #0F172A !important;
}

/* Option Cards */
.opt.wide {
  width: 100% !important;
  text-align: left !important;
  padding: 18px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
.opt.wide:hover {
  border-color: #0F172A !important;
  background: #F8FAFC !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}
.opt.wide b {
  font-family: var(--tp-font-sans, -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif) !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px !important;
  color: #0F172A !important;
}
.opt.wide span {
  font-size: 13.5px !important;
  color: #64748B !important;
  line-height: 1.4 !important;
}
.opt.wide.on {
  background: #0F172A !important;
  border-color: #0F172A !important;
}
.opt.wide.on b {
  color: #FFFFFF !important;
}
.opt.wide.on span {
  color: #94A3B8 !important;
}

/* Explain cards & Notes */
.explain-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.explain-card {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 13.5px !important;
}
.explain-card b {
  display: block;
  font-family: var(--tp-font-sans, -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif) !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin-bottom: 3px;
}
.explain-card span {
  color: #475569 !important;
  line-height: 1.45;
}
.explain-card.warnish {
  background: #FFFBEB !important;
  border-color: #FDE68A !important;
}
.explain-card.warnish b {
  color: #92400E !important;
}
.explain-card.warnish span {
  color: #78350F !important;
}

.wiz-note {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.5 !important;
}

/* Inputs */
.wiz input[type="text"],
.wiz input[type="email"],
.wiz input[type="password"],
.wiz textarea {
  width: 100% !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  transition: all 0.15s ease !important;
  min-height: 46px !important;
}
.wiz input:focus,
.wiz textarea:focus {
  border-color: #0F172A !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

/* Social Login Buttons in Wizard & Pages */
.ed-social-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.ed-social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ed-social-auth-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}
.ed-social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0 14px;
  color: #94A3B8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.ed-social-divider::before,
.ed-social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}
.ed-social-divider span {
  padding: 0 12px;
}

/* ========================================================
   SUB-PAGES EDITORIAL DESIGN SYSTEM (HOW IT WORKS, VERIFY, TIERS, LEGAL, UPDATES)
   ======================================================== */

/* Sub-page Hero */
.ed-subhero {
  position: relative;
  background-color: #FFFFFF;
  padding: 72px 0 60px;
  border-bottom: 1px solid #E2E8F0;
  overflow: hidden;
}

.ed-subhero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 42, 42, 0.04) 0%, rgba(241, 245, 249, 0.5) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ed-subhero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
}

.ed-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 20px;
}

.ed-crumb a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ed-crumb a:hover {
  color: var(--tp-ink);
}

.ed-crumb .sep {
  color: #CBD5E1;
  font-size: 10px;
}

.ed-subhero-title {
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.6px;
  color: #0F172A;
  margin: 0 0 20px;
}

.ed-subhero-title .red,
.ed-subhero-title .em {
  color: var(--tp-red);
  font-style: normal;
  font-weight: 800;
}

.ed-subhero-lead {
  font-size: 17.5px;
  line-height: 1.62;
  color: #475569;
  max-width: 780px;
  margin: 0 0 36px;
}

.ed-subhero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #F1F5F9;
}

.ed-fact-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
}

.ed-fact-box:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.ed-fact-k {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #64748B;
}

.ed-fact-v {
  font-size: 16.5px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
}

/* In-page Horizontal Anchor Navigation Bar */
.ed-subnav-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #E2E8F0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 72px;
  z-index: 50;
  margin-bottom: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ed-subnav-bar::-webkit-scrollbar {
  display: none;
}

.ed-subnav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #94A3B8;
  margin-right: 8px;
  white-space: nowrap;
}

.ed-subnav-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ed-subnav-pill:hover,
.ed-subnav-pill.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

/* Sub-page Content Sections */
.ed-page-section {
  padding: 64px 0;
  border-bottom: 1px solid #F1F5F9;
}

.ed-page-section:last-of-type {
  border-bottom: none;
}

/* 6-Stages Grid (how-it-works) */
.ed-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.ed-stage-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.ed-stage-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ed-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ed-stage-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--tp-red);
  line-height: 1;
}

.ed-stage-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 4px 10px;
  border-radius: 9999px;
}

.ed-stage-title {
  font-size: 19px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
  line-height: 1.25;
}

.ed-stage-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
  flex-grow: 1;
}

/* Stakeholder Cards (how-it-works) */
.ed-aud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.ed-aud-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.ed-aud-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ed-aud-tag {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tp-red);
  margin-bottom: 14px;
}

.ed-aud-title {
  font-size: 21px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.ed-aud-title .red {
  color: var(--tp-red);
}

.ed-aud-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 28px;
  flex-grow: 1;
}

/* Callout Box */
.ed-callout {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--tp-red);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 40px 0;
}

.ed-callout-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ed-callout-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* Verification Levels Cards (verification.html) */
.ed-vlevel-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.ed-vlevel-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 32px;
  display: grid;
  grid-template-columns: 240px 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  transition: all 0.2s ease;
}

.ed-vlevel-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ed-vlevel-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ed-vlevel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  background: #0F172A;
  padding: 6px 14px;
  border-radius: 9999px;
  align-self: flex-start;
}

.ed-vlevel-badge .num {
  color: var(--tp-red);
}

.ed-vlevel-sub {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748B;
  line-height: 1.4;
}

.ed-vlevel-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}

.ed-vlevel-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.ed-vlevel-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid #F1F5F9;
  padding-left: 28px;
}

.ed-vlevel-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1E293B;
}

.ed-vlevel-items li svg {
  width: 16px;
  height: 16px;
  color: var(--tp-green);
  flex-shrink: 0;
}

/* Modern Data Table (verification & tiers) */
.ed-table-wrap {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  margin-top: 32px;
}

.ed-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ed-table th {
  background: #F8FAFC;
  padding: 16px 24px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #64748B;
  border-bottom: 1px solid #E2E8F0;
}

.ed-table td {
  padding: 18px 24px;
  font-size: 14.5px;
  color: #334155;
  border-bottom: 1px solid #F1F5F9;
}

.ed-table tr:last-child td {
  border-bottom: none;
}

.ed-table td.primary-cell {
  font-weight: 700;
  color: #0F172A;
}

.ed-table td svg {
  width: 18px;
  height: 18px;
  color: var(--tp-green);
}

/* Tier Matrix (tiers.html) */
.ed-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.ed-tier-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.ed-tier-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ed-tier-card.featured {
  border-color: #0F172A;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ed-tier-card.featured::before {
  content: 'MOST COMMON';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

.ed-tier-badge {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 8px;
}

.ed-tier-price {
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}

.ed-tier-price small {
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  margin-left: 4px;
}

.ed-tier-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid #F1F5F9;
  padding-top: 18px;
  margin-top: 8px;
}

.ed-tier-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ed-tier-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94A3B8;
}

.ed-tier-val {
  font-size: 13.5px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.4;
}

/* Legal Statutory Card (legal.html) */
.ed-statute-card {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 20px;
  padding: 44px 40px;
  margin-top: 36px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.ed-statute-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.ed-statute-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #FFFFFF;
  margin: 0 0 16px;
}

.ed-statute-lead {
  font-size: 15px;
  line-height: 1.65;
  color: #CBD5E1;
  margin: 0;
}

.ed-statute-cite {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #C92A2A;
  border-radius: 12px;
  padding: 22px 24px;
}

.ed-cite-top {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #F87171;
  margin-bottom: 10px;
}

.ed-cite-quote {
  font-size: 14.5px;
  line-height: 1.65;
  color: #F1F5F9;
  margin: 0;
}

.ed-cite-quote b {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Feature Grid 2x2 or 3x1 (legal & updates) */
.ed-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.ed-feature-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.ed-feature-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ed-feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}

.ed-feature-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* Sub-page Bottom CTA */
.ed-sub-cta {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  margin: 64px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ed-sub-cta h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #0F172A;
  margin: 0 0 12px;
}

.ed-sub-cta p {
  font-size: 16px;
  color: #475569;
  max-width: 560px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.ed-sub-cta-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Media Queries for Sub-page components */
@media (max-width: 1024px) {
  .ed-stage-grid,
  .ed-aud-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ed-tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ed-statute-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ed-vlevel-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ed-vlevel-items {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #F1F5F9;
    padding-top: 16px;
  }
}

@media (max-width: 768px) {
  .ed-header-right .desk,
  .ed-header-right .ed-btn-red,
  .ed-header-right .ed-btn-outline,
  .ed-header-right .navlink,
  .ed-header-right .navsep {
    display: none !important;
  }
  .ed-subhero {
    padding: 48px 0 40px;
  }
  .ed-subhero-title {
    font-size: 34px;
  }
  .ed-subhero-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .ed-stage-grid,
  .ed-aud-grid,
  .ed-tier-grid {
    grid-template-columns: 1fr;
  }
  .ed-sub-cta {
    padding: 40px 20px;
  }
  .ed-sub-cta h2 {
    font-size: 26px;
  }
}

@media (max-width: 520px) {
  .ed-subhero-facts {
    grid-template-columns: 1fr;
  }
}


/* Legal Updates Cards Modernization */
.editorial-theme .upd-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.editorial-theme .upd-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.editorial-theme .upd-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.4px;
  line-height: 1.3;
  margin: 10px 0;
}

.editorial-theme .upd-card p {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
}

.editorial-theme .upd-card .why {
  background: #F8FAFC;
  border-left: 3px solid var(--tp-red);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: 14px;
  color: #1E293B;
  line-height: 1.6;
  margin: 16px 0;
}

.editorial-theme .upd-card .srcs a {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  border-bottom: 1px solid #CBD5E1;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.editorial-theme .upd-card .srcs a:hover {
  color: var(--tp-red);
  border-color: var(--tp-red);
}

/* ========================================================
   PORTAL & ADMIN MODERN DESIGN SYSTEM (account.html & admin.html)
   ======================================================== */

/* Auth & Sign-in card overrides */
.editorial-theme .authwrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: radial-gradient(circle at 50% 15%, rgba(201, 42, 62, 0.04) 0%, transparent 60%), #FAFAFA;
}

.editorial-theme .authcard {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08);
}

.editorial-theme .authcard h1 {
  font-family: var(--tp-font-sans);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #0F172A;
  margin: 0 0 6px;
  line-height: 1.2;
}

.editorial-theme .authcard .s {
  font-size: 14.5px;
  color: #64748B;
  margin-bottom: 24px;
  line-height: 1.5;
}

.editorial-theme .fld {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 12px 14px;
  background: #FFFFFF;
  color: #0F172A;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 12px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.editorial-theme .fld:focus {
  border-color: #0F172A;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
  outline: none;
}

.editorial-theme .pw-toggle {
  color: #64748B;
  font-size: 12.5px;
  font-weight: 600;
}
.editorial-theme .pw-toggle:hover {
  color: #0F172A;
}

.editorial-theme .social-btn {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.editorial-theme .social-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.editorial-theme .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.editorial-theme .btn-primary {
  background: var(--tp-red);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(201, 42, 62, 0.25);
}

.editorial-theme .btn-primary:hover {
  background: var(--tp-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 42, 62, 0.35);
}

.editorial-theme .btn-ghost {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #334155;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 18px;
}

.editorial-theme .btn-ghost:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.editorial-theme .btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.editorial-theme .btn-ok {
  background: #059669;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: 600;
}
.editorial-theme .btn-ok:hover {
  background: #047857;
}

.editorial-theme .btn-danger {
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: 600;
}
.editorial-theme .btn-danger:hover {
  background: #B91C1C;
}

/* Appbar Navigation */
.editorial-theme .appbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #EDEDED;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
}

.editorial-theme .appbar .in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.editorial-theme .appbar .brandline {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.editorial-theme .appbar .brandline img {
  height: 38px;
  width: auto;
  display: block;
}

.editorial-theme .rolechip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
}

.editorial-theme .rolechip.super {
  background: #0F172A;
  color: #FFFFFF;
}

.editorial-theme .rolechip.reviewer,
.editorial-theme .rolechip.foreign {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

.editorial-theme .rolechip.legal,
.editorial-theme .rolechip.thai {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}

.editorial-theme .rolechip.firm {
  background: #FEFCE8;
  border-color: #FEF08A;
  color: #854D0E;
}

/* App Tabs */
.editorial-theme .apptabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #E2E8F0;
  margin: 28px 0 24px;
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.editorial-theme .apptabs::-webkit-scrollbar {
  display: none;
}

.editorial-theme .apptabs button {
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: #64748B;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.editorial-theme .apptabs button:hover {
  color: #0F172A;
}

.editorial-theme .apptabs button.on {
  color: #0F172A;
  border-bottom-color: var(--tp-red);
  font-weight: 700;
}

.editorial-theme .apptabs button .badge {
  background: #F1F5F9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.editorial-theme .apptabs button.on .badge {
  background: var(--tp-red-light);
  color: var(--tp-red);
}

/* Metric KPI Cards (.cards4 & .cards5) */
.editorial-theme .cards4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.editorial-theme .cards5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .editorial-theme .cards4 { grid-template-columns: repeat(2, 1fr); }
  .editorial-theme .cards5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .editorial-theme .cards4,
  .editorial-theme .cards5 { grid-template-columns: 1fr; }
}

.editorial-theme .mini {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.15s ease;
}

.editorial-theme .mini:hover {
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.editorial-theme .mini .k {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #64748B;
  display: block;
  margin-bottom: 8px;
}

.editorial-theme .mini .v {
  font-family: var(--tp-font-sans);
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.editorial-theme .mini .d {
  font-size: 12.5px;
  color: #94A3B8;
  margin-top: 6px;
}

/* Filter bar & chips */
.editorial-theme .filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.editorial-theme .chip {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.editorial-theme .chip:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.editorial-theme .chip.on {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
  font-weight: 700;
}

.editorial-theme input.search {
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 13.5px;
  background: #FFFFFF;
  color: #0F172A;
  outline: none;
  transition: all 0.15s ease;
  min-width: 220px;
}

.editorial-theme input.search:focus {
  border-color: #0F172A;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

/* Data Table Modernization */
.editorial-theme .dtable {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.editorial-theme .dtable table {
  width: 100%;
  border-collapse: collapse;
}

.editorial-theme .dtable th {
  background: #F8FAFC;
  color: #64748B;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid #E2E8F0;
  text-align: left;
  white-space: nowrap;
}

.editorial-theme .dtable td {
  padding: 15px 18px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 14px;
  color: #334155;
  vertical-align: middle;
}

.editorial-theme .dtable tr:last-child td {
  border-bottom: none;
}

.editorial-theme .dtable tr.clickable:hover td {
  background: #F8FAFC;
  cursor: pointer;
}

.editorial-theme .stat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.editorial-theme .stat-tag.approved,
.editorial-theme .stat-tag.accepted {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #059669;
}

.editorial-theme .stat-tag.pending {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #D97706;
}

.editorial-theme .stat-tag.rejected,
.editorial-theme .stat-tag.declined {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #DC2626;
}

.editorial-theme .stat-tag.call_scheduled {
  background: #F5F3FF;
  border-color: #DDD6FE;
  color: #7C3AED;
}

.editorial-theme .stat-tag.active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

.editorial-theme .stat-tag.foreign {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

.editorial-theme .stat-tag.thai {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}

/* Panels, Timelines & Details */
.editorial-theme .panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  margin-bottom: 24px;
}

.editorial-theme .panel > h3 {
  font-family: var(--tp-font-sans);
  font-size: 19px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
}

.editorial-theme .panel > .hint {
  font-size: 13.5px;
  color: #64748B;
  margin-bottom: 20px;
}

.editorial-theme .statgrid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .editorial-theme .statgrid {
    grid-template-columns: 1fr;
  }
}

/* Progressive Timeline */
.editorial-theme .tl {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid #E2E8F0;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.editorial-theme .tl-item,
.editorial-theme .tli {
  position: relative;
}

.editorial-theme .tl-item::before,
.editorial-theme .tli::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #CBD5E1;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 2px #E2E8F0;
}

.editorial-theme .tl-item.now::before,
.editorial-theme .tli.current::before {
  background: var(--tp-red);
  box-shadow: 0 0 0 3px rgba(201, 42, 62, 0.25);
}

.editorial-theme .tl-item.done::before,
.editorial-theme .tli.done::before {
  background: #059669;
  box-shadow: 0 0 0 2px #A7F3D0;
}

.editorial-theme .tl-item h4,
.editorial-theme .tli b {
  font-family: var(--tp-font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px;
  display: block;
}

.editorial-theme .tl-item p,
.editorial-theme .tli .sub {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

.editorial-theme .tl-item .when {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 4px;
}

/* Slide-over Drawer Modernization */
.editorial-theme .sdr {
  background: #FFFFFF;
  border-left: 1px solid #E2E8F0;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
  padding: 36px 36px 50px;
  overflow-y: auto;
}

.editorial-theme .sdr h2 {
  font-family: var(--tp-font-sans);
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
}

.editorial-theme .sdr-meta {
  font-size: 13.5px;
  color: #64748B;
  margin-bottom: 18px;
}

.editorial-theme .sdr .sect {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #94A3B8;
  margin: 24px 0 10px;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 6px;
}

.editorial-theme .sdr .kv {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 16px;
  font-size: 13.5px;
}

.editorial-theme .sdr .kv .k {
  font-weight: 600;
  color: #64748B;
}

.editorial-theme .sdr .kv .v {
  color: #0F172A;
  font-weight: 600;
}

.editorial-theme .sdr textarea {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13.5px;
  min-height: 85px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.editorial-theme .sdr textarea:focus {
  border-color: #0F172A;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.editorial-theme .sdr-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.editorial-theme .sdr-close:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

/* Matching Interface Grid & Items */
.editorial-theme .match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .editorial-theme .match-grid {
    grid-template-columns: 1fr;
  }
}

.editorial-theme .mcol {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.editorial-theme .mcol h3 {
  font-family: var(--tp-font-sans);
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px;
}

.editorial-theme .mcol .hint {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 16px;
}

.editorial-theme .mitem {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.editorial-theme .mitem:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.editorial-theme .mitem.on {
  background: #0F172A;
  border-color: #0F172A;
}

.editorial-theme .mitem .nm {
  font-weight: 700;
  font-size: 14.5px;
  color: #0F172A;
}

.editorial-theme .mitem.on .nm {
  color: #FFFFFF;
}

.editorial-theme .mitem .sub {
  font-size: 12.5px;
  color: #64748B;
  margin-top: 4px;
}

.editorial-theme .mitem.on .sub {
  color: #94A3B8;
}

/* Empty row & action buttons */
.editorial-theme .emptyrow {
  padding: 44px 20px;
  text-align: center;
  color: #64748B;
  font-size: 14px;
}

.editorial-theme .rowacts {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

/* Document Upload Dropzones */
.editorial-theme .dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 14px;
  padding: 32px 20px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
  margin-top: 10px;
}

.editorial-theme .dropzone:hover,
.editorial-theme .dropzone.dragover {
  border-color: #0F172A;
  background: #F1F5F9;
}

/* Welcome Cards, Badges, and Verification Ladder */
.editorial-theme .app-welcome-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--tp-red);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.editorial-theme .ref-badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #0F172A;
}

.editorial-theme .verify-ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .editorial-theme .verify-ladder {
    grid-template-columns: 1fr;
  }
}

.editorial-theme .ladder-step {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.15s ease;
}

.editorial-theme .ladder-step.active {
  border-color: #0F172A;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.editorial-theme .v-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #0F172A;
  flex-shrink: 0;
}

/* Modern Toast Notification */
.editorial-theme .toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
  z-index: 1000;
  pointer-events: none;
}

.editorial-theme .toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Fallback token mappings for legacy variables inside editorial-theme */
.editorial-theme {
  --brand: var(--tp-red);
  --brand-navy: #0F172A;
  --accent: var(--tp-red);
  --ink: #0F172A;
  --paper: #FFFFFF;
  --paper-2: #F8FAFC;
  --paper-3: #F1F5F9;
  --line: #E2E8F0;
  --mute: #64748B;
  --faint: #94A3B8;
  --r: 12px;
}
