@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap");

:root {
  --byb-navy: #071a4a;
  --byb-green: #071a4a;
  --byb-green-dark: #06143a;
  --byb-blue: #2b5bd7;
  --byb-ink: #172033;
  --byb-muted: #697586;
  --byb-line: #dfe7eb;
  --byb-soft: #f4f7f8;
  --byb-card: #fff;
  --byb-shadow: 0 18px 50px rgba(15, 35, 56, .08);
  --byb-font: "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}

html {
  scrollbar-gutter: stable;
}

.entry-content:has(> .byb-wrap) {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.byb-wrap,
.byb-wrap * {
  box-sizing: border-box;
}

.byb-wrap {
  width: min(1240px, calc(100% - 40px));
  max-width: 1240px;
  margin: 24px auto 86px !important;
  padding: 0 !important;
  color: var(--byb-ink);
  font-family: var(--byb-font);
  font-size: 15px;
  line-height: 1.6;
}

.byb-board-head,
.byb-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 24px 26px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(115deg, #f8faff 0%, var(--byb-card) 58%, #f2f6fb 100%);
  box-shadow: 0 12px 34px rgba(28, 41, 36, .07);
}

.byb-board-head::before,
.byb-hero::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--byb-green);
  content: "";
}

.byb-board-head h1,
.byb-hero h1 {
  margin: 0 !important;
  color: #111827;
  font-size: 28px !important;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
}

.byb-board-head p:last-child,
.byb-hero p:last-child {
  max-width: 680px;
  margin: 4px 0 0 !important;
  color: var(--byb-muted);
  font-size: 14px;
  line-height: 1.5;
}

.byb-home-link,
.byb-title-badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 26px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--byb-line);
  border-radius: 999px;
  background: var(--byb-soft);
  color: var(--byb-muted) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.byb-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.byb-hub-card {
  display: flex;
  min-height: 142px;
  align-items: center;
  gap: 19px;
  padding: 28px;
  border: 1px solid var(--byb-line);
  border-radius: 20px;
  background: var(--byb-card);
  color: var(--byb-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 10px 32px rgba(24, 46, 64, .055);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.byb-hub-card:hover {
  transform: translateY(-4px);
  border-color: #9aa9cf;
  box-shadow: 0 19px 44px rgba(7, 26, 74, .13);
}

.byb-hub-icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border-radius: 15px;
  background: #eef2fb;
  color: var(--byb-green);
  font-size: 22px;
  font-weight: 900;
}

.byb-hub-card strong {
  display: block;
  margin: 0 0 7px;
  color: var(--byb-navy);
  font-size: 20px;
  font-weight: 850;
}

.byb-hub-card small {
  display: block;
  color: var(--byb-muted);
  font-size: 14px;
  line-height: 1.65;
}

.byb-hub .byb-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.byb-latest-board {
  overflow: hidden;
  min-width: 0;
  min-height: 286px;
  border: 1px solid var(--byb-line);
  border-radius: 20px;
  background: var(--byb-card);
  box-shadow: 0 10px 32px rgba(24, 46, 64, .055);
}

.byb-latest-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #eef3f5;
  background: linear-gradient(135deg, #f8faff, #f6f9fc);
}

.byb-latest-head h2 {
  margin: 0 !important;
  color: var(--byb-navy);
  font-size: 18px !important;
  font-weight: 850;
  letter-spacing: 0;
}

.byb-latest-head p {
  margin: 5px 0 0 !important;
  color: var(--byb-muted);
  font-size: 13px;
  line-height: 1.5;
}

.byb-latest-head a {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2fb;
  color: var(--byb-green) !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
}

.byb-latest-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.byb-latest-list li {
  margin: 0 !important;
  border-top: 1px solid #f0f3f5;
}

.byb-latest-list li:first-child {
  border-top: 0;
}

.byb-latest-list a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: flex-start;
  padding: 15px 24px;
  color: var(--byb-ink) !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .18s ease, color .18s ease;
}

