:root {
  --library-ink: #0d2c4e;
  --library-line: #d6e3ef;
  --library-muted: #496078;
}
.sx-blog .library-home, .sx-blog .library-resources { max-width: 1232px; }
.sx-blog .library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(24px, 4vw, 50px) 0;
  border-bottom: 1px solid var(--library-line);
}
.library-hero h1 {
  max-width: 13ch;
  margin: 0 0 14px;
  font-size: clamp(38px, 4.8vw, 67px);
  line-height: 1.05;
  text-wrap: balance;
}
.library-hero-copy > p {
  max-width: 52ch;
  margin: 0;
  color: var(--library-muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
}
.library-hero > img {
  display: block;
  width: 100%;
  height: clamp(180px, 19vw, 274px);
  object-fit: cover;
  object-position: 50% 54%;
  border-radius: 16px;
}
.library-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sx-blog .blog-explore, .sheet-group, .library-sheet, .article-body section { scroll-margin-top: 100px; }
.library-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 30px;
  flex-wrap: wrap;
  padding-top: clamp(24px, 3vw, 38px);
}
.library-heading h2 { margin: 0; font-size: clamp(25px, 2.5vw, 35px); line-height: 1.19; }
.library-heading .blog-read { font-size: 14px; }
.library-home .blog-read svg, .sheet-content .blog-read svg { width: 19px; height: 19px; flex: none; }
.sx-blog .library-toolbar {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) minmax(170px, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin: 0;
  padding: 17px 0 0;
  background: transparent;
  border: 0;
}
.library-toolbar label { display: grid; gap: 5px; color: var(--library-ink); font-size: 14px; font-weight: 600; }
.library-toolbar input, .library-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #9bb1c8;
  border-radius: 10px;
  background-color: white;
  color: var(--library-ink);
  line-height: 1.4;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
}
.library-toolbar input::placeholder { color: #5a6f84; opacity: 1; }
.sx-blog :is(input, select, button, a, summary):focus-visible { outline: 3px solid #00798b; outline-offset: 3px; }
.sx-blog .library-home .blog-count { margin: 13px 0; color: var(--library-muted); font-size: 14px; }
.sx-blog .library-list { align-items: stretch; gap: 17px; }
.sx-blog .library-card { min-width: 0; border: 1px solid var(--library-line); border-radius: 12px; background: white; box-shadow: none; }
.sx-blog .library-card .blog-cover-link { display: block; flex: none; overflow: hidden; background-color: #e9eff2; }
.sx-blog .library-card .blog-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sx-blog .library-card .blog-card-copy { flex: 1; display: flex; flex-direction: column; padding: clamp(16px, 1.6vw, 23px); }
.library-card-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; color: var(--library-muted); font-size: 12px; }
.library-card-meta .blog-category { padding: 0; border-radius: 0; background: transparent; color: #0759bd; font-size: 13px; }
.sx-blog .library-card h3 { margin: 13px 0 8px; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.3; }
.sx-blog .library-card p { margin: 0 0 14px; font-size: 15px; line-height: 1.57; }
.sx-blog .library-card .blog-row-actions { margin-top: auto; padding-top: 8px; gap: 8px; }
.library-card .blog-read, .sheet-content .blog-read { min-height: 44px; font-size: 14px; }
.sx-blog .library-card .blog-tool { flex: 0 1 auto; min-width: 0; }
.sx-blog .library-card .blog-tool:not([aria-pressed=true]) { border-color: #b6cfe9!important; }
.library-more { display: flex; justify-content: center; }
.library-more button { margin-top: 24px; }
.sx-blog .library-resources { padding-bottom: 36px; }
.library-resources .resource-header p { max-width: 61ch; }
.sx-blog .library-resource-header { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(210px, .65fr); align-items: center; gap: clamp(18px, 4vw, 50px); }
.library-resource-header > img { display: block; width: 100%; height: auto; max-height: 230px; object-fit: cover; border-radius: 12px; }
.sheet-nav { display: flex; flex-wrap: wrap; gap: 5px 18px; padding: 12px 0 18px; border-block: 1px solid var(--library-line); }
.sheet-nav a { display: inline-flex; align-items: center; min-height: 36px; color: #0759bd; text-underline-offset: 3px; }
.sheet-group { margin-top: 30px; }
.sheet-group > h2 { margin: 0 0 12px; font-size: 25px; }
.sx-blog details.library-sheet { display: block; padding: 0; border: 0; border-bottom: 1px solid var(--library-line); }
.library-sheet summary { cursor: pointer; padding: 14px 6px; color: var(--library-ink); font-weight: 600; }
.library-sheet[open] > summary { color: #0759bd; }
.sheet-content { max-width: 860px; padding: 0 6px 20px; }
.sheet-content ol { max-width: 72ch; }
.sheet-content .worksheet-actions { margin-top: 15px; }
.library-article .article-layout { align-items: start; }
.sx-blog.library-article .article-body { max-width: 76ch; min-width: 0; margin-inline: auto; }
.sx-blog .article-cover { max-width: 940px; }
.sx-blog .article-cover .editorial-photo { display: block; width: 100%; height: auto; max-height: 460px; aspect-ratio: 16 / 9; object-fit: cover; }
.article-cover figcaption { padding: 6px 10px; font-size: 12px; color: var(--library-muted); background: #f5f8fa; }
.sx-blog .blog-breadcrumb { line-height: 1.55; overflow-wrap: anywhere; }
.sx-blog .source-review { font-size: .88em; color: var(--library-muted); }
.sx-blog .blog-table-wrap { margin: 20px 0; max-width: 100%; overflow-x: auto; }
.blog-table-wrap table { width: 100%; border-collapse: collapse; font-size: .93em; }
.blog-table-wrap caption { margin-bottom: 7px; text-align: left; color: var(--library-ink); font-weight: 600; }
.blog-table-wrap th, .blog-table-wrap td { border-bottom: 1px solid var(--library-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.blog-table-wrap th { background: #eff5fc; }
.sx-blog [hidden] { display: none!important; }
.sx-blog .blog-toast:empty { display: none; }
.sx-blog .blog-toast:not(:empty) { position: fixed; z-index: 12; right: 16px; bottom: 16px; width: max-content; max-width: min(380px, calc(100% - 32px)); margin: 0; padding: 12px 16px; border-radius: 9px; background: var(--library-ink); color: white; pointer-events: none; font-size: 14px; }
@media (max-width: 720px) {
  .sx-blog .library-resource-header { grid-template-columns: minmax(0, 1fr); }
  .library-resource-header > img { max-height: 165px; }
  .sx-blog .library-hero { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; }
  .library-hero h1 { max-width: none; }
  .library-hero > img { height: clamp(132px, 30vw, 190px); }
  .library-actions { margin-top: 15px; }
  .sx-blog .library-toolbar { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  .library-toolbar label:first-child { grid-column: 1 / -1; }
  .library-actions a.sx-action { flex-shrink: 1; }
  .library-home .blog-editorial a { white-space: normal; }
}
@media (max-width: 365px) {
  .sx-blog .library-toolbar { grid-template-columns: minmax(0, 1fr); }
  .library-actions { display: grid; }
  .sheet-content .worksheet-actions { align-items: stretch; flex-direction: column; }
}
@media print {
  .library-resource-header > img { display: none; }
  .library-actions, .library-more, .library-heading a, .sheet-nav, .blog-toast { display: none!important; }
  .library-hero > img { max-height: 130px; }
  .blog-table-wrap { overflow: visible; }
}
