/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-900);
}

.logo__mark {
  width: 28px;
  height: 28px;
}

.logo__text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--sm {
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--lg {
  height: 60px;
  font-size: 17px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--green-700);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: var(--green-800);
}

.btn--primary:disabled {
  background: var(--gray-200);
  color: var(--gray-600);
}

.btn--line {
  background: #fff;
  color: var(--gray-900);
  box-shadow: inset 0 0 0 1px var(--gray-300);
}

.btn--line:hover {
  background: var(--surface);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
}

.link-more:hover {
  color: var(--gray-900);
}

.arrow {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--gray-800);
  box-shadow: inset 0 0 0 1px var(--gray-300);
}

.arrow:hover:not(:disabled) {
  background: var(--surface);
}

.arrow:disabled {
  opacity: 0.35;
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}

.tag--recruiting {
  background: var(--green-100);
  color: var(--green-800);
}

.tag--upcoming {
  background: var(--navy-100);
  color: var(--navy-700);
}

.tag--operating {
  background: var(--amber-100);
  color: var(--amber-900);
}

/* ---------- Section head ---------- */
.section {
  padding-block: var(--section-y);
}

.section-head {
  margin-bottom: 32px;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}

.section-lead {
  margin-top: 10px;
  font-size: 16px;
  color: var(--gray-600);
}

.block-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.photo-credit {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 767px) {
  .section-head {
    margin-bottom: 24px;
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-lead {
    font-size: 15px;
  }
}

/* ---------- Input box (계산기 금액 칸 · 가입 신청 칸) ----------
   칸 자체(input)에 달거나, 칸을 감싼 상자에 단다. 틀리면 상자는 .is-invalid, 칸은 aria-invalid="true" */
.input-box {
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--gray-200);
  transition: box-shadow 0.15s;
}

.input-box:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--navy-900);
}

.input-box.is-invalid,
.input-box[aria-invalid='true'] {
  box-shadow: inset 0 0 0 1.5px var(--red-500);
}

/* 칸 아래 오류 글. 비어 있으면 자리를 차지하지 않는다 */
.form-error {
  font-size: 13px;
  font-weight: 600;
  color: var(--red-500);
}

.form-error:empty {
  display: none;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  max-width: min(92vw, 460px);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 767px) {
  .toast {
    bottom: 88px;
  }
}
