/* ============================================================
   CRETOP — IBM Carbon Override (cretop-ibm.css v2.0)
   - Replaces cretop-apple.css
   - IBM Blue 60 (#335aff) single accent
   - Sharp 0px corners everywhere
   - IBM Plex Sans KR / Pretendard fallback
   - Top nav = Carbon UI Shell (48px, full-bleed black)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.css');

:root {
  --ibm-blue:        #335aff;
  --ibm-blue-hover:  #1f47e3;
  --ibm-blue-active: #0d2ab3;
  --ibm-bg:          #ffffff;
  --ibm-layer:       #f4f4f4;
  --ibm-text:        #161616;
  --ibm-text-mut:    #525252;
  --ibm-text-help:   #6f6f6f;
  --ibm-border:      #e0e0e0;
  --ibm-border-strong:#8d8d8d;
  --ibm-error:       #da1e28;
  --ibm-success:     #24a148;
  --ibm-warning:     #f1c21b;
  --ibm-shell:       #161616;     /* UI shell black */
}

html, body {
  margin: 0; padding: 0;
  background: var(--ibm-bg);
  color: var(--ibm-text);
  font-family: 'IBM Plex Sans KR', 'IBM Plex Sans', 'Pretendard Variable',
               -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: 0.16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Top Navigation — Carbon UI Shell header (48px, full-bleed)
   ============================================================ */
.ibm-nav {
  position: sticky; top: 0; z-index: 9999;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--ibm-shell);
  color: #ffffff;
  display: flex; align-items: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  border-bottom: 1px solid var(--ibm-shell);
  box-sizing: border-box;
  gap: 0;
}
.ibm-nav-brand {
  display: flex; align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  font-weight: 400;
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.16px;
  white-space: nowrap;
}
.ibm-nav-brand-mark {
  display: inline-block;
  width: 110px; height: 100%;
  background: url('https://cdn.imweb.me/upload/S2016083157c63a62163fa/6932289b5d823.png') left center / contain no-repeat;
  border-radius: 0;
  flex-shrink: 0;
}
.ibm-nav-divider {
  width: 1px; height: 24px;
  background: #393939;
  margin: 0;
}
.ibm-nav-list {
  display: flex; align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  gap: 0;
  flex: 1;
  height: 48px;
  overflow: visible;
  flex-wrap: nowrap;
  min-width: 0;
}
.ibm-nav-list::-webkit-scrollbar { display: none; }
@media (max-width: 1023px) {
  .ibm-nav-list { overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
}
.ibm-nav-link {
  display: inline-flex; align-items: center;
  height: 48px;
  padding: 0 16px;
  border: none;
  background: transparent;
  color: #c6c6c6;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.16px;
  border-radius: 0;
  transition: background 70ms cubic-bezier(0.2, 0, 0.38, 0.9),
              color 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
  white-space: nowrap;
  position: relative;
}
.ibm-nav-link:hover { color: #ffffff; background: #2c2c2c; }
.ibm-nav-link.is-active {
  color: #ffffff;
  background: #393939;
}
.ibm-nav-link.is-active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--ibm-blue);
}
.ibm-nav-link:focus-visible { outline: 2px solid var(--ibm-blue); outline-offset: -2px; }

.ibm-nav-spacer { flex: 1; min-width: 0; height: 48px; list-style: none; }
.ibm-nav-btn {
  background: var(--ibm-blue);
  color: #ffffff;
  padding: 0 20px;
  margin: 0 8px;
  height: 32px;
  align-self: center;
}
.ibm-nav-btn:hover { background: #1f47e3; color: #ffffff; }
.ibm-nav-btn.is-active { background: var(--ibm-blue); color: #ffffff; }
.ibm-nav-btn.is-active::after { display: none; }

.ibm-nav-dropdown { position: relative; display: inline-flex; align-items: center; height: 48px; }
.ibm-nav-dropdown > .ibm-nav-link::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  margin-right: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  order: 2;
  margin-left: 8px;
}
.ibm-nav-menu {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  min-width: 256px;
  background: #262626;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 10000;
}
.ibm-nav-dropdown.is-open .ibm-nav-menu,
.ibm-nav-dropdown:hover .ibm-nav-menu,
.ibm-nav-dropdown:focus-within .ibm-nav-menu { display: block; }
.ibm-nav-menu a {
  display: block;
  padding: 0 16px;
  height: 40px;
  line-height: 40px;
  color: #c6c6c6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border-radius: 0;
  letter-spacing: 0.16px;
  transition: background 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
}
.ibm-nav-menu a:hover { background: #353535; color: #ffffff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 834px) {
  .ibm-nav { padding: 0 8px; }
  .ibm-nav-brand { font-size: 14px; padding: 0 12px; gap: 8px; }
  .ibm-nav-link { padding: 0 12px; font-size: 13px; }
}
