/*
Theme Name: 호산방 북갤러리 (HOSANBANG Book Gallery)
Theme URI: https://hosanbang.com
Author: 호산방 북갤러리 (대표 박대헌)
Description: 1982년 설립 호산방 북갤러리 1차 개편 테마 — 유럽 회화 · 박물관급 유물 · 아트 앤틱 · 동서양 희귀 고서 아카이브 및 회원·접수·통계 통합 관리
Version: 1.6.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hosanbang-gallery
*/

/* Override any legacy WordPress.com / Customizer / Kadence global dark background styles */
html,
body,
body.custom-background,
body.wp-singular,
body.home {
  background-color: #F7F4EC !important;
  background-image: none !important;
  color: #1D1B18 !important;
}
#hb-app-main,
.hb-view {
  background-color: transparent !important;
  color: #1D1B18;
}
body.admin-bar .hb-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hb-header { top: 46px; } }

/* ==========================================================================
   HOSANBANG Book Gallery — Museum-Grade Luxury Design System
   WordPress / WooCommerce Child Theme Ready (Clean Token Architecture)
   ========================================================================== */

:root {
  /* Surface Palette — Hanji & Museum Mat System */
  --hb-bg-hanji: #F6F3EB;
  --hb-bg-surface: #FAF8F3;
  --hb-bg-subtle: #EDE8DC;
  --hb-bg-elevated: #FFFDF8;
  --hb-bg-mat-light: #EFECE3;
  --hb-bg-mat-dark: #151311;
  --hb-bg-obsidian: #1B1815;
  --hb-bg-obsidian-deep: #13110F;

  /* Hairlines & Borders */
  --hb-border-hairline: #E3DCC8;
  --hb-border-subtle: rgba(196, 186, 160, 0.45);
  --hb-border-strong: #C4B89B;
  --hb-border-dark: rgba(255, 255, 255, 0.14);

  /* Typography Ink */
  --hb-ink-primary: #1C1915;
  --hb-ink-secondary: #524B3F;
  --hb-ink-muted: #7F7666;
  --hb-ink-inverse: #F6F3EB;
  --hb-ink-inverse-muted: #B6ADA0;

  /* Brand Accents */
  --hb-seal: #B42E24;
  --hb-seal-hover: #96231B;
  --hb-bronze: #8C7355;
  --hb-bronze-soft: rgba(140, 115, 85, 0.12);

  /* Font Stacks */
  --hb-font-serif: 'Noto Serif KR', 'Batang', Georgia, serif;
  --hb-font-display: 'Cormorant Garamond', 'Noto Serif KR', Georgia, serif;
  --hb-font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing & Container */
  --hb-max-w: 1240px;
  --hb-narrow-w: 940px;
  --hb-gutter: clamp(20px, 4vw, 44px);

  /* Elevation & Motion */
  --hb-shadow-soft: 0 10px 30px rgba(28, 25, 21, 0.05);
  --hb-shadow-card: 0 14px 36px rgba(28, 25, 21, 0.08);
  --hb-shadow-modal: 0 28px 80px rgba(15, 13, 10, 0.28);
  --hb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hb-dur: 260ms;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--hb-bg-hanji);
}

body {
  font-family: var(--hb-font-serif);
  color: var(--hb-ink-primary);
  background-color: var(--hb-bg-hanji);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--hb-dur) var(--hb-ease), opacity var(--hb-dur) var(--hb-ease);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--hb-seal);
  outline-offset: 2px;
}

/* Layout Containers */
.hb-container {
  width: 100%;
  max-width: var(--hb-max-w);
  margin: 0 auto;
  padding-inline: var(--hb-gutter);
}

.hb-container--narrow {
  max-width: var(--hb-narrow-w);
}

.hb-en-meta {
  font-family: var(--hb-font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.hb-en-italic {
  font-family: var(--hb-font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   HEADER — Desktop Shrink-on-Scroll + Mobile Responsive Drawer
   ========================================================================== */
.hb-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(246, 243, 235, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hb-border-hairline);
  transition: box-shadow var(--hb-dur) var(--hb-ease), background var(--hb-dur) var(--hb-ease);
}

.hb-header.is-scrolled {
  background: rgba(246, 243, 235, 0.97);
  box-shadow: 0 6px 24px rgba(28, 25, 21, 0.05);
}

/* Top Utility Strip */
.hb-utility-bar {
  border-bottom: 1px solid rgba(227, 220, 200, 0.65);
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-muted);
  letter-spacing: 0.04em;
  overflow: hidden;
  max-height: 38px;
  opacity: 1;
  transition: max-height 240ms var(--hb-ease), opacity 200ms ease, border-color 200ms ease;
}

.hb-header.is-scrolled .hb-utility-bar {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
  pointer-events: none;
}

.hb-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.hb-utility-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  color: var(--hb-ink-secondary);
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
}

.hb-utility-brand .hb-since {
  font-family: var(--hb-font-display);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--hb-bronze);
}

.hb-utility-brand:hover {
  color: var(--hb-seal);
}

.hb-utility-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.hb-util-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  margin: -6px -4px;
  border-radius: 3px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-secondary);
  cursor: pointer;
  transition: color var(--hb-dur) var(--hb-ease), background var(--hb-dur) var(--hb-ease);
  white-space: nowrap;
}

.hb-util-btn:hover {
  color: var(--hb-seal);
  background: rgba(166, 50, 38, 0.06);
}

.hb-util-sep {
  width: 1px;
  height: 10px;
  background: var(--hb-border-strong);
  opacity: 0.6;
}

.hb-badge-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--hb-seal);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}

.hb-badge-dot:empty, .hb-badge-dot[data-count="0"] {
  display: none;
}

.hb-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hb-ink-muted);
  width: 20px;
  height: 20px;
}

.hb-social-link:hover {
  color: var(--hb-ink-primary);
}

/* Main Header Bar (Logo + Nav) */
.hb-header-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 12px;
  gap: 10px;
  transition: padding 240ms var(--hb-ease), gap 240ms var(--hb-ease);
}

.hb-header.is-scrolled .hb-header-main {
  flex-direction: row;
  justify-content: space-between;
  padding: 10px 0;
  gap: 24px;
}

.hb-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hb-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: height 240ms var(--hb-ease);
}

.hb-header.is-scrolled .hb-logo-img {
  height: 38px;
}

.hb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.8vw, 40px);
}

.hb-nav-link {
  position: relative;
  font-family: var(--hb-font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--hb-ink-primary);
  padding: 5px 2px;
  white-space: nowrap;
}

.hb-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--hb-seal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 240ms var(--hb-ease);
}

.hb-nav-link:hover,
.hb-nav-link.is-active {
  color: var(--hb-seal);
}

.hb-nav-link:hover::after,
.hb-nav-link.is-active::after {
  transform: scaleX(1);
}

/* Scrolled compact actions on right */
.hb-scrolled-tools {
  display: none;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.hb-header.is-scrolled .hb-scrolled-tools {
  display: flex;
}

/* Mobile Header Controls (hidden on desktop) */
.hb-mobile-menu-btn,
.hb-mobile-right-tools {
  display: none;
}

/* Mobile Drawer */
.hb-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100005;
  background: rgba(18, 16, 13, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.hb-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.hb-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 86vw);
  z-index: 100006;
  background: var(--hb-bg-hanji);
  border-right: 1px solid var(--hb-border-hairline);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 300ms var(--hb-ease);
  overflow-y: auto;
}

.hb-drawer.is-open {
  transform: translateX(0);
}

.hb-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hb-border-hairline);
}

.hb-drawer-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hb-ink-primary);
  font-size: 22px;
}

.hb-drawer-nav {
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
}

.hb-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(227, 220, 200, 0.7);
  font-size: 16px;
  font-weight: 500;
}

.hb-drawer-link .hb-count {
  font-family: var(--hb-font-display);
  font-size: 13px;
  color: var(--hb-ink-muted);
  letter-spacing: 0.08em;
}

.hb-drawer-sub {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--hb-font-sans);
  font-size: 13.5px;
  color: var(--hb-ink-secondary);
}

.hb-drawer-footer {
  margin-top: auto;
  padding: 18px 22px 28px;
  border-top: 1px solid var(--hb-border-hairline);
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-muted);
}

/* ==========================================================================
   MAIN STAGE & PAGE VIEWS
   ========================================================================== */
#hb-app-main {
  flex: 1 0 auto;
}

.hb-view {
  display: none;
  animation: hbFadeIn 320ms var(--hb-ease);
}

.hb-view.is-active {
  display: block;
}

@keyframes hbFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   BUTTONS — Auction-House Precision
   ========================================================================== */
.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 22px;
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background var(--hb-dur) var(--hb-ease),
              color var(--hb-dur) var(--hb-ease),
              border-color var(--hb-dur) var(--hb-ease),
              transform 180ms ease;
  white-space: nowrap;
}

.hb-btn:active {
  transform: translateY(1px);
}

.hb-btn--primary {
  background: #26221D;
  color: var(--hb-ink-inverse);
  border-color: #26221D;
}

.hb-btn--primary:hover {
  background: var(--hb-seal);
  border-color: var(--hb-seal);
  color: #fff;
}

.hb-btn--secondary {
  background: transparent;
  color: #26221D;
  border-color: #CFC5B0;
}

.hb-btn--secondary:hover {
  border-color: var(--hb-ink-primary);
  background: var(--hb-bg-surface);
  color: var(--hb-ink-primary);
}

.hb-btn--bronze {
  background: var(--hb-bronze);
  color: #fff;
  border-color: var(--hb-bronze);
}

.hb-btn--bronze:hover {
  background: #735D43;
  border-color: #735D43;
}

.hb-btn--ghost {
  background: var(--hb-bg-surface);
  color: var(--hb-ink-secondary);
  border-color: #CFC5B0;
}

.hb-btn--ghost:hover {
  border-color: var(--hb-ink-primary);
  color: var(--hb-ink-primary);
}

.hb-btn--inverse {
  background: transparent;
  color: var(--hb-ink-inverse);
  border-color: rgba(246, 243, 235, 0.45);
}

.hb-btn--inverse:hover {
  background: var(--hb-ink-inverse);
  color: var(--hb-bg-obsidian);
  border-color: var(--hb-ink-inverse);
}

