/* Google-inspired search results (distinct from main site chrome) */

.serp-page {
  min-height: 100vh;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  color: #202124;
}

.serp-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.85rem 1.25rem 0.65rem;
  border-bottom: 1px solid #ebebeb;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.serp-logo {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent, #c45c2a);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.serp-logo:hover {
  text-decoration: underline;
}

.serp-search-form {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 720px;
  border: 1px solid #dfe1e5;
  border-radius: 999px;
  padding: 0 0.35rem 0 1rem;
  box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.08);
  background: #fff;
}

.serp-search-form:focus-within {
  box-shadow: 0 2px 8px 1px rgba(64, 60, 67, 0.12);
  border-color: #dadce0;
}

.serp-query-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.65rem 0;
  font-size: 1rem;
  outline: none;
  background: transparent;
  color: #202124;
}

.serp-submit {
  align-self: center;
  margin: 0.2rem 0.2rem 0.2rem 0;
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 999px;
  background: #f8f9fa;
  color: #3c4043;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.serp-submit:hover {
  background: #e8eaed;
}

.serp-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.35rem 1.25rem 0.65rem;
  border-bottom: 1px solid #ebebeb;
  font-size: 0.82rem;
  color: #70757a;
}

.serp-tab {
  padding: 0.35rem 0.15rem;
  border-bottom: 3px solid transparent;
  cursor: default;
}

.serp-tab.is-active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
  font-weight: 600;
}

.serp-tab--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.serp-main {
  max-width: 720px;
  padding: 1rem 1.25rem 3rem;
  margin: 0;
}

.serp-result-meta {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: #70757a;
}

.serp-results {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.serp-result {
  margin: 0;
}

.serp-result-title {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
}

.serp-result-title a {
  color: #1a0dab;
  text-decoration: none;
}

.serp-result-title a:hover {
  text-decoration: underline;
}

.serp-result-title a:visited {
  color: #681da8;
}

.serp-result-url {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #006621;
  line-height: 1.35;
  word-break: break-all;
}

.serp-result-snippet {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #4d5156;
}

.serp-empty {
  padding: 2rem 0;
  color: #70757a;
  font-size: 0.95rem;
}

.serp-empty p {
  margin: 0 0 1rem;
}

.serp-empty a {
  color: #1a73e8;
}

.serp-noscript {
  padding: 1rem;
  background: #fff8e1;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Browse hub (static pages) — reuse site tokens */
.browse-page-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.browse-page-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1rem;
}

.browse-page-main .lede {
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.browse-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.browse-card-list a {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.browse-card-list a:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
}

.browse-paper-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.browse-paper-list li {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.browse-paper-list a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.browse-paper-list a:hover {
  text-decoration: underline;
}

.browse-paper-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.browse-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.browse-back {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}

.browse-back a {
  color: var(--ink-muted);
  font-weight: 700;
  text-decoration: none;
}

.browse-back a:hover {
  color: var(--accent);
  text-decoration: underline;
}
