@charset "UTF-8";

:root {
  --page-bg: #eef2f6;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --text: #202833;
  --muted: #66717f;
  --line: #dce3ea;
  --line-strong: #c8d1db;
  --brand: #f2b632;
  --brand-dark: #775100;
  --accent: #d94b35;
  --accent-dark: #b93826;
  --navy: #263746;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(32, 40, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  background: var(--page-bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

a {
  color: inherit;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

.wrap {
  width: min(100% - 32px, 1000px);
  margin: 24px auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 8px 24px;
  background: var(--brand);
}

.top .logo {
  flex: 0 0 auto;
  line-height: 1;
}

.top .logo a {
  display: block;
}

.top .logo img {
  display: block;
  max-height: 56px;
  width: auto;
}

.top .menu {
  margin-left: auto;
}

.menu .nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu li {
  display: block;
}

.menu a {
  display: block;
  padding: 10px 12px;
  color: #2c2a24;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 8px;
}

.menu a:hover,
.menu a:focus-visible {
  color: #111;
  background: rgba(255, 255, 255, 0.52);
  outline: none;
}

.slidepop,
.slidemenu {
  display: none;
}

.slidemenu li {
  border-bottom: 1px solid var(--line);
}

.slidemenu li:last-child {
  border-bottom: 0;
}

.slidemenu a {
  display: block;
  padding: 13px 20px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  background: var(--surface);
}

.contents {
  padding: 28px;
  background: var(--surface);
}

.wintro {
  margin: 0 0 24px;
  padding: 10px;
  color: #46515e;
  font-size: 0.88rem;
  line-height: 1.65;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.wintro h1 {
  margin: 0 0 6px;
  padding: 0;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.35;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.list {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(32, 40, 51, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

/* 기존 HTML 구조에서도 별도 래퍼 없이 3열 순위표로 배치됩니다. */
.contents > .list {
  width: calc((100% - 36px) / 3);
  margin: 0 18px 18px 0;
  float: left;
}

.contents > .list:nth-of-type(3n + 1) {
  margin-right: 0;
}

.ranking-grid .list {
  width: auto;
  margin: 0;
  float: none;
}

.list:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(32, 40, 51, 0.13);
  transform: translateY(-2px);
  cursor: pointer;
}

.ranking-grid .list:nth-child(-n + 3),
.contents > .list:nth-of-type(2),
.contents > .list:nth-of-type(3),
.contents > .list:nth-of-type(4) {
  border-top: 4px solid #e2a900;
}

.img {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #fff;
}

.img img {
  display: block;
  width: 100%;
  margin: 0;
  object-fit: contain;
}

.name {
  min-height: 48px;
  padding: 11px 16px;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 26px;
  background: #f2f5f8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.name img {
  width: auto;
  max-height: 18px;
  margin-top: 4px;
  float: right;
}

.text {
  flex: 1;
  padding: 10px 12px 11px;
  color: #424d59;
  font-size: 0.86rem;
  line-height: 1.5;
}

.text p {
  margin: 5px 0px;
  padding: 0;
}

.text strong {
  color: var(--accent-dark);
  font-size: 0.95rem;
}

.text span {
  color: var(--muted);
  font-size: 0.82rem;
}

.text p > span:first-child {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.45;
  vertical-align: 1px;
  white-space: nowrap;
  background: #fff9e8;
  border: 1px solid #e4b92f;
  border-radius: 999px;
}

.text p > span:not(:first-child) {
  margin-left: 3px;
}

.download {
  margin: 0 16px 16px;
  padding: 11px 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  background: var(--navy);
  border-radius: 8px;
}

.list:hover .download {
  background: var(--accent);
}

.latest,
.latest2 {
  width: calc(50% - 9px);
  margin: 0 0 18px;
  float: left;
}

.latest + .latest {
  margin-left: 18px;
}

.latestGal {
  width: 24%;
  margin-top: 10px;
}

.latest .listBox {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.latestHead,
.latestLink {
  height: auto;
  padding: 12px 14px;
  color: var(--navy);
  font-size: 0.94rem;
  background: #f2f5f8;
  border-bottom: 2px solid var(--navy);
}

.latestHead {
  font-weight: 800;
}

.latestLink {
  padding-left: 4px;
  text-align: right;
  white-space: nowrap;
}

.latestLink a {
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.latestLink a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.latestList {
  height: 44px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  border-bottom: 1px solid var(--line);
}

.latestList a {
  color: var(--text);
  font-size: 0.92rem;
  text-decoration: none;
}

.latestList a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.substance {
  margin: 0 0 28px;
}

.substance:last-child {
  margin-bottom: 0;
}

.subtitle {
  margin-bottom: 12px;
}

.boardName {
  margin-bottom: 10px;
  padding: 0 0 12px;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 800;
  border-bottom: 3px solid var(--navy);
}

.listBox {
  width: 100%;
  table-layout: auto;
}

.listBox thead {
  background: #edf2f6;
}

.listTitle {
  padding: 12px 10px;
  color: #43505e;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--line-strong);
}

.listBox tbody tr:not(:last-child):nth-child(even) {
  background: #fafbfd;
}

.listBox tbody tr:not(:last-child):hover {
  background: #fff9e9;
}

.textList {
  height: 54px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--line);
}

.textList:first-child {
  width: 62px;
  color: #647180;
  font-weight: 800;
}

.textList:nth-child(2) {
  color: var(--text);
}

.textList a {
  display: inline-block;
  padding: 4px 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
}

.textList a:hover,
.textList a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.textCenter {
  text-align: center;
}

.textRight {
  text-align: right;
}

.textSmall {
  font-size: 0.86rem;
}

.min80 {
  min-width: 80px;
}

.min60 {
  min-width: 60px;
}

.reply {
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.paging {
  padding-top: 18px;
  line-height: 1.4;
  text-align: center;
  word-break: break-all;
}

.paging p {
  margin: 0;
}

.paging a,
.paging strong {
  display: inline-block;
  min-width: 36px;
  margin: 0 2px;
  padding: 7px 10px;
  text-align: center;
  text-decoration: none;
  border-radius: 7px;
}

.paging a {
  color: var(--text);
  background: #edf1f5;
}

.paging strong {
  color: #fff;
  background: var(--navy);
}

.viewBox {
  width: 100%;
}

.subjectView {
  padding: 0 0 14px;
  color: var(--navy);
  border-bottom: 3px solid var(--navy);
}

.subjectView h1 {
  margin: 0;
  padding: 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 800;
  line-height: 1.4;
}

.infoView {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.contentBox {
  height: auto;
  padding: 18px 0 8px;
  color: var(--text);
  border: 0;
}

.contentBox .clear {
  padding: 0;
}

.contentBox article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 12px;
  font-size: 1rem;
  line-height: 1.85;
}

.contentBox article h2 {
  margin: 38px 0 12px;
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1.5;
}

.contentBox article h2:first-child {
  margin-top: 14px;
}

.contentBox article p {
  margin: 0 0 20px;
}

.contentBox article img {
  display: block;
  max-width: 100%;
  margin: 28px auto;
  border-radius: 10px;
}

.prevBtn,
.nextBtn {
  display: block;
  margin-bottom: 16px;
  padding: 9px 14px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  background: var(--navy);
  border-radius: 7px;
}

.prevBtn {
  float: left;
}

.nextBtn {
  float: right;
}

.prevBtn:hover,
.nextBtn:hover {
  background: var(--accent);
}

.commBox {
  width: 100%;
  margin-top: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 0 0 10px 10px;
}

.commList {
  padding: 12px;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.75;
  border-top: 1px dotted var(--line-strong);
}

.commList span {
  color: var(--muted);
  font-size: 0.86rem;
}

.noReply {
  padding: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.bottom {
  clear: both;
  width: 100%;
  padding: 18px 20px;
  color: #7b8590;
  font-size: 0.78rem;
  text-align: center;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.bottom a {
  color: inherit;
  text-decoration: none;
}

.clear {
  clear: both;
}

.turm {
  height: 20px;
}

.mobin {
  display: none;
  color: var(--muted);
  font-size: 0.8rem;
}

.co_set {
  background: #ecf0f1;
}

.board_set {
  padding: 20px 2%;
}

.intro {
  margin-bottom: 20px;
  padding: 50px 20px;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 1000px) {
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contents > .list {
    width: calc(50% - 9px);
    margin-right: 0;
  }

  .contents > .list:nth-of-type(even) {
    margin-right: 18px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .top {
    min-height: 64px;
    padding: 7px 16px;
  }

  .top .logo img {
    max-width: 150px;
    max-height: 50px;
  }

  .menu .nav {
    display: none;
  }

  .menu .slidepop {
    display: block;
  }

  .slidepop {
    display: block;
  }

  .contents {
    padding: 20px 16px;
  }

  .wintro {
    padding: 15px 16px;
  }

  .img {
    min-height: 96px;
  }

  .latest,
  .latest2 {
    width: 100%;
    margin: 0 0 16px;
    float: none;
  }

  .latest + .latest {
    margin-left: 0;
  }

  .mobnone {
    display: none;
  }

  .mobin {
    display: inline;
  }

  .listTitle {
    padding: 10px 7px;
  }

  .textList {
    height: auto;
    min-height: 62px;
    padding: 11px 8px;
  }

  .textList:first-child {
    width: 44px;
    min-width: 44px;
  }

  .textList a {
    font-size: 0.96rem;
  }

  .contentBox article {
    padding: 0 2px;
    line-height: 1.8;
  }

  .contentBox article h2 {
    margin-top: 32px;
    font-size: 1.18rem;
  }
}

@media (max-width: 700px) {
  .ranking-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contents > .list {
    width: 100%;
    margin: 0 0 16px;
    float: none;
  }

  .contents > .list:nth-of-type(even) {
    margin-right: 0;
  }
}

@media (max-width: 380px) {
  .top .logo img {
    max-width: 128px;
  }

  .menu a {
    padding: 9px 8px;
    font-size: 0.86rem;
  }

  .contents {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
