/* EXCAVATOR — shared base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif; background: #fff; color: #495057; min-height: 100vh; line-height: 1.5; }
a { color: #343a40; text-decoration: none; }
a:hover { color: #23272b; text-decoration: underline; }
h1, h2, h3, h4 { color: #2d343a; }
code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; color: #2d343a; background: #f1f3f5; padding: 2px 6px; border-radius: 4px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 32px 15px 80px; }

/* Brand */
.brand { text-align: center; }
.brand-link { display: inline-block; color: inherit; text-decoration: none; }
.brand-link:hover { text-decoration: none; color: inherit; }
.brand-logo { display: block; margin: 0 auto; width: 232px; height: auto; }
.brand-name { display: block; font-size: 46px; letter-spacing: 3px; color: #2d343a; font-weight: 400; margin-top: 6px; line-height: 1.1; }
.brand-name strong { font-weight: 700; }
.brand-tagline { font-size: 17px; color: #6c757d; margin-top: 10px; line-height: 1.4; }
.brand-compact .brand-logo { width: 110px; }
.brand-compact .brand-name { font-size: 28px; letter-spacing: 2px; margin-top: 2px; }

/* Search panel */
.search-panel { display: block; width: 100%; margin-top: 46px; border: 1px solid #dee2e6; border-radius: 6px; padding: 24px; background: #fff; }
.search-box { display: flex; align-items: stretch; }
.search-input { flex: 1 1 auto; min-width: 0; height: 58px; font-size: 20px; padding: 0 18px; border: 1px solid #ced4da; border-right: none; border-radius: 4px 0 0 4px; color: #495057; outline: none; background: #fff; font-family: inherit; }
.search-input::placeholder { color: #6c757d; opacity: 1; }
.search-input:focus { border-color: #adb5bd; }
.search-btn { flex: 0 0 auto; height: 58px; padding: 0 30px; background: #343a40; color: #fff; border: 1px solid #343a40; border-radius: 0 4px 4px 0; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; font-family: inherit; white-space: nowrap; }
.search-btn:hover { background: #23272b; border-color: #23272b; }

/* Buttons & cards */
.btn { display: inline-block; padding: 14px 30px; background: #343a40; color: #fff; border: 1px solid #343a40; border-radius: 4px; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; font-family: inherit; }
.btn:hover { background: #23272b; border-color: #23272b; color: #fff; text-decoration: none; }
.btn-secondary { background: #fff; color: #343a40; }
.btn-secondary:hover { background: #f8f9fa; color: #23272b; }
.card { border: 1px solid #dee2e6; border-radius: 6px; padding: 24px; background: #fff; }

/* Footer */
.rule { margin: 64px 0 0; border: 0; border-top: 1px solid #e6e8ea; }
.footer { text-align: center; margin-top: 58px; }
.footer-links { font-size: 22px; color: #6c757d; font-weight: 700; line-height: 1.3; text-transform: uppercase; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: #343a40; }
.copyright { font-size: 15px; color: #6c757d; margin-top: 18px; }
.footer-onion { font-size: 13px; color: #6c757d; margin-top: 10px; word-break: break-all; }
.footer-onion code { font-size: 12px; background: none; padding: 0; color: #6c757d; }

@media (max-width: 600px) {
  .brand-logo { width: 170px; }
  .brand-name { font-size: 36px; }
  .search-panel { padding: 14px; margin-top: 32px; }
  .search-input { height: 50px; font-size: 17px; padding: 0 14px; }
  .search-btn { height: 50px; padding: 0 18px; font-size: 15px; }
  .footer-links { font-size: 17px; }
  .rule { margin-top: 48px; }
  .footer { margin-top: 40px; }
}

/* Hero */
.hero { text-align: center; margin-top: 48px; }
.hero h1 { font-size: 30px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.hero p { color: #6c757d; font-size: 16px; max-width: 600px; margin: 0 auto; line-height: 1.6; }
.hero-search { margin-top: 28px; }

/* Content */
.content { margin-top: 40px; }
.empty { text-align: center; color: #6c757d; padding: 40px 20px; }
.empty p { margin-bottom: 12px; font-size: 16px; }

/* Categories */
.categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.category-card { border: 1px solid #dee2e6; border-radius: 6px; padding: 24px; background: #fff; }
.category-card h2 { font-size: 16px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.category-card .count { font-size: 13px; color: #6c757d; margin-bottom: 12px; }
.site-entry { padding: 12px 0; border-top: 1px solid #e6e8ea; }
.site-entry .title { color: #2d343a; font-weight: 700; font-size: 16px; }
.site-entry .url { font-size: 12px; color: #6c757d; word-break: break-all; margin-top: 2px; }
.site-entry .desc { font-size: 14px; color: #495057; margin-top: 4px; line-height: 1.5; }

/* Banners */
.onion-banner { border: 1px solid #dee2e6; border-radius: 6px; padding: 20px; margin-top: 40px; text-align: center; font-size: 15px; color: #6c757d; line-height: 1.7; }
.onion-banner code { word-break: break-all; }
.disclaimer { border-top: 1px solid #e6e8ea; padding-top: 20px; margin-top: 32px; font-size: 13px; color: #6c757d; line-height: 1.6; }
.disclaimer strong { color: #2d343a; }

@media (max-width: 640px) {
  .hero h1 { font-size: 24px; }
  .categories { grid-template-columns: 1fr; }
}

/* Last reviewed note inside the disclaimer */
.last-reviewed { display: block; margin-top: 8px; color: #495057; }
