/* pb-record2.css: D-CBO-331 builder file (see the builder brief). The Record page family (pb-record.js): one frame for every Record,
   the head (option A), the Record tabs, a Main and a Side Area on the 12-column grid (D-CBO-323), Sections of Kit Cards; and #records, the sheet.
   Every size is even (D-CBO-330); 1 px hairlines only. */

/* ---------- the Areas: Main 8 columns, Side 4; on a narrow page the Side follows the Main ---------- */
.pb-rf .pb-rfareas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.pb-rf .pb-rfarea { min-width: 0; container-type: inline-size; }
.pb-rf .pb-rfarea.main { grid-column: span 8; }
.pb-rf .pb-rfarea.side { grid-column: span 4; }
.pb-rf .pb-rfarea.main:only-child { grid-column: 1 / -1; }
@container page (max-width: 880px) {
  .pb-rf .pb-rfareas { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pb-rf .pb-rfarea.main, .pb-rf .pb-rfarea.side { grid-column: 1 / -1; }
}
/* the shared Persona design sits in the Main as it was made on the canvas */
.pb-rf .pb-rfarea.main > .pb-sec:first-child { margin-top: 0; }
.pb-rf .pb-rfarea.main > .pb-sec .pb-sechead { margin-left: 0; margin-right: 0; padding-left: 0; }

/* ---------- a Section: its title and count, then its Cards on the Area's 12 columns ---------- */
.pb-rfsec + .pb-rfsec { margin-top: 40px; }
.pb-rfsech { display: flex; align-items: center; gap: 8px; height: 32px; margin: 0 0 8px; }
.pb-rfsech h2 { margin: 0; font: 600 var(--fs-sm)/24px var(--font); color: var(--ink-2); }
.pb-rfn { font: 400 var(--fs-sm)/24px var(--font); color: var(--ink-3); }
.pb-rfline { margin-left: auto; font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.pb-rfcards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pb-rfcards > * { min-width: 0; }
@container (max-width: 560px) {
  .pb-rfcards > * { grid-column: 1 / -1 !important; }
}

/* ---------- Cards ---------- */
.pb-rfcard { container-type: inline-size; }
.pb-rfcard.nohead .pb-cb { padding-right: 48px; }
.pb-rfcard .pb-ch .k-chip { flex: none; margin-top: 4px; }
.pb-rfslot { min-width: 0; display: flex; }
.pb-rfslot > .ckc { flex: 1; }
.pb-rfslot:empty { min-height: 280px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-rest); }
.pb-rfwide { align-self: stretch; justify-content: center; margin-top: 12px; }
.pb-rfmute { color: var(--ink-3); }

/* the Kit's list rows (COMPONENT_SPEC 2.1) */
.pb-rfrows { list-style: none; margin: 0; padding: 0; }
.pb-rfrows li + li { border-top: 1px solid var(--hairline); }
.pb-rfrows li > a, .pb-rfrows li > div { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.pb-rfrows li > a:hover .pb-rfrt b { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.pb-rfrows .icon.msr { flex: none; font-size: 20px; width: 20px; height: 20px; color: var(--ink-3); }
.pb-rfrows .icon.msr.pb-rfgo { font-size: 16px; width: 16px; height: 16px; margin-top: 2px; color: var(--ink-4); }
.pb-rfrn { flex: none; width: 20px; font: 500 var(--fs-xs)/20px var(--font); color: var(--ink-3); text-align: center; }
.pb-rfrt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pb-rfrt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 500 var(--fs-sm)/20px var(--font); color: var(--ink); }
.pb-rfrt small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.pb-rfrows .k-chip { flex: none; }

/* the Data tab's Tables */
.pb-rftbl { grid-column: 1 / -1; overflow-x: auto; }
.pb-rftbl .pb-ltable { width: 100%; }
.pb-rftbl td .icon.msr { font-size: 16px; width: 16px; height: 16px; vertical-align: -2px; color: var(--ink-4); }

/* ---------- the head, option A: picture or mark, name, one line, chips, All Properties ---------- */
.pb-rfvis { grid-area: pic; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 160px; height: 160px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-rest); }
.pb-rfvis.mark > .icon.msr { font-size: 48px; width: 48px; height: 48px; color: var(--v-600); }
.pb-rfvis.mark > b { font: 400 var(--fs-xl)/28px var(--font-serif); color: var(--ink); }
.pb-rfvis.mark.k-work { background: var(--accent-soft); box-shadow: none; }
.pb-rfvis.mark.k-work > b { color: var(--on-accent-soft); }
.pb-rfvis.prod { height: 160px; background: var(--white); }
.pb-rfvis .pb-rfev { margin-top: -4px; }
/* one product, not the pack (D-CBO-304): a single carton cut from the pack shot of four in a row (the right-hand carton, 118 x 327 of 640) */
.pb-rfone { position: relative; display: block; height: 144px; aspect-ratio: 1 / 1; overflow: hidden; }
.pb-rfone img, .pb-tprods .pb-rfone img { position: static; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.pb-rfone.sm { height: 88px; }
.pb-rfhead .pb-pname h1 { font-size: 40px; line-height: 48px; }
.pb-rfhead.long .pb-pname h1 { font-size: 32px; line-height: 40px; }
.pb-rfhead .pb-pname .pb-age { font-size: var(--fs-md); line-height: 24px; font-family: var(--font); }
@media (min-width: 768px) {
  .pb-rf .pb-rfhead .pb-pname { padding-right: 320px; }
}
@media (max-width: 767px) {
  .pb-rfvis { width: 96px; height: 96px; gap: 4px; }
  .pb-rfvis.mark > .icon.msr { font-size: 32px; width: 32px; height: 32px; }
  .pb-rfvis.mark > b { font-size: var(--fs-sm); line-height: 20px; }
  .pb-rfvis .pb-rfev { display: none; }
  .pb-rfvis.prod { height: 96px; }
  .pb-rfone { height: 88px; }
  .pb-rfhead .pb-pname h1 { font-size: 28px; line-height: 36px; }
  .pb-rfhead.long .pb-pname h1 { font-size: 20px; line-height: 28px; }
}

/* the grade: three bars, as the Library shows evidence strength */
.pb-rfev { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.pb-rfev i { display: block; width: 4px; border-radius: 1px; background: var(--v-600); }
.pb-rfev i:nth-child(1) { height: 6px; } .pb-rfev i:nth-child(2) { height: 10px; } .pb-rfev i:nth-child(3) { height: 16px; }
.pb-rfgrade { display: flex; align-items: center; gap: 12px; }
.pb-rfgrade b { font: 400 40px/48px var(--font-serif); letter-spacing: -.02em; color: var(--ink); }
.pb-rfgrade .pb-rfev { height: 24px; gap: 4px; }
.pb-rfgrade .pb-rfev i { width: 6px; }
.pb-rfgrade .pb-rfev i:nth-child(1) { height: 10px; } .pb-rfgrade .pb-rfev i:nth-child(2) { height: 16px; } .pb-rfgrade .pb-rfev i:nth-child(3) { height: 24px; }
.pb-rfcard .pb-kdl > div { grid-template-columns: minmax(0, 1fr) auto; }
.pb-rfcard .pb-achain { margin: 0; }

/* ---------- kind parts ---------- */
.pb-rftrack { margin: 4px 0 0; }
.pb-rfwait { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font: 400 var(--fs-sm)/20px var(--font); color: var(--ink-2); }
.pb-rfwait .icon.msr { color: var(--ink-3); }
.pb-rfopts, .pb-rfrec { margin: 0; }
.pb-rfwho { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.pb-rfask .pb-cb { gap: 12px; }
.pb-rfask .pb-asim { align-self: flex-start; }
.pb-rfask .pb-qm > .pb-pini { width: 40px; height: 40px; }
.pb-rfask .pb-qm p { font-size: var(--fs-sm); line-height: 22px; }
.pb-rfaskin { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); color: var(--ink-3); font: 400 var(--fs-sm)/20px var(--font); text-decoration: none; }
.pb-rfaskin > span:not(.icon) { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pb-rfaskin:hover { border-color: var(--line-strong); color: var(--ink); }
.pb-rfaskin .icon.msr { color: var(--v-600); }
/* the Price ladder fills its Card: the rows spread over the whole height (parts fill the frame) */
.pb-rfladder { flex: 1; justify-content: space-between; gap: 8px; padding-top: 4px; padding-bottom: 4px; }
.pb-rfladder > div { grid-template-columns: 56px 12px minmax(0, 1fr); font-size: var(--fs-sm); line-height: 20px; }
.pb-rfshelf { grid-template-columns: minmax(0, 1fr); }
.pb-rfshelf .pb-qshelf { padding: 16px; }
.pb-rfshelf .pb-qrowl { font: 500 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.pb-rfrange { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pb-rfrange a { justify-content: flex-end; min-height: 128px; }
.pb-rfrange a.on { box-shadow: inset 0 0 0 2px var(--v-600); }
.pb-rfrange img { width: 64px; height: 88px; }
.pb-rfplan { margin: 0; }
.pb-rffoots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (max-width: 560px) { .pb-rffoots { grid-template-columns: minmax(0, 1fr); } }

.pb-rffoot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.pb-rffoot a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.pb-rffoot a:hover { color: var(--ink); }
.pb-rffoot .icon.msr { font-size: 16px; width: 16px; height: 16px; }

/* ---------- #records: the sheet ---------- */
.pb-rfsheet .pb-hplead { max-width: 720px; }
.pb-rfanat { display: grid; gap: 8px; margin: 8px 0 32px; padding: 16px; border-radius: var(--r-card); background: var(--surface-2); }
.pb-rfanat b { display: block; font: 600 var(--fs-xs)/16px var(--font); color: var(--ink); }
.pb-rfanat span { font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.pb-rfa-head { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-control); background: var(--surface); }
.pb-rfa-pic { flex: none; width: 40px; height: 40px; border-radius: var(--r-control); background: var(--surface-3); }
.pb-rfa-tabs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 12px; border-bottom: 1px solid var(--line-strong); }
.pb-rfa-areas { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.pb-rfa-main, .pb-rfa-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-control); }
.pb-rfa-main i, .pb-rfa-side i { display: block; height: 24px; border-radius: var(--r-control); background: var(--surface); box-shadow: var(--shadow-rest); }
.pb-rfkinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1279px) { .pb-rfkinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .pb-rfkinds { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pb-rfa-areas { grid-template-columns: minmax(0, 1fr); }
}
.pb-rfkind { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-rest); overflow: hidden; }
.pb-rfmini { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ground); border-bottom: 1px solid var(--hairline); }
.pb-rfmini:focus-visible { outline: 2px solid var(--focus-color); outline-offset: -2px; }
.pb-rfmini-in { position: absolute; left: 0; top: 0; width: 1200px; transform-origin: 0 0; transform: scale(var(--s, .2)); pointer-events: none; }
.pb-rfmini-in .pb-recview { max-width: none; }
.pb-rfmini-in .pb-racts { position: absolute; }
.pb-rfktx { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 20px; }
.pb-rfkick { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-md)/24px var(--font); color: var(--ink); }
.pb-rfkick .icon.msr { color: var(--v-600); }
.pb-rfkline { margin: 0; font: 400 var(--fs-md)/24px var(--font-serif); color: var(--ink); }
.pb-rfobjs { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-rfkdl { margin: 0; }
.pb-rfkdl > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--hairline); font: 400 var(--fs-xs)/16px var(--font); }
.pb-rfkdl dt { color: var(--ink-3); }
.pb-rfkdl dd { margin: 0; color: var(--ink-2); }
.pb-rfkgo { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 4px; }
.pb-rfkgo .btn { max-width: 100%; }
.pb-rfkgo .btn span:not(.icon) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pb-rfkgo { flex-direction: column; align-items: flex-start; }
.pb-rfex { font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.pb-rfex a { color: var(--v-700); font-weight: 500; text-decoration: none; }
.pb-rfex a:hover { text-decoration: underline; }

/* ---------- rows on a grid: the chip moves under the title when the Area is narrow ---------- */
.pb-rfrows li > .pb-rfrow { display: grid; grid-template-columns: 20px minmax(0, 1fr); grid-template-areas: 'ic t'; column-gap: 12px; align-items: start; }
.pb-rfrows li > .pb-rfrow.pb-rfc { grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: 'ic t chip'; }
.pb-rfrows li > .pb-rfrow.pb-rfg { grid-template-columns: 20px minmax(0, 1fr) 16px; grid-template-areas: 'ic t go'; }
.pb-rfrows li > .pb-rfrow.pb-rfc.pb-rfg { grid-template-columns: 20px minmax(0, 1fr) auto 16px; grid-template-areas: 'ic t chip go'; }
.pb-rflead { grid-area: ic; display: flex; justify-content: center; }
.pb-rfrow > .pb-rfrt { grid-area: t; }
.pb-rfchip { grid-area: chip; display: flex; }
.pb-rfrow > .pb-rfgo { grid-area: go; }
@container (max-width: 440px) {
  .pb-rfrows li > .pb-rfrow.pb-rfc { grid-template-columns: 20px minmax(0, 1fr); grid-template-areas: 'ic t' '. chip'; row-gap: 6px; }
  .pb-rfrows li > .pb-rfrow.pb-rfc.pb-rfg { grid-template-columns: 20px minmax(0, 1fr) 16px; grid-template-areas: 'ic t go' '. chip .'; }
}
/* the Proof chain, compact inside a Card */
.pb-achain.pb-rfchain { padding: 0; }
.pb-achain.pb-rfchain li { padding-bottom: 12px; }
.pb-achain.pb-rfchain li::before { top: 32px; }
.pb-achain.pb-rfchain li > div { padding: 4px 0 0; background: none; box-shadow: none; border-radius: 0; }
.pb-achain.pb-rfchain b { font: 400 var(--fs-sm)/20px var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- the people kind: the canvas's own Areas, read on the published page ---------- */
.pb-rf-people .pb-rfcanvas .pb-arow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.pb-rf-people .pb-rfcanvas .pb-arow + .pb-arow { margin-top: 40px; }
.pb-rf-people .pb-rfcanvas .pb-area { grid-column: span var(--span, 12); min-width: 0; container-type: inline-size; }
.pb-rf-people .pb-rfcanvas .pb-abody > .pb-sec:first-child, .pb-rf-people .pb-rfcanvas .pb-abody > .pb-rfsec:first-child { margin-top: 0; }
.pb-rf-people .pb-rfcanvas .pb-abody > .pb-rfsec, .pb-rf-people .pb-rfcanvas .pb-abody > .pb-sec + .pb-sec, .pb-rf-people .pb-rfcanvas .pb-abody > .pb-rfsec + .pb-sec { margin-top: 40px; }
.pb-rf-people .pb-rfcanvas .pb-abody > .pb-rfsec:first-child { margin-top: 0; }
.pb-rf-people .pb-rfcanvas .pb-sechead { margin-left: 0; margin-right: 0; padding-left: 0; }
.pb-rf-people .pb-rfcanvas .pb-grid[data-cols] { grid-template-columns: repeat(var(--cols, 12), minmax(0, 1fr)); --cell: calc((100cqw - (var(--cols, 12) - 1) * var(--gap)) / var(--cols, 12)); }
.pb-rf-people .pb-rfcanvas + .pb-rfareas { margin-top: 40px; }
@container page (max-width: 880px) {
  .pb-rf-people .pb-rfcanvas .pb-arow { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pb-rf-people .pb-rfcanvas .pb-area { grid-column: 1 / -1; order: var(--ord, 0); }
}
.pb-rf-people .pb-rfcanvas .pb-sechead { border-left-width: 0; }
.pb-rfsech h2 { padding: 0 4px; }
/* the Recommend band: its icon keeps the icon font (.pb-srec span would set Inter on it) */
.pb-rfrec > .icon.msr { font: 400 28px/1 'Material Symbols Rounded'; width: 28px; height: 28px; }
@media (max-width: 767px) {
  #pb-record .pb-recview > .pb-racts { flex-wrap: wrap; justify-content: flex-start; }
}
/* All Properties: a long Value wraps inside the panel */
#pb-record .pb-allp dd { min-width: 0; }
#pb-record .pb-allp .pb-pval { max-width: 100%; white-space: normal; text-align: left; }
#pb-record .pb-allp .pb-linkchip { max-width: 100%; height: auto; min-height: 24px; white-space: normal; }

/* ---------- the head picture: a logo for a Brand, a photo for a Store, a Segment or a Moment ---------- */
.pb-rfvis.logo { background: var(--white); }
.pb-rfvis.logo img { max-width: 72%; max-height: 72%; object-fit: contain; }
.pb-rfvis.photo { overflow: hidden; background: var(--surface-2); }
.pb-rfvis.photo img { width: 100%; height: 100%; object-fit: cover; }
.pb-rfrange.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container (max-width: 560px) { .pb-rfrange.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pb-rffaces { margin: 0; }
.pb-rfcard.pb-tverd .pb-cb { padding-top: 20px; }
/* a Gallery funnel fills its Card too */
.pb-rfcard .pb-gbf { justify-content: space-around; }
/* a disclosure label on a Card without a head stays visible, at the top of its body */
.pb-rflab { align-self: flex-start; margin-bottom: 12px; }
/* faces: two across in a narrow Area; a Persona with no portrait shows an initial at the portrait's size */
@container (max-width: 440px) { .pb-rffaces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pb-rffaces .pb-rfini { width: 56px; height: 56px; font-size: var(--fs-xl); }
