/* ===========================================================================
 * Opinion Hunt — client fixes (PDF 2026-07-24), layered over opinion-hunt-brand.
 * Matches the original React/Vite source design. Loaded after brand.css.
 * ======================================================================== */

/* (1) Remove the "Filtering by category" bar on every page. */
.oh-page .oh-filterbar { display: none !important; }

/* (9) Category pages: hide the featured hero mosaic — show only the
 *     category's own article list. */
body.category .oh-hero,
body.archive .oh-hero { display: none !important; }

/* (8) Legal / important pages: drop the "Last updated" line
 *     (the source design has no date). */
.oh-legal-updated { display: none !important; }

/* (2) Header search: the design keeps it compact (w-40 → lg:w-56 → xl:w-64),
 *     not the 250px-min wide pill. Narrow it on desktop. */
@media (min-width: 1025px) {
  .oh-header .oh-search {
    min-width: 0;
    width: 224px;
    flex: 0 0 auto;
    height: 50px;              /* match the nav pill bar height */
    padding-top: 0;
    padding-bottom: 0;
  }
}
@media (min-width: 1280px) {
  .oh-header .oh-search { width: 256px; }
}
/* Keep the search input compact so the pill lines up with the nav bar (#2). */
.oh-header .oh-search input {
  height: auto;
  min-height: 0;
  line-height: 1.4;
}

/* (4) Fashion section — restore the source editorial design:
 *     • "Explore …" is a plain mono text link, not a pill button.
 *     • Fashion cards use square images with alternating large corner radii. */

/* All section "Explore X →" links back to plain text. */
.oh-page .oh-explore {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-family: var(--oh-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--oh-secondary);
}
.oh-page .oh-explore:hover {
  background: transparent;
  color: var(--oh-primary);
  transform: none;
}

/* Fashion grid: square images, large alternating corners (per the design). */
@media (min-width: 721px) {
  .oh-grid-4 { gap: 40px 44px; }
}
.oh-grid-4 .oh-card .oh-thumb {
  height: auto;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(232, 226, 217, .5);
  border-radius: 3.5rem 3.5rem 0 3.5rem;      /* 1st, 3rd … (square bottom-right) */
  margin-bottom: 22px;
}
.oh-grid-4 .oh-card:nth-child(even) .oh-thumb {
  border-radius: 3.5rem 3.5rem 3.5rem 0;      /* 2nd, 4th … (square bottom-left) */
}
.oh-grid-4 .oh-card h3 { font-size: 22px; }
@media (max-width: 720px) {
  .oh-grid-4 .oh-card .oh-thumb { border-radius: 2.5rem 2.5rem 0 2.5rem; }
  .oh-grid-4 .oh-card:nth-child(even) .oh-thumb { border-radius: 2.5rem 2.5rem 2.5rem 0; }
}

/* (5) Sidebar newsletter success → small inline gold confirmation, form stays. */
.oh-newsletter .ff-message-success {
  background: transparent !important;
  border: 0 !important;
  padding: 10px 0 0 !important;
}
.oh-ff-inline-success {
  font-family: var(--oh-mono);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--oh-primary);
}

/* (6) Contact form success → the design's "Thank you, Friend!" card. */
.oh-contact-card .ff-message-success:has(.oh-ty) {
  background: transparent;
  border: 0;
  padding: 0;
}
.oh-ty { text-align: center; padding: 28px 8px; }
.oh-ty-badge {
  display: inline-flex;
  width: 64px; height: 64px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(228, 203, 152, .4);
  border: 1px solid rgba(228, 203, 152, .6);
  color: var(--oh-primary);
  font-size: 26px;
  margin-bottom: 18px;
}
.oh-ty h3 {
  margin: 0 0 10px;
  font-family: var(--oh-serif);
  font-weight: 700;
  font-size: 30px;
  color: var(--oh-secondary);
}
.oh-ty p {
  margin: 0 auto 22px;
  max-width: 400px;
  font-family: var(--oh-sans);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(43, 42, 39, .7);
}
.oh-ty-foot { border-top: 1px solid var(--oh-muted); padding-top: 22px; }
.oh-ty-again {
  font-family: var(--oh-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--oh-secondary);
  border-bottom: 1px solid var(--oh-primary);
  padding-bottom: 2px;
  display: inline-block;
}
.oh-ty-again:hover { color: var(--oh-primary); }

