/* B/449: the Vitruvius ribbon in the home hero, drawn in the light Revit look (בצלאל 449 Addendum 1) and framed as detail 1 on the sheet
   (option A "פרט מוגדל"). The ribbon greys are design targets warmed 2-3 points toward the paper; the frame and the bubble are the sheet's ink,
   paper and clay. The whole strip is sized in em, so it scales down with its column (container query) and never up. No inline CSS. */
.rbfig {
  --rb-tabrow: var(--vit-ribbon-tabrow); --rb-tab-text: var(--vit-ribbon-tab-text); --rb-tab-active: var(--vit-ribbon-tab-active); --rb-tab-active-text: var(--vit-ribbon-tab-active-text);
  --rb-panel: var(--vit-ribbon-panel); --rb-panel-title: var(--vit-ribbon-panel-title); --rb-panel-title-text: var(--vit-ribbon-panel-title-text); --rb-border: var(--vit-ribbon-border);
  --rb-btn-text: var(--vit-ribbon-btn-text); --rb-hover: var(--vit-ribbon-hover);
  position: relative; margin: 24px 0 16px; padding: 0; container-type: inline-size; max-width: 100%;
}
/* the detail tag "1" on the outer top corner, the same circle as the sheet's grid bubbles */
.rbtag { position: absolute; inset-block-start: -8px; inset-inline-start: -8px; z-index: 1; display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--vit-ink); border-radius: 50%; background: var(--vit-paper); font-family: var(--vit-f-mono); font-size: 9px; color: var(--vit-ink); }
/* the 1 px ink frame (a document pasted on the sheet: square, no shadow). Wider than the column (a phone) -> it scrolls inside, the page never does.
   ribbon.js opens it scrolled to the DWG panel (about 24 px of the Vitruvius panel peeking in) and fades its far edge over 24 px while there is more to see. */
.rbwrap { width: fit-content; max-width: 100%; border: 1px solid var(--vit-ink); background: var(--vit-paper); }
.rbscroll { overflow-x: auto; overscroll-behavior-x: contain; }
.rbfig.more .rbscroll { -webkit-mask-image: linear-gradient(to left, transparent, var(--vit-ribbon-mask) 24px); mask-image: linear-gradient(to left, transparent, var(--vit-ribbon-mask) 24px); }
/* 10.5 px base at the least (labels >= 9.6 px): the strip scales DOWN with its column to that floor and never up; under it, it scrolls */
.rb { font-size: clamp(10.5px, calc((100cqi - 4px) / 57), 12px); width: max-content; border: 1px solid var(--rb-border); background: var(--rb-panel); color: var(--rb-btn-text); font-family: var(--vit-f-heb); line-height: 1.15; text-align: center; -webkit-user-select: none; user-select: none; }
.rb .lat { font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; }
/* the tab row: short, its left end fading out; Vitruvius is the only active tab and opens into the panels */
.rb-tabs { display: flex; align-items: flex-end; height: 2em; padding-inline-start: .5em; background: var(--rb-tabrow); border-bottom: 1px solid var(--rb-border); -webkit-mask-image: linear-gradient(to right, transparent, var(--vit-ribbon-mask) 32px); mask-image: linear-gradient(to right, transparent, var(--vit-ribbon-mask) 32px); }
.rb-tab { padding: 0 .9em; height: 1.75em; display: grid; place-items: center; font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; font-size: 1em; color: var(--rb-tab-text); white-space: nowrap; }
.rb-tab.on { background: var(--rb-tab-active); color: var(--rb-tab-active-text); font-weight: 600; border: 1px solid var(--rb-border); border-bottom: 0; margin-bottom: -1px; height: calc(1.75em + 1px); }
.rb-panels { display: flex; align-items: stretch; }
.rb-panel { display: flex; flex-direction: column; border-inline-end: 1px solid var(--rb-border); }
.rb-row { display: flex; align-items: flex-start; gap: .15em; height: 6.4em; padding: .3em .3em 0; }
.rb-ptitle { height: 1.5em; display: grid; place-items: center; padding: 0 .6em; background: var(--rb-panel-title); color: var(--rb-panel-title-text); font-size: .917em; white-space: nowrap; }
/* a button: large = 32 px icon over a two-line label; small = 16 px icon beside a one-line label, two per stack */
.rb-btn { position: relative; cursor: pointer; color: var(--rb-btn-text); outline: none; }
.rb-btn:hover:not([aria-expanded="true"]) { background: var(--rb-hover); }
.rb-btn.lg { display: flex; flex-direction: column; align-items: center; min-width: 3.4em; padding: .25em .3em .3em; }
.rb-btn.lg .rb-ico { width: 2.667em; height: 2.667em; margin-bottom: .2em; flex: none; }
.rb-btn .rb-l { display: block; font-size: .917em; white-space: nowrap; }
.rb-btn.split .rb-arrow { width: 0; height: 0; margin-top: .25em; border-inline: .3em solid transparent; border-top: .35em solid var(--rb-btn-text); }
.rb-stack { display: flex; flex-direction: column; gap: .2em; padding-top: .3em; }
.rb-btn.sm { display: flex; align-items: center; gap: .35em; height: 1.833em; padding: 0 .4em 0 .25em; }
.rb-btn.sm .rb-ico { width: 1.333em; height: 1.333em; flex: none; }
/* hover / keyboard focus: a 1.5 px clay line 2 px inside the cell; open: the same line, solid. Focus is visible without the mouse. */
.rb-btn:focus-visible { outline: 1.5px dashed var(--vit-clay); outline-offset: -3.5px; }
.rb-btn[aria-expanded="true"] { outline: 1.5px solid var(--vit-clay); outline-offset: -3.5px; background: none; }   /* no tint behind a ribbon glyph (founder 03.11): the outline only */
@media (hover: hover) { .rb-btn:hover { outline: 1.5px dashed var(--vit-clay); outline-offset: -3.5px; } .rb-btn[aria-expanded="true"]:hover { outline-style: solid; } }