.hb-btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 12px;
}

.hb-btn--icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  font-size: 14px;
  border: 1px solid #CFC5B0;
  background: var(--hb-bg-surface);
  color: var(--hb-ink-secondary);
}

.hb-btn--icon:hover {
  border-color: var(--hb-seal);
  color: var(--hb-seal);
}

.hb-btn--icon.is-saved {
  border-color: var(--hb-seal);
  color: var(--hb-seal);
  background: rgba(180, 46, 36, 0.06);
}

/* ==========================================================================
   HOME — 1. CENTERED EDITORIAL MUSEUM HERO (FINAL)
   ========================================================================== */
.hb-hero {
  position: relative;
  background: radial-gradient(ellipse at 50% 62%, #151310 0%, #0D0C0A 74%);
  color: var(--hb-ink-inverse);
  overflow: hidden;
  padding-top: 80px;
  border-bottom: 1px solid rgba(196, 184, 155, 0.2);
}

.hb-hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 58px;
  gap: 20px;
}

.hb-hero-title {
  font-family: var(--hb-font-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: #FAF7F0;
  word-break: keep-all;
}

.hb-hero-desc {
  font-family: var(--hb-font-serif);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(246, 243, 235, 0.64);
  max-width: 660px;
  text-align: center;
  word-break: keep-all;
}

.hb-hero-stage {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 36px 52px;
  text-align: center;
}

.hb-hero-media-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hb-hero-slide-img {
  width: 100%;
  max-width: 1060px;
  max-height: 360px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-composite: intersect;
}

.hb-hero-caption {
  margin-top: 16px;
  font-family: var(--hb-font-serif);
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(215, 199, 174, 0.54);
  line-height: 1.6;
  word-break: keep-all;
}

.hb-section-rule {
  width: 32px;
  height: 1px;
  background: #C9B596;
  margin: 0 auto 14px;
}

/* ==========================================================================
   HOME — 2. MASTERPIECE SPOTLIGHT (CLAUDE MONET #62)
   ========================================================================== */
.hb-section {
  padding: clamp(56px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--hb-border-hairline);
}

.hb-section--subtle {
  background: var(--hb-bg-subtle);
}

.hb-section--surface {
  background: var(--hb-bg-surface);
}

.hb-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.hb-section-eyebrow {
  font-family: var(--hb-font-display);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hb-bronze);
  margin-bottom: 10px;
}

.hb-section-title {
  font-family: var(--hb-font-serif);
  font-size: clamp(24px, 2.6vw, 31px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--hb-ink-primary);
  margin-bottom: 14px;
}

.hb-section-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

/* Masterpiece 2-Column Editorial Frame */
.hb-masterpiece-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.hb-masterpiece-stage {
  position: relative;
  background: var(--hb-bg-mat-dark);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(28, 25, 21, 0.14);
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 360ms var(--hb-ease);
}

.hb-masterpiece-stage:hover {
  box-shadow: 0 24px 60px rgba(20, 18, 16, 0.18);
}

.hb-masterpiece-stage img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
  pointer-events: none;
  -webkit-touch-callout: none;
  user-select: none;
  transition: transform 520ms var(--hb-ease);
}

.hb-masterpiece-stage:hover img {
  transform: scale(1.02);
}

.hb-stage-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(246, 243, 235, 0.14);
  font-family: var(--hb-font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(246, 243, 235, 0.72);
}

.hb-stage-zoom-hint {
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #D2C3AA;
}

.hb-masterpiece-info {
  display: flex;
  flex-direction: column;
}

.hb-lot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hb-font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hb-seal);
  margin-bottom: 12px;
}

.hb-masterpiece-title {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hb-masterpiece-en {
  font-family: var(--hb-font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--hb-ink-muted);
  margin-bottom: 18px;
}

.hb-masterpiece-artist {
  font-size: 15.5px;
  color: var(--hb-ink-secondary);
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--hb-border-hairline);
}

.hb-mini-specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 13.5px;
}

.hb-mini-specs td {
  padding: 9px 0;
  border-bottom: 1px solid rgba(227, 220, 200, 0.65);
  vertical-align: top;
}

.hb-mini-specs td:first-child {
  width: 108px;
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  color: var(--hb-ink-muted);
}

.hb-masterpiece-quote {
  border-left: 2px solid var(--hb-bronze);
  padding: 4px 0 4px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--hb-ink-secondary);
  margin-bottom: 28px;
  word-break: keep-all;
}

.hb-cta-stack {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.hb-cta-stack .hb-btn--primary {
  height: 40px;
  padding: 0 22px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.hb-cta-stack .hb-btn--icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

/* ==========================================================================
   HOME — 3. COUNTER OFFER (BALANCED 4-COL GRID, ZERO ORPHANS)
   ========================================================================== */
.hb-co-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 44px;
  padding: 20px 24px;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
}

.hb-co-rule {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--hb-font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--hb-ink-secondary);
}

.hb-co-rule-num {
  font-family: var(--hb-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--hb-bronze);
  line-height: 1.1;
  flex-shrink: 0;
}

.hb-co-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ==========================================================================
   UNIFIED GALLERY ARTWORK CARD (Used across Home, Categories & Related)
   ========================================================================== */
.hb-card {
  display: flex;
  flex-direction: column;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  cursor: pointer;
  transition: transform 280ms var(--hb-ease), box-shadow 280ms var(--hb-ease), border-color 280ms ease;
}

.hb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hb-shadow-card);
  border-color: var(--hb-border-strong);
}

.hb-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--hb-bg-mat-light);
}

.hb-card-media--dark {
  background: var(--hb-bg-mat-dark);
  padding: 14px;
}

.hb-card-media--square {
  aspect-ratio: 1 / 1;
}

.hb-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-touch-callout: none;
  user-select: none;
  transition: transform 420ms var(--hb-ease);
}

.hb-card:hover .hb-card-media img {
  transform: scale(1.03);
}

.hb-card-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  font-family: var(--hb-font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: rgba(27, 24, 21, 0.78);
  color: #FAF8F3;
  backdrop-filter: blur(4px);
}

.hb-card-pill--bronze {
  background: rgba(140, 115, 85, 0.9);
}

.hb-card-pill--direct {
  background: rgba(246, 243, 235, 0.92);
  color: var(--hb-ink-primary);
  border: 1px solid var(--hb-border-strong);
}

.hb-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid rgba(227, 220, 200, 0.55);
}

.hb-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.hb-card-no {
  font-family: var(--hb-font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--hb-bronze);
  font-weight: 600;
}

.hb-card-period {
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  color: var(--hb-ink-muted);
}

.hb-card-artist {
  font-family: var(--hb-font-serif);
  font-size: 13.5px;
  color: var(--hb-ink-secondary);
  margin-bottom: 3px;
}

.hb-card-title {
  font-family: var(--hb-font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--hb-ink-primary);
  margin-bottom: 10px;
  word-break: keep-all;
}

.hb-card-subtitle {
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  color: var(--hb-ink-muted);
  margin-top: -6px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.hb-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(227, 220, 200, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
}

.hb-card-price {
  font-weight: 500;
  color: var(--hb-ink-primary);
}

.hb-card-price--muted {
  color: var(--hb-ink-muted);
  font-weight: 400;
}

.hb-card-link-hint {
  font-size: 11.5px;
  color: var(--hb-bronze);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   HOME — 4. CURATED DEPARTMENTS & 5. 45-YEAR AUTHORITY STRIP
   ========================================================================== */
.hb-dept-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.hb-dept-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 18px;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  min-height: 126px;
  text-align: left;
  transition: border-color 220ms ease, transform 220ms var(--hb-ease), background 220ms ease;
}

.hb-dept-tile:hover {
  border-color: var(--hb-ink-primary);
  transform: translateY(-3px);
  background: var(--hb-bg-elevated);
}

.hb-dept-en {
  font-family: var(--hb-font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hb-bronze);
}

.hb-dept-kr {
  font-family: var(--hb-font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--hb-ink-primary);
  margin: 8px 0 4px;
}

.hb-dept-count {
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-muted);
}

/* Authority / Provenance 4 Pillars */
.hb-authority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.hb-authority-card {
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  padding: 28px 24px;
}

.hb-authority-num {
  font-family: var(--hb-font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--hb-seal);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hb-authority-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hb-authority-card p {
  font-family: var(--hb-font-sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

/* Slim Homepage Closing Provenance Band */
.hb-section--authority-slim {
  padding: 52px 0 56px;
}
.hb-section--authority-slim .hb-section-head {
  margin-bottom: 24px;
}
.hb-section--authority-slim .hb-section-title {
  font-size: clamp(22px, 2.3vw, 27px);
}
@media (max-width: 768px) {
  .hb-section--authority-slim {
    padding: 40px 0 44px;
  }
}

.hb-authority-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hb-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}

.hb-auth-btn--outline {
  background: var(--hb-bg-surface);
  color: #3D362D;
  border: 1px solid #CFC5B0;
}

.hb-auth-btn--outline .hb-auth-arrow {
  color: var(--hb-bronze);
}

.hb-auth-btn--outline:hover {
  border-color: var(--hb-ink-primary);
  color: var(--hb-ink-primary);
  background: #FFFFFF;
}

.hb-auth-btn--dark {
  background: #26221D;
  color: var(--hb-ink-inverse);
  border: 1px solid #26221D;
}

.hb-auth-btn--dark:hover {
  background: var(--hb-seal);
  border-color: var(--hb-seal);
  color: #FFFFFF;
}

/* ==========================================================================
   CATEGORY ARCHIVE TEMPLATE (UNIFIED ACROSS ALL 6 CATEGORIES)
   ========================================================================== */
.hb-cat-header {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--hb-border-hairline);
  background: var(--hb-bg-surface);
}

.hb-cat-header-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hb-cat-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hb-cat-desc {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

.hb-cat-pdf-strip {
  display: inline-flex;
  align-self: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 16px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  font-family: var(--hb-font-sans);
  font-size: 13px;
  color: var(--hb-ink-secondary);
}

.hb-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #8F221A;
  background: rgba(180, 46, 36, 0.06);
  border: 1px solid rgba(180, 46, 36, 0.28);
  border-radius: 2px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hb-pdf-btn:hover {
  background: var(--hb-seal);
  border-color: var(--hb-seal);
  color: #FFFFFF;
}

/* Filter & Sort Toolbar */
.hb-toolbar {
  padding: 20px 0;
  border-bottom: 1px solid var(--hb-border-hairline);
  background: var(--hb-bg-hanji);
}

.hb-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hb-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hb-filter-chip {
  padding: 6px 14px;
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  color: var(--hb-ink-secondary);
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  border-radius: 2px;
  transition: all 200ms ease;
}

.hb-filter-chip:hover {
  border-color: var(--hb-ink-primary);
  color: var(--hb-ink-primary);
}

.hb-filter-chip.is-active {
  background: var(--hb-bg-obsidian);
  color: var(--hb-ink-inverse);
  border-color: var(--hb-bg-obsidian);
}

.hb-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--hb-font-sans);
  font-size: 13px;
}