/* (3) Branded search results (rendered by oh-templates/oh-search.php).
 *     Mirrors the design's "Discovery Engine" 2-column results grid. */
.oh-searchhead {
  border-bottom: 1px solid var(--oh-border);
  padding-bottom: 16px;
  margin-bottom: 28px;
}
.oh-searchhead .oh-eyebrow { margin-bottom: 6px; }
.oh-searchhead h1 {
  margin: 0;
  font-family: var(--oh-serif);
  font-weight: 700;
  font-size: 38px;
  color: var(--oh-secondary);
  letter-spacing: -.01em;
}
.oh-searchhead h1 em { color: var(--oh-primary); font-style: italic; }
.oh-searchcount {
  margin: 8px 0 0;
  font-family: var(--oh-mono);
  font-size: 12px;
  color: rgba(43, 42, 39, .6);
}
.oh-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.oh-result-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid rgba(232, 226, 217, .85);
  border-radius: 24px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.oh-result-card:hover { box-shadow: 0 8px 26px rgba(27, 36, 33, .08); }
.oh-result-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--oh-muted);
}
.oh-result-media .oh-media,
.oh-result-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.oh-result-card:hover .oh-result-media img { transform: scale(1.03); }
.oh-result-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(252, 250, 247, .9);
  border: 1px solid rgba(232, 226, 217, .55);
  border-radius: 999px;
  padding: 4px 14px;
  font-family: var(--oh-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oh-secondary);
}
.oh-result-body { padding: 24px; }
.oh-result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--oh-mono);
  font-size: 12px;
  color: rgba(43, 42, 39, .6);
}
.oh-result-body h3 {
  margin: 0 0 12px;
  font-family: var(--oh-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  color: var(--oh-secondary);
}
.oh-result-body h3 a { color: inherit; transition: color .2s; }
.oh-result-body h3 a:hover { color: var(--oh-primary); }
.oh-result-body p {
  margin: 0;
  font-family: var(--oh-sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(43, 42, 39, .75);
}
.oh-result-foot { padding: 0 24px 24px; }
.oh-result-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--oh-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--oh-secondary);
  border-bottom: 1px solid var(--oh-primary);
  padding-bottom: 2px;
}
.oh-result-more:hover { color: var(--oh-primary); }
.oh-noresults {
  text-align: center;
  padding: 64px 24px;
  background: rgba(244, 239, 234, .4);
  border: 1px dashed var(--oh-border);
  border-radius: 24px;
}
.oh-noresults p {
  margin: 0 0 18px;
  font-family: var(--oh-sans);
  font-size: 15px;
  color: rgba(43, 42, 39, .75);
}
.oh-noresults a {
  display: inline-block;
  background: var(--oh-secondary);
  color: var(--oh-light);
  border-radius: 999px;
  padding: 11px 24px;
  font-family: var(--oh-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.oh-noresults a:hover { background: var(--oh-primary); color: var(--oh-secondary); }
@media (max-width: 900px) {
  .oh-results-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .oh-searchhead h1 { font-size: 29px; }
}

/* (10) Branded 404 (rendered by oh-templates/oh-404.php). */
.oh-404 {
  max-width: 640px;
  margin: 40px auto;
  padding: 40px 0 24px;
  text-align: center;
}
.oh-404 .oh-eyebrow { margin-bottom: 12px; }
.oh-404 h1 {
  margin: 0 0 14px;
  font-family: var(--oh-serif);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.12;
  color: var(--oh-secondary);
  letter-spacing: -.01em;
}
.oh-404 > p {
  margin: 0 auto 28px;
  max-width: 460px;
  font-family: var(--oh-sans);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(43, 42, 39, .7);
}
.oh-404-search {
  display: flex;
  gap: 8px;
  max-width: 430px;
  margin: 0 auto 20px;
}
.oh-404-search input {
  flex: 1;
  background: var(--oh-muted);
  border: 1px solid var(--oh-border);
  border-radius: 999px;
  padding: 13px 20px;
  font-family: var(--oh-mono);
  font-size: 13px;
  color: var(--oh-dark);
  outline: none;
}
.oh-404-search input:focus { border-color: var(--oh-primary); }
.oh-404-search button {
  border: 0;
  border-radius: 999px;
  background: var(--oh-secondary);
  color: var(--oh-light);
  padding: 0 24px;
  font-family: var(--oh-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.oh-404-search button:hover { background: var(--oh-primary); color: var(--oh-secondary); }
.oh-404-home {
  font-family: var(--oh-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--oh-primary);
}
.oh-404-home:hover { color: var(--oh-secondary); }

/* (7) Newsletter popup — restores the source design's subscribe modal,
 *     opened from the footer "Join Newsletter" link. */
.ohf-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ohf-modal[hidden] { display: none; }
.ohf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 36, 33, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ohf-modal-card {
  position: relative;
  width: 100%;
  max-width: 448px;
  background: var(--oh-light);
  border: 1px solid var(--oh-muted);
  border-radius: 24px;
  padding: 40px 36px 30px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(27, 36, 33, .35);
  font-family: var(--oh-sans);
  animation: ohf-pop .25s ease;
}
@keyframes ohf-pop {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.ohf-modal-x {
  position: absolute;
  top: 14px; right: 16px;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(43, 42, 39, .4);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all .2s;
}
.ohf-modal-x:hover { color: var(--oh-primary); background: var(--oh-muted); }
.ohf-modal-badge {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(228, 203, 152, .4);
  border: 1px solid rgba(228, 203, 152, .6);
  color: var(--oh-primary);
  margin-bottom: 18px;
}
.ohf-modal-badge-check { font-size: 24px; width: 56px; height: 56px; }
.ohf-modal-card h3 {
  margin: 0 0 10px;
  font-family: var(--oh-serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--oh-secondary);
}
.ohf-modal-card > p {
  margin: 0 auto 22px;
  max-width: 340px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(43, 42, 39, .75);
}
.ohf-modal-fine {
  margin: 14px 0 0 !important;
  max-width: none !important;
  font-family: var(--oh-mono);
  font-size: 10px !important;
  color: rgba(43, 42, 39, .4) !important;
}
.ohf-modal-success { padding: 14px 4px 6px; }
.ohf-modal-success h3 {
  margin: 0 0 10px;
  font-family: var(--oh-serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--oh-secondary);
}
.ohf-modal-success p {
  margin: 0 auto;
  max-width: 320px;
  font-family: var(--oh-sans);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(43, 42, 39, .7);
}
/* Fluent Forms inside the popup → centred pill input + dark rounded button. */
.ohf-modal-card .fluentform .ff-el-input--label { display: none; }
.ohf-modal-card .fluentform .ff-el-group { margin-bottom: 12px; }
.ohf-modal-card .fluentform input[type=email],
.ohf-modal-card .fluentform input[type=text] {
  width: 100%;
  background: #fff;
  border: 1px solid var(--oh-muted);
  border-radius: 999px;
  padding: 13px 20px;
  font-family: var(--oh-sans);
  font-size: 14px;
  color: var(--oh-dark);
  text-align: center;
  outline: none;
  transition: border-color .2s;
}
.ohf-modal-card .fluentform input:focus { border-color: var(--oh-primary); }
.ohf-modal-card .fluentform ::placeholder { color: rgba(43, 42, 39, .4); }
.ohf-modal-card .fluentform .ff-btn-submit {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--oh-secondary);
  color: var(--oh-light);
  padding: 14px;
  font-family: var(--oh-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.ohf-modal-card .fluentform .ff-btn-submit:hover { background: var(--oh-primary); color: var(--oh-secondary); }
.ohf-modal-card .fluentform .error-text,
.ohf-modal-card .fluentform .text-danger {
  font-family: var(--oh-mono);
  font-size: 11px;
  color: #b3261e;
  margin-top: 6px;
}
body.ohf-modal-open { overflow: hidden; }