@media (min-width: 781px) {
  .byb-hub .byb-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.byb-latest-list a:hover {
  background: #f8faff;
  color: var(--byb-green) !important;
}

.byb-latest-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.byb-latest-empty {
  margin: 0 !important;
  padding: 22px 24px;
  color: var(--byb-muted);
  font-size: 14px;
}

.byb-toolbar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin: 0 0 12px;
}

.byb-toolbar > span {
  color: var(--byb-muted);
  font-size: 14px;
}

.byb-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.byb-list-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.byb-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  grid-column: 2;
  justify-self: center;
}

.byb-search label {
  margin: 0;
}

.byb-search-field {
  display: block;
}

.byb-search select,
.byb-search input[type="search"] {
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--byb-line);
  border-radius: 11px;
  background: #fff;
  color: var(--byb-ink);
  font: 600 14px/1.2 var(--byb-font);
  outline: none;
}

.byb-search select {
  width: 112px;
  padding: 0 34px 0 13px;
}

.byb-search input[type="search"] {
  width: clamp(180px, 24vw, 300px);
  padding: 0 13px;
}

.byb-search select:focus,
.byb-search input[type="search"]:focus {
  border-color: #9aa9cf;
  box-shadow: 0 0 0 3px rgba(43, 91, 215, .12);
}

.byb-write-actions {
  display: flex;
  grid-column: 3;
  justify-content: flex-end;
}

.byb-toolbar strong {
  color: var(--byb-green);
  font-weight: 900;
}

.byb-button {
  display: inline-flex;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border: 1px solid var(--byb-green);
  border-radius: 11px;
  background: var(--byb-green);
  color: #fff !important;
  font: 800 14px/1.2 var(--byb-font);
  text-decoration: none !important;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.byb-button:hover {
  transform: translateY(-1px);
  border-color: var(--byb-green-dark);
  background: var(--byb-green-dark);
}

.byb-button.secondary {
  border-color: #d3dde1;
  background: #fff;
  color: #344054 !important;
}

.byb-button.ghost {
  border-color: transparent;
  background: #eef2fb;
  color: var(--byb-green) !important;
}

.byb-button.compact {
  height: 34px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.byb-button.danger {
  border-color: #d92d20;
  background: #d92d20;
  color: #fff !important;
}

.byb-button.danger:hover {
  border-color: #b42318;
  background: #b42318;
}

.byb-list {
  overflow: hidden;
  border: 1px solid var(--byb-line);
  border-radius: 17px;
  background: var(--byb-card);
  box-shadow: 0 10px 34px rgba(24, 46, 64, .055);
}

.byb-list-row {
  display: grid;
  min-height: 64px;
  grid-template-columns: 74px minmax(0, 1fr) 128px 120px;
  align-items: center;
  border-top: 1px solid #e9eef1;
  font-size: 14px;
  text-align: center;
}

.byb-list-row:first-child {
  border-top: 0;
}

.byb-list-head {
  min-height: 50px;
  background: #f5f8f9;
  color: #596678;
  font-size: 13px;
  font-weight: 850;
}

.byb-notice-row {
  background: #f7fbf8;
}

.byb-title {
  min-width: 0;
  padding: 0 16px;
  text-align: left;
}

.byb-title a {
  display: inline-flex;
  max-width: 100%;
  align-items: baseline;
  gap: 5px;
  color: var(--byb-ink) !important;
  font-weight: 750;
  text-decoration: none !important;
}

.byb-title a > :not(.byb-comment-count) {
  flex: 0 0 auto;
}

.byb-title a:hover {
  color: var(--byb-green) !important;
}

.byb-private-title {
  display: inline-flex;
  max-width: 100%;
  align-items: baseline;
  gap: 5px;
  color: #7d8795;
}

.byb-comment-count {
  flex: 0 0 auto;
  color: var(--byb-green);
  font-size: 13px;
  font-weight: 850;
}

.byb-lock {
  margin-right: 4px;
  font-size: 13px;
}

.byb-empty {
  padding: 64px 20px;
  color: var(--byb-muted);
  font-size: 15px;
  text-align: center;
}

.byb-empty.compact {
  padding: 25px;
  border: 1px dashed var(--byb-line);
  border-radius: 12px;
  background: #fafcfc;
}

.byb-pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 25px 0 0;
}

.byb-pagination a {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--byb-line);
  border-radius: 9px;
  background: #fff;
  color: var(--byb-ink) !important;
  font-size: 13px;
  text-decoration: none !important;
}

