@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Hedvig Letters Serif';
  src: url('Hedvig_Letters_Serif/HedvigLettersSerif-Regular-VariableFont_opsz.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

:root { --text: #14110e; --bg: #fafafa; --grey: #e6e6e6; --line: #a8a8a8; }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--w-font);
  color: var(--text);
  background: var(--bg);
}

.unlock {
  position: fixed; top: 10px; left: 14px; z-index: 30;
  width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent; color: #d4d4d4;
  font-size: 10px; cursor: pointer;
}
.unlock:hover { color: #999; }

html, body { height: 100%; }

main {
  height: 100vh; min-height: 560px;
  padding: 28px 20px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.logo { margin: 0; line-height: 0; flex: none; }
.logo img { display: block; width: min(260px, 55vw); height: auto; }
.tableview .logo img { width: min(120px, 25vw); }
.tableview main { padding-top: 10px; }

.links { flex: 1; display: grid; grid-template-columns: repeat(2, auto); gap: 4px 56px; justify-content: center; align-content: center; justify-items: center; }
.links[hidden] { display: none; }
.links a { display: block; line-height: 0; transition: transform .25s ease; }
.links a:hover { transform: translateY(-4px) scale(1.03); }
.wl { font-family: 'Outfit', system-ui, sans-serif; font-weight: 700; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; display: inline-block; }
.wl b, .wl i { font-weight: 700; font-style: normal; }
.wl b { color: #000; }
.r1 .wl { font-size: 17px; }
.links img { display: block; width: clamp(260px, 31vw, 450px); height: auto;  }
@media (max-width: 700px) { .links { grid-template-columns: 1fr; } }

}

.foot { flex: none; line-height: 0; }
.foot img { display: block; height: 11px; width: auto; opacity: .85; }


/* login (top right): 공통 프로필(wae.css) */
.auth { position: fixed; top: 14px; right: 24px; z-index: 30; }
@media (max-width: 720px) { .auth { top: 10px; right: 16px; } }

/* ---- landing (public view): intro -> services panel ---- */
:root { --u: clamp(0.72px, calc(100vw / 1440), 2.6px); }
body:not(.tableview) { overflow: hidden; height: 100%; }
body:not(.tableview) main { position: relative; display: block; height: 100vh; height: 100svh; min-height: 0; max-width: none; margin: 0; padding: 0; overflow: hidden; }

body:not(.tableview) .brand { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; transition: left .9s cubic-bezier(.7, 0, .2, 1), transform .9s cubic-bezier(.7, 0, .2, 1); will-change: left, transform; }
body:not(.tableview) .logo img { width: calc(340 * var(--u)); }
.tag { margin: calc(22 * var(--u)) 0 0; font: 400 calc(19 * var(--u))/1.4 var(--w-font); letter-spacing: .06em; color: #6f6f6f; }
.tableview .tag, .tableview .chev { display: none; }
body[data-view="list"]:not(.tableview) .brand { left: 9%; transform: translate(0, -50%); text-align: left; }

body:not(.tableview) .links { position: absolute; top: 50%; right: 9%; width: 46%; margin: 0; flex: none; display: block; justify-content: normal; justify-items: stretch; align-content: normal; gap: 0; border-top: 1px solid #dcdcdc; transform: translate(70vw, -50%); opacity: 0; visibility: hidden; transition: transform .9s cubic-bezier(.7, 0, .2, 1), opacity .5s ease, visibility 0s linear .9s; }
body[data-view="list"]:not(.tableview) .links { transform: translate(0, -50%); opacity: 1; visibility: visible; transition: transform .9s cubic-bezier(.7, 0, .2, 1), opacity .6s ease .1s, visibility 0s; }

.links { --rowh: calc(72vh / var(--n, 7)); }
.links a.row { display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; padding: calc(var(--rowh) * .22) calc(8 * var(--u)); border-bottom: 1px solid #dcdcdc; color: #111; text-decoration: none; line-height: 1; transition: background .2s ease, padding .2s ease; }
.links a.row:hover { background: #fff; padding-left: calc(22 * var(--u)); transform: none; }
.row .wl { font-size: min(calc(54 * var(--u)), calc(var(--rowh) * .56)); }
.row .ar { font: 400 calc(24 * var(--u))/1 var(--w-font); color: #111; opacity: 0; transform: translate(-6px, 6px); transition: opacity .2s ease, transform .2s ease; padding-right: calc(10 * var(--u)); }
.links a.row:hover .ar { opacity: 1; transform: none; }

body:not(.tableview) .foot { position: absolute; left: 9%; right: 9%; bottom: calc(32 * var(--u)); display: flex; justify-content: space-between; align-items: center; opacity: 0; transition: opacity .5s ease; }
body[data-view="list"]:not(.tableview) .foot { opacity: 1; transition-delay: .5s; }
.foot img { height: calc(13 * var(--u)); width: auto; }
.foot span { font: 400 calc(13 * var(--u)) var(--w-font); color: #9a9a9a; letter-spacing: .02em; }
.tableview .foot span { display: none; }

.chev { position: fixed; top: 50%; z-index: 20; width: calc(64 * var(--u)); height: calc(64 * var(--u)); margin-top: calc(-32 * var(--u)); padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #8a8a8a; transition: opacity .4s ease, color .2s ease; -webkit-tap-highlight-color: transparent; }
.chev:hover { color: #111; }
.chev i { display: block; width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.chev.next { right: calc(24 * var(--u)); }
.chev.next i { transform: rotate(45deg); animation: nudge 1.8s ease-in-out infinite; }
.chev.prev { left: calc(18 * var(--u)); opacity: 0; pointer-events: none; }
.chev.prev i { transform: rotate(-135deg); }
body[data-view="list"] .chev.next { opacity: 0; pointer-events: none; }
body[data-view="list"] .chev.prev { opacity: 1; pointer-events: auto; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 6px 0; } }

@media (max-width: 760px) {
  body:not(.tableview) .logo img { width: 190px; }
  .tag { margin-top: 16px; font-size: 15px; }
  body[data-view="list"]:not(.tableview) .brand { left: 24px; top: 96px; transform: none; text-align: left; }
  body[data-view="list"]:not(.tableview) .logo img { width: 120px; }
  body[data-view="list"] .tag { display: none; }
  body:not(.tableview) .links { top: 190px; left: 24px; right: 24px; width: auto; bottom: 70px; transform: translate(110vw, 0); overflow-y: auto; }
  body[data-view="list"]:not(.tableview) .links { transform: translate(0, 0); }
  .links a.row { padding: 15px 2px; }
  .row .wl { font-size: clamp(30px, 9vw, 40px); }
  .row .ar { opacity: 1; font-size: 20px; color: #bbb; transform: none; }
  .row .ar { padding-right: 4px; }
  body:not(.tableview) .foot { left: 24px; right: 24px; bottom: 22px; }
  .foot img { height: 12px; } .foot span { font-size: 12px; }
  .chev { width: 52px; height: 52px; margin-top: -26px; }
  .chev i { width: 14px; height: 14px; }
  .chev.next { right: 10px; } .chev.prev { left: 6px; top: 48px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { body:not(.tableview) .brand, body:not(.tableview) .links { transition-duration: .01s; } .chev.next i { animation: none; } }

/* ---- WAE 가입자 목록 (members.js) ---- */
.mb-dlg { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--w-border, #e5e5e5); border-radius: 16px; background: #fff; color: #111; font-family: var(--w-font, Inter, system-ui, sans-serif); box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.mb-dlg[open] { display: flex; flex-direction: column; }
.mb-dlg::backdrop { background: rgba(0,0,0,.35); }
.mb-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; flex-wrap: wrap; }
.mb-head strong { font-size: 16px; }
.mb-count { color: #777; font-size: 13px; }
.mb-sp { flex: 1; }
.mb-q { margin: 0 16px 10px; width: calc(100% - 32px); }
.mb-q[hidden], .mb-wrap[hidden] { display: none; }
.mb-msg { margin: 4px 16px 18px; padding: 12px 14px; border-radius: 10px; background: #fff7e6; color: #7a4b00; font-size: 13px; line-height: 1.6; }
.mb-wrap { overflow: auto; padding: 0 16px 16px; }
.mb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mb-table th { position: sticky; top: 0; background: #fff; text-align: left; font-weight: 600; color: #666; padding: 8px 10px; border-bottom: 1px solid #e5e5e5; white-space: nowrap; }
.mb-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; vertical-align: middle; }
.mb-table tr:hover td { background: #fafafa; }
.mb-num { text-align: right; color: #888; font-variant-numeric: tabular-nums; }
.mb-name { display: inline-flex; align-items: center; gap: 8px; }
.mb-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
.mb-av-t { display: inline-grid; place-items: center; background: #eee; color: #555; font-size: 11px; font-weight: 700; }
.mb-mail { color: #333; }
.mb-svc { color: #666; }
.mb-off td { color: #aaa; text-decoration: line-through; }
.mb-empty { text-align: center; color: #999; padding: 24px 0; }
.mb-empty[hidden], .mb-msg[hidden] { display: none; }
