/* 반려동물 나이 계산기만 쓰는 모양. 공통 생활 도구 모양(tools.css)에 더한다. 색은 공통 변수(어두운 화면 자동). */
.pa-kind .chip {
  min-height: 48px;
  padding: 8px 22px;
  font-size: 1rem;
  touch-action: manipulation;
}
.pa-h-sub {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-left: 4px;
}

/* 강아지 크기 고르기 */
.pa-size {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.pa-opt {
  appearance: none;
  font: inherit;
  color: var(--ink);
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 10px 8px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}
.pa-opt b {
  font-size: 1rem;
  font-weight: 800;
}
.pa-opt span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pa-opt i {
  font-style: normal;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
}
.pa-opt[aria-checked='true'] {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.pa-opt[aria-checked='true'] b {
  color: var(--brand);
}
.pa-opt[aria-checked='true'] b::before {
  content: '✓ ';
}
.pa-opt:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.pa-mode {
  margin-top: 14px;
}

/* 생애 단계 막대 */
.pa-stages {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.pa-stages li {
  position: relative;
  background: var(--surface-2);
  padding: 10px 4px 9px;
  text-align: center;
  min-width: 0;
  border-top: 4px solid var(--line);
}
.pa-stages li:first-child {
  border-radius: 12px 0 0 12px;
}
.pa-stages li:last-child {
  border-radius: 0 12px 12px 0;
}
.pa-stages b {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.3;
}
.pa-stages span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.pa-stages li.on {
  background: var(--brand-soft);
  border-top-color: var(--brand);
}
.pa-stages li.on b {
  color: var(--brand);
}
.pa-stages em {
  display: inline-block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
}

/* 환산표 */
.pa-table table {
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  table-layout: fixed; /* 여섯 칸을 고르게 */
}
.pa-table thead tr:first-child th:first-child {
  width: 15%;
}
.pa-table th,
.pa-table td {
  text-align: center;
  padding: 8px 6px;
  white-space: nowrap;
}
.pa-table thead th {
  border-bottom: 1px solid var(--line);
}
.pa-table tbody th {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}
.pa-table td {
  font-weight: 600;
}
.pa-table .col-on {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}
.pa-table tr.on th,
.pa-table tr.on td {
  background: var(--surface-2);
}
.pa-table tr.on .col-on {
  background: var(--brand);
  color: var(--brand-ink);
}
.pa-table tr.on th::after {
  content: ' ◀';
  font-size: 0.7em;
  color: var(--brand);
}

@media (max-width: 560px) {
  .pa-size {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pa-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pa-stages li,
  .pa-stages li:first-child,
  .pa-stages li:last-child {
    border-radius: 10px;
  }
  /* 폭 360px 에서도 여섯 칸이 넘치지 않게: 칸 너비를 고정으로 나누고 화살표는 뺀다(줄 색으로 표시) */
  .pa-table th,
  .pa-table td {
    padding: 7px 1px;
    font-size: 0.82rem;
  }
  .pa-table tr.on th::after {
    content: none;
  }
  .pa-h-sub {
    display: block;
    margin: 2px 0 0;
  }
}
