/* AN ORGANIZATION'S OWN VERSION OF ITS PAGE, AND THE EDITOR THAT WRITES IT — `specs/081-claim-this-profile`.
 *
 * CARRIED FROM LEGACY, rule for rule: `profile-claim/claim.css` (what the organization wrote, as the page shows
 * it, and the draft preview's bar) and `profile-claim/builder.css` (the editor's side panel), with every
 * selector put under `.mk-page` as the other carried sheets are. Two changes of selector only: legacy hangs the
 * panel's layout on classes it adds to `<html>` (`rpb-a`, `rpb-min`), and here they sit on the editor's own
 * root, `.rpb-root`, since the editor is one element of the console's page; and legacy draws the empty About
 * placeholder with `::after` on `html[data-rpc-mode="edit"] section.rpc-empty`, where here it is a paragraph,
 * `.rpc-placeholder`, written only into the editor's drawing of the page. */

/* ---- What the organization wrote, as the page shows it (claim.css) ---- */
.mk-page .rpc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding: 3px 9px 2px;
  border-radius: 999px;
  background: var(--c-accent-tint, #1157c414);
  color: var(--c-accent, #1157c4);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  vertical-align: 1px;
}
.mk-page .rpc-by {
  margin-top: 0.75rem;
  color: var(--c-accent, #1157c4) !important;
}
.mk-page .rpc-text {
  margin-top: 0.75rem;
  color: var(--c-muted, #5b5f6b);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.mk-page .rpc-text p {
  margin: 0;
}
.mk-page .rpc-text p + p {
  margin-top: 0.75rem;
}
.mk-page .rpc-text a {
  color: var(--c-accent, #1157c4);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mk-page .rpc-text strong {
  color: var(--c-ink, #16181d);
  font-weight: 700;
}
.mk-page .rpc-text em {
  font-style: italic;
}
.mk-page .rpc-fig {
  margin: 1.5rem 0 0;
}
.mk-page .rpc-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--c-border, #e4e2d9);
  background: var(--c-surface, #fff);
}
.mk-page .rpc-fig figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--c-muted, #5b5f6b);
  text-align: center;
}
.mk-page .rpc-pv {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 9px 16px;
  background: #16181d;
  color: #f8f7f3;
  font-size: 0.88rem;
  text-align: center;
}
.mk-page .rpc-pv a {
  color: #f8f7f3;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- The editor (builder.css) ---- */
.mk-page .rpb-root [hidden] {
  display: none !important;
}
.mk-page .rpc-placeholder {
  display: block;
  margin-top: 0.75rem;
  padding: 14px;
  border: 1px dashed var(--c-border, #e4e2d9);
  border-radius: 12px;
  color: var(--c-muted, #5b5f6b);
  font-size: 0.9rem;
}
.mk-page .rpb-card {
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e4e2d9);
  border-radius: 14px;
  padding: 16px;
  color: var(--c-ink, #16181d);
  text-align: left;
}
.mk-page .rpb-card + .rpb-card {
  margin-top: 14px;
}
.mk-page .rpb-review {
  border-color: #f4c7c3;
  background: #fff7f6;
}
.mk-page .rpb-review p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.mk-page .rpb-card h3 {
  text-transform: none;
  letter-spacing: 0;
  font-family: inherit;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-heading, #202945);
  line-height: 1.3;
}
.mk-page .rpb-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--c-muted, #5b5f6b);
  line-height: 1.45;
}
.mk-page .rpb-logo {
  margin-top: 12px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg, #f8f7f3);
  border: 1px dashed var(--c-border, #e4e2d9);
  border-radius: 12px;
  padding: 10px;
}
.mk-page .rpb-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.mk-page .rpb-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.mk-page .rpb-btn {
  padding: 0.55rem 1rem !important;
  font-size: 0.85rem !important;
}
.mk-page .rpb-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--c-accent, #1157c4);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.mk-page .rpb-file {
  display: none !important;
}
.mk-page .rpb-ta,
.mk-page .rpb-in {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--c-border, #e4e2d9);
  border-radius: 12px;
  background: #fff;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--c-ink, #16181d);
  outline: none;
}
.mk-page .rpb-ta {
  resize: vertical;
  min-height: 96px;
}
.mk-page .rpb-in {
  margin-top: 6px;
  font-size: 0.85rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
}
.mk-page .rpb-ta:focus,
.mk-page .rpb-in:focus,
.mk-page .rpb-rte:focus {
  border-color: var(--c-accent, #1157c4);
  box-shadow: 0 0 0 3px var(--c-accent-tint, #1157c414);
}
.mk-page .rpb-lab {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-ink, #16181d);
}
.mk-page .rpb-count {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--c-muted, #5b5f6b);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mk-page .rpb-count.over {
  color: #b42318;
  font-weight: 700;
}
.mk-page .rpb-note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--c-muted, #5b5f6b);
  line-height: 1.45;
}
.mk-page .rpb-note:empty {
  display: none;
}
.mk-page .rpb-note.err {
  color: #b42318;
}
.mk-page .rpb-blocks {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}
.mk-page .rpb-block {
  border: 1px solid var(--c-border, #e4e2d9);
  border-radius: 12px;
  background: var(--c-bg, #f8f7f3);
  padding: 10px;
}
.mk-page .rpb-bhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mk-page .rpb-ctl,
.mk-page .rpb-tool {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.mk-page .rpb-tool {
  margin-top: 8px;
}
.mk-page .rpb-ctl button,
.mk-page .rpb-tool button {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--c-border, #e4e2d9);
  border-radius: 8px;
  background: #fff;
  color: var(--c-ink, #16181d);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mk-page .rpb-ctl button:hover:not(:disabled),
.mk-page .rpb-tool button:hover {
  border-color: var(--c-accent, #1157c4);
}
.mk-page .rpb-ctl button:disabled {
  opacity: 0.35;
  cursor: default;
}
.mk-page .rpb-tool .rpb-b {
  font-weight: 800;
}
.mk-page .rpb-tool .rpb-i {
  font-style: italic;
  font-family: Georgia, serif;
}
.mk-page .rpb-rte {
  margin-top: 6px;
  min-height: 110px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--c-border, #e4e2d9);
  border-radius: 10px;
  background: #fff;
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--c-ink, #16181d);
  outline: none;
  overflow-wrap: anywhere;
}
.mk-page .rpb-rte p {
  margin: 0;
}
.mk-page .rpb-rte p + p {
  margin-top: 0.6rem;
}
.mk-page .rpb-rte a {
  color: var(--c-accent, #1157c4);
  text-decoration: underline;
}
.mk-page .rpb-rte b,
.mk-page .rpb-rte strong {
  font-weight: 700;
}
.mk-page .rpb-rte i,
.mk-page .rpb-rte em {
  font-style: italic;
}
.mk-page .rpb-linkrow {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mk-page .rpb-linkrow .rpb-in {
  flex: 1 1 180px;
  margin-top: 0;
}
.mk-page .rpb-imgprev {
  margin-top: 8px;
  max-height: 220px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--c-border, #e4e2d9);
  background: #fff;
  display: block;
}
.mk-page .rpb-add {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mk-page .rpb-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--c-muted, #5b5f6b);
}
.mk-page .rpb-locked {
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--c-muted, #5b5f6b);
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--c-surface-2, #efeee8);
}
.mk-page .rpb-locked b {
  color: var(--c-ink, #16181d);
}
.mk-page .rpb-locked a {
  color: var(--c-accent, #1157c4);
  text-decoration: underline;
}
.mk-page .rpb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mk-page .rpb-state {
  flex: 1 1 150px;
  font-size: 0.82rem;
  color: var(--c-muted, #5b5f6b);
  min-width: 0;
  line-height: 1.35;
}
.mk-page .rpb-state.err {
  color: #b42318;
}
.mk-page .rpb-state.ok {
  color: #15803d;
}
.mk-page .rpb-bar .btn {
  padding: 0.6rem 1rem !important;
  font-size: 0.85rem !important;
}
.mk-page .rpb-bar .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.mk-page .rpb-foot .rpb-state {
  flex-basis: 100%;
}
@media (max-width: 640px) {
  .mk-page .rpb-bar .rpb-state {
    flex-basis: 100%;
  }
}

/* ---- The side panel beside the page ---- */
.mk-page .rpb-panel {
  position: fixed;
  z-index: 2147479000;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  display: flex;
  flex-direction: column;
  background: var(--c-bg, #f8f7f3);
  border-left: 1px solid var(--c-border, #e4e2d9);
  box-shadow: -24px 0 40px -32px rgba(22, 24, 29, 0.4);
}
.mk-page .rpb-head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--c-border, #e4e2d9);
  background: var(--c-surface, #fff);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.mk-page .rpb-head h2 {
  text-transform: none;
  margin: 4px 0 0;
  font-size: 1.3rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--c-heading, #202945);
}
.mk-page .rpb-head-acts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: none;
}
.mk-page .rpb-body {
  flex: 1;
  overflow: auto;
  padding: 16px 18px 20px;
}
.mk-page .rpb-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--c-border, #e4e2d9);
  background: var(--c-surface, #fff);
}
.mk-page .rpb-seepage {
  display: none;
}
@media (min-width: 1100px) {
  .mk-page .rpb-root {
    padding-right: 440px;
  }
}
@media (max-width: 1099.98px) {
  .mk-page .rpb-panel {
    width: auto;
    left: 0;
    border-left: 0;
  }
  .mk-page .rpb-seepage {
    display: inline;
  }
  .mk-page .rpb-root.rpb-min .rpb-panel {
    top: auto;
    box-shadow: 0 -16px 30px -24px rgba(22, 24, 29, 0.5);
    border-top: 1px solid var(--c-border, #e4e2d9);
  }
  .mk-page .rpb-root.rpb-min .rpb-head,
  .mk-page .rpb-root.rpb-min .rpb-body {
    display: none;
  }
  .mk-page .rpb-root.rpb-min {
    padding-bottom: 120px;
  }
}
.mk-page .rpb-backedit {
  display: none;
}
.mk-page .rpb-root.rpb-min .rpb-backedit {
  display: inline-flex;
}

/* ---- History ---- */
.mk-page .rpb-hist {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.mk-page .rpb-hrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--c-border, #e4e2d9);
  border-radius: 10px;
  background: var(--c-bg, #f8f7f3);
}
.mk-page .rpb-hrow.cur {
  border-color: var(--c-accent, #1157c4);
  background: var(--c-surface, #fff);
}
.mk-page .rpb-hmain {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--c-muted, #5b5f6b);
}
.mk-page .rpb-hmain b {
  display: block;
  color: var(--c-ink, #16181d);
  font-weight: 700;
}
.mk-page .rpb-hcur {
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-accent, #1157c4);
}
.mk-page .rpb-hrow .rpb-link {
  flex: none;
  font-size: 0.8rem;
}
