/*
Theme Name: Malbell Research
Theme URI: https://malbell.com/
Description: A reversible child theme that expands Malbell into a multi-category product research and buying-guide site.
Author: Malbell
Template: beauty-makeups-editorial
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: malbell-research
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --bm-bg: #f7f7f2;
  --bm-surface: #edf1eb;
  --bm-text: #17221f;
  --bm-muted: #5f6c67;
  --bm-accent: #0b6b5d;
  --bm-rose: #9fd7c1;
  --bm-border: #d8dfda;
  --bm-white: #fff;
  --bm-serif: Georgia, "Times New Roman", serif;
  --bm-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --bm-container: 1240px;
  --bm-reading: 780px;
  --bm-shadow: 0 22px 60px rgba(20, 40, 34, .1);
  --malbell-ink: #10211d;
  --malbell-ink-2: #18332d;
  --malbell-lime: #b6f14a;
  --malbell-mint: #dff2e7;
  --malbell-sand: #eee8dc;
}

body {
  background: var(--bm-bg);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(11, 107, 93, .35);
  outline-offset: 3px;
}

.bm-container {
  width: min(calc(100% - 48px), var(--bm-container));
}

.bm-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 242, .95);
  border-color: rgba(23, 34, 31, .12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.admin-bar .bm-site-header { top: 32px; }

.bm-header__inner {
  min-height: 88px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 30px;
}

.malbell-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
}

.malbell-brand::before { display: none; }

.malbell-brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #0d1e19;
  background: var(--malbell-lime);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(16, 33, 29, .1);
}

.malbell-brand__copy { display: block; }
.bm-brand__name { font: 800 20px/1 var(--bm-sans); letter-spacing: .16em; }
.bm-brand__tagline { margin-top: 6px; letter-spacing: .095em; }
.bm-primary-nav ul { gap: clamp(14px, 1.65vw, 25px); }
.bm-primary-nav a { font-size: 13px; }
.bm-search-toggle,
.bm-menu-toggle { border-color: rgba(23, 34, 31, .16); }

.bm-button,
.bm-search-panel .search-submit {
  min-height: 50px;
  border-radius: 999px;
  background: var(--bm-accent);
  border-color: var(--bm-accent);
  letter-spacing: .055em;
}

.bm-button:hover,
.bm-button:focus-visible,
.bm-search-panel .search-submit:hover,
.bm-search-panel .search-submit:focus-visible {
  color: #fff;
  background: #07584d;
  border-color: #07584d;
}

.malbell-button { padding-inline: 25px; }
.malbell-eyebrow,
.malbell-panel-label {
  margin: 0 0 20px;
  color: var(--bm-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.malbell-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.malbell-text-link,
.malbell-inline-link {
  color: var(--bm-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .045em;
  text-decoration: none;
}

.malbell-text-link span,
.malbell-inline-link span,
.malbell-card-link span { transition: transform .2s ease; }
.malbell-text-link:hover span,
.malbell-inline-link:hover span,
.malbell-category-card:hover .malbell-card-link span { display: inline-block; transform: translateX(4px); }

/* Homepage hero */
.malbell-home-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  color: #f6fbf8;
  background:
    radial-gradient(circle at 12% 15%, rgba(182, 241, 74, .13), transparent 26%),
    radial-gradient(circle at 87% 80%, rgba(76, 169, 139, .2), transparent 30%),
    var(--malbell-ink);
}

.malbell-home-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .11;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(115deg, black, transparent 70%);
}

.malbell-home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .65fr);
  gap: clamp(52px, 8vw, 110px);
  align-items: center;
}

.malbell-home-hero .malbell-eyebrow { color: var(--malbell-lime); }
.malbell-home-hero h1 {
  max-width: 830px;
  margin: 0 0 25px;
  font: 500 clamp(50px, 6.3vw, 86px)/.98 var(--bm-serif);
  letter-spacing: -.05em;
}

.malbell-home-hero__lead {
  max-width: 760px;
  margin: 0 0 34px;
  color: #c5d1cc;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.7;
}

