.search-page {
  background: #f3efe7;
  color: #171714;
}

.search-page .core-header.cover {
  min-height: 0;
  padding-bottom: 1.4rem;
  background: #731f39;
}

.search-page .core-header.cover::before,
.search-page .core-header.cover::after {
  display: none;
}

.search-page .cover-inner {
  position: relative;
  min-height: 0;
}

.search-page .core-header.cover .issue-line,
.search-page .core-header.cover .issue-line span,
.search-page .core-header.cover .masthead-link,
.search-page .core-header.cover .masthead-wordmark,
.search-page .core-header.cover .masthead-deck,
.search-page .core-header.cover .primary-nav a {
  color: #ffffff !important;
  text-shadow: none !important;
}

.search-page .core-header.cover .issue-line,
.search-page .core-header.cover .masthead-deck {
  opacity: 0.86;
}

.search-page .core-header.cover .primary-nav {
  border-top-color: rgba(255, 255, 255, 0.34);
  border-bottom-color: rgba(255, 255, 255, 0.34);
}

.search-page .core-header.cover .primary-nav a {
  border-bottom-color: transparent;
  opacity: 0.9;
}

.search-page .core-header.cover .primary-nav a:hover {
  border-bottom-color: #ffffff;
  opacity: 1;
}

.search-page .primary-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: #ffffff;
  opacity: 1;
}

.search-main {
  width: min(100% - 2rem, 1360px);
  margin: 0 auto;
  padding: 1.2rem 0 4.5rem;
}

.search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  min-height: 490px;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 20, 0.18);
  background: #fbf8f2;
}

.search-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4.6rem);
}

.search-kicker {
  margin: 0 0 0.75rem;
  color: #731f39;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.search-intro h1 {
  max-width: 720px;
  margin: 0;
  color: #171714;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 3.7vw, 4.15rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.search-intro > p:not(.search-kicker) {
  max-width: 650px;
  margin: 1.15rem 0 0;
  color: #5b574f;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
}

.search-form {
  margin-top: 2rem;
}

.search-form > label {
  display: block;
  margin-bottom: 0.55rem;
  color: #282720;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #26251f;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(73, 45, 25, 0.08);
}

.search-input-row:focus-within {
  outline: 3px solid rgba(115, 31, 57, 0.2);
  outline-offset: 3px;
}

.search-input-row input {
  min-width: 0;
  width: 100%;
  min-height: 58px;
  padding: 0 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #171714;
  font: 600 1rem/1.2 Arial, Helvetica, sans-serif;
  outline: 0;
}

.search-input-row input::placeholder {
  color: #7b776e;
  opacity: 1;
}

.search-input-row button,
.search-more {
  border: 0;
  border-left: 1px solid #26251f;
  border-radius: 0;
  background: #1b1a17;
  color: #ffffff;
  font: 800 0.78rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease;
}

.search-input-row button {
  min-width: 108px;
  padding: 0 1.2rem;
}

.search-input-row button:hover,
.search-more:hover {
  background: #731f39;
}

.search-input-row button:active,
.search-more:active,
.search-starters button:active,
.search-filters button:active {
  transform: translateY(1px);
}

.search-helper {
  margin: 0.7rem 0 0;
  color: #716c62;
  font-size: 0.76rem;
  line-height: 1.4;
}

.search-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.search-starters button,
.search-filters button {
  min-height: 36px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(23, 23, 20, 0.2);
  border-radius: 0;
  background: transparent;
  color: #34322c;
  font: 700 0.75rem/1.1 Arial, Helvetica, sans-serif;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.search-starters button:hover,
.search-filters button:hover {
  border-color: #731f39;
  color: #731f39;
}

.search-hero-visual {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #25211f;
}

.search-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 490px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
}

.search-hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgba(17, 15, 14, 0.78));
  pointer-events: none;
}

.search-hero-visual figcaption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.4rem;
  left: 1.5rem;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.search-hero-visual figcaption span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-hero-visual figcaption strong {
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.03;
  text-align: right;
}

.search-results-section {
  padding-top: clamp(2.5rem, 5vw, 5.4rem);
}

.results-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: end;
  gap: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(23, 23, 20, 0.25);
}

.results-toolbar h2 {
  margin: 0;
  color: #171714;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.search-status {
  margin: 0.6rem 0 0;
  color: #666157;
  font-size: 0.88rem;
}

.search-page .search-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.search-page .search-filters button {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}

.search-page .search-filters button.is-active {
  border-color: #731f39;
  background: #731f39;
  color: #ffffff;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
}

.search-page .search-result {
  display: block;
  min-width: 0;
  width: 100%;
  grid-template-columns: none;
  border: 1px solid rgba(23, 23, 20, 0.2);
  background: #ffffff;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.search-page .search-result:first-child {
  grid-column: 1 / -1;
}

.search-page .search-result:hover {
  border-color: rgba(115, 31, 57, 0.74);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(74, 51, 32, 0.09);
}

.search-page .search-result > a {
  display: block;
  min-height: 0;
  width: 100%;
  max-width: none;
  color: inherit;
  text-decoration: none;
}