/* the caption as a detail title: "פרט 1 · ..." over a 1 px ink rule, the version small beside it. Heebo, never mono. */
.rbcap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5em; margin-top: 8px; font-family: var(--vit-f-heb); font-size: 12px; color: var(--vit-ink); }
.rbcap-t { font-weight: 600; padding-bottom: 2px; border-bottom: 1px solid var(--vit-ink); }
.rbcap-v { color: var(--vit-ink-3); font-size: 11px; }

/* the bubble: paper, a 1 px ink border, square, a hard 1 px offset line, an 8 px pointer that flips to stay in view */
.rbbs { position: absolute; inset: 0; pointer-events: none; }
.rbb { position: absolute; top: 0; left: 0; z-index: 30; box-sizing: border-box; width: max-content; max-width: min(260px, calc(100vw - 16px)); padding: 10px 12px; background: var(--vit-paper); border: 1px solid var(--vit-ink); border-radius: 0; box-shadow: 0 1px 0 var(--vit-ink); color: var(--vit-ink); font-family: var(--vit-f-heb); text-align: start; pointer-events: auto; }
.rbb-n { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rbb-d { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--vit-ink); opacity: .8; }
.rbb-free { font-size: 11px; font-weight: 500; line-height: 1; padding: 2px 5px; border: 1px solid var(--vit-clay); color: var(--vit-clay-text); }
.rbb-a { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--vit-clay-text); text-decoration: none; }
.rbb-a:hover, .rbb-a:focus-visible { text-decoration: underline; }
.rbb-a:focus-visible { outline: 1.5px solid var(--vit-clay); outline-offset: 2px; }
.rbb-ptr { position: absolute; top: -5px; left: var(--rbb-ptr, 50%); width: 8px; height: 8px; margin-left: -4px; background: var(--vit-paper); border-top: 1px solid var(--vit-ink); border-left: 1px solid var(--vit-ink); transform: rotate(45deg); }
.rbb.up .rbb-ptr { top: auto; bottom: -5px; transform: rotate(225deg); }
@media (prefers-reduced-motion: no-preference) {
  .rbb:not([hidden]) { animation: rbb-in 120ms ease-out; }
  .rbb.up:not([hidden]) { animation-name: rbb-in-up; }
}
@keyframes rbb-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes rbb-in-up { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* the desktop hero: the text column takes about 80 px from the art column (it never overhangs it), so the strip shows at >= 90% at 1366 (בצלאל 449 review) */
@media (min-width: 1200px) { #hero .hero-sheet { grid-template-columns: minmax(0, 1fr) minmax(0, calc((100% - var(--vit-space-6)) * .425 - 80px)); } }
/* the same 80 px while the film pins the hero (vm.css sets 1fr 1fr there; the film and its loop are untouched, only its column is 80 px narrower) */
@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) { #hero.vm-pin .hero-sheet { grid-template-columns: minmax(0, 1fr) minmax(0, calc((100% - var(--vit-space-6)) * .5 - 80px)); } }
