/* TapSeoul guides — loaded after site.css on /blog/ pages only. */

/* Header: keep the guide links visible on phones. */
.blog-nav a[aria-current="page"] {
  background: var(--paper-2);
}
@media (max-width: 720px) {
  .header-nav.blog-nav {
    display: flex;
    margin-left: auto;
  }
  .header-nav.blog-nav a {
    padding: 8px 10px;
    font-size: 14px;
  }
  .blog-nav-app {
    display: none;
  }
  .blog-page .lang {
    margin-left: 0;
  }
}

/* Static language menu (a <details>, so it works without JavaScript). */
.lang-static > summary {
  list-style: none;
  cursor: pointer;
}
.lang-static > summary::-webkit-details-marker {
  display: none;
}
.lang-static[open] > summary {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(23, 61, 50, 0.08);
}
.lang-static[open] .lang-chevron {
  transform: rotate(180deg);
}

/* Breadcrumb */
.crumbs {
  padding-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.crumbs li + li::before {
  content: "/";
  margin: 0 9px;
  color: var(--line-strong);
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.crumbs [aria-current] span {
  display: inline-block;
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* Hero */
.post-hero,
.hub-hero {
  padding-top: clamp(28px, 4vw, 52px);
}
.post-hero h1 {
  max-width: 18em;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hub-hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
}
html:lang(ja) .post-hero h1,
html:lang(zh-CN) .post-hero h1,
html:lang(zh-TW) .post-hero h1,
html:lang(th) .post-hero h1 {
  line-height: 1.25;
  letter-spacing: 0;
}
html:lang(th) .post-hero h1,
html:lang(th) .doc-body {
  line-height: 1.45;
}
html:lang(th) .doc-body {
  line-height: 1.85;
}

/* Short answer + quick facts */
.answer-box {
  margin: 0 0 26px;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--green);
}
.answer-label,
.facts-title,
.sources-title {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}
html:lang(ja) .answer-label,
html:lang(zh-CN) .answer-label,
html:lang(zh-TW) .answer-label,
html:lang(th) .answer-label,
html:lang(ja) .facts-title,
html:lang(zh-CN) .facts-title,
html:lang(zh-TW) .facts-title,
html:lang(th) .facts-title,
html:lang(ja) .sources-title,
html:lang(zh-CN) .sources-title,
html:lang(zh-TW) .sources-title,
html:lang(th) .sources-title {
  letter-spacing: 0;
  font-size: 13.5px;
}
.answer-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.facts-box {
  margin: 0 0 56px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.facts-box dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
}
.facts-box dl > div {
  padding: 10px 0 12px;
  border-top: 1px dashed var(--line-strong);
}
.facts-box dt {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.facts-box dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

/* Body content */
.post-body ul,
.post-body ol {
  margin: 0 0 18px;
  padding-left: 1.3em;
}
.post-body li {
  margin: 0 0 8px;
}
.post-body li::marker {
  color: var(--green);
  font-weight: 700;
}
.post-body strong {
  color: var(--ink);
  font-weight: 650;
}
.post-body em {
  font-style: normal;
  background: var(--lime);
  padding: 0 4px;
  border-radius: 4px;
  color: var(--ink);
}
.post-body .note {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--paper-2);
}
.post-body .note p:last-child {
  margin-bottom: 0;
}
.table-wrap {
  margin: 8px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.post-body th,
.post-body td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.post-body th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: var(--paper);
}
.post-body tbody tr:last-child td {
  border-bottom: 0;
}
.post-body td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* FAQ: a flat list with rules, not a stack of cards. */
.post-body .post-faq {
  gap: 0;
  margin: 0 0 40px;
  border-bottom: 1px solid var(--line);
}
.post-faq details,
.post-faq details[open] {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
}
.post-faq summary {
  padding: 18px 0;
  border-radius: 0;
}
.post-faq summary h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ink);
}
.post-faq .faq-answer {
  padding: 0 56px 22px 0;
  font-size: 16px;
  line-height: 1.72;
  color: var(--muted);
}
.post-faq .faq-answer p {
  margin: 0 0 10px;
  padding: 0;
}
.post-faq .faq-answer p:last-child {
  margin-bottom: 0;
}

/* CTA and fine print */
.post-cta {
  margin: 0 0 18px;
}
.cta-title {
  margin: 0 0 6px !important;
  font-family: var(--font-display);
  font-size: 22px !important;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--on-ink) !important;
}
.cta-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px !important;
  font-size: 13.5px !important;
  font-weight: 600;
  color: var(--lime) !important;
}
.cta-status .status-dot {
  background: var(--lime);
}
.post-fineprint {
  margin: 0 0 36px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.post-fineprint p {
  margin: 0 0 4px;
}
.sources-box {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}
.sources-box ol {
  margin: 0 0 10px;
  padding-left: 1.3em;
}
.sources-box li {
  margin-bottom: 4px;
}
.sources-box a {
  overflow-wrap: anywhere;
}
.sources-note {
  margin: 0 !important;
  font-size: 13px;
  color: var(--muted);
}

/* Post cards (related + hub) */
.related {
  padding-bottom: clamp(64px, 8vw, 104px);
}
.related h2,
.hub-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}
.hub-group h2 svg {
  width: 26px;
  height: 26px;
  color: var(--green);
}
.post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-card a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.post-card a:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.post-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
.post-card-kicker svg {
  width: 18px;
  height: 18px;
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}
html:lang(ja) .post-card-title,
html:lang(zh-CN) .post-card-title,
html:lang(zh-TW) .post-card-title,
html:lang(th) .post-card-title {
  letter-spacing: 0;
  line-height: 1.4;
}
.post-card-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.post-card-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.post-card-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}
.post-card-go svg {
  width: 16px;
  height: 16px;
}
.related-all {
  margin: 22px 0 0;
}
.related-all a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--green);
}
.related-all svg {
  width: 17px;
  height: 17px;
}

/* Hub */
.hub-body {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(72px, 9vw, 120px);
}
.hub-cta .doc-card {
  margin: 0;
}

/* Phones */
@media (max-width: 720px) {
  .facts-box dl {
    grid-template-columns: minmax(0, 1fr);
  }
  .answer-box {
    padding-left: 16px;
  }
  .answer-text {
    font-size: 17px;
  }
  .post-faq .faq-answer {
    padding: 0 0 18px;
  }
  .crumbs [aria-current] span {
    max-width: 18ch;
  }
  /* Wide tables become stacked cards. */
  .table-wrap:has(table.stack) {
    border: 0;
    background: none;
    overflow: visible;
  }
  .post-body table.stack,
  .post-body table.stack tbody,
  .post-body table.stack tr,
  .post-body table.stack td {
    display: block;
    width: 100%;
  }
  .post-body table.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .post-body table.stack {
    border-bottom: 1px solid var(--line);
  }
  .post-body table.stack tr {
    padding: 12px 0 10px;
    border-top: 1px solid var(--line);
  }
  .post-body table.stack tr:first-child {
    border-top-color: var(--ink);
  }
  .post-body table.stack td {
    padding: 3px 0;
    border: 0;
  }
  .post-body table.stack td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
  }
  .post-body table.stack td:first-child {
    font-size: 16px;
  }
}
@media (max-width: 300px) {
  .answer-box {
    padding-left: 12px;
  }
  .post-card a {
    padding: 16px 14px;
  }
  .post-faq .faq-answer {
    padding: 0 0 16px;
  }
}

/* Keep the brand name on one line in headings. */
.nb {
  white-space: nowrap;
}
