/* r6 hub (A cards, B loop, C bento), nav chips and the illustration classes (.ffa*). Layout and illustration only: DS components keep their own look. */

/* ---------- nav: New chips, caret fade-in ---------- */
.ff-navnew { margin-left: 6px; transition: opacity 180ms ease, transform 180ms ease; }
.ff-navnew::before { content: "New"; }
.ff-navnew.is-out { opacity: 0; transform: scale(.8); }
.ds-menu a:has(.ff-navnew) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ds-tab.menu.ff-in { animation: ffPulse .9s ease-out; }
.ds-tab.menu.ff-in::before { animation: ffCaret .45s cubic-bezier(.2, 0, 0, 1) both; }
@keyframes ffCaret { from { opacity: 0; translate: -6px 0; scale: .6; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes ffPulse { 0% { background: var(--brand-15); } 100% { background: transparent; } }
.ff-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- illustrations ---------- */
.ffa { display: block; overflow: visible; max-width: none; }
.ffa--tile { width: 48px; height: 48px; }
.ffa--hero { width: 100%; height: auto; }
.ffa-wh { fill: #fff; } .ffa-wh70 { fill: #fff; fill-opacity: .8; } .ffa-wh50 { fill: #fff; fill-opacity: .55; }
.ffa-n50 { fill: var(--neutral-50); } .ffa-n100 { fill: var(--neutral-100); } .ffa-n200 { fill: var(--neutral-200); }
.ffa-b10 { fill: var(--brand-10); } .ffa-b15 { fill: var(--brand-15); } .ffa-b25 { fill: var(--brand-25); } .ffa-b50 { fill: var(--brand-50); } .ffa-b100 { fill: var(--brand-100); } .ffa-b300 { fill: var(--brand-300); }
.ffa-green { fill: var(--green-10); }
.ffa-st30 { stroke: var(--brand-30); stroke-width: 1.5; }
.ffa-dash { stroke-dasharray: 5 5; }
.ffa-t { font-family: var(--font), Rubik, sans-serif; font-weight: 500; }
.ffa-fb300 { fill: var(--brand-300); } .ffa-fb100 { fill: var(--brand-100); } .ffa-fgreen { fill: var(--type-success); } .ffa-fn400 { fill: var(--neutral-400); } .ffa-fink { fill: var(--neutral-600); }
.ffa-lines path:not(.ffa-b100) { fill: none; stroke: var(--brand-50); stroke-width: 2; stroke-dasharray: 4 5; stroke-linecap: round; }
.ffa-s { transform-box: fill-box; transform-origin: center; animation: ffaSettle .42s cubic-bezier(.2, 0, 0, 1) both; }
.ffa-s2 { animation-delay: .08s; } .ffa-s3 { animation-delay: .16s; }
.ffa-c1 { animation: ffaSnap .42s cubic-bezier(.2, 0, 0, 1) .06s both; } .ffa-c2 { animation: ffaSnap .42s cubic-bezier(.2, 0, 0, 1) .12s both; } .ffa-c3 { animation: ffaSnap .42s cubic-bezier(.2, 0, 0, 1) .18s both; }
@keyframes ffaSettle { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ffaSnap { from { opacity: 0; transform: translateY(-14px) rotate(-4deg); } to { opacity: 1; transform: none; } }

/* ---------- page ---------- */
.fh-page .fh { width: 100%; max-width: none; } /* fills the same container as the header and the Testimonials dashboard (1500 cap) */
.fh-page .fh--b, .fh-page .fh--c { max-width: 1280px; }
.fh-page { padding-bottom: 88px; }

/* status line, tag chip, ring, spinner */
.fh-st { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.fh-st__s { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-width: 0; font: var(--body-sm); color: var(--type-secondary); }
.fh-st__t { min-width: 0; }
.fh-tag { flex: none; }
.fh-ring { width: 18px; height: 18px; flex: none; }
.fh-ring__bg { fill: none; stroke: var(--neutral-75); stroke-width: 3; }
.fh-ring__fg { fill: none; stroke: var(--brand-100); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray .5s ease; }
.fh-spin { width: 16px; height: 16px; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--neutral-75); border-top-color: var(--brand-100); animation: fhSpin .9s linear infinite; }
@keyframes fhSpin { to { transform: rotate(360deg); } }

/* card (A, and the shared base) */
.fh-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 440px; padding: 28px; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-24); box-shadow: 0 1px 2px rgba(15, 20, 40, .04), 0 10px 28px -16px rgba(15, 20, 40, .14); }
.fh-card__t { margin: 16px 0 4px; font: 500 20px/28px var(--font); color: var(--type-primary); }
.fh-card__d { margin: 0; max-width: 34ch; font: var(--body-md); color: var(--type-secondary); }
.fh-card__art { position: absolute; right: -44px; bottom: -22px; width: min(124%, 520px); pointer-events: none; }
.fh-card__art svg { width: 100%; height: auto; }
.fh-card__act { position: relative; z-index: 1; margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fh-card__act > * { max-width: 100%; }
.fh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ---------- B: the loop ---------- */
.fh-loop { display: grid; grid-template-columns: minmax(0, 1fr) 72px 220px 72px minmax(0, 1fr); align-items: stretch; }
.fh-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fh-lbl { margin: 0; height: 16px; font: 500 12px/16px var(--font); color: var(--type-secondary); }
.fh-card--cap { min-height: 0; flex: 1; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; align-content: start; padding: 20px; border-radius: var(--radius-16); }
.fh-card--cap > * { grid-column: 2; }
.fh-card--cap .fh-card__tile { grid-column: 1; grid-row: 1 / span 4; }
.fh-card--cap .fh-card__tile svg { width: 64px; height: 64px; }
.fh-card--cap .fh-card__t { margin-top: 12px; font-size: 18px; line-height: 24px; }
.fh-card--cap .fh-card__act { margin-top: 0; padding-top: 16px; }
.fh-card--dis { flex: 1; min-height: 470px; }
.fh-card--dis .fh-card__art { width: 104%; right: -32px; }
.fh-con { position: relative; display: flex; flex-direction: column; padding-top: 32px; }
.fh-con__h { flex: 1; width: 100%; overflow: visible; }
.fh-con__v { display: none; }
.fh-ln { fill: none; stroke: var(--neutral-100); stroke-width: 2; stroke-dasharray: 4 5; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke .3s ease; }
.fh-ln.is-on { stroke: var(--brand-200); stroke-dasharray: 7 7; animation: fhFlow 1.4s linear infinite; }
@keyframes fhFlow { to { stroke-dashoffset: -28; } }
.fh-con--l::after, .fh-con--r::after { content: ""; position: absolute; right: -1px; top: calc(50% + 16px); width: 8px; height: 8px; border-top: 2px solid var(--neutral-100); border-right: 2px solid var(--neutral-100); transform: translateY(-50%) rotate(45deg); transition: border-color .3s ease; }
.fh-con.is-on::after { border-color: var(--brand-200); }
.fh-nodew { display: flex; flex-direction: column; justify-content: center; padding-top: 32px; }
.fh-node { display: grid; justify-items: center; gap: 8px; padding: 20px 16px; text-align: center; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-16); box-shadow: 0 1px 2px rgba(15, 20, 40, .04), 0 10px 28px -16px rgba(15, 20, 40, .14); transition: border-color .3s ease; }
.fh-node.is-on { border-color: var(--brand-30); }
.fh-node__t { margin: 0; font: 500 16px/22px var(--font); color: var(--type-primary); }
.fh-node__d { margin: 0; font: var(--body-sm); }
.fh-node__c { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.fh-node__c a { display: grid; gap: 0; justify-items: center; padding: 6px 2px; border-radius: var(--radius-8); text-decoration: none; color: var(--type-primary); transition: background-color .15s ease; }
.fh-node__c a:hover { background: var(--brand-10); }
.fh-node__c a:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 1px; }
.fh-node__c b { font: 500 24px/28px var(--font); }
.fh-node__c span { font: var(--body-sm); color: var(--type-secondary); }

/* ---------- C: bento ---------- */
.fh-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fh-hero { grid-column: 1 / 3; grid-row: 1 / 3; min-height: 520px; }
.fh-card--tile { grid-column: 3 / 5; min-height: 248px; }
.fh-card--tile .fh-card__t, .fh-card--tile .fh-card__d { max-width: 46%; }
.fh-card--tile .fh-card__art { width: 60%; right: -22px; bottom: -34px; }
.fh-pv { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 230px; margin: 20px -28px 0 0; background: var(--surface-screen); border: 1px solid var(--stroke-secondary); border-right: 0; border-radius: 12px 0 0 12px; box-shadow: 0 12px 30px -12px rgba(15, 20, 40, .25); overflow: hidden; }
.fh-pv__bar { display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; background: var(--neutral-50); border-bottom: 1px solid var(--stroke-tertiary); }
.fh-pv__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral-100); }
.fh-pv__bar span { margin-left: 10px; padding: 2px 10px; border-radius: var(--radius-full); background: #fff; font: 400 11px/16px var(--font); color: var(--type-secondary); }
.fh-pv__pg { display: flex; flex-direction: column; padding: 20px; background: linear-gradient(180deg, #fff, var(--brand-10)); flex: 1; }
.fh-pv__h { margin: 0 0 14px; font: 500 16px/22px var(--font); color: var(--type-primary); }
.fh-pv__g { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fh-pv__c { position: relative; overflow: hidden; min-height: 112px; padding: 12px; background: #fff; border: 1px solid var(--stroke-tertiary); border-radius: 10px; box-shadow: 0 4px 10px -6px rgba(15, 20, 40, .18); }
.fh-pv__c i { display: block; height: 8px; margin-bottom: 8px; border-radius: 4px; background: var(--neutral-75); }
.fh-pv__c i:nth-child(2) { width: 84%; } .fh-pv__c i:nth-child(3) { width: 62%; }
.fh-pv__av { display: block; width: 22px; height: 22px; margin-top: 14px; border-radius: 50%; background: var(--neutral-75); }
.fh-pv__c p { margin: 6px 0 8px; font: 400 12px/17px var(--font); color: var(--type-primary); }
.fh-pv__s { display: flex; gap: 2px; color: var(--brand-100); }
.fh-pv__n { font: 500 11px/14px var(--font); color: var(--type-secondary); }
.fh-pv--off .fh-pv__pg { opacity: .6; }
.fh-pv--off .fh-pv__c::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .8) 50%, transparent 70%); transform: translateX(-100%); animation: fhShim 2.4s ease-in-out infinite; }
.fh-pv--off .fh-pv__c:nth-child(2)::after { animation-delay: .2s; } .fh-pv--off .fh-pv__c:nth-child(3)::after { animation-delay: .4s; }
@keyframes fhShim { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.fh-pv--building .fh-pv__c { animation: fhAsm 1.9s cubic-bezier(.2, 0, 0, 1) infinite; animation-delay: calc(var(--i) * .22s); }
@keyframes fhAsm { 0% { opacity: .15; transform: translateY(14px) scale(.96); } 35%, 85% { opacity: 1; transform: none; } 100% { opacity: .15; transform: translateY(-4px); } }
.fh-pv--on .fh-pv__c { animation: fhRise .5s cubic-bezier(.2, 0, 0, 1) both; animation-delay: calc(var(--i) * .08s); }
@keyframes fhRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fh-needs { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 14px 20px; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-16); }
.fh-needs p { flex: 1; margin: 0; min-width: 0; font: var(--body-md); color: var(--type-primary); }
.fh-needs b { font-weight: 500; }

/* ---------- review switcher (prototype only) ---------- */
.fh-sw { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; background: var(--surface-screen); border: 1px solid var(--stroke-secondary); border-radius: var(--radius-full); box-shadow: 0 10px 28px -10px rgba(15, 20, 40, .3); animation: ffaSettle .35s cubic-bezier(.2, 0, 0, 1) both; }
.fh-sw__l { font: var(--body-sm); color: var(--type-secondary); white-space: nowrap; }
.fh-sw .ds-seg { border-radius: var(--radius-full); }
.fh-sw .ds-seg .seg-in { white-space: nowrap; height: 32px; padding: 4px 12px; border-radius: var(--radius-full); }
@media print { .fh-sw { display: none; } }

/* ---------- responsive ---------- */
.fh-card.fh-card--cap { min-height: 0; }
@media (max-width: 1180px) {
  .fh-loop { grid-template-columns: minmax(0, 1fr) 40px 190px 40px minmax(0, 1fr); }
  .fh-card--cap { grid-template-columns: minmax(0, 1fr); }
  .fh-card--cap > *, .fh-card--cap .fh-card__tile { grid-column: 1; grid-row: auto; }
  .fh-card--cap .fh-card__tile svg { width: 48px; height: 48px; }
  .fh-card--cap .fh-card__tile { order: -1; margin-bottom: 4px; }
  .fh-card { padding: 24px; }
  .fh-card__t { font-size: 18px; line-height: 26px; }
}
@media (max-width: 1060px) {
  .fh-grid { gap: 16px; }
  .fh-card { min-height: 400px; padding: 20px; }
  .fh-card__art { width: 118%; right: -34px; }
  .fh-bento { gap: 16px; }
  .fh-card--tile .fh-card__t, .fh-card--tile .fh-card__d { max-width: 56%; }
}
@media (max-width: 1100px) {
  .fh-loop { grid-template-columns: minmax(0, 1fr); }
  .fh-con { padding-top: 0; height: 44px; align-items: center; }
  .fh-con__h { display: none; }
  .fh-con__v { display: block; width: 10px; height: 100%; flex: none; }
  .fh-con--l::after, .fh-con--r::after { right: auto; left: 50%; top: auto; bottom: 2px; transform: translateX(-50%) rotate(135deg); }
  .fh-nodew { padding-top: 0; }
  .fh-node { max-width: 360px; width: 100%; margin-inline: auto; }
  .fh-lbl { height: auto; }
  .fh-card--cap { grid-template-columns: 64px minmax(0, 1fr); }
  .fh-card--cap > * { grid-column: 2; }
  .fh-card--cap .fh-card__tile { grid-column: 1; grid-row: 1 / span 4; order: 0; margin: 0; }
  .fh-card--cap .fh-card__tile svg { width: 64px; height: 64px; }
  .fh-card--dis { min-height: 380px; }
}
@media (max-width: 900px) {
  .fh-grid { grid-template-columns: minmax(0, 1fr); }
  .fh-card { min-height: 340px; }
  .fh-card__art { width: min(62%, 360px); right: -20px; bottom: -26px; }
  .fh-card--dis { min-height: 340px; }
  .fh-bento { grid-template-columns: minmax(0, 1fr); }
  .fh-hero, .fh-card--tile { grid-column: auto; grid-row: auto; }
  .fh-hero { min-height: 480px; }
  .fh-card--tile { min-height: 300px; }
  .fh-card--tile .fh-card__t, .fh-card--tile .fh-card__d { max-width: none; }
  .fh-card--tile .fh-card__art { width: min(62%, 320px); }
}
@media (max-width: 600px) {
  .fh-page { padding-bottom: 96px; }
  .fh-card, .fh-card--tile, .fh-hero, .fh-card--dis { min-height: 0; padding: 20px; }
  .fh-card__art, .fh-card--tile .fh-card__art { position: relative; right: auto; bottom: auto; width: 72%; margin: 12px -20px -20px auto; }
  .fh-card__act { padding-top: 16px; margin-top: 0; position: relative; z-index: 1; }
  .fh-card__art + .fh-card__act { margin-top: -8px; }
  .fh-card__d { max-width: none; }
  .fh-card__act > :is(a, button) { min-height: 44px; }
  .fh-card--cap { grid-template-columns: minmax(0, 1fr); }
  .fh-pv { margin-right: -20px; }
  .fh-pv__g { grid-template-columns: minmax(0, 1fr); }
  .fh-pv__c { min-height: 0; }
  .fh-pv__c:nth-child(n+3) { display: none; }
  .fh-needs { flex-wrap: wrap; }
  .fh-needs .btn-wp { width: 100%; min-height: 44px; }
  .fh-node__c a { min-height: 44px; justify-content: center; }
  .fh-sw { left: 50%; translate: -50% 0; bottom: 12px; max-width: calc(100% - 24px); gap: 4px; padding: 4px 6px 4px 6px; }
  .fh-sw__l, .fh-sw__x { display: none; }
  .fh-sw .ds-seg .seg-in { height: 44px; padding: 4px 10px; }
  .fh-sw .btn-text { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ffa-s, .ffa-c1, .ffa-c2, .ffa-c3, .fh-sw, .fh-pv--on .fh-pv__c, .ds-tab.menu.ff-in, .ds-tab.menu.ff-in::before { animation: none !important; }
  .fh-ln.is-on, .fh-spin, .fh-pv--off .fh-pv__c::after, .fh-pv--building .fh-pv__c { animation: none !important; }
  .fh-pv--building .fh-pv__c { opacity: 1; }
}

/* ---------- r6b fixes ---------- */
/* review pill: bottom right on desktop (the WP sidebar is on the left), compact bottom centre on phones */
.fh-sw { left: auto; right: 24px; bottom: 24px; }
/* B display card: the art fills the free space between the text and the actions */
.fh-card--dis .fh-card__art { position: relative; right: auto; bottom: auto; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; width: auto; margin: 12px -28px 0; min-height: 0; }
.fh-card--dis .fh-card__art svg { width: 100%; max-width: 520px; }
.fh-card--dis .fh-card__act { margin-top: 0; }
/* C: preview cards size to their content; the frame shrinks and sits centred in the hero */
.fh-hero .fh-pv { flex: 0 1 auto; min-height: 0; margin-block: auto; }
.fh-hero .fh-pv__pg { flex: 0 1 auto; }
.fh-pv__g { flex: none; align-items: start; }
.fh-pv__c { min-height: 96px; }
.fh-hero .fh-card__act { margin-top: 0; }
@media (max-width: 600px) {
  .fh-card--cap > *, .fh-card--cap .fh-card__tile { grid-column: 1; grid-row: auto; }
  .fh-card--cap .fh-card__tile { order: -1; margin-bottom: 4px; }
  .fh-card--cap .fh-card__tile svg { width: 48px; height: 48px; }
  .fh-card--dis .fh-card__art { margin: 12px -20px 0; }
  .fh-pv__c { min-height: 0; }
  .fh-hero .fh-pv { margin-block: 12px 0; }
}

/* ---------- r6c ---------- */
/* review pill: inline at the right end of the breadcrumb bar (hub only); under the hub header, centred, on phones. Never floats over content. */
.fh-sw { position: static; z-index: auto; translate: none; max-width: none; margin-left: auto; padding: 0 0 0 12px; gap: 8px; box-shadow: none; border-color: var(--stroke-tertiary); background: var(--surface-screen); flex: none; }
.fh-sw__x { display: none; }
.fh-sw .ds-seg .seg-in { height: 24px; padding: 2px 10px; }
.fh-sw .btn-text.sm { padding: 2px 8px; }
.rs-crumb:has(.fh-sw) { padding-block: 8px; }
@media (max-width: 600px) {
  .fh-sw--m { display: flex; width: max-content; max-width: calc(100% - 32px); margin: 0 auto 16px; padding: 2px 4px 2px 12px; }
  .fh-sw--m .fh-sw__l { display: inline; }
  .fh-sw .ds-seg .seg-in { height: 44px; padding: 4px 14px; }
  .fh-sw .btn-text { min-height: 44px; }
  .fh-sw__l { display: inline; }
  /* 44px hit areas, no visual change */
  .rs-sub .lnk-wp, .fh-node__d .lnk-wp { position: relative; }
  .rs-sub .lnk-wp::after, .fh-node__d .lnk-wp::after { content: ""; position: absolute; inset: -15px -6px; }
  /* C preview: all three quote cards, the third cropped by the frame edge */
  .fh-pv__g { grid-template-columns: repeat(3, 132px); }
  .fh-pv__c:nth-child(n+3) { display: block; }
}
@media (hover: none) { #modalhost .tpldialog .btn-wpo:hover { background: var(--bc-0); color: var(--bc-400); } }
.fh-pv__bar span, .fh-pv__n { font-size: 12px; line-height: 16px; }
/* r6c Q14: a gap between the wordmark and the first tab on narrow desktops (the Ovation AI tab makes the row tight) */
@media (min-width: 601px) and (max-width: 1180px) { .ds-topnav-logo { margin-right: 20px; } }

/* ---------- r7 hub A: title + tag row, stretched primary action, art in from the right (layout only) ---------- */
.fh-page .rs-crumb[hidden] { display: none; }
.fh--a .fh-card { min-height: 0; padding: 24px; border-radius: var(--radius-16); transition: transform .22s ease-out, box-shadow .22s ease-out, border-color .22s ease-out; }
.fh--a .fh-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.fh--a .fh-card__t { margin: 0; flex: 1 1 auto; font: 500 20px/28px var(--font); }
.fh--a .fh-st { display: inline-flex; align-items: center; gap: 10px; min-height: 0; margin-left: auto; }
.fh--a .fh-st__s { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fh--a .fh-card__d { margin: 8px 0 0; max-width: none; }
.fh--a .fh-card__act { position: static; z-index: auto; margin: 0; padding-top: 20px; }
/* the primary action (first control) stretches over the whole card: one tab stop, one link for screen readers */
.fh--a .fh-card__act > :first-child::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.fh--a .fh-card__act > :first-child:focus-visible { outline-offset: 2px; }
.fh--a .fh-card__act > :not(:first-child) { position: relative; z-index: 2; }
/* the illustration: ~80% of the card width, from the right and the bottom, cropped by the card edge */
.fh--a .fh-card__art { position: relative; right: auto; bottom: auto; z-index: 0; width: calc(80% + 36px); margin: auto -24px -24px auto; padding-top: 16px; pointer-events: none; }
.fh--a .fh-card__art svg { width: 100%; height: auto; transform-origin: 100% 100%; transition: transform .24s ease-out; }
.fh--a .fh-card:has(.fh-card__art) .fh-card__act { padding-bottom: 8px; }
.fh--a .fh-card:focus-within:has(.fh-card__act > :first-child:focus-visible) { outline: var(--focus-ring-width, 2px) solid var(--brand-100); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .fh--a .fh-card:hover { transform: translateY(-2px); border-color: var(--stroke-secondary); box-shadow: 0 2px 4px rgba(15, 20, 40, .06), 0 18px 36px -14px rgba(15, 20, 40, .26); }
  .fh--a .fh-card:hover .fh-card__art svg { transform: translate(-8px, -6px) scale(1.025); }
}
.fh--a .fh-st.fh-in { animation: fhIn .6s cubic-bezier(.2, 0, 0, 1) both; }
@keyframes fhIn { from { opacity: 0; transform: translateX(10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 1180px) { .fh--a .fh-card { padding: 20px; } .fh--a .fh-card__art { margin: auto -20px -20px auto; width: calc(80% + 28px); } }
@media (max-width: 1060px) { .fh--a .fh-card { min-height: 0; padding: 20px; } .fh--a .fh-card__art { width: calc(80% + 28px); right: auto; } }
@media (max-width: 900px) { .fh--a .fh-card { min-height: 0; } .fh--a .fh-card__art { width: min(calc(80% + 28px), 480px); } }
@media (max-width: 600px) {
  .fh--a .fh-card__art { position: relative; width: calc(80% + 24px); margin: 8px -20px -20px auto; }
  .fh--a .fh-card__act > :is(a, button) { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .fh--a .fh-card, .fh--a .fh-card__art svg { transition: border-color .15s, box-shadow .15s; }
  .fh--a .fh-card:hover { transform: none; }
  .fh--a .fh-card:hover .fh-card__art svg { transform: none; }
  .fh--a .fh-st.fh-in { animation: none; }
}

/* ---------- r7 follow-up: title + tag on one line, a status row, art ~1.3x ---------- */
.fh--a .fh-card__top { flex-wrap: nowrap; }
.fh--a .fh-card__t { flex: 1 1 auto; min-width: 0; }
.fh--a .fh-tag { flex: none; }
.fh--a .fh-st { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 12px 0 0; font: var(--body-sm); color: var(--type-secondary); }
.fh--a .fh-st__t { white-space: nowrap; }
.fh--a .fh-st .chip + .fh-st__t::before { content: "\00b7"; margin-right: 8px; }
.fh--a .fh-card__act { padding-top: 16px; }
.fh--a .fh-card, .fh--a .fh-card--finder, .fh--a .fh-card--sets { min-height: 0; }
.fh--a .fh-card__art { width: calc(100% + 24px); margin: auto -32px -24px auto; padding-top: 12px; }
@media (max-width: 1180px) { .fh--a .fh-card__art { width: calc(100% + 20px); margin: auto -28px -20px auto; } }
@media (max-width: 1060px) { .fh--a .fh-card__art { width: calc(100% + 20px); } }
@media (max-width: 900px) { .fh--a .fh-card__art { width: min(calc(100% + 20px), 560px); } }
@media (max-width: 600px) { .fh--a .fh-card__art { width: calc(100% + 16px); margin: 8px -28px -20px auto; } }

/* ---------- r8 hub A (items 7, 8, 9): left header, text tags, dot status, filled sm buttons, art faded into the white card ---------- */
.fh-page.hub-page .rs-head { justify-content: flex-start; text-align: left; padding: 40px 0 0; margin: 0 0 32px; }
.fh-page.hub-page .rs-head > div { display: grid; gap: 8px; justify-items: start; }
.fh-page.hub-page .rs-head .rs-sub { font: var(--body-md); }
.fh-page .fh { margin-inline: 0; }
.fh-on { display: inline-flex; align-items: center; gap: 8px; color: var(--type-primary); }
.fh-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--neutral-200); }
.fh-dot--green { background: var(--green-100); } .fh-dot--grey { background: var(--neutral-200); } .fh-dot--orange { background: var(--brand-100); }
.fh-on > .fh-spin { width: 12px; height: 12px; border-width: 2px; }
.fh--a .fh-st .fh-on + .fh-st__t::before { content: "\00b7"; margin-right: 8px; }
.fh--a .fh-card { padding: 28px; }
.fh--a .fh-card__d { margin: 12px 0 0; font: 400 14px/22px var(--font); }
.fh--a .fh-st { margin: 20px 0 0; }
.fh--a .fh-card__act { padding-top: 20px; }
.fh--a .fh-card__d + .fh-card__act { padding-top: 20px; }
.fh--a .fh-st + .fh-card__act { padding-top: 16px; }
.fh--a .fh-card__art { width: calc(85% + 20px); margin: 24px -28px -28px auto; padding: 0; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32%), linear-gradient(to bottom, transparent 0, #000 32%); mask-image: linear-gradient(to right, transparent 0, #000 32%), linear-gradient(to bottom, transparent 0, #000 32%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.fh--a .fh-card:has(.fh-card__art) .fh-card__act { padding-bottom: 0; }
.fh--a .fh-card, .fh--a .fh-card__art svg { transition-duration: .2s; }
.fh--a .fh-card__act > :first-child { transition: background-color .2s, border-color .2s; }
@media (hover: hover) and (pointer: fine) {
  .fh--a .fh-card:hover { transform: translateY(-1px); box-shadow: 0 1px 2px rgba(15, 20, 40, .05), 0 8px 20px -12px rgba(15, 20, 40, .2); }
  .fh--a .fh-card:hover .fh-card__art svg { transform: translate(-4px, -2px); }
  .fh--a .fh-card:hover .fh-card__act > .btn-wp:first-child { background: var(--bc-300); border-color: var(--bc-300); }
}
@media (max-width: 1180px) { .fh--a .fh-card { padding: 24px; } .fh--a .fh-card__art { width: calc(85% + 20px); margin: 24px -24px -24px auto; } }
@media (max-width: 900px) { .fh--a .fh-card__art { width: min(calc(85% + 20px), 480px); } }
@media (max-width: 600px) {
  .fh-page.hub-page .rs-head { padding-top: 24px; margin-bottom: 24px; }
  .fh--a .fh-card { padding: 20px; }
  .fh--a .fh-card__art { width: calc(85% + 20px); margin: 24px -20px -20px auto; }
}
@media (prefers-reduced-motion: reduce), (hover: none) {
  .fh--a .fh-card:hover { transform: none; }
  .fh--a .fh-card:hover .fh-card__art svg { transform: none; }
}
/* r8 follow-up: the art starts 24px under the buttons and fills the free space */
.fh--a .fh-card__act { flex: none; }
.fh--a .fh-card__art { flex: 1 1 auto; margin-top: 24px; display: flex; align-items: flex-end; justify-content: flex-end; min-height: 0; overflow: hidden; width: calc(100% + 28px); }
.fh--a .fh-card__art svg { width: calc(100% - 4px); flex: none; }
@media (max-width: 1180px) { .fh--a .fh-card__art { width: calc(100% + 24px); } }
@media (max-width: 900px) { .fh--a .fh-card__art { width: min(calc(100% + 24px), 560px); } }
@media (max-width: 600px) { .fh--a .fh-card__art { width: calc(100% + 20px); flex: none; } }

/* ---------- r9c: hub A matched to Figma 18233:8103 (1200 content, 384 cards, art box 384x256 at left 96 top 212, bleeding off right and bottom). Layout only. ---------- */
.fh-page.hub-page .rs-head.fh-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 40px 0 0; margin: 0 0 28px; }
.fh-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.fh-head .rs-h1 { margin: 0; font: 500 24px/1.4 var(--font); color: var(--type-primary); }
.fh-head .rs-sub { margin: 0; font: 400 16px/1.4 var(--font); color: var(--type-secondary); }
.fh-head__w { flex: none; margin-left: auto; }
.fh--a .fh-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.fh--a .fh-card { container-type: inline-size; display: block; min-height: 426px; padding: 32px 24px; border-radius: var(--radius-16); }
.fh--a .fh-card > :not(.fh-card__art) { position: relative; z-index: 1; }
.fh--a .fh-card__top { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 12px; }
.fh--a .fh-card__t { flex: 1 1 0; margin: 0; font: 500 22px/1.4 var(--font); color: var(--type-primary); }
.fh--a .fh-tag { flex: none; }
.fh--a .fh-card__d { margin: 8px 0 0; max-width: none; font: 400 16px/1.4 var(--font); color: var(--type-secondary); }
.fh--a .fh-st { margin: 16px 0 0; font: 400 14px/20px var(--font); }
.fh--a .fh-card__act { position: static; margin: 24px 0 0; padding: 0; }
.fh--a .fh-st + .fh-card__act, .fh--a .fh-card__d + .fh-card__act { padding-top: 0; }
.fh--a .fh-st + .fh-card__act { margin-top: 16px; }
.fh--a .fh-card:has(.fh-card__art) .fh-card__act { padding-bottom: 0; }
.fh--a .fh-card .fh-card__art { position: absolute; z-index: 0; display: block; left: 25%; top: 211px; right: auto; bottom: auto; width: calc(100% + 2px); height: auto; aspect-ratio: 3 / 2; margin: 0; padding: 0; overflow: hidden; flex: none; }
.fh--a .fh-card .fh-card__art svg { display: block; width: 100%; height: 100%; overflow: hidden; }
@media (max-width: 700px) {
  .fh-page.hub-page .rs-head.fh-head { padding-top: 24px; margin-bottom: 20px; flex-wrap: wrap; row-gap: 8px; }
  .fh--a .fh-grid { grid-template-columns: minmax(0, 1fr); }
  .fh--a .fh-card { padding: 32px 24px; }
  
}
/* r9c follow-up: tag at the far right, fade on the outer 24px only, a bit more contrast, hub header 32px under the crumb bar */
.fh--a .fh-card .fh-card__art { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px), linear-gradient(to bottom, transparent 0, #000 24px); mask-image: linear-gradient(to right, transparent 0, #000 24px), linear-gradient(to bottom, transparent 0, #000 24px); -webkit-mask-composite: source-in; mask-composite: intersect; filter: saturate(1.25) contrast(1.06); }
.fh-page.hub-page .rs-head.fh-head { padding-top: 8px; }

/* wide screens: cards grow past 384, so keep the art at the Figma size (384x256) from 25% in, and keep the buttons on one line across the row by reserving two lines of subtext */
@media (min-width: 701px) {
  .fh--a .fh-card .fh-card__art { width: 384px; max-width: none; left: auto; right: -96px; }
  .fh--a .fh-card__d { min-height: calc(16px * 1.4 * 2); }
}
@container (min-width: 0) { }

/* Figma 18233:8305: the subtext frame is fixed at 39px (2 lines of 16/1.4 = 44.8 overflow it), with the button 24px below that frame, so the button sits 18.4px under the second text line. Match it exactly. */
.fh--a .fh-card__d + .fh-card__act { margin-top: 18.4px; }

/* Figma 18233:8305 (2026-11-18 update): tag above the title. Tag, 12px, then title + subtext (8px), then 24px to the button; art box top 226 */
.fh--a .fh-card__top { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
.fh--a .fh-card__t { flex: none; }
.fh--a .fh-card__d + .fh-card__act { margin-top: 24px; }
@media (min-width: 701px) { .fh--a .fh-card .fh-card__art { top: 226px; } .fh--a .fh-card { min-height: 426px; } }

/* Rijul 2026-11-18: top padding = left padding (24); art box moves up 8 with it */
.fh--a .fh-card { padding-top: 24px; }
@media (min-width: 701px) { .fh--a .fh-card .fh-card__art { top: 218px; } }

/* outline buttons (feature already set up): card hover mirrors the DS .btn-wpo hover */
@media (hover: hover) and (pointer: fine) { .fh--a .fh-card:hover .fh-card__act > .btn-wpo:first-child { background: var(--bc-400); color: var(--bc-0); } }


/* r2fb 2026-11-23: status chip (On, Paused) sits next to the Capture / Display tag chip on one row */
.fh-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* r2fb: chips on the hub cards: one height, symmetric padding, line-height = inner height, so the label is centred (Rijul 2026-11-23). Gap 8 between the tag chip and the status chip. */
.fh-card__tags { gap: 8px; }
.fh-card__tags .chip { display: inline-flex; align-items: center; box-sizing: border-box; height: 20px; padding-block: 0; padding-inline: 7px; line-height: 18px; }

/* r2fb: Manage tags button in the top nav (desktop); at 782px and below it is the "Manage tags" item of the menu sheet (the hidden .p-mt-m icon is what the sheet lists) */
.p-mt-m { display: none !important; }
.ds-topnav-actions .p-mt-d { flex: none; white-space: nowrap; }
@media (max-width: 1100px) { .p-mt-d { display: none !important; } }
@media (max-width: 1180px) { .p-mt-d { padding: 0; width: 32px; justify-content: center; } .p-mt-d .p-mt-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } } /* icon-only below 1180px so the nav fits at 1024 */
/* card-click (Rijul 2026-11-24): the whole card is clickable; hovering the card puts its main button in its hover state */
.fh-card[data-cc] { cursor: pointer; }
.fh-card[data-cc]:hover .fh-card__act > .btn-wp:first-child { background: var(--bc-300); border-color: var(--bc-300); }
.fh-card[data-cc]:hover .fh-card__act > .btn-wpo:first-child { background: var(--bc-400); color: var(--bc-0); }

/* ---------- 2026-11-24: raster illustrations (Rijul) ----------
   The PNG is 4:3 with a soft halo; anchor it bottom right and let it bleed off both edges (the card clips it). Overrides the r9c SVG box (top/left, mask, filter). */
.fh-card__art--img img { display: block; width: 100%; height: auto; }
.fh--a .fh-card { min-height: 480px; }
.fh--a .fh-card .fh-card__art.fh-card__art--img { top: auto; left: auto; right: -14%; bottom: -15%; width: 96%; max-width: 520px; aspect-ratio: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; filter: none; }
.fh-card--tile .fh-card__art.fh-card__art--img { width: 56%; right: -8%; bottom: -16%; }
.fh-card--dis .fh-card__art.fh-card__art--img img { max-width: 520px; }
@media (max-width: 700px) {
  .fh--a .fh-card { min-height: 0; padding-bottom: 0; }
  .fh--a .fh-card .fh-card__art.fh-card__art--img { position: relative; right: auto; bottom: auto; width: 88%; max-width: 420px; margin: 4px -14% -14% auto; }
}
/* 2026-11-24: smooth illustration scale on card hover / keyboard focus (Rijul) */
.fh-card__art--img img { transform-origin: 70% 80%; transition: transform .45s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
@media (hover: hover) and (pointer: fine) { .fh-card:hover .fh-card__art--img img { transform: scale(1.06); } }
.fh-card:focus-within .fh-card__art--img img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .fh-card__art--img img { transition: none; } .fh-card:hover .fh-card__art--img img, .fh-card:focus-within .fh-card__art--img img { transform: none; } }
