/*
Theme Name: ClearMed Journal
Theme URI: https://clearmedjournal.com/
Author: ClearMed Journal
Description: Premium medical expert directory and editorial transparency theme for ClearMed Journal.
Version: 2.3.0
Text Domain: clearmedjournal
Requires at least: 6.2
Requires PHP: 7.4
*/

:root {
  --cmj-bg: #f5f8fc;
  --cmj-surface: #ffffff;
  --cmj-surface-soft: #f8fbff;
  --cmj-text: #122037;
  --cmj-heading: #0d1b2f;
  --cmj-muted: #637189;
  --cmj-line: #dce6f1;
  --cmj-line-strong: #cad9e8;
  --cmj-primary: #135fcd;
  --cmj-primary-dark: #0b49a3;
  --cmj-primary-soft: #eaf3ff;
  --cmj-green: #087f5b;
  --cmj-green-dark: #056748;
  --cmj-green-soft: #e9f8f2;
  --cmj-navy: #0b192c;
  --cmj-navy-2: #102640;
  --cmj-shadow-xs: 0 5px 18px rgba(24, 55, 94, .05);
  --cmj-shadow-sm: 0 10px 28px rgba(24, 55, 94, .07);
  --cmj-shadow: 0 22px 55px rgba(22, 52, 91, .11);
  --cmj-radius-sm: 12px;
  --cmj-radius: 18px;
  --cmj-radius-lg: 26px;
  --cmj-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cmj-text);
  background: var(--cmj-bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.admin-bar .cmj-site-header { top: 32px; }
a { color: var(--cmj-primary); text-decoration: none; }
a:hover { color: var(--cmj-primary-dark); }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { color: #fff; background: var(--cmj-primary); }

.cmj-container {
  width: min(calc(100% - 40px), var(--cmj-container));
  margin-inline: auto;
}

/* Single global header */
.cmj-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(220, 230, 241, .9);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 24px rgba(19, 53, 89, .04);
}
.cmj-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cmj-header-brand { flex: 0 0 auto; }
.cmj-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cmj-heading);
  font-weight: 900;
  letter-spacing: -.03em;
}
.cmj-brand:hover { color: var(--cmj-heading); }
.cmj-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #0b57bd, #2b82ee);
  box-shadow: 0 9px 22px rgba(11, 94, 215, .22);
}
.cmj-brand-mark svg { width: 21px; height: 21px; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 52px; width: auto; }
.cmj-header-navigation { display: flex; align-items: center; gap: 14px; }
.cmj-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cmj-nav a {
  display: block;
  padding: 10px 11px;
  border-radius: 10px;
  color: #35465d;
  font-size: .92rem;
  font-weight: 740;
  transition: color .18s ease, background .18s ease;
}
.cmj-nav a:hover,
.cmj-nav .current-menu-item > a,
.cmj-nav .current_page_item > a,
.cmj-nav .current-menu-ancestor > a { color: var(--cmj-primary); background: var(--cmj-primary-soft); }
.cmj-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 11px;
  color: #fff;
  background: var(--cmj-primary);
  font-size: .88rem;
  font-weight: 820;
  box-shadow: 0 8px 20px rgba(19, 95, 205, .18);
}
.cmj-header-cta:hover { color: #fff; background: var(--cmj-primary-dark); }
.cmj-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid var(--cmj-line);
  border-radius: 11px;
  color: var(--cmj-text);
  background: #fff;
}
.cmj-menu-line { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 99px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.cmj-menu-toggle[aria-expanded="true"] .cmj-menu-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.cmj-menu-toggle[aria-expanded="true"] .cmj-menu-line:nth-child(2) { opacity: 0; }
.cmj-menu-toggle[aria-expanded="true"] .cmj-menu-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.cmj-site-main { min-height: 66vh; }
.cmj-section-wrap { padding: 82px 0; }
.cmj-section-wrap.tight { padding: 58px 0 76px; }
.cmj-section-wrap.white { background: #fff; }
.cmj-section-wrap.soft { background: var(--cmj-surface-soft); }
.cmj-kicker, .cmj-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--cmj-primary);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.cmj-kicker::before { content: ""; width: 23px; height: 2px; border-radius: 99px; background: currentColor; }
.cmj-kicker.green { color: var(--cmj-green); }
.cmj-section-title { max-width: 790px; margin-bottom: 30px; }
.cmj-section-title.center { margin-inline: auto; text-align: center; }
.cmj-section-title h2,
.cmj-page-head h1,
.cmj-hero-home h1,
.cmj-profile-page h1,
.cmj-profile-page h2,
.cmj-profile-page h3 {
  color: var(--cmj-heading);
  font-family: inherit;
  line-height: 1.15;
  letter-spacing: -.037em;
}
.cmj-section-title h2 { margin: 0 0 11px; font-size: clamp(1.9rem, 3vw, 2.65rem); }
.cmj-section-title p { margin: 0; color: var(--cmj-muted); font-size: 1.01rem; }
.cmj-section-heading-row { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 30px; }
.cmj-section-heading-row .cmj-section-title { margin-bottom: 0; }
.cmj-text-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 830; }

