/* Profile Builder - public profile styling. Moved out of
 * application/views/enduser/professional_profile.php so the standard profile
 * (profile_parts/default_profile.php) and the elected-official tab share it.
 * Loaded by those views; it styles the builder blocks and the value renderers
 * (chips, timelines, language tags, widgets) of profile_render_helper.php. */

/* ══════════════════════════════════════════════════════════════════════
   Profile Builder — public profile styling
   ----------------------------------------------------------------------
   Self-contained on purpose. The public profile does NOT load Bootstrap's
   grid: `.row` computes to display:block here and `.col-md-*` gets
   `flex:0 1 auto; max-width:none`, so every builder column rendered
   full-width and the layout collapsed into a flat stack. The grid below
   replaces it and owes nothing to the theme's CSS.
   ═════════════════════════════════════════════════════════════════════ */
.custom-profile-builder-wrapper {
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  --pb-ink: #1A2233;
  --pb-muted: #6B7A90;
  --pb-line: #E6EBF2;
  --pb-soft: #F7F9FC;
  --pb-accent: #533CFD;
}
.custom-profile-section { animation: slideUpFade 0.4s ease-out; margin-bottom: 34px; }
.custom-profile-section h2.section-title {
  color: var(--pb-ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--pb-line);
  display: block;
}

/* ── Identity inside the hero card ────────────────────────────────── */
.pb-hero-body > .pb-identity {
  padding: 0; background: none; margin: 0 0 4px; animation: none;
}
.pb-hero-body > .pb-identity .profile-name {
  font-size: 34px; line-height: 1.15; margin-bottom: 6px; color: var(--pb-ink);
}
.pb-hero-body > .pb-identity .profile-name::after {
  margin-top: 12px; margin-bottom: 14px; background-color: var(--pb-accent);
}
/* Reserve the line's full height: the typewriter erases to an empty string,
   and without this the block collapsed and everything below jumped up/down
   on every cycle. */
.pb-hero-body > .pb-identity .profile-title { margin-bottom: 0; min-height: 26px; }
.pb-hero-body > .pb-identity .typewriter-text {
  font-size: 18px; line-height: 26px; min-height: 26px;
  color: var(--pb-muted); border-right-color: var(--pb-accent);
}
/* The identity block is not a field, so it must not take the sibling rule. */
.pb-hero-body > .pb-identity + .w-100 { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 640px) {
  .pb-hero-body > .pb-identity .profile-name { font-size: 27px; }
}
.custom-profile-section h2.section-title::after { display: none; }

/* ── Grid ─────────────────────────────────────────────────────────── */
/* Every grid sits in its own wrapper so a row is a self-contained block:
   it clears whatever came before, and section spacing / the vitals band
   attach to the wrapper rather than to the grid itself. */
/* Content column is a fixed 1320px on every builder page/tab. Full-bleed
   backgrounds (the vitals band, the decoration layer) break out separately
   via their own pseudo-elements, so they are unaffected. */
.pb-grid-wrap {
  clear: both;
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 1340px) { .pb-grid-wrap { max-width: 100%; } }
.pb-grid-wrap::after { content: ""; display: table; clear: both; }
.pb-grid {
  display: grid;
  grid-template-columns: repeat(var(--pb-cols, 1), minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.pb-grid:last-child { margin-bottom: 0; }
/* Edge-to-edge row: escapes the page container so a banner image can bleed to
   the viewport edge, while its text column stays aligned with the container. */
.pb-grid-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  gap: 0;
  align-items: stretch;
}
.pb-grid-full > *:first-child { padding-left: calc(50vw - 50%); }
@media (max-width: 900px) {
  .pb-grid-full { width: auto; margin-left: 0; margin-right: 0; gap: 20px; }
  .pb-grid-full > *:first-child { padding-left: 0; }
}
@media (max-width: 900px) { .pb-grid { grid-template-columns: 1fr; } }

/* ── Field card ───────────────────────────────────────────────────── */
.custom-profile-field-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--pb-line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
  padding: 22px 24px;
  height: 100%;
}
.custom-profile-field-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 24, 40, .07);
  border-color: rgba(83, 60, 253, .18);
}
/* Only a WIDGET card (the Spotlight loop) is transparent, so its white post
   cards sit directly on the section tint. Value cards — bio, experience, form
   answers, etc. — keep the solid white card (the capability-profile look). */
