@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fbf7f2;
  --text: #2f241b;
  --muted: #78695b;
  --line: #e3d6c8;
  --primary: #8a552f;
  --primary-dark: #684023;
  --accent: #d64f8f;
  --soft: #f2e4d5;
  --header-bg: rgba(255, 255, 255, 0.94);
  --tag-bg: #fff0f6;
  --tag-text: #b83272;
  --active-border: #d8b996;
  --button-text: #ffffff;
  --shadow: 0 10px 30px rgba(74, 52, 35, 0.08);
}

body[data-theme="dark"] {
  --bg: #18130f;
  --surface: #241c17;
  --surface-soft: #2b211b;
  --text: #f5eadf;
  --muted: #c2ad99;
  --line: #49372b;
  --primary: #d6a16d;
  --primary-dark: #b87c46;
  --accent: #f4a3c8;
  --soft: #34251c;
  --header-bg: rgba(36, 28, 23, 0.94);
  --tag-bg: #3b2230;
  --tag-text: #ffc1dc;
  --active-border: #8f6642;
  --button-text: #21170f;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', Arial, "Noto Sans KR", sans-serif;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-alert {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff7e7;
  border-bottom: 1px solid #ead9bd;
  color: #2f241b;
  font-size: 14px;
}

.top-alert button {
  position: absolute;
  right: 22px;
  width: 28px;
  height: 28px;
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
}

.portal-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 26px;
}

.top-nav {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-button,
.theme-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  font-size: 24px;
}

.icon-button:hover,
.theme-button:hover {
  background: var(--soft);
}

.pay-badge {
  width: 34px;
  height: 34px;
  margin-left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: 22px;
}

.search-area {
  max-width: 760px;
  margin: 6px auto 0;
}

.search-box {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px 0 24px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.search-logo {
  color: var(--accent);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 21px;
}

.search-box input::placeholder {
  color: #d1c8bd;
}

.search-box button {
  width: 38px;
  height: 38px;
  background: transparent;
  color: var(--accent);
  font-size: 32px;
  line-height: 1;
}

.search-result {
  min-height: 22px;
  margin: 10px 12px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.searchable[hidden] {
  display: none;
}

.shortcut-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.shortcut-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.shortcut-row span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 20px;
  font-weight: 900;
}

.portal-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
}

.main-column,
.side-column {
  min-width: 0;
}

.promo-panel,
.board-panel,
.sample-panel,
.login-panel,
.notice-panel,
.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.promo-panel {
  min-height: 132px;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 0 20px 0 0;
  overflow: hidden;
}

.promo-image {
  height: 132px;
  display: flex;
  align-items: flex-start;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(47, 36, 27, 0.38), rgba(138, 85, 47, 0.22)),
    url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=600&q=80") center/cover;
  color: #fff;
  font-weight: 800;
}

.promo-copy .eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-weight: 800;
}

