/* Webzine look for the main page, the organisation library and the book page.
   Adapted from four public webzine archives: a wall of covers behind the page head and covers listed by year
   (kead-webzine), cover cards with two buttons underneath and block tabs (kcopa C STORY), a plain caption under
   each cover (hrdkorea webzine), and the cover beside a table of contents by section (국회도서관 월간지).
   Colours and type stay ELK's own (app.css variables). */

/* ---------- page head with the wall of covers ---------- */
.z-hero { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.z-collage { position: absolute; inset: 0; overflow: hidden; }
.z-collage-in {
  position: absolute; right: -6%; top: 50%; width: 78%;
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px;
  transform: translateY(-50%) rotate(-24deg) scale(1.25); transform-origin: center;
}
.z-collage-in img { width: 100%; aspect-ratio: 240 / 310; object-fit: cover; border-radius: 4px; box-shadow: 0 4px 14px rgba(46, 43, 87, .16); }
/* the words sit on white; the covers show through from the middle to the right */
.z-collage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0, #fff 30%, rgba(255, 255, 255, .8) 46%, rgba(255, 255, 255, .12) 72%, rgba(255, 255, 255, 0) 100%); }
.z-hero-in { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 48px; }
.z-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.z-hero-org { display: flex; align-items: center; gap: 28px; margin-top: 6px; }
.z-hero-org .org-logo { flex: none; }
.z-hero .org-intro { max-width: 560px; }
.z-hero .org-actions { margin-top: 16px; }

.z-home .z-hero-in { padding-top: 72px; padding-bottom: 76px; }
.z-home h1 { font-size: 42px; max-width: 760px; }
.z-home .eyebrow { margin-bottom: 10px; }
.z-hero-text { margin-top: 12px; font-size: 18px; color: var(--ink-2); max-width: 560px; }
.z-home .big-search { margin: 30px 0 0; max-width: 620px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.z-home .keyword-chips { justify-content: flex-start; max-width: 620px; }

/* ---------- section head: name, a note, a heavy rule ---------- */
.z-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; margin-bottom: 28px; border-bottom: 2px solid var(--ink); }
.z-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.z-head p { font-size: 14px; }
.z-head .more { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--brand); }
.z-head .more:hover { text-decoration: underline; }
.z-head.rest { margin-top: 72px; }

