@scope (#original-content) {

/* ===== CORE RESET & SCOPE ===== */
#eac-page *, #eac-page *::before, #eac-page *::after { box-sizing: border-box; margin: 0; padding: 0; }
#eac-page {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #111827;
  line-height: 1.8;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ===== HERO HEADER ===== */
#eac-page .eac-header {
  text-align: center;
  padding: 52px 20px 40px;
  border-bottom: 4px solid #ec4899;
  margin-bottom: 40px;
}
#eac-page .eac-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #831843;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 18px;
}
#eac-page .eac-header p.eac-subtitle {
  font-size: 1.15rem;
  color: #374151;
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
#eac-page .eac-badge-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
#eac-page .eac-badge {
  background: #fce7f3;
  border: 1.5px solid #ec4899;
  color: #9d174d;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 6px 18px;
  border-radius: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== TABLE OF CONTENTS ===== */
#eac-page .eac-toc {
  background: #fdf2f8;
  border-left: 6px solid #ec4899;
  border-radius: 0 12px 12px 0;
  padding: 26px 30px;
  margin-bottom: 44px;
}
#eac-page .eac-toc h2 { font-size: 1.1rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: #831843; margin-bottom: 16px; }
#eac-page .eac-toc ol { padding-left: 22px; font-weight: 700; }
#eac-page .eac-toc li { margin-bottom: 9px; font-size: 1.05rem; }
#eac-page .eac-toc a { color: #9d174d; text-decoration: none; transition: color 0.2s; }
#eac-page .eac-toc a:hover { text-decoration: underline; color: #831843; }

/* ===== SECTION FORMATTING ===== */
#eac-page .eac-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 38px;
  margin-bottom: 38px;
  box-shadow: 0 4px 14px rgba(236,72,153,0.05);
}
#eac-page .eac-section h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: #831843;
  border-bottom: 3px solid #f9a8d4;
  padding-bottom: 14px;
  margin-bottom: 26px;
}
#eac-page .eac-section h3 { font-size: 1.4rem; font-weight: 800; color: #9d174d; margin: 32px 0 16px; }
#eac-page .eac-section h4 { font-size: 1.2rem; font-weight: 800; color: #1f2937; margin: 24px 0 12px; }
#eac-page .eac-section p { font-size: 1.12rem; font-weight: 600; color: #1f2937; margin-bottom: 20px; line-height: 1.85; }
#eac-page .eac-section ul, #eac-page .eac-section ol { padding-left: 28px; margin-bottom: 20px; font-weight: 600; font-size: 1.1rem; color: #1f2937; }
#eac-page .eac-section li { margin-bottom: 13px; line-height: 1.75; }
#eac-page .eac-section strong { color: #111827; font-weight: 900; }

#eac-page .eac-info-box    { background: #fce7f3; border-left: 5px solid #ec4899; border-radius: 0 10px 10px 0; padding: 20px 26px; margin: 26px 0; font-weight: 700; color: #831843; font-size: 1.08rem; line-height: 1.75; }
#eac-page .eac-warn-box    { background: #fff7ed; border-left: 5px solid #f97316; border-radius: 0 10px 10px 0; padding: 20px 26px; margin: 26px 0; font-weight: 700; color: #7c2d12; font-size: 1.08rem; line-height: 1.75; }
#eac-page .eac-success-box { background: #f0fdf4; border-left: 5px solid #22c55e; border-radius: 0 10px 10px 0; padding: 20px 26px; margin: 26px 0; font-weight: 700; color: #14532d; font-size: 1.08rem; line-height: 1.75; }

/* ===== MATH BLOCKS ===== */
#eac-page .eac-math-block {
  background: #fdf2f8;
  border: 1.5px solid #fbcfe8;
  border-radius: 14px;
  padding: 28px 24px;
  margin: 28px 0;
  text-align: center;
  overflow-x: auto;
}
#eac-page .eac-math-block .eac-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 900;
  color: #ec4899;
  text-align: left;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
#eac-page .eac-math-block .eac-formula-desc {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-top: 16px;
  text-align: left;
  line-height: 1.7;
}
#eac-page .MathJax { font-size: 1.35em !important; }
#eac-page mjx-container { overflow-x: auto; max-width: 100%; }

