/* =====================================================================
   CORE THEME DESIGN SYSTEM & DESIGN TOKENS
   ===================================================================== */
:root {
  --hc-bg: #FAF8F5;
  --hc-text: #1C1A17;
  --hc-accent: #C2654A;
  --hc-accent-bg: #F3ECE3;
  --hc-tool: #5C7A5E;
  --hc-gray: #6E695F;
  --hc-gray-bg: #F0EDE6;
  --hc-border: #E6E2DA;
  --hc-white: #FFFFFF;
  --hc-footer-bg: #1C1A17;

  /* Regulatory DPE Scale Colors */
  --hc-dpe-a: #009B6A; --hc-dpe-b: #52B153; --hc-dpe-c: #AEC855;
  --hc-dpe-d: #F3E03B; --hc-dpe-e: #F2B037; --hc-dpe-f: #E56E30; --hc-dpe-g: #D92726;

  --hc-wide-width: 1200px;
  --hc-content-width: 720px;
  --hc-header-height: 64px;
}

/* =====================================================================
   BASE HTML RESETS & CONTAINERS
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; background-color: var(--hc-bg); color: var(--hc-text); font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--hc-text); letter-spacing: -0.01em; margin-top: 0; }

.hc-container { width: 100%; max-width: var(--hc-wide-width); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.hc-numeral { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }

/* Strict Override to Break out of default WordPress FSE Wrappers */
.wp-site-blocks, .wp-block-group, .entry-content, .is-layout-constrained, .site-main { max-width: none !important; padding: 0 !important; margin: 0 !important; width: 100% !important; }

/* =====================================================================
   UNIFIED HEADER & NAVIGATION STYLES WITH DROPDOWNS
   ===================================================================== */
.hc-header { height: var(--hc-header-height); background-color: var(--hc-white); border-bottom: 1px solid var(--hc-border); position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; width: 100%; }
.hc-header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.hc-brand { font-family: "Plus Jakarta Sans", sans-serif; font-size: 22px; font-weight: 800; color: var(--hc-text); text-decoration: none; letter-spacing: -0.02em; }
.hc-brand-accent { color: var(--hc-accent); }

.hc-nav { display: flex; align-items: center; }

/* Main top-level list containers layout */
.hc-nav ul.hc-menu-list,
.hc-menu-list { 
  display: flex !important; 
  flex-direction: row !important;
  align-items: center !important; 
  gap: 20px !important; 
  list-style: none !important; 
  margin: 0 !important; 
  padding: 0 !important; 
}

/* Make parent elements relative containers for dropdown absolute placement */
.hc-nav ul.hc-menu-list > li,
.hc-menu-list > li { 
  position: relative !important;
  margin: 0 !important; 
  padding: 0 0 !important; 
  list-style-type: none !important;
}

.hc-nav ul.hc-menu-list li a,
.hc-menu-list li a { 
  color: var(--hc-text); 
  text-decoration: none; 
  font-size: 14px; 
  font-weight: 600; 
  transition: color 0.2s ease; 
  white-space: nowrap;
  display: block;
}

.hc-nav ul.hc-menu-list > li > a {
  padding: 20px 0; /* Creates an invisible hover bridge zone to submenu items */
}

.hc-nav ul.hc-menu-list li a:hover,
.hc-menu-list li a:hover { 
  color: var(--hc-accent); 
}

/* SUBMENU DROPDOWN PLATFORM RULES */
.hc-nav ul.hc-menu-list li ul.sub-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: var(--hc-white) !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(28, 26, 23, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  padding: 8px 0 !important;
  min-width: 200px !important;
  z-index: 1010 !important;
  
  /* Safe hidden fallback default states */
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
  pointer-events: none !important;
}

/* Force vertical behavior inside sub menus */
.hc-nav ul.hc-menu-list li ul.sub-menu li {
  width: 100% !important;
  display: block !important;
}

.hc-nav ul.hc-menu-list li ul.sub-menu li a {
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--hc-gray) !important;
  width: 100% !important;
}

.hc-nav ul.hc-menu-list li ul.sub-menu li a:hover {
  background-color: var(--hc-bg) !important;
  color: var(--hc-accent) !important;
}

/* Hover reveal action for children menus */
.hc-nav ul.hc-menu-list li:hover > ul.sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Elegant Header Action Button Elements Styling */
.hc-nav-btn { color: var(--hc-tool); background: rgba(92, 122, 94, 0.08); padding: 8px 16px; border-radius: 6px; font-weight: 700; text-decoration: none; font-size: 14px; transition: background 0.2s ease; white-space: nowrap; }
.hc-nav-btn:hover { background: rgba(92, 122, 94, 0.15); }