.custom-profile-section .custom-profile-field-card.pb-card-plain,
.custom-profile-section .custom-profile-field-card.pb-card-plain:hover {
  background: transparent; border: none; box-shadow: none; padding: 0; transform: none;
}
/* Blocks stacked inside one card get a rule between them, not a hard border. */
.custom-profile-field-card > .w-100 + .w-100 {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--pb-line);
}
/* Inline-flow card (column flow = inline in the builder): blocks sit side by
   side and wrap, with the stacked-list dividers switched off. */
.custom-profile-field-card.pb-card-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: flex-start;
}
.custom-profile-field-card.pb-card-inline > .w-100 {
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
}
.custom-profile-field-card.pb-card-inline > .w-100 + .w-100 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ── Vitals rows ───────────────────────────────────────────────────────
   A row marked variant="vitals" holds many short label/value pairs. Stacked
   one per line they run down the page as a thin ribbon, so pack them into a
   grid instead. This is deliberately NOT scoped to .pb-style-capability: the
   capability and elected pages are built from ordinary builder fields now
   and carry no style hook, so a scoped rule would never fire. */
.pb-row-vitals .custom-profile-field-card > .w-100 {
  /* The stacked-block divider assumes a vertical run; in a grid it draws
     lines between neighbouring cells. */
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.pb-row-vitals .custom-profile-field-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  /* dense: a widened entry leaves a hole otherwise, and the next entry that
     fits backfills it instead of the row ending ragged. */
  grid-auto-flow: dense;
  gap: 18px 22px;
  align-items: start;
}
/* A heading inside the card introduces the whole group, so it spans. */
.pb-row-vitals .custom-profile-field-card > .w-100:has(.pb-heading) {
  grid-column: 1 / -1;
}
/* Long entries are widened by pbSizeVitals() below. */
.pb-row-vitals .custom-profile-field-card > .w-100.pb-vital-wide {
  grid-column: span 2;
}
.pb-row-vitals .custom-field-label,
.pb-row-vitals .custom-field-value,
.pb-row-vitals .pb-heading { text-align: left; }
.pb-row-vitals .custom-field-label { margin-bottom: 4px !important; }
.pb-row-vitals .pb-chips,
.pb-row-vitals .pb-link,
.pb-row-vitals .pb-inline { justify-content: flex-start; }
@media (max-width: 640px) {
  .pb-row-vitals .custom-profile-field-card { grid-template-columns: 1fr; }
  .pb-row-vitals .custom-profile-field-card > .w-100.pb-vital-wide { grid-column: 1 / -1; }
}

.custom-profile-field-content { min-width: 0; }
.custom-field-label {
  color: var(--pb-muted);
  letter-spacing: 1.2px;
  font-weight: 700;
  font-size: .88rem !important;
  margin-bottom: 10px !important;
}
.custom-field-value { color: var(--pb-ink); line-height: 1.75; font-size: 1.06rem !important; }
.custom-field-value > *:last-child { margin-bottom: 0; }
.custom-field-value p { margin-bottom: .7em; }
.custom-field-value ul:not(.pb-chips):not(.pb-tags):not(.pb-timeline) { padding-left: 1.1rem; margin-bottom: 0; }

