/* Editorial collection. The project stylesheet supplies the shared site header only. */
body[data-page="articles"] { background: #07090f; line-height: 1.8; }
.essay-wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.essay-kicker { display: block; color: #facc15; font-size: 12px; font-weight: 800; letter-spacing: .14em; line-height: 1.6; }
.essay-breadcrumb { padding-block: 26px 0; color: #a4b0c0; font-size: 13px; overflow-wrap: anywhere; }
.essay-breadcrumb a:hover { color: #facc15; }
.essay-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 42px; align-items: center; padding-block: 54px 60px; border-bottom: 1px solid #253040; }
.essay-hero h1 { font-size: clamp(32px, 3.7vw, 46px); line-height: 1.28; letter-spacing: -.055em; word-break: keep-all; overflow-wrap: anywhere; margin: 18px 0; }
.essay-deck { color: #b7c1cf; font-size: 17px; line-height: 1.8; word-break: keep-all; }
.essay-byline { color: #a1adbe; font-size: 13px; line-height: 1.8; margin: 24px 0 0; }
.essay-hero figure { margin: 0; min-width: 0; }
.essay-hero img { width: 100%; height: auto; aspect-ratio: 1672/941; display: block; border-radius: 16px; border: 1px solid #303745; }
.essay-hero figcaption { color: #a2adbc; font-size: 12px; margin-top: 9px; text-align: right; }
.essay-layout { display: grid; grid-template-columns: 222px minmax(0, 1fr); gap: 62px; padding-block: 54px 80px; align-items: start; }
.essay-toc { position: sticky; top: 110px; font-size: 13px; max-height: calc(100vh - 130px); overflow-y: auto; }
.essay-toc strong { color: #facc15; display: block; margin-bottom: 15px; }
.essay-toc a { display: block; padding: 9px 0; color: #b5c0ce; line-height: 1.65; }
.essay-toc a:hover { color: #facc15; }
.essay-toc-back { border-top: 1px solid #273140; margin-top: 18px; padding-top: 18px !important; }
.essay-body { max-width: 790px; min-width: 0; font-size: 17px; color: #c3ccd8; overflow-wrap: anywhere; }
.essay-body p { margin: 0 0 22px; line-height: 1.95; }
.essay-body .essay-lead { font-size: 20px; color: #e0e6ef; line-height: 1.9; margin-bottom: 26px; }
.essay-body strong { color: #f3f5f8; font-weight: 750; }
.essay-body section { margin-top: 52px; scroll-margin-top: 112px; }
.essay-body h2 { margin: 0 0 23px; font-size: 27px; line-height: 1.5; letter-spacing: -.04em; color: #f8fafc; word-break: keep-all; overflow-wrap: anywhere; }
.essay-body a { color: #f9db57; text-decoration: underline; text-decoration-color: #7e6e2e; text-underline-offset: 4px; }
.essay-body a:hover { color: #fff4b2; text-decoration-color: currentColor; }
.essay-body ul, .essay-body ol:not(.essay-flow) { padding-left: 24px; }
.essay-body li { margin-block: 12px; line-height: 1.9; }
.essay-body code { padding: 2px 5px; border-radius: 4px; background: #151d29; font: .88em/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; color: #e7d899; }
.essay-body pre { overflow: auto; padding: 24px; background: #0d141f; border: 1px solid #2b3645; border-radius: 12px; font-size: 14px; line-height: 1.8; margin: 26px 0; }
.essay-body pre code { padding: 0; background: transparent; font-size: inherit; }
.essay-table { max-width: 100%; overflow-x: auto; border: 1px solid #2b3645; border-radius: 12px; margin: 26px 0; }
.essay-table table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; }
.essay-table caption { text-align: left; padding: 16px; color: #aeb9ca; font-size: 13px; background: #0c111a; }
.essay-table th, .essay-table td { padding: 14px 16px; border-bottom: 1px solid #27303e; line-height: 1.75; min-width: 130px; }
.essay-table thead th { color: #f7d656; background: #131a24; }
.essay-table tbody th { color: #e7ecf3; font-weight: 600; }
.essay-table tr:last-child > * { border-bottom: 0; }
.essay-callout { border-left: 3px solid #e7c237; border-radius: 0 10px 10px 0; padding: 24px; margin: 26px 0; background: #18190f; }
.essay-callout > strong { color: #ffe17d; }
.essay-callout p { font-size: 16px; margin: 12px 0 0; }
.essay-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; counter-reset: flow; margin: 26px 0; }
.essay-flow li { margin: 0; padding: 20px; border: 1px solid #303b4a; background: #101721; border-radius: 10px; counter-increment: flow; font-size: 15px; }
.essay-flow li::before { content: '0' counter(flow); display: block; color: #facc15; font: 12px/1.5 ui-monospace, monospace; margin-bottom: 9px; }
.essay-flow span { display: block; font-size: 13px; color: #abb8c9; margin-top: 4px; }
.essay-body .essay-source-note { font-size: 14px; color: #9eacbd; }
.essay-download { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #141913; border: 1px solid #5f5526; border-radius: 12px; margin: 26px 0; }
.essay-download span { font-size: 13px; color: #b9c1b6; }
.essay-related { border-top: 1px solid #2b3441; padding-top: 35px; }
.essay-related h2 { margin-top: 10px; }
.essay-related > div { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
.essay-related > p { font-size: 14px; }
.essay-more, body[data-page="home"] .essay-showcase { padding: 76px 0 88px; background: #111315; border-block: 1px solid #23282e; }
.essay-more h2 { font-size: 30px; line-height: 1.45; margin: 15px 0 32px; }
.essay-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.essay-cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.essay-card { display: flex; flex-direction: column; min-width: 0; color: #f8fafc; background: #0c1119; border: 1px solid #303a47; border-radius: 16px; overflow: hidden; transition: background-color .18s ease, border-color .18s ease; }
.essay-card:hover, .essay-card:focus-visible { transform: none; background: #181a14; border-color: #facc15; }
.essay-card img { display: block; width: 100%; height: auto; aspect-ratio: 1672/941; object-fit: contain; }
.essay-card-copy { display: flex; flex: 1; flex-direction: column; padding: 26px; }
.essay-card .essay-card-title { margin: 13px 0; color: #f8fafc; font-size: 23px; line-height: 1.5; letter-spacing: -.03em; word-break: keep-all; overflow-wrap: anywhere; }
.essay-card p { margin: 0 0 26px; color: #aeb9ca; font-size: 15px; line-height: 1.85; }
.essay-card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; color: #aeb9ca; font-size: 12px; }
.essay-card-bottom > span { color: #f7d759; }
.essay-showcase-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 36px; }
body[data-page="home"] .essay-showcase h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.25; margin: 16px 0; color: #f8fafc; }
.essay-showcase-head p { color: #adb8c6; font-size: 16px; line-height: 1.8; margin: 0; }
.essay-text-link { color: #f7d759; font-size: 14px; padding-block: 12px; display: inline-block; }
.essay-text-link:hover { color: #fff3ac; text-decoration: underline; text-underline-offset: 5px; }
.essay-index-hero { padding-block: 65px 55px; }
.essay-index-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.25; letter-spacing: -.05em; margin: 18px 0 24px; }
.essay-index-hero p { color: #b7c1cf; font-size: 18px; line-height: 1.9; }
.essay-index-cards { padding-bottom: 100px; }
.essay-footer { padding-block: 70px; font-size: 16px; color: #aeb9c9; border-top: 1px solid #26303e; }
.essay-footer .essay-wrap > a:first-child { color: #f8fafc; font-size: 22px; font-weight: 800; }
.essay-footer p { margin-block: 15px; }
.essay-footer a:hover { color: #facc15; }
body[data-page="articles"] .site-language-disclosure { max-width: 1180px; margin: 30px auto 0; width: calc(100% - 48px); }
body[data-page="articles"] :focus-visible, .essay-card:focus-visible { outline: 3px solid #facc15; outline-offset: 4px; }
body[data-page="articles"] .header-actions .btn:hover { background: #ffe77b; }
@media (max-width: 1000px) {
  .essay-hero { gap: 28px; }
  .essay-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 30px; }
  .essay-card-copy { padding: 20px; }
  .essay-card .essay-card-title { font-size: 21px; }
}
@media (max-width: 760px) {
  .essay-wrap { width: calc(100% - 36px); }
  .essay-hero { grid-template-columns: 1fr; padding-block: 34px 36px; }
  .essay-hero h1 { font-size: 34px; }
  .essay-hero figure { max-width: 560px; }
  .essay-layout { display: block; padding-block: 30px 54px; }
  .essay-toc { position: static; max-height: none; border: 1px solid #293340; border-radius: 12px; padding: 20px; margin-bottom: 34px; }
  .essay-body { font-size: 16px; }
  .essay-body .essay-lead { font-size: 18px; }
  .essay-body h2 { font-size: 24px; }
  .essay-cards, .essay-cards-two { grid-template-columns: 1fr; gap: 20px; }
  .essay-showcase-head { display: block; }
  .essay-showcase-head .essay-text-link { margin-top: 12px; }
  .essay-more, body[data-page="home"] .essay-showcase { padding-block: 55px 60px; }
  .essay-index-hero { padding-block: 38px; }
  .essay-index-hero p { font-size: 16px; }
  .essay-footer { padding-block: 55px; }
  .essay-body pre { padding: 18px; font-size: 13px; }
  .essay-table::before { content: "넓은 표는 좌우로 스크롤해 확인하세요 →"; display: block; padding: 10px 16px; font-size: 12px; color: #c4b46a; }
}
@media (max-width: 380px) {
  .essay-hero h1 { font-size: 30px; }
  .essay-flow { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .essay-card { transition: none; }
}