/* ===== TABLES ===== */
#eac-page .eac-table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid #e5e7eb; border-radius: 12px; }
#eac-page .eac-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
#eac-page .eac-table th { background: #fce7f3; color: #831843; padding: 16px 20px; text-align: left; font-weight: 900; border-bottom: 2px solid #ec4899; }
#eac-page .eac-table td { padding: 14px 20px; border-bottom: 1px solid #e5e7eb; font-weight: 600; color: #1f2937; vertical-align: top; }
#eac-page .eac-table tr:nth-child(even) td { background: #fdf2f8; }

/* ===== STEP LIST ===== */
#eac-page .eac-steps { counter-reset: eac-step; padding-left: 0; list-style: none; }
#eac-page .eac-steps li {
  counter-increment: eac-step;
  position: relative;
  padding: 20px 22px 20px 76px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #fafafa;
  font-weight: 600; font-size: 1.08rem; line-height: 1.75;
}
#eac-page .eac-steps li::before {
  content: counter(eac-step);
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  background: #ec4899; color: #fff; font-weight: 900; font-size: 1.15rem;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ===== CALCULATOR WIDGET ===== */
#eac-page .eac-widget-container {
  background: #fdf2f8;
  border: 1.5px solid #fbcfe8;
  border-radius: 16px;
  padding: 36px 30px;
  margin-bottom: 28px;
}

/* Input mode switcher */
#eac-page .eac-mode-row { display: flex; gap: 0; border-bottom: 2px solid #fbcfe8; margin-bottom: 28px; flex-wrap: wrap; }
#eac-page .eac-mode-tab {
  padding: 11px 20px; font-weight: 800; font-size: 0.92rem;
  cursor: pointer; border: none; background: transparent;
  color: #6b7280; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all 0.2s; border-radius: 8px 8px 0 0;
}
#eac-page .eac-mode-tab.active { color: #9d174d; border-bottom-color: #ec4899; background: #fce7f3; }
#eac-page .eac-mode-panel { display: none; }
#eac-page .eac-mode-panel.active { display: block; }

#eac-page .eac-input-row { display: flex; flex-wrap: wrap; gap: 22px; }
#eac-page .eac-input-group { flex: 1; min-width: 200px; margin-bottom: 8px; }
#eac-page .eac-input-label { display: block; font-weight: 900; font-size: 1.05rem; color: #831843; margin-bottom: 10px; }
#eac-page .eac-input-sub { font-size: 0.88rem; font-weight: 700; color: #6b7280; display: block; margin-top: 4px; }
#eac-page .eac-input-field {
  width: 100%;
  padding: 13px 15px;
  border: 2px solid #fbcfe8; border-radius: 10px;
  font-size: 1.1rem; font-weight: 800; color: #0f172a;
  background: #fff; transition: all 0.2s;
}
#eac-page .eac-input-field:focus { border-color: #ec4899; outline: none; box-shadow: 0 0 0 3px rgba(236,72,153,0.18); }

#eac-page .eac-btn-group { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
#eac-page .eac-btn { padding: 15px 34px; font-size: 1.1rem; font-weight: 900; border: none; border-radius: 10px; cursor: pointer; transition: transform 0.12s, background 0.2s; min-width: 160px; }
#eac-page .eac-btn-primary { background: #ec4899; color: #fff; box-shadow: 0 4px 14px rgba(236,72,153,0.3); }
#eac-page .eac-btn-primary:hover { background: #db2777; transform: translateY(-2px); }
#eac-page .eac-btn-secondary { background: #e5e7eb; color: #374151; }
#eac-page .eac-btn-secondary:hover { background: #d1d5db; }

/* Results */
#eac-page .eac-res-grid { display: none; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-top: 30px; }
#eac-page .eac-res-card { padding: 24px 16px; border-radius: 12px; border-top: 5px solid; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.06); text-align: center; }
#eac-page .eac-res-area  { border-color: #ec4899; }
#eac-page .eac-res-peri  { border-color: #8b5cf6; }
#eac-page .eac-res-ecc   { border-color: #06b6d4; }
#eac-page .eac-res-foc   { border-color: #f59e0b; }
#eac-page .eac-res-card .eac-res-title { font-size: 0.95rem; font-weight: 900; color: #374151; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.4px; }
#eac-page .eac-res-card .eac-res-val   { font-size: 2.2rem; font-weight: 900; line-height: 1.15; }
#eac-page .eac-res-card .eac-res-unit  { font-size: 0.88rem; font-weight: 800; color: #6b7280; margin-top: 4px; }
#eac-page .c-area { color: #db2777; }
#eac-page .c-peri { color: #7c3aed; }
#eac-page .c-ecc  { color: #0891b2; }
#eac-page .c-foc  { color: #d97706; }