/* ---------- block tabs ---------- */
.z-tabs { display: flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: #fff; }
.z-tabs button { flex: 1; min-width: 0; height: 52px; padding: 0 16px; font-size: 16px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.z-tabs button + button { border-left: 1px solid var(--line-2); }
.z-tabs button:hover { background: var(--bg-2); }
.z-tabs [aria-selected="true"], .z-tabs [aria-selected="true"]:hover { background: var(--brand); color: #fff; }
.z-tabs .n { margin-left: 6px; font-size: 13px; font-weight: 500; opacity: .75; }
.z-tabs [hidden] { display: none; }

.z-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 8px; min-height: 44px; }
.z-bar p { font-size: 15px; color: var(--ink-2); }
.z-bar p b { color: var(--ink); }
.z-select { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.z-select select { width: auto; min-width: 150px; height: 44px; padding: 0 12px; border-radius: 6px; }
.z-select[hidden] { display: none; }

/* ---------- cover card ---------- */
.z-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 32px; }
.z-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.z-grid.cols-5 { grid-template-columns: repeat(5, 1fr); gap: 36px 26px; }
.z-card { display: flex; flex-direction: column; min-width: 0; }
.z-cover { position: relative; display: block; aspect-ratio: 240 / 310; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.z-cover img { width: 100%; height: 100%; object-fit: cover; }
.z-card:hover .z-cover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(46, 43, 87, .2); }
.z-cap { padding: 14px 2px 0; }
.z-cap h4 { font-size: 16px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.z-cap h4 a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.z-cap p { margin-top: 4px; font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-cap.center { text-align: center; }
.z-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.z-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; border: 1px solid var(--brand-deep); font-size: 14px; font-weight: 600; color: var(--brand-deep); background: #fff; }
.z-btn:hover { background: var(--brand-soft); }
.z-btn.fill { background: var(--brand-deep); color: #fff; }
.z-btn.fill:hover { background: var(--brand); border-color: var(--brand); }

/* ---------- issues by year ---------- */
.z-series { margin-top: 44px; }
.z-year { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 8px 0 52px; }
.z-year + .z-year { padding-top: 44px; border-top: 1px solid var(--line-2); }
.z-year h3 { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.z-issue-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.z-issue-label b { font-size: 17px; font-weight: 700; }
.z-issue-label span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.z-issue.current .z-cover { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ---------- book page: issue name, tabs, cover + contents ---------- */
.z-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 6px 0 20px; margin-bottom: 20px; border-bottom: 2px solid var(--ink); }
.z-title h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.z-title .detail-org { margin: 0; flex: none; }
.z-issue-name { display: flex; align-items: baseline; gap: 16px; }
.z-issue-name b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.z-issue-name .text-link { margin: 0; font-size: 14px; }
.z-issue-body { display: grid; grid-template-columns: 300px 1fr; gap: 0 48px; margin-top: 14px; border-top: 1px solid var(--line-2); }
.z-side { padding-top: 28px; }
.z-side .detail-cover img { border-radius: 0; border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(16, 24, 40, .16); }
.z-side-actions { display: grid; gap: 8px; margin-top: 22px; }
.z-side-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.z-side-actions .btn { justify-content: center; }
.z-main { min-width: 0; }
.z-empty { padding: 40px 0; }

/* contents by section: section name | article · description | page */
.z-toc-sec { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line-2); }
.z-toc-sec h3 { display: flex; align-items: center; padding: 18px 22px; font-size: 16px; font-weight: 700; background: var(--bg-2); }
.z-toc-sec ol { grid-column: 2; padding: 8px 0; }
.z-toc-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 2px 16px; align-items: baseline; padding: 10px 22px; }
.z-toc-title { font-size: 16px; font-weight: 600; }
.z-toc-title::before { content: "- "; color: var(--ink-3); font-weight: 400; }
.z-toc-desc { grid-column: 1; padding-left: 12px; font-size: 14px; color: var(--ink-3); }
.z-toc-page { grid-column: 2; grid-row: 1; text-align: right; font-size: 14px; color: var(--brand-2); font-variant-numeric: tabular-nums; }
a.z-toc-row:hover { background: var(--brand-soft); }
a.z-toc-row:hover .z-toc-title { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.z-toc.flat .z-toc-sec { grid-template-columns: 1fr; }
.z-toc.flat .z-toc-sec ol { grid-column: 1; }

.z-info { display: grid; grid-template-columns: 220px 1fr; font-size: 15px; }
.z-info dt { padding: 16px 22px; font-weight: 700; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.z-info dd { margin: 0; padding: 16px 22px; border-bottom: 1px solid var(--line-2); }
.z-info dd a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.z-info dd.chips a { text-decoration: none; }
#p-issues { padding-top: 28px; }
.z-more { padding-bottom: 0; }

/* ---------- main page: this month's book ---------- */
.z-feature { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.z-feature-cover img { width: 100%; aspect-ratio: 240 / 310; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(16, 24, 40, .16); }
.z-feature-main > h3 { margin: 4px 0 18px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.z-feature-main > h3 a:hover { color: var(--brand); }
.z-feature-main .z-toc { border-top: 1px solid var(--ink); }
.z-feature-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- list page: head, scrolling type tabs, numbered pages ---------- */
.z-sub .z-hero-in { padding-top: 40px; padding-bottom: 40px; }
.lib { padding-top: 36px; }
.z-tabs.scroll { overflow-x: auto; scrollbar-width: none; }
.z-tabs.scroll::-webkit-scrollbar { display: none; }
.z-tabs.scroll button { flex: 1 0 auto; }
.z-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 56px; }
.z-pager:empty { display: none; }
.z-pager button { min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.z-pager button:hover:not(:disabled) { border-color: var(--brand-deep); color: var(--brand-deep); }
.z-pager [aria-current="page"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; font-weight: 700; }
.z-pager button:disabled { opacity: .35; cursor: default; }

@media (max-width: 1100px) {
  .z-grid, .z-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .z-toc-sec, .z-info { grid-template-columns: 170px 1fr; }
  .z-issue-body, .z-feature { grid-template-columns: 240px 1fr; gap: 0 32px; }
  .z-feature { gap: 32px; }
  .z-collage-in { width: 100%; right: -30%; }
}
@media (max-width: 760px) {
  .z-hero-in { padding-top: 24px; padding-bottom: 28px; }
  .z-home .z-hero-in { padding-top: 36px; padding-bottom: 40px; }
  .z-hero h1 { font-size: 26px; }
  .z-home h1 { font-size: 30px; }
  .z-hero-text { font-size: 15px; }
  .z-hero-org { gap: 16px; align-items: flex-start; }
  .z-collage-in { width: 170%; right: -90%; grid-template-columns: repeat(9, 1fr); gap: 8px; }
  .z-collage::after { background: linear-gradient(90deg, #fff 0, rgba(255, 255, 255, .93) 45%, rgba(255, 255, 255, .7) 100%); }
  .z-head { flex-wrap: wrap; gap: 2px 12px; margin-bottom: 20px; }
  .z-head h2 { font-size: 21px; }
  .z-tabs button { height: 46px; padding: 0 8px; font-size: 14px; }
  .z-bar { flex-wrap: wrap; }
  .z-grid, .z-grid.cols-3, .z-grid.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .z-cap h4 { font-size: 15px; }
  .z-btn { height: 38px; font-size: 13px; }
  .z-year { grid-template-columns: 1fr; gap: 14px; padding-bottom: 36px; }
  .z-year + .z-year { padding-top: 28px; }
  .z-title { flex-direction: column; align-items: flex-start; gap: 10px; }
  .z-title h1 { font-size: 25px; }
  .z-issue-body, .z-feature { grid-template-columns: 1fr; }
  .z-side { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: start; padding-top: 20px; }
  .z-side-actions { margin-top: 0; }
  .z-side .legacy-note { grid-column: 1 / -1; }
  .z-main { margin-top: 24px; }
  .z-toc-sec, .z-info { grid-template-columns: 1fr; }
  .z-toc-sec h3 { padding: 10px 16px; font-size: 15px; }
  .z-toc-sec ol { grid-column: 1; }
  .z-toc-row { padding: 10px 16px; }
  .z-info dt { padding: 10px 16px 4px; border-bottom: 0; background: none; color: var(--ink-3); font-weight: 500; font-size: 13px; }
  .z-info dd { padding: 0 16px 12px; }
  .z-feature-cover { max-width: 200px; }
  .z-feature-main > h3 { font-size: 23px; }
}

/* =====================================================================================================
   Design options. C (no rules here) is the look above. A and B change the whole frame: colours, header,
   page heads, tabs, cards. Picked by data-theme on <html> (assets/js/webzine.js).
   ===================================================================================================== */
.z-switch { position: fixed; left: 16px; bottom: 16px; z-index: 300; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 99px; background: #16161a; color: #fff; font-size: 13px; box-shadow: 0 6px 24px rgba(0, 0, 0, .28); }
.z-switch span { padding: 0 8px 0 12px; opacity: .7; }
.z-switch button { height: 32px; padding: 0 14px; border-radius: 99px; color: #fff; font-size: 13px; white-space: nowrap; }
.z-switch [aria-pressed="true"] { background: #fff; color: #16161a; font-weight: 700; }
.z-font sup { font-size: 10px; margin-left: 1px; }
@media (max-width: 760px) {
  .z-switch { left: 8px; right: 8px; bottom: 72px; justify-content: space-between; }
  .z-switch span { display: none; }
  .z-switch button { flex: 1; padding: 0 6px; }
}

/* ---------------------------------------------------------------------------------------------------
   A 매거진형 — after kead-webzine: black on white, a very large name, the wall of covers left vivid,
   text tabs, covers with no frame, text links instead of buttons, a wide year column.
   --------------------------------------------------------------------------------------------------- */
html[data-theme="a"] {
  --brand: #16161a; --brand-hover: #000; --brand-deep: #16161a; --brand-logo: #16161a; --brand-2: #16161a;
  --brand-soft: #f1efe9; --blue-soft: #f1efe9; --accent: #e2472f; --accent-logo: #e2472f; --accent-soft: #fdece8;
  --bg-2: #f7f5f0; --bg-3: #efece5; --line: #e6e2d9; --line-2: #d6d1c5; --ink: #16161a; --ink-2: #44434a; --ink-3: #77757c;
  --wrap: 1120px; --header-h: 96px; --radius: 0px;
}
html[data-theme="a"] .header { background: #fff; backdrop-filter: none; border-bottom: 0; }
html[data-theme="a"] .logo img { height: 58px; }
html[data-theme="a"] .gnb { margin-left: auto; gap: 2px; }
html[data-theme="a"] .gnb a { font-size: 15px; font-weight: 500; border-radius: 0; }
html[data-theme="a"] .gnb a[aria-current="page"] { color: var(--ink); font-weight: 800; box-shadow: inset 0 -2px 0 var(--ink); }
html[data-theme="a"] .header-user { margin-left: 16px; }
html[data-theme="a"] .btn, html[data-theme="a"] .input, html[data-theme="a"] .select, html[data-theme="a"] .notice-box,
html[data-theme="a"] .cs-box, html[data-theme="a"] .lib-search, html[data-theme="a"] .logo-tile { border-radius: 0; }
html[data-theme="a"] .eyebrow { color: var(--accent); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }

html[data-theme="a"] .z-hero { border-bottom: 0; }
html[data-theme="a"] .z-collage-in { width: 104%; right: -14%; grid-template-columns: repeat(9, 1fr); gap: 18px; transform: translateY(-50%) rotate(-28deg) scale(1.3); }
html[data-theme="a"] .z-collage-in img { border-radius: 0; box-shadow: none; }
html[data-theme="a"] .z-collage::after { background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0, rgba(255, 255, 255, .92) 24%, rgba(255, 255, 255, .3) 50%, rgba(255, 255, 255, 0) 72%); }
/* organisation and list heads carry longer lines than the main page: keep the words on white for longer */
html[data-theme="a"] .z-hero:not(.z-home) .z-collage::after { background: linear-gradient(90deg, #fff 0, rgba(255, 255, 255, .96) 46%, rgba(255, 255, 255, .45) 66%, rgba(255, 255, 255, 0) 88%); }
html[data-theme="a"] .z-hero h1 { font-size: 54px; font-weight: 900; letter-spacing: -.045em; line-height: 1.1; }
html[data-theme="a"] .z-hero-in { padding-top: 72px; padding-bottom: 80px; }
html[data-theme="a"] .z-home .z-hero-in { padding-top: 104px; padding-bottom: 112px; }
html[data-theme="a"] .z-home h1 { font-size: 68px; max-width: 640px; }
html[data-theme="a"] .z-hero-text { font-size: 20px; }
html[data-theme="a"] .z-home .big-search { padding: 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; box-shadow: none; background: rgba(255, 255, 255, .7); max-width: 520px; }
html[data-theme="a"] .z-home .big-search input { padding-left: 4px; }
html[data-theme="a"] .z-home .big-search .btn { height: 52px; }
html[data-theme="a"] .z-home .chip { background: rgba(255, 255, 255, .8); }

html[data-theme="a"] .section { padding: 96px 0; }
html[data-theme="a"] .section + .section { padding-top: 0; }
html[data-theme="a"] .z-head { border-bottom: 1px solid var(--ink); padding-bottom: 18px; margin-bottom: 44px; }
html[data-theme="a"] .z-head h2 { font-size: 36px; font-weight: 900; letter-spacing: -.045em; }
html[data-theme="a"] .section-head h2 { font-size: 36px; font-weight: 900; letter-spacing: -.045em; }
html[data-theme="a"] .z-tabs { border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; gap: 36px; overflow: visible; }
html[data-theme="a"] .z-tabs button { flex: none; height: 58px; padding: 0; border: 0; background: none; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--ink-3); }
html[data-theme="a"] .z-tabs [aria-selected="true"], html[data-theme="a"] .z-tabs [aria-selected="true"]:hover { background: none; color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
html[data-theme="a"] .z-tabs.scroll { overflow-x: auto; }

html[data-theme="a"] .z-grid { gap: 64px 44px; }
html[data-theme="a"] .z-cover { border: 0; background: var(--bg-2); }
html[data-theme="a"] .z-card:hover .z-cover { transform: translateY(-8px); box-shadow: 0 22px 40px rgba(0, 0, 0, .18); }
html[data-theme="a"] .z-cap { padding-top: 16px; }
html[data-theme="a"] .z-cap h4 { font-size: 16px; font-weight: 700; }
html[data-theme="a"] .z-actions { display: flex; gap: 18px; margin-top: 14px; }
html[data-theme="a"] .z-btn { height: auto; padding: 0 0 3px; border: 0; border-bottom: 1px solid var(--ink-3); background: none; font-size: 13px; font-weight: 500; color: var(--ink-2); }
html[data-theme="a"] .z-btn.fill { border-bottom-color: var(--ink); color: var(--ink); font-weight: 800; }
html[data-theme="a"] .z-btn.fill::after { content: "→"; margin-left: 4px; }
html[data-theme="a"] .z-btn:hover { background: none; color: var(--accent); border-bottom-color: var(--accent); }

html[data-theme="a"] .z-year { grid-template-columns: 210px 1fr; padding-bottom: 72px; }
html[data-theme="a"] .z-year + .z-year { padding-top: 64px; }
html[data-theme="a"] .z-year h3 { font-size: 44px; font-weight: 300; letter-spacing: -.04em; }
html[data-theme="a"] .z-year .z-grid { grid-template-columns: repeat(3, 1fr); gap: 60px 40px; }
html[data-theme="a"] .z-issue-label { margin-bottom: 12px; }

html[data-theme="a"] .z-title { border-bottom: 1px solid var(--ink); padding-bottom: 28px; }
html[data-theme="a"] .z-title h1 { font-size: 52px; font-weight: 900; letter-spacing: -.045em; line-height: 1.1; }
html[data-theme="a"] .z-issue-name b { font-size: 30px; font-weight: 300; }
html[data-theme="a"] .z-issue-body { grid-template-columns: 340px 1fr; gap: 0 64px; border-top: 0; }
html[data-theme="a"] .z-side .detail-cover img { border: 0; box-shadow: 0 26px 50px rgba(0, 0, 0, .2); }
html[data-theme="a"] .z-toc-sec, html[data-theme="a"] .z-info { grid-template-columns: 200px 1fr; }
html[data-theme="a"] .z-toc-sec h3 { align-items: flex-start; padding: 22px 16px 22px 0; background: none; font-size: 15px; font-weight: 800; color: var(--accent); }
html[data-theme="a"] .z-toc-sec ol { padding: 12px 0; }
html[data-theme="a"] .z-toc-row { padding: 10px 0; }
html[data-theme="a"] .z-toc-title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
html[data-theme="a"] .z-toc-title::before { content: none; }
html[data-theme="a"] .z-toc-desc { padding-left: 0; }
html[data-theme="a"] .z-toc-page { color: var(--ink-3); }
html[data-theme="a"] a.z-toc-row:hover { background: none; }
html[data-theme="a"] .z-info dt { background: none; padding-left: 0; }
html[data-theme="a"] .z-feature { grid-template-columns: 360px 1fr; gap: 72px; }
html[data-theme="a"] .z-feature-main > h3 { font-size: 44px; font-weight: 900; letter-spacing: -.045em; }
html[data-theme="a"] .z-feature-cover img { border: 0; box-shadow: 0 26px 50px rgba(0, 0, 0, .2); }
html[data-theme="a"] .footer { background: #fff; border-top: 2px solid var(--ink); }

/* ---------------------------------------------------------------------------------------------------
   B 기관 포털형 — after kcopa (C STORY), 국회도서관 and hrdkorea: navy, a dark bar with search above the
   header, bold menu, a dark page head with the title in the middle, a left menu under a dark title box,
   framed cards with two filled buttons, a quick menu on the right.
   --------------------------------------------------------------------------------------------------- */
html[data-theme="b"] {
  --brand: #1d4f9f; --brand-hover: #163f82; --brand-deep: #0c2c5e; --brand-logo: #1d4f9f; --brand-2: #1d4f9f;
  --brand-soft: #e9f0fa; --blue-soft: #e9f0fa; --accent: #0e7fc2; --accent-logo: #0e7fc2; --accent-soft: #e6f3fb;
  --bg-2: #f4f6f9; --bg-3: #e9edf2; --line: #dfe3e8; --line-2: #c9cfd8; --ink: #16181d; --ink-2: #3b4250; --ink-3: #6b7280;
  --header-h: 88px; --radius: 2px;
}
.zb-util { background: var(--brand-deep); color: #fff; font-size: 13px; }
.zb-util .wrap { display: flex; align-items: center; gap: 22px; height: 46px; }
.zb-util a { opacity: .88; white-space: nowrap; }
.zb-util a:hover { opacity: 1; text-decoration: underline; }
.zb-util form { display: flex; width: 280px; height: 32px; margin-left: 8px; background: rgba(255, 255, 255, .16); }
.zb-util input { flex: 1; min-width: 0; padding: 0 12px; border: 0; background: transparent; color: #fff; font-size: 13px; }
.zb-util input::placeholder { color: rgba(255, 255, 255, .7); }
.zb-util input:focus { outline: 2px solid #fff; outline-offset: -2px; }
.zb-util form button { display: grid; place-items: center; width: 36px; color: #fff; }
.zb-util form svg { width: 16px; height: 16px; }
.zb-util .right { display: flex; gap: 20px; margin-left: auto; }
.zb-quick { position: fixed; right: 0; top: 34%; z-index: 90; display: grid; width: 54px; }
.zb-quick span { display: grid; place-items: center; height: 124px; background: #2b2b2e; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; writing-mode: vertical-rl; }
.zb-quick a { display: grid; place-items: center; height: 54px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; }
.zb-quick a:hover { filter: brightness(1.12); }

html[data-theme="b"] .header { background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--line-2); }
/* the skip link is placed from the header, which now starts below the top bar: keep it off screen until focused */
html[data-theme="b"] .skip { top: -200px; }
html[data-theme="b"] .skip:focus { top: 12px; background: #fff; color: var(--brand-deep); }
html[data-theme="b"] .gnb { margin-left: 44px; gap: 14px; }
html[data-theme="b"] .gnb a { padding: 10px 14px; border-radius: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
html[data-theme="b"] .gnb a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -4px 0 var(--brand); }
html[data-theme="b"] .btn, html[data-theme="b"] .input, html[data-theme="b"] .select, html[data-theme="b"] .big-search, html[data-theme="b"] .notice-box,
html[data-theme="b"] .cs-box, html[data-theme="b"] .lib-search, html[data-theme="b"] .logo-tile, html[data-theme="b"] .z-tabs, html[data-theme="b"] .z-select select { border-radius: 2px; }

html[data-theme="b"] .z-hero { background: var(--brand-deep); border-bottom: 0; color: #fff; }
html[data-theme="b"] .z-collage-in { width: 124%; right: -12%; grid-template-columns: repeat(12, 1fr); }
html[data-theme="b"] .z-collage::after { background: linear-gradient(180deg, rgba(12, 44, 94, .82), rgba(12, 44, 94, .93)); }
html[data-theme="b"] .z-hero-in { padding-top: 26px; padding-bottom: 64px; text-align: center; }
html[data-theme="b"] .z-hero .crumbs { justify-content: flex-start; margin-bottom: 26px; color: rgba(255, 255, 255, .78); }
html[data-theme="b"] .z-hero .crumbs a:hover { color: #fff; }
html[data-theme="b"] .z-hero h1 { font-size: 40px; color: #fff; letter-spacing: -.02em; }
html[data-theme="b"] .z-hero .muted, html[data-theme="b"] .z-hero .org-intro, html[data-theme="b"] .z-hero-text { color: rgba(255, 255, 255, .84); }
html[data-theme="b"] .z-hero .org-intro, html[data-theme="b"] .z-hero-text, html[data-theme="b"] .z-home h1 { max-width: none; margin-left: auto; margin-right: auto; }
html[data-theme="b"] .z-hero-org { flex-direction: column; gap: 14px; }
html[data-theme="b"] .z-hero .btn { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
html[data-theme="b"] .z-hero .btn:hover { background: rgba(255, 255, 255, .14); }
html[data-theme="b"] .z-home .z-hero-in { padding-top: 76px; padding-bottom: 84px; }
html[data-theme="b"] .z-home .eyebrow { color: #9cc7ff; }
html[data-theme="b"] .z-home .big-search { margin: 30px auto 0; max-width: 680px; border: 0; }
html[data-theme="b"] .z-home .big-search .btn { background: var(--brand); border-color: var(--brand); color: #fff; }
html[data-theme="b"] .z-home .keyword-chips { justify-content: center; max-width: none; }
html[data-theme="b"] .z-home .keyword-chips .muted { color: rgba(255, 255, 255, .8); }
html[data-theme="b"] .z-home .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .38); color: #fff; }
html[data-theme="b"] .z-home .chip:hover { background: rgba(255, 255, 255, .22); }

html[data-theme="b"] .z-head { border-bottom-color: var(--brand-deep); }
html[data-theme="b"] .z-head h2 { padding-left: 14px; border-left: 5px solid var(--brand); line-height: 1.1; }
html[data-theme="b"] .z-tabs [aria-selected="true"], html[data-theme="b"] .z-tabs [aria-selected="true"]:hover { background: var(--brand); }
html[data-theme="b"] .lib-search { background: var(--bg-2); border: 1px solid var(--line); }
html[data-theme="b"] .z-grid { gap: 30px 22px; }
html[data-theme="b"] .z-card { padding-bottom: 12px; border: 1px solid var(--line-2); background: #fff; }
html[data-theme="b"] .z-card:hover { border-color: var(--brand); }
html[data-theme="b"] .z-cover { border: 0; border-bottom: 1px solid var(--line); }
html[data-theme="b"] .z-card:hover .z-cover { transform: none; box-shadow: none; }
html[data-theme="b"] .z-cap { padding: 14px 12px 0; }
html[data-theme="b"] .z-actions { gap: 4px; padding: 0 12px; }
html[data-theme="b"] .z-btn { border-color: var(--brand); background: var(--brand); color: #fff; }
html[data-theme="b"] .z-btn:hover { background: var(--brand-hover); }
html[data-theme="b"] .z-btn.fill { border-color: var(--brand-deep); background: var(--brand-deep); }
html[data-theme="b"] .z-year h3 { color: var(--brand-deep); }
html[data-theme="b"] .z-title { border-bottom-color: var(--brand-deep); }
html[data-theme="b"] .z-toc { border-top: 2px solid var(--brand-deep); }
html[data-theme="b"] .z-toc-sec h3, html[data-theme="b"] .z-info dt { background: var(--bg-2); border-right: 1px solid var(--line); }
html[data-theme="b"] .z-toc-page { color: var(--ink-3); }
html[data-theme="b"] .z-toc-page::before { content: "["; }
html[data-theme="b"] .z-toc-page::after { content: "]"; }
html[data-theme="b"] .footer { background: var(--bg-2); }

@media (min-width: 1101px) {
  /* left menu: the type / kind tabs become a column under a dark title box that rises into the page head */
  html[data-theme="b"] .lib, html[data-theme="b"] .org-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); column-gap: 56px; align-items: start; }
  html[data-theme="b"] .lib > *, html[data-theme="b"] .org-body > * { grid-column: 2; }
  html[data-theme="b"] #typeTabs, html[data-theme="b"] #kindTabs { grid-column: 1; grid-row: 1 / span 30; display: block; position: relative; z-index: 2; margin-top: -92px; border: 0; border-radius: 0; overflow: visible; background: #fff; }
  html[data-theme="b"] #typeTabs::before, html[data-theme="b"] #kindTabs::before { content: "포트폴리오"; display: grid; place-items: center; height: 116px; background: #2b2b2e; color: #fff; font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
  html[data-theme="b"] #kindTabs::before { content: "자료 분류"; }
  html[data-theme="b"] #typeTabs button, html[data-theme="b"] #kindTabs button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 58px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; font-size: 17px; font-weight: 600; color: var(--ink); text-align: left; }
  html[data-theme="b"] #typeTabs button:hover, html[data-theme="b"] #kindTabs button:hover { background: var(--bg-2); }
  html[data-theme="b"] #typeTabs [aria-selected="true"], html[data-theme="b"] #kindTabs [aria-selected="true"],
  html[data-theme="b"] #typeTabs [aria-selected="true"]:hover, html[data-theme="b"] #kindTabs [aria-selected="true"]:hover { background: #fff; color: var(--brand); font-weight: 800; box-shadow: inset 0 -2px 0 var(--brand); text-decoration: underline; text-underline-offset: 4px; }
  html[data-theme="b"] .lib .z-grid, html[data-theme="b"] .org-body .z-grid { grid-template-columns: repeat(3, 1fr); }
  html[data-theme="b"] .lib .lib-search, html[data-theme="b"] .org-body .z-bar { margin-top: 0; }
  html[data-theme="b"] .z-year { grid-template-columns: 110px 1fr; }
}
@media (max-width: 1100px) {
  .zb-quick { display: none; }
  .zb-util form { width: 200px; }
  html[data-theme="a"] .z-home h1 { font-size: 52px; }
  html[data-theme="a"] .z-issue-body, html[data-theme="a"] .z-feature { grid-template-columns: 260px 1fr; gap: 0 36px; }
  html[data-theme="a"] .z-feature { gap: 36px; }
}
@media (max-width: 760px) {
  .zb-util .wrap > a, .zb-util form { display: none; }
  .zb-util .wrap { height: 36px; }
  html[data-theme="a"] { --header-h: 60px; }
  html[data-theme="a"] .logo img { height: 40px; }
  html[data-theme="a"] .section { padding: 56px 0; }
  html[data-theme="a"] .z-hero h1 { font-size: 34px; }
  html[data-theme="a"] .z-home h1 { font-size: 40px; }
  html[data-theme="a"] .z-hero-in, html[data-theme="a"] .z-home .z-hero-in { padding-top: 44px; padding-bottom: 48px; }
  html[data-theme="a"] .z-collage::after { background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, .86) 50%, rgba(255, 255, 255, .55) 100%); }
  html[data-theme="a"] .z-head h2, html[data-theme="a"] .section-head h2 { font-size: 26px; }
  html[data-theme="a"] .z-head { margin-bottom: 24px; }
  html[data-theme="a"] .z-tabs { gap: 20px; }
  html[data-theme="a"] .z-tabs button { height: 48px; font-size: 17px; }
  html[data-theme="a"] .z-grid, html[data-theme="a"] .z-year .z-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  html[data-theme="a"] .z-year { grid-template-columns: 1fr; padding-bottom: 44px; }
  html[data-theme="a"] .z-year h3 { font-size: 32px; }
  html[data-theme="a"] .z-title h1 { font-size: 32px; }
  html[data-theme="a"] .z-issue-body, html[data-theme="a"] .z-feature { grid-template-columns: 1fr; }
  html[data-theme="a"] .z-toc-sec, html[data-theme="a"] .z-info { grid-template-columns: 1fr; }
  html[data-theme="a"] .z-toc-sec h3 { padding: 16px 0 0; }
  html[data-theme="a"] .z-toc-title { font-size: 17px; }
  html[data-theme="a"] .z-feature-main > h3 { font-size: 28px; }
  html[data-theme="b"] .z-hero h1 { font-size: 26px; }
  html[data-theme="b"] .z-home .z-hero-in { padding-top: 40px; padding-bottom: 44px; }
}
