/* =========================================================
   서버 상세정보 (detail.html)
   국내 서버 목록 사이트의 상세페이지 관습(명함 · 지표 · 스펙표 ·
   접속 절차 · FAQ · 배너)을 HOLDz 스타일로 다시 짠 레이아웃.
   style.css → pages.css → detail.css 순서로 읽습니다.
   ========================================================= */

/* 목차 바가 헤더 아래에 하나 더 붙으므로 앵커 여백을 그만큼 늘린다.
   이 파일은 detail.html 에서만 불러오므로 다른 페이지에는 영향이 없다. */
html {
  scroll-padding-top: calc(var(--header-h) + 74px);
}

.detail-masthead {
  position: relative;
  padding: calc(var(--header-h) + 46px) 0 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(240, 68, 68, .17), transparent 42%),
    linear-gradient(180deg, #0b0c0e 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.detail-masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 62px 62px;
  pointer-events: none;
}

.detail-masthead > .shell {
  position: relative;
  z-index: 1;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.detail-breadcrumb a {
  color: var(--muted);
  transition: color .2s ease;
}

.detail-breadcrumb a:hover {
  color: var(--red-bright);
}

.detail-breadcrumb b {
  color: var(--text);
  font-weight: 600;
}

.detail-card {
  margin-bottom: -1px;
  padding: 34px 34px 30px;
  background: linear-gradient(180deg, rgba(23, 26, 31, .92), rgba(13, 15, 17, .92));
  border: 1px solid var(--line);
  border-bottom: none;
}

.detail-identity {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.detail-icon {
  position: relative;
  flex: none;
  width: 112px;
  height: 112px;
  border: 1px solid var(--line);
  background: #0a0b0d;
}

.detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-icon-state {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 3px #0d0f11;
}

.detail-icon-state.is-online {
  background: var(--green);
  box-shadow: 0 0 0 3px #0d0f11, 0 0 14px rgba(86, 227, 141, .7);
}

.detail-icon-state.is-offline {
  background: var(--red);
  box-shadow: 0 0 0 3px #0d0f11;
}

.detail-headline {
  min-width: 0;
}

.detail-rankline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  font-size: 10px;
  letter-spacing: .16em;
}

.detail-rankline b {
  padding: 4px 8px;
  color: #ffd0d0;
  background: rgba(240, 68, 68, .16);
  border: 1px solid rgba(240, 68, 68, .45);
  font-weight: 700;
}

.detail-rankline span {
  padding: 4px 8px;
  color: var(--muted);
  border: 1px solid var(--line);
}

.detail-headline h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.02;
}

.detail-headline h1 em {
  color: var(--muted);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -.02em;
}

.detail-tagline {
  margin-top: 12px;
  color: #bac0c6;
  font-size: 16px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  list-style: none;
}

.detail-tags li {
  padding: 5px 10px;
  color: #cdd2d7;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-soft);
  font-size: 12px;
}

.detail-address {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 26px;
  padding: 16px 18px;
  background: rgba(8, 9, 10, .6);
  border: 1px solid var(--line);
}