.search-page .search-result:first-child > a {
  display: grid;
  grid-template-columns: minmax(300px, 0.94fr) minmax(0, 1.06fr);
  min-height: 300px;
}

.result-media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #d9d1c5;
}

.result-media img {
  width: 100%;
  height: 100%;
  height: 220px;
  min-height: 220px;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.search-result:first-child .result-media img {
  height: 100%;
  min-height: 300px;
}

.search-result:hover .result-media img {
  transform: scale(1.025);
}

.search-page .result-copy {
  display: flex;
  min-width: 0;
  width: auto;
  max-width: none;
  flex-direction: column;
  padding: clamp(1.3rem, 2.2vw, 2.25rem);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  color: #731f39;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-meta span + span::before {
  margin-right: 0.7rem;
  color: #a7a095;
  content: "/";
}

.search-page .result-copy h3 {
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0.85rem 0 0;
  overflow-wrap: anywhere;
  color: #171714;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.search-page .search-result:first-child .result-copy h3 {
  font-size: clamp(2rem, 3.1vw, 3.65rem);
}

.search-page .result-copy p {
  width: auto;
  min-width: 0;
  max-width: 62ch;
  margin: 0.9rem 0 0;
  color: #45423b;
  font-size: 1rem;
  line-height: 1.55;
}

.result-path {
  margin-top: auto;
  padding-top: 1.2rem;
  color: #22211d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-copy mark {
  padding: 0 0.08em;
  background: #f0d8df;
  color: inherit;
}

.search-skeleton {
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 20, 0.12);
  background: #ffffff;
}

.search-skeleton:first-child {
  grid-column: 1 / -1;
  min-height: 330px;
}

.search-skeleton > span,
.search-skeleton i,
.search-skeleton b,
.search-skeleton em {
  display: block;
  background: linear-gradient(90deg, #e7e0d7 0%, #f7f3ed 50%, #e7e0d7 100%);
  background-size: 220% 100%;
  animation: search-shimmer 1.35s ease-in-out infinite;
}

.search-skeleton > div {
  padding: 2rem;
}

.search-skeleton i {
  width: 30%;
  height: 10px;
}

.search-skeleton b {
  width: 78%;
  height: 30px;
  margin-top: 1rem;
}

.search-skeleton em {
  width: 94%;
  height: 68px;
  margin-top: 1rem;
}

@keyframes search-shimmer {
  to { background-position: -220% 0; }
}

.search-state {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(23, 23, 20, 0.2);
  background: #ffffff;
}

.search-state strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
}

.search-state p {
  max-width: 56ch;
  margin: 0;
  color: #625e55;
  line-height: 1.6;
}

.search-state button {
  justify-self: start;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #731f39;
  border-radius: 0;
  background: transparent;
  color: #731f39;
  font-weight: 800;
}

.search-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 1.4rem;
}

.search-more {
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border: 1px solid #26251f;
}

@media (max-width: 980px) {
  .search-hero {
    grid-template-columns: 1fr;
  }

  .search-hero-visual {
    min-height: 320px;
  }

  .search-hero-visual img {
    min-height: 320px;
    max-height: 440px;
  }

  .results-toolbar {
    grid-template-columns: 1fr;
  }

  .search-filters {
    justify-content: flex-start;
  }

  .search-page .search-result > a,
  .search-page .search-result:first-child > a {
    display: block;
    grid-template-columns: none;
    min-height: 0;
  }

  .search-page .result-media img,
  .search-page .search-result:first-child .result-media img {
    width: 100%;
    height: 230px;
    min-height: 230px;
    max-height: 340px;
  }
}

@media (max-width: 680px) {
  .search-main {
    width: min(100% - 1rem, 1360px);
    padding-top: 0.5rem;
  }

  .search-intro {
    padding: 1.5rem 1.15rem 1.7rem;
  }

  .search-intro h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
    line-height: 1;
  }

  .search-input-row {
    grid-template-columns: 1fr;
  }

  .search-input-row button {
    min-height: 46px;
    border-top: 1px solid #26251f;
    border-left: 0;
  }

  .search-helper {
    display: none;
  }

  .search-starters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-starters button {
    min-width: 0;
    padding-inline: 0.55rem;
  }

  .search-page .search-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .search-page .search-filters button {
    width: 100%;
  }

  .search-hero-visual {
    min-height: 250px;
  }

  .search-hero-visual img {
    min-height: 250px;
    max-height: 300px;
  }

  .search-hero-visual figcaption {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .search-results {
    grid-template-columns: 1fr;
  }

  .search-result:first-child {
    grid-column: auto;
  }

  .search-page .result-media img,
  .search-page .search-result:first-child .result-media img {
    width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 270px;
  }

  .result-copy {
    padding: 1.2rem;
  }

  .search-result:first-child .result-copy h3,
  .result-copy h3 {
    font-size: clamp(1.55rem, 7.8vw, 2.25rem);
  }

  .search-state {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-result,
  .result-media img,
  .search-input-row button,
  .search-more,
  .search-starters button,
  .search-filters button {
    transition: none;
  }

  .search-skeleton > span,
  .search-skeleton i,
  .search-skeleton b,
  .search-skeleton em {
    animation: none;
  }
}