/* =====================================================================
   UNIFIED FOOTER STYLES
   ===================================================================== */
.hc-footer { background-color: var(--hc-footer-bg); color: #FFFFFF; padding: 64px 0 32px; border-top: 1px solid var(--hc-border); width: 100%; margin-top: 64px; }
.hc-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.hc-footer-logo { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 18px; margin: 0 0 16px; }
.hc-footer-logo span { color: var(--hc-accent); }
.hc-footer-desc { color: #7A7670; max-width: 340px; line-height: 1.6; margin: 0 0 16px; font-size: 14px; }
.hc-footer-disclaimer { color: #4A4640; font-size: 11px; line-height: 1.5; margin: 0; }
.hc-footer-links-col h3 { color: #4A4640; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.hc-footer-links-col ul { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 2; }
.hc-footer-links-col a { color: #7A7670; text-decoration: none; }
.hc-footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #2A2820; display: flex; justify-content: space-between; font-size: 12px; color: #4A4640; }

/* =====================================================================
   TWO-COLUMN EDITORIAL LAYOUT & TOC
   ===================================================================== */
.hc-guide-layout { display: grid; grid-template-columns: 1fr 280px; gap: 0 48px; margin-top: 32px; }
.hc-guide-body { font-size: 16px; line-height: 1.75; color: var(--hc-text); }
.hc-guide-body h2 { font-size: 22px; font-weight: 700; margin-top: 40px; margin-bottom: 16px; border-bottom: 1px solid var(--hc-border); padding-bottom: 8px; }
.hc-guide-sidebar { position: sticky; top: calc(var(--hc-header-height) + 24px); display: flex; flex-direction: column; gap: 24px; max-height: calc(100vh - var(--hc-header-height) - 48px); }

@media (max-width: 1024px) {
  .hc-guide-layout { grid-template-columns: 1fr; gap: 40px 0; }
  .hc-guide-sidebar { position: static; max-height: none; }
}

.hc-toc { border: 1px solid var(--hc-border); border-radius: 12px; padding: 20px; background: var(--hc-white); }
.hc-toc__label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--hc-gray); margin-bottom: 12px; letter-spacing: 0.05em; }
.hc-toc__list { list-style: none; padding: 0; margin: 0; }
.hc-toc__link { display: block; font-size: 14px; color: var(--hc-gray); text-decoration: none; padding: 6px 0; }

.hc-sidebar-tool-cta { border: 1px solid rgba(92, 122, 94, 0.15); border-radius: 12px; padding: 20px; background: rgba(92,122,94,0.01); }
.hc-sidebar-tool-cta__btn { display: block; width: 100%; padding: 12px; border-radius: 8px; background: var(--hc-tool); color: #fff; text-align: center; font-weight: 700; text-decoration: none; margin-top: 16px; }

/* =====================================================================
   INTERACTIVE APPLICATION RUNTIME PLATFORM
   ===================================================================== */
.hc-tool-card-platform { display: grid !important; grid-template-columns: 1.1fr 0.9fr !important; background: var(--hc-white) !important; border: 1px solid var(--hc-border) !important; border-radius: 16px !important; overflow: hidden !important; box-shadow: 0 4px 24px rgba(0,0,0,0.015) !important; margin-bottom: 48px !important; width: 100% !important; }
.hc-tool-pane-inputs { padding: 40px; background: #FBF9F6; border-right: 1px solid var(--hc-border); }
.hc-tool-pane-outputs { padding: 40px; background: rgba(92, 122, 94, 0.01); display: flex; flex-direction: column; }
.hc-result-number { font-family: "Plus Jakarta Sans", sans-serif; font-variant-numeric: tabular-nums lining-nums; font-size: 36px; color: var(--hc-text); font-weight: 800; line-height: 1; }

.hc-input { width: 100% !important; padding: 12px !important; border: 1px solid var(--hc-border) !important; border-radius: 6px !important; background: #FFFFFF !important; color: var(--hc-text) !important; font-size: 15px !important; box-sizing: border-box !important; }
.hc-badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; border: 1px solid; }
.hc-badge--accent { background-color: var(--hc-accent-bg); color: var(--hc-accent); border-color: rgba(194, 101, 74, 0.2); }
.hc-fresh-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hc-gray); }
.hc-fresh-badge__dot { width: 6px; height: 6px; border-radius: 50%; background-color: var(--hc-tool); display: inline-block; }

/* Strict Purge Overrides for Legacy WordPress Elements */
h1.wp-block-site-title, .wp-block-site-title { display: none !important; visibility: hidden !important; height: 0 !important; opacity: 0 !important; }