.byb-pagination-gap {
  display: grid;
  min-width: 22px;
  height: 38px;
  place-items: center;
  color: var(--byb-muted);
  font-size: 13px;
  font-weight: 800;
}

.byb-pagination a.active {
  border-color: var(--byb-green);
  background: var(--byb-green);
  color: #fff !important;
}

.byb-form,
.byb-article,
.byb-comments,
.byb-notice {
  border: 1px solid var(--byb-line);
  border-radius: 18px;
  background: var(--byb-card);
  box-shadow: 0 10px 34px rgba(24, 46, 64, .055);
}

.byb-form,
.byb-comments,
.byb-notice {
  padding: 30px;
}

.byb-title-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 22px;
}

.byb-title-row label {
  margin: 0;
}

.byb-title-field {
  flex: 1 1 auto;
}

.byb-form label {
  display: block;
  margin: 0 0 22px;
}

.byb-form .byb-title-row label {
  margin: 0;
}

.byb-form .byb-editor-label {
  margin-bottom: 8px;
}

.byb-form label > span,
.byb-comment-form label {
  display: block;
  margin: 0 0 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 850;
}

.byb-form input[type="text"],
.byb-form textarea,
.byb-comment-form textarea,
.byb-comment-edit textarea {
  width: 100%;
  border: 1px solid #cfd9de;
  border-radius: 11px;
  background: #fff;
  color: var(--byb-ink);
  font: 15px/1.7 var(--byb-font);
}

.byb-form input[type="text"] {
  height: 49px;
  padding: 0 14px;
}

.byb-form textarea,
.byb-comment-form textarea,
.byb-comment-edit textarea {
  padding: 14px;
  resize: vertical;
}

.byb-editor {
  margin: 0 0 22px;
}

.byb-editor .wp-editor-wrap {
  overflow: hidden;
  border: 1px solid #cfd9de;
  border-radius: 11px;
  background: #fff;
}

.byb-editor .wp-editor-tools {
  padding: 8px 10px 0;
  background: #f8fbfa;
}

.byb-editor .wp-editor-container {
  border: 0;
}

.byb-editor textarea.wp-editor-area {
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
}

.byb-form input:focus,
.byb-form textarea:focus,
.byb-comment-form textarea:focus,
.byb-comment-edit textarea:focus {
  outline: 0;
  border-color: var(--byb-green);
  box-shadow: 0 0 0 3px rgba(8, 116, 94, .12);
}

.byb-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border-radius: 11px;
  background: #f0f4ff;
}

.byb-check input {
  margin-top: 4px;
}

.byb-check span {
  margin: 0 !important;
}

.byb-notice-check {
  flex: 0 0 auto;
  min-height: 49px;
  align-items: center;
  padding: 0 14px;
  background: #fff7ed;
}

.byb-notice-check input {
  margin-top: 0;
}

.byb-notice-check span {
  white-space: nowrap;
}

.byb-check small {
  display: block;
  margin-top: 3px;
  color: var(--byb-muted);
  font-weight: 400;
}

.byb-form-actions,
.byb-bottom-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.byb-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--byb-muted);
}

.byb-article {
  overflow: hidden;
}

.byb-article > header {
  padding: 28px 31px 23px;
  border-bottom: 1px solid var(--byb-line);
  background: #fafcfc;
}

.byb-article-title {
  display: flex;
  align-items: center;
}

.byb-article-title h2 {
  margin: 0 !important;
  color: var(--byb-navy);
  font-size: clamp(23px, 3vw, 31px) !important;
  font-weight: 850;
  letter-spacing: 0;
}

.byb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 13px;
  color: var(--byb-muted);
  font-size: 13px;
}

.byb-entry-actions,
.byb-comment-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.byb-entry-actions form,
.byb-comment-actions form {
  margin: 0;
}