.hb-input, .hb-select {
  padding: 8px 12px;
  font-family: var(--hb-font-sans);
  font-size: 13px;
  color: var(--hb-ink-primary);
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-strong);
  border-radius: 2px;
}

.hb-cat-grid-wrap {
  padding: 40px 0 84px;
}

.hb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.hb-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Editorial Horizontal Feature Card for 1-2 Item Categories (Zero Empty Wall!) */
.hb-editorial-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 300ms var(--hb-ease);
}

.hb-editorial-feature:hover {
  box-shadow: var(--hb-shadow-card);
}

.hb-editorial-feature-media {
  background: var(--hb-bg-mat-light);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hb-editorial-feature-media--dark {
  background: var(--hb-bg-mat-dark);
}

.hb-editorial-feature-media img {
  max-height: 400px;
  width: 100%;
  object-fit: contain;
}

.hb-editorial-feature-body {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==========================================================================
   SINGLE ARTWORK DETAIL VIEW (WordPress single-product.php Standard)
   ========================================================================== */
.hb-detail-bar {
  padding: 16px 0;
  border-bottom: 1px solid var(--hb-border-hairline);
  background: var(--hb-bg-surface);
}

.hb-detail-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--hb-font-sans);
  font-size: 13px;
  color: var(--hb-ink-muted);
}

.hb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hb-ink-primary);
  font-weight: 500;
}

.hb-back-btn:hover {
  color: var(--hb-seal);
}

.hb-detail-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 5vw, 68px);
  padding: 44px 0 72px;
  align-items: start;
}

.hb-detail-layout > * {
  min-width: 0;
}

/* Left Gallery Column */
.hb-detail-gallery {
  position: sticky;
  top: 88px;
  min-width: 0;
}

.hb-detail-stage {
  position: relative;
  background: var(--hb-bg-mat-light);
  border: 1px solid var(--hb-border-hairline);
  padding: clamp(18px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  cursor: zoom-in;
}

.hb-detail-stage--dark {
  background: var(--hb-bg-mat-dark);
  border-color: rgba(28, 25, 21, 0.2);
}

.hb-detail-stage img {
  max-height: 540px;
  width: 100%;
  object-fit: contain;
}

.hb-detail-zoom-fab {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 14px;
  background: rgba(27, 24, 21, 0.82);
  color: #FAF8F3;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  backdrop-filter: blur(6px);
  transition: background 200ms ease;
}

.hb-detail-zoom-fab:hover {
  background: var(--hb-seal);
}

.hb-thumb-strip {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  max-width: 100%;
}

.hb-thumb-btn {
  width: 76px;
  height: 64px;
  flex-shrink: 0;
  padding: 4px;
  background: var(--hb-bg-mat-light);
  border: 1.5px solid var(--hb-border-hairline);
  overflow: hidden;
  transition: border-color 200ms ease;
}

.hb-thumb-btn--dark {
  background: var(--hb-bg-mat-dark);
}

.hb-thumb-btn.is-active,
.hb-thumb-btn:hover {
  border-color: var(--hb-seal);
}

.hb-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hb-detail-caption {
  margin-top: 10px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-muted);
}

/* Right Info & 3-Track Commerce Column */
.hb-detail-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--hb-font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hb-bronze);
}

.hb-status-tag {
  font-family: var(--hb-font-sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border: 1px solid var(--hb-border-strong);
  color: var(--hb-ink-secondary);
  background: var(--hb-bg-surface);
  white-space: nowrap;
}

.hb-status-tag--co {
  border-color: var(--hb-bronze);
  color: var(--hb-bronze);
  background: var(--hb-bronze-soft);
}

.hb-detail-title {
  font-size: clamp(25px, 2.7vw, 33px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  word-break: keep-all;
}

.hb-detail-subtitle {
  font-size: 16px;
  color: var(--hb-ink-secondary);
  margin-bottom: 24px;
}

/* 3-Track Acquisition Box */
.hb-commerce-box {
  padding: 24px;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  margin-bottom: 28px;
}

.hb-commerce-price-label {
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-muted);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.hb-commerce-price {
  font-family: var(--hb-font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--hb-ink-primary);
  margin-bottom: 6px;
}

.hb-commerce-note {
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--hb-ink-secondary);
  margin-bottom: 18px;
  word-break: keep-all;
}

.hb-commerce-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.hb-commerce-actions .hb-btn:not(.hb-btn--icon) {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.hb-commerce-actions--compact .hb-btn:not(.hb-btn--icon) {
  flex: 0 0 auto;
  padding: 0 22px;
}

.hb-commerce-actions .hb-btn--icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

/* Provenance & Specs Table */
.hb-spec-heading {
  font-family: var(--hb-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-ink-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hb-ink-primary);
}

.hb-spec-heading--with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
}

.hb-spec-heading--with-action .hb-pdf-btn {
  text-transform: none;
  flex-shrink: 0;
}

.hb-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: 14px;
}

.hb-specs-table th,
.hb-specs-table td {
  padding: 11px 0;
  border-bottom: 1px solid rgba(227, 220, 200, 0.75);
  text-align: left;
  vertical-align: top;
}

.hb-specs-table th {
  width: 124px;
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--hb-ink-muted);
  padding-right: 16px;
}

.hb-specs-table td {
  color: var(--hb-ink-primary);
  word-break: keep-all;
}

.hb-detail-prose {
  font-size: 15px;
  line-height: 1.95;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

.hb-detail-prose p {
  margin-bottom: 16px;
}

.hb-prose-copyright {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hb-border-hairline);
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--hb-ink-muted);
  word-break: keep-all;
}

.hb-trust-strip {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--hb-bg-subtle);
  border-left: 2px solid var(--hb-seal);
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--hb-ink-secondary);
}

.hb-public-hold-strip {
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  border-left: 2px solid var(--hb-bronze);
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

.hb-public-hold-strip a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 500;
  color: var(--hb-seal);
  border-bottom: 1px solid rgba(180, 46, 36, 0.35);
}

.hb-public-hold-strip a:hover {
  border-bottom-color: var(--hb-seal);
}

.hb-notice-card {
  border-left: 3px solid var(--hb-seal);
}

.hb-notice-meta-list {
  margin: 14px 0 18px;
  padding: 14px 16px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px 14px;
  font-family: var(--hb-font-sans);
  font-size: 13px;
  line-height: 1.65;
  word-break: keep-all;
}

.hb-notice-meta-list dt {
  color: var(--hb-ink-muted);
  font-weight: 500;
}

.hb-notice-meta-list dd {
  margin: 0;
  color: var(--hb-ink-primary);
}

.hb-detail-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 26px 0 56px;
  border-top: 1px solid var(--hb-border-hairline);
  font-family: var(--hb-font-sans);
  font-size: 13px;
}

.hb-detail-pager-slot--prev { text-align: left; }
.hb-detail-pager-slot--center { text-align: center; }
.hb-detail-pager-slot--next { text-align: right; }

.hb-detail-pager-link,
.hb-detail-pager-list {
  color: var(--hb-ink-secondary);
  text-decoration: none;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.hb-detail-pager-link:hover,
.hb-detail-pager-list:hover {
  color: var(--hb-ink-primary);
}

.hb-detail-pager-list {
  padding: 0 14px;
  border-left: 1px solid var(--hb-border-hairline);
  border-right: 1px solid var(--hb-border-hairline);
  font-weight: 500;
}

.hb-detail-pager-no {
  color: var(--hb-ink-muted);
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 640px) {
  .hb-detail-pager {
    grid-template-columns: 1fr 1fr;
    row-gap: 14px;
    padding: 22px 0 44px;
  }
  .hb-detail-pager-slot--center {
    grid-column: 1 / -1;
    order: -1;
  }
  .hb-detail-pager-list {
    border-left: none;
    border-right: none;
  }
}

/* ==========================================================================
   INSTITUTIONAL PAGES (ABOUT / RESEARCH / PARTNERSHIP / NEWS / VISIT)
   ========================================================================== */
.hb-editorial-page {
  padding: 60px 0 88px;
}

.hb-manifesto-card {
  max-width: 780px;
  margin: 0 auto 64px;
  padding: clamp(32px, 5vw, 56px);
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  text-align: center;
}

.hb-manifesto-card h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 26px;
  word-break: keep-all;
}

.hb-manifesto-card p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--hb-ink-secondary);
  margin-bottom: 18px;
  word-break: keep-all;
}

.hb-two-col-archive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.hb-archive-box {
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  padding: clamp(24px, 3.5vw, 38px);
}

.hb-archive-box h3 {
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid var(--hb-ink-primary);
}

.hb-archive-box h4 {
  font-family: var(--hb-font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hb-seal);
  margin: 22px 0 10px;
}

.hb-archive-box ul {
  list-style: none;
}

.hb-archive-box li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--hb-ink-secondary);
}

.hb-archive-box li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--hb-seal);
  font-weight: 700;
}

.hb-archive-box--flex {
  display: flex;
  flex-direction: column;
}

.hb-visit-map-wrap {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hb-border-hairline);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hb-visit-map-frame {
  position: relative;
  flex: 1;
  min-height: 235px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  overflow: hidden;
}

.hb-visit-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(12%) saturate(85%) contrast(98%);
}

