/* Generated by scripts/climbing-guide/build.mjs. Do not edit by hand. */
:root {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1f2937;
  --surface-2: #374151;
  --text: #f8fafc;
  --muted: #9ca3af;
  --primary: #f97316;
  --on-primary: #ffffff;
  --primary-press: #ea580c;
  --link: #fb923c;
  --focus: #fb923c;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.breadcrumb,
.guide,
.site-footer {
  width: 100%;
  max-width: 592px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 20px 0 12px;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: '>';
  margin: 0 8px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.card p {
  margin: 0 0 12px;
}

.card > :last-child {
  margin-bottom: 0;
}

.card-no {
  font-family: 'Barlow Condensed', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.card .card-no {
  margin-bottom: 8px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(249, 115, 22, 0.16);
  color: var(--link);
  font-weight: 700;
  font-size: 13px;
}

h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
}

strong {
  color: var(--link);
  font-weight: 700;
}

.card-cover .ad-disclosure {
  padding: 10px 14px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg);
  color: var(--link);
  line-height: 1.6;
  font-weight: 500;
}

.card-img {
  width: 100%;
  margin: 16px 0;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.card-list {
  margin: 12px 0 0;
  padding-left: 1.4em;
}

.card-list li {
  margin: 6px 0;
}

.card-list li::marker {
  color: var(--primary);
  font-weight: 700;
}

.aside-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
}

.related {
  margin-top: 32px;
}

.related ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface);
  text-decoration: none;
}

.rel-term {
  color: var(--text);
  font-weight: 700;
}

.rel-en {
  color: var(--muted);
  font-size: 13px;
}

.hub-link-wrap {
  margin: 16px 0 0;
}

.hub-link {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  color: var(--link);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.sources-box {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-lg);
}

.sources {
  margin: 0;
  padding-left: 1.4em;
  font-size: 14px;
  color: var(--muted);
}

.sources li {
  margin: 8px 0;
}

.sources a {
  font-weight: 500;
}

.src-pub,
.src-url {
  display: block;
}

.src-url {
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.term-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.term-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}

.term-list img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.t-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.t-term {
  font-weight: 700;
}

.t-en,
.t-sum {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* App promo: border 2px + padding 18px puts the text on the same 20px inset as .card. */
.app-promo {
  margin-top: 32px;
  padding: 22px 18px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.app-promo-title {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-promo-title::before {
  content: '';
  flex: none;
  width: 48px;
  height: 48px;
  margin-right: 12px;
  border-radius: var(--radius-md);
  background: var(--bg) url('/icon.svg') center / cover no-repeat;
}

.app-promo-lead {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

.app-promo-lead + .app-promo-lead {
  margin-top: 8px;
}

.app-promo-points {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

/* One point: check mark in the first column, name and text stacked in the second. */
.app-promo-points li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.app-promo-points li::before,
.app-promo-points li::after {
  content: '';
  grid-area: 1 / 1;
}

.app-promo-points li::before {
  width: 22px;
  height: 22px;
  margin-top: calc((1.5em - 22px) / 2);
  border-radius: var(--radius-full);
  background: var(--bg);
}

.app-promo-points li::after {
  justify-self: center;
  width: 6px;
  height: 10px;
  margin-top: calc((1.5em - 22px) / 2 + 4px);
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.app-promo-point-name,
.app-promo-point-text {
  grid-column: 2;
}

.app-promo-point-name {
  font-weight: 700;
}

.app-promo-point-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.app-promo-note {
  margin: 20px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--surface-2);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
}

/* The border has the face color: it keeps the 52px box and stays visible when the system forces its own colors. */
.app-promo-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 18px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.app-promo-button::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.app-promo-button:active {
  border-color: var(--primary-press);
  background: var(--primary-press);
}

.app-promo-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.site-footer {
  padding-top: 32px;
  padding-bottom: 48px;
  font-size: 14px;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
}

.analytics-notice {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

@media (hover: hover) {
  .app-promo-button:hover {
    border-color: var(--primary-press);
    background: var(--primary-press);
  }
}

@media (max-width: 420px) {
  .related ul {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 720px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 32px;
  }

  .card {
    padding: 32px 28px;
  }

  .app-promo {
    padding: 30px 26px;
  }

  .app-promo-lead,
  .app-promo-points li {
    font-size: 17px;
  }

  .app-promo-point-text {
    font-size: 16px;
  }

  .app-promo-note {
    font-size: 15px;
  }
}
