/* reference 영역 — 고객사 / 구축사례 / 구축사례 상세 */

.rf-section { padding: 52px 0 72px; }
.rf-title {
  margin: 0 0 36px; font-family: var(--font-display);
  font-size: 40px; font-weight: 800; letter-spacing: -0.035em;
  color: #0a1317; line-height: 1.25; text-align: center;
}

/* ---------- 고객사 ---------- */
.rf-client-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }

.rf-tile {
  position: relative; overflow: hidden; display: flex;
  align-items: center; justify-content: center;
  height: 112px; border-radius: 12px; text-decoration: none;
  background: #ffffff; border: 1px solid #dee3e9; box-shadow: none;
  transform: translateY(0);
  transition: transform 240ms cubic-bezier(0.2,0,0,1), box-shadow 240ms cubic-bezier(0.2,0,0,1), border-color 200ms ease-out;
  cursor: default;
}
.rf-tile--linked { cursor: pointer; }
.rf-tile--linked:hover {
  border-color: #0F78C4;
  box-shadow: rgba(15,120,196,0.26) 0px 16px 32px -16px;
  transform: translateY(-4px);
}
.rf-tile__logo {
  max-width: 74%; max-height: 40px; width: auto;
  object-fit: contain; display: block; mix-blend-mode: multiply;
  opacity: 1; transform: scale(1);
  transition: opacity 220ms ease-out, transform 260ms cubic-bezier(0.2,0,0,1);
}
.rf-tile__logo--tall { max-height: 58px; }
.rf-tile--linked:hover .rf-tile__logo { opacity: 0; transform: scale(0.94); }

.rf-tile__over {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; gap: 8px;
  background: #0F78C4; color: #ffffff; text-align: left;
  padding: 0 22px; word-break: keep-all;
  opacity: 0; transition: opacity 220ms ease-out;
}
.rf-tile--linked:hover .rf-tile__over { opacity: 1; }
.rf-tile__name { font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.rf-tile__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
}
/* 구축사례가 있는 고객사 표시 */
.rf-tile__mark {
  position: absolute; top: 9px; right: 9px; display: inline-flex;
  opacity: 1; transition: opacity 200ms ease-out;
}
.rf-tile--linked:hover .rf-tile__mark { opacity: 0; }

.rf-legend {
  margin-top: 18px; display: flex; align-items: center; gap: 3px; justify-content: flex-end;
  font-size: 14px; color: #41505e; letter-spacing: -0.02em;
}
.rf-legend__mark { display: inline-flex; transform: translateY(-0.5px); }

/* ---------- 구축사례 ---------- */
.rf-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }

