.resource-topbar .stats { grid-row: 1; }
.site-footer { gap: 16px; flex-wrap: wrap; }
.community-layout { display: block; }
.community-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid #d8dee9; }
.community-tabs [role="tab"] { font: inherit; font-size: 18px; font-weight: 700; padding: 14px 24px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #667085; cursor: pointer; }
.community-tabs [aria-selected="true"] { color: #1d4ed8; border-bottom-color: #2563eb; }
.community-tabs [role="tab"]:focus-visible { outline: 3px solid #2563eb; outline-offset: -3px; }
.community-layout [role="tabpanel"] { max-width: 880px; margin-inline: auto; }
@media(max-width: 820px) { .resource-topbar .stats { grid-row: auto; } }
.directory-content { width: min(1280px, calc(100% - 40px)); margin: 32px auto; }
.directory-content > section { margin-bottom: 36px; }
.directory-empty { padding: 48px 0; text-align: center; }
.directory-empty p { color: #68717d; margin-bottom: 24px; }
.lesson-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.lesson { border: 1px solid #e0e5eb; border-radius: 8px; background: #fff; padding: 18px; min-width: 0; }
.lesson img { width: 100%; height: 180px; object-fit: contain; }
.lesson h3 { overflow-wrap: anywhere; font-size: 17px; }
.lesson .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.category-button { text-decoration: none; }
.tools-compact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: stretch; }
.download-tool { min-width: 0; min-height: 100%; display: flex; flex-direction: column; padding: 20px; border: 1px solid #dfe5ec; border-radius: 8px; background: #fff; }
.tool-downloads > a:only-child { grid-column: 1 / -1; }
.tool-platforms > .tool-platform:only-child { grid-column: 1 / -1; padding-right: 0; }
.tool-heading { display: flex; align-items: center; gap: 16px; min-height: 112px; padding-bottom: 16px; }
.tool-heading h2 { margin: 0 0 8px; font-size: 23px; }
.tool-summary { margin: 0 0 8px; line-height: 1.55; }
.tool-updated, .tool-version { color: #667085; font-size: 13px; }
.tool-preview { flex: 0 0 auto; border: 0; background: #fff; padding: 0; cursor: zoom-in; }
.tool-preview img { display: block; width: 104px; height: 110px; object-fit: contain; }
.tool-downloads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.tool-downloads a { min-height: 48px; text-align: center; }
.tool-platforms { display: grid; gap: 8px; margin-top: auto; border-top: 1px solid #e3e8ef; padding-top: 12px; }
.tool-platform { min-width: 0; padding: 10px 0 0; border-top: 1px solid #edf1f5; }
.tool-platform:first-child { border-top: 0; padding-top: 0; }
.tool-platform summary { cursor: pointer; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; font-weight: 700; }
.tool-platform-title { min-width: 0; overflow-wrap: anywhere; }
.tool-requirements { font-size: 14px; margin: 0 0 8px; }
.tool-description { font-size: 14px; line-height: 1.6; }
.tool-notice { font-size: 13px; line-height: 1.6; color: #667085; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 12px; }
.tool-actions a { min-height: 46px; }
.tool-checksum { font-size: 12px; color: #667085; }
.tool-checksum summary { cursor: pointer; }
.tool-checksum code { display: block; overflow-wrap: anywhere; padding-top: 10px; }
.tool-preview:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
@media(max-width: 640px) {
  .tools-compact-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .download-tool { padding: 18px; }
  .tool-heading { gap: 12px; }
  .tool-heading h2 { font-size: 22px; }
  .tool-preview img { width: 86px; height: 90px; }
  .tool-summary { font-size: 14px; }
  .tool-downloads { gap: 8px; }
  .tool-downloads a { font-size: 14px; padding: 10px 8px; }
  .tool-platform summary { grid-template-columns: minmax(0,1fr); }
}
@media(min-width: 641px) and (max-width: 960px) { .tools-compact-grid { grid-template-columns: minmax(0,1fr); } }
@media(max-width: 900px) { .lesson-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 640px) { .lesson-grid { grid-template-columns: minmax(0,1fr); } }
