
:root {
  --button-padding: 0.5rem 1rem;
  --border: 0.065rem;
}


html {
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.1;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "ltr-ncnd-variable", "Sandoll Typewrite", Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 300;
  font-variation-settings: "wght" 500;
}

a {
  color: #0000ff;
  text-decoration: underline;
  text-decoration-thickness: 0.065rem;
  text-underline-offset: 4px;
}

span[style*="font-size: 0.75em"],
span[style*="font-weight: 300"] {
  font-size: 0.75em !important;
  font-weight: 300 !important;
}


#network-graph {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}


.node {
  cursor: pointer;
}

.node .logo-wrap {
  transform-origin: 0 0;
  transition: transform 0.2s ease;
}

.node:hover .logo-wrap {
  transform: scale(1.1);
}

.node .logo-wrap image {
  pointer-events: auto;
  cursor: pointer;
}

.node .text-bg {
  fill: white;
  pointer-events: none;
}

.node text {
  font-family: "ltr-ncnd-variable", "Sandoll Typewrite", Georgia, "Times New Roman", serif;
  fill: #333;
  pointer-events: none;
  font-size: 0.75rem;
  font-weight: 600;
  font-variation-settings: "wght" 600;
}

.node text tspan {
  font-size: 0.6em;
  font-weight: 300;
}


.link {
  stroke: black;
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  cursor: pointer;
  filter: url(#clay-stroke);
}

.link-midpoint {
  fill: black;
  stroke: black;
  stroke-width: 1px;
  cursor: pointer;
  filter: url(#clay-stroke);
}


.ui-tooltip {
  position: absolute;
  background: white;
  color: #333;
  border: 0.065rem solid #000;
  pointer-events: none;
  z-index: 1000;
  overflow: visible;
  display: none;
}

.ui-tooltip .ui-tooltip__text {
  display: block;
  padding: 6px 10px;
}

.ui-tooltip.is-visible {
  display: block;
}

.ui-tooltip.clickable {
  pointer-events: auto;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 0.065rem;
}


.ui-about-trigger {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1002;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ui-about-trigger button,
.ui-about-trigger #about-lang-toggle {
  color: black;
  text-decoration: none;
  font-size: 0.875rem;
  padding: var(--button-padding);
  border: var(--border);
  background: white;
  cursor: pointer;
  font-family: inherit;
}

.ui-about-trigger button:hover {
  background: black;
  color: white;
}

.ui-about-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1002;
  display: none;
  max-height: 100vh;
  overflow-y: auto;
  padding: 1rem;
  width: 25rem;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  border-left: var(--border);
}

.ui-about-panel.is-open {
  display: block;
  border: 0.065rem solid #000;
}

.ui-about-panel__content {
  position: relative;
  width: 100%;
}

.ui-about-panel__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  margin: 0 0 1rem 0;
  padding: 0;
  align-items: center;
}

.ui-about-panel__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: normal;
}

.ui-about-panel__header button {
  background: none;
  border: none;
  padding: var(--button-padding);
  margin: 0;
  line-height: 1;
  cursor: pointer;
  color: #333;
  font-size: 2rem;
}

.ui-about-panel__body {
  line-height: 1.8;
}

.ui-about-panel__en {
  display: none;
}

.ui-about-panel.is-lang-en .ui-about-panel__ko {
  display: none;
}

.ui-about-panel.is-lang-en .ui-about-panel__en {
  display: block;
}

.ui-about-panel__body p {
  margin-bottom: 1.5rem;
}

.ui-about-panel__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .ui-about-panel {
    width: 100%;
    border: none;
  }
}


.articles-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  display: none;
  width: min(25rem, 90vw);
  max-width: 28rem;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
  border: 0.065rem solid #000;
}

.articles-panel.is-open {
  display: block;
}

.articles-panel-content {
  position: relative;
  width: 100%;
}

.articles-panel-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1rem 0;
  padding: 0;
}

.articles-panel-header button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 1;
  cursor: pointer;
  color: #333;
  display: flex;
  justify-content: flex-end;
  font-size: 2rem;
}

.articles-panel-title-block {
  flex: 1;
  min-width: 0;
}

#articles-panel-title {
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

#articles-panel-title a {
  display: inline;
}

.articles-panel-links {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.articles-panel-btn {
  display: inline-block;
  padding: var(--button-padding);
  font-size: 0.875rem;
  border: 0.065rem solid currentColor;
  border-radius: 2px;
  text-decoration: none;
  color: #0000ff;
}

.articles-panel-btn:hover {
  background: black;
  color: white;
}

.articles-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.articles-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.articles-list--ko,
.articles-list--en {
  margin-top: 0.5rem;
}

.articles-list li {
  margin-bottom: 0.5rem;
}

.articles-list li:last-child {
  margin-bottom: 0;
}

.articles-panel li {
  background: white;
  margin-bottom: 0.5rem;
}

.articles-panel li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .articles-panel {
    width: min(22rem, 92vw);
    max-height: 85vh;
  }
}

@media (min-width: 1280px) {
  .articles-panel {
    width: 26rem;
  }
}


.ui-font-loader {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "ltr-ncnd-variable", "Sandoll Typewrite", Georgia, "Times New Roman", serif;
  color: #333;
}

.ui-font-loader.is-done {
  pointer-events: none;
}

.ui-font-loader__pct {
  font-variant-numeric: tabular-nums;
}


.footprint {
  position: fixed;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 1;
}

.footprint img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.ui-project-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  pointer-events: none;
}

.ui-project-footer__version {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ui-project-footer__copyright {
  opacity: 0.85;
}