.rf-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  min-height: 300px; padding: 30px 30px 26px; border-radius: 18px;
  background: #ffffff; cursor: pointer; word-break: keep-all;
  border: 1px solid #e1e6ec;
  box-shadow: rgba(10,19,23,0.04) 0px 2px 10px -6px;
  transform: translateY(0);
  transition: transform 260ms cubic-bezier(0.2,0,0,1), box-shadow 260ms cubic-bezier(0.2,0,0,1);
  scroll-margin-top: 110px; font-family: var(--font-body);
}
/* hover 또는 고객사에서 넘어온 카드(location.hash) 강조 */
.rf-card:hover, .rf-card.is-hl {
  box-shadow: rgba(15,120,196,0.18) 0px 20px 40px -20px;
  transform: translateY(-5px);
}
.rf-card__logo { height: 44px; display: flex; align-items: center; }
.rf-card__logo img {
  max-width: 170px; max-height: 28px; width: auto;
  object-fit: contain; display: block; mix-blend-mode: multiply;
}
.rf-card__logo img.is-tall { max-height: 44px; }
.rf-card__body { margin-top: 34px; display: flex; flex-direction: column; gap: 8px; }
.rf-card__client { font-size: 14px; font-weight: 700; color: #0F78C4; letter-spacing: -0.01em; }
.rf-card__title {
  margin: 0; font-family: var(--font-body); font-size: 20px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.45;
  color: #0a1317; transition: color 200ms ease-out;
}
.rf-card:hover .rf-card__title, .rf-card.is-hl .rf-card__title { color: #0A5488; }
.rf-card__foot {
  margin-top: auto; padding-top: 26px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.rf-card__tag {
  display: inline-flex; align-items: center; padding: 5px 12px;
  border: 1px solid #dee3e9; border-radius: 6px; background: #fff;
  font-size: 13.5px; font-weight: 700; color: #41505e; letter-spacing: -0.02em;
}
.rf-card__btn {
  width: 32px; height: 32px; border-radius: 6px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #dde2e8; color: #ffffff;
  transition: background 220ms ease-out;
}
.rf-card:hover .rf-card__btn, .rf-card.is-hl .rf-card__btn { background: #0F78C4; }

/* ---------- 구축사례 상세 ---------- */
.rf-detail { word-break: keep-all; }

.rf-head { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 40px; align-items: stretch; }
.rf-head__logo {
  border: 1px solid #e1e6ec; border-radius: 18px; background: #fff;
  display: flex; align-items: center; justify-content: center; min-height: 180px;
}
.rf-head__logo img {
  max-width: 70%; max-height: 50px; width: auto;
  object-fit: contain; display: block; mix-blend-mode: multiply;
}
.rf-head__logo img.is-tall { max-height: 78px; }
.rf-head__info { display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; }
.rf-head__cat {
  align-self: flex-start; padding: 6px 13px; border-radius: 6px;
  background: #e9f2fa; color: #0A5488; font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
}
.rf-head__title {
  margin: 0; font-family: var(--font-body); font-size: 26px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.4; color: #0a1317;
}
.rf-head__meta { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 2px solid #0a1317; }
.rf-head__meta dt {
  padding: 13px 26px 13px 4px; font-size: 15px; font-weight: 700; color: #41505e;
  border-bottom: 1px solid #e1e6ec;
}
.rf-head__meta dd {
  margin: 0; padding: 13px 0; font-size: 16px; color: #0a1317;
  border-bottom: 1px solid #e1e6ec;
}

.rf-overview { margin-top: 56px; }
.rf-overview__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.rf-overview__title {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em; color: #0a1317;
}
.rf-overview__line { flex: 1; height: 1px; background: #e1e6ec; }
.rf-overview__text { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
.rf-overview__text p { margin: 0; font-size: 17.5px; line-height: 1.75; letter-spacing: -0.02em; color: #0a1317; }

.rf-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rf-list {
  background: #f6f8fa; border-radius: 16px;
  padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.rf-list--blue { background: #eef5fb; }
.rf-list__head { display: flex; align-items: baseline; gap: 10px; }
.rf-list__label {
  font-family: var(--font-display); font-size: 19px; font-weight: 800;
  letter-spacing: -0.02em; color: #0a1317;
}
.rf-list__en { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; color: #8F4F06; }
.rf-list--blue .rf-list__en { color: #0F78C4; }
.rf-list ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.rf-list li {
  display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5;
  letter-spacing: -0.02em; color: #0a1317; word-break: keep-all;
}
.rf-list__check {
  flex-shrink: 0; margin-top: 2px; width: 22px; height: 22px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #0F78C4; color: #ffffff;
}
/* "약 N%" 강조 (TextFormat.emphasizeNumbers) */
.rf-list .em-num { color: #0A5488; font-weight: 800; }

/* 이전·다음 */
.rf-nav { margin-top: 64px; border-top: 2px solid #0a1317; }
.rf-nav__row {
  display: flex; align-items: center; gap: 20px; padding: 18px 22px;
  border-bottom: 1px solid #e1e6ec; text-decoration: none;
  background: transparent; transition: background 180ms ease-out;
}
a.rf-nav__row:hover { background: #f6f8fa; }
.rf-nav__label {
  width: 86px; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: #55657a;
}
.rf-nav__title {
  font-size: 16px; letter-spacing: -0.02em; color: #0a1317; transition: color 180ms ease-out;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.rf-nav__row:hover .rf-nav__title { color: #0F78C4; }

.rf-back { margin-top: 36px; display: flex; justify-content: center; }
.rf-back__btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px; border-radius: 10px;
  background: #0F78C4; color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em; transition: background 200ms ease-out;
}
.rf-back__btn:hover { background: #0a1317; }
