body { display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
.top { display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding: 16px 20px; font-size: 14px; }
.top a:not(.btn) { color: var(--text-2); }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6vh 16px 24px; transition: padding .25s; }
.hero.compact { padding-top: 0; padding-bottom: 8px; }
.lockup { width: min(330px, 80vw); height: auto; }
.hero.compact .lockup { width: 180px; }
.tagline { color: var(--text-2); font-size: 17px; max-width: 560px; margin: 8px 0 26px; }
.hero.compact .tagline { display: none; }

.search { position: relative; width: 100%; max-width: 660px; display: flex; align-items: center; }
.search input { height: 54px; border-radius: 99px; padding: 0 124px 0 48px; font-size: 16px; box-shadow: var(--shadow-sm); }
.search input:hover { box-shadow: var(--shadow-md); }
.search-icon { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--text-3); pointer-events: none; }
.search .btn { position: absolute; right: 6px; height: 42px; border-radius: 99px; padding: 0 22px; }
.scope { font-size: 13px; color: var(--text-3); margin: 12px 0 0; }

.results { width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 16px 32px; }
.meta-line { font-size: 13px; color: var(--text-3); margin: 0 0 18px; }
.result { padding: 16px 0; border-bottom: 1px solid var(--border); }
.result:last-child { border-bottom: 0; }
.r-url { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.r-url img { width: 18px; height: 18px; }
.r-title { display: inline-block; font-size: 19px; font-weight: 600; margin: 3px 0 5px; color: var(--aj-teal-dark); }
@media (prefers-color-scheme: dark) { .r-title { color: #4FD1C5; } }
.r-hl { margin: 0 0 6px; color: var(--text-2); font-size: 14.5px; }
.r-hl mark { background: var(--aj-orange-light); color: inherit; border-radius: 3px; padding: 0 2px; }
.r-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-3); }
.empty { text-align: center; color: var(--text-2); padding: 30px 0; }

.connect { max-width: 820px; margin: 40px auto 0; padding: 32px 16px 48px; border-top: 1px solid var(--border); }
.connect h2 { font-size: 26px; text-align: center; }
.lead { text-align: center; color: var(--text-2); max-width: 620px; margin: 0 auto 22px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tabs button { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 14px; color: var(--text-2); cursor: pointer; margin-bottom: -1px; }
.tabs button[aria-selected=true] { color: var(--aj-teal-dark); border-bottom-color: var(--aj-teal); }
@media (prefers-color-scheme: dark) { .tabs button[aria-selected=true] { color: #4FD1C5; } }
.tab-panel p { color: var(--text-2); font-size: 14px; }
.tab-panel pre { font-size: 13px; margin-bottom: 10px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 30px; }
.features div { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.features strong { font-size: 15px; }
.features span { font-size: 13.5px; color: var(--text-2); }
.foot { text-align: center; font-size: 12px; color: var(--text-3); padding: 20px 16px; border-top: 1px solid var(--border); }

@media (max-width: 560px) {
  .top { gap: 12px; padding: 12px 16px; font-size: 13px; }
  .top a[href="#connect"] { display: none; }
  .search input { padding-right: 16px; height: 50px; }
  .search .btn { position: static; margin-left: 8px; height: 50px; padding: 0 16px; }
  .search-icon { display: none; }
  .search input { padding-left: 18px; }
}
