/* 이 파일은 생성된 결과물입니다. 직접 수정하지 마세요.
   원본: src/app/globals.css (public-hub:start ~ public-hub:end)
   수정: 원본을 고친 뒤 npm run build:hub 를 다시 실행하세요. */
:root {
  --page: #f5f7f9;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --text: #17202b;
  --muted: #70808e;
  --line: #e4e9ed;
  --brand: #079e70;
  --brand-strong: #067f5b;
  --brand-soft: #e6f6f0;
  --info: #377bb5;
  --info-soft: #eaf3fb;
  --warning: #c97914;
  --warning-soft: #fff3e2;
  --danger: #c2453d;
  --danger-soft: #fdeeec;
  --disabled: #9aa5af;
  --disabled-soft: #eef1f3;
  --shadow: 0 8px 26px rgba(26, 43, 58, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

/* public-hub:start — withmaking.com 공개 서비스 Hub. Works 업무 셸과 독립된 고객용 화면.
   이 파일의 처음부터 public-hub:end 까지가 Cafe24 정적 배포물의 CSS 원본이다 (scripts/build-public-hub.ts). */
.public-hub-page {
  min-height: 100vh;
  color: #142231;
  background:
    radial-gradient(circle at 92% 9%, rgba(7, 158, 112, 0.09), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
}

.public-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 32, 43, 0.09);
  background: rgba(255, 255, 255, 0.9);
}

.public-hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.public-hub-brand > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 36px;
  border-radius: 11px;
  color: #ffffff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.public-hub-brand strong {
  font-size: 19px;
  letter-spacing: -0.04em;
}

.public-hub-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #3e4b57;
  font-size: 14px;
  font-weight: 600;
}

.public-hub-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.public-hub-header nav a:hover {
  color: var(--brand-strong);
}

.public-hub-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) 0 72px;
}

.public-hub-hero {
  max-width: 820px;
  margin: 0 auto clamp(38px, 5vw, 54px);
  text-align: center;
}