/* Buttons */
.cmj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  padding: 10px 16px;
  border: 1px solid var(--cmj-line-strong);
  border-radius: 11px;
  color: var(--cmj-text);
  background: #fff;
  box-shadow: var(--cmj-shadow-xs);
  font-weight: 810;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.cmj-btn:hover { transform: translateY(-2px); color: var(--cmj-primary-dark); border-color: #b8cee6; box-shadow: var(--cmj-shadow-sm); }
.cmj-btn.primary { border-color: var(--cmj-primary); color: #fff; background: var(--cmj-primary); }
.cmj-btn.primary:hover { color: #fff; background: var(--cmj-primary-dark); }
.cmj-btn.large { min-height: 52px; padding: 12px 19px; }

/* Homepage hero */
.cmj-home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 120px) 0 78px;
  background:
    radial-gradient(circle at 5% 0%, rgba(19,95,205,.15), transparent 34rem),
    radial-gradient(circle at 94% 15%, rgba(8,127,91,.10), transparent 28rem),
    linear-gradient(135deg,#ffffff 0%,#f7fbff 56%,#eef6ff 100%);
}
.cmj-home-hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -260px;
  bottom: -320px;
  border: 1px solid rgba(19,95,205,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(19,95,205,.03), 0 0 0 120px rgba(19,95,205,.02);
}
.cmj-home-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(350px,.92fr); gap: clamp(44px, 7vw, 86px); align-items: center; }
.cmj-hero-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #315373; font-size: .82rem; font-weight: 820; }
.cmj-hero-label-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cmj-green); box-shadow: 0 0 0 5px rgba(8,127,91,.10); }
.cmj-hero-home h1 { max-width: 790px; margin: 0 0 22px; font-size: clamp(3rem, 6.5vw, 5.35rem); }
.cmj-hero-home h1 span { color: var(--cmj-primary); }
.cmj-lead-home { max-width: 735px; margin: 0; color: #40516a; font-size: clamp(1.06rem, 2vw, 1.23rem); line-height: 1.72; }
.cmj-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.cmj-hero-microtrust { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 23px; color: #53677e; font-size: .84rem; font-weight: 720; }
.cmj-hero-microtrust span { display: inline-flex; align-items: center; gap: 6px; }

.cmj-hero-proof { padding: 27px; border: 1px solid rgba(202,217,232,.95); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: var(--cmj-shadow); }
.cmj-proof-head { display: flex; gap: 14px; align-items: center; padding-bottom: 19px; border-bottom: 1px solid var(--cmj-line); }
.cmj-proof-symbol { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 52px; border-radius: 16px; color: #fff; background: linear-gradient(145deg,var(--cmj-primary),#2b82ee); font-size: .9rem; font-weight: 900; box-shadow: 0 9px 22px rgba(19,95,205,.18); }
.cmj-proof-overline { display: block; margin-bottom: 1px; color: var(--cmj-primary); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.cmj-proof-head strong { display: block; line-height: 1.35; }
.cmj-proof-list { display: grid; gap: 4px; margin-top: 15px; }
.cmj-proof-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 12px 0; }
.cmj-proof-item + .cmj-proof-item { border-top: 1px dashed #e4ebf3; }
.cmj-proof-check { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--cmj-primary); background: var(--cmj-primary-soft); font-size: .68rem; font-weight: 900; }
.cmj-proof-item b { display: block; margin-bottom: 1px; font-size: .94rem; }
.cmj-proof-item span:not(.cmj-proof-check) { color: var(--cmj-muted); font-size: .85rem; line-height: 1.55; }

.cmj-metric-strip { position: relative; z-index: 3; border-top: 1px solid var(--cmj-line); border-bottom: 1px solid var(--cmj-line); background: #fff; }
.cmj-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.cmj-metric { padding: 24px 22px; text-align: center; }
.cmj-metric + .cmj-metric { border-left: 1px solid var(--cmj-line); }
.cmj-metric strong { display: block; margin-bottom: 3px; color: var(--cmj-heading); font-size: 1.42rem; letter-spacing: -.035em; }
.cmj-metric span { color: var(--cmj-muted); font-size: .82rem; font-weight: 700; }

/* Expert cards */
.cmj-expert-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.cmj-expert-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 100%; border: 1px solid var(--cmj-line); border-radius: 22px; background: #fff; box-shadow: var(--cmj-shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cmj-expert-card:hover { transform: translateY(-5px); border-color: #c7daee; box-shadow: 0 19px 44px rgba(24,55,94,.12); }
.cmj-expert-photo-wrap { position: relative; display: block; aspect-ratio: 16/10.5; overflow: hidden; background: linear-gradient(145deg,#e8f2ff,#f7fbff); }
.cmj-expert-photo { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 18%; transition: transform .35s ease; }
.cmj-expert-card:hover .cmj-expert-photo { transform: scale(1.025); }
.cmj-photo-fallback-card { width: 100%; height: 100%; display: grid; place-items: center; color: var(--cmj-primary); background: linear-gradient(145deg,#eaf3ff,#f8fbff); font-size: 2.8rem; font-weight: 900; letter-spacing: -.06em; }
.cmj-card-verified { position: absolute; right: 15px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 3px solid #fff; border-radius: 999px; color: #fff; background: var(--cmj-green); font-size: .72rem; font-weight: 850; box-shadow: 0 7px 18px rgba(8,127,91,.18); }
.cmj-expert-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.cmj-expert-body h3 { margin: 0 0 7px; color: var(--cmj-heading); font-size: 1.24rem; line-height: 1.25; letter-spacing: -.025em; }
.cmj-expert-body h3 a { color: inherit; }
.cmj-expert-role { min-height: 45px; margin: 0 0 12px; color: var(--cmj-primary); font-size: .86rem; font-weight: 760; line-height: 1.45; }
.cmj-expert-excerpt { display: -webkit-box; overflow: hidden; margin: 0 0 17px; color: var(--cmj-muted); font-size: .9rem; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.cmj-expert-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.cmj-mini-badge { display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid #d6e5f6; border-radius: 999px; color: #31597f; background: #f6faff; font-size: .72rem; font-weight: 760; }
.cmj-card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--cmj-primary); font-size: .9rem; font-weight: 850; }

/* Specialty cloud */
.cmj-specialty-section { border-top: 1px solid #edf2f7; border-bottom: 1px solid #edf2f7; }
.cmj-specialty-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1040px; margin: 0 auto; }
.cmj-specialty-cloud a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid var(--cmj-line); border-radius: 999px; color: #314861; background: #fff; font-size: .86rem; font-weight: 740; box-shadow: var(--cmj-shadow-xs); }
.cmj-specialty-cloud a:hover { border-color: #bdd4ed; color: var(--cmj-primary); transform: translateY(-1px); }
.cmj-specialty-cloud small { min-width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: var(--cmj-primary); background: var(--cmj-primary-soft); font-size: .69rem; font-weight: 850; }

/* Process */
.cmj-process-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.cmj-process-card { position: relative; padding: 25px 23px; border: 1px solid var(--cmj-line); border-radius: 20px; background: #fff; box-shadow: var(--cmj-shadow-xs); }
.cmj-process-card > span { display: inline-flex; margin-bottom: 22px; color: #aac2de; font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.cmj-process-card h3 { margin: 0 0 8px; color: var(--cmj-heading); font-size: 1.05rem; letter-spacing: -.02em; }
.cmj-process-card p { margin: 0; color: var(--cmj-muted); font-size: .9rem; }
.cmj-process-card::after { content: ""; position: absolute; left: 23px; right: 23px; top: 58px; height: 1px; background: linear-gradient(90deg,var(--cmj-primary-soft),transparent); }

/* Homepage network */
.cmj-network-home-section { color: #e8f0f8; background: linear-gradient(135deg,var(--cmj-navy),var(--cmj-navy-2)); }
.cmj-network-home-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: 70px; align-items: center; }
.cmj-network-home-grid .cmj-kicker { color: #79b6ff; }
.cmj-network-home-grid h2 { max-width: 720px; margin: 0 0 16px; color: #fff; font-size: clamp(1.9rem,3.2vw,2.8rem); line-height: 1.18; letter-spacing: -.035em; }
.cmj-network-home-grid > div > p { max-width: 710px; margin: 0 0 24px; color: #b7c8d9; }
.cmj-network-home-grid .cmj-btn { border-color: rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.08); box-shadow: none; }
.cmj-network-home-grid .cmj-btn:hover { color: #fff; background: rgba(255,255,255,.13); }
.cmj-network-demo { display: grid; gap: 14px; }
.cmj-network-demo-card { display: grid; grid-template-columns: 50px 1fr; gap: 15px; padding: 20px; border: 1px solid rgba(125,183,255,.22); border-radius: 18px; background: rgba(255,255,255,.07); box-shadow: 0 16px 38px rgba(0,0,0,.10); }
.cmj-network-demo-card.green { border-color: rgba(80,203,155,.24); }
.cmj-network-demo-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #9dcbff; background: rgba(125,183,255,.10); font-size: 1.1rem; font-weight: 900; }
.cmj-network-demo-card.green .cmj-network-demo-icon { color: #78d8b4; background: rgba(80,203,155,.10); }
.cmj-network-demo-card small { display: block; margin-bottom: 2px; color: #7ebaff; font-size: .68rem; font-weight: 850; letter-spacing: .1em; }
.cmj-network-demo-card.green small { color: #78d8b4; }
.cmj-network-demo-card strong { display: block; margin-bottom: 3px; color: #fff; }
.cmj-network-demo-card p { margin: 0; color: #aebfd2; font-size: .86rem; }

/* Editorial band */
.cmj-editorial-band { overflow: hidden; border: 1px solid #c7e8dc; border-radius: 26px; background: linear-gradient(135deg,#f5fcf9,#e9f8f2); box-shadow: var(--cmj-shadow-sm); }
.cmj-editorial-band-inner { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(290px,.7fr); gap: 34px; padding: clamp(30px,5vw,50px); align-items: center; }
.cmj-editorial-band h2 { margin: 0 0 12px; color: var(--cmj-heading); font-size: clamp(1.9rem,3vw,2.6rem); line-height: 1.18; letter-spacing: -.035em; }
.cmj-editorial-band p { max-width: 710px; margin: 0; color: #396755; }
.cmj-editorial-links { display: grid; gap: 9px; }
.cmj-editorial-links a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #c6e6da; border-radius: 11px; color: #225d49; background: rgba(255,255,255,.84); font-size: .9rem; font-weight: 790; }
.cmj-editorial-links a:hover { border-color: #9fcfbd; background: #fff; }

/* Standard pages */
.cmj-page-head { padding: 68px 0 40px; border-bottom: 1px solid var(--cmj-line); background: linear-gradient(135deg,#fff,#f5f9fe); }
.cmj-page-head-inner { max-width: 900px; }
.cmj-page-head h1 { margin: 0 0 13px; font-size: clamp(2.35rem,5vw,4.15rem); }
.cmj-page-head p { max-width: 820px; margin: 0; color: var(--cmj-muted); font-size: 1.07rem; }
.cmj-page-content { padding: 54px 0 86px; }
.cmj-content-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 34px; align-items: start; }
.cmj-content-card { padding: clamp(26px,4vw,46px); border: 1px solid var(--cmj-line); border-radius: 22px; background: #fff; box-shadow: var(--cmj-shadow-sm); }
.cmj-content-card > *:first-child { margin-top: 0; }
.cmj-content-card h2 { margin: 36px 0 11px; color: var(--cmj-heading); font-size: 1.7rem; line-height: 1.25; letter-spacing: -.025em; }
.cmj-content-card h3 { margin: 27px 0 8px; color: var(--cmj-heading); font-size: 1.18rem; }
.cmj-content-card p, .cmj-content-card li { color: #40516a; }
.cmj-content-card li + li { margin-top: 7px; }
.cmj-content-card a { font-weight: 700; }
.cmj-content-card blockquote { margin: 24px 0; padding: 16px 18px; border-left: 4px solid var(--cmj-primary); border-radius: 0 12px 12px 0; color: #284a70; background: var(--cmj-primary-soft); }
.cmj-page-aside { position: sticky; top: 105px; padding: 20px; border: 1px solid var(--cmj-line); border-radius: 18px; background: #fff; box-shadow: var(--cmj-shadow-xs); }
.cmj-page-aside strong { display: block; margin-bottom: 9px; color: var(--cmj-heading); }
.cmj-page-aside p { margin: 0 0 13px; color: var(--cmj-muted); font-size: .86rem; }
.cmj-page-aside a { display: block; padding: 8px 0; border-top: 1px solid #edf2f7; font-size: .84rem; font-weight: 740; }

/* Directory */
.cmj-directory-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.cmj-search-box { flex: 1 1 320px; max-width: 520px; position: relative; }
.cmj-search-box::before { content: "⌕"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #8395a9; font-size: 1.2rem; }
.cmj-search-box input { width: 100%; min-height: 49px; padding: 10px 15px 10px 42px; border: 1px solid var(--cmj-line); border-radius: 12px; color: var(--cmj-text); outline: none; background: #fff; box-shadow: var(--cmj-shadow-xs); }
.cmj-search-box input:focus { border-color: #95bde9; box-shadow: 0 0 0 4px rgba(19,95,205,.08); }
.cmj-directory-note { color: var(--cmj-muted); font-size: .85rem; font-weight: 700; }
.cmj-no-results { display: none; margin-top: 20px; padding: 30px; border: 1px dashed #c7d8ec; border-radius: 18px; color: var(--cmj-muted); text-align: center; background: #fff; }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.nav-links .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--cmj-line); border-radius: 10px; color: #38516c; background: #fff; font-weight: 760; }
.nav-links .current { color: #fff; border-color: var(--cmj-primary); background: var(--cmj-primary); }

/* Expert profile - no second header/footer */
.cmj-profile-page { padding-bottom: 0; }
.cmj-profile-hero-wrap { padding: 26px 0 44px; border-bottom: 1px solid var(--cmj-line); background: linear-gradient(135deg,#fff 0%,#f8fbff 55%,#eef6ff 100%); }
.cmj-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 20px; color: #7b8ca0; font-size: .8rem; }
.cmj-breadcrumbs a { color: #526980; font-weight: 700; }
.cmj-profile-hero-card { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 38px; align-items: center; padding: clamp(28px,4vw,46px); border: 1px solid #d5e2ef; border-radius: 28px; background: rgba(255,255,255,.93); box-shadow: var(--cmj-shadow); }
.cmj-profile-photo-column { display: grid; gap: 14px; }
.cmj-profile-photo-box { position: relative; width: 205px; aspect-ratio: 1; margin-inline: auto; padding: 7px; border-radius: 32px; background: linear-gradient(145deg,#d9eaff,#fff 55%,#def6ed); box-shadow: 0 18px 40px rgba(19,95,205,.14); }
.cmj-profile-photo-fallback { position: absolute; inset: 12px; display: grid; place-items: center; border-radius: 24px; color: var(--cmj-primary); background: linear-gradient(145deg,#e8f2ff,#f7fbff); font-size: 3rem; font-weight: 900; letter-spacing: -.06em; }
.cmj-profile-photo { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 18%; border: 5px solid #fff; border-radius: 26px; background: var(--cmj-primary-soft); }
.cmj-profile-verified { position: absolute; z-index: 2; right: -7px; bottom: 16px; width: 48px; height: 48px; display: grid; place-items: center; border: 5px solid #fff; border-radius: 50%; color: #fff; background: var(--cmj-green); box-shadow: 0 10px 24px rgba(8,127,91,.22); font-weight: 900; }
.cmj-profile-date-stamp { display: grid; grid-template-columns: 1fr; gap: 7px; width: 205px; margin-inline: auto; }
.cmj-profile-date-stamp > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--cmj-line); border-radius: 10px; background: rgba(255,255,255,.78); font-size: .74rem; }
.cmj-profile-date-stamp strong { color: #324961; font-size: .74rem; }
.cmj-profile-date-label { color: var(--cmj-muted); font-weight: 720; }
.cmj-profile-page h1 { margin: 0 0 9px; font-size: clamp(2.2rem,5vw,4rem); }
.cmj-profile-subtitle { margin: 0 0 16px; color: var(--cmj-primary); font-size: clamp(1rem,2vw,1.16rem); font-weight: 760; }
.cmj-profile-lead { max-width: 820px; margin: 0; color: #40516a; font-size: 1rem; }
.cmj-badges, .cmj-actions, .cmj-network-links { display: flex; flex-wrap: wrap; gap: 9px; }
.cmj-badges { margin-top: 20px; }
.cmj-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #cfe0f7; border-radius: 999px; color: #174d8b; background: var(--cmj-primary-soft); font-size: .82rem; font-weight: 790; }
.cmj-badge.green { border-color: #c5e8db; color: #076549; background: var(--cmj-green-soft); }
.cmj-actions { margin-top: 14px; }
.cmj-social-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.cmj-social-link { display: inline-flex; align-items: center; gap: 8px; min-height: 43px; padding: 8px 12px; border: 1px solid #cbdcec; border-radius: 11px; color: #254a71; background: #fff; font-size: .82rem; font-weight: 800; box-shadow: 0 4px 14px rgba(24,55,94,.04); }
.cmj-social-link:hover { transform: translateY(-1px); border-color: #9fc0e4; color: var(--cmj-primary-dark); }
.cmj-social-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--cmj-primary); font-size: .72rem; font-weight: 900; line-height: 1; }
.cmj-social-facebook .cmj-social-icon { background: #315fa8; }
.cmj-social-twitter .cmj-social-icon { background: #101820; }

.cmj-profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 30px; align-items: start; padding-top: 42px; padding-bottom: 76px; }
.cmj-profile-main { min-width: 0; }
.cmj-profile-content { display: grid; gap: 20px; }
.cmj-profile-content .cmj-section,
.cmj-network-section,
.cmj-review-section { padding: clamp(26px,4vw,38px); border: 1px solid var(--cmj-line); border-radius: 22px; background: #fff; box-shadow: var(--cmj-shadow-xs); }
.cmj-profile-content .cmj-section + .cmj-section { margin-top: 0; }
.cmj-profile-page .cmj-section-head { max-width: 830px; margin-bottom: 21px; }
.cmj-profile-page .cmj-section-head h2 { margin: 0 0 11px; font-size: clamp(1.5rem,3vw,2.15rem); }
.cmj-profile-page .cmj-section-head p,
.cmj-profile-page .cmj-card p { margin: 0; color: var(--cmj-muted); }
.cmj-profile-page .cmj-grid { display: grid; gap: 17px; }
.cmj-profile-page .cmj-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cmj-profile-page .cmj-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cmj-profile-page .cmj-card { padding: 22px; border: 1px solid var(--cmj-line); border-radius: 17px; background: var(--cmj-surface-soft); box-shadow: none; }
.cmj-profile-page .cmj-card h3 { margin: 0 0 7px; font-size: 1.05rem; }
.cmj-profile-page .cmj-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 13px; color: var(--cmj-primary); background: var(--cmj-primary-soft); font-size: 1.1rem; font-weight: 900; }
.cmj-profile-page .cmj-icon svg { width: 20px; height: 20px; }
.cmj-profile-page .cmj-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cmj-profile-page .cmj-list li { display: flex; gap: 10px; align-items: flex-start; color: #33435a; }
.cmj-profile-page .cmj-tick { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; margin-top: 2px; border-radius: 50%; color: var(--cmj-green); background: var(--cmj-green-soft); font-weight: 900; }
.cmj-profile-page .cmj-timeline { position: relative; display: grid; gap: 15px; padding-left: 7px; }
.cmj-profile-page .cmj-timeline::before { content: ""; position: absolute; left: 20px; top: 18px; bottom: 18px; width: 2px; background: #d8e5f4; }
.cmj-profile-page .cmj-time-item { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 13px; align-items: start; }
.cmj-profile-page .cmj-time-dot { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border: 5px solid #fff; border-radius: 50%; color: #fff; background: var(--cmj-primary); box-shadow: 0 0 0 1px #cfe0f7; font-size: .61rem; font-weight: 900; }
.cmj-profile-page .cmj-time-content { padding: 14px 16px; border: 1px solid var(--cmj-line); border-radius: 13px; background: #f8fbff; }
.cmj-profile-page .cmj-time-content h3 { margin: 0 0 4px; }
.cmj-profile-page .cmj-time-content p { margin: 0; color: var(--cmj-muted); font-size: .89rem; }
.cmj-profile-page .cmj-sources { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.cmj-profile-page .cmj-source { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 12px 13px; border: 1px solid var(--cmj-line); border-radius: 12px; color: var(--cmj-text); background: #f8fbff; font-size: .89rem; font-weight: 760; }
.cmj-profile-page .cmj-source:hover { border-color: #bed5ee; color: var(--cmj-primary-dark); background: #fff; }

.cmj-network-section, .cmj-review-section { margin-top: 20px; }
.cmj-network-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.cmj-network-card { padding: 21px; border: 1px solid #cfe0f7; border-radius: 17px; background: #f8fbff; }
.cmj-network-card.green { border-color: #c8eadf; background: #f5fcf9; }
.cmj-network-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 11px; }
.cmj-network-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 12px; color: var(--cmj-primary); background: var(--cmj-primary-soft); font-weight: 900; }
.cmj-network-card.green .cmj-network-icon { color: var(--cmj-green); background: var(--cmj-green-soft); }
.cmj-network-label { display: block; color: var(--cmj-primary); font-size: .68rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.cmj-network-card.green .cmj-network-label { color: var(--cmj-green); }
.cmj-network-card h3 { margin: 2px 0 0; font-size: 1.18rem; }
.cmj-network-card > p { margin: 0 0 14px; color: var(--cmj-muted); font-size: .88rem; }
.cmj-network-sites { display: grid; gap: 10px; }
.cmj-network-site { padding: 13px; border: 1px solid #d9e6f3; border-radius: 13px; background: #fff; }
.cmj-network-card.green .cmj-network-site { border-color: #d5ebe3; }
.cmj-network-site > strong { display: block; margin-bottom: 9px; color: var(--cmj-heading); font-size: .92rem; }
.cmj-network-site-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cmj-network-link { display: inline-flex; align-items: center; max-width: 100%; padding: 7px 10px; border: 1px solid #c3d8f2; border-radius: 999px; color: #124d91; background: #f8fbff; font-size: .78rem; font-weight: 800; overflow-wrap: anywhere; }
.cmj-network-link.profile { color: #fff; border-color: var(--cmj-primary); background: var(--cmj-primary); }
.cmj-network-card.green .cmj-network-link { border-color: #c8eadf; color: #17654d; background: #f5fcf9; }
.cmj-network-card.green .cmj-network-link.profile { color: #fff; border-color: var(--cmj-green); background: var(--cmj-green); }

.cmj-editorial { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; align-items: start; padding: 19px; border: 1px solid #c8eadf; border-radius: 16px; background: var(--cmj-green-soft); }
.cmj-editorial-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--cmj-green); font-weight: 900; }
.cmj-editorial h3 { margin: 0 0 5px; font-size: 1.05rem; }
.cmj-editorial p { margin: 0; color: #245f4d; }
.cmj-review-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 11px; color: #245f4d; font-size: .82rem; font-weight: 750; }
.cmj-trust { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-top: 16px; }
.cmj-trust-item { padding: 16px; border: 1px solid var(--cmj-line); border-radius: 14px; background: #f8fbff; }
.cmj-trust-number { display: inline-flex; margin-bottom: 9px; color: #a4b7cb; font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.cmj-trust-item strong { display: block; margin-bottom: 4px; font-size: .9rem; }
.cmj-trust-item p { margin: 0; color: var(--cmj-muted); font-size: .82rem; line-height: 1.55; }
.cmj-note { display: grid; grid-template-columns: 29px 1fr; gap: 12px; align-items: start; margin-top: 17px; padding: 16px 17px; border-left: 4px solid var(--cmj-primary); border-radius: 0 13px 13px 0; color: #24476f; background: var(--cmj-primary-soft); }
.cmj-note-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--cmj-primary); background: #fff; font-size: .8rem; font-weight: 900; }
.cmj-note p { margin: 0; font-size: .9rem; }

.cmj-profile-aside { position: sticky; top: 104px; }
.cmj-aside-card { padding: 21px; border: 1px solid var(--cmj-line); border-radius: 19px; background: #fff; box-shadow: var(--cmj-shadow-xs); }
.cmj-aside-kicker { color: var(--cmj-primary); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.cmj-aside-card h2 { margin: 4px 0 16px; font-size: 1.25rem; }
.cmj-aside-block { padding: 14px 0; border-top: 1px solid #edf2f7; }
.cmj-aside-block > strong { display: block; margin-bottom: 8px; color: #31445b; font-size: .79rem; }
.cmj-aside-block p { margin: 0; color: var(--cmj-muted); font-size: .84rem; }
.cmj-aside-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cmj-aside-tags span { padding: 5px 8px; border: 1px solid #d7e5f5; border-radius: 999px; color: #376189; background: #f7faff; font-size: .69rem; font-weight: 740; }
.cmj-status-dot { width: 8px; height: 8px; display: inline-block; margin-right: 6px; border-radius: 50%; background: var(--cmj-green); }
.cmj-aside-link { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 11px 12px; border-radius: 10px; color: var(--cmj-primary); background: var(--cmj-primary-soft); font-size: .8rem; font-weight: 800; }

.cmj-related-experts { padding: 68px 0 84px; border-top: 1px solid var(--cmj-line); background: #fff; }

/* Contact form */
.cmj-contact-form { display: grid; gap: 14px; max-width: 760px; }
.cmj-field { display: grid; gap: 6px; }
.cmj-field label { color: #34465e; font-size: .88rem; font-weight: 760; }
.cmj-field input, .cmj-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--cmj-line); border-radius: 11px; color: var(--cmj-text); background: #fff; outline: none; }
.cmj-field input:focus, .cmj-field textarea:focus { border-color: #96bde9; box-shadow: 0 0 0 4px rgba(19,95,205,.08); }
.cmj-field textarea { min-height: 160px; resize: vertical; }
.cmj-form-notice { margin-bottom: 16px; padding: 13px 15px; border-radius: 11px; }
.cmj-form-notice.success { color: #17654d; background: var(--cmj-green-soft); }
.cmj-form-notice.error { color: #873737; background: #fff0f0; }
.cmj-hp { position: absolute !important; left: -9999px !important; }

/* One global footer */
.cmj-site-footer { position: relative; overflow: hidden; color: #d8e2ed; background: linear-gradient(135deg,#091726,#10263e); }
.cmj-footer-accent { height: 4px; background: linear-gradient(90deg,var(--cmj-primary),#58a3ff,var(--cmj-green)); }
.cmj-footer-main { display: grid; grid-template-columns: minmax(290px,1.35fr) repeat(3,minmax(155px,.75fr)); gap: 38px; padding: 62px 0 40px; }
.cmj-footer-brand .cmj-brand { color: #fff; }
.cmj-footer-brand .cmj-brand:hover { color: #fff; }
.cmj-footer-brand p { max-width: 420px; margin: 16px 0 0; color: #aebed0; font-size: .91rem; }
.cmj-footer-trust { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 18px; color: #8fc3ae; font-size: .76rem; font-weight: 760; }
.cmj-footer-col h3 { margin: 0 0 14px; color: #fff; font-size: .88rem; letter-spacing: .03em; }
.cmj-footer-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cmj-footer-col a { color: #b8c7d9; font-size: .87rem; }
.cmj-footer-col a:hover { color: #fff; }
.cmj-footer-notice { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
.cmj-footer-notice-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #a9d0ff; background: rgba(117,181,255,.11); font-size: .77rem; font-weight: 900; }
.cmj-footer-notice p { margin: 0; color: #98abc0; font-size: .8rem; line-height: 1.65; }
.cmj-footer-notice strong { color: #cdd9e5; }
.cmj-footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 20px 0 25px; color: #8296ad; font-size: .78rem; }

@media (max-width: 1080px) {
  .cmj-header-cta { display: none; }
  .cmj-home-hero-grid { grid-template-columns: 1fr; }
  .cmj-hero-proof { max-width: 780px; }
  .cmj-expert-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cmj-process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cmj-network-home-grid { grid-template-columns: 1fr; gap: 38px; }
  .cmj-network-demo { max-width: 760px; }
  .cmj-footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cmj-profile-layout { grid-template-columns: minmax(0,1fr) 250px; }
  .cmj-profile-page .cmj-grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cmj-trust { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 860px) {
  body.admin-bar .cmj-site-header { top: 46px; }
  .cmj-header-inner { min-height: 70px; }
  .cmj-menu-toggle { display: block; margin-left: auto; }
  .cmj-header-navigation { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 12px 20px 18px; border-bottom: 1px solid var(--cmj-line); background: #fff; box-shadow: 0 16px 32px rgba(24,55,94,.09); }
  .cmj-header-navigation.is-open { display: block; }
  .cmj-nav ul { display: grid; gap: 4px; }
  .cmj-nav a { padding: 11px 12px; }
  .cmj-content-layout { grid-template-columns: 1fr; }
  .cmj-page-aside { display: none; }
  .cmj-profile-hero-card { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .cmj-profile-photo-box { width: 184px; }
  .cmj-badges, .cmj-actions, .cmj-social-links { justify-content: center; }
  .cmj-profile-layout { grid-template-columns: 1fr; }
  .cmj-profile-aside { position: static; order: -1; }
  .cmj-aside-card { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
  .cmj-aside-card > .cmj-aside-kicker, .cmj-aside-card > h2, .cmj-aside-link { grid-column: 1/-1; }
  .cmj-profile-page .cmj-grid.two, .cmj-profile-page .cmj-grid.three, .cmj-network-grid { grid-template-columns: 1fr; }
  .cmj-editorial { grid-template-columns: 1fr; text-align: center; }
  .cmj-editorial-icon { margin: auto; }
  .cmj-review-meta { justify-content: center; }
  .cmj-editorial-band-inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .cmj-container { width: min(calc(100% - 24px), var(--cmj-container)); }
  .cmj-section-wrap { padding: 64px 0; }
  .cmj-home-hero { padding: 62px 0 60px; }
  .cmj-hero-home h1 { font-size: clamp(2.55rem,12vw,3.7rem); }
  .cmj-hero-actions .cmj-btn { width: 100%; }
  .cmj-hero-proof { padding: 21px; border-radius: 22px; }
  .cmj-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cmj-metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--cmj-line); }
  .cmj-metric:nth-child(4) { border-top: 1px solid var(--cmj-line); }
  .cmj-expert-grid, .cmj-process-grid, .cmj-footer-main { grid-template-columns: 1fr; }
  .cmj-section-heading-row { align-items: flex-start; flex-direction: column; }
  .cmj-expert-role { min-height: 0; }
  .cmj-page-head { padding: 52px 0 32px; }
  .cmj-profile-hero-wrap { padding-top: 18px; }
  .cmj-profile-hero-card { padding: 24px 18px; border-radius: 21px; }
  .cmj-profile-page h1 { font-size: 2.25rem; }
  .cmj-profile-content .cmj-section, .cmj-network-section, .cmj-review-section { padding: 23px 17px; border-radius: 18px; }
  .cmj-profile-page .cmj-card { padding: 18px; }
  .cmj-profile-page .cmj-time-item { grid-template-columns: 40px minmax(0,1fr); gap: 10px; }
  .cmj-profile-page .cmj-time-dot { width: 38px; height: 38px; font-size: .57rem; }
  .cmj-profile-page .cmj-timeline::before { left: 18px; }
  .cmj-profile-page .cmj-btn { width: 100%; }
  .cmj-aside-card { grid-template-columns: 1fr; }
  .cmj-aside-card > * { grid-column: 1 !important; }
  .cmj-trust { grid-template-columns: 1fr; }
  .cmj-footer-main { gap: 28px; padding-top: 48px; }
  .cmj-footer-bottom { flex-direction: column; }
}