.byb-content {
  min-height: 230px;
  padding: 36px 31px;
  font-size: 16px;
  line-height: 1.85;
  word-break: break-word;
}

.byb-content p {
  margin: 0 0 1em;
}

.byb-content table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

.byb-content th,
.byb-content td {
  padding: 12px 13px;
  border: 1px solid rgba(31, 41, 55, 0.14);
  text-align: left;
  vertical-align: top;
}

.byb-content th {
  background: rgba(37, 99, 235, 0.07);
  color: var(--byb-navy);
  font-weight: 800;
}

.byb-content tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.025);
}

.byb-comments {
  margin-top: 22px;
}

.byb-comments > h3 {
  margin: 0 0 19px !important;
  color: var(--byb-navy);
  font-size: 21px !important;
  font-weight: 850;
}

.byb-comments > h3 span {
  color: var(--byb-green);
}

.byb-comment-list {
  display: grid;
  gap: 11px;
}

.byb-comment {
  padding: 18px 20px;
  border: 1px solid var(--byb-line);
  border-radius: 12px;
  background: #fafcfc;
}

.byb-comment header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.byb-comment header span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #dff0eb;
  color: var(--byb-green);
  font-size: 11px;
  font-weight: 900;
}

.byb-comment time {
  margin-left: auto;
  color: var(--byb-muted);
  font-size: 12px;
}

.byb-comment p {
  margin: 0;
  line-height: 1.7;
}

.byb-comment-edit {
  display: block;
}

.byb-comment-edit summary {
  list-style: none;
}

.byb-comment-edit summary::-webkit-details-marker {
  display: none;
}

.byb-comment-edit form {
  display: grid;
  gap: 9px;
  width: min(560px, 100%);
  margin-top: 10px;
}

.byb-admin-answer {
  border-color: #9bc9be;
  background: #f0f8f5;
}

.byb-comment-form {
  margin-top: 21px;
  padding-top: 21px;
  border-top: 1px solid var(--byb-line);
}

.byb-comment-form .byb-button {
  margin-top: 10px;
}

.byb-comment-guide {
  margin-top: 18px;
  padding: 15px;
  border-radius: 11px;
  background: #f4f7f8;
  color: var(--byb-muted);
  font-size: 14px;
}

.byb-bottom-actions {
  margin-top: 19px;
}

.byb-confirm-layer[hidden] {
  display: none;
}

.byb-confirm-layer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.byb-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 74, .45);
}

.byb-confirm-box {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 22px;
  border: 1px solid var(--byb-line);
  border-radius: 14px;
  background: var(--byb-card);
  box-shadow: 0 24px 70px rgba(15, 35, 56, .22);
}

.byb-confirm-box h3 {
  margin: 0 0 8px !important;
  color: var(--byb-navy);
  font-size: 19px !important;
  font-weight: 850;
}

.byb-confirm-box p {
  margin: 0;
  color: var(--byb-muted);
  font-size: 14px;
  line-height: 1.6;
}

.byb-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

/* Header navigation: one clean row on desktop. */
header.wp-block-template-part {
  z-index: 1000 !important;
}

header.wp-block-template-part > .wp-block-group > .wp-block-group.alignwide {
  width: min(1240px, calc(100% - 40px)) !important;
  max-width: 1240px !important;
  min-height: 64px !important;
  gap: 20px !important;
}

header.wp-block-template-part > .wp-block-group > .wp-block-group.alignwide > nav:not(.cspv2-site-main-nav):not(.wp-block-navigation) {
  display: none !important;
}

header.wp-block-template-part .cspv2-site-menu-panel {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  justify-content: flex-end !important;
  gap: 0 !important;
}