.hb-visit-map-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.hb-visit-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 8px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-strong);
  border-radius: 2px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--hb-ink-primary);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.hb-visit-map-btn:hover {
  border-color: var(--hb-ink-primary);
  background: #EDE7D9;
}

.hb-pub-title {
  font-weight: 600;
  color: var(--hb-ink-primary);
}

.hb-pub-meta {
  color: var(--hb-ink-muted);
  font-size: 13px;
  margin-left: 4px;
}

.hb-pub-pdfs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.hb-archive-copyright {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hb-border-hairline);
  font-family: var(--hb-font-sans);
  font-size: 12px;
  line-height: 1.7;
  color: var(--hb-ink-muted);
  word-break: keep-all;
}

/* Left-Year Editorial Timeline & Awards */
.hb-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hb-tl-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(227, 220, 200, 0.7);
}

.hb-tl-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.hb-tl-year {
  font-family: var(--hb-font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--hb-seal);
  line-height: 1.4;
}

.hb-tl-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hb-ink-primary);
}

.hb-tl-desc {
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--hb-ink-secondary);
  margin-top: 4px;
  word-break: keep-all;
}

.hb-awards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hb-award-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.hb-award-year {
  font-family: var(--hb-font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--hb-bronze);
}

/* Elevated Full-Width Institutional & Collector Advisory Banner */
.hb-advisory-banner {
  margin-top: 36px;
  background: var(--hb-bg-obsidian);
  color: var(--hb-ink-inverse);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(196, 184, 155, 0.25);
}

.hb-advisory-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 32px;
  align-items: center;
}

.hb-advisory-title {
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 500;
  color: var(--hb-ink-inverse);
  margin-bottom: 12px;
}

.hb-advisory-desc {
  font-size: 14.5px;
  line-height: 1.9;
  color: rgba(246, 243, 235, 0.78);
  margin-bottom: 20px;
  word-break: keep-all;
}

.hb-advisory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: #D7C7AE;
}

.hb-advisory-chips span {
  padding: 5px 11px;
  border: 1px solid rgba(246, 243, 235, 0.22);
}

.hb-advisory-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.hb-advisory-btn {
  padding: 9px 18px;
  font-size: 12.5px;
  background: var(--hb-ink-inverse);
  color: var(--hb-bg-obsidian);
  border-color: var(--hb-ink-inverse);
}

.hb-advisory-btn:hover {
  background: var(--hb-seal);
  border-color: var(--hb-seal);
  color: #fff;
}

.hb-advisory-contact {
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-inverse-muted);
}

/* Partnership & Advisory 2-Pillar Page */
.hb-partner-card {
  margin-bottom: 28px;
}

.hb-partner-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1.5px solid var(--hb-ink-primary);
}

.hb-partner-head h2 {
  display: inline;
  font-size: 20px;
  font-weight: 600;
  color: var(--hb-ink-primary);
}

.hb-partner-kicker {
  font-size: 12px;
  color: var(--hb-seal);
  margin-right: 10px;
}

.hb-partner-target {
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  color: var(--hb-ink-muted);
}

.hb-partner-lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--hb-ink-secondary);
  margin-bottom: 24px;
  word-break: keep-all;
}

.hb-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hb-service-item {
  padding: 20px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
}

.hb-service-num {
  font-family: var(--hb-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--hb-seal);
  margin-bottom: 6px;
}

.hb-service-item h4 {
  font-family: var(--hb-font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--hb-ink-primary);
  margin: 0 0 8px;
  letter-spacing: 0;
}

.hb-service-item p {
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

.hb-partner-prose p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--hb-ink-secondary);
  margin-bottom: 16px;
  word-break: keep-all;
}

.hb-partner-prose p:last-child {
  margin-bottom: 0;
}

.hb-partner-contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  background: var(--hb-bg-subtle);
  border: 1px solid var(--hb-border-strong);
}

.hb-partner-contact-title {
  font-family: var(--hb-font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--hb-ink-primary);
  margin-bottom: 4px;
}

.hb-partner-contact-meta {
  font-family: var(--hb-font-sans);
  font-size: 13px;
  color: var(--hb-ink-secondary);
}

/* Visit Reservation Form */
.hb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.hb-field label {
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--hb-ink-secondary);
}

.hb-field input,
.hb-field select,
.hb-field textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--hb-font-sans);
  font-size: 14px;
  color: var(--hb-ink-primary);
  background: var(--hb-bg-elevated);
  border: 1px solid var(--hb-border-strong);
  border-radius: 2px;
}

.hb-field textarea {
  min-height: 110px;
  resize: vertical;
}

.hb-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 10px 14px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  border-radius: 2px;
}

.hb-check-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--hb-font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--hb-ink-primary);
  margin: 0;
  cursor: pointer;
}

.hb-check-item input[type="checkbox"],
.hb-check-item input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: var(--hb-seal);
  margin: 0;
  cursor: pointer;
}

.hb-offer-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 10px;
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
}

.hb-offer-time-bar {
  padding: 8px 12px;
  margin-bottom: 14px;
  background: #F4EFE4;
  border: 1px solid var(--hb-border-hairline);
  border-radius: 2px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--hb-ink-secondary);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
}

.hb-offer-prev {
  margin-bottom: 14px;
  padding: 9px 12px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  font-family: var(--hb-font-sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--hb-ink-secondary);
}

.hb-offer-live {
  margin-top: 6px;
  min-height: 18px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-bronze);
  word-break: keep-all;
}

.hb-offer-live.is-warn {
  color: var(--hb-seal);
}

.hb-offer-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 16px;
  padding: 10px 12px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  border-radius: 2px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--hb-ink-secondary);
  cursor: pointer;
  word-break: keep-all;
}

.hb-offer-agree input[type="checkbox"] {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--hb-seal);
  cursor: pointer;
}

.hb-offer-footnote {
  margin-top: 10px;
  text-align: center;
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--hb-ink-muted);
  word-break: keep-all;
}

.hb-offer-status-strip {
  margin-bottom: 14px;
  padding: 9px 12px;
  background: var(--hb-bg-hanji);
  border-left: 2px solid var(--hb-bronze);
  font-family: var(--hb-font-sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

/* Instant Checkout Modal (Card / Bank Transfer) */
.hb-pay-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.hb-pay-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 11px 13px;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-strong);
  border-radius: 2px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hb-pay-tab:hover {
  border-color: var(--hb-ink-primary);
}

.hb-pay-tab.is-active {
  background: #F4EFE4;
  border-color: var(--hb-ink-primary);
  box-shadow: inset 0 0 0 1px var(--hb-ink-primary);
}

.hb-pay-tab-title {
  font-family: var(--hb-font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--hb-ink-primary);
}

.hb-pay-tab-sub {
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  color: var(--hb-ink-muted);
}

.hb-pay-box {
  padding: 13px 14px;
  margin-bottom: 14px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  border-radius: 2px;
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

.hb-pay-box p + p {
  margin-top: 6px;
}

.hb-pay-pg-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--hb-border-hairline);
  font-size: 11.5px;
  color: var(--hb-ink-muted);
}

.hb-bank-table {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 6px 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hb-border-hairline);
  font-size: 12.5px;
}

.hb-bank-table dt {
  color: var(--hb-ink-muted);
  font-weight: 500;
}

.hb-bank-table dd {
  margin: 0;
  color: var(--hb-ink-primary);
  word-break: keep-all;
}

.hb-bank-acct-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hb-copy-acct-btn {
  padding: 2px 8px;
  font-family: var(--hb-font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--hb-ink-secondary);
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-strong);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hb-copy-acct-btn:hover {
  border-color: var(--hb-ink-primary);
  color: var(--hb-ink-primary);
}

.hb-ship-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  border-radius: 2px;
}

.hb-ship-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  color: var(--hb-ink-primary);
  cursor: pointer;
}

.hb-ship-radio input[type="radio"] {
  accent-color: var(--hb-ink-primary);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}

.hb-addr-postcode-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
}

.hb-addr-postcode-row input {
  width: 124px;
  flex: 0 0 124px;
}

.hb-addr-find-btn {
  height: 40px;
  padding: 0 15px;
  font-size: 12.5px;
  white-space: nowrap;
}

.hb-postcode-panel {
  margin-bottom: 10px;
  padding: 11px 12px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-strong);
  border-radius: 2px;
}

.hb-postcode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-primary);
}

.hb-postcode-close {
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  color: var(--hb-ink-muted);
  cursor: pointer;
}

.hb-postcode-close:hover {
  color: var(--hb-ink-primary);
}

.hb-postcode-results {
  margin-top: 8px;
  max-height: 170px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hb-postcode-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  text-align: left;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  border-radius: 2px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-primary);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hb-postcode-item:hover {
  border-color: var(--hb-ink-primary);
  background: #F4EFE4;
}

.hb-postcode-zip {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--hb-seal);
  font-variant-numeric: tabular-nums;
}

.hb-postcode-note {
  margin-top: 8px;
  font-family: var(--hb-font-sans);
  font-size: 11px;
  line-height: 1.5;
  color: var(--hb-ink-muted);
  word-break: keep-all;
}

/* ==========================================================================
   LIGHTBOX (HIGH-RES ZOOM & PAN VIEWER) + OVERLAYS (SEARCH / CART / MY / FORMS)
   ========================================================================== */
.hb-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: rgba(16, 14, 12, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.hb-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.hb-dialog {
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-strong);
  box-shadow: var(--hb-shadow-modal);
  padding: clamp(24px, 4vw, 38px);
  position: relative;
}

.hb-dialog--wide {
  width: min(860px, 100%);
}

.hb-dialog--pdf {
  width: min(980px, 100%);
  max-height: 92vh;
  padding: clamp(18px, 2.8vw, 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hb-pdf-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.hb-pdf-frame-wrap {
  flex: 1 1 auto;
  min-height: 62vh;
  height: 74vh;
  border: 1px solid var(--hb-border-hairline);
  background: #F4EFE4;
  overflow: hidden;
}

.hb-pdf-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #F4EFE4;
}

.hb-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--hb-border-hairline);
}