.detail-address small,
.detail-metrics dt {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.detail-address-value {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.detail-address-value code {
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.detail-copy-hint {
  padding: 4px 9px;
  color: #ffbdbd;
  background: rgba(240, 68, 68, .14);
  border: 1px solid rgba(240, 68, 68, .42);
  font-size: 10px;
  letter-spacing: .14em;
  transition: background .2s ease;
}

.detail-address-value:hover .detail-copy-hint {
  background: rgba(240, 68, 68, .3);
}

.detail-address-side {
  text-align: right;
}

.detail-address-side strong {
  display: block;
  margin-top: 5px;
  color: #d8dde1;
  font-size: 13px;
  font-weight: 600;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-metrics > div {
  padding: 16px 18px;
  background: #0e1013;
}

.detail-metrics dd {
  margin: 6px 0 3px;
  color: var(--text);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 800;
  letter-spacing: -.035em;
}

.detail-metrics small {
  color: var(--muted-2);
  font-size: 11px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

/* 히어로용 .button 은 66px 라 명함 카드에는 무겁다. 목록 사이트 톤에 맞춘 소형 버튼. */
.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  color: #d5dade;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.detail-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, .085);
  border-color: rgba(255, 255, 255, .3);
}

.detail-btn-primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 6px 6px 0 rgba(240, 68, 68, .13);
}

.detail-btn-primary:hover {
  color: #fff;
  background: var(--red-bright);
  border-color: var(--red-bright);
}

/* 목차 바 — 헤더 아래에 붙어 따라온다 */
.detail-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(10, 11, 13, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.detail-tabs-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.detail-tabs-inner::-webkit-scrollbar {
  display: none;
}

.detail-tabs-inner a {
  flex: none;
  padding: 15px 15px 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}

.detail-tabs-inner a:hover {
  color: #fff;
  border-bottom-color: var(--red);
}

.detail-section .section-index {
  margin-bottom: 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 46px;
  align-items: start;
}

.detail-block + .detail-block {
  margin-top: 44px;
}

.detail-block h2 {
  font-size: clamp(31px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.06;
}

.detail-block p {
  margin-top: 17px;
  color: #a9b0b7;
  font-size: 15px;
  line-height: 1.85;
}

.detail-block .detail-lead {
  color: #d5dade;
  font-size: 17px;
}

.detail-subhead {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.detail-checklist {
  margin-top: 16px;
  list-style: none;
}

.detail-checklist li {
  position: relative;
  padding: 12px 0 12px 26px;
  color: #a9b0b7;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.detail-checklist li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}

.detail-checklist b {
  color: var(--text);
  font-weight: 700;
}

.detail-aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-h) + 66px);
}

.detail-panel {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.detail-panel h3 {
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}

.detail-panel-accent {
  background: linear-gradient(160deg, rgba(240, 68, 68, .11), rgba(17, 20, 24, .96));
  border-color: rgba(240, 68, 68, .3);
}

.detail-spec > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .07);
  font-size: 13px;
}

.detail-spec > div:last-child {
  border-bottom: none;
}

.detail-spec dt {
  color: var(--muted-2);
}

.detail-spec dd {
  color: #d5dade;
  font-weight: 600;
}

.detail-spec code {
  color: var(--red-bright);
  font-family: var(--mono);
  font-size: 13px;
}

.detail-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, .08);
  list-style: none;
}

.detail-figures li {
  padding: 14px 12px;
  background: #101317;
  text-align: center;
}

.detail-figures b {
  display: block;
  color: var(--text);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.detail-figures span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 11px;
}

.detail-panel-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.detail-links {
  display: grid;
  gap: 8px;
}

.detail-links a {
  display: block;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .028);
  border: 1px solid var(--line-soft);
  transition: border-color .2s ease, background .2s ease;
}

.detail-links a:hover {
  background: rgba(240, 68, 68, .09);
  border-color: rgba(240, 68, 68, .45);
}

.detail-links b {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.detail-links span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 12px;
}

.detail-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-features article {
  position: relative;
  padding: 28px 26px 26px;
  background: #0c0e11;
  transition: background .25s ease;
}

.detail-features article:hover {
  background: #12151a;
}

.detail-feature-no {
  display: block;
  margin-bottom: 12px;
  color: rgba(240, 68, 68, .55);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
}

.detail-features h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.detail-features p {
  margin-top: 11px;
  color: #9aa1a9;
  font-size: 14px;
  line-height: 1.8;
}

.detail-features a {
  display: inline-block;
  margin-top: 15px;
  padding-bottom: 3px;
  color: var(--red-bright);
  border-bottom: 1px solid rgba(240, 68, 68, .4);
  font-size: 12px;
  font-weight: 600;
}

.detail-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 14px;
  margin-top: 42px;
  list-style: none;
}

