.bjbh-hub-page {
  background: #f3f5f8;
}

.bjbh-hub-page .site-content {
  display: block;
  max-width: none;
  padding: 0;
}

.bjbh-hub-page .content-area,
.bjbh-hub-page .site-main,
.bjbh-hub-page .inside-article,
.bjbh-hub-page .entry-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

.bjbh-hub-page .inside-article {
  background: transparent;
}

.bjbh-hub-page .entry-header,
.bjbh-hub-page .widget-area,
.bjbh-hub-page .comments-area,
.bjbh-hub-page .site-header,
.bjbh-hub-page #site-navigation,
.bjbh-hub-page .site-footer {
  display: none !important;
}

.bjbh-app,
.bjbh-app * {
  box-sizing: border-box;
}

.bjbh-app {
  --bjbh-primary: #123a73;
  --bjbh-accent: #22b8cf;
  --bjbh-text: #172033;
  --bjbh-muted: #667085;
  --bjbh-border: #e2e8f0;
  width: 100%;
  max-width: 768px;
  min-height: 100vh;
  margin: 0 auto;
  color: var(--bjbh-text);
  background: #f7f9fc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.65;
  box-shadow: 0 0 36px rgba(15, 23, 42, 0.07);
}

.bjbh-skip-link {
  position: absolute;
  z-index: 10001;
  top: 8px;
  left: -9999px;
  padding: 10px 14px;
  color: #fff;
  background: #111827;
  border-radius: 8px;
}

.bjbh-skip-link:focus {
  left: 8px;
}

.bjbh-header {
  position: sticky;
  z-index: 100;
  top: 0;
  padding: 14px 16px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(14px);
}

.admin-bar .bjbh-header {
  top: 32px;
}

.bjbh-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  gap: 8px;
  margin-bottom: 12px;
}

.bjbh-brand {
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.bjbh-beta {
  padding: 3px 7px;
  color: var(--bjbh-primary);
  background: #eaf1fb;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.bjbh-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 5px;
  background: #f1f4f8;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
}

.bjbh-tab {
  min-width: 0;
  min-height: 42px;
  padding: 8px 4px;
  color: #4b5563;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.bjbh-tab.is-active {
  color: #fff;
  background: var(--bjbh-primary);
  box-shadow: 0 6px 14px rgba(18, 58, 115, 0.2);
}

.bjbh-tab:focus-visible,
.bjbh-cta:focus-visible,
.bjbh-hero-action:focus-visible,
.bjbh-footer a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--bjbh-accent), white 20%);
  outline-offset: 3px;
}

.bjbh-main {
  padding: 18px 16px 28px;
}

.bjbh-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 270px;
  padding: 30px 26px;
  color: #fff;
  background: linear-gradient(135deg, #17243d 0%, var(--bjbh-primary) 100%);
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(15, 33, 64, 0.2);
}

.bjbh-hero::before,
.bjbh-hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.bjbh-hero::before {
  width: 230px;
  height: 230px;
  top: -110px;
  right: -80px;
  background: color-mix(in srgb, var(--bjbh-accent), transparent 78%);
}

.bjbh-hero::after {
  width: 100px;
  height: 100px;
  bottom: -55px;
  left: 34%;
  border: 20px solid rgba(255, 255, 255, 0.06);
}

.bjbh-hero > * {
  position: relative;
  z-index: 1;
}

.bjbh-eyebrow {
  margin: 0 0 9px;
  color: #8ee8f4;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bjbh-hero h1 {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.bjbh-hero div > p:last-child {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.bjbh-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 50px;
  padding: 0 18px;
  color: #062c33;
  background: var(--bjbh-accent);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.bjbh-ad {
  min-height: 90px;
  margin: 18px 0;
  padding: 8px;
  background: #fff;
  border: 1px dashed #d6dde8;
  border-radius: 14px;
  text-align: center;
}

.bjbh-panels {
  scroll-margin-top: 135px;
  margin-top: 0;
}

.bjbh-panel[hidden] {
  display: none !important;
}

.bjbh-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bjbh-section-stack {
  display: grid;
  gap: 28px;
  scroll-margin-top: 136px;
  margin-top: 26px;
}

.bjbh-menu-section {
  margin: 0;
}

.bjbh-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bjbh-action-card {
  min-width: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--bjbh-border);
  border-radius: 17px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.bjbh-action-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--bjbh-primary), white 72%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.bjbh-action-card > a,
.bjbh-action-card > div {
  display: flex;
  flex-direction: column;
  min-height: 166px;
  padding: 18px;
  color: var(--bjbh-text);
  text-decoration: none;
}

