/* Homepage presentation only. Shared styles and all existing interactions remain intact. */
body.directory-redesign { background: #f3f0e8; color: #171717; }
.directory-redesign::before { display: none; }
.directory-redesign .container { max-width: 1488px; padding: 24px 32px 40px; }
.directory-redesign .main-header { margin: 0; padding: 18px 22px; background: #ff4949; border: 2px solid #171717; border-radius: 5px; box-shadow: 5px 6px 0 #171717; transform: none; }
.directory-redesign .header-content { gap: 24px; }
.directory-redesign .logo-area { gap: 14px; }
.directory-redesign .logo { width: 38px; height: 38px; background: #ffde59; color: #171717; border: 2px solid #171717; box-shadow: 3px 3px 0 #171717; transform: none; font-size: 22px; }
.directory-redesign .header-content h1 { font-size: 30px; line-height: 1.2; text-transform: uppercase; text-shadow: none; transform: none; }
.directory-redesign .header-content h1 a { color: white; }
.directory-header-nav { display: flex; gap: 28px; align-items: center; }
.directory-header-nav a { color: white; font-size: 15px; font-weight: 700; }
.directory-header-nav a[aria-current] { text-decoration: underline; text-underline-offset: 7px; }
.directory-intro { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,1fr); gap: 34px; align-items: center; padding: 38px 0 34px; margin-bottom: 28px; border-bottom: 1px solid #171717; }
.directory-headline { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.directory-headline h2 { font-size: clamp(28px,2.9vw,44px); letter-spacing: -1px; line-height: 1.3; font-weight: 800; }
.directory-sticker { display: inline-block; padding: 8px 12px; font-size: 13px; font-weight: 700; background: #ffde59; border: 2px solid #171717; border-radius: 2px; box-shadow: 4px 4px 0 #171717; transform: rotate(-3deg); }
.directory-intro-copy p { margin-top: 16px; color: #595750; font-size: 14px; }
.directory-redesign .search-container { max-width: none; width: 100%; }
.directory-redesign .search-container form { display: flex; gap: 12px; padding: 9px; border: 2px solid #171717; border-radius: 5px; background: white; box-shadow: 5px 5px 0 #171717; }
.directory-redesign .search-container input { width: 100%; min-width: 0; flex: 1; border: 0; background: white; box-shadow: none; padding: 12px 10px; font-size: 15px; }
.directory-redesign .search-container button { position: static; width: auto; height: auto; transform: none; padding: 9px 24px; background: #6b36ed; color: white; border: 2px solid #171717; border-radius: 3px; box-shadow: 3px 3px 0 #171717; font-size: 16px; font-weight: 700; }
.directory-redesign .content-layout { grid-template-columns: 232px minmax(0,1fr); gap: 32px; }
.directory-redesign .desktop-category-card { border: 2px solid #171717; box-shadow: 5px 5px 0 #171717; border-radius: 5px; }
.directory-redesign .desktop-category-heading { padding: 16px; border-bottom: 2px solid #171717; font-size: 22px; }
.directory-redesign .desktop-category-heading i { display: none; }
.directory-redesign .desktop-category-list { padding: 12px; scrollbar-width: thin; }
.directory-redesign .desktop-category-list li { margin-bottom: 4px; }
.directory-redesign .desktop-category-list a { display: block; border: 2px solid transparent; border-radius: 3px; padding: 12px 10px; min-height: 46px; background: white; font-size: 14px; font-weight: 600; line-height: 1.45; }
.directory-redesign .desktop-category-list a:hover { background: #fff1b4; border-color: #171717; box-shadow: 3px 3px 0 #171717; }
.directory-redesign .desktop-category-list a.active { background: #6b36ed; color: white; border-color: #171717; box-shadow: 3px 3px 0 #171717; }
.directory-featured { margin-bottom: 34px; }
.directory-featured-heading { display: flex; align-items: center; gap: 26px; margin: 0 0 24px; }
.directory-featured-heading h2 { padding: 7px 14px; color: white; background: #ff4949; border: 2px solid #171717; border-radius: 2px; box-shadow: 4px 4px 0 #171717; transform: rotate(-2deg); font-size: 22px; line-height: 1.35; }
.directory-featured-heading p { color: #595750; font-size: 14px; }
.directory-featured-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.directory-featured-card { display: flex; flex-direction: column; min-width: 0; padding: 16px 18px; background: #ffde59; color: #171717; border: 2px solid #171717; border-radius: 5px; box-shadow: 5px 5px 0 #171717; transition: transform 160ms ease,box-shadow 160ms ease; }
.directory-featured-card:nth-child(2) { background: #e5d8ff; }
.directory-featured-card:nth-child(3) { background: #ffd9d3; }
.directory-featured-name { display: flex; align-items: flex-start; gap: 9px; font-size: 15px; }
.directory-featured-name strong { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.directory-featured-name > span:last-child { font-size: 23px; line-height: 1; }
.directory-featured-name .directory-access { flex: none; font-size: 19px; }
.directory-featured-card h3 { font-size: 18px; line-height: 1.5; margin: 26px 0 20px; font-weight: 700; }
.directory-featured-card p { font-size: 12px; padding-top: 12px; margin-top: auto; border-top: 1px solid #171717; }
.directory-featured-card:hover { color: #171717; text-decoration: none; transform: translate(-2px,-2px); box-shadow: 7px 7px 0 #171717; }
.directory-tools-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.directory-tools-heading h2 { font-size: 27px; line-height: 1.4; }
.directory-tools-heading h2 span { font-size: 12px; color: #595750; margin-left: 10px; font-weight: 400; white-space: nowrap; }
.directory-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: #595750; }
.directory-redesign .category-section { padding: 0; margin-bottom: 30px; border: none; box-shadow: none; border-radius: 0; background: transparent; transform: none; overflow: visible; }
.directory-redesign .category-section::before { display: none; }
.directory-redesign .category-title { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 20px; padding: 12px 16px; border: 2px solid #171717; border-radius: 4px; background: #ffde59; color: #171717; box-shadow: 4px 4px 0 #171717; transform: none; font-size: 18px; letter-spacing: 0; line-height: 1.45; }
.directory-redesign .category-section:nth-of-type(odd) .category-title { background: #e5d8ff; }
.directory-redesign .category-title i { display: none; }
.directory-redesign .site-count { margin-left: auto; flex: none; background: none; border: none; box-shadow: none; font-size: 12px; color: #595750; }
.directory-redesign .site-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.directory-redesign .site-card { display: grid; grid-template-columns: 44px minmax(0,1fr); grid-template-rows: 1fr auto; align-items: start; column-gap: 14px; row-gap: 16px; min-height: 156px; padding: 17px 16px 12px; border: 2px solid #171717; border-radius: 5px; background: white; box-shadow: 4px 5px 0 #171717; transform: none; transition: transform 160ms ease,box-shadow 160ms ease,background-color 160ms ease; }
.directory-redesign .site-card:hover { background: #fffdf7; transform: translate(-2px,-2px); box-shadow: 6px 7px 0 #171717; }
.directory-redesign .site-icon { width: 44px; height: 44px; margin: 0; border: 2px solid #171717; border-radius: 4px; box-shadow: 3px 3px 0 #171717; transform: none; }
.directory-redesign .site-info { min-width: 0; }
.directory-redesign .site-name { position: static; padding: 0 29px 0 0; font-size: 18px; font-weight: 700; text-transform: none; line-height: 1.35; letter-spacing: 0; overflow-wrap: anywhere; }
.directory-redesign .site-location { position: absolute; top: 15px; right: 13px; display: inline-block; font-size: 20px; line-height: 1.3; }
.directory-redesign .site-description { margin-top: 8px; font-size: 12px; color: #63615d; line-height: 1.55; -webkit-line-clamp: 2; line-clamp: 2; }
.directory-redesign .site-meta { position: static; display: flex; margin-top: 6px; }
.directory-redesign .site-tag { position: static; display: inline-block; padding: 1px 5px; font-size: 10px; border: 1px solid #171717; border-radius: 2px; transform: none; box-shadow: none; }
.directory-card-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px solid #aaa69f; font-size: 11px; color: #63615d; }
.directory-card-footer span:last-child { font-size: 21px; line-height: 1; color: #171717; }
.directory-redesign .main-footer { margin-top: 42px; border: 2px solid #171717; border-radius: 5px; box-shadow: 5px 5px 0 #171717; transform: none; }
.directory-redesign a:focus-visible,.directory-redesign button:focus-visible,.directory-redesign input:focus-visible { outline: 3px solid #6b36ed; outline-offset: 5px; }
@media(min-width:993px) and (max-width:1200px) {
 .directory-redesign .content-layout { grid-template-columns: 212px minmax(0,1fr); gap: 26px; }
 .directory-redesign .site-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .directory-featured-grid { gap: 16px; }
 .directory-featured-card { padding: 14px; }
 .directory-featured-card h3 { font-size: 16px; }
}
@media(max-width:992px) {
 .directory-redesign .container { padding: 18px 22px 32px; }
 .directory-redesign .content-layout { display: block; }
 .directory-intro { grid-template-columns: 1fr; gap: 24px; padding: 30px 0; }
 .directory-redesign .site-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .directory-redesign .site-name { font-size: 16px; }
}
@media(max-width:700px) {
 .directory-redesign .container { padding: 12px 16px 26px; }
 .directory-redesign .main-header { padding: 14px 13px; }
 .directory-redesign .header-content { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
 .directory-redesign .header-content h1 { font-size: 23px; }
 .directory-redesign .logo { width: 30px; height: 30px; font-size: 17px; }
 .directory-redesign .logo-area { gap: 9px; }
 .directory-header-nav { gap: 15px; }
 .directory-header-nav a { font-size: 12px; }
 .directory-intro { padding: 26px 0; margin-bottom: 25px; }
 .directory-headline { gap: 16px; }
 .directory-headline h2 { font-size: 30px; }
 .directory-sticker { font-size: 12px; }
 .directory-intro-copy p { font-size: 12px; line-height: 1.7; }
 .directory-redesign .search-container form { gap: 6px; padding: 6px; }
 .directory-redesign .search-container input { padding: 10px 6px; font-size: 13px; }
 .directory-redesign .search-container button { padding: 8px 17px; font-size: 14px; }
 .directory-featured-grid { grid-template-columns: 1fr; gap: 16px; }
 .directory-featured-card { padding: 15px 16px; }
 .directory-featured-card h3 { margin: 14px 0; font-size: 18px; }
 .directory-featured-heading { gap: 20px; }
 .directory-featured-heading h2 { font-size: 20px; }
 .directory-featured-heading p { font-size: 12px; }
 .directory-tools-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
 .directory-tools-heading h2 { font-size: 24px; }
 .directory-legend { gap: 14px; font-size: 11px; }
 .directory-redesign .site-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
 .directory-redesign .site-card { grid-template-columns: 32px minmax(0,1fr); column-gap: 9px; padding: 12px 10px 10px; min-height: 153px; }
 .directory-redesign .site-icon { width: 32px; height: 32px; }
 .directory-redesign .site-name { font-size: 14px; padding-right: 0; }
 .directory-redesign .site-location { position: static; margin-left: 3px; font-size: 15px; white-space: nowrap; }
 .directory-redesign .site-description { font-size: 11px; }
 .directory-redesign .category-title { padding: 10px 12px; font-size: 16px; gap: 8px; }
 .directory-redesign .site-count { font-size: 10px; }
 .directory-redesign .category-menu-toggle { right: 12px; top: auto; bottom: 134px; transform: none; border: 2px solid #171717; border-radius: 4px; box-shadow: 3px 3px 0 #171717; }
 .directory-redesign .category-menu-toggle:hover { transform: translateY(-2px); }
}
@media(max-width:370px) { .directory-redesign .site-grid { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion:reduce) { .directory-redesign *, .directory-redesign *::before, .directory-redesign *::after { scroll-behavior: auto !important; transition: none !important; } }
/* Keep long tool names and access reminders visible rather than truncating them. */
.directory-redesign .site-name { white-space: normal; overflow: visible; text-overflow: clip; }
@media(max-width:500px) {
 .directory-redesign .site-grid { grid-template-columns: 1fr; }
 .directory-redesign .site-card { grid-template-columns: 44px minmax(0,1fr); column-gap: 14px; min-height: 150px; padding: 16px; }
 .directory-redesign .site-icon { width: 44px; height: 44px; }
 .directory-redesign .site-name { font-size: 18px; padding-right: 28px; }
 .directory-redesign .site-description { font-size: 12px; }
 .directory-redesign .site-location { position: absolute; top: 15px; right: 13px; font-size: 20px; margin: 0; }
}
.directory-redesign .category-section::after,.directory-redesign .main-footer::before { display: none; }
.directory-redesign .container { width: 100%; max-width: 1488px; }
.directory-redesign .header-content { justify-content: space-between; }
@media(max-width:500px) { .directory-redesign .header-content { justify-content: center; } }

@media(min-width:701px) { .directory-tools-heading { padding-right: 52px; } }

/* Quiet, fixed hint below the independently scrolling desktop category list. */
.directory-redesign .desktop-category-card { display: flex; flex-direction: column; }
.directory-redesign .desktop-category-heading { flex-shrink: 0; }
.directory-redesign .desktop-category-list { min-height: 0; max-height: calc(100vh - 148px); flex: 1 1 auto; }
.directory-scroll-hint { flex-shrink: 0; padding: 10px 12px; margin: 0; border-top: 1px solid #e8e5de; background: #fff; color: #77736b; font-size: 11px; line-height: 1.5; text-align: center; }

@media(min-width:993px) {
 .directory-redesign .desktop-category-card { height: calc(100vh - 40px); max-height: calc(100vh - 40px); height: calc(100dvh - 40px); max-height: calc(100dvh - 40px); }
 .directory-redesign .desktop-category-list { max-height: none; }
}