.promo-copy h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.promo-copy p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.primary-button,
.login-button {
  min-height: 44px;
  padding: 0 22px;
  background: var(--primary);
  color: var(--button-text);
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.primary-button:hover,
.login-button:hover {
  background: var(--primary-dark);
}

.board-panel,
.sample-panel {
  margin-top: 14px;
  overflow: hidden;
}

.tab-bar {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.tab-bar h2 {
  margin: 0;
  font-size: 19px;
  white-space: nowrap;
}

.tab-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

.tab-bar a.active,
.tab-bar a:hover {
  color: var(--primary);
}

.news-strip {
  margin: 16px 20px 0;
  min-height: 50px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: var(--surface-soft);
  border-radius: 6px;
}

.news-strip span {
  color: var(--primary);
  font-weight: 800;
}

.news-strip p {
  margin: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-strip a {
  color: var(--muted);
  font-weight: 800;
}

.post-grid {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
}

.post-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 14px;
}

.thumb {
  min-height: 104px;
  border-radius: 6px;
  background: var(--soft);
}

.card-thumb-1 {
  background: linear-gradient(135deg, #e6c09d, #8a552f);
}

.card-thumb-2 {
  background: linear-gradient(135deg, #d7eadf, #2f8566);
}

.card-thumb-3 {
  background: linear-gradient(135deg, #efe2d4, #c28b59);
}

.card-thumb-4 {
  background: linear-gradient(135deg, #cbb59f, #5a3d29);
}

.post-source {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.post-item h3 {
  margin: 5px 0 8px;
  font-size: 16px;
  line-height: 1.38;
}

.post-item h3 a:hover {
  color: var(--primary);
}

.post-item time {
  color: var(--muted);
  font-size: 13px;
}

.panel-footer {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.panel-footer button {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 24px;
}

.panel-footer a {
  color: var(--primary);
  font-weight: 800;
}

.sample-grid {
  padding: 18px 20px 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sample-grid article {
  min-height: 120px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sample-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
}

.sample-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.side-column {
  display: grid;
  gap: 14px;
}

.login-panel,
.notice-panel,
.info-panel {
  padding: 20px;
}

.login-panel {
  text-align: center;
}

.login-panel p {
  margin: 0 0 14px;
  color: var(--text);
}

.login-panel .login-button {
  width: 100%;
  font-size: 18px;
}

.login-panel div {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.notice-panel h2,
.info-panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

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

.notice-panel li + li {
  margin-top: 10px;
}

.notice-panel a {
  color: var(--muted);
  font-weight: 600;
}

.notice-panel a:hover {
  color: var(--primary);
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-list span {
  padding: 12px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
}

.notice-page-header,
.notice-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.notice-page-header {
  padding-top: 34px;
  padding-bottom: 24px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--primary);
  font-weight: 800;
}

.notice-page-header .eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
}

.notice-page-header h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.25;
}

.notice-page-header p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.notice-board {
  margin-bottom: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notice-board-head {
  min-height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.notice-board-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notice-board-head h2 {
  margin: 0;
  font-size: 20px;
}

.notice-board-head span {
  color: var(--muted);
  font-weight: 700;
}

.write-button {
  min-height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--button-text);
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.write-button:hover {
  background: var(--primary-dark);
}

.notice-post {
  padding: 22px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
}

.notice-post + .notice-post {
  border-top: 1px solid var(--line);
}

.notice-label {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.notice-post h3 {
  margin: 0;
  font-size: 19px;
}

.notice-post p {
  margin: 8px 0 10px;
  color: var(--muted);
}

.notice-post time {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .side-column {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .top-alert {
    padding: 0 52px 0 16px;
    justify-content: flex-start;
  }

  .portal-header {
    padding: 14px 16px 20px;
  }

  .search-area {
    max-width: none;
  }

  .shortcut-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .portal-layout {
    padding: 0 16px 40px;
  }

  .promo-panel {
    grid-template-columns: 140px minmax(0, 1fr);
    padding: 0;
  }

  .promo-image {
    height: 150px;
  }

  .promo-copy {
    padding-right: 16px;
  }

  .promo-panel .primary-button {
    grid-column: 1 / -1;
    margin: 0 16px 16px;
  }

  .post-grid,
  .sample-grid,
  .side-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .search-box {
    height: 54px;
    padding: 0 14px;
  }

  .search-logo {
    font-size: 28px;
  }

  .search-box input {
    font-size: 17px;
  }

  .shortcut-row {
    gap: 8px;
  }

  .shortcut-row span {
    width: 40px;
    height: 40px;
  }

  .tab-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-strip {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .news-strip p {
    white-space: normal;
  }

  .post-item {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .thumb {
    min-height: 92px;
  }

  .login-panel div {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .notice-page-header,
  .notice-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .notice-page-header h1 {
    font-size: 28px;
  }

  .notice-post {
    grid-template-columns: 1fr;
  }

  .notice-label {
    width: 86px;
  }

  .notice-board-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .notice-board-actions {
    width: 100%;
    justify-content: space-between;
  }
}