.malbell-home-hero .malbell-button {
  color: var(--malbell-ink);
  background: var(--malbell-lime);
  border-color: var(--malbell-lime);
}
.malbell-home-hero .malbell-button:hover { color: var(--malbell-ink); background: #c6f773; border-color: #c6f773; }
.malbell-home-hero .malbell-text-link { color: #f2f7f4; }

.malbell-home-hero__panel {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .2);
  backdrop-filter: blur(10px);
}

.malbell-home-hero__panel .malbell-panel-label { color: #b8c9c2; }
.malbell-home-hero__panel ol { margin: 0; padding: 0; list-style: none; }
.malbell-home-hero__panel li { display: grid; grid-template-columns: 42px 1fr; gap: 15px; padding: 21px 0; border-top: 1px solid rgba(255,255,255,.1); }
.malbell-home-hero__panel li:first-child { border-top: 0; }
.malbell-home-hero__panel li > span { color: var(--malbell-lime); font: italic 16px/1.4 var(--bm-serif); }
.malbell-home-hero__panel strong { display: block; margin-bottom: 7px; font-size: 15px; }
.malbell-home-hero__panel small { display: block; color: #aab9b3; font-size: 13px; line-height: 1.55; }

/* Homepage categories */
.malbell-section-intro { max-width: 440px; margin: 0; color: var(--bm-muted); font-size: 15px; }
.malbell-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.malbell-category-card {
  position: relative;
  min-height: 390px;
  padding: clamp(30px, 4vw, 48px);
  overflow: hidden;
  color: var(--bm-text);
  border: 1px solid var(--bm-border);
  border-radius: 22px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.malbell-category-card:hover { color: var(--bm-text); transform: translateY(-4px); box-shadow: var(--bm-shadow); border-color: rgba(11,107,93,.35); }
.malbell-category-card--power { background: linear-gradient(135deg, #e2f2e9, #f7faf5); }
.malbell-category-card--beauty { background: linear-gradient(135deg, #f1e8df, #faf8f3); }
.malbell-category-card__icon { display: grid; width: 68px; height: 68px; margin-bottom: 70px; place-items: center; border-radius: 18px; color: var(--bm-accent); background: rgba(255,255,255,.7); }
.malbell-category-card__icon svg { width: 36px; height: 36px; }
.malbell-category-card__number { position: absolute; top: 42px; right: 44px; color: var(--bm-muted); font: italic 16px/1 var(--bm-serif); }
.malbell-category-card h3 { max-width: 480px; margin: 0 0 14px; font: 500 clamp(31px, 4vw, 48px)/1.05 var(--bm-serif); letter-spacing: -.035em; }
.malbell-category-card p { max-width: 520px; margin: 0 0 28px; color: var(--bm-muted); font-size: 15px; }
.malbell-card-link { color: var(--bm-accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Featured content */
.malbell-featured-section { padding-top: 80px; background: #fff; }
.malbell-featured-guide {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  min-height: 470px;
  margin-bottom: 58px;
  overflow: hidden;
  border-radius: 24px;
  color: #f5faf7;
  background: var(--malbell-ink);
  box-shadow: var(--bm-shadow);
}
.malbell-featured-guide__visual {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  color: var(--malbell-lime);
  background:
    radial-gradient(circle at 50% 50%, rgba(182,241,74,.2), transparent 36%),
    linear-gradient(145deg, #173b32, #0c1916);
}
.malbell-featured-guide__visual::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
}
.malbell-featured-guide__visual > span { position: absolute; top: 37px; left: 40px; color: #b7c8c1; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.malbell-featured-guide__visual svg { position: relative; z-index: 1; width: min(80%, 410px); }
.malbell-featured-guide__copy { align-self: center; padding: clamp(38px, 6vw, 72px); }
.malbell-featured-guide__copy .malbell-eyebrow { color: var(--malbell-lime); }
.malbell-featured-guide__copy h3 { margin: 0 0 12px; font: 500 clamp(34px, 4vw, 54px)/1.05 var(--bm-serif); letter-spacing: -.04em; }
.malbell-featured-guide__copy h3 a { text-decoration: none; }
.malbell-featured-guide__copy h3 a:hover { color: var(--malbell-lime); }
.malbell-featured-guide__copy > p:not(.malbell-eyebrow):not(.malbell-published) { color: #bdcac5; font-size: 16px; }
.malbell-published { margin: 0 0 22px; color: #91a69d; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.malbell-featured-guide .malbell-button { margin-top: 14px; color: var(--malbell-ink); background: var(--malbell-lime); border-color: var(--malbell-lime); }
.malbell-featured-posts { padding-top: 12px; }

.malbell-article-card { min-width: 0; }
.malbell-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.malbell-card-meta time { color: var(--bm-muted); font-size: 11px; white-space: nowrap; }
.malbell-card-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #0c4339; background: linear-gradient(135deg, #d5ecdf, #eef3ed); font: 800 42px/1 var(--bm-sans); }
.bm-card__media { border-radius: 14px; }
.bm-card__title { font-family: var(--bm-serif); }
.bm-card__read { color: var(--bm-accent); }

/* Editorial standards and disclosure */
.malbell-standards { color: #eef7f2; background: var(--malbell-ink-2); }
.malbell-standards .bm-kicker { color: var(--malbell-lime); }
.malbell-standards__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(50px, 8vw, 110px); }
.malbell-standards__items { display: grid; gap: 0; }
.malbell-standards__items > div { padding: 25px 0; border-top: 1px solid rgba(255,255,255,.12); }
.malbell-standards__items > div:first-child { border-top: 0; padding-top: 0; }
.malbell-standards__items strong { display: block; margin-bottom: 8px; color: #fff; font-size: 17px; }
.malbell-standards__items p { margin: 0; color: #b4c4bd; font-size: 15px; }
.malbell-disclosure-band { padding: 48px 0; background: var(--malbell-lime); color: var(--malbell-ink); }
.malbell-disclosure-band__inner { display: grid; grid-template-columns: 1.05fr 1.15fr auto; gap: 36px; align-items: center; }
.malbell-disclosure-band .bm-kicker { color: #315f2b; }
.malbell-disclosure-band h2 { margin: 4px 0 0; font: 500 30px/1.1 var(--bm-serif); letter-spacing: -.025em; }
.malbell-disclosure-band p { margin: 0; font-size: 14px; }
.malbell-disclosure-band .malbell-text-link { color: var(--malbell-ink); white-space: nowrap; }

/* Category hubs */
.malbell-hub-hero { padding: 84px 0 72px; border-bottom: 1px solid var(--bm-border); }
.malbell-hub-hero--power { background: linear-gradient(135deg, #dcefe5 0%, #f6f8f3 65%); }
.malbell-hub-hero--beauty { background: linear-gradient(135deg, #efe4dc 0%, #f8f7f2 65%); }
.malbell-hub-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .55fr); gap: clamp(55px, 8vw, 100px); align-items: end; }
.malbell-hub-hero h1 { max-width: 930px; margin: 0 0 25px; font: 500 clamp(50px, 7vw, 82px)/.98 var(--bm-serif); letter-spacing: -.05em; }
.malbell-hub-hero h1 + p { max-width: 790px; margin: 0; color: var(--bm-muted); font-size: 19px; line-height: 1.7; }
.malbell-hub-hero__note { padding: 28px; border-left: 4px solid var(--bm-accent); background: rgba(255,255,255,.58); }
.malbell-hub-hero__note strong { display: block; margin-bottom: 9px; font-size: 15px; }
.malbell-hub-hero__note p { margin: 0; color: var(--bm-muted); font-size: 14px; }
.malbell-featured-guide--hub { margin-bottom: 0; }
.malbell-checklist-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(50px, 8vw, 100px); }
.malbell-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--bm-border); }
.malbell-checklist li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 23px 18px 23px 0; border-bottom: 1px solid var(--bm-border); }
.malbell-checklist li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--bm-border); }
.malbell-checklist span { color: var(--bm-accent); font: italic 15px/1.7 var(--bm-serif); }
.malbell-checklist p { margin: 0; font-size: 15px; font-weight: 650; }
.malbell-topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.malbell-topic-card { min-height: 315px; padding: 28px; color: var(--bm-text); border: 1px solid var(--bm-border); border-radius: 16px; text-decoration: none; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.malbell-topic-card:hover { color: var(--bm-text); transform: translateY(-3px); box-shadow: var(--bm-shadow); }
.malbell-topic-card > span { color: var(--bm-accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.malbell-topic-card h3 { margin: 62px 0 14px; font: 500 30px/1.08 var(--bm-serif); }
.malbell-topic-card p { min-height: 86px; margin: 0 0 25px; color: var(--bm-muted); font-size: 13px; }
.malbell-topic-card strong { color: var(--bm-accent); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }

/* Trust pages */
.malbell-trust-page { padding-top: 82px; }
.malbell-trust-page__header { margin-bottom: 58px; }
.malbell-trust-page__header p { max-width: 760px; margin: 28px 0 0; color: var(--bm-muted); font-size: 19px; line-height: 1.7; }
.malbell-prose { font-size: 18px; line-height: 1.78; }
.malbell-prose h2 { margin: 2.2em 0 .7em; font: 600 clamp(27px, 3vw, 34px)/1.2 var(--bm-serif); letter-spacing: -.025em; }
.malbell-prose h2:first-child { margin-top: 0; }
.malbell-prose p { margin: 0 0 1.45em; }
.malbell-status-card { margin-bottom: 58px; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--bm-border); border-radius: 20px; background: var(--bm-surface); }
.malbell-status-card > span { color: var(--bm-accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.malbell-status-card h2 { margin-top: 20px; }

/* Articles */
.bm-entry-header { padding-top: 72px; }
.bm-entry-title { max-width: 960px; font-size: clamp(38px, 5vw, 58px); }
.bm-entry-meta { flex-wrap: wrap; }
.malbell-article-disclosure {
  display: flex;
  width: min(calc(100% - 40px), var(--bm-reading));
  margin: 0 auto 38px;
  padding: 18px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--bm-border);
  border-radius: 12px;
  background: var(--bm-surface);
}
.malbell-article-disclosure strong { display: block; margin-bottom: 3px; color: var(--bm-accent); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.malbell-article-disclosure p { margin: 0; color: var(--bm-muted); font-size: 12px; line-height: 1.55; }
.malbell-article-disclosure a { color: var(--bm-accent); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.bm-entry-content h2,
.bm-entry-content h3 { font-family: var(--bm-serif) !important; }

/* Footer */
.malbell-site-footer { color: #edf5f1; background: #0d1d19; }
.malbell-site-footer .bm-footer-title { color: var(--malbell-lime); }
.malbell-site-footer .bm-footer-copy { color: #b3c1bb; }
.malbell-footer-disclosure { max-width: 480px; margin: 18px 0 0; color: #91a39b; font-size: 12px; line-height: 1.6; }
.bm-footer-bottom { display: flex; justify-content: space-between; gap: 18px; }
.bm-footer-bottom a { color: #c9d7d1; text-decoration: none; }

/* 404 */
.malbell-404 { min-height: 62vh; display: flex; align-items: center; }
.malbell-404__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: center; }
.malbell-404__grid > div:first-child > p { max-width: 700px; color: var(--bm-muted); font-size: 18px; }
.malbell-404__search { padding: 32px; border: 1px solid var(--bm-border); border-radius: 18px; background: var(--bm-surface); }
.malbell-404__search h2 { margin: 0 0 18px; font: 500 28px/1.2 var(--bm-serif); }
.malbell-404__search .search-form { display: grid; gap: 12px; }
.malbell-404__search .search-field { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--bm-border); }

@media (max-width: 1100px) {
  .admin-bar .bm-site-header { top: 32px; }
  .bm-primary-nav { background: rgba(247, 247, 242, .99); }
  .malbell-home-hero__grid,
  .malbell-hub-hero__grid,
  .malbell-standards__grid,
  .malbell-checklist-layout { grid-template-columns: 1fr; }
  .malbell-home-hero__panel { max-width: 760px; }
  .malbell-disclosure-band__inner { grid-template-columns: 1fr 1fr; }
  .malbell-disclosure-band__inner > a { grid-column: 1 / -1; }
  .malbell-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .bm-site-header { top: 46px; }
}

@media (max-width: 700px) {
  .bm-container { width: min(calc(100% - 30px), var(--bm-container)); }
  .bm-header__inner { min-height: 74px; }
  .malbell-brand__mark { width: 36px; height: 36px; border-radius: 10px; }
  .bm-brand__name { font-size: 17px; }
  .malbell-home-hero { padding: 66px 0; }
  .malbell-home-hero__grid { gap: 42px; }
  .malbell-home-hero h1 { font-size: clamp(44px, 13vw, 61px); }
  .malbell-home-hero__panel { padding: 25px; }
  .malbell-category-grid,
  .malbell-featured-guide,
  .malbell-disclosure-band__inner,
  .malbell-404__grid { grid-template-columns: 1fr; }
  .malbell-category-card { min-height: 360px; padding: 30px; }
  .malbell-category-card__icon { margin-bottom: 58px; }
  .malbell-category-card__number { top: 35px; right: 32px; }
  .malbell-featured-guide__visual { min-height: 320px; }
  .malbell-featured-guide__copy { padding: 34px 26px 40px; }
  .malbell-featured-guide__copy h3 { font-size: 36px; }
  .malbell-disclosure-band__inner { gap: 18px; }
  .malbell-hub-hero { padding: 65px 0 55px; }
  .malbell-hub-hero h1 { font-size: clamp(45px, 13vw, 61px); }
  .malbell-hub-hero h1 + p { font-size: 17px; }
  .malbell-checklist { grid-template-columns: 1fr; }
  .malbell-checklist li:nth-child(even) { padding-left: 0; border-left: 0; }
  .malbell-topic-grid { grid-template-columns: 1fr; }
  .malbell-topic-card { min-height: 270px; }
  .malbell-topic-card h3 { margin-top: 45px; }
  .malbell-topic-card p { min-height: 0; }
  .malbell-trust-page { padding-top: 58px; }
  .malbell-trust-page__header p { font-size: 17px; }
  .malbell-article-disclosure { align-items: flex-start; flex-direction: column; }
  .bm-footer-bottom { align-items: flex-start; flex-direction: column; }
  .malbell-404__grid { gap: 38px; }
}

@media (max-width: 390px) {
  .malbell-brand { gap: 9px; }
  .malbell-brand__mark { width: 33px; height: 33px; }
  .bm-brand__name { font-size: 16px; letter-spacing: .11em; }
  .malbell-home-hero h1,
  .malbell-hub-hero h1 { font-size: 43px; }
  .malbell-home-hero__panel li { grid-template-columns: 34px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .malbell-category-card,
  .malbell-topic-card,
  .malbell-text-link span,
  .malbell-inline-link span,
  .malbell-card-link span { transition: none !important; }
}

