:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface-soft: #f8f9fa;
  --text: #111111;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #111111;
  --primary-active: #242424;
  --radius: 12px;
  /* shared icon sizing tokens */
  --icon-btn-sm: 28px;
  --icon-sm: 18px;
  --icon-md: 21px;
  --icon-copy: 14px;
  /* shared button surface tokens */
  --btn-surface: #fff;
  --btn-surface-active: #ececec;
  --btn-border: #d1d5db;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  body {
    overflow-y: scroll;
  }
}

a { color: inherit; text-decoration: none; }

.shell {
  max-width: 600px;
  width: calc(100% - 48px);
  margin-inline: auto;
}

.topbar-shell {
  max-width: 600px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 24px 8px;
}
.topbar-inner {
  width: 100%;
}
.btn {
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 13px;
}
.btn-dark {
  background: var(--primary);
  color: #fff;
}
.btn-dark:active { background: var(--primary-active); }

.main {
  padding: 118px 0px 0;
  font-size: 15px;
  margin-bottom: 100px;
}
body.no-header-tabs .main {
  padding-top: 88px;
}

.card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
  padding: 24px;
}

.detail-page {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.detail-page .card {
  /* background: var(--surface); */
  /* border: 1px solid var(--line); */
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.detail-head {
  padding: 16px 20px;
  background: #fff !important;
}
.detail-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}


.detail-section {
  padding: 16px 20px;
}
.detail-section.no-x-padding {
  padding-left: 0;
  padding-right: 0;
}
.detail-section.no-padding {
  padding: 0;
}
.section-title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.spec-list {
  display: grid;
  gap: 10px;
}
.spec-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 10px;
  align-items: center;
}
.spec-key {
  font-size: 13px;
  color: #7a7a7a;
}
.spec-val {
  font-size: 13px;
  line-height: 1.6;
}
.spec-row.spec-row-multiline {
  align-items: start;
}
.spec-row.spec-row-multiline .spec-key {
  padding-top: 0;
  line-height: 24px;
}

.tt-results-wrap {
  padding: 12px;
  margin-top: 10px;
}
.tt-results-wrap summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 860px) {
  .detail-head,
  .detail-section {
    padding: 18px;
  }
}

.detail-page .card + .card { margin-top: 12px; }
.card + .card { margin-top: 28px; }

.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { text-align: left; border-bottom: 1px solid var(--line); padding: 16px 12px; }
.table td { border-bottom: 1px solid #e6e6ea; padding: 16px 12px; }

input, select, button { font: inherit; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 40px;
  background: #fff;
  font-size: 14px;
}
button {
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 40px;
  font-size: 12px;
  font-weight: 400;
}
button:active { background: var(--primary-active); }
.muted { color: var(--muted); font-size: 12px; }

h1, h2 { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; }
h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}
h4 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }

@media (max-width: 860px) {
  .brand { font-size: 18px; }
  .menu { display: none; }
}
