/* Peppermint Panda Education · case study pages (public viewer and admin preview) */
.csp {
  position: relative;
  width: 820px;
  min-height: 1160px;
  margin: 0 auto;
  background: #fff;
  color: #112639;
  font-size: 14px;
  line-height: 1.5;
  padding: 120px 56px 90px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.csp-hd {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  background: #112639;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 56px;
  color: #fff;
}
.csp-hd img {
  height: 48px;
  width: auto;
}
.csp-hd b {
  font-size: 16px;
  flex: 1;
}
.csp-hd span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #84de00;
}
.csp-wm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}
.csp-wm span {
  transform: rotate(-35deg);
  font-size: 54px;
  font-weight: 900;
  color: rgba(17, 38, 57, 0.06);
  white-space: nowrap;
}
.csp > *:not(.csp-wm) {
  position: relative;
  z-index: 1;
}
.csp-hd {
  position: absolute !important;
}
.csp h1 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: #112639;
}
.csp h2 {
  font-size: 18px;
  margin: 22px 0 8px;
  color: #112639;
}
.csp-sub {
  color: #5c6c7c;
  margin: 0 0 14px;
}
.csp-draft {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #fff1d6;
  border: 1px solid #f0c36d;
  color: #7a4d00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.csp-banners {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}
.csp-snap,
.csp-priv {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.csp-snap {
  background: #eef9dc;
  border: 1px solid #cfe9a6;
}
.csp-priv {
  background: #eaf1f7;
  border: 1px solid #c9d8e6;
}
.csp-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 6px 0 4px;
}
.csp-facts div {
  background: #eef9dc;
  border-radius: 10px;
  padding: 10px 12px;
}
.csp-facts small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f7a1f;
}
.csp-facts b {
  font-size: 17px;
  line-height: 1.2;
}
.csp table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.csp th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6c7c;
  background: #f2f5f7;
  padding: 7px 10px;
}
.csp td {
  padding: 7px 10px;
  border-bottom: 1px solid #e1e7ed;
}
.csp .n {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.csp tr.t td {
  font-weight: 800;
  border-top: 2px solid #112639;
}
.csp-sum {
  margin: 12px 0 0;
}
.csp-note {
  padding: 10px 14px;
  border-left: 3px solid #f7941d;
  background: #fff8ef;
  font-size: 13px;
  margin: 0 0 6px;
}
.csp-note--end {
  margin-top: 22px;
  font-size: 12px;
}
.csp ul {
  padding-left: 18px;
  margin: 0;
}
.csp li {
  margin: 0 0 6px;
}
.csp-ft {
  position: absolute !important;
  left: 56px;
  right: 56px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 3px solid #84de00;
  padding-top: 10px;
  font-size: 10px;
  color: #5c6c7c;
}
.csp-ft span:last-child {
  white-space: nowrap;
}
.cs-pages .csp {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
@media print {
  .csp {
    box-shadow: none;
  }
}
/* Footer flows after the content so long pages never overlap it */
.csp {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}
.csp-ft {
  position: relative !important;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: auto;
  padding-top: 10px;
}
.csp-sum {
  margin-bottom: 24px;
}
.csp-note--end {
  margin-bottom: 24px;
}
.csp-banners,
.csp-facts,
.csp table {
  flex: none;
}
/* Watermark in two halves, larger and easier to read */
.csp-wm {
  display: block;
}
.csp-wm span {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 58px;
  font-weight: 900;
  color: rgba(17, 38, 57, 0.09);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.csp-wm .wm1 {
  top: 32%;
}
.csp-wm .wm2 {
  top: 72%;
  font-size: 66px;
  color: rgba(179, 65, 47, 0.1);
}
.csp-wm {
  z-index: 3 !important;
  pointer-events: none;
}
.csp-wm span {
  color: rgba(17, 38, 57, 0.1);
}
.csp-wm .wm2 {
  color: rgba(179, 65, 47, 0.11);
}
/* Footer always fully inside the page */
.csp {
  overflow: visible;
  padding-bottom: 40px;
  height: auto;
}
.csp-wm {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.csp-ft {
  font-size: 11px;
  line-height: 1.5;
  align-items: flex-end;
  padding-top: 12px;
}
.csp {
  flex: none;
  flex-shrink: 0;
}
