/* Knowledge Pillar: under-eye-aging (additive)
   Loads after ../../../styles.css and ../../rtl.css
   Scope: .pillar-* only (does not touch global .cta outside CTA box)
*/

.pillar-hero{ background: var(--bg-main); padding: clamp(34px, 5vw, 58px) 0 clamp(18px, 3vw, 34px); }
.pillar-hero-inner{ max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 3vw, 28px); }

.pillar-breadcrumb{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin: 0 0 12px; color: rgba(20,20,20,0.72); font-size: 13px; line-height: 1.5; }
.pillar-breadcrumb a{ text-decoration:none; }
.pillar-breadcrumb a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.pillar-kicker{ margin: 0 0 10px; font-size: 13px; letter-spacing: 0.5px; color: rgba(20,20,20,0.68); font-weight: 800; }
.pillar-hero h1{ margin: 0 0 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 6vw, 52px); line-height: 1.03; }
.pillar-subhead{ margin: 0; max-width: 92ch; color: var(--muted); font-size: clamp(15px, 1.8vw, 19px); line-height: 1.85; }

.pillar-main{ background: var(--bg-section); padding: clamp(46px, 6vw, 92px) 0; }
.pillar-inner{ max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 3vw, 28px); display: grid; grid-template-columns: 1fr 350px; gap: 18px; align-items: start; }

.pillar-article{ background: var(--surface); border: 1px solid var(--stroke); border-radius: 18px; box-shadow: var(--shadow-sm); padding: clamp(18px, 2.6vw, 30px); }
.pillar-article h2{ margin: 0 0 10px; font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.8vw, 34px); }
.pillar-article h3{ margin: 14px 0 8px; font-weight: 900; font-size: 16px; color: rgba(20,20,20,0.92); }
.pillar-article p{ margin: 0 0 12px; color: rgba(20,20,20,0.82); line-height: 1.85; font-size: 16px; }

.pillar-section{ scroll-margin-top: 110px; padding: 12px 0 18px; border-bottom: 1px solid rgba(20,20,20,0.08); }
.pillar-section:last-child{ border-bottom:none; padding-bottom: 6px; }

.pillar-list{ margin: 0 0 12px; padding: 0 18px 0 0; display:grid; gap: 10px; color: rgba(20,20,20,0.82); line-height: 1.75; }
.pillar-steps{ margin: 0 0 12px; padding: 0 22px 0 0; display:grid; gap: 10px; color: rgba(20,20,20,0.82); line-height: 1.75; }
.pillar-steps li{ padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(20,20,20,0.10); background: rgba(255,255,255,0.62); }

.pillar-aside{ position: sticky; top: 92px; display: grid; gap: 12px; }
.pillar-card{ background: rgba(255,255,255,0.70); border: 1px solid rgba(20,20,20,0.10); border-radius: 16px; padding: 12px 14px; box-shadow: 0 14px 34px rgba(0,0,0,0.06); }
.pillar-card-title{ margin: 0 0 8px; font-weight: 900; font-size: 13px; color: rgba(20,20,20,0.88); }
.pillar-toc{ margin: 0; padding: 0; list-style:none; display:grid; gap: 10px; }
.pillar-toc a{ font-weight: 800; text-decoration:none; }
.pillar-toc a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.pillar-table-wrap{ border-radius: 16px; border: 1px solid rgba(20,20,20,0.10); overflow: auto; background: rgba(255,255,255,0.70); box-shadow: 0 12px 28px rgba(0,0,0,0.06); margin: 10px 0 14px; }
.pillar-table{ width: 100%; border-collapse: collapse; min-width: 760px; }
.pillar-table th, .pillar-table td{ text-align: right; vertical-align: top; padding: 12px 12px; border-bottom: 1px solid rgba(20,20,20,0.08); color: rgba(20,20,20,0.82); line-height: 1.6; font-size: 14px; }
.pillar-table thead th{ font-weight: 900; font-size: 13px; background: rgba(247,242,234,0.55); }
.pillar-table tbody tr:last-child td{ border-bottom: none; }

.pillar-callout{ background: rgba(255,255,255,0.62); border: 1px solid rgba(20,20,20,0.10); border-radius: 16px; padding: 14px 14px 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.06); margin: 0 0 14px; }
.pillar-callout-title{ margin: 0 0 6px; font-weight: 900; font-size: 13px; color: rgba(20,20,20,0.88); }

.pillar-def{ margin: 10px 0 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(20,20,20,0.10); background: rgba(247,242,234,0.45); }
.pillar-def dt{ font-weight: 900; margin: 0 0 6px; }
.pillar-def dd{ margin: 0; color: rgba(20,20,20,0.82); line-height: 1.8; }

/* CTA containment */
.pillar-cta-actions{ overflow: hidden; display:grid; gap: 10px; }
.pillar-cta-actions .cta{
  position: static !important;
  transform: none !important;
  display: inline-flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  justify-content: center;
  margin: 0 !important;
}
.pillar-cta-actions .cta::before,
.pillar-cta-actions .cta::after{ display:none !important; }

.cta-ghost{ background: rgba(255,255,255,0.40); color: rgba(20,20,20,0.92); border: 1px solid rgba(20,20,20,0.12); box-shadow: none; }
.cta-ghost::before, .cta-ghost::after{ display:none; }

@media (max-width: 980px){
  .pillar-inner{ grid-template-columns: 1fr; }
  .pillar-aside{ position: static; }
  .pillar-table{ min-width: 640px; }
}
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
}

/* Mobile overflow prevention */
@media (max-width: 820px){
  html{ overflow-x: hidden; }
  .cta{ min-width: 0 !important; max-width: 100% !important; }
  .pillar-hero-inner,
  .pillar-inner,
  .pillar-toc,
  .pillar-article,
  .pillar-aside,
  .pill-bridge-card,
  .pill-bottom-actions,
  .pillar-card,
  .pillar-actions,
  .pillar-section,
  .pill-table-wrap,
  .pill-related-grid,
  .pillar-cta-actions{
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .pillar-inner{
    grid-template-columns: 1fr !important;
    padding: 0 16px !important;
  }
  .pillar-hero-row{ grid-template-columns: 1fr !important; }
  .pill-bridge-card{ grid-template-columns: 1fr !important; }
  .pill-table{ min-width: 0 !important; }
  .pillar-cta-actions .cta{
    position: static !important;
    transform: none !important;
    display: inline-flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    justify-content: center;
    margin: 0 !important;
  }
  .pillar-cta-actions .cta::before,
  .pillar-cta-actions .cta::after{ display: none !important; }
}
