* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; background: #F0F0F0; color: #3E3E3E; font: 14px Arial, sans-serif; line-height: 150%; }
a { color: #ED1C24; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; font-family: Arial, sans-serif; font-weight: normal; color: #25282A; }
h1 { font-size: 42px; line-height: 110%; }
h2 { font-size: 27px; line-height: 120%; }
h3 { font-size: 20px; line-height: 140%; }
h4 { font-size: 18px; line-height: 140%; }
h5 { font-size: 16px; line-height: 140%; }
h6 { font-size: 13px; line-height: 150%; }
p { margin: 0; padding: 1em 0; line-height: 150%; }
strong { color: #000; }
.site_container.boxed { max-width: 1150px; margin: 30px auto 0; background: #FFF; box-shadow: 0 0 15px rgba(0, 0, 0, .15); }
.header, .site-nav, .page, .footer { width: 1050px; max-width: calc(100% - 40px); margin-left: auto; margin-right: auto; }
.header_container { background: #FFF; padding-bottom: 26px; }
.header { padding-top: 7px; text-align: center; }
.logo { display: block; width: 520px; max-width: 100%; margin: 0 auto; }
.logo img { display: block; width: 520px; height: auto; }
.project-subtitle { margin: 3px 0 0; padding: 0; color: #7C7C7C; font-size: 18px; line-height: 140%; }
.menu_container { background: #FFF; border-top: 3px solid #ED1C24; border-bottom: 1px solid #E9E9E9; }
.sf-menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.sf-menu li { margin: 0; padding: 0; }
.sf-menu a { display: block; padding: 10px 15px 15px; font-size: 18px; line-height: 140%; color: #25282A; }
.sf-menu a:hover, .sf-menu a:focus-visible, .sf-menu .selected > a { background: #ED1C24; color: #FFF; text-decoration: none; }
.page { padding-bottom: 50px; }
.page_title { margin: 30px 0; padding-bottom: 20px; border-bottom: 1px solid #E9E9E9; font-weight: bold; overflow-wrap: anywhere; }
.intro p { padding-top: 0; }
.section { padding: 20px 0 0; }
.box_header { background: #F0F0F0; border-left: 3px solid #ED1C24; padding: 8px 15px 11px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: #363B40; color: #FFF; padding: 8px 14px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid #ED1C24; outline-offset: 2px; }
.demo-banner { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; align-items: center; background: #363B40; color: #FFF; padding: 8px 16px; }
.demo-banner a { color: #FFF; text-decoration: underline; }
.btn { display: inline-block; border: 1px solid #E9E9E9; background: #FFF; color: #25282A; font: inherit; padding: 9px 18px; cursor: pointer; }
.btn:hover { border-color: #ED1C24; color: #ED1C24; text-decoration: none; }
.btn-primary { background: #ED1C24; border-color: #ED1C24; color: #FFF; }
.btn-primary:hover { background: #363B40; border-color: #363B40; color: #FFF; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 20px 0 0; }
.field { display: flex; flex-direction: column; gap: 4px; color: #7C7C7C; }
.field-grow { flex: 1 1 220px; }
.field input, .field select { font: inherit; color: #25282A; background: #FFF; border: 1px solid #E9E9E9; padding: 8px 10px; }
#catalog-search input { min-width: 0; max-width: 100%; }
.library-status { min-height: 1.5em; color: #7C7C7C; }
.category-section { padding: 30px 0; border-top: 1px solid #E9E9E9; scroll-margin-top: 20px; }
.category-section h2 { margin-bottom: 8px; }
.category-description, .category-count, .empty-state { color: #7C7C7C; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; }
.card { display: flex; flex-direction: column; background: #FFF; border-bottom: 1px solid #E9E9E9; overflow: hidden; }
.card-media { display: block; aspect-ratio: 4 / 3; background: #F0F0F0; overflow: hidden; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 15px 0 20px; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 20px; line-height: 140%; }
.card-title a { color: #25282A; }
.card-title a:hover { color: #ED1C24; }
.card-summary { padding: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; color: #7C7C7C; background: #F0F0F0; }
.tag-muted { color: #ED1C24; }
.category-more { margin-top: 18px; }
.load-more-wrap { text-align: center; padding-top: 22px; }
.site-footer { background: #363B40; padding-top: 50px; }
.footer { padding-bottom: 30px; }
.footer p { color: #D7DCE0; }
.footer a { color: #FFF; }
@media (max-width: 600px) {
  .site_container.boxed { margin-top: 15px; }
  .header, .site-nav, .page, .footer { max-width: calc(100% - 30px); }
  .project-subtitle { font-size: 16px; }
  .sf-menu a { padding: 10px; font-size: 16px; }
  h1 { font-size: 32px; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
