:root {
  --page-max: 1920px;
  --ink: #071014;
  --muted: #5d6b66;
  --line: #d8e2df;
  --paper: #f5f7f4;
  --white: #fff;
  --green: #16c47f;
  --blue: #2673d9;
  --coral: #ef6048;
  --shadow: 0 18px 50px rgba(7, 16, 20, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  background: var(--paper);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.club-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 244, 0.96);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand img { width: 96px; height: auto; }
.brand span { display: grid; gap: 4px; }
.brand strong { font-size: 25px; line-height: 1; white-space: nowrap; }
.brand small { color: var(--muted); font-size: 13px; font-weight: 900; }
.club-nav,
.club-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}
.club-nav a.is-active,
.club-actions a { color: var(--blue); }

main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 24px 40px 56px;
}
.club-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(22, 196, 127, 0.12), rgba(255, 255, 255, 0.92));
}
.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}
h1 {
  max-width: 980px;
  margin: 0 0 14px;
  font-size: 50px;
  line-height: 1.08;
}
h2 { margin: 0; font-size: 28px; }
p { color: var(--muted); line-height: 1.65; }
.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.hero-actions a,
.member-panel a,
.section-head button,
.helper-tools button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  font-weight: 900;
}
.hero-actions a + a { background: var(--coral); }
.member-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.member-panel strong { font-size: 24px; }
.member-panel p { margin: 0; }
.member-panel a { justify-self: start; margin-top: 8px; }

.club-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.club-band article,
.section-block,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.club-band article {
  display: grid;
  gap: 7px;
  padding: 18px;
}
.club-band span,
.post-list span,
.helper-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 1000;
}
.club-band strong { font-size: 30px; }
.club-band p { margin: 0; font-size: 14px; }

.section-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
}
.main-feed,
.side-stack {
  display: grid;
  gap: 20px;
  align-content: start;
}
.section-block,
.side-panel {
  padding: 24px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head.compact { margin-bottom: 14px; }
.post-list {
  display: grid;
  gap: 12px;
}
.post-list article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}
.post-list strong,
.trip-grid strong,
.club-list strong,
.helper-card strong {
  display: block;
  font-size: 19px;
  line-height: 1.35;
}
.post-list p { margin: 0; }
.post-list small { color: var(--muted); font-weight: 800; }
.trip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.trip-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}
.trip-grid b { color: var(--coral); }
.trip-grid p { margin: 0; }
.club-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}
.club-list li {
  display: grid;
  gap: 5px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.club-list li:first-child { border-top: 0; }
.club-list span { color: var(--muted); font-size: 14px; }
.helper-card {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}
.helper-card p,
.helper-tools p { margin: 0; }
.helper-tools {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.helper-tools button { justify-self: start; background: var(--blue); }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 900;
}
.is-auth-hidden { display: none !important; }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px 40px 42px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer strong {
  display: inline-block;
  margin-bottom: 8px;
}

.company-info {
  max-width: 980px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.site-footer nav,
.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-weight: 800;
}

.footer-policy-links {
  max-width: 640px;
  color: var(--ink);
  font-size: 14px;
}

.footer-policy-links button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.footer-policy-links span {
  color: var(--line);
  font-weight: 400;
}

.footer-tv-link {
  color: var(--coral);
}

.policy-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 16, 20, 0.58);
}

.policy-panel[hidden] {
  display: none;
}

.policy-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(680px, calc(100vh - 48px));
  overflow: auto;
  padding: 32px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.policy-card h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.policy-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.policy-body ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.policy-body li {
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 980px) {
  .club-header,
  .club-hero,
  .section-layout {
    grid-template-columns: 1fr;
  }
  .club-nav,
  .club-actions {
    flex-wrap: wrap;
  }
  .club-band,
  .trip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  h1 { font-size: 38px; }
}

@media (max-width: 640px) {
  .club-header,
  main {
    padding-left: 18px;
    padding-right: 18px;
  }
  .site-footer {
    flex-direction: column;
    padding-left: 18px;
    padding-right: 18px;
  }
  .footer-policy-links {
    justify-content: flex-start;
  }
  .club-hero {
    padding: 24px;
  }
  .club-band,
  .trip-grid {
    grid-template-columns: 1fr;
  }
}
