/*
Theme Name: Media Manager Journal
Description: An editorial WordPress theme for Media Manager's article archive.
Version: 1.4.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: media-manager-journal
*/
:root {
  --red: #BE2026;
  --ink: #221d1c;
  --muted: #655d59;
  --line: #e8dfd9;
  --paper: #fbf8f5;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2 { overflow-wrap: anywhere; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.header-inner { min-height: 80px; padding-block: 14px; }
.brand img, .custom-logo { width: min(236px, 100%); }
.site-header ul, .site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-size: .875rem; font-weight: 650; }
.site-header [aria-current="page"], .current-menu-item > a { color: var(--red); }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #1d1919; color: #fff; }
.hero::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: -170% -45% -75% 3%;
  background: repeating-linear-gradient(90deg, #be202665 0 2px, transparent 2px 66px), repeating-linear-gradient(0deg, #be20265c 0 2px, transparent 2px 66px);
  transform: perspective(450px) rotateX(47deg) rotateZ(-17deg);
  mask-image: radial-gradient(ellipse at 64% 61%, #000, transparent 51%);
}
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, #1d1919 5%, #1d1919a8 48%, transparent 87%), radial-gradient(ellipse at 87% 100%, #be20263d, transparent 65%);
}
.hero-inner { padding-block: clamp(54px, 7vw, 104px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 750; }
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.hero .eyebrow { color: #f1d3ce; }
.hero h1 { margin: 12px 0 14px; font: 400 clamp(3.5rem, 8vw, 7.1rem)/.95 var(--serif); letter-spacing: -.065em; }
.hero h1 span { color: #ef7275; }
.hero-copy { max-width: 455px; margin: 0; color: #f0e3e0; font-size: clamp(1rem, 2vw, 1.2rem); }
.archive { padding-bottom: 72px; }
.archive-tools { padding-block: 23px; display: flex; gap: 16px 30px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.topics { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; font-size: .78rem; font-weight: 650; }
.pill:hover { border-color: var(--red); }
.pill[aria-current="page"] { background: var(--red); color: #fff; border-color: var(--red); }
.search-form { display: flex; gap: 6px; }
.reading .search-form { max-width: 360px; }
input, button, textarea { font: inherit; }
.search-form input[type="search"] { min-width: 0; flex: 1; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: .875rem; }
button, input[type="submit"] { border: 1px solid var(--red); border-radius: 7px; background: var(--red); color: #fff; font-weight: 650; padding: 8px 12px; cursor: pointer; }
.search-form button { font-size: .875rem; }
.feature { display: grid; grid-template-columns: 1fr 1.13fr; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; overflow: hidden; }
.feature-text-only { grid-template-columns: 1fr; }
.feature-body { padding: clamp(24px, 4vw, 51px); align-self: center; }
.feature .eyebrow { color: var(--red); }
.feature h2 { margin: 12px 0; font: 400 clamp(2rem, 4vw, 3.75rem)/1.03 var(--serif); letter-spacing: -.04em; }
.feature-image { position: relative; min-height: 300px; }
.feature-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.section-title { margin: 35px 0 19px; font: 400 clamp(2rem, 3.2vw, 3rem)/1.1 var(--serif); letter-spacing: -.04em; }
.archive-description { margin-bottom: 20px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; }
.card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 21px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.card-topic, .article-topics, .back-link { color: var(--red); font-size: .78rem; font-weight: 700; }
.card-body h2 { margin: 7px 0; font: 400 clamp(1.35rem, 2.15vw, 2rem)/1.12 var(--serif); letter-spacing: -.028em; }
.summary { margin: 0 0 16px; color: var(--muted); }
.meta { font-size: .8rem; color: var(--muted); font-weight: 550; }
.card-body .meta { margin-top: auto; }
.site-footer { padding-block: 34px; border-top: 1px solid var(--line); background: var(--paper); }
.site-footer p { margin: 12px 0 0; color: var(--muted); font-size: .875rem; }
.reading { max-width: 900px; padding-block: 52px 74px; }
.article-header, .entry-content { max-width: 720px; margin-inline: auto; }
.article-header h1, .reading > h1 { font: 400 clamp(2.4rem, 6vw, 4.8rem)/1.02 var(--serif); margin: 12px 0 18px; letter-spacing: -.055em; }
.article-header .article-topics { margin-top: 21px; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.byline a { font-weight: 650; }
.article-image { margin: 30px 0; }
.article-image img { width: 100%; border-radius: 10px; }
.entry-content { margin-top: 24px; font: 1.22rem/1.68 var(--serif); overflow-wrap: anywhere; }
.entry-content a { color: var(--red); text-decoration: underline; }
.entry-content iframe { max-width: 100%; }
.entry-content table, .entry-content pre { display: block; overflow: auto; }
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: block; clear: both; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.nav-links a, .nav-links .current { padding: 7px 13px; border: 1px solid var(--line); border-radius: 6px; }
.nav-links .current { background: var(--red); color: white; }
.comments { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; }
.comments textarea, .comments input:not([type="submit"]) { max-width: 100%; }
.empty { padding-block: 20px; color: var(--muted); }
.screen-reader-text, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { display: block; position: relative; padding: 12px; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 44px); }
  .search-form { width: min(100%, 330px); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner, .footer-inner { flex-wrap: wrap; gap: 12px; }
  .header-inner { min-height: 66px; }
  .brand img, .custom-logo { width: 165px; }
  .feature, .card-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-image { min-height: 0; aspect-ratio: 16 / 9; grid-row: 1; }
  .archive { padding-bottom: 44px; }
}

/* Journal controls */
.site-header { position: relative; z-index: 10; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.icon-button[hidden] { display: none; }
.icon-button:hover, .header-search[open] .search-toggle {
  border-color: var(--red);
  background: #fff6f5;
  color: var(--red);
}
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button .social-icon { stroke: none; fill: currentColor; }
.search-toggle { list-style: none; }
.search-toggle::-webkit-details-marker { display: none; }
.header-search .search-close-icon, .header-search[open] .search-open-icon { display: none; }
.header-search[open] .search-close-icon { display: block; }
.search-panel {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  background: var(--paper);
  border-block: 1px solid var(--line);
  box-shadow: 0 16px 28px #221d1c24;
  transform-origin: top;
  animation: search-reveal .22s ease-out both;
}
.search-panel-inner { padding-block: 26px 30px; }
.search-panel-title { margin: 0 0 10px; font: 400 clamp(1.5rem, 3vw, 2rem)/1.2 var(--serif); }
.search-panel .search-form { width: min(100%, 680px); gap: 8px; }
.search-panel .search-form input[type="search"], .search-panel .search-form button { min-height: 46px; font-size: 1rem; }
.search-panel .search-form button { padding-inline: clamp(14px, 3vw, 25px); }
@keyframes search-reveal {
  from { opacity: 0; transform: translateY(-12px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 -35px 0); }
}
@media (prefers-reduced-motion: reduce) {
  .search-panel { animation: none; }
  .icon-button { transition: none; }
}
.hero-background { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-with-image::before { content: none; }
.hero-with-image::after { background: linear-gradient(90deg, #171313eb, #1713139c 57%, #17131366); }
.hero-copy { white-space: pre-line; overflow-wrap: anywhere; }
.navigation.pagination .nav-links, .comments-pagination .nav-links { justify-content: center; }

.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.share-label, .share-status { font-size: .8rem; font-weight: 650; color: var(--muted); }
.share-label { margin-right: 4px; }
.share-url { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; }
.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.post-navigation .nav-links a { display: block; height: 100%; padding: 16px; background: var(--paper); border-radius: 9px; }
.adjacent-label { display: block; color: var(--red); font-size: .78rem; font-weight: 690; }
.adjacent-title { display: block; margin-top: 5px; font: 400 1.25rem/1.2 var(--serif); overflow-wrap: anywhere; }
.related-articles { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.related-articles .section-title { margin-top: 0; }
.related-articles .card-body h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
@media (max-width: 560px) {
  .header-actions { gap: 10px; }
  .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
  .post-navigation .nav-next { grid-column: 1; }
}

/* Newsletter: clean light treatment, compact spacing, CF7-safe layout */
.newsletter-section {
  padding-block: clamp(40px, 5vw, 64px);
  background: #f5f0eb;
  color: var(--ink);
  border-top: 1px solid #eee5df;
  border-bottom: 1px solid #e8dfd9;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.newsletter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--red);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.newsletter-eyebrow::before { content: ""; width: 23px; height: 2px; background: currentColor; }
.newsletter-intro h2 {
  margin: 0 0 10px;
  font: 400 clamp(2rem, 3.5vw, 3.15rem)/1.1 var(--serif);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.newsletter-intro > p:last-child {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}
.newsletter-form { min-width: 0; }
.newsletter-form .wpcf7,
.newsletter-form .wpcf7-form { width: 100%; max-width: 100%; margin: 0; }
.newsletter-form .wpcf7-form > p { margin: 0; }
.newsletter-form .mmj-subscribe-fields {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 8px;
  border: 1px solid #e6dcd6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(48, 32, 27, .045);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.newsletter-form .mmj-subscribe-fields:focus-within {
  border-color: #cc8385;
  box-shadow: 0 0 0 3px rgba(190, 32, 38, .09);
}
/* CF7 auto-paragraphing can wrap the email and button in <p> elements. */
.newsletter-form .mmj-subscribe-fields > p {
  display: contents;
  margin: 0;
}
.newsletter-form .mmj-subscribe-fields br { display: none; }
.newsletter-form .wpcf7-form-control-wrap {
  display: block;
  flex: 1 1 220px;
  min-width: 0;
}
.newsletter-form input[type="email"] {
  display: block;
  width: 100%;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 11px 15px;
  border: 1px solid #e9e3df;
  border-radius: 8px;
  outline: 0;
  background: #fcfaf8;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  line-height: 1.3;
}
.newsletter-form input[type="email"]::placeholder { color: #857c76; opacity: 1; }
.newsletter-form input[type="email"]:focus { border-color: #c76e72; background: #fff; }
.newsletter-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-height: 50px;
  margin: 0;
  padding: 11px 25px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: .91rem;
  font-weight: 750;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.newsletter-form input[type="submit"]:hover { background: #a71e23; transform: translateY(-1px); }
.newsletter-form input[type="submit"]:active { transform: translateY(0); }
.newsletter-form input[type="submit"]:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.newsletter-form input[type="submit"]:disabled { opacity: .65; cursor: wait; }
.newsletter-form .mmj-subscribe-consent {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}
.newsletter-form .mmj-subscribe-consent a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.newsletter-form .wpcf7-not-valid-tip { margin-top: 6px; color: #b5252b; font-size: .81rem; }
.newsletter-form .wpcf7-response-output {
  margin: 12px 0 0 !important;
  padding: 10px 13px !important;
  border-radius: 8px;
  color: var(--ink);
  font-size: .85rem;
  line-height: 1.5;
}
.newsletter-form .wpcf7-spinner { margin: 8px 0 0 8px; vertical-align: middle; }
@media (max-width: 800px) {
  .newsletter-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .newsletter-intro > p:last-child { max-width: 600px; }
}
@media (max-width: 520px) {
  .newsletter-section { padding-block: 36px; }
  .newsletter-form .mmj-subscribe-fields { flex-direction: column; gap: 9px; }
  .newsletter-form .wpcf7-form-control-wrap { flex: 0 0 auto; width: 100%; }
  .newsletter-form input[type="submit"] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .newsletter-form .mmj-subscribe-fields,
  .newsletter-form input[type="submit"] { transition: none; }
  .newsletter-form input[type="submit"]:hover { transform: none; }
}

/* Dark footer — distinct from the light newsletter section */
.site-footer {
  background: #24201f;
  color: #f8f3f0;
  border-top: 1px solid #3c3331;
  padding: 42px 0 22px;
}
.site-footer .footer-inner { align-items: center; gap: 30px; }
.site-footer .footer-logo-panel {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
}
.site-footer .footer-logo-panel img { width: min(236px, 100%); height: auto; }
.site-footer .footer-branding > p { color: #c6bab5; margin: 14px 0 0; }
.site-footer nav a { color: #f8f3f0; transition: color .2s ease; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: #ff969a; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 32px;
  padding-top: 18px;
}
.site-footer .footer-bottom p { margin: 0; color: #b9ada8; font-size: .82rem; }
@media (max-width: 560px) {
  .site-footer { padding: 32px 0 20px; }
  .site-footer .footer-inner { align-items: flex-start; gap: 22px; }
  .site-footer .footer-logo-panel img { width: 165px; }
  .site-footer .footer-bottom { margin-top: 26px; }
}

/* Restored linked post images and smoother search closing animation. */
.card-image a { display: block; overflow: hidden; }
.feature-image a { position: absolute; inset: 0; display: block; }
.card-image a img, .feature-image a img { transition: transform .3s ease; }
.card-image a:hover img, .feature-image a:hover img { transform: scale(1.035); }
.card-image a:focus-visible, .feature-image a:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.header-search.is-closing .search-panel { animation: search-hide .23s ease-in forwards; pointer-events: none; }
@keyframes search-hide {
  from { opacity: 1; transform: translateY(0); clip-path: inset(0 0 -35px 0); }
  to { opacity: 0; transform: translateY(-12px); clip-path: inset(0 0 100% 0); }
}
@media (prefers-reduced-motion: reduce) {
  .card-image a img, .feature-image a img { transition: none; }
  .header-search.is-closing .search-panel { animation: none; }
}

/* Media Manager footer logo and polished subscription surface — v1.3.1 */
.site-footer .footer-logo-link {
  display: inline-block;
  max-width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  line-height: 0;
}
.site-footer .footer-logo {
  display: block;
  width: clamp(230px, 30vw, 310px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.site-footer .footer-branding { min-width: 0; }
.site-footer .footer-branding > p { margin-top: 3px; }
.newsletter-form .mmj-subscribe-fields {
  background: #fdfbf9;
  border-color: #e1d7d0;
  box-shadow: 0 8px 24px rgba(47, 34, 30, .055);
}
.newsletter-form input[type="email"] {
  background: #fff;
  border-color: #e4dbd5;
}
.newsletter-form input[type="email"]:focus { background: #fff; }
@media (max-width: 560px) {
  .site-footer .footer-logo { width: min(275px, 100%); }
}

/* Full-height search and editorial discovery — v1.4.0 */
body.mmj-search-open { overflow: hidden; }
.header-search .search-panel {
  position: fixed;
  top: var(--mmj-search-top, 80px);
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f8f4f0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: 0 14px 26px rgba(34,29,28,.12);
  animation: search-reveal .24s ease-out both;
}
.header-search .search-panel-inner { padding-block: clamp(30px, 5vh, 66px) 64px; }
.search-panel-head { max-width: 820px; }
.search-eyebrow { margin: 0 0 10px; color: var(--red); font-weight: 800; letter-spacing: .19em; font-size: .73rem; }
.header-search .search-panel-title { font: 400 clamp(2rem, 4vw, 3.3rem)/1.12 var(--serif); margin: 0 0 12px; }
.search-panel-description { margin: 0 0 22px; color: var(--muted); }
.header-search .search-panel .search-form { width: 100%; max-width: 820px; gap: 10px; }
.header-search .search-panel .search-form input[type="search"] {
  min-height: 58px; border-radius: 10px; background: #fff;
  padding-inline: 20px; border-color: #ded5ce; font-size: 1rem;
}
.header-search .search-panel .search-form button { min-height: 58px; border-radius: 10px; padding-inline: 28px; }
.search-discover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 68px); margin-top: clamp(30px, 5vh, 56px); padding-top: 30px; border-top: 1px solid #e3d9d2; }
.search-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.search-discover h3 { font: 400 1.55rem/1.2 var(--serif); margin: 0; }
.search-section-heading > span { font-size: .76rem; color: var(--muted); }
.search-story-list { display: grid; gap: 10px; }
.search-story { display: flex; gap: 15px; align-items: center; padding: 11px; border: 1px solid #e9e1da; border-radius: 12px; background: rgba(255,255,255,.75); transition: border-color .2s ease, transform .2s ease; }
.search-story:hover { border-color: #d5acae; transform: translateY(-2px); }
.search-story-image { flex: 0 0 82px; width: 82px; height: 65px; border-radius: 7px; object-fit: cover; }
.search-story-copy { flex: 1; min-width: 0; }
.search-story-copy strong { display: block; font-size: .91rem; line-height: 1.38; font-weight: 680; }
.search-story-copy small { display: block; margin-top: 5px; font-size: .73rem; color: var(--muted); }
.search-story-arrow { flex: 0 0 auto; color: var(--red); font-size: 1.05rem; }
.search-trending-list { list-style: none; counter-reset: mmj-trending; margin: 0; padding: 0; }
.search-trending-list li { counter-increment: mmj-trending; border-bottom: 1px solid #e4dbd3; }
.search-trending-list li a { display: flex; gap: 14px; align-items: center; padding: 15px 0; }
.search-trending-list li a::before { content: counter(mmj-trending, decimal-leading-zero); color: var(--red); font: 400 1.3rem var(--serif); }
.search-trending-title { flex: 1; min-width: 0; font-size: .95rem; font-weight: 650; line-height: 1.4; }
.search-topics { padding-top: 24px; }
.search-topics h3 { font-size: 1.28rem; margin-bottom: 14px; }
.search-topic-links { display: flex; flex-wrap: wrap; gap: 9px; }
.search-topic-links a { border: 1px solid #e0d4cc; background: #fff; padding: 8px 13px; border-radius: 50px; font-size: .82rem; }
.search-topic-links a:hover { border-color: var(--red); color: var(--red); }
.search-empty { color: var(--muted); }
@media (max-width: 760px) {
  .search-discover { grid-template-columns: 1fr; gap: 34px; }
  .header-search .search-panel-inner { padding-block: 28px 45px; }
}
@media (max-width: 480px) {
  .header-search .search-panel .search-form { flex-direction: column; }
  .header-search .search-panel .search-form button { width: 100%; }
  .search-story-image { width: 70px; height: 60px; flex-basis: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .search-story { transition: none; }
  .search-story:hover { transform: none; }
}
