.lib-page {
  --lib-line: #cbd6da;
  --lib-paper: #f3f6f6;
  --lib-copper: #945236;
  background: #fff;
  color: var(--ink);
}
.lib-page .lib-crumb {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 11px;
  color: var(--slate);
  font-size: .87rem;
  padding-block: 21px 17px;
  line-height: 1.65;
}
.lib-crumb a:hover, .lib-text-link:hover, .lib-file header a:hover { text-decoration: underline; text-underline-offset: .22em; }
.lib-page :is(h1,h2,h3,p,figure,dl,dd) { margin: 0; }
.lib-page h1, .lib-page h2, .lib-page h3 { color: var(--ink); }
.lib-page h1 { font-size: clamp(32px, 3.8vw, 58px); font-weight: 680; letter-spacing: -.045em; line-height: 1.14; overflow-wrap: anywhere; }
.lib-page h2 { font-size: clamp(23px, 2.15vw, 34px); font-weight: 680; letter-spacing: -.035em; line-height: 1.3; }
[dir="rtl"] .lib-page :is(h1,h2,h3) { letter-spacing: normal; line-height: 1.48; }
.lib-page .lib-kicker, .lib-page .lib-family-label {
  font-size: .82rem;
  line-height: 1.7;
  font-weight: 720;
  color: var(--lib-copper);
}
.lib-page .lib-kicker { margin-block-end: 10px; }
.lib-page .lib-mast, .lib-page .lib-material-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, .34fr);
  gap: clamp(25px, 4vw, 65px);
  align-items: center;
  background: var(--night);
  color: white;
  border-radius: 4px;
  overflow: hidden;
}
.lib-page .lib-mast { padding: clamp(26px, 3.2vw, 50px); border-end-start-radius: 0; border-end-end-radius: 0; }
.lib-page .lib-mast h1, .lib-page .lib-material-hero h1 { color: #fff; }
.lib-page :is(.lib-mast, .lib-material-hero) .lib-kicker { color: #e9b49b; }
.lib-page .lib-deck { max-width: 62ch; font-size: clamp(1rem, 1.2vw, 1.12rem); margin-block-start: 16px; color: #d3dee2; line-height: 1.85; }
.lib-page .lib-metrics { display: grid; grid-template-columns: repeat(2, 1fr); align-self: stretch; align-content: center; gap: 18px; }
.lib-metrics > a { display: grid; gap: 4px; padding-block-start: 12px; border-block-start: 1px solid #6f8791; }
.lib-metrics > a:hover { border-color: #eab49b; }
.lib-metrics .hm-icon { width: 14px; height: 14px; filter: brightness(0) invert(1); vertical-align: middle; }
.lib-metrics strong { color: #fff; font-size: clamp(27px, 2.5vw, 40px); line-height: 1.2; }
.lib-metrics span { color: #d3dee2; font-size: .86rem; line-height: 1.5; }
.lib-families { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border: 1px solid var(--lib-line); border-top: 0; border-radius: 0 0 4px 4px; background: var(--lib-paper); }
.lib-families a { display: flex; align-items: center; gap: 11px; padding: 14px clamp(10px,1.3vw,20px); min-width: 0; border-inline-start: 1px solid var(--lib-line); }
.lib-families a:first-child { border-inline-start: 0; }
.lib-families a:hover { background: white; }
.lib-families img { width: 41px; height: 41px; object-fit: cover; border-radius: 2px; flex: none; }
.lib-families strong { display: block; font-size: .91rem; line-height: 1.45; color: var(--ink); }
.lib-families small { display: block; margin-top: 2px; font-size: .78rem; color: var(--slate); }
.lib-page .lib-browse, .lib-page .lib-detail { padding-block: clamp(32px, 3.6vw, 58px) clamp(55px, 5vw, 86px); }
.lib-browse { scroll-margin-block-start: 20px; }
.lib-views { display: flex; flex-wrap: wrap; border-block-end: 1px solid var(--lib-line); gap: 8px 27px; }
.lib-views a { padding: 8px 0 15px; color: var(--slate); font-weight: 690; font-size: 1.15rem; border-block-end: 3px solid transparent; }
.lib-views a:hover, .lib-views a[aria-current] { border-color: var(--lib-copper); color: var(--ink); }
.lib-tools { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(170px,.8fr) minmax(135px,auto); align-items: end; gap: 15px 25px; padding-block: 19px 6px; }
.lib-field { display: grid; gap: 6px; min-width: 0; }
.lib-field > span:first-child, .lib-check { font-size: .91rem; color: var(--ink); font-weight: 640; }
.lib-field select, .lib-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #aebfc6;
  border-radius: 3px;
  background: var(--lib-paper);
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
}
.lib-input .hm-icon { width: 19px; height: 19px; flex: none; }
.lib-input input { min-width: 0; width: 100%; color: var(--ink); background: transparent; padding: 10px 0; font: inherit; border: 0; }
.lib-input input:focus { outline: none; }
.lib-input:focus-within { outline: 2px solid var(--lib-copper); outline-offset: 2px; }
.lib-check { display: flex; align-items: center; gap: 8px; min-height: 46px; }
.lib-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.lib-status { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 49px; color: var(--slate); font-size: .92rem; }
.lib-reset { color: var(--lib-copper); background: none; cursor: pointer; border: 0; text-decoration: underline; text-underline-offset: .22em; font: inherit; }
.lib-panel { margin-block: 10px 30px; scroll-margin-block-start: 95px; }
.lib-panel .lib-fallback-title { margin-block: 38px 15px; }
.lib-materials { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.lib-material { min-width: 0; border: 1px solid var(--lib-line); border-radius: 4px; overflow: hidden; background: white; }
.lib-material a { display: flex; flex-direction: column; height: 100%; }
.lib-material:is(:hover,:focus-within), .lib-report:hover { border-color: #8398a1; }
.lib-material:focus-within { outline: 2px solid var(--lib-copper); outline-offset: 2px; }
.lib-material-photo { aspect-ratio: 1.8; background: var(--lib-paper); overflow: hidden; }
.lib-material-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.lib-material-info { padding: clamp(14px,1.5vw,22px); display: flex; flex-direction: column; flex: 1; }
.lib-page .lib-material-info h3 { font-weight: 680; font-size: clamp(19px,1.55vw,25px); line-height: 1.4; margin-block: 5px 15px; overflow-wrap: anywhere; }
.lib-material-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block-start: 11px; border-block-start: 1px solid var(--lib-line); margin-block-start: auto; font-size: .87rem; color: var(--slate); }
.lib-page .lib-material-foot .hm-icon, .lib-page .lib-report a > .hm-icon { width: 19px; height: 19px; }
.lib-page .lib-report-group { margin: 22px 0 32px; }
.lib-report-group h3 { display: flex; align-items: center; gap: 14px; font-size: 1.22rem; font-weight: 700; margin-block-end: 12px; }
.lib-report-group h3::after { content: ""; height: 1px; background: var(--lib-line); flex: 1; }
.lib-page .lib-report-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 16px; }
.lib-report { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; border: 1px solid var(--lib-line); border-radius: 3px; min-width: 0; background: white; }
.lib-report .lib-report-open { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 75px; padding: 13px 15px; height: 100%; }
.lib-report .lib-report-open:hover { background: var(--lib-paper); }
.lib-report .lib-row-download { display: inline-flex; gap: 6px; align-items: center; justify-self: end; padding: 8px 12px; color: var(--lib-copper); font-weight: 650; font-size: .83rem; border-inline-start: 1px solid var(--lib-line); }
.lib-report .lib-row-download:hover { text-decoration: underline; text-underline-offset: .22em; }
.lib-download-mark { position: relative; display: inline-block; flex: none; width: 13px; height: 14px; border-block-end: 1.6px solid currentColor; }
.lib-download-mark::before { content: ""; position: absolute; top: 0; left: 6px; height: 8px; border-left: 1.6px solid currentColor; }
.lib-download-mark::after { content: ""; position: absolute; top: 4px; left: 3.7px; width: 5px; height: 5px; border-bottom: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); }
.lib-report-mark { display: grid; flex: none; height: 34px; width: 28px; border: 1px solid #9cafb9; border-radius: 2px; padding: 8px 5px; background: var(--lib-paper); }
.lib-report-mark i { border-block: 1px solid #9cafb9; position: relative; }
.lib-report-mark i::after { content: ""; position: absolute; inset: 48% 0 auto; border-top: 1px solid #9cafb9; }
.lib-report-title { min-width: 0; }
.lib-report-title strong { display: block; color: var(--ink); font-size: 1.02rem; line-height: 1.48; overflow-wrap: anywhere; }
.lib-report-title small { display: block; color: var(--slate); font-size: .82rem; margin-block-start: 5px; }
.lib-page .lib-empty, .lib-page .lib-notice { background: var(--lib-paper); border: 1px solid var(--lib-line); border-radius: 3px; color: var(--slate); padding: 22px; line-height: 1.8; }
.lib-empty .lib-text-link { margin-block-start: 10px; }
.lib-text-link, .lib-file header a { display: inline-flex; gap: 8px; align-items: center; font-weight: 650; color: var(--ink); }
.lib-text-link .hm-icon, .lib-file header .hm-icon { width: 16px; height: 16px; }

.lib-page .lib-material-hero { grid-template-columns: minmax(0,1fr) minmax(0,.8fr); gap: 0; min-height: 260px; }
.lib-material-hero > div { padding: clamp(25px,4vw,58px); }
.lib-material-hero figure { position: relative; min-height: 250px; height: 100%; overflow: hidden; background: var(--lib-paper); }
.lib-material-hero figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lib-material-hero .lib-text-link { color: #fff; margin-block-start: 21px; }
.lib-material-hero .hm-icon { filter: brightness(0) invert(1); }
.lib-page .lib-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, .39fr); gap: clamp(23px, 4vw, 65px); align-items: start; }
.lib-page .lib-section-title { display: flex; align-items: center; gap: 12px; margin-block-end: 16px; }
.lib-section-title > span { min-width: 2rem; padding: 3px 7px; color: var(--slate); border: 1px solid var(--lib-line); font-size: .91rem; text-align: center; border-radius: 2px; }
.lib-aside { padding: clamp(18px,2.1vw,30px); background: var(--lib-paper); border-block-start: 3px solid #a96345; border-radius: 3px; min-width: 0; }
.lib-page .lib-aside h2 { font-size: 1.2rem; margin-bottom: 12px; }
.lib-aside .lib-text-link { display: flex; min-height: 38px; margin-block-start: 7px; font-size: .9rem; }
.lib-aside section + section { margin-block-start: 23px; }
.lib-aside-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; font-weight: 620; padding: 12px 0; border-block-end: 1px solid var(--lib-line); }
.lib-aside-row .hm-icon { width: 17px; height: 17px; }
.lib-page .lib-document-head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 28px; padding: clamp(25px,3.3vw,48px); border-radius: 4px; background: var(--night); color: #fff; }
.lib-page .lib-document-head .lib-kicker { color: #e8b296; }
.lib-page .lib-document-head h1 { font-size: clamp(30px,3.4vw,49px); color: #fff; max-width: 32ch; }
.lib-file-action { display: flex; align-items: center; flex-direction: column; gap: 7px; }
.lib-page .lib-primary-download { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 10px; padding: 11px 18px; border-radius: 3px; background: #e7af8e; color: var(--night); font-weight: 720; font-size: .95rem; }
.lib-page .lib-primary-download:hover { background: #f0c2a6; }
.lib-file-action small { color: #d3dee2; font-size: .8rem; }
.lib-files { min-width: 0; }
.lib-file { border: 1px solid var(--lib-line); border-radius: 4px; overflow: hidden; background: var(--lib-paper); }
.lib-file + .lib-file { margin-block-start: 18px; }
.lib-file header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 16px; padding: 12px 16px; border-block-end: 1px solid var(--lib-line); background: #fff; }
.lib-page .lib-file header h2 { font-size: 1.06rem; font-weight: 700; line-height: 1.55; }
.lib-file header > div { display: flex; flex-wrap: wrap; gap: 4px 17px; }
.lib-file header a { min-height: 35px; font-size: .9rem; }
.lib-scan { display: block; padding: clamp(9px,1.8vw,23px); cursor: zoom-in; background: #e3e9eb; }
.lib-scan img { display: block; width: 100%; height: auto; max-width: 100%; background: #fff; box-shadow: 0 1px 5px #102b3c18; }
.lib-pdf { display: block; width: 100%; height: min(950px, 80vh); }
.lib-page :is(a,button,select,input[type="checkbox"]):focus-visible { outline: 3px solid #a35431; outline-offset: 3px; }
.lib-browse [hidden] { display: none !important; }
@media (max-width: 1000px) {
  .lib-families img { width: 34px; height: 34px; }
  .lib-families a { gap: 7px; padding-inline: 8px; }
  .lib-materials { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .lib-page .lib-detail { grid-template-columns: minmax(0,1fr) minmax(220px,.45fr); }
  .lib-detail .lib-report-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lib-families { display: flex; overflow-x: auto; }
  .lib-families a { flex: 0 0 auto; padding: 10px 13px; }
  .lib-families strong { font-size: .88rem; }
  .lib-page .lib-mast { grid-template-columns: 1fr; gap: 22px; }
  .lib-page .lib-metrics { max-width: 360px; }
  .lib-tools { grid-template-columns: minmax(0,1fr) minmax(0,.7fr); }
  .lib-check { grid-column: 1 / -1; min-height: 30px; }
  .lib-materials { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .lib-page .lib-detail { grid-template-columns: 1fr; }
  .lib-page .lib-report-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .lib-page .lib-document-head { grid-template-columns: 1fr; gap: 17px; }
  .lib-file-action { align-items: center; flex-direction: row; gap: 10px; }
  .lib-report .lib-report-open { padding: 10px; gap: 8px; }
  .lib-report .lib-row-download { padding-inline: 9px; font-size: .78rem; }
  .lib-page .lib-mast { padding: 24px; }
  .lib-tools { grid-template-columns: 1fr; gap: 12px; }
  .lib-views { gap: 17px; }
  .lib-views a { font-size: 1rem; }
  .lib-page .lib-material-hero { grid-template-columns: 1fr; }
  .lib-material-hero figure { min-height: 0; height: 165px; order: -1; }
  .lib-materials { grid-template-columns: 1fr; }
  .lib-material a { display: grid; grid-template-columns: minmax(78px,.42fr) minmax(0,1fr); }
  .lib-material-photo { position: relative; aspect-ratio: auto; min-height: 110px; }
  .lib-material-photo img { position: absolute; inset: 0; height: 100%; }
  .lib-material-info { padding: 12px; }
  .lib-page .lib-material-info h3 { font-size: 1.08rem; margin-block: 4px 9px; }
  .lib-material-foot { font-size: .8rem; padding-block-start: 7px; }
  .lib-page .lib-crumb { padding-block: 14px; font-size: .81rem; }
}
