/* sports.ayo.pe.kr — 수영장·헬스장·찜질방·골프 등 체육시설 독자 스킨 (2026-09-27, 사이트 고유 디자인 규칙).
 *
 * 콘셉트: **경기장 전광판 × 수영장 레인**. 체육시설을 찾는 사람이 떠올리는 두 장면 —
 * 경기 기록이 뜨는 어두운 전광판, 레인 로프로 나뉜 물빛 수영장 — 의 말투로 짠다.
 * site.css(디자인 A) 위에 덮어쓰고 전부 body.site-sports 아래로 가둔다 — 다른 사이트에 새지 않는다.
 *
 *   바탕   : 연한 수영장 타일 격자
 *   헤더   : 남색 전광판 + 아래 레인 로프(빨강·흰색 부표 줄) · 상호는 노란 전광 글씨
 *   탭     : 레인 번호(1~8) 가 붙은 출발대
 *   요약표 : 전광판 — 어두운 판 · 노란 값
 *   질답   : 레인별 기록 — 질문 왼쪽에 레인 번호 블록(색이 돌아가며 바뀐다)
 *   목록   : 레인 — 바닥 T 표시 선이 있는 가로 줄
 *   지역   : 사물함 열쇠 번호표(고무 밴드 구멍)
 *   글꼴   : Noto Sans KR — 제목·번호는 900 굵기 + 기울임(경기 기록판 서체 느낌), 본문 400
 *
 * ⚠️ 광고 유닛(<ins>·.ad-top·.ad-row 안쪽)에는 배경·테두리·라벨을 씌우지 않는다(site.css 애드센스 절).
 * ⚠️ 질문(h2)과 답(p) 사이에 요소를 끼우지 않는다 — 장식은 ::before/::after 로만.
 */

body.site-sports {
  --fg: #0f2236;
  --fg-soft: #33485e;
  --muted: #647689;
  --line: #cfe0ea;
  --line-soft: #e3eef4;
  --bg: #ffffff;
  --bg-soft: #eef6fa;
  --accent: #0a66b3;
  --accent-strong: #074d88;
  --accent-soft: #dcecf8;
  --accent-wash: #f2f8fc;
  --accent-line: #a9cbe6;
  --board: #0b1f3a;
  --board-2: #12294a;
  --led: #ffd23f;
  --lane-red: #e63946;
  --lane-blue: #1d8fe0;
  --pool: #e6f4fa;
  --display: "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", sans-serif;
  --radius: 8px;
  --wrap: 880px;
  background: var(--pool);
  background-image:
    linear-gradient(rgba(29, 143, 224, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 143, 224, .09) 1px, transparent 1px);
  background-size: 26px 26px;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

body.site-sports main,
body.site-sports .site-foot,
body.site-sports .ad-top,
body.site-sports .top-search { max-width: var(--wrap); }

/* ── 헤더: 전광판 + 레인 로프 ──────────────────────────────────────────── */
body.site-sports .site-head {
  position: relative;
  max-width: none;
  margin: 0 0 8px;
  padding: 20px max(20px, calc((100% - var(--wrap)) / 2 + 20px)) 30px;
  border-bottom: 0;
  background:
    radial-gradient(rgba(255, 210, 63, .06) 1px, transparent 1.3px) 0 0 / 5px 5px,
    linear-gradient(180deg, var(--board-2), var(--board));
}
/* 레인 로프 — 부표가 이어진 줄 */
body.site-sports .site-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background:
    radial-gradient(ellipse 9px 5px at 50% 50%, rgba(255, 255, 255, .45) 0 40%, transparent 42%) 0 0 / 18px 10px repeat-x,
    repeating-linear-gradient(90deg, var(--lane-red) 0 18px, #ffffff 18px 36px, var(--lane-blue) 36px 54px, #ffffff 54px 72px);
  box-shadow: 0 2px 0 rgba(11, 31, 58, .25);
}
body.site-sports .brand {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 27px;
  letter-spacing: 0;
  line-height: 1.2;
}
body.site-sports .brand a {
  color: var(--led);
  text-shadow: 0 0 10px rgba(255, 210, 63, .45);
}
body.site-sports .brand a:hover { color: #fff1b0; text-decoration: none; }

/* 탭: 레인 번호가 붙은 출발대 */
body.site-sports .site-head nav { counter-reset: sp-lane; gap: 6px; }
body.site-sports .site-head nav a {
  counter-increment: sp-lane;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 4px;
  border: 1px solid #2c4a73;
  border-radius: 4px;
  background: #0f2847;
  color: #dbe7f5;
  font-size: 14px;
  font-weight: 700;
}
body.site-sports .site-head nav a::before {
  content: counter(sp-lane);
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 3px;
  background: #fff;
  color: var(--board);
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 13px;
}
body.site-sports .site-head nav a.on,
body.site-sports .site-head nav a:hover {
  border-color: var(--led);
  background: var(--led);
  color: var(--board);
  text-decoration: none;
}
body.site-sports .site-head nav a.on::before,
body.site-sports .site-head nav a:hover::before { background: var(--board); color: var(--led); }

/* 검색창 */
body.site-sports .site-search input[type="search"] {
  border: 2px solid var(--board);
  border-radius: 6px;
  background: #fff;
}
body.site-sports .site-search button {
  border-radius: 6px;
  background: var(--board);
  color: var(--led);
  font-weight: 800;
}
body.site-sports .site-search button:hover { background: var(--accent-strong); }

/* ── 경로·제목 ─────────────────────────────────────────────────────────── */
body.site-sports .crumb { font-size: 12.5px; color: var(--muted); }
body.site-sports .crumb a { color: var(--fg-soft); }
body.site-sports .crumb a::after { content: " ▸ "; color: var(--lane-red); }
body.site-sports .crumb span { color: var(--accent); font-weight: 700; }

body.site-sports h1 {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--board);
  margin: 14px 0 18px;
}
body.site-sports .lead { color: var(--fg-soft); margin: 0 0 22px; }
body.site-sports .data-date {
  display: inline-block;
  margin: -6px 0 16px;
  padding: 3px 10px 3px 26px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 13px 50%, transparent 4px, var(--lane-red) 4.5px 6px, transparent 6.5px),
    #fff;
  color: var(--fg-soft);
  font-size: 12.5px;
  box-shadow: 0 1px 0 var(--line);
}

