/* Header search (full width in content column) */

.site-header {
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}

.site-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.site-header .site-brand,
.site-header .site-logo {
  flex: 0 0 auto;
}

.site-search {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  max-width: none;
}

.site-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 2.6rem;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink, #0a0a0a);
  background: var(--surface, #fff);
  border: 1px solid var(--line-strong, #d4d4d4);
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
}

.site-search input[type="search"]::placeholder {
  color: var(--muted-2, #a3a3a3);
}

.site-search input[type="search"]:focus {
  outline: none;
  border-color: var(--ink, #0a0a0a);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

.site-search button {
  flex: 0 0 auto;
  height: 2.6rem;
  padding: 0 1.1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--ink, #0a0a0a);
  border: 1px solid var(--ink, #0a0a0a);
  border-radius: 999px;
  cursor: pointer;
}

.site-search button:hover {
  background: #262626;
}

/* Search page — header bar is the only search input */
.search-meta {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted, #737373);
  margin: 0 0 1.25rem;
  min-height: 1.25rem;
}

.search-results {
  border-top: 1px solid var(--line, #e5e5e5);
}

.search-result {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line, #e5e5e5);
}

.search-result a {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink, #0a0a0a);
  text-decoration: none;
}

.search-result a:hover {
  color: var(--muted, #737373);
}

.search-result .article-date {
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}

.search-result p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted, #737373);
}

.search-empty {
  text-align: center;
  padding: 2rem 0;
  color: var(--muted, #737373);
}

@media (max-width: 640px) {
  .site-search {
    max-width: 100%;
  }

  .site-search input[type="search"],
  .site-search button {
    height: 2.5rem;
  }
}
