/*
Theme Name: Jusoongil Ivory Cobalt
Theme URI: https://xn--wk0bn08aba238bn5dda.com/
Author: Jusoongil
Description: 주소온길 주소모음·링크모음 안내 전용 워드프레스 테마입니다.
Version: 1.0.5
Text Domain: jusoongil-ivory-cobalt
*/

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #e9eef4;
  --section-alt: #eef2f6;
  --section-soft: #f8fafc;
  --header-bg: rgba(255, 255, 255, 0.97);
  --footer-bg: #18212b;
  --table-head: #e8edf3;
  --hover: #f4f7fa;
  --line: #d0d9e2;
  --text: #18212b;
  --muted: #5f6d7b;
  --subtle: #7b8998;
  --blue: #1e5fae;
  --blue-hover: #174b89;
  --blue-soft: #2f6fb9;
  --cyan: #32c8d7;
  --amber: #a96508;
  --coral: #ef756c;
  --green: #2d8a5e;
  --violet: #a784ef;
  --content: 1180px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; }
button, a { -webkit-tap-highlight-color: transparent; }


.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: #08111e;
  background: #fff;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  width: min(var(--content), calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: grid;
  grid-template-columns: 156px auto;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img {
  width: 156px;
  height: 42px;
  padding: 6px 8px;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
}
.brand span {
  padding-left: 14px;
  color: #778493;
  border-left: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  min-width: 68px;
  padding: 10px 9px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--line);
  outline: none;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.hero {
  min-height: 560px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.hero-inner {
  width: min(960px, calc(100% - 40px));
  padding: 82px 0 66px;
  text-align: center;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 8px 13px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}
.live-badge span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.hero h1 {
  margin: 0 auto;
  max-width: 860px;
  font-size: 50px;
  line-height: 1.2;
  letter-spacing: 0;
}
.hero h1 strong { color: var(--blue-soft); }
.hero-title-copy { display: block; margin-top: 8px; }
.hero-subcopy a { color: var(--blue); font-weight: 800; text-underline-offset: 3px; }
.hero-copy {
  max-width: 790px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}
.hero-subcopy { max-width: 720px; margin: 12px auto 0; color: var(--subtle); font-size: 14px; }
.primary-button {
  display: inline-flex;
  min-height: 54px;
  margin-top: 34px;
  padding: 0 25px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue-soft);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(47,128,237,.22);
  text-decoration: none;
  font-weight: 800;
}
.primary-button:hover { background: var(--blue-hover); }
.hero-overview {
  max-width: 820px;
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: minmax(230px, .8fr) 1.5fr;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.overview-primary {
  padding: 27px 30px;
  color: #fff;
  background: var(--blue);
}
.overview-primary span { display: block; margin-bottom: 4px; color: rgba(255,255,255,.74); font-size: 12px; font-weight: 750; }
.overview-primary strong { display: block; font-size: 34px; line-height: 1.15; }
.overview-primary p { margin: 10px 0 0; color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.6; }
.hero-overview ul { margin: 0; padding: 10px 28px; list-style: none; display: grid; align-content: center; }
.hero-overview li { padding: 12px 0; display: grid; grid-template-columns: 96px 1fr; gap: 14px; border-bottom: 1px solid var(--line); }
.hero-overview li:last-child { border-bottom: 0; }
.hero-overview b { color: var(--text); font-size: 13px; }
.hero-overview li span { color: var(--muted); font-size: 12px; }

.section { padding: 100px 0; border-bottom: 1px solid var(--line); }
.section-inner { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }
.section-heading { margin-bottom: 36px; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
.section-number { margin: 0 0 8px; color: var(--blue-soft); font-size: 12px; font-weight: 850; }
.section-heading h2,
.about-layout h2,
.faq-layout h2 { margin: 0; font-size: 40px; line-height: 1.3; }
.section-heading p:not(.section-number),
.faq-layout > div:first-child > p:last-child { max-width: 660px; margin: 10px 0 0; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue-soft); text-decoration: none; font-size: 13px; font-weight: 800; white-space: nowrap; }
.text-link svg { width: 16px; }

.ranking-section { background: var(--section-alt); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--subtle); background: var(--table-head); font-size: 11px; font-weight: 850; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--hover); }
td:first-child { width: 72px; color: var(--subtle); }
td:nth-child(2) { min-width: 240px; }
td strong { display: block; font-size: 15px; }
td small { display: block; margin-top: 2px; color: var(--subtle); font-size: 12px; }
td:last-child a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--blue-soft); background: #192431; border: 1px solid #324155; border-radius: 5px; }
td:last-child svg { width: 16px; }
.tag { display: inline-flex; min-height: 26px; padding: 0 9px; align-items: center; border-radius: 4px; font-size: 10px; font-weight: 850; }
.tag-blue { color: #bcd9ff; background: #19375e; }
.tag-coral { color: #ffd2cf; background: #5a2927; }
.tag-green { color: #baf1d2; background: #1d4934; }
.tag-violet { color: #ddccff; background: #3b2b60; }
.tag-amber { color: #ffe1a8; background: #513a16; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.status i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }

.category-section { background: var(--bg); }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.category-tabs a { flex: 0 0 auto; padding: 9px 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; text-decoration: none; font-size: 12px; font-weight: 750; }
.category-tabs a:hover { color: var(--text); border-color: var(--blue); }
.category-groups { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-group { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-title { display: flex; align-items: center; gap: 14px; }
.category-title p { margin: 0 0 2px; color: var(--subtle); font-size: 10px; font-weight: 850; }
.category-title h3 { margin: 0; font-size: 19px; }
.category-title h3 span {
  display: inline;
  padding: 1px 4px 2px;
  color: var(--blue-hover);
  background: #dbeafe;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.icon-box { flex: 0 0 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 6px; }
.icon-blue { color: #84bfff; background: #122c4b; }
.icon-coral { color: #f69a93; background: #3f2223; }
.icon-green { color: #77d9a4; background: #173b2c; }
.icon-violet { color: #c3a9f6; background: #30234d; }
.icon-amber { color: #f0bd61; background: #3e2d16; }
.icon-slate { color: #b8c2cc; background: #27313c; }
.link-rows { margin-top: 24px; }
.link-rows a { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--text); border-top: 1px solid var(--line); text-decoration: none; }
.link-rows a:last-child { border-bottom: 1px solid var(--line); }
.link-rows a:hover { color: var(--blue-soft); }
.link-rows a > span { min-width: 0; display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 8px; }
.link-rows b { grid-row: span 2; color: var(--subtle); font-size: 11px; }
.link-rows strong { font-size: 14px; }
.link-rows small { color: var(--subtle); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-rows svg { flex: 0 0 16px; width: 16px; }

.guide-section { background: var(--section-soft); }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guide-grid article { min-height: 270px; padding: 30px; position: relative; border-right: 1px solid var(--line); background: var(--surface); }
.guide-grid article:last-child { border-right: 0; }
.guide-grid article > span { position: absolute; right: 22px; top: 18px; color: #465260; font-size: 12px; font-weight: 850; }
.guide-grid article > svg { width: 30px; height: 30px; color: var(--blue-soft); }
.guide-grid h3 { margin: 54px 0 12px; font-size: 18px; }
.guide-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.about-section { background: var(--bg); }
.about-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.about-copy p { margin: 0 0 18px; color: var(--muted); }
.check-list { margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; list-style: none; }
.check-list li { position: relative; padding-left: 24px; color: var(--text); font-size: 13px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.editorial-section { background: var(--section-alt); }
.editorial-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); justify-content: space-between; gap: 90px; }
.editorial-index { position: sticky; top: 112px; align-self: start; }
.editorial-index > strong { display: block; margin: 12px 0 20px; font-size: 17px; }
.editorial-index nav { border-top: 1px solid var(--line); }
.editorial-index a {
  min-height: 54px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}
.editorial-index a:hover { color: var(--blue-soft); }
.editorial-index a span { color: var(--subtle); font-size: 10px; }
.editorial-kicker { margin: 0 0 14px; color: var(--blue-soft); font-size: 11px; font-weight: 850; }
.editorial-body h2 { max-width: 720px; margin: 0; font-size: 42px; line-height: 1.35; }
.editorial-lead { margin: 26px 0 46px; color: var(--text); font-size: 19px; line-height: 1.9; }
.editorial-body h3 { margin: 54px 0 18px; padding-top: 8px; font-size: 25px; line-height: 1.4; }
.editorial-body > p:not(.editorial-kicker):not(.editorial-lead) { margin: 0 0 18px; color: var(--muted); line-height: 2; }
.editorial-body blockquote { margin: 42px 0; padding: 25px 28px; background: var(--surface); border-left: 3px solid var(--blue); }
.editorial-body blockquote strong { font-size: 15px; }
.editorial-body blockquote p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.editorial-steps { margin: 34px 0 44px; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.editorial-steps li { min-height: 92px; display: grid; grid-template-columns: 58px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.editorial-steps li > span { color: var(--blue-soft); font-size: 12px; font-weight: 850; }
.editorial-steps strong { font-size: 15px; }
.editorial-steps p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.editorial-meta { margin-top: 54px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid var(--line); }
.editorial-meta span { display: inline-flex; align-items: center; gap: 7px; color: var(--subtle); font-size: 11px; font-weight: 750; }
.editorial-meta svg { width: 15px; height: 15px; color: var(--blue-soft); }
.editorial-body .wp-editable-content { margin-top: 48px; padding-top: 42px; border-top: 1px solid var(--line); }
.editorial-body .wp-editable-content:empty { display: none; }
.editorial-body .wp-editable-content h2 { margin-top: 48px; font-size: 32px; }
.editorial-body .wp-editable-content h3 { margin-top: 38px; }
.editorial-body .wp-editable-content p { color: var(--muted); line-height: 2; }

.faq-section { background: var(--section-soft); }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: 0 0 18px; width: 18px; transition: transform .2s ease; }
.faq-list details[open] summary { color: var(--blue-soft); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { margin: -4px 46px 24px 0; color: var(--muted); font-size: 14px; }

.site-footer { padding: 62px 0 32px; background: var(--footer-bg); }
.footer-inner { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.footer-brand img { width: 156px; padding: 6px 8px; background: #fff; border-radius: 5px; }
.footer-brand p { max-width: 440px; margin: 16px 0 0; color: #75818e; font-size: 13px; }
.site-footer nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px 20px; }
.site-footer nav a { color: #9ca7b3; text-decoration: none; font-size: 12px; font-weight: 750; }
.site-footer nav a:hover { color: #fff; }
.site-footer .footer-inner > p { grid-column: 1 / -1; margin: 22px 0 0; padding-top: 22px; color: #53606d; border-top: 1px solid #1b232c; font-size: 11px; }

@media (max-width: 980px) {
  .header-inner { min-height: 70px; }
  .brand { grid-template-columns: 142px; }
  .brand img { width: 142px; }
  .brand span { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 20px; right: 20px; top: 62px; padding: 10px; flex-direction: column; align-items: stretch; background: #111821; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { text-align: left; }
  .hero { min-height: 610px; }
  .hero h1 { font-size: 44px; }
  .section-heading h2, .about-layout h2, .faq-layout h2 { font-size: 34px; }
  .category-groups { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid article:nth-child(2) { border-right: 0; }
  .guide-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-layout, .faq-layout { grid-template-columns: 1fr; gap: 38px; }
  .editorial-layout { grid-template-columns: 1fr; gap: 48px; }
  .editorial-index { position: static; }
  .editorial-index nav { display: grid; grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--line); }
  .editorial-index a { padding: 0 16px; border-right: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .admin-bar .site-header { top: 46px; }
  body { font-size: 15px; }
  .header-inner, .section-inner, .footer-inner { width: min(100% - 28px, var(--content)); }
  .hero-inner { width: min(100% - 28px, 960px); padding: 74px 0 54px; }
  .hero { min-height: auto; }
  .hero h1 { font-size: 36px; }
  .hero-title-copy { display: block; margin-top: 6px; }
  .hero-copy { font-size: 16px; }
  .hero-subcopy { font-size: 12px; }
  .hero-overview { grid-template-columns: 1fr; }
  .overview-primary { padding: 24px; }
  .hero-overview ul { padding: 8px 22px; }
  .hero-overview li { grid-template-columns: 88px 1fr; }
  .section { padding: 74px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2, .about-layout h2, .faq-layout h2 { font-size: 28px; }
  th, td { padding: 15px 14px; }
  .category-group { padding: 24px 20px; }
  .category-title h3 { font-size: 17px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid article { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .guide-grid article:last-child { border-bottom: 0; }
  .check-list { grid-template-columns: 1fr; }
  .editorial-index nav { grid-template-columns: 1fr; }
  .editorial-body h2 { font-size: 30px; }
  .editorial-lead { font-size: 17px; }
  .editorial-body h3 { font-size: 22px; }
  .editorial-steps li { grid-template-columns: 44px 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .site-footer .footer-inner > p { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
