/* Catalog-only restoration of the approved prototype (2026-09-21).
   Do not change the shared header, article typography, or source images. */
.ex-library { padding: 16px 28px 28px; }
.ex-library-head { padding: 0 0 16px; margin-bottom: 19px; }
.ex-library-head h1 { font-size: 34px; line-height: 1.25; margin: 0; }
.ex-library-head p { font-size: 13px; margin-top: 6px; }
.ex-library .ex-search { height: 53px; gap: 13px; border-width: 1.5px; padding: 0 6px 0 15px; }
.ex-library .ex-search:focus-within { box-shadow: 0 0 0 2px #0f5c4a18; }
.ex-search-symbol { font-size: 29px; line-height: 1; color: var(--accent); }
.ex-library .ex-search input { font-size: 14px; height: 100%; padding: 0; }
.ex-library .ex-search input:focus, .ex-library .ex-search input:focus-visible { outline: none; caret-color: var(--ink); }
.ex-library .ex-search button { font-size: 12px; min-height: 39px; padding: 0 20px; }
.ex-library .ex-filters { margin-top: 12px; padding: 8px 0; gap: 17px; }
.ex-library .ex-filters label { font-size: 11px; gap: 9px; }
.ex-library .ex-filters select { font-size: 11px; min-height: 34px; padding: 6px 8px; border-radius: 2px; }
.ex-library #ex-category { width: 230px; max-width: 100%; }
.ex-library .ex-filters button { font-size: 10px; min-height: 34px; padding: 9px 0; }
.ex-result-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0 9px; }
.ex-result-head h2 { font: 700 14px/1.7 var(--sans); letter-spacing: -.02em; }
.ex-library .ex-count { font-size: 11px; color: var(--muted); margin: 0; }
.ex-library .ex-table { --actions-width: 98px; border-top-width: 1px; }
.ex-library .ex-num { width: 64px; }
.ex-library .ex-gr { width: 68px; }
.ex-library .ex-cat { width: 94px; }
.ex-library .ex-actions { width: var(--actions-width); }
.ex-library .ex-table th { font-size: 10px; padding: 8px 7px; white-space: nowrap; }
.ex-library .ex-table th:nth-child(3) { text-align: center; }
.ex-library .ex-table td { padding: 10px 7px; font-size: 12px; line-height: 1.7; }
.ex-library .ex-table tbody tr { background: var(--paper); }
.ex-library .ex-table tbody tr:hover, .ex-library .ex-table tbody tr:focus-within { background: #e7ecdf; }
.ex-library .ex-table .ex-id { font-size: 11px; }
.ex-row-title { display: flex; gap: 12px; align-items: center; }
.ex-row-title > div { min-width: 0; }
.ex-thumb { display: block; width: 53px; height: 53px; object-fit: contain; flex-shrink: 0; border: 1px solid var(--line); background: #fff; }
.ex-library .ex-row-link { color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.65; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ex-library .ex-table tbody tr:hover .ex-row-link, .ex-library .ex-table tbody tr:focus-within .ex-row-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ex-library .ex-row-link::after { inset: 0 var(--actions-width) 0 0; z-index: 1; }
.ex-library .ex-context { display: flex; gap: 8px; flex-wrap: wrap; font-size: 10px; margin-top: 4px; }
.ex-image-count { color: var(--accent); }
.ex-mobile-grade, .ex-mobile-category { display: none; }
.ex-library .ex-grade-cell { text-align: center; }
.ex-library .ex-grade { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 3px; border-color: currentColor; font: 700 18px/1 var(--serif); color: #606d78; background: #eef0ee; }
.ex-library .ex-grade[data-grade="A"] { color: #176536; background: #ecf3e9; }
.ex-library .ex-grade[data-grade="B"] { color: #466d27; background: #edf2e6; }
.ex-library .ex-grade[data-grade="C"] { color: #84630c; background: #f0ead4; }
.ex-library .ex-grade[data-grade="D"] { color: #9c531b; background: #f5e8db; }
.ex-library .ex-grade[data-grade="F"] { color: #9a3630; background: #f7e8e5; }
.ex-library .ex-grade[data-grade="미산정"] { font: 500 10px/1 var(--sans); min-width: 38px; }
.ex-library .ex-table .ex-category-cell { font-size: 10px; color: var(--muted); }
.ex-actions-cell { position: relative; z-index: 2; }
.ex-row-actions { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.ex-read-action { display: flex; justify-content: space-between; align-items: center; min-height: 33px; padding: 6px 8px; background: var(--accent); color: var(--card); font-size: 11px; white-space: nowrap; }
.ex-origin-action { display: flex; justify-content: space-between; align-items: center; min-height: 28px; padding: 3px 1px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.ex-library .ex-pagination { margin: 20px 0; font-size: 11px; }
.ex-library .ex-pagination[hidden] { display: none; }
.ex-library .ex-pagination button { min-height: 34px; padding: 6px 10px; }
.ex-library #ex-empty { font-size: 13px; }
@media (max-width: 1080px) {
  .ex-library .ex-table { --actions-width: 91px; }
  .ex-library .ex-num { width: 57px; }
  .ex-library .ex-gr { width: 60px; }
  .ex-library .ex-cat { width: 75px; }
}
@media (max-width: 820px) {
  .ex-thumb { display: none; }
  .ex-library-head h1 { font-size: 32px; }
}
@media (max-width: 720px) {
  .ex-library { padding: 19px 18px 28px; }
  .ex-library .ex-filters { gap: 10px; }
}
@media (max-width: 580px) {
  .ex-library { padding-inline: 16px; }
  .ex-library-head h1 { font-size: 30px; }
  .ex-library-head p { font-size: 11px; }
  .ex-library .ex-search { height: 49px; gap: 8px; padding-left: 10px; }
  .ex-search-symbol { font-size: 24px; }
  .ex-library .ex-search input { font-size: 12px; }
  .ex-library .ex-search button { font-size: 11px; min-height: 36px; padding: 0 13px; }
  .ex-library .ex-filters { gap: 7px; padding: 9px 0; }
  .ex-library .ex-filters label { font-size: 10px; gap: 5px; }
  .ex-library .ex-filters select { font-size: 10px; padding: 5px 3px; }
  .ex-library #ex-category { width: 140px; max-width: 140px; }
  .ex-library .ex-filters button { font-size: 9px; padding: 6px 0; }
  .ex-result-head h2 { font-size: 12px; }
  .ex-library .ex-count { font-size: 10px; }
  .ex-library .ex-table { --actions-width: 77px; }
  .ex-library .ex-table colgroup, .ex-library .ex-table thead { display: none; }
  .ex-library .ex-table, .ex-library .ex-table tbody { display: block; width: 100%; }
  .ex-library .ex-table tbody tr { display: grid; grid-template-columns: 38px minmax(0, 1fr) var(--actions-width); gap: 9px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .ex-library .ex-table td { display: block; padding: 0; border: 0; }
  .ex-library .ex-table .ex-grade-cell, .ex-library .ex-table .ex-category-cell { display: none; }
  .ex-library .ex-table .ex-id { font-size: 9px; text-align: center; }
  .ex-library .ex-mobile-grade { display: block; margin-top: 8px; }
  .ex-library .ex-mobile-grade .ex-grade { font-size: 17px; min-width: 26px; height: 26px; }
  .ex-library .ex-mobile-grade .ex-grade[data-grade="미산정"] { font-size: 9px; min-width: 35px; }
  .ex-library .ex-mobile-category { display: inline; }
  .ex-library .ex-row-link { font-size: 13px; line-height: 1.7; }
  .ex-library .ex-context { gap: 4px; margin-top: 6px; }
  .ex-actions-cell { align-self: center; }
  .ex-row-actions { gap: 3px; }
  .ex-read-action { font-size: 10px; min-height: 35px; padding: 5px 6px; }
  .ex-origin-action { min-height: 34px; }
}
@media (max-width: 365px) {
  .ex-library .ex-table { --actions-width: 68px; }
  .ex-library .ex-table tbody tr { grid-template-columns: 34px minmax(0, 1fr) var(--actions-width); gap: 6px; }
}