.hb-dialog-title {
  font-size: clamp(19px, 2.5vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  word-break: keep-all;
}

.hb-dialog-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hb-border-strong);
  font-size: 22px;
  line-height: 1;
  color: var(--hb-ink-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.hb-dialog-close:hover {
  background: var(--hb-bg-obsidian);
  color: #fff;
  border-color: var(--hb-bg-obsidian);
}

/* Fullscreen Photo Lightbox */
.hb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100020;
  background: rgba(12, 11, 10, 0.96);
  color: var(--hb-ink-inverse);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.hb-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.hb-lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--hb-font-sans);
  font-size: 13px;
}

.hb-lb-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.hb-lb-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hb-lb-counter {
  color: #C4B89B;
  white-space: nowrap;
  flex-shrink: 0;
}

.hb-lb-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.hb-lb-hint {
  font-size: 12px;
  color: #9F9586;
  white-space: nowrap;
}

.hb-lb-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px 64px;
}

.hb-lb-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 280ms var(--hb-ease);
  user-select: none;
}

.hb-lb-img.is-zoomed {
  transform: scale(1.9);
  cursor: zoom-out;
}

.hb-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease;
}

.hb-lb-arrow:hover {
  background: var(--hb-seal);
}

.hb-lb-arrow--prev { left: 18px; }
.hb-lb-arrow--next { right: 18px; }

.hb-lb-bottom {
  padding: 14px 24px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--hb-font-sans);
  font-size: 13px;
  color: rgba(246, 243, 235, 0.8);
}

@media (max-width: 768px) {
  .hb-lb-top {
    padding: 12px 14px;
    gap: 10px;
  }
  .hb-lb-meta {
    gap: 8px;
  }
  .hb-lb-hint,
  .hb-lb-esc {
    display: none;
  }
  .hb-lb-stage {
    padding: 12px 46px;
  }
  .hb-lb-arrow {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }
  .hb-lb-arrow--prev { left: 8px; }
  .hb-lb-arrow--next { right: 8px; }
  .hb-lb-bottom {
    padding: 10px 14px 16px;
    font-size: 12px;
  }
}

/* Search Results */
.hb-search-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
}

.hb-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  text-align: left;
  transition: border-color 200ms ease;
}

.hb-search-item:hover {
  border-color: var(--hb-ink-primary);
}

.hb-search-item img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  background: var(--hb-bg-mat-dark);
  flex-shrink: 0;
}

.hb-search-item--body {
  align-items: flex-start;
}

.hb-search-item-body {
  min-width: 0;
  flex: 1;
}

.hb-search-hint {
  margin-top: 8px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--hb-ink-muted);
  word-break: keep-all;
}

.hb-search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.hb-search-chips-label {
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  color: var(--hb-bronze);
  margin-right: 4px;
}

.hb-search-chip {
  padding: 4px 10px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-secondary);
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  border-radius: 2px;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.hb-search-chip:hover {
  border-color: var(--hb-ink-primary);
  color: var(--hb-ink-primary);
  background: #EFE9DC;
}

.hb-search-summary {
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-secondary);
  padding-bottom: 4px;
}

.hb-search-group-label {
  font-family: var(--hb-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--hb-bronze);
  padding-top: 4px;
}

.hb-search-group-label--body {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--hb-border-hairline);
}

.hb-search-body-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-family: var(--hb-font-sans);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--hb-bronze);
  background: rgba(140, 115, 85, 0.09);
  border: 1px solid rgba(140, 115, 85, 0.42);
  border-radius: 2px;
  vertical-align: middle;
}

.hb-search-snippet {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(227, 220, 200, 0.75);
  font-family: var(--hb-font-sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

.hb-search-mark {
  background: rgba(180, 46, 36, 0.13);
  color: #8F221A;
  padding: 0 3px;
  border-radius: 2px;
  font-weight: 500;
}

.hb-search-empty {
  padding: 28px 18px;
  text-align: center;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
}

.hb-search-empty-title {
  font-family: var(--hb-font-serif);
  font-size: 15px;
  color: var(--hb-ink-primary);
  margin-bottom: 5px;
}

.hb-search-empty-sub {
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-muted);
}

/* Cart & My Hosanbang Tabs */
.hb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--hb-border-hairline);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.hb-tab-btn {
  padding: 7px 14px;
  font-family: var(--hb-font-sans);
  font-size: 13px;
  color: var(--hb-ink-secondary);
  border: 1px solid var(--hb-border-hairline);
  background: var(--hb-bg-hanji);
}

.hb-tab-btn.is-active {
  background: var(--hb-bg-obsidian);
  color: #fff;
  border-color: var(--hb-bg-obsidian);
}

/* Toast Notification */
.hb-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 100030;
  padding: 13px 24px;
  background: var(--hb-bg-obsidian);
  color: var(--hb-ink-inverse);
  font-family: var(--hb-font-sans);
  font-size: 13.5px;
  border: 1px solid rgba(196, 184, 155, 0.35);
  box-shadow: var(--hb-shadow-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms var(--hb-ease);
}

.hb-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   FOOTER — Dignified Obsidian Institutional Footer
   ========================================================================== */
.hb-footer-nav {
  background: #231F1B;
  border-top: 1px solid rgba(196, 184, 155, 0.2);
}

.hb-footer-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 32px;
  padding: 18px 0;
  font-family: var(--hb-font-sans);
  font-size: 13.5px;
  color: #DDD5C7;
}

.hb-footer-nav-inner a:hover {
  color: #fff;
}

.hb-footer {
  background: var(--hb-bg-obsidian-deep);
  color: var(--hb-ink-inverse-muted);
  padding: 36px 0 44px;
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  line-height: 1.9;
  text-align: center;
}

.hb-footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
}

.hb-footer-policy-links button {
  color: #D6CEBE;
  cursor: pointer;
  transition: color 0.2s ease;
}

.hb-footer-policy-links button:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hb-footer-policy-links span {
  color: rgba(255, 255, 255, 0.22);
}

.hb-escrow-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.hb-escrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(196, 166, 118, 0.34);
  border-radius: 2px;
  color: #E6DFD2;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hb-escrow-badge:hover {
  background: rgba(196, 166, 118, 0.1);
  border-color: rgba(196, 166, 118, 0.7);
}

.hb-escrow-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(196, 166, 118, 0.14);
  border: 1px solid rgba(196, 166, 118, 0.42);
  color: #D2B482;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hb-escrow-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.hb-escrow-text strong {
  font-size: 12px;
  font-weight: 600;
  color: #F3EDE0;
  letter-spacing: 0.01em;
}

.hb-escrow-text span {
  font-size: 11px;
  color: #A89E8E;
}

.hb-escrow-cta {
  margin-left: 6px;
  padding-left: 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  color: #D2B482;
  white-space: nowrap;
}

.hb-escrow-table {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 8px 14px;
  padding: 14px 16px;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  font-family: var(--hb-font-sans);
  font-size: 13px;
}

.hb-escrow-table dt {
  color: var(--hb-ink-muted);
  font-weight: 500;
}

.hb-escrow-table dd {
  color: var(--hb-ink-primary);
  font-weight: 500;
}

@media (max-width: 560px) {
  .hb-escrow-badge {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
  }
  .hb-escrow-cta {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    width: 100%;
    text-align: center;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .hb-escrow-table {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .hb-escrow-table dd {
    margin-bottom: 8px;
  }
}

.hb-footer-legal {
  margin-top: 14px;
  font-family: var(--hb-font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #7D7468;
}

.hb-legal-body {
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 6px;
  font-family: var(--hb-font-sans);
  font-size: 13px;
  line-height: 1.8;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

.hb-legal-panel {
  display: none;
}

.hb-legal-panel.is-active {
  display: block;
}

.hb-legal-section {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hb-border-hairline);
}

.hb-legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.hb-legal-section h3 {
  margin: 0 0 8px;
  font-family: var(--hb-font-serif);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--hb-ink-primary);
}

.hb-legal-section p + p,
.hb-legal-section ul {
  margin-top: 6px;
}

.hb-legal-section ul {
  padding-left: 18px;
  list-style: disc;
}

.hb-legal-section li {
  margin-bottom: 4px;
}

.hb-legal-meta-note {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  font-size: 12px;
  color: var(--hb-ink-muted);
}

/* Login & Signup Modal (Dedicated Calm Channel) */
.hb-dialog--auth {
  width: min(480px, 100%);
}

.hb-auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--hb-border-hairline);
}

.hb-auth-switch-btn {
  height: 40px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--hb-font-sans);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--hb-ink-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hb-auth-switch-btn:hover {
  color: var(--hb-ink-primary);
}

.hb-auth-switch-btn.is-active {
  background: transparent;
  border-bottom-color: var(--hb-seal);
  color: var(--hb-ink-primary);
  font-weight: 600;
}

.hb-my-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--hb-border-hairline);
}

.hb-my-guest-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  margin-bottom: 20px;
}

.hb-member-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hb-member-type-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-strong);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hb-member-type-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hb-member-type-opt.is-selected {
  background: #F4EFE4;
  border-color: var(--hb-ink-primary);
  box-shadow: inset 0 0 0 1px var(--hb-ink-primary);
}

.hb-member-type-title {
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hb-ink-primary);
}

.hb-member-type-sub {
  font-family: var(--hb-font-sans);
  font-size: 11px;
  color: var(--hb-ink-muted);
  line-height: 1.4;
  word-break: keep-all;
}

@media (max-width: 560px) {
  .hb-member-type-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .hb-member-type-opt {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
  }
}

.hb-auth-helper {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-muted);
}

.hb-auth-text-btn {
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-seal);
  border-bottom: 1px solid rgba(180, 46, 36, 0.35);
  cursor: pointer;
}

.hb-auth-text-btn--muted {
  color: var(--hb-ink-muted);
  border-bottom-color: rgba(130, 121, 104, 0.4);
}

.hb-auth-context-banner {
  padding: 11px 14px;
  background: #F4EFE4;
  border-left: 2px solid var(--hb-bronze);
  margin-bottom: 14px;
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--hb-ink-primary);
  word-break: keep-all;
}

