/* Shared document workspace; isolated from the earlier design experiments. */
:root {
  --paper: #fff;
  --ink: #242c2b;
  --muted: #68716f;
  --line: #dde2df;
  --soft: #f5f7f5;
  --accent: #22564b;
  --link: #315f88;
  --max: 1280px;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
html {
  color-scheme: light;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    14px/1.65 "Pretendard",
    "Noto Sans CJK KR",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select,
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
:is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  min-width: 0;
}
input:not([type="checkbox"]):not([type="radio"]),
select {
  height: 42px;
  padding: 8px 11px;
}
textarea {
  padding: 10px;
  resize: vertical;
}
input[type="radio"],
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
.work-wrap {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}
.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  vertical-align: middle;
}
.muted,
.fine {
  color: var(--muted);
}
.fine {
  font-size: 12px;
  line-height: 1.7;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  padding: 12px;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--accent);
}
.skip-link:focus {
  top: 12px;
}
.work-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.masthead {
  min-height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.work-brand {
  font:
    700 26px/1.3 "KoPubBatang_Pro",
    "Noto Serif CJK KR",
    Batang,
    serif;
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}
.work-brand span {
  font:
    12px/1.5 "Pretendard",
    "Noto Sans CJK KR",
    sans-serif;
  color: var(--muted);
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.work-brand:hover {
  text-decoration: none;
}
.edition-label {
  display: flex;
  gap: 12px;
  font-size: 12px;
  white-space: nowrap;
}
.navigation-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
}
.site-nav {
  display: flex;
  align-items: stretch;
  gap: 25px;
  min-width: 0;
}
.site-nav > a,
.site-nav summary {
  display: flex;
  align-items: center;
  min-height: 49px;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav > a.on,
.nav-group.current > summary {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.nav-group {
  position: relative;
}
.nav-group summary {
  cursor: pointer;
  list-style: none;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-group summary::after {
  content: "";
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  padding: 2px;
  transform: rotate(45deg);
  margin: -3px 0 0 8px;
}
.nav-menu {
  position: absolute;
  top: 48px;
  right: 0;
  min-width: 165px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  z-index: 20;
  box-shadow: 0 6px 15px #24352a0a;
}
.nav-menu a {
  display: block;
  padding: 8px 10px;
  white-space: nowrap;
  font-size: 13px;
}
.nav-menu a:hover {
  background: var(--soft);
}
.member-link {
  align-self: center;
  font-size: 12px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  white-space: nowrap;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  padding-top: 25px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0 10px;
}
.page-heading h1 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 650;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 9px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  padding: 8px 0;
  color: var(--accent);
  white-space: nowrap;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.workspace-tabs {
  display: flex;
  gap: 32px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.workspace-tabs [role="tab"] {
  min-height: 51px;
  padding: 0 1px;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}
.workspace-tabs [aria-selected="true"] {
  color: var(--ink);
  font-weight: 700;
  border-color: var(--accent);
}
.tab-count {
  padding-left: 6px;
  color: var(--accent);
  font-size: 12px;
}
.tabs-status {
  margin-left: auto;
  align-self: center;
  font-size: 11px;
  color: var(--muted);
}
.catalog-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 304px;
  gap: 32px;
  padding: 29px 0 38px;
}
.catalog-sidebar {
  border-right: 1px solid var(--line);
  padding-right: 19px;
}
.small-heading {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 13px;
}
.category-list {
  display: grid;
  gap: 3px;
}
.category-list button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 3px;
  text-align: left;
  font-size: 13px;
}
.category-list button span {
  color: var(--muted);
  font-size: 11px;
}
.category-list button[aria-pressed="true"] {
  background: #ecf1ed;
  color: var(--accent);
  font-weight: 650;
}
.category-list button:hover {
  background: var(--soft);
}
.access-filter {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 16px;
}
.access-filter legend {
  float: left;
  width: 100%;
  margin-bottom: 11px;
  font-size: 11px;
  color: var(--muted);
}
.access-filter label {
  display: flex;
  align-items: center;
  gap: 6px;
  clear: both;
  padding: 5px 0;
  font-size: 12px;
}
.sidebar-reference {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 19px;
  font-size: 12px;
}
.sidebar-reference p {
  line-height: 1.9;
  margin-bottom: 14px;
}
.sidebar-reference a {
  font-size: 11px;
  color: var(--accent);
}
.sidebar-reference .icon {
  width: 13px;
  height: 13px;
}
.catalog-main,
.custom-main {
  min-width: 0;
}
.catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 8px;
}
.search-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding-left: 12px;
  background: #fff;
  min-width: 0;
}
.search-field input {
  border: 0;
  width: 100%;
  background: transparent;
}
.search-field .icon {
  opacity: 0.55;
  width: 16px;
  height: 16px;
}
.search-field:focus-within {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.search-field input:focus {
  outline: none;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 23px 0 10px;
  gap: 12px;
}
.list-heading h2 {
  font-size: 13px;
  font-weight: 600;
}
.list-heading h2 span {
  color: var(--muted);
  margin-left: 5px;
  font-size: 12px;
  font-weight: 400;
}
.list-heading > span {
  font-size: 10px;
  color: var(--muted);
}
.catalog-row {
  padding: 21px 16px 20px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
}
.catalog-row:first-child {
  border-top: 1px solid var(--line);
}
.catalog-row.is-selected {
  background: #f3f6f3;
  border-left-color: var(--accent);
}
.catalog-row > .icon {
  margin-top: 3px;
  width: 22px;
  height: 22px;
  opacity: 0.55;
}
.row-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.availability {
  color: var(--accent);
  font-weight: 600;
}
.availability.planned {
  color: #75624b;
}
.catalog-title {
  padding: 0;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 650;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.catalog-title:hover {
  color: var(--accent);
}
.catalog-row p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
}
.row-bottom span {
  font-size: 11px;
  color: var(--muted);
}
.row-bottom button {
  font-size: 11px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
.row-bottom .icon {
  width: 14px;
  height: 14px;
}
.catalog-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
  word-break: keep-all;
}
.document-inspector {
  border-left: 1px solid var(--line);
  padding-left: 25px;
  min-width: 0;
}
.inspector-sticky {
  position: sticky;
  top: 24px;
}
.inspector-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 11px;
  color: var(--muted);
}
.document-inspector h2 {
  font-size: 18px;
  line-height: 1.65;
  margin-top: 13px;
}
.document-preview {
  background: #f2f4f1;
  padding: 18px;
  min-height: 228px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.document-preview img {
  height: 205px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 2px 8px #1d352a18;
}
.document-preview.planned-preview {
  display: block;
  min-height: 0;
  border-top: 2px solid var(--accent);
  padding: 20px;
}
.planned-preview .preview-code {
  font-size: 11px;
  color: var(--muted);
}
.planned-preview strong {
  display: block;
  margin: 17px 0;
  font-size: 17px;
  line-height: 1.65;
}
.planned-preview p {
  color: var(--muted);
  font-size: 11px;
}
.document-facts {
  margin: 14px 0 18px;
  font-size: 11px;
}
.document-facts div {
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 5px 0;
  gap: 8px;
}
.document-facts dt {
  color: var(--muted);
}
.document-facts dd {
  margin: 0;
}
.toc-heading {
  font-size: 11px;
  font-weight: 600;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.document-toc {
  margin: 9px 0 20px;
  padding-left: 21px;
  font-size: 12px;
}
.document-toc li {
  padding: 5px 0 5px 3px;
}
.document-toc li::marker {
  color: var(--muted);
  font-size: 10px;
}
.action-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #cdd5cf;
  border-radius: 3px;
  background: #fff;
  font-size: 12px;
  font-weight: 550;
  text-align: center;
}
.action-button:hover {
  background: var(--soft);
  text-decoration: none;
}
.action-button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.action-button.primary:hover {
  background: #193f37;
}
.action-button.primary .icon {
  filter: brightness(0) invert(1);
}
.inspector-actions {
  display: grid;
  gap: 8px;
}
.inspector-actions + .fine {
  margin-top: 12px;
}
.empty-state {
  text-align: center;
  padding: 58px 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.empty-state h3 {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 7px;
}
.empty-state p {
  font-size: 12px;
  margin-bottom: 14px;
}
.empty-state > .icon {
  width: 28px;
  height: 28px;
  opacity: 0.5;
  margin-bottom: 15px;
}
.custom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 42px;
  padding: 30px 0 40px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}
.section-title h2,
.section-title h3 {
  font-size: 16px;
  font-weight: 650;
}
.section-title > span {
  color: var(--muted);
  font-size: 11px;
}
.document-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 0 0 27px;
  margin-bottom: 27px;
  border-bottom: 1px solid var(--line);
}
.title-input {
  display: grid;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.title-input input {
  font-size: 13px;
  color: var(--ink);
  width: 100%;
}
.format-picker {
  display: flex;
  gap: 0;
  align-items: end;
}
.format-picker legend {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.format-picker label {
  position: relative;
}
.format-picker input {
  position: absolute;
  opacity: 0;
}
.format-picker span {
  min-height: 42px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  font-size: 12px;
  cursor: pointer;
}
.format-picker label + label span {
  border-left: 0;
}
.format-picker :checked + span {
  background: #edf2ed;
  color: var(--accent);
  box-shadow: inset 0 -2px var(--accent);
}
.format-picker :focus-visible + span {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.program-search {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 133px 135px auto;
  gap: 7px;
}
.program-search select {
  font-size: 12px;
  width: 100%;
}
.result-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  font-size: 11px;
  color: var(--muted);
}
.program-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 34px;
  gap: 17px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.program-row:first-child {
  border-top: 1px solid var(--line);
}
.program-name {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  padding: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.program-name:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.program-amount {
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.program-amount span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.icon-button {
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  background: #fff;
}
.icon-button:hover {
  background: var(--soft);
}
.icon-button[aria-pressed="true"] {
  background: #eaf2ed;
  border-color: #98b5a7;
}
.pagination {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.composition {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  min-width: 0;
}
.base-selection {
  background: var(--soft);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.base-selection strong {
  display: block;
  font-size: 12px;
}
.base-selection small {
  font-size: 10px;
  color: var(--muted);
}
#composition-items {
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
  counter-reset: selected;
}
.selected-item {
  counter-increment: selected;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
}
.selected-item::before {
  content: counter(selected, decimal-leading-zero);
  color: var(--muted);
  font-size: 10px;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.selected-item strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
  overflow-wrap: anywhere;
}
.selected-item small {
  font-size: 10px;
  color: var(--muted);
}
.item-tools {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 6px;
}
.item-tools .icon-button {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  padding: 5px;
  border-color: transparent;
}
.item-tools .icon {
  width: 14px;
  height: 14px;
}
.composition-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 20px 0 30px;
  border-bottom: 1px solid var(--line);
}
.composition-options legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.composition-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  margin: 8px 0;
}
.composition-options small {
  color: var(--muted);
  font-size: 10px;
}
.included-source {
  font-size: 10px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
}
.included-source .icon {
  width: 14px;
  height: 14px;
}
.composition-summary {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 15px 0 18px;
}
.composition-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding: 4px 0;
}
.composition-summary dt {
  color: var(--muted);
}
.composition-summary dd {
  margin: 0;
  text-align: right;
}
.composition-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.saved-heading {
  padding-top: 28px;
}
.saved-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.saved-row h3 {
  font-size: 15px;
}
.saved-row p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.saved-actions {
  display: flex;
  gap: 8px;
}
.service-reference {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  margin-top: 12px;
  padding: 26px 0 38px;
}
.service-reference h2 {
  font-size: 12px;
  font-weight: 600;
}
.service-reference dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  gap: 24px;
}
.service-reference dt {
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 4px;
}
.service-reference dd {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.work-footer {
  border-top: 1px solid var(--line);
  padding: 29px 0 35px;
  background: #fafbf9;
}
.work-footer .work-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.work-footer strong {
  font-size: 15px;
}
.work-footer p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.work-footer p span {
  margin-left: 8px;
  font-size: 10px;
}
.work-footer a {
  font-size: 11px;
  margin-left: 20px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  background: #253b33;
  color: #fff;
  border-radius: 4px;
  z-index: 50;
  font-size: 12px;
  box-shadow: 0 4px 20px #12231a20;
}
dialog {
  width: min(650px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-y: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #16251e55;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 21px;
}
.dialog-heading h2 {
  font-size: 20px;
}
#dialog-body h3 {
  font-size: 14px;
  margin: 20px 0 8px;
}
#dialog-body p {
  font-size: 13px;
  line-height: 1.9;
}
#dialog-body ul {
  padding-left: 20px;
  font-size: 13px;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.request-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.9;
  background: var(--soft);
  padding: 18px;
  max-height: 350px;
  overflow-y: auto;
}
.policy-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.policy-table th,
.policy-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px 9px;
}
.policy-table th {
  width: 100px;
  font-weight: 600;
  vertical-align: top;
}
/* The original archive is the first working entry on the home page. */
.home-heading {
  padding-top: 38px;
  padding-bottom: 30px;
}
.home-heading h1 {
  font-family: "KoPubBatang_Pro", "Noto Serif CJK KR", Batang, serif;
  font-size: 31px;
  font-weight: 700;
}
.archive-band {
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  display: grid;
  grid-template-columns: 175px 1fr auto;
  gap: 25px;
  align-items: center;
}
.archive-label {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.archive-band h2 {
  font-size: 17px;
  margin-bottom: 6px;
}
.archive-band p {
  font-size: 12px;
  color: var(--muted);
}
.home-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 325px;
  gap: 50px;
  padding: 35px 0;
}
.home-service-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 15px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.home-service-row:first-of-type {
  border-top: 1px solid var(--line);
}
.home-service-row > .icon {
  margin-top: 4px;
  width: 22px;
  height: 22px;
  opacity: 0.65;
}
.home-service-row h3 {
  font-size: 19px;
  font-weight: 600;
}
.home-service-row p {
  color: var(--muted);
  font-size: 12px;
  margin: 5px 0 14px;
}
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 23px;
  color: var(--accent);
  font-size: 12px;
}
.book-reference {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}
.book-reference figure {
  background: #f6f7f4;
  padding: 5px 22px;
  text-align: center;
  margin: 13px 0 17px;
}
.book-reference img {
  width: 195px;
  height: 180px;
  object-fit: contain;
  max-width: 100%;
}
.book-reference h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0;
}
.book-reference p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.book-reference .fine {
  font-size: 10px;
}
.free-resources {
  margin-top: 30px;
}
.resource-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  align-items: center;
}
.resource-row span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.home-order {
  border-block: 1px solid var(--line);
  margin: 0 0 40px;
  padding: 0;
}
.home-order > summary {
  cursor: pointer;
  padding: 21px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  list-style: none;
}
.home-order > summary h2 {
  font-size: 15px;
}
.home-order > summary span {
  font-size: 12px;
  color: var(--muted);
}
.home-order[open] > summary {
  border-bottom: 1px solid var(--line);
}
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 35px;
  padding: 25px 0;
}
.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.quote-form label {
  display: grid;
  font-size: 12px;
  gap: 6px;
}
.quote-form input,
.quote-form select {
  width: 100%;
}
.quote-wide {
  margin-top: 15px;
}
.quote-actions,
.quote-result-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
}
.quote-result-head h3 {
  font-size: 15px;
}
.quote-result {
  border-left: 1px solid var(--line);
  padding-left: 25px;
}
.quote-result pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.9 "Pretendard",
    "Noto Sans CJK KR",
    sans-serif;
  max-height: 600px;
  overflow-y: auto;
}
[aria-disabled="true"] {
  pointer-events: none;
  color: var(--muted);
  opacity: 0.6;
}
/* Readability pass: secondary facts remain legible at normal browser zoom. */
.row-kicker,
.row-bottom span,
.row-bottom button,
.document-facts,
.document-toc,
.catalog-note,
.inspector-heading,
.sidebar-reference,
.small-heading,
.list-heading > span,
.tabs-status,
.program-meta,
.program-amount span,
.section-title > span {
  font-size: 12px;
}
.skip-link:not(:focus-visible) {
  top: -80px;
}
.book-reference .sidebar-reference {
  display: block;
}
.book-reference img.icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  object-fit: contain;
}
.inspector-back,
.mobile-composition-bar {
  display: none;
}
.inspector-heading .text-button {
  font-size: 11px;
  padding: 0;
}
@media (max-width: 760px) {
  .inspector-back {
    display: inline-flex;
  }
  .mobile-composition-bar:not([hidden]) {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px max(12px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    z-index: 30;
    box-shadow: 0 -3px 12px #213d2c08;
  }
  .mobile-composition-bar strong {
    font-size: 13px;
  }
  .mobile-composition-bar span {
    color: var(--muted);
    font-size: 11px;
    margin-left: 8px;
  }
  body:has(.mobile-composition-bar:not([hidden])) {
    padding-bottom: 72px;
  }
  body:has(.mobile-composition-bar:not([hidden])) .toast {
    bottom: 80px;
  }
}
@media print {
  .mobile-composition-bar {
    display: none !important;
  }
}
.document-toc {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.document-toc li:has(.toc-page) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.toc-page {
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.planned-preview strong {
  font-size: 20px;
  line-height: 1.7;
}
.catalog-title {
  font-size: 17px;
}
.catalog-row p {
  font-size: 13px;
}
.catalog-row {
  padding-block: 17px;
}
.document-preview {
  min-height: 204px;
}
.document-preview img {
  height: 170px;
}
.inspector-actions {
  margin-bottom: 19px;
}
.document-facts {
  margin-bottom: 15px;
}
.document-toc {
  margin-bottom: 14px;
}
.program-name {
  font-size: 14px;
}
.selected-item strong {
  font-size: 13px;
}
.selected-item small,
.composition-options small,
.included-source {
  font-size: 11px;
}
.work-footer p {
  font-size: 12px;
}
.work-footer a {
  font-size: 12px;
}
@media (min-width: 1600px) {
  :root {
    --max: 1380px;
  }
  .catalog-layout {
    grid-template-columns: 164px minmax(0, 1fr) 330px;
    gap: 38px;
  }
  .catalog-row {
    padding-block: 18px;
  }
}
@media (max-width: 1199px) {
  .site-nav {
    gap: 15px;
  }
  .site-nav > a,
  .site-nav summary {
    font-size: 12px;
  }
  .catalog-layout {
    grid-template-columns: 132px minmax(0, 1fr) 265px;
    gap: 22px;
  }
  .document-inspector {
    padding-left: 20px;
  }
  .program-search {
    grid-template-columns: 1fr 1fr;
  }
  .custom-layout {
    gap: 25px;
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .document-settings {
    grid-template-columns: 1fr;
  }
  .program-row {
    grid-template-columns: minmax(0, 1fr) 105px 34px;
    gap: 10px;
  }
  .home-work-grid {
    gap: 30px;
  }
}
@media (max-width: 1000px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 0 22px;
  }
  .navigation-row {
    align-items: flex-start;
  }
  .member-link {
    margin-top: 14px;
    align-self: auto;
  }
  .site-nav > a,
  .site-nav summary {
    min-height: 42px;
  }
  .nav-menu {
    top: 41px;
    left: 0;
    right: auto;
  }
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .catalog-sidebar {
    grid-column: 1/-1;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .catalog-sidebar > h2,
  .sidebar-reference {
    display: none;
  }
  .category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .category-list button {
    gap: 12px;
  }
  .access-filter {
    display: flex;
    gap: 14px;
    border: 0;
    margin: 0 0 0 auto;
    padding: 0;
  }
  .access-filter legend {
    display: none;
  }
  .access-filter label {
    padding: 0;
  }
  .service-reference {
    grid-template-columns: 110px 1fr;
  }
  .home-work-grid {
    grid-template-columns: 1fr 270px;
  }
  .archive-band {
    grid-template-columns: 135px 1fr auto;
    gap: 18px;
  }
  .quote-layout {
    grid-template-columns: 1fr 300px;
  }
}
@media (max-width: 760px) {
  .work-wrap {
    width: calc(100% - 36px);
  }
  .masthead {
    min-height: 67px;
  }
  .work-brand {
    font-size: 23px;
    gap: 0;
  }
  .work-brand span {
    display: none;
  }
  .edition-label {
    font-size: 10px;
    gap: 8px;
  }
  .site-nav {
    gap: 0 17px;
  }
  .site-nav > a,
  .site-nav summary {
    font-size: 11px;
    min-height: 38px;
  }
  .member-link {
    font-size: 11px;
    padding-left: 12px;
  }
  .nav-menu {
    top: 37px;
  }
  .breadcrumb {
    padding-top: 20px;
  }
  .page-heading {
    padding: 14px 0 8px;
  }
  .page-heading h1 {
    font-size: 18px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading > .text-button {
    font-size: 11px;
  }
  .workspace-tabs {
    gap: 25px;
    flex-wrap: wrap;
  }
  .workspace-tabs [role="tab"] {
    font-size: 13px;
    min-height: 47px;
  }
  .tabs-status {
    display: none;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
    padding-top: 19px;
    gap: 20px;
  }
  .catalog-sidebar {
    display: block;
  }
  .category-list {
    gap: 2px;
  }
  .category-list button {
    padding: 7px 9px;
    gap: 8px;
    font-size: 12px;
  }
  .access-filter {
    margin-top: 14px;
    gap: 17px;
  }
  .catalog-search {
    grid-template-columns: minmax(0, 1fr) 113px;
  }
  .catalog-search select {
    font-size: 12px;
  }
  .list-heading > span {
    font-size: 9px;
  }
  .catalog-row {
    padding: 18px 10px;
    gap: 8px;
  }
  .catalog-title {
    font-size: 15px;
  }
  .document-inspector {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 22px;
  }
  .document-preview {
    min-height: 0;
  }
  .document-preview img {
    height: 210px;
  }
  .inspector-sticky {
    position: static;
  }
  .inspector-actions {
    grid-template-columns: 1fr 1fr;
  }
  .custom-layout {
    grid-template-columns: 1fr;
    padding-top: 24px;
    gap: 30px;
  }
  .document-settings {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .program-search {
    grid-template-columns: 1fr 1fr;
  }
  .program-search .search-field {
    grid-column: 1/-1;
  }
  .program-search .action-button {
    grid-column: 1/-1;
    min-height: 36px;
  }
  .program-row {
    grid-template-columns: minmax(0, 1fr) 100px 34px;
  }
  .program-name {
    font-size: 12px;
  }
  .composition {
    border: 1px solid var(--line);
    padding: 22px;
    border-radius: 4px;
  }
  .service-reference {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 25px 0;
  }
  .service-reference dl {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .service-reference dl > div {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 10px;
  }
  .work-footer .work-wrap {
    display: block;
  }
  .work-footer p span {
    display: block;
    margin: 2px 0 0;
  }
  .work-footer .work-wrap > div + div {
    margin-top: 20px;
  }
  .work-footer a {
    margin: 0 15px 0 0;
  }
  .saved-heading {
    align-items: flex-start;
  }
  .saved-heading span {
    max-width: 165px;
  }
  .saved-row {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
  }
  .saved-actions {
    grid-column: 2;
  }
  dialog {
    padding: 20px;
  }
  .home-heading {
    padding-top: 30px;
  }
  .home-heading h1 {
    font-size: 26px;
  }
  .archive-band {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 20px 0;
  }
  .archive-label {
    grid-column: 1/-1;
  }
  .archive-band h2 {
    font-size: 15px;
  }
  .archive-band p {
    font-size: 11px;
  }
  .archive-band .action-button {
    padding: 9px;
    font-size: 11px;
  }
  .home-work-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 26px;
  }
  .home-service-row {
    gap: 10px;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    padding: 21px 0;
  }
  .home-service-row h3 {
    font-size: 17px;
  }
  .book-reference {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }
  .book-reference figure {
    float: right;
    width: 125px;
    padding: 0;
    margin: 5px 0 10px 20px;
  }
  .book-reference img {
    height: 130px;
  }
  .home-order > summary span {
    max-width: 125px;
    text-align: right;
    font-size: 11px;
  }
  .quote-layout {
    grid-template-columns: 1fr;
  }
  .quote-result {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 10px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  body.fiscal-workspace {
    padding-bottom: 0;
  }
  .mobile-composition-bar,
  .work-header,
  .workspace-tabs,
  .breadcrumb,
  .service-reference,
  .work-footer,
  .toast,
  .dialog-actions,
  #dialog-close,
  .page-heading,
  main,
  body > a {
    display: none !important;
  }
  dialog[open] {
    display: block;
    position: static;
    width: 100%;
    max-height: none;
    padding: 0;
    border: 0;
    margin: 0;
    overflow: visible;
  }
  dialog::backdrop {
    display: none;
  }
  .request-text {
    max-height: none;
    overflow: visible;
    background: #fff;
    padding: 0;
  }
  @page {
    size: A4;
    margin: 20mm;
  }
}
