:root {
  --navy: #1c2838; --gold: #ffac1c; --gold-dark: #d98a00; --green: #b6e49a;
  --paper: #fbf8f2; --card: #ffffff; --ink: #1c2838; --muted: #5f6672; --line: #e4ded2;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Montserrat, system-ui, sans-serif; }
h1, h2, h3 { font-family: "Crimson Text", Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 2.3rem; } h2 { font-size: 1.6rem; margin-top: 1.4em; } h3 { font-size: 1.3rem; }
a { color: var(--navy); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; padding-top: 32px; padding-bottom: 48px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.btn { display: inline-block; background: var(--gold); color: var(--navy); border: 0; border-radius: 6px; padding: .7em 1.3em; font: 600 .95rem Montserrat, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--gold-dark); }
.btn:disabled { background: var(--line); color: var(--muted); cursor: default; }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-ghost { background: transparent; border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; margin-top: 24px; font: inherit; }
.flash { background: #fff4dc; border-left: 4px solid var(--gold); padding: .7em 1em; margin: 16px 0; }
.error { color: #9b2c2c; }

.top { background: var(--navy); color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font: 600 1.5rem "Crimson Text", serif; line-height: 1.1; }
.brand img { height: 76px; width: auto; }
.brand small { font: 500 .7rem Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.top nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top nav a:not(.btn) { color: #fff; text-decoration: none; font-size: .9rem; }
.top nav a:not(.btn):hover { color: var(--gold); }

.hero { background: var(--navy); color: #fff; padding: 36px 0 28px; }
.switch { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px; margin-top: 8px; flex-wrap: wrap; }
.switch a { color: #fff; text-decoration: none; padding: .45em 1.1em; border-radius: 999px; font-size: .9rem; }
.switch a.on { background: var(--gold); color: var(--navy); font-weight: 600; }

.search { display: grid; grid-template-columns: 270px 1fr; gap: 32px; padding-top: 28px; padding-bottom: 56px; align-items: start; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; gap: 12px; position: sticky; top: 16px; }
label { display: grid; gap: 4px; font-size: .85rem; font-weight: 500; }
input, select, textarea { font: 400 .95rem Montserrat, sans-serif; padding: .55em .65em; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
label.check input { width: auto; }
.actions { display: flex; align-items: center; gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(28,40,56,.1); }
.card-body { padding: 14px 16px 16px; }
.card-body p { margin: 0 0 4px; }
.card-featured { border: 2px solid var(--gold); }
.meta { color: var(--muted); font-size: .85rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tags span { background: #eef7e7; border: 1px solid var(--green); color: #2f5a1e; font-size: .75rem; padding: .15em .6em; border-radius: 999px; }

.profile { padding-top: 24px; padding-bottom: 56px; max-width: 900px; }
.back { font-size: .9rem; }
.profile-head { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin: 18px 0 8px; align-items: start; }
.profile-head .ph { border-radius: 10px; }
.profile-head p { margin: 0 0 6px; }
.contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 10px; }
.about { white-space: pre-line; }
.details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 20px; margin-top: 22px; }
.details .row { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.details .row:last-child { border-bottom: 0; }
.details dt { font-weight: 600; font-size: .9rem; } .details dd { margin: 0; }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 22px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.tier h2 { margin-top: 0; }
.tier-paid { border: 2px solid var(--gold); }
.price { font: 600 1.5rem "Crimson Text", serif; margin: 0 0 8px; }
.tier ul { padding-left: 1.1em; margin: 0 0 18px; }

.stack { display: grid; gap: 14px; max-width: 420px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.form-grid .full, .filters .full { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 0; }
legend { font-size: .85rem; font-weight: 500; padding: 0 4px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.status { font-weight: 600; }
.status-pending { color: var(--gold-dark); } .status-hidden { color: #9b2c2c; } .status-live { color: #2f7a1e; }

table.admin { width: 100%; border-collapse: collapse; background: var(--card); font-size: .88rem; margin-bottom: 18px; }
table.admin th, table.admin td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.acts form { display: flex; gap: 4px; }
.acts input { width: 180px; padding: .35em .5em; font-size: .8rem; }
.inline { display: flex; gap: 8px; max-width: 420px; margin-bottom: 12px; }

.foot { background: var(--navy); color: #cfd5de; padding: 40px 0 22px; font-size: .88rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--gold); text-decoration: underline; }
.foot .btn { color: var(--navy); }
.foot .btn:hover { color: var(--navy); text-decoration: none; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { height: 100px; width: auto; flex: none; }
.foot-brand p { margin: 0 0 8px; }
.foot-name { font: 600 1.35rem "Crimson Text", Georgia, serif; color: #fff; line-height: 1.1; }
.foot-tag { color: var(--gold); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.foot-col h4 { margin: 0 0 10px; font: 600 .74rem Montserrat, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-col li { overflow-wrap: anywhere; }
.foot-person { color: #fff; font-weight: 600; }
.foot-social { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); color: #9aa3b0; font-size: .8rem; }
.foot-bottom p { margin: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

@media (max-width: 820px) {
  .search { grid-template-columns: 1fr; }
  .filters { position: static; grid-template-columns: 1fr 1fr; }
  .profile-head, .tiers, .form-grid { grid-template-columns: 1fr; }
  .profile-head .ph { max-width: 260px; }
  .details .row { grid-template-columns: 1fr; gap: 2px; }
  table.admin { display: block; overflow-x: auto; }
  h1 { font-size: 1.8rem; }

  .brand img { height: 58px; }
  .brand { font-size: 1.3rem; }
}
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.roles span { background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600; padding: .2em .65em; border-radius: 999px; }

/* Square photo, framed by object-position + scale (see photo() in views.js). */
.ph { aspect-ratio: 1; overflow: hidden; background: #eee; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro { max-width: 640px; color: #dfe4ea; margin: 0 0 14px; font-size: 1.02rem; }
.eyebrow { color: var(--gold); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.hero-landing { padding: 48px 0 40px; }
.hero-landing h1 { font-size: 2.8rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-main { min-width: 0; }
.stat-card { border: 2px solid var(--gold); border-radius: 12px; padding: 22px 24px; background: rgba(255,255,255,.04); }
.stat-card p { margin: 0; }
.stat-num { font: 700 4rem/1 "Crimson Text", Georgia, serif; color: var(--gold); }
.stat-text { color: #fff; font-size: 1rem; margin-top: 8px !important; }
.stat-src { color: #9aa3b0; font-size: .74rem; margin-top: 6px !important; }
.stat-note { color: #dfe4ea; font-size: .9rem; margin-top: 14px !important; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); }
.pillars { background: #fff; border-bottom: 1px solid var(--line); padding: 34px 0 26px; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pillar h2 { margin: 0 0 6px; font-size: 1.5rem; color: var(--navy); }
.pillar h2::before { content: ""; display: block; width: 36px; height: 4px; background: var(--gold); border-radius: 2px; margin-bottom: 12px; }
.pillar p { margin: 0; color: var(--muted); }
.pillar-more { margin: 22px 0 0; font-weight: 600; font-size: .9rem; }
@media (max-width: 820px) {
  .hero-landing { padding: 32px 0 28px; }
  .hero-landing h1 { font-size: 2.1rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-num { font-size: 3.2rem; }
  .pillar-grid { grid-template-columns: 1fr; gap: 20px; }
}

.photo-edit-in { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.photo-frame { width: 200px; flex: none; border-radius: 8px; overflow: hidden; cursor: grab; touch-action: none; user-select: none; box-shadow: 0 0 0 1px var(--line); }
.photo-frame.dragging { cursor: grabbing; }
.photo-frame img { pointer-events: none; }
.photo-controls { display: grid; gap: 10px; flex: 1; min-width: 200px; }
.photo-controls p { margin: 0; }
input[type="range"] { padding: 0; accent-color: var(--gold-dark); }

.admin-box { background: #fff8e8; border-color: var(--gold); }
.form-grid.tight { margin-top: 0; }
.admin-links { display: flex; flex-wrap: wrap; gap: 8px; }
.stack.wide { max-width: none; }
.danger { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.btn-danger { background: #9b2c2c; color: #fff; }
.btn-danger:hover { background: #7a1f1f; }

.disclaimer-note { margin-top: 18px; font-size: .82rem; color: var(--muted); max-width: 70ch; }
.agree { align-items: flex-start; background: #fff8e8; border: 1px solid var(--gold); border-radius: 6px; padding: 10px 12px; font-size: .88rem; }
.agree input { margin-top: 3px; }
.prose p { max-width: 68ch; }
.foot-bottom a { color: #cfd5de; text-decoration: underline; }

/* EMDR level badge (cards and profiles) and the level picker on the listing form */
.level { margin: 6px 0; }
.level span { display: inline-block; background: #fff3db; border: 1px solid var(--gold); color: #6b4300; font-size: .74rem; font-weight: 600; padding: .2em .65em; border-radius: 999px; }
.level-cit span, .level-consultant span { background: var(--gold); color: var(--navy); }
.level small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.levels .level-pick { align-items: flex-start; margin: 6px 0; }
.levels .level-pick input { margin-top: 4px; }
.levels .level-pick small { display: block; }
optgroup { font-style: normal; font-weight: 600; }
.sessions-cell { display: grid; gap: 8px; align-content: start; }
.form-grid > label:not(.check) { align-content: start; }
.intro-lead { font-size: 1.05rem; }
.identity-box { display: grid; gap: 8px; }
.dup { display: inline-block; margin-top: 4px; font-size: .78rem; color: #8a3b00; background: #fff3db; border-left: 3px solid var(--gold); padding: .2em .5em; }
tr.has-dup td:first-child { border-left: 3px solid var(--gold); }