/* ── 요약표: 전광판 ───────────────────────────────────────────────────── */
body.site-sports .summary {
  border: 4px solid #1f3a60;
  border-radius: 10px;
  background:
    radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1.3px) 0 0 / 4px 4px,
    var(--board);
  box-shadow: 0 6px 0 -2px #9fbcd1;
  font-size: 15px;
}
body.site-sports .summary tr + tr th,
body.site-sports .summary tr + tr td { border-top: 1px solid #1d3558; }
body.site-sports .summary th {
  width: 100px;
  background: transparent;
  color: #8fa9c8;
  font-size: 12.5px;
  letter-spacing: 1px;
}
body.site-sports .summary td { color: var(--led); font-weight: 700; }
body.site-sports .summary td a { color: #7cc6ff; }
body.site-sports .phone-note { color: #9db2cc; }
body.site-sports .btn { border-radius: 4px; }
body.site-sports .btn-phone {
  border: 1.5px solid var(--led);
  background: transparent;
  color: var(--led);
}
body.site-sports .btn-phone:hover { background: var(--led); color: var(--board); }

/* ── 질답: 레인별 기록 ─────────────────────────────────────────────────── */
body.site-sports section.qa { counter-reset: sp-q; }
body.site-sports .qa-head {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 21px;
  color: var(--board);
  letter-spacing: 0;
}
body.site-sports .qa-head::before {
  content: "";
  width: 26px; height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 3px, transparent 3.5px),
    conic-gradient(var(--lane-red) 0 25%, #fff 0 50%, var(--lane-red) 0 75%, #fff 0);
  box-shadow: 0 0 0 2px var(--lane-red);
}
body.site-sports .qa-list {
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 4px 0 #bcd6e6;
}
body.site-sports .qa-item,
body.site-sports section.qa > .qa-item {
  counter-increment: sp-q;
  position: relative;
  padding: 16px 20px 16px 76px;
  border-bottom: 0;
  background: #fff;
}
body.site-sports section.qa > .qa-item {
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line), 0 4px 0 #bcd6e6;
}
/* 레인 사이 로프 */
body.site-sports .qa-item + .qa-item::after {
  content: "";
  position: absolute;
  left: 56px; right: 0; top: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--lane-red) 0 10px, #fff 10px 14px, var(--lane-blue) 14px 24px, #fff 24px 28px);
  opacity: .7;
}
body.site-sports section.qa > .qa-item + .qa-item::after { display: none; }
body.site-sports .qa-item { --ln: var(--lane-blue); }
body.site-sports .qa-item:nth-of-type(4n+2) { --ln: var(--lane-red); }
body.site-sports .qa-item:nth-of-type(4n+3) { --ln: #13a88a; }
body.site-sports .qa-item:nth-of-type(4n)   { --ln: #f08c00; }
body.site-sports .qa-item h2 {
  display: block;
  margin-bottom: 6px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--board);
}
body.site-sports .qa-item h2::before {
  content: counter(sp-q);
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 56px;
  display: grid;
  place-items: center;
  background: var(--ln);
  color: #fff;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 24px;
}
body.site-sports .qa-item p { padding-left: 0; color: var(--fg-soft); }

/* ── 지도 ─────────────────────────────────────────────────────────────── */
body.site-sports .mapsec-head { font-family: var(--display);
  font-weight: 900;
  font-style: italic; font-size: 20px; color: var(--board); }
body.site-sports .map-canvas,
body.site-sports .pano-canvas { border: 3px solid var(--board); border-radius: 10px; }
body.site-sports .map-pin { background: var(--board); color: var(--led); }

/* ── 주변 정보 ─────────────────────────────────────────────────────────── */
body.site-sports .near { border-top: 0; padding-top: 14px; background: linear-gradient(90deg, var(--lane-red) 0 25%, #fff 25% 50%, var(--lane-blue) 50% 75%, #fff 75%) 0 0 / 40px 4px repeat-x; }
body.site-sports .near h2 {
  border-left: 0;
  padding-left: 0;
  color: var(--board);
}
body.site-sports .near h2::before {
  content: "";
  display: inline-block;
  width: 5px; height: 16px;
  margin-right: 9px;
  vertical-align: -2px;
  background: var(--board);
  box-shadow: 8px 0 0 var(--led);
  margin-right: 17px;
}
body.site-sports .near-block {
  padding: 2px 18px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
body.site-sports .near > .near-block > p,
body.site-sports .near ul,
body.site-sports .near .more { padding-left: 0; }
body.site-sports .near li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
body.site-sports .dist { background: var(--board); color: var(--led); border-radius: 3px; }
body.site-sports .cat { background: var(--accent-soft); color: var(--accent-strong); border-radius: 3px; font-weight: 700; }
body.site-sports .cat:empty { display: none; }

/* ── 목록: 레인 ───────────────────────────────────────────────────────── */
body.site-sports section.list > h2,
body.site-sports section.children > h2,
body.site-sports section.other-sites > h2 {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  color: var(--board);
  border-bottom: 0;
  padding-bottom: 10px;
  background: repeating-linear-gradient(90deg, var(--lane-red) 0 10px, #fff 10px 14px, var(--lane-blue) 14px 24px, #fff 24px 28px) 0 100% / 100% 4px no-repeat;
}
body.site-sports .place-list {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
body.site-sports .place-list li:not(.ad-row) {
  position: relative;
  padding: 13px 16px 13px 22px;
  border-bottom: 1px dashed var(--accent-line);
  background: linear-gradient(90deg, transparent 0, rgba(29, 143, 224, .06));
}
/* 바닥 T 표시 */
body.site-sports .place-list li:not(.ad-row)::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 46px; height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(#1c3a66, #1c3a66) 0 50% / 100% 3px no-repeat,
    linear-gradient(#1c3a66, #1c3a66) 100% 0 / 3px 100% no-repeat;
  opacity: .18;
}
body.site-sports .place-list li:not(.ad-row):hover { background: #f1f9fd; }
body.site-sports .place-list li > a { color: var(--board); font-weight: 700; }
body.site-sports .place-list li > a:hover { color: var(--accent); }
body.site-sports .place-list .addr { padding-right: 60px; }

/* 지역: 사물함 열쇠 번호표 */
body.site-sports .region-links { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
body.site-sports .region-links li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border: 0;
  border-radius: 20px 8px 8px 20px;
  background: var(--lane-blue);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
}
body.site-sports .region-links li::before {
  content: "";
  position: absolute;
  left: 11px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--pool);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .15);
}
body.site-sports .region-links li:nth-child(4n+2) { background: var(--lane-red); }
body.site-sports .region-links li:nth-child(4n+3) { background: #13a88a; }
body.site-sports .region-links li:nth-child(4n)   { background: #f08c00; }
body.site-sports .region-links li:hover { filter: brightness(1.1); }
body.site-sports .region-links li > a { color: #fff; font-weight: 700; }
body.site-sports .region-links .count { color: rgba(255, 255, 255, .88); font-weight: 600; }
body.site-sports .count { color: var(--muted); }

/* 메뉴: 전광판 타일 */
body.site-sports .menu-cards { counter-reset: sp-m; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
body.site-sports .menu-cards li {
  counter-increment: sp-m;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 16px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--board);
  box-shadow: inset 0 -5px 0 var(--lane-red);
}
body.site-sports .menu-cards li:nth-child(even) { box-shadow: inset 0 -5px 0 var(--lane-blue); }
body.site-sports .menu-cards li::after {
  content: "LANE " counter(sp-m);
  position: absolute;
  right: 12px; top: 10px;
  color: #6f8db3;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
body.site-sports .menu-cards li:hover { background: var(--board-2); }
body.site-sports .menu-cards li > a { color: #fff; font-family: var(--display);
  font-weight: 900;
  font-style: italic; font-size: 21px; }
body.site-sports .menu-cards .count { color: var(--led); font-weight: 700; }

/* ── 출처·삭제요청·푸터 ─────────────────────────────────────────────────── */
body.site-sports .source h2 { color: var(--board); font-size: 16px; }
body.site-sports .removal {
  border: 1.5px solid var(--accent-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 0 #bcd6e6;
}
body.site-sports .removal::before { background: var(--pool); }
body.site-sports .removal-icon { background: var(--board); color: var(--led); border-radius: 8px; }
body.site-sports .btn-removal { background: var(--board); color: #fff; box-shadow: none; }
body.site-sports .btn-removal:hover { background: var(--accent-strong); box-shadow: none; }
body.site-sports .site-foot {
  max-width: none;
  margin-top: 56px;
  padding: 22px max(20px, calc((100% - var(--wrap)) / 2 + 20px)) 44px;
  border-top: 0;
  background: var(--board);
  color: #9db2cc;
}

/* ── 모바일 ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  body.site-sports .site-head { padding: 16px 16px 26px; }
  body.site-sports .brand { font-size: 22px; }
  body.site-sports .site-head nav a { font-size: 13px; padding: 3px 8px 3px 3px; gap: 5px; }
  body.site-sports .site-head nav a::before { width: 19px; height: 19px; font-size: 11px; }
  body.site-sports h1 { font-size: 25px; }
  body.site-sports .summary th { width: 78px; letter-spacing: 0; }
  body.site-sports .qa-item,
  body.site-sports section.qa > .qa-item { padding: 14px 14px 14px 52px; }
  body.site-sports .qa-item h2::before { width: 38px; font-size: 18px; }
  body.site-sports .qa-item + .qa-item::after { left: 38px; }
  body.site-sports .place-list li:not(.ad-row)::after { display: none; }
  body.site-sports .place-list .addr { padding-right: 0; }
  body.site-sports .region-links { grid-template-columns: 1fr 1fr; }
  body.site-sports .menu-cards { grid-template-columns: 1fr 1fr; }
  body.site-sports .menu-cards li::after { display: none; }
  body.site-sports .site-foot { padding-inline: 16px; }
}

/* ── 다크 모드: 야간 경기 ──────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  body.site-sports {
    --fg: #e6eef6;
    --fg-soft: #b9c7d6;
    --muted: #8a9bb0;
    --line: #22364f;
    --line-soft: #1b2c42;
    --bg: #0f1b2b;
    --bg-soft: #142338;
    --accent: #6cb6ff;
    --accent-strong: #99ccff;
    --accent-soft: #15304f;
    --accent-wash: #102035;
    --accent-line: #2a4a70;
    --pool: #08131f;
    background-image:
      linear-gradient(rgba(108, 182, 255, .06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(108, 182, 255, .06) 1px, transparent 1px);
  }
  body.site-sports h1,
  body.site-sports .qa-head,
  body.site-sports .mapsec-head,
  body.site-sports .near h2,
  body.site-sports .qa-item h2,
  body.site-sports section.list > h2,
  body.site-sports section.children > h2,
  body.site-sports section.other-sites > h2,
  body.site-sports .place-list li > a,
  body.site-sports .source h2 { color: #eaf2fb; }
  body.site-sports .qa-list,
  body.site-sports .qa-item,
  body.site-sports section.qa > .qa-item,
  body.site-sports .near-block,
  body.site-sports .place-list,
  body.site-sports .removal,
  body.site-sports .data-date,
  body.site-sports .site-search input[type="search"] { background-color: #0f1b2b; }
  body.site-sports .data-date { background-image: radial-gradient(circle at 13px 50%, transparent 4px, var(--lane-red) 4.5px 6px, transparent 6.5px); }
  body.site-sports .qa-list,
  body.site-sports section.qa > .qa-item,
  body.site-sports .removal { box-shadow: 0 0 0 1px var(--line), 0 4px 0 #050c15; }
  body.site-sports .summary { border-color: #2a4a70; box-shadow: none; }
  body.site-sports .near h2::before { background: #6cb6ff; }
  body.site-sports .site-search input[type="search"] { border-color: #2a4a70; }
  body.site-sports .site-search button { background: #1f3a60; }
  body.site-sports .menu-cards li { background: #13294a; }
  body.site-sports .site-foot { background: #0b1f3a; }
}
