/* Design Tools & CAD Library page */
.dt-main { color: #1F3A5F; }
.dt-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.dt-hero { background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%); padding: 56px 0 40px; border-bottom: 1px solid #E5E7EB; }
.dt-hero h1 { font-family: 'DM Serif Display', Georgia, serif; font-size: 42px; line-height: 1.15; margin: 0 0 16px; color: #1F3A5F; }
.dt-hero-sub { font-size: 18px; line-height: 1.6; color: #4B5563; max-width: 780px; }
.dt-hero-sub p { margin: 0; }

/* Tool cards row */
.dt-toolcards { padding: 48px 0; background: #FFFFFF; }
.dt-toolcards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.dt-toolcard { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .15s ease, transform .15s ease; }
.dt-toolcard:hover { box-shadow: 0 4px 16px rgba(31, 58, 95, 0.08); transform: translateY(-2px); }
.dt-toolcard-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: #F8FAFC; border-radius: 8px; }
.dt-toolcard-icon img { max-width: 40px; max-height: 40px; }
.dt-toolcard-title { font-size: 20px; margin: 0; color: #1F3A5F; }
.dt-toolcard-desc { font-size: 15px; line-height: 1.5; color: #4B5563; margin: 0; flex: 1; }
.dt-toolcard--gated { border-top: 3px solid #C28A16; }
.dt-badge { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 12px; font-weight: 600; }
.dt-badge--account { background: #FFF3D0; color: #7A5B0F; }

/* Buttons */
.dt-btn { display: inline-block; text-align: center; padding: 10px 18px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; transition: background .15s ease; align-self: flex-start; }
.dt-btn--primary { background: #2F6DAE; color: #FFFFFF; }
.dt-btn--primary:hover { background: #1F3A5F; }
.dt-btn--download { background: #2E7D32; color: #FFFFFF; }
.dt-btn--download:hover { background: #256328; }
.dt-btn--disabled { background: #D1D5DB; color: #6B7280; cursor: not-allowed; }

/* Downloads section */
.dt-downloads { padding: 56px 0 80px; background: #F8FAFC; }
.dt-downloads-head { margin-bottom: 32px; }
.dt-downloads-head h2 { font-family: 'DM Serif Display', Georgia, serif; font-size: 32px; margin: 0 0 12px; color: #1F3A5F; }
.dt-downloads-intro { font-size: 16px; color: #4B5563; max-width: 780px; }
.dt-downloads-intro p { margin: 0; }

.dt-filters { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; padding: 16px; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 8px; }
.dt-filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dt-filter-label { font-size: 13px; font-weight: 600; color: #4B5563; margin-right: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.dt-filter { background: #FFFFFF; border: 1px solid #D1D5DB; color: #4B5563; padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer; transition: all .12s ease; }
.dt-filter:hover { border-color: #2F6DAE; color: #2F6DAE; }
.dt-filter.is-active { background: #2F6DAE; color: #FFFFFF; border-color: #2F6DAE; }

.dt-download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.dt-download-card { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s ease; }
.dt-download-card.is-hidden { display: none; }
.dt-download-card:hover { box-shadow: 0 4px 14px rgba(31, 58, 95, 0.08); }
.dt-download-preview { aspect-ratio: 4 / 3; background: #F8FAFC; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dt-download-preview img { width: 100%; height: 100%; object-fit: contain; }
.dt-download-preview--placeholder { color: #6B7280; font-weight: 700; font-size: 24px; letter-spacing: 0.1em; }
.dt-download-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dt-download-title { font-size: 16px; margin: 0; color: #1F3A5F; line-height: 1.3; }
.dt-download-desc { font-size: 13px; color: #4B5563; margin: 0; line-height: 1.4; }
.dt-download-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.dt-meta-tag { display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 4px; background: #EEF2F7; color: #4B5563; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.dt-meta-tag--format { background: #DDE9F5; color: #1F3A5F; }
.dt-meta-tag--size { background: #F0F0F0; color: #6B7280; text-transform: none; letter-spacing: 0; font-weight: 500; }
.dt-download-body .dt-btn { margin-top: 4px; align-self: stretch; text-align: center; }
.dt-empty { color: #6B7280; text-align: center; padding: 40px 0; font-size: 15px; }

/* Responsive */
@media (max-width: 640px) {
    .dt-hero { padding: 40px 0 32px; }
    .dt-hero h1 { font-size: 32px; }
    .dt-hero-sub { font-size: 16px; }
    .dt-toolcards { padding: 32px 0; }
    .dt-downloads { padding: 40px 0 56px; }
    .dt-downloads-head h2 { font-size: 26px; }
    .dt-filters { flex-direction: column; align-items: flex-start; }
}
