/* WarmPrior-specific styles */

/* Narrower content width */
.container.is-max-desktop {
  max-width: 880px !important;
}

/* Soft top-of-page gradient (Hero through Abstract) */
.wp-top-gradient {
  background: linear-gradient(180deg, #fff7ec 0%, #fff0f3 45%, #fbf6fb 75%, #ffffff 100%);
}

/* TL;DR card */
.wp-tldr-box {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #f3d6c0;
  border-left: 4px solid #ff8a3d;
  border-radius: 10px;
  padding: 1.1rem 1.5rem;
  box-shadow: 0 4px 18px rgba(255, 110, 40, 0.08);
}

.wp-tldr-box p {
  margin: 0;
}

/* Teaser figure frame matching TL;DR border tone */
.wp-figure-frame {
  border: 1px solid #f3d6c0;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(255, 110, 40, 0.08);
  background: white;
  padding: 1rem 1.2rem;
  box-sizing: border-box;
}

/* Italic spacing fix (some fonts let italics collide with the next char) */
i, em {
  padding-right: 0.08em;
}

.wp-brand {
  font-weight: 800;
  background: linear-gradient(90deg, #ff6a00, #ee0979);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.wp-colon {
  font-weight: 800;
  color: #333;
}

.wp-subtitle {
  font-size: 0.62em;
  font-weight: 600;
  color: #2a2a2a;
  letter-spacing: 0.2px;
}

.wp-mark {
  background-color: #fff3c4;
  padding: 0 0.15em;
  border-radius: 3px;
}

.caption {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #555;
  margin-top: 0.85rem;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

code {
  background: #f3f3f3;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-size: 0.92em;
  color: #c7254e;
}

/* Method cards */
.wp-card {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
  height: 100%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.wp-card h3 {
  margin-bottom: 0.8rem;
  color: #2a2a2a;
}

.wp-eq {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 1rem;
  text-align: center;
  overflow-x: auto;
}

.wp-tag {
  font-size: 0.88rem;
  color: #777;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Tables */
.wp-table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0;
}

.wp-table {
  width: auto;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.wp-table thead th {
  background: #f7f7f7;
  text-align: center;
  vertical-align: middle;
  padding: 0.3rem 0.7rem;
  border-bottom: 2px solid #ddd;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.wp-table tbody td {
  text-align: center;
  vertical-align: middle;
  padding: 0.18rem 0.7rem;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  line-height: 1.25;
}

.wp-table tbody td:first-child {
  text-align: center;
  vertical-align: middle;
  font-weight: 500;
  white-space: nowrap;
}

.wp-section-row td {
  background: #fafafa;
  text-align: left !important;
  color: #666;
  font-weight: 500;
  padding: 0.28rem 0.7rem !important;
}

/* Per-cell delta annotations (paper-style) */
.d-pos, .d-good, .d-neg {
  font-size: 0.92em;
  margin-left: 0.1em;
  font-weight: normal;
}
.d-pos { color: #888; }
.d-good { color: #147837; font-weight: 600; }
.d-neg { color: #888; }

.wp-curv-table {
  font-size: 0.88rem;
}

.wp-task-col {
  text-align: center !important;
}

@media screen and (max-width: 768px) {
  .wp-table {
    font-size: 0.78rem;
  }
  .wp-subtitle {
    font-size: 0.7em;
  }
  .container.is-max-desktop {
    max-width: 100% !important;
  }
}