header.wp-block-template-part .cspv2-site-main-nav {
  display: flex !important;
  min-width: 0 !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

header.wp-block-template-part .cspv2-site-main-nav > a,
header.wp-block-template-part .cspv2-site-main-nav > button,
header.wp-block-template-part .cspv2-stock-menu-title,
header.wp-block-template-part .byb-site-menu-title {
  appearance: none !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #344054 !important;
  box-shadow: none !important;
  font: 750 14px/1.2 var(--byb-font) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

header.wp-block-template-part .cspv2-site-main-nav > a:focus,
header.wp-block-template-part .cspv2-site-main-nav > a:focus-visible,
header.wp-block-template-part .cspv2-site-main-nav > a:active,
header.wp-block-template-part .cspv2-site-main-nav > button:focus,
header.wp-block-template-part .cspv2-site-main-nav > button:focus-visible,
header.wp-block-template-part .cspv2-site-main-nav > button:active,
header.wp-block-template-part .cspv2-stock-menu-title:focus,
header.wp-block-template-part .cspv2-stock-menu-title:focus-visible,
header.wp-block-template-part .cspv2-stock-menu-title:active,
header.wp-block-template-part .byb-site-menu-title:focus,
header.wp-block-template-part .byb-site-menu-title:focus-visible,
header.wp-block-template-part .byb-site-menu-title:active,
header.wp-block-template-part .cspv2-stock-submenu a:focus,
header.wp-block-template-part .cspv2-stock-submenu a:focus-visible,
header.wp-block-template-part .cspv2-stock-submenu a:active,
header.wp-block-template-part .byb-site-submenu a:focus,
header.wp-block-template-part .byb-site-submenu a:focus-visible,
header.wp-block-template-part .byb-site-submenu a:active {
  border-color: transparent !important;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

header.wp-block-template-part .cspv2-site-main-nav > a::before,
header.wp-block-template-part .cspv2-site-main-nav > a::after {
  display: none !important;
}

header.wp-block-template-part .cspv2-site-main-nav > a:hover,
header.wp-block-template-part .cspv2-site-main-nav > button:hover,
header.wp-block-template-part .cspv2-stock-menu-title:hover,
header.wp-block-template-part .cspv2-stock-menu.is-open > .cspv2-stock-menu-title,
header.wp-block-template-part .cspv2-stock-menu.is-current > .cspv2-stock-menu-title,
header.wp-block-template-part .byb-site-menu-title:hover,
header.wp-block-template-part .byb-site-menu.is-open > .byb-site-menu-title {
  transform: none !important;
  background: #eef2fb !important;
  color: var(--byb-green) !important;
}

header.wp-block-template-part .cspv2-site-main-nav > a.active {
  background: #e8f3f0 !important;
  color: var(--byb-green) !important;
}

.byb-site-menu {
  position: relative;
  display: flex;
  flex: 0 0 auto;
}

@media (min-width: 901px) {
  header.wp-block-template-part .cspv2-site-main-nav > a,
  header.wp-block-template-part .cspv2-site-main-nav > button,
  header.wp-block-template-part .cspv2-stock-menu,
  header.wp-block-template-part .cspv2-stock-menu-title,
  header.wp-block-template-part .byb-site-menu,
  header.wp-block-template-part .byb-site-menu-title {
    height: 50px !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
  }

  header.wp-block-template-part .byb-site-menu {
    align-items: center;
  }
}

.byb-site-menu-title::after {
  display: inline-block !important;
  margin-left: 6px;
  content: "⌄" !important;
  font-size: 12px;
  line-height: 1;
  transition: transform .18s ease;
}

.byb-site-menu.is-open > .byb-site-menu-title::after {
  transform: rotate(180deg);
}

.byb-site-submenu {
  position: absolute;
  z-index: 10000;
  top: calc(100% + 9px);
  left: 50%;
  display: none;
  min-width: 172px;
  padding: 8px;
  transform: translateX(-50%);
  border: 1px solid var(--byb-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 35, 56, .16);
}

.byb-site-menu.is-open > .byb-site-submenu {
  display: grid;
}

.byb-site-submenu a {
  position: relative;
  display: flex !important;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 9px 11px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #344054 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.byb-site-submenu a::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0;
}

.byb-site-submenu a:hover,
.byb-site-submenu a.active {
  background: #eef2fb !important;
  color: var(--byb-green) !important;
}

.byb-site-submenu a:hover::before,
.byb-site-submenu a.active::before {
  opacity: 1;
}

header.wp-block-template-part [data-cspv2-site-theme],
header.wp-block-template-part [data-byb-site-theme],
header.wp-block-template-part .byb-theme-button {
  display: none !important;
}

body.cspv2-site-dark {
  --byb-ink: #edf3ee;
  --byb-muted: #aeb9b2;
  --byb-line: #354139;
  --byb-soft: #202922;
  --byb-card: #18211d;
  background: #111613;
}

body.cspv2-site-dark .byb-board-head,
body.cspv2-site-dark .byb-hero {
  background: linear-gradient(115deg, #1b2520 0%, #18211d 58%, #1c252d 100%);
}

body.cspv2-site-dark .byb-board-head h1,
body.cspv2-site-dark .byb-hero h1,
body.cspv2-site-dark .byb-hub-card strong,
body.cspv2-site-dark .byb-article-title h2,
body.cspv2-site-dark .byb-comments > h3,
body.cspv2-site-dark .byb-form label > span,
body.cspv2-site-dark .byb-comment-form label {
  color: #edf3ee;
}

body.cspv2-site-dark .byb-list-head,
body.cspv2-site-dark .byb-empty.compact,
body.cspv2-site-dark .byb-article > header,
body.cspv2-site-dark .byb-comment,
body.cspv2-site-dark .byb-comment-guide {
  background: #202922;
}

body.cspv2-site-dark .byb-form input,
body.cspv2-site-dark .byb-form textarea,
body.cspv2-site-dark .byb-comment-form textarea,
body.cspv2-site-dark .byb-button.secondary {
  border-color: #435047;
  background: #202922;
  color: #edf3ee !important;
}

body.cspv2-site-dark .byb-site-submenu {
  border-color: #354139;
  background: #202922;
}

body.cspv2-site-dark .byb-site-submenu a {
  color: #dce5df !important;
}

body.cspv2-site-dark .byb-site-submenu a:hover,
body.cspv2-site-dark .byb-site-submenu a.active {
  background: #27332b !important;
  color: #edf3ee !important;
}

@media (max-width: 1180px) and (min-width: 901px) {
  header.wp-block-template-part > .wp-block-group > .wp-block-group.alignwide {
    width: calc(100% - 20px) !important;
    gap: 9px !important;
  }

  header.wp-block-template-part .wp-block-site-title > a.cspv2-site-wordmark {
    width: 135px !important;
  }

  header.wp-block-template-part .cspv2-site-main-nav > a,
  header.wp-block-template-part .cspv2-site-main-nav > button,
  header.wp-block-template-part .cspv2-stock-menu-title,
  header.wp-block-template-part .byb-site-menu-title {
    padding-right: 8px !important;
    padding-left: 8px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 900px) {
  header.wp-block-template-part > .wp-block-group > .wp-block-group.alignwide {
    min-height: 60px !important;
  }

  header.wp-block-template-part .cspv2-site-menu-panel {
    position: absolute !important;
    top: calc(100% + 1px) !important;
    right: auto !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 13px 0 !important;
    transform: none !important;
    border-top: 1px solid var(--byb-line);
    border-bottom: 1px solid var(--byb-line);
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 18px 38px rgba(15, 35, 56, .14);
  }

  header.wp-block-template-part .cspv2-site-main-nav {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  header.wp-block-template-part .cspv2-site-main-nav > a,
  header.wp-block-template-part .cspv2-site-main-nav > button,
  header.wp-block-template-part .cspv2-stock-menu-title,
  header.wp-block-template-part .byb-site-menu-title {
    width: 100% !important;
    min-height: 48px !important;
    padding: 10px 8px !important;
    border: 1px solid #e0e8eb !important;
    border-radius: 11px !important;
    background: #f5f8f9 !important;
    font-size: 14px !important;
  }

  .byb-site-menu {
    display: block;
    width: 100%;
  }

  .byb-site-menu.is-open {
    grid-column: 1 / -1;
  }

  .byb-site-submenu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 7px;
    padding: 7px;
    transform: none;
    box-shadow: none;
  }

  .byb-site-menu.is-open > .byb-site-submenu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .byb-site-submenu a {
    justify-content: center;
  }

  body.cspv2-site-dark header.wp-block-template-part .cspv2-site-menu-panel {
    background: rgba(24, 33, 29, .98) !important;
  }

  .byb-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .byb-list-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .byb-toolbar-actions,
  .byb-search {
    width: 100%;
  }

  .byb-search {
    grid-column: 1;
    max-width: 560px;
  }

  .byb-write-actions {
    grid-column: 1;
  }

  .byb-search label {
    flex: 1 1 auto;
  }

  .byb-search input[type="search"] {
    width: 100%;
  }

  .byb-list-head {
    display: none;
  }

  .byb-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 16px;
    text-align: left;
  }

  .byb-list-row .byb-number {
    display: none;
  }

  .byb-list-row .byb-title {
    grid-column: 1 / -1;
    padding: 0;
    font-size: 15px;
  }

  .byb-list-row > span:nth-child(3)::before {
    content: "작성자 ";
    color: var(--byb-muted);
  }

  .byb-list-row > span:nth-child(4) {
    color: var(--byb-muted);
    font-size: 12px;
    text-align: right;
  }

}

@media (max-width: 680px) {
  .byb-wrap {
    width: calc(100% - 24px);
    margin-top: 25px !important;
    margin-bottom: 58px !important;
  }

  .byb-board-head,
  .byb-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 22px;
    border-radius: 18px;
  }

  .byb-board-head h1,
  .byb-hero h1 {
    font-size: 25px !important;
  }

  .byb-hub-grid {
    grid-template-columns: 1fr;
  }

  .byb-latest-grid {
    grid-template-columns: 1fr;
  }

  .byb-hub-card {
    min-height: 112px;
    padding: 21px;
  }

  .byb-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .byb-notice-check {
    justify-content: flex-start;
  }

  .byb-latest-head,
  .byb-latest-list a {
    padding-right: 20px;
    padding-left: 20px;
  }

  .byb-latest-head {
    flex-direction: column;
  }

  .byb-toolbar-actions,
  .byb-search {
    align-items: stretch;
    flex-direction: column;
  }

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

  .byb-search select,
  .byb-search input[type="search"] {
    width: 100%;
  }

  .byb-toolbar-actions .byb-button,
  .byb-search .byb-button {
    width: 100%;
  }

  .byb-write-actions {
    justify-content: flex-end;
  }

  .byb-write-actions .byb-button {
    max-width: 100%;
    width: auto;
  }

  .byb-form,
  .byb-comments,
  .byb-notice {
    padding: 20px;
  }

  .byb-article > header,
  .byb-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .byb-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .byb-notice {
    display: block;
  }

  .byb-notice .byb-button {
    margin-top: 14px;
  }
}

@media (max-width: 900px) {
  header.wp-block-template-part .cspv2-site-menu-panel {
    box-sizing: border-box !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 12px 14px 14px !important;
    overflow: visible !important;
  }

  header.wp-block-template-part .cspv2-site-main-nav {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 8px !important;
  }

  header.wp-block-template-part .cspv2-site-controls {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
    border: 0 !important;
  }

  header.wp-block-template-part .cspv2-site-main-nav > a,
  header.wp-block-template-part .cspv2-site-controls a,
  header.wp-block-template-part .cspv2-stock-menu,
  header.wp-block-template-part .byb-site-menu {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  header.wp-block-template-part .cspv2-stock-menu,
  header.wp-block-template-part .byb-site-menu {
    display: block !important;
  }

  header.wp-block-template-part .cspv2-stock-menu.is-open,
  header.wp-block-template-part .byb-site-menu.is-open {
    grid-column: 1 / -1 !important;
  }

  header.wp-block-template-part .cspv2-site-main-nav > a,
  header.wp-block-template-part .cspv2-site-controls a,
  header.wp-block-template-part .cspv2-stock-menu-title,
  header.wp-block-template-part .byb-site-menu-title {
    box-sizing: border-box !important;
    display: inline-flex !important;
    width: 100% !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    border: 1px solid #e0e8eb !important;
    border-radius: 11px !important;
    background: #f5f8f9 !important;
    color: #344054 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  header.wp-block-template-part .cspv2-stock-menu.is-open > .cspv2-stock-menu-title,
  header.wp-block-template-part .byb-site-menu.is-open > .byb-site-menu-title,
  header.wp-block-template-part .cspv2-site-main-nav > a.active,
  header.wp-block-template-part .cspv2-site-controls a.active {
    background: #eef2fb !important;
    color: var(--byb-green) !important;
  }

  header.wp-block-template-part .cspv2-stock-submenu,
  header.wp-block-template-part .byb-site-submenu {
    box-sizing: border-box !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 8px 0 0 !important;
    padding: 7px !important;
    transform: none !important;
    border: 1px solid var(--byb-line) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  header.wp-block-template-part .cspv2-stock-menu.is-open > .cspv2-stock-submenu,
  header.wp-block-template-part .byb-site-menu.is-open > .byb-site-submenu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  header.wp-block-template-part .cspv2-site-main-nav .cspv2-stock-submenu a,
  header.wp-block-template-part .byb-site-submenu a {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    border: 1px solid #e0e8eb !important;
    border-radius: 10px !important;
    background: #f7fafb !important;
    text-align: center !important;
    white-space: normal !important;
  }

  header.wp-block-template-part .cspv2-site-main-nav .cspv2-stock-submenu a:hover,
  header.wp-block-template-part .cspv2-site-main-nav .cspv2-stock-submenu a.active,
  header.wp-block-template-part .byb-site-submenu a:hover,
  header.wp-block-template-part .byb-site-submenu a.active {
    background: #eef2fb !important;
    color: var(--byb-green) !important;
  }

  header.wp-block-template-part .cspv2-site-main-nav .cspv2-stock-submenu a:hover::before,
  header.wp-block-template-part .cspv2-site-main-nav .cspv2-stock-submenu a.active::before,
  header.wp-block-template-part .byb-site-submenu a:hover::before,
  header.wp-block-template-part .byb-site-submenu a.active::before {
    opacity: 1 !important;
  }

  body.cspv2-site-dark header.wp-block-template-part .cspv2-site-menu-panel,
  body.cspv2-site-dark header.wp-block-template-part .cspv2-stock-submenu,
  body.cspv2-site-dark header.wp-block-template-part .byb-site-submenu {
    border-color: #344137 !important;
    background: #19201c !important;
  }

  body.cspv2-site-dark header.wp-block-template-part .cspv2-site-main-nav > a,
  body.cspv2-site-dark header.wp-block-template-part .cspv2-site-controls a,
  body.cspv2-site-dark header.wp-block-template-part .cspv2-stock-menu-title,
  body.cspv2-site-dark header.wp-block-template-part .byb-site-menu-title,
  body.cspv2-site-dark header.wp-block-template-part .cspv2-site-main-nav .cspv2-stock-submenu a,
  body.cspv2-site-dark header.wp-block-template-part .byb-site-submenu a {
    border-color: #344137 !important;
    background: #202922 !important;
  }

  body.cspv2-site-dark header.wp-block-template-part .cspv2-stock-menu.is-open > .cspv2-stock-menu-title,
  body.cspv2-site-dark header.wp-block-template-part .byb-site-menu.is-open > .byb-site-menu-title,
  body.cspv2-site-dark header.wp-block-template-part .cspv2-site-main-nav > a.active,
  body.cspv2-site-dark header.wp-block-template-part .cspv2-site-controls a.active,
  body.cspv2-site-dark header.wp-block-template-part .cspv2-site-main-nav .cspv2-stock-submenu a:hover,
  body.cspv2-site-dark header.wp-block-template-part .cspv2-site-main-nav .cspv2-stock-submenu a.active,
  body.cspv2-site-dark header.wp-block-template-part .byb-site-submenu a:hover,
  body.cspv2-site-dark header.wp-block-template-part .byb-site-submenu a.active {
    background: #27332b !important;
    color: #edf3ee !important;
  }
}
