/* Shared editorial shell; all display changes stay within the gjd namespace. */
body.gjd-editorial {
  --gjd-paper: #faf9f5; --gjd-ink: #20372e; --gjd-muted: #65726a;
  --gjd-green: #256048; --gjd-line: #dfe3da; --gjd-wash: #eef2e9;
  margin: 0; background: var(--gjd-paper); color: var(--gjd-ink);
  font: 17px/1.85 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.gjd-site, .gjd-site *, .gjd-site *::before, .gjd-site *::after { box-sizing: border-box; }
.gjd-site { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.gjd-site :is(p, h1, h2, h3, figure, ol, ul) { margin: 0; }
.gjd-site :is(h1, h2, h3) { color: var(--gjd-ink); font-family: inherit; }
.gjd-site a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.gjd-site a:hover { color: var(--gjd-green); }
.gjd-site :focus-visible { outline: 2px solid var(--gjd-green); outline-offset: 5px; }
.gjd-skip { position: fixed; z-index: 1000; left: 16px; top: -100px; padding: 10px 18px; background: #fff; color: #20372e; }
.gjd-skip:focus { top: 12px; }
.gjd-header { display: flex; gap: 20px; align-items: center; min-height: 104px; border-bottom: 1px solid var(--gjd-line); }
.gjd-brand { display: inline-flex; gap: 10px; align-items: center; flex-shrink: 0; text-decoration: none; font-size: 26px; font-weight: 800; letter-spacing: -.065em; }
.gjd-brand svg { width: 30px; height: 34px; color: var(--gjd-green); }
.gjd-brand-note { font-size: 12px; color: var(--gjd-muted); }
.gjd-header nav { display: flex; gap: 26px; align-items: center; margin-left: auto; font-size: 13px; }
.gjd-header nav a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; white-space: nowrap; }
.gjd-header nav a[aria-current="page"] { font-weight: 700; color: var(--gjd-green); }
.gjd-header nav .gjd-explore-link { border: 1px solid #bdcdbf; padding: 0 17px; border-radius: 5px; }
.gjd-site .gjd-eyebrow { color: var(--gjd-green); font-size: 12px; font-weight: 700; letter-spacing: .025em; margin-bottom: 17px; }
.gjd-site h1 { font-size: clamp(32px, 3.5vw, 47px); line-height: 1.35; font-weight: 750; letter-spacing: -.055em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.gjd-site .gjd-deck { color: var(--gjd-muted); font-size: 16px; line-height: 1.9; margin-top: 23px; word-break: keep-all; overflow-wrap: anywhere; }
.gjd-directory-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: center; padding: 48px 0 40px; }
.gjd-discover { position: relative; display: block; padding: 29px 30px 25px; overflow: hidden; background: #204d3b; color: #faf9f5 !important; border-radius: 8px; text-decoration: none; }
.gjd-discover::before { content: ""; width: 170px; height: 170px; position: absolute; right: -80px; bottom: -85px; border: 1px solid #527660; border-radius: 50%; box-shadow: 0 0 0 23px #204d3b, 0 0 0 24px #527660; pointer-events: none; }
.gjd-discover p { font-size: 21px; line-height: 1.6; letter-spacing: -.035em; }
.gjd-discover p strong { font-size: 27px; font-weight: 650; }
.gjd-discover-mark { position: absolute; right: 26px; top: 33px; color: #85ac91; transform: rotate(12deg); }
.gjd-discover-mark svg { width: 54px; height: 60px; }
.gjd-discover-tags { display: block; font-size: 12px; color: #d4e3d5; margin-top: 14px; }
.gjd-discover-cta { display: flex; justify-content: space-between; position: relative; font-size: 13px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #4e705b; }
.gjd-discover:hover { background: #183f30; }
.gjd-category-nav { display: flex; flex-wrap: wrap; gap: 10px 27px; border-block: 1px solid var(--gjd-line); }
.gjd-category-nav a { min-height: 60px; display: inline-flex; align-items: center; text-decoration: none; font-size: 14px; color: var(--gjd-muted); border-bottom: 2px solid transparent; }
.gjd-category-nav a[aria-current="page"] { color: var(--gjd-green); font-weight: 700; border-bottom-color: var(--gjd-green); }
.gjd-site .gjd-list-label { margin: 29px 0 24px; font-size: 12px; color: var(--gjd-muted); }
.gjd-post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; margin-bottom: 54px; }
.gjd-post-card { min-width: 0; }
.gjd-post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 46px; align-items: center; padding-bottom: 38px; border-bottom: 1px solid var(--gjd-line); }
.gjd-post-card:first-child.gjd-no-image { grid-template-columns: 1fr; }
.gjd-card-media img, .gjd-hero-art img { display: block; width: 100%; height: auto; border-radius: 5px; }
.gjd-card-media a { display: block; }
.gjd-card-media figcaption, .gjd-hero-art figcaption { color: var(--gjd-muted); font-size: 11px; line-height: 1.7; margin-top: 8px; }
.gjd-card-media figcaption a { display: inline; }
.gjd-card-media .gjd-image-portrait { aspect-ratio: 16 / 9; object-fit: cover; object-position: center 20%; background: #f0eddc; }
.gjd-hero-art .gjd-image-portrait { height: 440px; object-fit: contain; background: #f0eddc; }
.gjd-card-image-link { position: relative; isolation: isolate; overflow: hidden; border-radius: 5px; }
.gjd-has-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 24%, rgba(7, 17, 13, .08) 42%, rgba(7, 17, 13, .8) 100%); pointer-events: none; }
.gjd-cover-copy { position: absolute; z-index: 2; inset: auto 20px 18px; display: block; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); pointer-events: none; }
.gjd-cover-title { display: block; color: #fff; font-size: 25px; font-weight: 750; line-height: 1.3; letter-spacing: -.045em; word-break: keep-all; overflow-wrap: anywhere; }
.gjd-cover-label { display: block; color: #eaf4eb; font-size: 12px; font-weight: 500; line-height: 1.6; margin-top: 6px; }
.gjd-post-card:first-child .gjd-cover-copy { inset: auto 27px 25px; }
.gjd-post-card:first-child .gjd-cover-title { font-size: 36px; }
.gjd-post-card:first-child .gjd-cover-label { font-size: 14px; }
.gjd-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--gjd-muted); font-size: 11px; }
.gjd-meta span { color: var(--gjd-green); font-weight: 700; }
.gjd-card-copy { padding-top: 20px; }
.gjd-post-card:first-child .gjd-card-copy { padding-top: 0; }
.gjd-post-card h2 { margin-top: 13px; font-size: 23px; line-height: 1.55; letter-spacing: -.045em; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.gjd-post-card:first-child h2 { font-size: clamp(26px, 2.55vw, 34px); line-height: 1.5; }
.gjd-post-card h2 a { display: block; text-decoration: none; }
.gjd-site .gjd-card-excerpt { color: var(--gjd-muted); font-size: 14px; line-height: 1.9; margin-top: 15px; }
.gjd-post-card:first-child .gjd-card-excerpt { font-size: 15px; }
.gjd-read-link { display: inline-flex; gap: 18px; align-items: center; min-height: 44px; font-size: 13px; font-weight: 650; margin-top: 15px; }
.gjd-read-link span { color: var(--gjd-green); }
.gjd-site .pagination { margin: 24px 0 48px; }
.gjd-site .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.gjd-site .page-numbers { min-width: 35px; text-align: center; }
.gjd-empty { grid-column: 1 / -1; padding: 30px 0; }
.gjd-empty h2 { font-size: 24px; }
.gjd-empty p { font-size: 15px; color: var(--gjd-muted); margin: 10px 0; }
.gjd-article-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 52px; align-items: center; padding: 43px 0 46px; border-bottom: 1px solid var(--gjd-line); }
.gjd-article-hero h1 { font-size: clamp(31px, 3vw, 40px); line-height: 1.45; }
.gjd-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--gjd-muted); margin-bottom: 25px; }
.gjd-breadcrumb a { text-decoration: none; }
.gjd-site .gjd-byline { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 11px; color: var(--gjd-muted); margin-top: 24px; }
.gjd-byline > span:first-child { color: var(--gjd-ink); font-weight: 700; }
.gjd-text-hero { grid-template-columns: 1fr; }
.gjd-text-hero .gjd-hero-copy { max-width: 860px; }
.gjd-reading-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 250px); gap: 80px; padding-top: 35px; }
.gjd-reading-main, .gjd-body { min-width: 0; }
.gjd-body { overflow-wrap: anywhere; color: #34483e; font-size: 17px; line-height: 1.95; }
.gjd-body p { margin: 16px 0 22px; }
.gjd-body > p:first-child { font-size: 18px; margin-top: 0; }
.gjd-body h2 { font-size: 27px; font-weight: 750; letter-spacing: -.045em; line-height: 1.5; word-break: keep-all; margin: 47px 0 18px; padding-top: 23px; border-top: 1px solid var(--gjd-line); scroll-margin-top: 24px; }
.gjd-body h3 { font-size: 22px; line-height: 1.55; letter-spacing: -.035em; margin: 28px 0 13px; scroll-margin-top: 24px; }
.gjd-body :is(ul, ol) { padding-left: 23px; margin: 14px 0 24px; }
.gjd-body li { margin: 8px 0; padding-left: 2px; }
.gjd-body a { color: var(--gjd-green); text-decoration: underline; }
.gjd-body strong { font-weight: 700; }
.gjd-body code { padding: 3px 7px; border: 1px solid #d6e1d1; border-radius: 4px; background: #edf3e8; color: #24503c; font-size: .88em; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; overflow-wrap: anywhere; white-space: normal; }
.gjd-body pre { max-width: 100%; overflow-x: auto; padding: 16px; background: var(--gjd-wash); }
.gjd-body pre code { padding: 0; border: 0; white-space: pre; }
.gjd-body blockquote { margin: 24px 0; padding: 6px 24px; border-left: 3px solid var(--gjd-green); background: var(--gjd-wash); }
.gjd-body figure { margin: 23px 0; }
.gjd-body figure img, .gjd-body > p > img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.gjd-body figcaption { font-size: 11px; color: var(--gjd-muted); line-height: 1.75; margin-top: 9px; }
.gjd-body .wp-block-table { overflow: visible !important; }
.gjd-table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--gjd-line); border-radius: 5px; background: #fffefb; }
.gjd-table-wrap table { width: 100%; margin: 0; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.8; }
.gjd-table-wide table { min-width: 620px; }
.gjd-table-wrap :is(th, td) { padding: 14px 17px; border: 0; border-bottom: 1px solid #e4e8de; vertical-align: top; }
.gjd-table-wrap th { background: #eaf0e4; color: #344e3d; font-weight: 650; }
.gjd-table-wrap tr:last-child td { border-bottom: 0; }
.gjd-table-wrap tr:nth-child(even) td { background: #f6f8f1; }
.gjd-table-wrap td:first-child { font-weight: 550; }
.gjd-sidebar { position: sticky; top: 30px; align-self: start; }
.gjd-toc > p { font-size: 13px; font-weight: 700; padding-bottom: 16px; border-bottom: 1px solid var(--gjd-line); }
.gjd-toc ol { list-style: none; padding: 13px 0; counter-reset: gjd-toc; }
.gjd-toc li { counter-increment: gjd-toc; }
.gjd-toc a { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; color: var(--gjd-muted); font-size: 12px; line-height: 1.85; text-decoration: none; word-break: keep-all; overflow-wrap: anywhere; }
.gjd-toc a::before { content: counter(gjd-toc, decimal-leading-zero); color: #80917f; font-size: 10px; font-variant-numeric: tabular-nums; }
.gjd-sidebar-link { display: block; margin-top: 28px; padding: 21px; background: var(--gjd-wash); border-radius: 5px; text-decoration: none; }
.gjd-sidebar-link > span { display: block; font-size: 11px; color: var(--gjd-muted); }
.gjd-sidebar-link strong { display: flex; justify-content: space-between; margin-top: 8px; font-size: 15px; font-weight: 650; }
.gjd-mobile-toc { display: none; }
.gjd-related { margin: 52px 0; padding-top: 30px; border-top: 1px solid var(--gjd-line); }
.gjd-related h2 { font-size: 27px; letter-spacing: -.045em; }
.gjd-related > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 23px; }
.gjd-related a { display: flex; justify-content: space-between; gap: 25px; padding: 24px; border: 1px solid var(--gjd-line); border-radius: 5px; text-decoration: none; font-size: 16px; line-height: 1.85; }
.gjd-related a > span:last-child { color: var(--gjd-green); }
.gjd-page-hero { padding: 31px 0 25px; border-bottom: 1px solid var(--gjd-line); }
.gjd-page-hero h1 { font-size: 34px; }
.gjd-page-hero .gjd-eyebrow { margin-bottom: 8px; }
.gjd-page-body { max-width: 780px; margin: 32px 0 54px; }
.gjd-tool .gj-explorer { margin: 26px 0 48px; max-width: none; border-radius: 6px; padding: 30px; background: #f0f3eb; --gj-ink: #20372e; --gj-green: #256048; }
.gjd-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--gjd-line); padding: 32px 0 36px; font-size: 12px; color: var(--gjd-muted); }
.gjd-footer-brand { font-size: 17px; font-weight: 750; letter-spacing: -.05em; color: var(--gjd-ink) !important; text-decoration: none; }
.gjd-footer p { margin-top: 5px; font-size: 11px; }
.gjd-footer nav { display: flex; gap: 24px; margin-left: auto; }
.gjd-footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.gjd-footer small { font-size: 10px; }
@media (max-width: 1000px) {
  .gjd-site { width: calc(100% - 48px); }
  .gjd-brand-note { display: none; }
  .gjd-directory-hero { gap: 30px; grid-template-columns: minmax(0, 1fr) 285px; }
  .gjd-post-card:first-child { gap: 30px; }
  .gjd-post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gjd-article-hero { gap: 30px; }
  .gjd-article-hero h1 { font-size: 32px; }
  .gjd-reading-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gjd-sidebar { display: none; }
  .gjd-mobile-toc { display: block; border: 1px solid var(--gjd-line); background: var(--gjd-wash); border-radius: 5px; margin: 0 0 29px; }
  .gjd-mobile-toc summary { cursor: pointer; padding: 14px 18px; font-size: 13px; font-weight: 650; }
  .gjd-mobile-toc summary span { margin-left: 14px; color: var(--gjd-muted); font-size: 11px; font-weight: 400; }
  .gjd-mobile-toc ol { padding: 0 18px 16px 38px; font-size: 13px; }
  .gjd-mobile-toc li { padding: 5px 0; }
  .gjd-mobile-toc a { display: block; text-decoration: none; }
}
@media (max-width: 700px) {
  body.gjd-editorial { font-size: 16px; }
  .gjd-site { width: calc(100% - 40px); }
  .gjd-header { flex-wrap: wrap; gap: 0; padding-top: 17px; }
  .gjd-brand { font-size: 24px; }
  .gjd-brand svg { width: 26px; height: 30px; }
  .gjd-header nav { width: 100%; margin: 9px 0 0; justify-content: space-between; gap: 10px; font-size: 12px; }
  .gjd-header nav .gjd-explore-link { border: 0; padding: 0; gap: 6px; }
  .gjd-directory-hero { grid-template-columns: 1fr; gap: 26px; padding: 28px 0; }
  .gjd-directory-hero h1 { font-size: 37px; }
  .gjd-site .gjd-deck { font-size: 15px; margin-top: 17px; }
  .gjd-discover { padding: 20px 23px; }
  .gjd-discover p { font-size: 17px; }
  .gjd-discover p br { display: none; }
  .gjd-discover p strong { font-size: 20px; margin-left: 5px; }
  .gjd-discover-mark { top: 18px; right: 22px; }
  .gjd-discover-mark svg { width: 35px; height: 40px; }
  .gjd-discover-tags { margin-top: 7px; font-size: 11px; }
  .gjd-discover-cta { margin-top: 14px; padding-top: 10px; font-size: 12px; }
  .gjd-category-nav { gap: 6px 24px; }
  .gjd-category-nav a { min-height: 55px; font-size: 13px; }
  .gjd-site .gjd-list-label { margin: 21px 0; }
  .gjd-post-list { grid-template-columns: 1fr; gap: 26px; margin-bottom: 36px; }
  .gjd-post-card, .gjd-post-card:first-child { display: block; padding: 0 0 25px; border-bottom: 1px solid var(--gjd-line); }
  .gjd-post-card:last-child { border-bottom: 0; padding-bottom: 0; }
  .gjd-card-copy, .gjd-post-card:first-child .gjd-card-copy { padding-top: 19px; }
  .gjd-cover-copy, .gjd-post-card:first-child .gjd-cover-copy { inset: auto 18px 16px; }
  .gjd-cover-title, .gjd-post-card:first-child .gjd-cover-title { font-size: 26px; }
  .gjd-cover-label, .gjd-post-card:first-child .gjd-cover-label { font-size: 12px; margin-top: 5px; }
  .gjd-post-card h2, .gjd-post-card:first-child h2 { font-size: 25px; line-height: 1.5; }
  .gjd-site .gjd-card-excerpt { margin-top: 12px; font-size: 14px; }
  .gjd-article-hero { grid-template-columns: 1fr; gap: 26px; padding: 25px 0 28px; }
  .gjd-breadcrumb { margin-bottom: 19px; font-size: 11px; }
  .gjd-article-hero .gjd-eyebrow { margin-bottom: 12px; }
  .gjd-article-hero h1 { font-size: 31px; line-height: 1.45; }
  .gjd-site .gjd-byline { margin-top: 17px; }
  .gjd-reading-layout { padding-top: 25px; }
  .gjd-body { font-size: 16px; line-height: 1.95; }
  .gjd-body > p:first-child { font-size: 17px; }
  .gjd-body h2 { font-size: 24px; margin-top: 35px; padding-top: 20px; }
  .gjd-body h3 { font-size: 21px; }
  .gjd-table-wrap table { font-size: 13px; }
  .gjd-body .gjd-table-wide code { white-space: nowrap; }
  .gjd-table-wrap :is(th, td) { padding: 12px; }
  .gjd-table-wide::before { content: "표를 좌우로 밀어 전체 내용을 확인하세요."; display: block; position: sticky; left: 0; padding: 10px 12px; font-size: 11px; color: var(--gjd-muted); background: #eaf0e4; border-bottom: 1px solid var(--gjd-line); }
  .gjd-related { margin: 35px 0; padding-top: 23px; }
  .gjd-related h2 { font-size: 24px; }
  .gjd-related > div { grid-template-columns: 1fr; gap: 14px; }
  .gjd-related a { padding: 19px; font-size: 15px; }
  .gjd-page-hero { padding: 25px 0 20px; }
  .gjd-page-hero h1 { font-size: 31px; }
  .gjd-tool .gj-explorer { padding: 22px 16px; margin-top: 20px; }
  .gjd-footer { gap: 14px 20px; padding: 25px 0 28px; }
  .gjd-footer > div { width: 100%; }
  .gjd-footer nav { margin-left: 0; }
  .gjd-footer small { margin-left: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .gjd-site a { transition: color .15s ease, background-color .15s ease; }
}
/* Keep historical promotions clear before the article, including without JavaScript. */
.gjd-offer-notice { margin: 0 0 28px; padding: 18px 20px; border: 1px solid #d8d5cc; border-left: 3px solid #ba603f; border-radius: 4px; background: #f5f2e9; line-height: 1.8; overflow-wrap: anywhere; }
.gjd-offer-notice strong { display: block; font-size: 16px; }
.gjd-offer-notice p { margin: 8px 0 0; font-size: 14px; }
.gjd-offer-notice a { text-underline-offset: 3px; }
