/* emergency-funds.css
   Knowledge page styles for knowledge/emergency-funds.html
   Scoped so main.css header/footer remain consistent.
*/

.ef-page{
  --radius: 18px;
  --shadow2: 0 10px 22px rgba(0,0,0,.06);
  --blue-100: #eaf2ff;
  --blue-200: #d7e6ff;
  --blue-300: #c3d9ff;
  --blue-700: #3f6fe6;
}

/* Replace inline action row styles */
.ef-actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ef-actions-bottom{ margin-top: 14px; }

/* Card system (scoped) */
.ef-card{
  border: 1px solid var(--blue-300);
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(180deg, var(--blue-100), var(--blue-200));
  box-shadow: var(--shadow2);
}

/* Grid layout */
.ef-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* Lists */
.ef-page ul{ margin: 12px 0 0; padding-left: 18px; }
.ef-page li{ margin: 6px 0; }

/* Pill + callout */
.ef-pill{
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(63,111,230,.12);
  border: 1px solid rgba(63,111,230,.18);
  margin-bottom: 8px;
}

.ef-callout{
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(0,0,0,.2);
  background: rgba(255,255,255,.6);
}

/* Calculator card tweaks */
.ef-calc{ max-width: 520px; }

.ef-label{ display:block; }

.ef-input{
  margin: 8px 0 12px;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.14);
  font-weight: 700;
  background: rgba(255,255,255,.75);
  box-sizing: border-box;
}

.ef-btn-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ef-btn-full{
  width: 100%;
  justify-content: center;
}

.ef-result{
  margin-top: 16px;
}
@media (max-width: 900px){
  .ef-btn-grid{ grid-template-columns: 1fr 1fr; }
}
