/* Page furniture for the Marketing Hub on the MPMA hub.

   Everything else on this page is MRG's vendored CSS untouched. This file only
   does what CRM.html's own shell used to do for the view: give it a page to sit
   on, and make the .ch-view visible outside the CRM's tab machinery. */

body { margin: 0; background: #f5f7fa; }

/* ⚠️ THE VIEW IS TURNED ON BY A CLASS, NOT FROM HERE.
   crm.css:564 ships .ch-view as display:none + opacity:0 + translateY(8px) and
   restores all three on .ch-view--active, which CRM.html's view switcher adds.
   There is no switcher on this page, so tools/port-marketing.cjs puts
   ch-view--active on the element itself. An earlier attempt overrode only
   `display` here and left the hub laid out at full height and completely
   transparent — correct, invisible, and passing any assertion that looked at
   the DOM. Do not re-add a .ch-view override; fix the class if it breaks. */

/* The same gutter Grants and Events use, so the three pages start at the
   same x and the same y. Tyler: "the same sizes". */
.crm-shell { padding: 16px 20px 40px; }

/* The rail and its panels are the same .ph-hub shape the grants panel uses, and
   work-hub-shim.js's switchSub drives it. It toggles .is-active on .ph-sub, so
   the hidden default has to be stated here — upstream it comes from work.js,
   which this page does not load. */
.ph-sub { display: none; }
.ph-sub.is-active { display: block; }

/* ── nothing here can be edited ───────────────────────────────────────────
   marketing-shim.js answers every write with a 405 and says so, which is the
   honest backstop. But an Edit button that cannot save is the same complaint
   that was made about the grant popup — "it's immediately editable... there's
   no profile" — so the edit actions come off until there is a backend.

   ⚠️ THESE ARE THE REAL SELECTORS, READ OFF THE RENDERED POPUP, NOT GUESSED.
   An earlier version of this block listed .mh-send-commit / .mh-sms-send-btn
   and similar inventions; none of them existed, so the rules matched nothing
   and would have "passed" any check that looked for them. The controls are
   data-mh-act attributes.

   ⚠️ `send` IS DELIBERATELY LEFT ALONE. The text send screen — segment count,
   who it resolves to, the opt-out language — is the thing MPMA asked to see,
   and hiding the only door to it would mean the texting work cannot be shown
   at all. Pressing through reaches the shim's 405, whose message says in plain
   words that nothing was sent. An honest refusal beats a missing button here,
   which is the opposite of the call made on Edit, because one of these is a
   screen worth demonstrating and the other is a dead end. */
[data-mh-act="edit-content"],
[data-mh-act="edit-piece"],
[data-mh-act="unapprove"] { display: none !important; }