.hb-trade-checkout-note {
  padding: 10px 13px;
  background: #F4EFE4;
  border: 1px solid rgba(154, 123, 79, 0.45);
  margin-bottom: 12px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

.hb-checkout-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.hb-checkout-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px solid var(--hb-border-hairline);
  font-size: 14.5px;
}

.hb-order-card {
  padding: 16px 18px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  margin-bottom: 14px;
}

.hb-order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(227, 220, 200, 0.7);
}

.hb-order-no {
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-muted);
  letter-spacing: 0.02em;
}

.hb-order-no strong {
  color: var(--hb-ink-primary);
  font-weight: 600;
}

.hb-order-badge {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.hb-order-badge.is-pending {
  background: rgba(154, 123, 79, 0.14);
  color: #7D5E33;
  border: 1px solid rgba(154, 123, 79, 0.35);
}

.hb-order-badge.is-visit {
  background: rgba(29, 27, 24, 0.08);
  color: var(--hb-ink-primary);
  border: 1px solid var(--hb-border-strong);
}

.hb-order-badge.is-cancel {
  background: rgba(130, 121, 104, 0.14);
  color: var(--hb-ink-muted);
  border: 1px solid rgba(130, 121, 104, 0.3);
}

.hb-order-badge.is-refund {
  background: rgba(180, 46, 36, 0.09);
  color: var(--hb-seal);
  border: 1px solid rgba(180, 46, 36, 0.28);
}

.hb-order-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.hb-order-item-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hb-ink-primary);
}

.hb-order-meta {
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

.hb-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(227, 220, 200, 0.6);
}

.hb-refund-box {
  margin-top: 12px;
  padding: 14px;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-strong);
}

.hb-refund-box-title {
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hb-ink-primary);
  margin-bottom: 10px;
}

.hb-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hb-profile-edit-box {
  margin-top: 14px;
  padding: 16px;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-strong);
}

.hb-danger-link {
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-muted);
  border-bottom: 1px solid rgba(130, 121, 104, 0.35);
  cursor: pointer;
}

.hb-danger-link:hover {
  color: var(--hb-seal);
  border-bottom-color: var(--hb-seal);
}

.hb-btn--outline {
  background: transparent;
  color: var(--hb-ink-primary);
  border: 1px solid var(--hb-ink-primary);
}

.hb-btn--outline:hover {
  background: var(--hb-bg-obsidian);
  color: #FAF8F3;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet 1024px & Mobile 768px/390px)
   ========================================================================== */
@media (max-width: 1100px) {
  .hb-co-grid, .hb-grid-4, .hb-authority-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hb-dept-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hb-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  /* Clean Mobile Slim Header (60px, ZERO vertical character wrapping!) */
  .hb-utility-bar,
  .hb-nav,
  .hb-scrolled-tools,
  .hb-header.is-scrolled .hb-scrolled-tools {
    display: none;
  }

  .hb-header-main,
  .hb-header.is-scrolled .hb-header-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 12px;
    height: 60px;
  }

  .hb-logo-img,
  .hb-header.is-scrolled .hb-logo-img {
    height: 36px;
  }

  .hb-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--hb-ink-primary);
  }

  .hb-mobile-right-tools {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .hb-mobile-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hb-ink-primary);
  }

  .hb-masterpiece-grid,
  .hb-detail-layout,
  .hb-editorial-feature,
  .hb-two-col-archive,
  .hb-co-rules {
    grid-template-columns: 1fr;
  }

  .hb-hero {
    padding-top: 42px;
  }

  .hb-hero-head {
    gap: 14px;
    margin-bottom: 32px;
  }

  .hb-hero-desc {
    max-width: 100%;
    font-size: 13px;
  }

  .hb-hero-stage {
    padding: 0 18px 34px;
  }

  .hb-hero-slide-img {
    max-height: 220px;
  }

  .hb-detail-gallery {
    position: static;
  }

  .hb-detail-stage {
    min-height: 300px;
  }

  .hb-advisory-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hb-advisory-cta {
    align-items: flex-start;
  }

  .hb-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hb-hero-desc br {
    display: none;
  }

  .hb-cta-stack {
    flex-wrap: nowrap;
  }

  .hb-cta-stack .hb-btn--primary {
    flex: 1 1 0;
    padding: 0 18px;
  }

  .hb-commerce-actions {
    flex-wrap: wrap;
  }

  .hb-commerce-actions .hb-btn:not(.hb-btn--icon) {
    flex: 1 1 128px;
    font-size: 12.5px;
    padding: 0 10px;
  }

  .hb-grid-3,
  .hb-grid-4,
  .hb-co-grid,
  .hb-authority-grid,
  .hb-form-grid,
  .hb-service-grid {
    grid-template-columns: 1fr;
  }

  .hb-lb-stage {
    padding: 16px;
  }
}

/* ==========================================================================
   OPERATOR A4 CERTIFICATE & CURATORIAL RESEARCH NOTE STUDIO
   ========================================================================== */
