/* Homepage navigation repairs; retain the existing site palette and controls. */
html body.tools-home article.cfy-catalog-card .gen-benefit{display:flex!important}
html body.tools-home #cfy-home-header .header-brand-support{flex-wrap:wrap!important}
html body.tools-home #cfy-home-header .header-brand-support #headerSupportMount{display:inline-flex!important;position:static!important;min-width:0!important}
html body.tools-home #cfy-home-header .header-brand-support #headerSupportMount .ffy-support-btn{position:static!important;inset:auto!important;display:inline-flex!important;transform:none!important;min-height:42px!important;padding:0 13px!important;font-size:13px!important;white-space:nowrap}
html body.tools-home #cfy-home-header .header-brand-support #headerSupportMount .ffy-support-btn[hidden]{display:none!important}
html body.tools-home #cfy-home-header .header-brand-support a.cfy-tools-nav{display:inline-flex!important;align-items:center;min-height:44px;font-size:13px;line-height:1.3;color:#d6e2f2;white-space:nowrap;text-decoration:none}
html body.tools-home #cfy-home-header .header-brand-support a.cfy-tools-nav:hover{text-decoration:underline}
html body.tools-home #cfy-home-header .header-brand-support a.cfy-tools-nav:focus-visible{outline:2px solid #b8caff;outline-offset:4px;border-radius:4px}