.detail-steps li {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.detail-steps li > span {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffc9c9;
  background: rgba(240, 68, 68, .14);
  border: 1px solid rgba(240, 68, 68, .4);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.detail-steps h3 {
  font-size: 15px;
  font-weight: 700;
}

.detail-steps p {
  margin-top: 7px;
  color: #99a0a8;
  font-size: 13px;
  line-height: 1.75;
}

.detail-steps b {
  color: #d8dde1;
}

.detail-steps a {
  color: var(--red-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-inline-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #ffd6d6;
  background: rgba(240, 68, 68, .12);
  border: 1px solid rgba(240, 68, 68, .4);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease;
}

.detail-inline-copy:hover {
  background: rgba(240, 68, 68, .26);
}

.detail-inline-copy code {
  font-family: var(--mono);
  font-weight: 700;
}

.detail-activity {
  margin-top: 42px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.detail-chart-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}

.detail-chart-head h3 {
  font-size: 17px;
  font-weight: 700;
}

.detail-chart-head p {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 12px;
}

.detail-chart-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.detail-chart-legend b {
  color: var(--text);
}

.detail-chart-peak {
  width: 16px;
  height: 3px;
  background: var(--red);
}

.detail-chart {
  position: relative;
  background:
    linear-gradient(180deg, rgba(240, 68, 68, .04), transparent 70%),
    #0a0c0e;
  border: 1px solid var(--line-soft);
}

.detail-chart-svg {
  display: block;
  width: 100%;
  height: 230px;
}

/* SVG 요소에는 브라우저 기본 [hidden] 규칙이 적용되지 않는다 */
.detail-chart-svg[hidden] {
  display: none;
}

.detail-chart-line {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.detail-chart-grid {
  stroke: rgba(255, 255, 255, .06);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* display 를 직접 지정하면 브라우저 기본 [hidden] 규칙을 덮어쓴다 */
.detail-chart-empty[hidden] {
  display: none;
}

.detail-chart-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 20px;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}

.detail-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1px;
  margin-top: 14px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-totals > div {
  padding: 18px 20px;
  background: #0c0e11;
}

.detail-totals small {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: .12em;
}

.detail-totals b {
  display: block;
  margin-top: 6px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.detail-updated {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 11px;
  text-align: right;
}

.detail-faq {
  display: grid;
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-faq details {
  background: #0c0e11;
}

.detail-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}

.detail-faq summary::-webkit-details-marker {
  display: none;
}

.detail-faq summary::after {
  content: "+";
  flex: none;
  color: var(--red-bright);
  font-family: var(--mono);
  font-size: 18px;
  transition: transform .25s var(--ease);
}

.detail-faq details[open] summary::after {
  transform: rotate(45deg);
}

.detail-faq summary:hover {
  color: #fff;
}

.detail-faq details > div {
  padding: 0 22px 21px;
  color: #99a0a8;
  font-size: 14px;
  line-height: 1.85;
}

.detail-faq code {
  color: var(--red-bright);
  font-family: var(--mono);
  font-weight: 700;
}

.detail-faq a {
  color: var(--red-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-banner {
  display: grid;
  grid-template-columns: 468px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-top: 42px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.detail-banner > img {
  width: 100%;
  max-width: 468px;   /* 배너 원본 크기 이상으로 늘리지 않는다 */
  height: auto;
  border: 1px solid var(--line);
}

.detail-banner-codes {
  display: grid;
  gap: 10px;
}

.detail-banner-codes label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.detail-banner-codes small {
  grid-column: 1 / -1;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.detail-banner-codes input {
  min-width: 0;
  padding: 10px 12px;
  color: #cfd4d9;
  background: #08090a;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

.detail-banner-codes button {
  padding: 10px 14px;
  color: #ffd6d6;
  background: rgba(240, 68, 68, .14);
  border: 1px solid rgba(240, 68, 68, .42);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}

.detail-banner-codes button:hover,
.detail-banner-codes button.is-done {
  background: rgba(240, 68, 68, .3);
}

.detail-cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 68, 68, .16), transparent 55%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.detail-cta .eyebrow {
  justify-content: center;
}

.detail-cta h2 {
  margin-top: 16px;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1.04;
}

.detail-cta h2 strong {
  color: var(--red-bright);
}

.detail-cta > .shell > p:not(.eyebrow) {
  max-width: 520px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.detail-cta .detail-actions {
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 1080px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .detail-aside {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  }

  .detail-banner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 840px) {
  .detail-masthead {
    padding-top: calc(var(--header-h) + 26px);
  }

  .detail-card {
    padding: 24px 20px 22px;
  }

  .detail-identity {
    gap: 18px;
  }

  .detail-icon {
    width: 76px;
    height: 76px;
  }

  .detail-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .detail-address {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-address-side {
    text-align: left;
  }

  .detail-actions .detail-btn {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .detail-identity {
    flex-direction: column;
  }

  .detail-headline h1 {
    font-size: 34px;
  }

  .detail-tagline {
    font-size: 14px;
  }

  .detail-tags li {
    font-size: 11px;
  }

  .detail-spec > div {
    grid-template-columns: 82px 1fr;
    font-size: 12px;
  }

  .detail-actions .detail-btn {
    flex: 1 1 100%;
  }

  .detail-faq summary {
    padding: 16px 18px;
    font-size: 14px;
  }

  .detail-faq details > div {
    padding: 0 18px 18px;
  }

  .detail-banner,
  .detail-activity {
    padding: 18px;
  }

  .detail-chart-svg {
    height: 180px;
  }
}
