/* static/css/price_increase_letter_examples.css */

.pile-panel{
  position:relative;
  margin:2.5rem 0;
  padding:2.5rem;
  background:linear-gradient(180deg,#eef4ff 0%,#fbfcff 100%);
  border:.0625rem solid #d3e2fa;
  border-radius:1.5rem;
  box-shadow:0 .75rem 2.5rem rgba(0,0,0,.08);
}

.pile-head{
  text-align:center;
  margin:0 0 1.75rem;
}

.pile-badge{
  display:inline-block;
  width:fit-content;
  margin:0 auto .8rem;
  padding:.6rem 2rem;
  border-radius:999rem;
  background:#3468e0;
  color:#fff;
  font-size:1.2rem;
  font-weight:700;
  letter-spacing:.04em;
  box-shadow:0 0 0 0 rgba(52,104,224,.45);
  animation:pile-badge-pulse 2.2s ease-out infinite;
}

@keyframes pile-badge-pulse{
  0%{ box-shadow:0 0 0 0 rgba(52,104,224,.45); }
  70%{ box-shadow:0 0 0 .55rem rgba(52,104,224,0); }
  100%{ box-shadow:0 0 0 0 rgba(52,104,224,0); }
}

h3.pile-headline{
  display:block;
  background:none;
  margin:.7rem auto 0;
  padding:0;
  max-width:34rem;
  color:#12233f;
  font-size:1.15rem;
  font-weight:800;
  line-height:1.6;
  letter-spacing:.01em;
}

.pile-headline__mark{
  color:#3468e0;
  white-space:nowrap;
}

.pile-lead{
  margin:.6rem auto 0;
  max-width:30rem;
  color:#6b7280;
  font-size:.85rem;
  line-height:1.9;
}

.pile-format-toggle{
  display:flex;
  justify-content:center;
  gap:.5rem;
  margin-bottom:1.1rem;
  padding:.35rem;
  background:#fff;
  border:.0625rem solid #dce6f5;
  border-radius:999rem;
  width:fit-content;
  margin-left:auto;
  margin-right:auto;
}

.pile-format-btn{
  padding:.5rem 1.3rem;
  background:transparent;
  border:none;
  border-radius:999rem;
  color:#3468e0;
  font-size:.85rem;
  font-weight:700;
  cursor:pointer;
  transition:background .2s ease,color .2s ease;
  white-space:nowrap;
}

.pile-format-btn.is-active{
  background:#12233f;
  color:#fff;
}

.pile-tabs-label{
  display:block;
  text-align:center;
  margin-bottom:.6rem;
  color:#6b7280;
  font-size:.78rem;
  font-weight:700;
}

.pile-tabs{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.6rem;
  margin-bottom:1.75rem;
}

.pile-tab{
  padding:.55rem 1.2rem;
  background:#fff;
  border:.0625rem solid #dce6f5;
  border-radius:999rem;
  color:#1f2937;
  font-size:.85rem;
  font-weight:700;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}

.pile-tab:hover{
  border-color:#b9d7fb;
}

.pile-tab.is-active{
  background:#3468e0;
  border-color:#3468e0;
  color:#fff;
}


.pile-card{
  padding:1.4rem 1.5rem;
  background:#fff;
  border:.0625rem solid #dce6f5;
  border-radius:1rem;
}

.pile-card__subject-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.75rem;
  padding-bottom:.75rem;
  border-bottom:.0625rem dashed #dce6f5;
}

.pile-card__subject{
  margin:0;
  color:#1f2937;
  font-size:1rem;
  font-weight:700;
  line-height:1.6;
}

.pile-card__subject-label{
  display:block;
  margin-bottom:.15rem;
  color:#6b7280;
  font-size:.72rem;
  font-weight:700;
}

.pile-card__body{
  margin:0;
  color:#1f2937;
  font-size:.9rem;
  line-height:1.9;
  white-space:pre-wrap;
}

.pile-card__actions-row{
  display:flex;
  justify-content:flex-end;
  margin-top:.75rem;
  padding-top:.75rem;
  border-top:.0625rem dashed #dce6f5;
}

.pile-card__copy-btn{
  flex:0 0 auto;
  padding:.5rem 1rem;
  background:transparent;
  border:.0625rem solid #3468e0;
  border-radius:999rem;
  color:#3468e0;
  font-size:.8rem;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  transition:background .2s ease,color .2s ease;
}

.pile-card__copy-btn:hover{
  background:#3468e0;
  color:#fff;
}

.pile-card__copy-btn.is-copied{
  background:#1c9c5f;
  border-color:#1c9c5f;
  color:#fff;
}

@media (max-width:30rem){

  .pile-panel{
    padding:1.25rem;
  }

  .pile-card{
    padding:1.1rem 1.1rem;
  }

  .pile-card__subject-row{
    flex-direction:column;
    align-items:stretch;
    gap:.5rem;
  }

  .pile-card__copy-btn{
    align-self:flex-end;
  }

}
