/* ========================================
   PUPPY GROWTH CALCULATOR
   ======================================== */
.pgc-page .container {
  max-width: 860px;
}

.pgc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pgc-tool {
  background: #fff;
  border: 1px solid #f0e3df;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  margin: 1.5rem 0 3rem;
}

.pgc-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-items: end;
}

.pgc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--color-text-dark, #1a1a1a);
}

.pgc-field[hidden] {
  display: none;
}

.pgc-field select,
.pgc-field input {
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e0d6d2;
  border-radius: 10px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.pgc-field select:focus,
.pgc-field input:focus {
  outline: 2px solid var(--color-primary, #e8836b);
  outline-offset: 1px;
}

.pgc-inline {
  display: flex;
  gap: 0.5rem;
}

.pgc-inline input {
  flex: 1;
}

.pgc-inline select {
  width: auto;
}

.pgc-submit {
  grid-column: 1 / -1;
  justify-self: start;
}

.pgc-result {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0e3df;
}

.pgc-error {
  margin: 0;
  color: #61180f;
  background: rgba(200, 77, 50, 0.12);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.pgc-kicker {
  margin: 0;
  color: var(--color-primary-text, #b5441e);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pgc-hero {
  margin: 0.25rem 0;
  font-family: Montserrat, sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text-dark, #1a1a1a);
}

.pgc-range,
.pgc-grown,
.pgc-standing,
.pgc-note {
  margin: 0.35rem 0;
  color: var(--color-text-medium, #555);
  line-height: 1.6;
}

.pgc-grown {
  font-weight: 700;
  color: var(--color-text-dark, #1a1a1a);
}

.pgc-standing {
  background: #fff8f5;
  border-left: 4px solid var(--color-primary, #e8836b);
  padding: 0.75rem 1rem;
  border-radius: 0 10px 10px 0;
  margin: 1rem 0;
}

.pgc-note {
  font-size: 0.9rem;
}

/* Chart */
.pgc-chart-wrap {
  position: relative;
  margin: 1.5rem 0 0.5rem;
}

.pgc-chart {
  width: 100%;
  height: auto;
  display: block;
}

.pgc-chart .pgc-grid {
  stroke: #efe7e3;
  stroke-width: 1;
}

.pgc-chart .pgc-axis {
  fill: #767676;
  font-size: 12px;
  font-family: Nunito, sans-serif;
}

.pgc-chart .pgc-band {
  fill: #f4a896;
  fill-opacity: 0.35;
}

.pgc-chart .pgc-line {
  fill: none;
  stroke: #c4573d;
  stroke-width: 2;
  stroke-linejoin: round;
}

.pgc-chart .pgc-dot {
  fill: #1a1a1a;
  stroke: #fff;
  stroke-width: 2;
}

.pgc-chart .pgc-label {
  fill: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  font-family: Nunito, sans-serif;
}

.pgc-chart .pgc-label--muted {
  fill: #555;
  font-weight: 600;
}

.pgc-chart .pgc-cross {
  stroke: #999;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.pgc-chart .pgc-hover-dot {
  fill: #c4573d;
  stroke: #fff;
  stroke-width: 2;
}

.pgc-tooltip {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e0d6d2;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #1a1a1a;
  pointer-events: none;
  white-space: nowrap;
}

.pgc-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #555;
}

.pgc-legend-item {
  white-space: nowrap;
}

.pgc-key {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.3rem;
}

.pgc-key--line {
  width: 18px;
  height: 2px;
  background: #c4573d;
}

.pgc-key--band {
  width: 18px;
  height: 10px;
  background: rgba(244, 168, 150, 0.5);
  border-radius: 2px;
}

.pgc-key--dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a1a1a;
}

/* Tables */
.pgc-table-wrap {
  margin: 1rem 0;
}

.pgc-table-wrap summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary-text, #b5441e);
}

.pgc-table-scroll {
  overflow-x: auto;
  border: 1px solid #e6d9cc;
  border-radius: 12px;
  margin: 1.25rem 0;
}

.pgc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pgc-table-scroll .pgc-table {
  min-width: 520px;
}

.pgc-table caption {
  text-align: left;
  padding: 0.85rem 1rem;
  background: #fff8ee;
  font-weight: 700;
}

.pgc-table th,
.pgc-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-top: 1px solid #efe7e3;
}

.pgc-table thead th {
  background: #f3e8da;
}

.pgc-cta {
  background: #fff8f5;
  border: 1px solid #f0e3df;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
}

.pgc-sources {
  font-size: 0.9rem;
  color: #555;
}

@media (max-width: 640px) {
  .pgc-tool {
    padding: 1.25rem;
  }

  .pgc-form {
    grid-template-columns: 1fr;
  }

  .pgc-submit {
    justify-self: stretch;
  }

  .pgc-hero {
    font-size: 2.1rem;
  }
}