/* Logo first, navigation next, Support after navigation on wide screens. */
html body.tools-home #cfy-home-header .header-brand-support .cfy-brand{order:0!important}
html body.tools-home #cfy-home-header .header-brand-support .cfy-articles-nav{order:1!important}
html body.tools-home #cfy-home-header .header-brand-support .cfy-tools-nav{order:2!important}
html body.tools-home #cfy-home-header .header-brand-support #headerSupportMount{order:3!important}
/* Use the music player's existing preferred host; keep its real controls. */
html body.tools-home .tools-footer{flex-wrap:wrap!important}
html body.tools-home .tools-footer .cfy-footer-music{display:flex;flex:1 0 100%;grid-column:1/-1;width:100%;align-items:center;flex-wrap:wrap;gap:12px;margin-top:8px;padding-top:16px;border-top:1px solid #2f3e57;color:#b8c5d9;font-size:13px}
html body.tools-home #cfy-home-music-controls{display:flex;min-height:44px;min-width:0}
html body.tools-home #cfy-home-music-controls .ffy-site-music-controls{position:static!important;inset:auto!important;transform:none!important;display:flex!important;align-items:center;flex-wrap:wrap!important;gap:8px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;z-index:auto!important}
html body.tools-home #cfy-home-music-controls .ffy-site-music-controls button{min-height:44px!important;padding:0 13px!important;border:1px solid #526079!important;border-radius:10px!important;background:#1b2739!important;color:#edf2fa!important;font:600 13px/1.2 Inter,system-ui,sans-serif!important;box-shadow:none!important}
html body.tools-home #cfy-home-music-controls .ffy-site-music-controls button:focus-visible{outline:2px solid #b8caff!important;outline-offset:3px}
@media(max-width:900px){
  html body.tools-home #cfy-home-header .header-brand-support #headerSupportMount{order:1!important;margin-left:auto!important}
  html body.tools-home #cfy-home-header .header-brand-support .cfy-tools-nav{order:2!important}
}

/* Larger footer links on every screen; keep existing labels and destinations. */
html body.tools-home .tools-footer nav{display:flex;flex-wrap:wrap;gap:4px 8px}
html body.tools-home .tools-footer nav a{display:inline-flex;align-items:center;box-sizing:border-box;min-height:44px;padding:8px 10px}
html body.tools-home #cfy-home-header .cfy-mobile-toggle,
html body.tools-home #cfy-home-header #cfy-mobile-menu{display:none!important}
@media(max-width:900px){
  html body.tools-home #cfy-home-header{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;min-height:72px!important;height:auto!important;padding:12px 16px!important;gap:8px!important;position:relative!important;z-index:50}
  html body.tools-home #cfy-home-header .header-brand-support{flex:1 1 0!important;flex-basis:0!important;min-width:0!important;flex-wrap:nowrap!important;gap:0!important}
  html body.tools-home #cfy-home-header .header-brand-support .cfy-brand{order:0!important;flex:0 1 auto!important;min-width:0!important;margin:0!important}
  html body.tools-home #cfy-home-header .header-brand-support .cfy-articles-nav,
  html body.tools-home #cfy-home-header .header-brand-support a.cfy-tools-nav,
  html body.tools-home #cfy-home-header .header-brand-support #headerSupportMount,
  html body.tools-home #cfy-home-header .header-brand-support .ffy-i18n-header-launch,
  html body.tools-home #cfy-home-header > .header-tools{display:none!important}
  html body.tools-home #cfy-home-header .cfy-mobile-toggle{display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid #465570;border-radius:10px;background:#1b2739;color:#edf2fa;font:600 14px/1.2 Inter,system-ui,sans-serif;cursor:pointer}
  html body.tools-home #cfy-home-header #cfy-mobile-menu:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;position:absolute;top:calc(100% - 4px);left:16px;right:16px;max-height:calc(100dvh - 88px);overflow:auto;padding:12px;border:1px solid #465570;border-radius:12px;background:#142136;box-shadow:0 12px 28px #050c1c66;z-index:60}
  html body.tools-home #cfy-home-header #cfy-mobile-menu a,
  html body.tools-home #cfy-home-header #cfy-mobile-menu button{display:flex;align-items:center;justify-content:flex-start;min-width:0;min-height:44px;box-sizing:border-box;padding:10px 12px;border:1px solid #34465f;border-radius:8px;background:#1b293e;color:#edf2fa;text-align:left;text-decoration:none;font:600 13px/1.35 Inter,system-ui,sans-serif;cursor:pointer;overflow-wrap:anywhere}
  html body.tools-home #cfy-home-header .cfy-mobile-toggle:focus-visible,
  html body.tools-home #cfy-home-header #cfy-mobile-menu :is(a,button):focus-visible{outline:2px solid #b8caff;outline-offset:3px}
  html body.tools-home #cfy-categories{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:12px!important}
  html body.tools-home #cfy-categories>button{padding:10px 6px!important;min-height:0!important;justify-content:flex-start!important}
  html body#cfy-tools-catalogue #cfy-categories>button{grid-column:auto!important;grid-row:auto!important}
  html body.tools-home #cfy-categories>button img{width:88px!important;height:88px!important;max-height:88px!important;aspect-ratio:1!important;object-fit:contain!important;margin:0 auto 8px!important}
  html body.tools-home #cfy-categories .role-card__name{font-size:14px!important;line-height:1.3!important;min-height:0!important;max-width:100%!important;margin:0!important}
  html body.tools-home #cfy-categories .role-card__hint{font-size:11px!important;line-height:1.2!important;margin:6px 0 0!important}
}

/* Homepage clarity: existing palette, wallpaper and card surfaces retained. */
html body.tools-home #home-title{font-size:clamp(36px,4.6vw,62px)!important;line-height:1.12!important;letter-spacing:-.035em!important;max-width:21ch!important;text-wrap:balance}
html body.tools-home #home-title span{background:linear-gradient(110deg,#b3d1ec,#c2b8f3)!important;background-clip:text!important;-webkit-background-clip:text!important;color:transparent!important}
html body.tools-home .hero .cfy-lead{max-width:48rem;font-size:clamp(17px,1.8vw,21px);line-height:1.55}
html body.tools-home main>.tools-promo{display:none!important}
html body.tools-home #homepage-launch-offer{display:block;margin:20px 0 18px;max-width:52rem}
html body.tools-home #homepage-launch-offer[hidden]{display:none!important}
html body.tools-home #homepage-launch-offer p{display:inline-block;margin:0 0 7px;padding:10px 14px;border:1px solid #6d77ae;border-radius:14px;background:#263454;color:#eef1ff;font-size:15px;line-height:1.5;font-weight:700}
html body.tools-home #homepage-launch-offer small{display:block;color:#b9c6db;font-size:12px;line-height:1.6}
html body.tools-home #homepage-launch-offer a{color:#c4baff;text-underline-offset:3px}
html body.tools-home #how-it-works .cfy-how-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
html body.tools-home #life-tools>.tool-group{margin-top:30px}
html body.tools-home #cfy-categories>button{grid-column:auto!important;grid-row:auto!important}
@media(min-width:700px){
  html body#cfy-tools-catalogue.tools-home :is(.gen-grid,.recap-grid){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(min-width:901px){
  html body.tools-home #cfy-home-header{flex-wrap:nowrap!important;padding-inline:24px!important;gap:12px!important}
  html body.tools-home #cfy-home-header .header-brand-support{flex-wrap:nowrap!important;gap:14px!important}
}
@media(min-width:1024px){
  html body.tools-home #cfy-categories{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important}
  html body.tools-home #cfy-categories>button img{width:150px!important;height:150px!important;max-height:150px!important;margin-bottom:10px!important}
  html body.tools-home #cfy-categories .role-card__name{font-size:18px!important;min-height:0!important;max-width:290px!important}
  html body.tools-home #cfy-categories .role-card__hint{margin-top:8px!important}
}
@media(max-width:699px){
  html body.tools-home #how-it-works .cfy-how-grid{grid-template-columns:1fr;gap:24px}
  html body.tools-home #homepage-launch-offer p{font-size:14px}
}
@media(forced-colors:active){html body.tools-home #home-title span{background:none;color:CanvasText!important}}

html body.tools-home #life-tools .cfy-life-group-icon{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;border:1px solid #465570;border-radius:14px;background:#23314c;color:#c4baff}html body.tools-home #life-tools .cfy-life-group-icon svg{display:block;width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
