/* 신발 사이즈 환산기 전용 스타일 */

nav { max-width: 760px; }
main { max-width: 760px; }

.card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.gender-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.gender-tab {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.gender-tab:hover {
  border-color: var(--text-sub);
  color: var(--text);
}
.gender-tab.active {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

.size-card {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.95rem;
}

.size-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.size-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color 0.15s;
  cursor: text;
}
.size-row:focus-within { border-color: var(--primary); }
.size-row.highlight {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.4);
}

.size-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--text);
}
.size-flag { font-size: 1.2rem; }
.size-name {
  font-weight: 700;
}
.size-name em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-sub);
  font-weight: 500;
  margin-left: 0.3rem;
}

.size-row input {
  padding: 0.55rem 0.7rem;
  font-size: 1.1rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  font-variant-numeric: tabular-nums;
  text-align: center;
  transition: border-color 0.15s;
}
.size-row input:focus { border-color: var(--primary); }
.size-row.highlight input {
  background: var(--bg);
  color: var(--primary);
  font-size: 1.2rem;
}

.size-notice {
  margin-top: 0.85rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.83rem;
  color: var(--text-sub);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 7px;
  line-height: 1.55;
}

.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.95rem;
  overflow: hidden;
}

.table-summary {
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.table-summary::-webkit-details-marker { display: none; }
.table-summary::after {
  content: "▾";
  float: right;
  color: var(--text-sub);
  transition: transform 0.15s;
}
.table-card[open] .table-summary::after { transform: rotate(180deg); }
.table-card[open] .table-summary { border-bottom: 1px solid var(--border); }

.table-scroll {
  max-height: 420px;
  overflow-y: auto;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.size-table th {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 0.6rem 0.7rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
}
.size-table td {
  padding: 0.55rem 0.7rem;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.size-table tr.match td {
  background: rgba(99, 102, 241, 0.1);
  font-weight: 700;
  color: var(--primary);
}
.size-table td:first-child {
  font-weight: 700;
  color: var(--text);
}

.tip-card {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tip-list li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-sub);
  padding-left: 1.1rem;
  position: relative;
}
.tip-list li::before {
  content: "·";
  position: absolute;
  left: 0.35rem;
  color: var(--primary);
  font-weight: 800;
}
.tip-list b {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 600px) {
  .size-row { grid-template-columns: 1fr; gap: 0.4rem; padding: 0.6rem 0.7rem; }
  .size-row input { text-align: center; }
  .gender-tab { font-size: 0.85rem; padding: 0.55rem 0.3rem; }
  .size-table { font-size: 0.82rem; }
  .size-table th, .size-table td { padding: 0.4rem 0.35rem; }
}
