@font-face {
  font-family: Pretendard;
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  --ink: #222;
  --ink-soft: #555;
  --muted: #888;
  --line: #e5e5e5;
  --fill: #f6f4f1;
  --brown: #6b4a36;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

body.hub-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

body.hub-page--pc {
  min-width: 1280px;
}

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

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

h1,
h2,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hub-skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
}

.hub-skip:focus {
  top: 12px;
}

.hub-hero {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 28px;
  text-align: center;
}

.hub-logo {
  display: inline-flex;
}

.hub-logo img {
  width: 253px;
  max-width: none;
  height: 72px;
}

.hub-tagline {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.hub-flags {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  line-height: 1;
}

.hub-flag {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0.95;
  cursor: pointer;
}

.hub-flag .hub-flag-img {
  width: 28px;
  height: 19px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.hub-flag.is-soon {
  opacity: 0.32;
  filter: grayscale(0.35);
}

.hub-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 2px 8px rgba(107, 74, 54, 0.1);
}

.hub-topbar-inner {
  display: flex;
  width: 100%;
  max-width: var(--max);
  height: 56px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hub-topbar-logo {
  display: flex;
  min-width: 0;
  align-items: center;
}

.hub-topbar-logo img {
  width: 113px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
}

.hub-topbar-flags {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.hub-topbar-flag {
  display: inline-flex;
  width: 24px;
  height: 24px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
}

.hub-topbar-flag .hub-flag-img {
  width: 24px;
  height: 17px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.hub-topbar-flag.is-soon {
  opacity: 0.38;
}

.hub-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.hub-page--pc .hub-main {
  padding-top: 8px;
}

.hub-countries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.hub-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.hub-card.is-soon {
  background: var(--fill);
}

.hub-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}

.hub-card-flag {
  font-size: 26px;
  line-height: 1;
}

.hub-card-flag .hub-flag-img {
  width: 28px;
  height: 19px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.hub-card-copy {
  min-width: 0;
}

.hub-card-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.hub-card-copy em {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hub-card-copy.is-inline {
  flex: 1;
  min-width: 0;
}

.hub-card-copy.is-inline strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-card-copy.is-inline .hub-card-sub {
  color: var(--ink-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hub-card-link {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brown);
}

.hub-card-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hub-card-head:hover .hub-card-link,
.hub-card-head:focus .hub-card-link {
  border-color: var(--brown);
  background: var(--brown);
  color: #fff;
}

.hub-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 16px 16px;
  min-height: 168px;
}

.hub-card.is-soon .hub-thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-thumb {
  display: block;
  min-width: 0;
}

.hub-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #eee;
  object-fit: cover;
}

.hub-thumb-empty {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #f0eeeb;
}

.hub-thumb.is-empty {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #f0eeeb;
}

.hub-thumb-title {
  display: -webkit-box;
  min-height: 34px;
  margin: 6px 2px 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hub-thumb-byline {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 6px 2px 0;
}

.hub-thumb-avatar {
  overflow: hidden;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ece7e1;
}

.hub-thumb-avatar img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 50%;
  background: #ece7e1;
  object-fit: cover;
}

.hub-thumb-byline-copy {
  min-width: 0;
}

.hub-thumb-channel,
.hub-thumb-meta {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 400;
  line-height: 1.3;
}

.hub-thumb-channel {
  color: #555;
  font-size: 12px;
}

.hub-thumb-meta {
  margin-top: 1px;
  color: #999;
  font-size: 12px;
}

.hub-thumb:hover .hub-thumb-title,
.hub-thumb:focus .hub-thumb-title {
  color: var(--brown);
}

.hub-soon {
  color: var(--muted);
  font-size: 14px;
}

.hub-pc-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: #fbf8f5;
}

.hub-pc-footer-inner {
  display: grid;
  width: 100%;
  max-width: var(--max);
  min-height: 104px;
  margin: 0 auto;
  padding: 18px 24px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
}

.hub-pc-footer-logo img {
  width: auto;
  height: 34px;
}

.hub-pc-footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.hub-pc-footer-links a {
  color: var(--ink-soft);
  font-size: 13px;
}

.hub-pc-footer-end {
  justify-self: end;
  text-align: right;
}

.hub-pc-footer-end .footer-sns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.hub-pc-footer-end .footer-sns img {
  width: 28px;
  height: 28px;
}

.hub-pc-footer-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.nz-m-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 18px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fbf8f5;
}

.nz-m-footer-aside {
  min-width: 0;
  text-align: center;
}

.nz-m-footer-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
}

.nz-m-footer-links a {
  color: var(--ink-soft);
  font-size: 13px;
}

.nz-m-footer-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.hub-page .nz-legal-dialog,
.hub-page .auth-dialog {
  width: min(600px, calc(100vw - 32px));
  max-width: none;
  max-height: 78dvh;
}

.hub-page .nz-legal-body {
  min-width: 0;
  overflow-x: hidden;
}

.hub-page .nz-legal-doc,
.hub-page .nz-about-hero,
.hub-page .nz-about-hero-copy {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .hub-page--mobile .hub-countries {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hub-page--mobile .hub-topbar-inner {
    padding: 0 16px;
  }

  .hub-page--mobile .hub-main {
    padding: 20px 16px 48px;
  }

  .hub-page--mobile .hub-countries {
    grid-template-columns: 1fr;
  }
}