.public-hub-hero p {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.public-hub-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.public-hub-hero > span {
  display: block;
  margin-top: 16px;
  color: #657381;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.7;
}

.public-hub-services {
  scroll-margin-top: 24px;
}

.public-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.public-hub-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 14px 16px;
  min-width: 0;
  min-height: 176px;
  padding: 24px;
  border: 1px solid rgba(23, 32, 43, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(27, 51, 70, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.public-hub-card:hover,
button.public-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 158, 112, 0.48);
  box-shadow: 0 16px 38px rgba(27, 51, 70, 0.1);
}

.public-hub-card-button {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.public-hub-card-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.public-hub-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: var(--brand);
  background: var(--brand-soft);
}

.public-hub-card-copy {
  align-self: center;
  min-width: 0;
}

.public-hub-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.public-hub-card-title-row strong {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.public-hub-card-title-row em {
  padding: 3px 7px;
  border-radius: 999px;
  color: #c9f9e7;
  background: rgba(7, 158, 112, 0.42);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.public-hub-card-copy > span:last-child {
  display: block;
  margin-top: 6px;
  color: #71808d;
  font-size: 13px;
  line-height: 1.55;
}

.public-hub-card-action {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  border: 1px solid rgba(7, 158, 112, 0.52);
  border-radius: 10px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
}

.public-hub-card.is-featured {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  min-height: 118px;
  padding: 26px 30px;
}

.public-hub-card.is-featured .public-hub-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 19px;
}

.public-hub-card.is-featured .public-hub-card-title-row strong {
  font-size: 20px;
}

.public-hub-card.is-featured .public-hub-card-action {
  grid-column: auto;
  min-width: 170px;
  padding: 0 18px;
}

.public-hub-card.is-blue .public-hub-card-icon {
  color: #2f77d0;
  background: #ebf3ff;
}

.public-hub-card.is-amber .public-hub-card-icon {
  color: #ad6e13;
  background: #fff4df;
}

.public-hub-card.is-navy {
  color: #ffffff;
  border-color: #17344b;
  background: #102b40;
}

.public-hub-card.is-navy .public-hub-card-icon {
  color: #73ddb7;
  background: rgba(7, 158, 112, 0.2);
}

.public-hub-card.is-navy .public-hub-card-copy > span:last-child {
  color: #bac8d2;
}

.public-hub-card.is-navy .public-hub-card-action {
  color: #8ee6c7;
  border-color: rgba(115, 221, 183, 0.6);
}

.public-hub-card.is-disabled {
  color: #66727d;
  background: rgba(248, 250, 251, 0.88);
  box-shadow: none;
}

.public-hub-card.is-disabled .public-hub-card-icon {
  color: var(--disabled);
  background: var(--disabled-soft);
}

.public-hub-card.is-disabled .public-hub-card-action {
  color: var(--disabled);
  border-color: var(--line);
}

.public-hub-footer {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 92px;
  padding: 20px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(23, 32, 43, 0.09);
  color: #7b8894;
  background: #ffffff;
  font-size: 13px;
}

.public-hub-footer strong {
  color: #263541;
  font-size: 15px;
}

.public-hub-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

/* 정적 배포물은 선택창을 DOM 에 두고 hidden 으로 감춘다. display 를 지정했으므로 명시적으로 되돌린다.
   (Next.js Hub 는 열릴 때만 렌더링하므로 이 규칙의 영향을 받지 않는다.) */
.public-hub-dialog-backdrop[hidden] {
  display: none;
}

.public-hub-dialog {
  width: min(100%, 520px);
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.public-hub-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.public-hub-dialog-head span {
  color: #059669;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.public-hub-dialog-head h2 {
  margin: 5px 0 0;
  color: #0f172a;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.public-hub-dialog-close {
  display: inline-grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
}

.public-hub-dialog-close:hover { color: #0f172a; background: #f8fafc; }
.public-hub-dialog-close:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.3); outline-offset: 2px; }

.public-hub-dialog-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-hub-dialog-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  color: #0f172a;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.public-hub-dialog-options a.public-hub-dialog-option:hover {
  transform: translateY(-2px);
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.public-hub-dialog-options a.public-hub-dialog-option:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.3); outline-offset: 2px; }
.public-hub-dialog-option.is-disabled { color: #64748b; background: #f8fafc; cursor: not-allowed; }

.public-hub-dialog-option-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: #047857;
  background: #ecfdf5;
}

.public-hub-dialog-option > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.public-hub-dialog-options strong { font-size: 15px; }
.public-hub-dialog-options small { color: #64748b; font-size: 12px; line-height: 1.45; }

@media (max-width: 900px) {
  .public-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-hub-card.is-featured {
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
  }

  .public-hub-card.is-featured .public-hub-card-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .public-hub-header {
    min-height: 66px;
  }

  .public-hub-brand strong {
    font-size: 16px;
  }

  .public-hub-header nav {
    gap: 12px;
    font-size: 12px;
  }

  .public-hub-main {
    width: min(100% - 28px, 1180px);
    padding: 48px 0 52px;
  }

  .public-hub-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .public-hub-card,
  .public-hub-card.is-featured {
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    min-height: 148px;
    padding: 20px;
  }

  .public-hub-card-icon,
  .public-hub-card.is-featured .public-hub-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .public-hub-card.is-featured .public-hub-card-title-row strong {
    font-size: 17px;
  }

  .public-hub-card.is-featured .public-hub-card-action,
  .public-hub-card-action {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .public-hub-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .public-hub-dialog-backdrop { padding: 16px; }
  .public-hub-dialog { padding: 18px; border-radius: 18px; }
  .public-hub-dialog-options { grid-template-columns: 1fr; }
  .public-hub-dialog-option { min-height: 76px; }
}