#eac-page .eac-error { background: #fef2f2; border: 1.5px solid #fca5a5; border-radius: 10px; padding: 14px 18px; font-weight: 800; color: #b91c1c; font-size: 1rem; margin-top: 18px; display: none; }

/* ===== SVG DIAGRAM ===== */
#eac-page .eac-shape-visual { text-align: center; margin: 28px 0; padding: 24px; background: #fdf2f8; border: 1px solid #fbcfe8; border-radius: 14px; }
#eac-page .eac-shape-visual svg { max-width: 100%; height: auto; }

/* ===== EXAMPLE CARDS ===== */
#eac-page .eac-example-card { background: #fafafa; border: 1.5px solid #d1d5db; border-radius: 14px; padding: 28px 30px; margin-bottom: 24px; }
#eac-page .eac-example-card h4 { font-size: 1.15rem; font-weight: 900; color: #9d174d; margin-bottom: 16px; }
#eac-page .eac-example-steps { padding-left: 0; list-style: none; margin: 0; }
#eac-page .eac-example-steps li { padding: 10px 0 10px 22px; border-left: 3px solid #fbcfe8; margin-bottom: 12px; font-weight: 700; font-size: 1.05rem; color: #1f2937; line-height: 1.7; }
#eac-page .eac-example-answer { background: #fce7f3; border-radius: 10px; padding: 14px 18px; font-weight: 900; font-size: 1.1rem; color: #831843; margin-top: 14px; text-align: center; }

/* ===== PROPERTY CARDS ===== */
#eac-page .eac-prop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 22px 0; }
#eac-page .eac-prop-card { background: #fafafa; border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 22px 18px; }
#eac-page .eac-prop-card .eac-prop-icon { font-size: 1.8rem; margin-bottom: 10px; }
#eac-page .eac-prop-card h4 { font-size: 1.05rem; font-weight: 900; color: #831843; margin-bottom: 8px; }
#eac-page .eac-prop-card p { font-size: 0.95rem; color: #374151; font-weight: 600; margin: 0; line-height: 1.6; }

/* ===== FAQ ===== */
#eac-page .eac-faq-item { border: 1.5px solid #e5e7eb; border-radius: 12px; margin-bottom: 16px; overflow: hidden; transition: border-color 0.2s; }
#eac-page .eac-faq-item.open { border-color: #ec4899; }
#eac-page .eac-faq-q { background: #fdf2f8; padding: 20px 24px; font-weight: 900; font-size: 1.1rem; color: #831843; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; transition: background 0.2s; }
#eac-page .eac-faq-q:hover { background: #fce7f3; }
#eac-page .eac-faq-icon { font-size: 1.5rem; font-weight: 900; color: #ec4899; flex-shrink: 0; margin-left: 16px; transition: transform 0.25s; }
#eac-page .eac-faq-item.open .eac-faq-icon { transform: rotate(45deg); }
#eac-page .eac-faq-a { display: none; padding: 22px 24px; font-size: 1.08rem; font-weight: 600; color: #374151; border-top: 1px solid #e5e7eb; background: #fff; line-height: 1.8; }
#eac-page .eac-faq-item.open .eac-faq-a { display: block; }

/* ===== FOOTER ===== */
#eac-page .eac-footer { text-align: center; padding: 36px 20px; border-top: 1.5px solid #e5e7eb; margin-top: 48px; font-size: 1.05rem; color: #6b7280; font-weight: 700; }
#eac-page .eac-footer a { color: #ec4899; text-decoration: none; font-weight: 900; }
#eac-page .eac-footer a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
  #eac-page .eac-section { padding: 24px 16px; }
  #eac-page .eac-widget-container { padding: 24px 16px; }
  #eac-page .eac-input-row { flex-direction: column; gap: 14px; }
  #eac-page .eac-btn-group { flex-direction: column; }
  #eac-page .eac-btn { min-width: 100%; }
  #eac-page .eac-res-val { font-size: 1.9rem; }
  #eac-page .eac-steps li { padding-left: 66px; }
}

}