.hb-op-cert-row {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed rgba(154, 123, 79, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hb-op-cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--hb-ink-primary);
  background: var(--hb-bg-surface);
  border: 1px solid rgba(154, 123, 79, 0.55);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hb-op-cert-btn:hover {
  background: var(--hb-bg-obsidian);
  border-color: var(--hb-bg-obsidian);
  color: #FAF8F3;
}

.hb-cert-overlay {
  padding: 18px;
  align-items: flex-start;
  overflow-y: auto;
}

.hb-cert-studio {
  width: 100%;
  max-width: calc(210mm + 36px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hb-cert-studio-bar {
  background: #1D1B18;
  color: #F4EFE4;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 3px;
  font-family: var(--hb-font-sans);
}

.hb-cert-studio-left,
.hb-cert-studio-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hb-cert-op-pill {
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(196, 166, 118, 0.2);
  border: 1px solid rgba(196, 166, 118, 0.5);
  color: #DFC394;
  border-radius: 2px;
}

.hb-cert-mode-btn {
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 500;
  color: #D6CEBE;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  cursor: pointer;
}

.hb-cert-mode-btn.is-active {
  background: #FAF8F3;
  color: #1D1B18;
  border-color: #FAF8F3;
  font-weight: 600;
}

.hb-cert-tool-btn {
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #FAF8F3;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  cursor: pointer;
}

.hb-cert-tool-btn--print {
  background: var(--hb-seal);
  border-color: var(--hb-seal);
  color: #FFFFFF;
  font-weight: 600;
}

.hb-cert-tool-btn--print:hover {
  background: #96221A;
}

.hb-cert-studio-tip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: #FAF8F3;
  border: 1px solid var(--hb-border-strong);
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

.hb-cert-scroll-stage {
  overflow-x: auto;
  padding-bottom: 12px;
}

.hb-cert-sheet {
  position: relative;
  width: 210mm;
  height: 297mm;
  margin: 0 auto;
  background: #FAF8F3;
  color: #1D1B18;
  font-family: var(--hb-font-serif);
  padding: 10mm 11mm;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hb-cert-frame-outer {
  border: 1.5px solid #9A7B4F;
  padding: 3mm;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hb-cert-frame-inner {
  border: 0.6px solid #B9AC93;
  padding: 8.5mm 10mm 7.5mm;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.56);
}

.hb-cert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4mm;
  border-bottom: 1px solid #DDD4C1;
  margin-bottom: 5.5mm;
}

.hb-cert-logo {
  height: 33px;
  width: auto;
  object-fit: contain;
}

.hb-cert-issue-meta {
  text-align: right;
  font-family: var(--hb-font-sans);
  font-size: 10.5px;
  color: #7C7365;
  line-height: 1.55;
}

.hb-cert-issue-meta input {
  font-family: var(--hb-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #1D1B18;
  border: none;
  border-bottom: 1px dashed #B9AC93;
  background: transparent;
  text-align: right;
  width: 145px;
  outline: none;
}

.hb-cert-title-box {
  text-align: center;
  margin-bottom: 5.5mm;
}

.hb-cert-en {
  font-family: var(--hb-font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: #9A7B4F;
  font-weight: 600;
  margin-bottom: 2mm;
}

.hb-cert-h1 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: #1D1B18;
}

.hb-cert-art-grid {
  display: grid;
  grid-template-columns: 45mm 1fr;
  gap: 5.5mm;
  align-items: stretch;
  margin-bottom: 4.5mm;
}

.hb-cert-photo-box {
  border: 1px solid #B9AC93;
  background: #F4EFE4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58mm;
  max-height: 74mm;
  overflow: hidden;
  padding: 4px;
}

.hb-cert-photo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hb-cert-photo-empty {
  font-family: var(--hb-font-sans);
  font-size: 10.5px;
  color: #7C7365;
}

.hb-cert-spec-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.2px solid #1D1B18;
  border-bottom: 1px solid #B9AC93;
  table-layout: fixed;
}

.hb-cert-spec-table th {
  padding: 1.65mm 2mm;
  text-align: left;
  font-family: var(--hb-font-sans);
  font-size: 10px;
  font-weight: 500;
  color: #7C7365;
  border-bottom: 1px solid #DDD4C1;
  background: rgba(244, 239, 228, 0.55);
  vertical-align: middle;
  white-space: nowrap;
}

.hb-cert-spec-table th.hb-cert-th-mid {
  border-left: 1px solid #DDD4C1;
}

.hb-cert-spec-table td {
  padding: 1.6mm 2.3mm;
  border-bottom: 1px solid #DDD4C1;
  vertical-align: middle;
}

.hb-cert-cell {
  font-family: var(--hb-font-serif);
  font-size: 11.4px;
  line-height: 1.42;
  color: #1D1B18;
  outline: none;
  word-break: keep-all;
  min-height: 16px;
}

.hb-cert-cell--bold {
  font-weight: 600;
  font-size: 12.2px;
}

.hb-cert-cell:empty::before {
  content: attr(data-placeholder);
  color: #9C9283;
}

.hb-cert-cell:focus {
  background: rgba(154, 123, 79, 0.08);
}

.hb-cert-statement {
  padding: 3.2mm 4.5mm;
  background: rgba(244, 239, 228, 0.62);
  border-left: 2px solid #9A7B4F;
  font-size: 11.2px;
  line-height: 1.72;
  color: #1D1B18;
  word-break: keep-all;
  margin-bottom: 3.8mm;
}

.hb-cert-statement--disclaimer {
  margin-bottom: 2.5mm;
  font-size: 10.3px;
  line-height: 1.58;
  color: #7C7365;
  padding: 2.6mm 4mm;
}

.hb-cert-note-block {
  margin-bottom: 3.5mm;
}

.hb-cert-block-label {
  font-family: var(--hb-font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9A7B4F;
  margin-bottom: 1.8mm;
  padding-bottom: 1.2mm;
  border-bottom: 1px solid #DDD4C1;
}

.hb-cert-textarea {
  width: 100%;
  border: 1px dashed transparent;
  background: transparent;
  font-family: var(--hb-font-serif);
  font-size: 11.2px;
  line-height: 1.68;
  color: #4A443B;
  resize: none;
  outline: none;
  overflow: hidden;
  word-break: keep-all;
}

.hb-cert-textarea:hover { border-color: #DDD4C1; }
.hb-cert-textarea:focus {
  border-color: #9A7B4F;
  background: rgba(154, 123, 79, 0.05);
}

.hb-cert-sign {
  margin-top: auto;
  padding-top: 4mm;
  border-top: 1px solid #DDD4C1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.6mm;
}

.hb-cert-issue-date input {
  border: none;
  background: transparent;
  font-family: var(--hb-font-serif);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-align: center;
  color: #1D1B18;
  width: 190px;
  outline: none;
}

.hb-cert-sign-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9mm;
  margin: 0.5mm 0 1.5mm;
}

.hb-cert-sign-org {
  text-align: right;
  line-height: 1.6;
}

.hb-cert-sign-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.hb-cert-sign-rep {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #4A443B;
}

.hb-cert-seal-box {
  width: 17mm;
  height: 17mm;
  border: 1.2px dashed rgba(180, 46, 36, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hb-font-sans);
  font-size: 9px;
  color: rgba(180, 46, 36, 0.72);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.3;
}

.hb-cert-foot-meta {
  width: 100%;
  padding-top: 3mm;
  border-top: 0.6px solid #DDD4C1;
  text-align: center;
  font-family: var(--hb-font-sans);
  font-size: 9.2px;
  color: #7C7365;
  line-height: 1.65;
}

.hb-cert-op-select {
  font-family: var(--hb-font-sans);
  font-size: 12px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #FAF8F3;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  max-width: 270px;
  outline: none;
  cursor: pointer;
}

.hb-cert-op-select option {
  background: #1D1B18;
  color: #FAF8F3;
}

.hb-cert-watermark {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  transform: rotate(-28deg);
  user-select: none;
}

.hb-cert-watermark-main {
  font-family: var(--hb-font-serif);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(154, 123, 79, 0.15);
  border: 2.5px solid rgba(154, 123, 79, 0.18);
  padding: 10px 28px;
  margin-bottom: 10px;
  white-space: nowrap;
}

.hb-cert-watermark-sub {
  font-family: var(--hb-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(154, 123, 79, 0.34);
}

.hb-cert-sheet.is-sample-preview {
  user-select: none;
}

.hb-cert-sheet.is-sample-preview .hb-cert-watermark {
  display: flex;
}

.hb-cert-sheet.is-sample-preview input,
.hb-cert-sheet.is-sample-preview textarea,
.hb-cert-sheet.is-sample-preview .hb-cert-cell {
  pointer-events: none;
  cursor: default;
  border-color: transparent !important;
}

.hb-cert-sheet.is-sample-preview .hb-cert-issue-meta input {
  border-bottom: none;
  width: 175px;
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  body.is-printing-cert > *:not(#hbCertModal) {
    display: none !important;
  }
  body.is-printing-cert {
    background: #FFFFFF !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body.is-printing-cert #hbCertModal {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #FFFFFF !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  body.is-printing-cert .hb-cert-studio {
    max-width: none !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  body.is-printing-cert .hb-cert-studio-bar,
  body.is-printing-cert .hb-cert-studio-tip {
    display: none !important;
  }
  body.is-printing-cert .hb-cert-scroll-stage {
    overflow: visible !important;
    padding: 0 !important;
  }
  body.is-printing-cert .hb-cert-sheet {
    box-shadow: none !important;
    margin: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    page-break-after: avoid !important;
  }
  body.is-printing-cert .hb-cert-issue-meta input {
    border-bottom: none !important;
  }
  body.is-printing-cert .hb-cert-textarea {
    border-color: transparent !important;
  }
  body.is-printing-cert .hb-cert-cell:empty::before {
    content: '' !important;
  }
}

/* ==========================================================================
   HOME REOPENING RIBBON & OPERATOR INTEGRATED MANAGEMENT DESK (#/admin)
   ========================================================================== */
.hb-opening-ribbon {
  background: #F4EFE4;
  border-top: 1px solid var(--hb-border-hairline);
  border-bottom: 1px solid var(--hb-border-hairline);
  padding: 11px 0;
}

.hb-opening-ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-family: var(--hb-font-sans);
  font-size: 13px;
  color: var(--hb-ink-secondary);
  text-align: center;
}

.hb-opening-tag {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #FAF8F3;
  background: var(--hb-seal);
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.hb-opening-msg {
  word-break: keep-all;
}

.hb-opening-link {
  color: var(--hb-ink-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--hb-bronze);
  white-space: nowrap;
}

.hb-opening-link:hover {
  color: var(--hb-seal);
  border-bottom-color: var(--hb-seal);
}

.hb-footer-admin-link {
  color: #9A9080;
  font-size: 12px;
  transition: color 0.2s ease;
}

.hb-footer-admin-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Admin Desk Layout */
.hb-admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--hb-border-hairline);
}

.hb-admin-notice {
  padding: 11px 15px;
  background: #F4EFE4;
  border-left: 2px solid var(--hb-bronze);
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--hb-ink-secondary);
  margin-bottom: 22px;
  word-break: keep-all;
}

.hb-admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.hb-admin-kpi {
  padding: 16px 18px;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
}

.hb-admin-kpi-label {
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  color: var(--hb-ink-muted);
  margin-bottom: 6px;
}

.hb-admin-kpi-val {
  font-size: 22px;
  font-weight: 600;
  color: var(--hb-ink-primary);
  line-height: 1.25;
}

.hb-admin-kpi-sub {
  font-family: var(--hb-font-sans);
  font-size: 11px;
  color: var(--hb-bronze);
  margin-top: 4px;
}

.hb-admin-card {
  padding: 20px 22px;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  margin-bottom: 20px;
}

.hb-admin-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hb-border-hairline);
}

.hb-admin-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--hb-ink-primary);
}

.hb-admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.hb-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
}

.hb-admin-table th {
  text-align: left;
  padding: 9px 10px;
  background: var(--hb-bg-hanji);
  color: var(--hb-ink-muted);
  font-weight: 600;
  border-top: 1px solid var(--hb-ink-primary);
  border-bottom: 1px solid var(--hb-border-strong);
  white-space: nowrap;
}

.hb-admin-table td {
  padding: 10px;
  border-bottom: 1px solid var(--hb-border-hairline);
  color: var(--hb-ink-primary);
  vertical-align: middle;
}

.hb-admin-table select,
.hb-admin-table input {
  font-family: var(--hb-font-sans);
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid var(--hb-border-strong);
  background: #FFFFFF;
  color: var(--hb-ink-primary);
  border-radius: 2px;
}

.hb-doc-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.hb-doc-type-card {
  padding: 14px 16px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-strong);
  border-radius: 2px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hb-doc-type-card:hover {
  border-color: var(--hb-ink-primary);
}

.hb-doc-type-card.is-active {
  background: var(--hb-bg-obsidian);
  border-color: var(--hb-bg-obsidian);
  color: #FAF8F3;
}

.hb-doc-type-card strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 4px;
}

.hb-doc-type-card span {
  display: block;
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  color: var(--hb-ink-muted);
  line-height: 1.5;
  word-break: keep-all;
}

.hb-doc-type-card.is-active span {
  color: #CFC6B6;
}

.hb-builder-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 70px 130px 44px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

/* Business A4 Document Sheet */
.hb-doc-sheet {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  background: #FFFFFF;
  color: #1D1B18;
  font-family: var(--hb-font-sans);
  padding: 14mm 15mm;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.hb-doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 5mm;
  border-bottom: 2px solid #1D1B18;
  margin-bottom: 6mm;
}

.hb-doc-title-en {
  font-family: var(--hb-font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #9A7B4F;
  font-weight: 600;
}

.hb-doc-title-kr {
  font-family: var(--hb-font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.hb-doc-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8mm;
  margin-bottom: 6mm;
  font-size: 11.5px;
  line-height: 1.65;
}

.hb-doc-party-box {
  padding: 3.5mm 4mm;
  background: #FAF8F3;
  border: 1px solid #DDD4C1;
}

.hb-doc-party-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9A7B4F;
  margin-bottom: 2mm;
}

.hb-doc-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  margin-bottom: 5mm;
}

.hb-doc-items-table th {
  background: #1D1B18;
  color: #FAF8F3;
  padding: 2.5mm 2.5mm;
  text-align: left;
  font-weight: 500;
  font-size: 10.5px;
}

.hb-doc-items-table td {
  padding: 2.5mm 2.5mm;
  border-bottom: 1px solid #DDD4C1;
  vertical-align: middle;
}

.hb-doc-totals {
  margin-left: auto;
  width: 78mm;
  border-top: 1.5px solid #1D1B18;
  padding-top: 2.5mm;
  font-size: 12px;
  margin-bottom: 6mm;
}

.hb-doc-total-row {
  display: flex;
  justify-content: space-between;
  padding: 1.4mm 0;
  color: #4A443B;
}

.hb-doc-total-row--grand {
  margin-top: 1.5mm;
  padding-top: 2mm;
  border-top: 1px solid #B9AC93;
  font-size: 14.5px;
  font-weight: 700;
  color: #1D1B18;
}

.hb-doc-bank-box {
  padding: 3.5mm 4.5mm;
  background: #FAF8F3;
  border-left: 2.5px solid #9A7B4F;
  font-size: 11.2px;
  line-height: 1.7;
  margin-bottom: 5mm;
}