.bjbh-action-card > a:focus-visible {
  outline: 3px solid var(--bjbh-accent);
  outline-offset: 3px;
  border-radius: 17px;
}

.bjbh-action-meta {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 8px;
  color: var(--bjbh-primary);
  background: #edf3fb;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.bjbh-action-card strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.bjbh-action-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  color: var(--bjbh-primary);
  font-size: 14px;
  font-weight: 800;
}

.bjbh-action-label b {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: var(--bjbh-primary);
  border-radius: 50%;
}

.bjbh-action-description {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: var(--bjbh-muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bjbh-action-card small {
  margin-top: auto;
  padding-top: 10px;
  color: #98a2b3;
  font-size: 10px;
}

.bjbh-section-mark {
  width: 6px;
  height: 42px;
  background: var(--bjbh-accent);
  border-radius: 999px;
}

.bjbh-section-heading p,
.bjbh-section-heading h2 {
  margin: 0;
}

.bjbh-section-heading p {
  color: var(--bjbh-muted);
  font-size: 12px;
  font-weight: 700;
}

.bjbh-section-heading h2 {
  color: var(--bjbh-text);
  font-size: 24px;
  letter-spacing: -0.035em;
}

.bjbh-card-list {
  display: grid;
  gap: 14px;
}

.bjbh-card,
.bjbh-empty {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--bjbh-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.bjbh-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bjbh-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 9px;
  color: var(--bjbh-primary);
  background: color-mix(in srgb, var(--bjbh-primary), white 91%);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.bjbh-card h3 {
  margin: 0;
  color: #111827;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.bjbh-card-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--bjbh-primary);
  background: #f1f5f9;
  border-radius: 50%;
  font-weight: 900;
}

.bjbh-summary {
  margin: 14px 0 0;
  color: #344054;
  font-size: 15px;
  font-weight: 650;
}

.bjbh-details {
  margin-top: 9px;
  color: var(--bjbh-muted);
  font-size: 14px;
}

.bjbh-details p {
  margin: 0;
}

.bjbh-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef2f6;
}

.bjbh-checked {
  color: #8a94a6;
  font-size: 11px;
  white-space: nowrap;
}

.bjbh-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 15px;
  color: #fff;
  background: var(--bjbh-primary);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.bjbh-cta:hover {
  color: #fff;
  filter: brightness(1.08);
}

.bjbh-empty p {
  margin: 6px 0 0;
  color: var(--bjbh-muted);
}

.bjbh-safety {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 20px;
  color: #1d3b40;
  background: #e9f8f9;
  border: 1px solid #caedef;
  border-radius: 18px;
}

.bjbh-safety > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: #1596a8;
  border-radius: 50%;
  font-weight: 900;
}

.bjbh-safety h2,
.bjbh-safety p {
  margin: 0;
}

.bjbh-safety h2 {
  color: #163a3f;
  font-size: 17px;
}

.bjbh-safety p {
  margin-top: 4px;
  font-size: 13px;
}

.bjbh-footer {
  padding: 28px 22px;
  color: #667085;
  background: #e9edf3;
  font-size: 12px;
}

.bjbh-footer strong {
  color: #344054;
  font-size: 15px;
}

.bjbh-footer p {
  margin: 10px 0;
}

.bjbh-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.bjbh-footer a {
  color: #475467;
  font-weight: 700;
}

@media (max-width: 560px) {
  .bjbh-header {
    padding-right: 10px;
    padding-left: 10px;
  }

  .bjbh-main {
    padding: 12px 10px 24px;
  }

  .bjbh-tabs {
    gap: 2px;
  }

  .bjbh-tab {
    min-height: 40px;
    font-size: 12px;
    letter-spacing: -0.035em;
  }

  .bjbh-hero {
    display: block;
    min-height: 300px;
    padding: 28px 22px;
  }

  .bjbh-hero-action {
    margin-top: 24px;
  }

  .bjbh-card {
    padding: 19px;
  }

  .bjbh-action-grid {
    gap: 9px;
  }

  .bjbh-action-card > a,
  .bjbh-action-card > div {
    min-height: 158px;
    padding: 15px;
  }

  .bjbh-action-card strong {
    font-size: 15px;
  }

  .bjbh-action-label {
    font-size: 13px;
  }

  .bjbh-card-footer {
    display: block;
  }

  .bjbh-checked {
    display: block;
    margin-bottom: 10px;
  }

  .bjbh-cta {
    width: 100%;
  }
}

@media (max-width: 782px) {
  .admin-bar .bjbh-header {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bjbh-tab,
  .bjbh-cta,
  .bjbh-action-card {
    transition: none;
  }
}