/* ── Hero card: portrait beside its text, in ONE card ─────────────── */
.pb-card-hero { display: flex; gap: 28px; align-items: flex-start; }
.pb-card-hero > .pb-hero-media { flex: 0 0 auto; }
.pb-card-hero > .pb-hero-body { flex: 1 1 auto; min-width: 0; }
/* Blocks beside the portrait stack full-width, separated by a rule. */
.pb-hero-body > .w-100 + .w-100 {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--pb-line);
}
@media (max-width: 640px) {
  .pb-card-hero { flex-direction: column; gap: 20px; }
  .pb-card-hero > .pb-hero-media { align-self: flex-start; }
}

/* ── Portrait ─────────────────────────────────────────────────────── */
.pb-media { margin: 0; }
.pb-media-img {
  display: block;
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--pb-line);
  background: var(--pb-soft);
}
.pb-name { font-size: 1.45rem; font-weight: 700; color: var(--pb-ink); line-height: 1.25; }

/* ── Links & inline values ────────────────────────────────────────── */
.pb-link, .pb-inline { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.pb-link { color: var(--pb-accent); font-weight: 500; word-break: break-word; }
.pb-link:hover { color: var(--pb-accent); text-decoration: underline; }
.pb-inline { color: var(--pb-ink); }
/* Inline SVG marks — no icon font is reliably available on this page. */
.pb-ico {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  display: block;
  color: var(--pb-accent);
}
.pb-inline .pb-ico { color: var(--pb-muted); }

/* ── Chips (skills, services, multi-select answers) ───────────────── */
.pb-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.pb-chip {
  background: var(--pb-soft);
  border: 1px solid var(--pb-line);
  color: #3D4A5C;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: .88rem;
  line-height: 1.3;
}

/* ── Language tags ────────────────────────────────────────────────── */
.pb-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.pb-tag {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--pb-line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.pb-tag-name { padding: 7px 12px; font-size: .88rem; font-weight: 600; color: var(--pb-ink); }
.pb-tag-level {
  padding: 7px 12px;
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--pb-soft);
  color: var(--pb-muted);
  border-left: 1px solid var(--pb-line);
}
.pb-tag-level[data-level*="expert"]       { background: #E8F7EE; color: #1E7A45; }
.pb-tag-level[data-level*="advanced"]     { background: #E8F1FE; color: #1B4FA8; }
.pb-tag-level[data-level*="intermediate"] { background: #FFF6E5; color: #96650B; }
.pb-tag-level[data-level*="beginner"]     { background: #F2F4F8; color: #5B6779; }

/* ── Timeline (experience / education) ────────────────────────────── */
.pb-timeline { list-style: none; padding: 0; margin: 0; }
.pb-tl-item { position: relative; padding: 0 0 22px 26px; }
.pb-tl-item:last-child { padding-bottom: 0; }
.pb-tl-item::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid var(--pb-accent);
  z-index: 1;
}
.pb-tl-item::after {
  content: ""; position: absolute; left: 5px; top: 19px; bottom: -2px;
  width: 1px; background: var(--pb-line);
}
.pb-tl-item:last-child::after { display: none; }
.pb-tl-range {
  font-size: .875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--pb-accent); margin-bottom: 3px;
}
.pb-tl-title { font-weight: 600; color: var(--pb-ink); line-height: 1.35; }
.pb-tl-org { color: var(--pb-muted); font-size: .92rem; }
.pb-tl-meta { color: var(--pb-muted); font-size: .875rem; }
.pb-tl-desc { font-size: .9rem; color: #4A5768; margin-top: 6px; line-height: 1.6; }
.pb-tl-desc p:last-child { margin-bottom: 0; }

/* ── Widgets (reviews / recommendations / spotlight posts) ────────── */
.pb-widget-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pb-widget-title { font-weight: 700; color: var(--pb-ink); font-size: 1.05rem; }
.pb-widget-count {
  background: var(--pb-soft); color: var(--pb-muted); border: 1px solid var(--pb-line);
  border-radius: 20px; padding: 1px 10px; font-size: .875rem; font-weight: 700;
}
.pb-review { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--pb-line); }
.pb-review:first-child { border-top: 0; padding-top: 0; }
.pb-review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; background: var(--pb-soft); }
.pb-review-body { min-width: 0; flex: 1 1 auto; }
.pb-review-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pb-review-name { font-weight: 600; color: var(--pb-ink); }
.pb-review-date { font-size: .875rem; color: var(--pb-muted); }
.pb-review-stars { line-height: 1; margin: 3px 0 4px; }
.pb-star { color: #D8DEE8; font-size: .95rem; }
.pb-star.is-on { color: #F2B01E; }
.pb-review-text { color: #4A5768; font-size: .95rem; line-height: 1.6; }

.pb-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .pb-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pb-post-grid { grid-template-columns: 1fr; } }
.pb-post {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pb-line);
  border-radius: 12px; overflow: hidden; text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.pb-post:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16,24,40,.09); text-decoration: none; }
/* Fixed height (not just aspect-ratio, which older engines ignore) so tall
   source images never stretch the card — they are cropped to a uniform cover. */
.pb-post-cover { height: 290px; background: var(--pb-soft); overflow: hidden; }
.pb-post-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.pb-post-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.pb-post-type {
  align-self: flex-start; font-size: .875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--pb-accent); background: var(--pb-soft);
  border-radius: 4px; padding: 2px 7px;
}
.pb-post-title { font-weight: 600; color: var(--pb-ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pb-post-meta { font-size: .875rem; color: var(--pb-muted); }
.pb-post-excerpt { font-size: .875rem; color: #4A5768; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Business contact card ────────────────────────────────────────────
   Lifted verbatim from enduser/publicprofile.php so the block renders
   identically to the original profile panel. */
.qme-profile-container { max-width: 500px; padding-top: 10px; margin-bottom: 30px; }
.qme-profile-title { font-size: 24px; font-weight: bold; color: #000; }
.qme-profile-buttons { display: flex; gap: 10px; margin-top: 15px; color: #3C65F5; flex-wrap: wrap; }
.qme-profile-button {
  padding: 6px 14px; border: 1px solid #ccc; border-radius: 20px;
  font-size: 14px; cursor: pointer; background-color: #f8f8f8;
  color: #3C65F5; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1.6;
}
.qme-profile-button:hover { color: #3C65F5; text-decoration: none; background-color: #f1f3f9; }
.qme-profile-button .pb-ico { width: 15px; height: 15px; flex: 0 0 15px; color: currentColor; }
.qme-profile-button[data-copied] { background: #E8F7EE; border-color: #9ad3b0; }
.qme-profile-info { padding-top: 10px; border-top: 1px solid #ccc; margin-top: 20px; font-size: 14px; }
.qme-profile-info > div { margin-bottom: 4px; }
.qme-profile-info strong { display: inline-block; width: 70px; color: #333; }
.qme-profile-phone a { color: #3366cc; text-decoration: none; }
.qme-profile-hours { color: green; }
.qme-profile-closes { color: #333; }
/* The card brings its own frame — no builder card chrome around it. */
.custom-profile-field-card.pb-card-plain .qme-profile-container { margin-bottom: 0; }

/* ── Static blocks ────────────────────────────────────────────────── */
.pb-heading { font-size: 1.1rem; font-weight: 700; color: var(--pb-ink); margin-bottom: 12px; }
.pb-divider { border: 0; border-top: 1px solid var(--pb-line); margin: 18px 0; }
.custom-profile-static-block .static-content-text { color: #4A5768; line-height: 1.7; }

@media (max-width: 600px) {
  .custom-profile-field-card { padding: 18px; }
  .pb-media-img { max-width: 140px; }
}

/* ══════════════════════════════════════════════════════════════════════
   Theme variants — each prebuilt template ships its own look. The wrapper
   carries pb-style-{classic|boardroom|minimal}; classic is the base above.
   ═════════════════════════════════════════════════════════════════════ */

/* BOARDROOM (Business template): corporate navy + gold, squared corners,
   solid section headers instead of hairline rules. */
.pb-style-boardroom {
  --pb-ink: #12263F;
  --pb-muted: #5C6E82;
  --pb-line: #D8E0EA;
  --pb-soft: #F1F5F9;
  --pb-accent: #B7791F;
}
.pb-style-boardroom .custom-profile-section h2.section-title {
  background: var(--pb-ink);
  color: #fff;
  border-bottom: 0;
  border-left: 4px solid var(--pb-accent);
  padding: 12px 16px;
  letter-spacing: 2px;
  border-radius: 4px;
}
.pb-style-boardroom .custom-profile-field-card { border-radius: 6px; box-shadow: none; border-color: var(--pb-line); }
.pb-style-boardroom .custom-profile-field-card:hover { transform: none; box-shadow: 0 4px 14px rgba(18, 38, 63, .08); }
.pb-style-boardroom .pb-media-img { border-radius: 6px; }
.pb-style-boardroom .pb-chip { border-radius: 4px; background: #fff; border-color: var(--pb-ink); color: var(--pb-ink); }
.pb-style-boardroom .pb-tag, .pb-style-boardroom .pb-tag-name { border-radius: 4px; }
.pb-style-boardroom .pb-tl-item::before { border-radius: 2px; border-color: var(--pb-accent); }
.pb-style-boardroom .pb-hero-body > .pb-identity .profile-name { text-transform: uppercase; letter-spacing: 1px; }

/* MINIMAL: monochrome, borderless, generous whitespace — typography does
   the work, not cards. */
.pb-style-minimal {
  --pb-ink: #191919;
  --pb-muted: #8A8A8A;
  --pb-line: #E8E8E8;
  --pb-soft: #F6F6F6;
  --pb-accent: #191919;
}
.pb-style-minimal .custom-profile-field-card {
  border: 0; border-radius: 0; box-shadow: none;
  padding: 8px 0 26px; background: transparent;
}
.pb-style-minimal .custom-profile-field-card:hover { transform: none; box-shadow: none; }
.pb-style-minimal .pb-grid { gap: 40px; }
.pb-style-minimal .custom-profile-section { margin-bottom: 14px; }
.pb-style-minimal .custom-profile-section h2.section-title {
  font-size: 14px; letter-spacing: 4px; color: var(--pb-muted);
  border-bottom: 1px solid var(--pb-line);
}

/* ── Capability: matches the original capability statement page ───────
   Gradient eyebrow-style section headings on black, borderless cards on a
   tinted ground, and blue-accented labels — the it-up-* look, rebuilt on
   the builder's markup. */
/* The original is a plain white page: no tinted grounds, no cards, no
   shadows — just headings and left-aligned label/value text. Measured off it
   directly, so these values are its values. */
.pb-style-capability {
  --pb-ink: #373737;
  --pb-muted: #373737;
  --pb-line: #cccccc;
  --pb-soft: #f8f8f8;
  --pb-accent: #0d47d5;
  background: #fff;
}
.pb-style-capability .custom-profile-section { background: transparent; }
.pb-style-capability .custom-profile-section { margin-bottom: 42px; padding: 0; }

/* ── Decorative background vectors ─────────────────────────────────────
   The original floats shape PNGs behind its sections. Same assets, same
   offsets and same drift animations, layered behind the content. */
.pb-style-capability { position: relative; }
/* The vectors span the full viewport, not the page container — the container
   is ~1409px inside a 1440px window, so anchoring them to it kept the shapes
   off the true page edges. The layer breaks out; the content does not. */
.pb-deco-layer {
  position: absolute;
  top: 0;
  /* 100vw includes the vertical scrollbar, so a plain 100vw layer overhangs
     the visible page and creates a horizontal scrollbar. --pb-sbw is the
     measured scrollbar width (set below), subtracted here. */
  left: calc(50% - 50vw + (var(--pb-sbw, 0px) / 2));
  width: calc(100vw - var(--pb-sbw, 0px));
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.pb-deco { position: absolute; z-index: 0; pointer-events: none; user-select: none; }
.pb-deco img { display: block; max-width: 100%; }
/* No z-index here on purpose: a stacking context would trap the vitals band
   above the decoration layer and hide the vectors. Layering instead runs
   band(-1) < decorations(0) < cards/headings(1), all in the wrapper's context. */
.pb-style-capability .custom-profile-section { position: relative; }

/* Content runs the full container width (per your note); the section rhythm
   hangs off the heading row, since a page flattens all sections into one
   container and section margins never applied. */
.pb-style-capability .pb-grid { max-width: 100%; margin-bottom: 26px; }
.pb-style-capability .pb-grid-wrap:has(.pb-heading) { margin-top: 86px; }
.pb-style-capability .pb-grid-wrap:first-of-type { margin-top: 0; }
@media (max-width: 900px) { .pb-style-capability .pb-grid-wrap:has(.pb-heading) { margin-top: 52px; } }
.pb-style-capability .custom-profile-field-card,
.pb-style-capability .pb-heading { position: relative; z-index: 1; }
/* Offsets are absolute px, not percentages: the builder wrapper can run many
   thousands of pixels tall, and % offsets scattered the shapes to the very
   bottom of the page. They are also pinned to the left/right MARGINS — an
   earlier pass put one at left:51%, dead centre, so shapes sat on top of the
   text. Nothing here may intrude into the reading column. */
.pb-deco { opacity: .55; }
.pb-deco-1 { top: 300px;  left: 0; }
.pb-deco-2 { top: 640px;  left: 1%;    animation: PB_drift_x 12s infinite linear alternate; }
.pb-deco-3 { top: 200px;  right: 2%;   animation: PB_drift_y 12s infinite linear alternate; }
.pb-deco-4 { top: 780px;  right: 1%;   animation: PB_drift_x 12s infinite linear alternate; }
.pb-deco-5 { top: 1150px; left: -50px; }
.pb-deco-6 { top: 1520px; left: 1%;    animation: PB_drift_x 12s infinite linear alternate; }
.pb-deco-7 { top: 1800px; right: 2%;   animation: PB_drift_x 12s infinite linear alternate; }
.pb-deco-8 { top: 2150px; right: -50px; }
/* Hard guarantee: a shape can never cover the middle of the page. */
.pb-deco { max-width: 15vw; }
.pb-deco img { max-width: 100%; height: auto; }
@keyframes PB_drift_x {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-40px); }
  50%  { transform: translateX(0); }
  75%  { transform: translateX(40px); }
  100% { transform: translateX(0); }
}
@keyframes PB_drift_y {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-40px); }
  50%  { transform: translateY(0); }
  75%  { transform: translateY(40px); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .pb-deco { animation: none !important; } }
/* Narrow screens: the shapes only crowd the content. */
@media (max-width: 768px) { .pb-deco { display: none; } }

/* Banner: logo stacked above the text on the left, industry image on the
   right — so the hero card must stack, not sit side by side. */
.pb-style-capability .pb-card-hero { display: block; }
/* ...except a "split" row, where the image sits beside its prose. */
.pb-style-capability .pb-row-split .pb-card-hero { display: flex; gap: 34px; align-items: flex-start; }
.pb-style-capability .pb-row-split .pb-hero-media { flex: 0 0 390px; margin-bottom: 0; }
/* Outranks the 160px banner-logo rule further down the sheet. */
.pb-style-capability .pb-grid.pb-row-split .pb-card-hero .pb-hero-media .pb-media-img {
  width: 100%; max-width: 390px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px;
}
.pb-style-capability .pb-row-split .pb-hero-body { flex: 1 1 auto; min-width: 0; }
.pb-style-capability .pb-row-split .custom-field-label { display: none; }
.pb-style-capability .pb-row-split .custom-field-value { font-size: 15px !important; color: #6b6f9c; line-height: 1.75; }
@media (max-width: 900px) {
  .pb-style-capability .pb-row-split .pb-card-hero { display: block; }
  .pb-style-capability .pb-row-split .pb-hero-media { margin-bottom: 22px; }
}
.pb-style-capability .pb-card-hero > .pb-hero-media { margin-bottom: 22px; }
.pb-style-capability .pb-hero-body > .w-100 + .w-100 { border-top: 0; margin-top: 14px; padding-top: 0; }
/* First field in the banner = blue "About Us" kicker over the business name.
   Scoped to .pb-row-banner: unscoped, this 50px rule also hit the About
   Business section (another hero card) and blew its prose up to 50px. */
.pb-style-capability .pb-row-banner .pb-card-hero .pb-hero-body > .w-100:first-child .custom-field-label {
  color: #0d47d5; font-size: 20px !important; font-weight: 700; margin-bottom: 2px !important;
}
.pb-style-capability .pb-row-banner .pb-card-hero .pb-hero-body > .w-100:first-child .custom-field-value {
  font-size: 50px !important; font-weight: 700; line-height: 1.12; color: #373737;
}
/* Tagline underneath. */
.pb-style-capability .pb-row-banner .pb-card-hero .pb-hero-body > .w-100:nth-child(2) .custom-field-value {
  font-size: 18px !important; color: #5a6472; line-height: 1.6;
}
.pb-style-capability .pb-row-banner .pb-card-hero .pb-hero-body > .w-100:nth-child(2) .custom-field-label { display: none; }
/* The logo stays a small square; only a standalone image column (the industry
   banner) fills its half. Without the :not() the banner rule also blew the
   logo up to half the page width. */
.pb-style-capability .pb-card-hero .pb-hero-media .pb-media-img {
  max-width: 160px; width: 160px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px;
}
.pb-style-capability .pb-grid > .custom-profile-field-card:not(.pb-card-hero) .pb-media-img {
  max-width: 100%; width: 100%; aspect-ratio: auto; border-radius: 8px;
}
@media (max-width: 900px) {
  .pb-style-capability .pb-row-banner .pb-card-hero .pb-hero-body > .w-100:first-child .custom-field-value { font-size: 34px !important; }
}
.pb-style-capability .custom-profile-section h2.section-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #000;
  border-bottom: 0;
  padding-bottom: 4px;
}
/* The coloured eyebrow the original prints above each heading. */
.pb-style-capability .custom-profile-section h2.section-title::before {
  content: attr(data-eyebrow);
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #1ec5fa 0%, #0d47d5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── "Business Vitals" style rows: centred, on a tinted ground, as white
   rounded cards with a soft shadow. ───────────────────────────────────── */
/* The vitals block sits on its own tinted band. The band bleeds the full
   viewport width via a pseudo-element, so the content stays in the container
   while the colour runs edge to edge. Consecutive vitals rows have no gap
   between them, so the band reads as one continuous zone. */
.pb-style-capability .pb-row-vitals {
  justify-items: stretch;
  align-items: stretch;   /* equal-height cards across the row */
  position: relative;
  /* No z-index: a stacking context here would lift the band above the vectors. */
  margin-bottom: 0;
  padding: 14px 0;
  gap: 22px;
}
/* Content sits centred in the card, so short and tall cards still line up. */
.pb-style-capability .pb-row-vitals > .custom-profile-field-card {
  display: flex; flex-direction: column; justify-content: center;
}
/* The section heading shares the vitals row class but is NOT a data card —
   without this it rendered as a full-width white block above the grid. */
.pb-style-capability .pb-row-vitals > .custom-profile-field-card:has(.pb-heading) {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
.pb-style-capability .pb-grid-wrap.pb-row-vitals { position: relative; }
.pb-style-capability .pb-grid-wrap.pb-row-vitals::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 50vw + (var(--pb-sbw, 0px) / 2));
  width: calc(100vw - var(--pb-sbw, 0px));
  background: #F5F9FC;
  z-index: -1;
}
/* First vitals row opens the band, last one closes it. */
.pb-style-capability .pb-grid-wrap:has(.pb-heading).pb-row-vitals { padding-top: 54px; }
.pb-style-capability .pb-grid-wrap.pb-row-vitals:not(:has(~ .pb-grid-wrap.pb-row-vitals)) { padding-bottom: 60px; margin-bottom: 26px; }
.pb-style-capability .pb-row-vitals .pb-chips,
.pb-style-capability .pb-row-vitals .pb-link,
.pb-style-capability .pb-row-vitals .pb-inline { justify-content: center; }
/* The section heading above a vitals block is centred too. */
.pb-style-capability .pb-row-vitals .pb-heading { text-align: center; }

/* Vitals boxes: centred, label as a heading over the value, and alternating
   boxes lifted -40px exactly like the original's staggered grid. */
/* Non-box cards stay flat; the vitals boxes get their look from the theme
   stylesheet via .it-up-featured-innerbox, so do not restate it here. */
.pb-style-capability .custom-profile-field-card:not(.it-up-featured-innerbox) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  padding: 14px 10px;
}
.pb-style-capability .custom-profile-field-card:hover {
  transform: none;
  box-shadow: none;
}
/* Labels/values outside a themed box. Inside .it-up-featured-innerbox the
   theme stylesheet styles the h3/p directly, so those are excluded. */
.pb-style-capability :not(.it-up-featured-innerbox) > .custom-profile-field-content > .custom-field-label {
  color: #373737;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.pb-style-capability :not(.it-up-featured-innerbox) > .custom-profile-field-content > .custom-field-value {
  font-size: 14px; color: #373737; line-height: 1.7;
}
/* The original prints multi-value answers as plain comma-separated text, not
   chips — inside a vitals box, render them that way. */
.pb-style-capability .custom-profile-field-card .pb-chips { display: inline; }
.pb-style-capability .custom-profile-field-card .pb-chip {
  display: inline; background: none; border: 0; padding: 0; border-radius: 0;
  color: inherit; font-weight: inherit; font-size: inherit;
}
.pb-style-capability .custom-profile-field-card .pb-chip:not(:last-child)::after { content: ", "; }
.pb-style-capability .pb-tags { justify-content: flex-start; }
.pb-style-capability .pb-media-img { border-radius: 6px; max-width: 220px; }
.pb-style-capability .pb-hero-body > .pb-identity .profile-name { font-size: 40px; color: #373737; }
.pb-style-capability .pb-hero-body > .pb-identity .profile-name::after { display: none; }
.pb-style-capability .pb-tl-item::before { border-color: var(--pb-accent); }
@media (max-width: 640px) {
  .pb-style-capability .custom-profile-section h2.section-title { font-size: 26px; }
  .pb-style-capability .pb-hero-body > .pb-identity .profile-name { font-size: 28px; }
}
.pb-style-minimal .pb-media-img { border-radius: 50%; border: 0; max-width: 160px; }
.pb-style-minimal .pb-chip { background: transparent; border: 1px solid var(--pb-ink); border-radius: 0; }
.pb-style-minimal .pb-tag { border-radius: 0; }
.pb-style-minimal .pb-tag-level { background: var(--pb-ink); color: #fff; border-left: 0; }
.pb-style-minimal .pb-tl-item::before { border-color: var(--pb-ink); }
.pb-style-minimal .pb-tl-range { color: var(--pb-muted); }
.pb-style-minimal .pb-hero-body > .pb-identity .profile-name::after { background-color: var(--pb-ink); width: 40px; height: 2px; }
.pb-style-minimal .custom-field-label { font-weight: 600; letter-spacing: 2px; }
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