.hb-doc-sign-footer {
  margin-top: auto;
  padding-top: 4mm;
  border-top: 1px solid #DDD4C1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5px;
  color: #7C7365;
}

@media (max-width: 900px) {
  .hb-admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hb-doc-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hb-builder-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hb-doc-type-grid {
    grid-template-columns: 1fr;
  }
}

/* My Hosanbang Collector Space Enhancements */
.hb-my-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.hb-my-summary-card {
  padding: 13px 14px;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  border-radius: 2px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hb-my-summary-card:hover {
  border-color: var(--hb-ink-primary);
  background: var(--hb-bg-hanji);
}

.hb-my-summary-label {
  font-family: var(--hb-font-sans);
  font-size: 11px;
  color: var(--hb-ink-muted);
  margin-bottom: 4px;
}

.hb-my-summary-val {
  font-size: 18px;
  font-weight: 600;
  color: var(--hb-ink-primary);
}

.hb-my-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hb-border-hairline);
}

.hb-my-section-title {
  font-family: var(--hb-font-serif);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--hb-ink-primary);
}

.hb-my-empty-box {
  padding: 26px 20px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  text-align: center;
  font-family: var(--hb-font-sans);
  font-size: 13px;
  line-height: 1.75;
  color: var(--hb-ink-muted);
  word-break: keep-all;
}

.hb-my-col-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #F4EFE4;
  border: 1px solid var(--hb-border-strong);
  margin-bottom: 14px;
}

.hb-my-col-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  margin-bottom: 10px;
}

.hb-my-col-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--hb-ink-muted);
}

.hb-my-col-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hb-my-tracking-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 10px;
  background: #EEF6F1;
  border: 1px solid rgba(30, 107, 69, 0.35);
  color: #1E6B45;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  font-weight: 600;
  border-radius: 2px;
}

.hb-visit-card {
  padding: 14px 16px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  margin-bottom: 10px;
  font-family: var(--hb-font-sans);
  font-size: 13px;
}

@media (max-width: 640px) {
  .hb-my-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hb-my-col-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hb-artist-brief {
  padding: 12px 15px;
  margin-bottom: 16px;
  background: var(--hb-bg-hanji);
  border-left: 2px solid var(--hb-bronze);
  font-family: var(--hb-font-sans);
  font-size: 13px;
  line-height: 1.75;
  color: var(--hb-ink-primary);
  word-break: keep-all;
}

.hb-artist-brief-tag {
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--hb-bronze);
}

.hb-book-rev-box {
  margin-top: 18px;
  padding: 13px 16px;
  background: #F4EFE4;
  border: 1px solid var(--hb-border-strong);
  border-left: 2.5px solid var(--hb-seal);
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--hb-ink-secondary);
  word-break: keep-all;
}

.hb-book-rev-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--hb-seal);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.hb-doc-edit-line:empty::before {
  content: attr(data-placeholder);
  color: #9A9080;
}

.hb-doc-sheet [contenteditable="true"]:hover {
  background: rgba(154, 123, 79, 0.08);
  outline: 1px dashed rgba(154, 123, 79, 0.45);
}

.hb-doc-sheet [contenteditable="true"]:focus {
  background: rgba(154, 123, 79, 0.12);
  outline: 1px solid #9A7B4F;
}

@media print {
  body.is-printing-doc > *:not(#hbDocModal) {
    display: none !important;
  }
  body.is-printing-doc {
    background: #FFFFFF !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body.is-printing-doc #hbDocModal {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #FFFFFF !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  body.is-printing-doc .hb-cert-studio {
    max-width: none !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  body.is-printing-doc .hb-cert-studio-bar,
  body.is-printing-doc .hb-cert-studio-tip {
    display: none !important;
  }
  body.is-printing-doc .hb-cert-scroll-stage {
    overflow: visible !important;
    padding: 0 !important;
  }
  body.is-printing-doc .hb-doc-sheet {
    box-shadow: none !important;
    margin: 0 !important;
    width: 210mm !important;
    min-height: 295mm !important;
  }
  body.is-printing-doc .hb-doc-sheet [contenteditable="true"] {
    outline: none !important;
    background: transparent !important;
  }
  body.is-printing-doc .hb-doc-edit-line:empty::before {
    content: '' !important;
  }
}

/* Cart Purchase Flow Indicator & Admin Quick-Preview Bars */
.hb-cart-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  color: var(--hb-ink-muted);
}

.hb-cart-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hb-cart-step.is-current {
  color: var(--hb-ink-primary);
  font-weight: 600;
}

.hb-cart-step-sep {
  opacity: 0.45;
}

.hb-admin-preview-bar {
  margin-top: 12px;
  padding: 11px 14px;
  background: rgba(154, 123, 79, 0.08);
  border: 1px dashed rgba(154, 123, 79, 0.42);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-secondary);
}

.hb-admin-preview-bar strong {
  color: var(--hb-ink-primary);
}

.hb-admin-cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(180, 46, 36, 0.08);
  color: #8F221A;
  border: 1px solid rgba(180, 46, 36, 0.25);
  border-radius: 2px;
}

.hb-admin-cart-pill.is-idle {
  background: var(--hb-bg-hanji);
  color: var(--hb-ink-muted);
  border-color: var(--hb-border-hairline);
}

/* Mobile 60fps Smoothness: avoid costly backdrop-filter repaints and header reflow on touch scroll */
@media (max-width: 960px) {
  html {
    scroll-behavior: auto;
  }
  a, button {
    touch-action: manipulation;
  }
  .hb-header {
    background: #F6F3EB;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: box-shadow 180ms ease;
  }
  .hb-header.is-scrolled {
    background: #F6F3EB;
  }
  .hb-header-main,
  .hb-header.is-scrolled .hb-header-main {
    padding: 10px 0;
    transition: none;
  }
  .hb-logo-img,
  .hb-header.is-scrolled .hb-logo-img {
    height: 36px;
    transition: none;
  }
  .hb-overlay,
  .hb-drawer-backdrop,
  .hb-detail-zoom-fab {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Mobile Always-Visible 6-Collection 3x2 Grid Bar */
.hb-mobile-cat-bar {
  display: none;
}

@media (max-width: 960px) {
  .hb-mobile-cat-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #FAF8F3;
    border-bottom: 1px solid var(--hb-border-hairline);
  }
  .hb-mobile-cat-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 6px;
    font-family: var(--hb-font-sans);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--hb-ink-secondary);
    text-align: center;
    white-space: nowrap;
    border-right: 1px solid rgba(227, 220, 200, 0.7);
    border-bottom: 1px solid rgba(227, 220, 200, 0.7);
    transition: background 150ms ease, color 150ms ease;
  }
  .hb-mobile-cat-link:nth-child(3n) {
    border-right: none;
  }
  .hb-mobile-cat-link:nth-child(n+4) {
    border-bottom: none;
  }
  .hb-mobile-cat-link.is-active {
    background: rgba(180, 46, 36, 0.07);
    color: #8F221A;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--hb-seal);
  }
}

/* Admin-Only Hidden Artwork Detail Banner */
.hb-admin-hidden-banner {
  margin: 0 0 20px;
  padding: 12px 16px;
  background: rgba(180, 46, 36, 0.08);
  border: 1px solid rgba(180, 46, 36, 0.35);
  border-left: 3px solid var(--hb-seal);
  font-family: var(--hb-font-sans);
  font-size: 12.5px;
  line-height: 1.65;
  color: #7A1E17;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ==========================================================================
   OPERATOR ANALYTICS — 14-Day Daily Bar Chart & 3-Column Insight Cards
   ========================================================================== */
.hb-chart-bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 176px;
  padding: 20px 10px 8px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  margin-bottom: 10px;
}
.hb-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}
.hb-chart-val {
  font-family: var(--hb-font-sans);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--hb-ink-primary);
  margin-bottom: 4px;
  line-height: 1;
}
.hb-chart-track {
  width: 100%;
  max-width: 28px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
.hb-chart-bar {
  width: 100%;
  min-height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--hb-ink-primary);
  transition: height 0.25s ease, opacity 0.2s ease;
}
.hb-chart-bar.is-today {
  background: var(--hb-seal);
}
.hb-chart-bar.is-zero {
  background: rgba(29, 27, 24, 0.12);
}
.hb-chart-lbl {
  margin-top: 6px;
  font-family: var(--hb-font-sans);
  font-size: 10px;
  color: var(--hb-ink-muted);
  white-space: nowrap;
}
.hb-chart-lbl.is-today {
  color: var(--hb-seal);
  font-weight: 600;
}
.hb-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  color: var(--hb-ink-muted);
}

.hb-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.hb-insight-card {
  background: var(--hb-bg-surface);
  border: 1px solid var(--hb-border-hairline);
  padding: 18px 18px 16px;
}
.hb-insight-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hb-ink-primary);
  margin: 0 0 4px;
}
.hb-insight-sub {
  font-family: var(--hb-font-sans);
  font-size: 11.5px;
  color: var(--hb-ink-muted);
  margin: 0 0 14px;
}
.hb-hbar-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hb-hbar-row {
  font-family: var(--hb-font-sans);
  font-size: 12px;
}
.hb-hbar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--hb-ink-secondary);
}
.hb-hbar-head strong {
  color: var(--hb-ink-primary);
  font-weight: 600;
}
.hb-hbar-track {
  height: 6px;
  background: rgba(29, 27, 24, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.hb-hbar-fill {
  height: 100%;
  background: var(--hb-bronze);
  border-radius: 3px;
}
.hb-hbar-fill.is-top {
  background: var(--hb-seal);
}
.hb-search-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hb-search-chip-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--hb-bg-hanji);
  border: 1px solid var(--hb-border-hairline);
  font-family: var(--hb-font-sans);
  font-size: 12px;
  color: var(--hb-ink-primary);
}
.hb-search-chip-stat span {
  font-size: 11px;
  color: var(--hb-bronze);
  font-weight: 600;
}

@media (max-width: 960px) {
  .hb-insight-grid {
    grid-template-columns: 1fr;
  }
  .hb-chart-bars {
    gap: 4px;
    padding: 16px 6px 8px;
    overflow-x: auto;
  }
  .hb-chart-lbl {
    font-size: 9px;
  }
}






