:root {
  --ink: #111827;
  --muted: #5b6473;
  --line: #dce2ea;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --navy: #102a56;
  --blue: #2067df;
  --violet: #7548df;
  --content: 760px;
  --wide: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
a:focus-visible { outline: 3px solid #5a8ff0; outline-offset: 3px; border-radius: 3px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; padding: .6rem 1rem; background: #fff; border: 2px solid var(--blue); }

.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.header-inner { width: min(calc(100% - 3rem), var(--wide)); min-height: 68px; margin: auto; display: flex; align-items: center; gap: 2rem; }
.brand { flex: none; color: var(--ink); font-weight: 800; font-size: 26px; letter-spacing: .06em; text-decoration: none; }
.brand img { width: 22px; height: 22px; margin-right: .52rem; vertical-align: -.34rem; object-fit: contain; }
.brand-symbol { width: 22px; height: 22px; margin-right: .52rem; vertical-align: -.34rem; object-fit: contain; }
.global-nav { display: flex; align-items: center; gap: 1.15rem; margin-left: auto; font-size: .88rem; }
.global-nav a, .header-ratin { text-decoration: none; }
.global-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.header-ratin, .button { display: inline-flex; align-items: center; justify-content: center; padding: .58rem .9rem; border-radius: 7px; background: var(--ink); color: #fff; font-size: .87rem; font-weight: 700; text-decoration: none; }
.header-ratin:hover, .button:hover { color: #fff; background: var(--blue); }
.insights-mobile-menu { display: none; }

.hero { padding: 5.3rem 1.5rem 4.75rem; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #f7f9fc 0%, #fff 64%, #f7f4ff 100%); }
.hero-inner, .wide { width: min(100%, var(--wide)); margin: auto; }
.eyebrow, .section-label { margin: 0 0 .9rem; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(2.35rem, 5vw, 4.45rem); line-height: 1.15; letter-spacing: -.055em; }
.hero p:last-child { max-width: 625px; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.12rem; }

.hub-section { padding: 4.5rem 1.5rem; }
.hub-section.alt { background: var(--soft); border-block: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.25; letter-spacing: -.045em; }
.feature, .article-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.feature a, .article-card a { display: block; padding: clamp(1.5rem, 4vw, 2.7rem); text-decoration: none; }
.feature h3, .article-card h3 { margin: .45rem 0 .7rem; font-size: clamp(1.55rem, 3.4vw, 2.5rem); line-height: 1.27; letter-spacing: -.045em; }
.feature p:not(.article-category), .article-card p:not(.article-category) { margin: 0; color: var(--muted); }
.article-category { margin: 0; color: var(--blue); font-size: .82rem; font-weight: 800; }
.article-link { display: inline-block; margin-top: 1.5rem; font-weight: 800; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.article-card h3 { font-size: 1.4rem; }
.article-card time { display: block; margin-top: 1.45rem; color: var(--muted); font-size: .82rem; }
.topic-note { margin: 0; color: var(--muted); }
.bridge { padding: 5rem 1.5rem; background: var(--navy); color: #fff; }
.bridge .wide { max-width: var(--content); margin-left: max(calc((100% - var(--wide)) / 2), 0px); }
.bridge .section-label { color: #9fc0ff; }
.bridge h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.22; letter-spacing: -.05em; }
.bridge p:not(.section-label) { max-width: 620px; color: #d5ddec; }
.bridge .button { margin-top: .8rem; background: #fff; color: var(--navy); }
.bridge .button:hover { color: #fff; background: var(--blue); }

.article-shell { width: min(calc(100% - 3rem), 1080px); margin: auto; padding: 1.3rem 0 5rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 2.65rem; color: var(--muted); font-size: .85rem; }
.breadcrumb a { color: inherit; }
.article-header { max-width: var(--content); margin: 0 auto; }
.article-header h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.17; letter-spacing: -.06em; }
.dek { margin: 1.35rem 0 0; color: var(--muted); font-size: 1.17rem; line-height: 1.8; }
.article-meta { margin: 1.4rem 0 0; color: var(--muted); font-size: .88rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--content)) 210px; justify-content: space-between; gap: 4rem; margin-top: 3.2rem; }
.article-body { min-width: 0; }
.article-body h2 { margin: 3.7rem 0 1.1rem; font-size: clamp(1.5rem, 3vw, 2.12rem); line-height: 1.32; letter-spacing: -.05em; }
.article-body h3 { margin: 2.3rem 0 .75rem; font-size: 1.23rem; line-height: 1.45; letter-spacing: -.03em; }
.article-body p, .article-body li { color: #273143; }
.article-body li + li { margin-top: .45rem; }
.article-body strong { color: var(--ink); }
.article-body a { color: #154baf; }
.answer-box, .checklist, .notice { padding: 1.35rem 1.45rem; border-radius: 10px; }
.answer-box { margin: 0 0 2.4rem; border: 1px solid #b9cff5; background: #f1f6ff; }
.answer-box p { margin: .3rem 0 0; }
.answer-box .section-label { margin-bottom: .35rem; }
.checklist { margin: 2rem 0; border: 1px solid var(--line); background: #fbfcfe; }
.checklist h3 { margin-top: 0; }
.checklist ul { margin-bottom: 0; padding-left: 1.2rem; }
.notice { margin: 2rem 0; border-left: 4px solid var(--violet); background: #f7f4ff; }
.notice p { margin: 0; }
.article-body table { width: 100%; margin: 1.75rem 0; border-collapse: collapse; font-size: .94rem; }
.article-body th, .article-body td { padding: .85rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: #f5f7fa; color: var(--ink); }
.source-list { padding-left: 1.15rem; }
.source-list li { margin-bottom: .85rem; }
.toc { position: sticky; top: 1.5rem; align-self: start; padding-left: 1.25rem; border-left: 1px solid var(--line); }
.toc p { margin: 0 0 .5rem; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .1em; }
.toc a { display: block; margin: .52rem 0; color: var(--muted); font-size: .85rem; line-height: 1.45; text-decoration: none; }
.toc a:hover { color: var(--blue); }
.inline-cta { margin-top: 3.7rem; padding: 1.75rem; border-radius: 12px; background: var(--navy); color: #fff; }
.inline-cta h2 { margin: 0; font-size: 1.45rem; }
.inline-cta p { color: #d5ddec; }
.inline-cta .button { background: #fff; color: var(--navy); }

/* Article pages published after the original hub use a compact article template. */
.header-inner > nav:not(.global-nav) { display: flex; align-items: center; gap: 1.15rem; margin-left: auto; font-size: .88rem; }
.header-inner > nav:not(.global-nav) a, .header-cta { text-decoration: none; }
.header-inner > nav:not(.global-nav) a.active { color: var(--blue); font-weight: 700; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; padding: .58rem .9rem; border-radius: 7px; background: var(--ink); color: #fff; font-size: .87rem; font-weight: 700; text-decoration: none; }
.header-cta:hover { color: #fff; background: var(--blue); }
.menu-toggle { display: none; }
.article { min-width: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 2.65rem; color: var(--muted); font-size: .85rem; }
.breadcrumbs a { color: inherit; }
.article-hero { margin: 0 0 2.4rem; }
.article-hero h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.17; letter-spacing: -.06em; }
.article-summary { margin: 1.35rem 0 0; color: var(--muted); font-size: 1.17rem; line-height: 1.8; }
.article h2 { margin: 3.7rem 0 1.1rem; font-size: clamp(1.5rem, 3vw, 2.12rem); line-height: 1.32; letter-spacing: -.05em; }
.article p, .article li { color: #273143; }
.article li + li { margin-top: .45rem; }
.article strong { color: var(--ink); }
.article a { color: #154baf; }
.article table { width: 100%; margin: 1.75rem 0; border-collapse: collapse; font-size: .94rem; }
.article th, .article td { padding: .85rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article th { background: #f5f7fa; color: var(--ink); }
.article .inline-cta { margin-top: 3.7rem; }

/* The compact article typography is declared after the shared CTA component.
   Restore the shared CTA type scale and contrast inside that template only. */
.article .inline-cta h2 { margin: 0; font-size: 1.45rem; }
.article .inline-cta p { color: #d5ddec; }
.article .inline-cta .section-label { color: var(--blue); }

/* Keep the compact Document Technology and Document AI article template on the
   same centred desktop axis as the original Insights article template. */
main#content > .article-layout {
  width: min(calc(100% - 3rem), 1080px);
  margin: 1.3rem auto 5rem;
}

.site-footer { padding: 2.2rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-inner { width: min(100%, var(--wide)); margin: auto; display: flex; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; }

@media (max-width: 800px) {
  .header-inner { width: min(calc(100% - 2rem), var(--wide)); min-height: 60px; gap: 1rem; }
  .global-nav { display: none; }
  .header-ratin { display: none; }
  .insights-mobile-menu { display: block; margin-left: auto; position: relative; }
  .insights-mobile-menu summary { list-style: none; cursor: pointer; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-size: .78rem; font-weight: 700; }
  .insights-mobile-menu summary::-webkit-details-marker { display: none; }
  .insights-mobile-menu nav { position: absolute; right: 0; top: calc(100% + .55rem); width: min(17rem, calc(100vw - 2rem)); padding: .45rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 14px 32px rgba(20, 32, 54, .14); }
  .insights-mobile-menu nav a { display: block; padding: .72rem .78rem; border-radius: 5px; color: var(--ink); font-size: .94rem; text-decoration: none; }
  .insights-mobile-menu nav a:hover, .insights-mobile-menu nav a:focus-visible { color: var(--blue); background: #f3f7ff; }
  .insights-mobile-menu .mobile-ratin { margin-top: .35rem; color: #fff; background: var(--ink); }
  .insights-mobile-menu .mobile-ratin:hover, .insights-mobile-menu .mobile-ratin:focus-visible { color: #fff; background: var(--blue); }
  .hero { padding: 4rem 1rem 3.5rem; }
  .hub-section, .bridge { padding-inline: 1rem; }
  .article-shell { width: min(calc(100% - 2rem), 1080px); }
  .article-layout { display: block; margin-top: 2.35rem; }
  .article-body table { display: block; max-width: 100%; overflow-x: auto; }
  .header-inner > nav:not(.global-nav), .header-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 700; }
  .article table { display: block; max-width: 100%; overflow-x: auto; }
  main#content > .article-layout { width: min(calc(100% - 2rem), 1080px); margin: 1.3rem auto 4rem; }
  .toc { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-inner { display: block; }
  .footer-inner p + p { margin-top: .6rem; }
}

@media (max-width: 800px) {
  .site-header .brand { font-size: 21px; }
}
