/* Hover and focus states without extra lines (20 Nov 2026): "Ce putem urmări", "Fluxuri" and "Instituții".
   Coral is the site's interaction colour for navigation text on hover/focus only. #D4412D = the homepage coral (#F25A49)
   darkened to 4.6:1 on white for 13 px text. Never on buttons' fills, backgrounds, outlines or static text.
   The ":is(#content,#siteNav)" part only lifts these rules above the theme's id-based rules; it matches nothing by itself. */
body:is(.catalog-page,.results-catalog-page){--ig-coral-ui:#D4412D}

/* 1. Side lists: domains (Ce putem urmări) and subjects (Fluxuri). No underline; coral, semi-bold, 6 px slide. */
html body:is(.catalog-page,.results-catalog-page) :is(#content,#siteNav,main,.brand-hero) :is(.catalog-topic-nav a,.topic-shortcuts a,.results-topics .topic-shortcuts button),
html body:is(.catalog-page,.results-catalog-page) :is(#content,#siteNav,main,.brand-hero) :is(.catalog-topic-nav a,.topic-shortcuts a,.results-topics .topic-shortcuts button):hover{text-decoration:none!important}
body:is(.catalog-page,.results-catalog-page) :is(.catalog-topic-nav,.topic-shortcuts) a>span:first-child,
body:is(.catalog-page,.results-catalog-page) .results-topics .topic-shortcuts button{display:inline-grid;justify-items:start;transition:color .15s ease,transform .15s ease}
body:is(.catalog-page,.results-catalog-page) :is(.catalog-topic-nav a .catalog-topic-count,.topic-shortcuts a>small){color:#637180!important;text-decoration:none!important}
html body:is(.catalog-page,.results-catalog-page) :is(#content,#siteNav,main,.brand-hero) :is(.catalog-topic-nav,.topic-shortcuts) a:not([aria-current=true]):is(:hover,:focus-visible){color:inherit!important}
html body:is(.catalog-page,.results-catalog-page) :is(#content,#siteNav,main,.brand-hero) :is(.catalog-topic-nav,.topic-shortcuts) a:not([aria-current=true]):is(:hover,:focus-visible)>span:first-child,
html body:is(.catalog-page,.results-catalog-page) :is(#content,#siteNav,main,.brand-hero) .results-topics .topic-shortcuts button:not([aria-pressed=true]):is(:hover,:focus-visible){color:var(--ig-coral-ui)!important;font-weight:600;transform:translateX(6px)}
/* The selected item keeps its black bar and bold black text; it never turns coral. */
html body:is(.catalog-page,.results-catalog-page) :is(#content,#siteNav,main,.brand-hero) :is(.catalog-topic-nav a[aria-current=true],.topic-shortcuts a[aria-current=true],.results-topics .topic-shortcuts button[aria-pressed=true]){color:#0b0c0c!important}

/* 2. Tabs and the alphabet: only the selected one is underlined; the others turn coral and semi-bold on hover, no slide. */
body:is(.catalog-page,.results-catalog-page) :is(.library-views>a,.results-nav>a,.organization-alphabet a){display:inline-grid;justify-items:center;transition:color .15s ease}
html body:is(.catalog-page,.results-catalog-page) :is(#content,#siteNav,main,.brand-hero) :is(.library-views>a,.results-nav>a,.organization-alphabet a){text-decoration:none!important}
html body:is(.catalog-page,.results-catalog-page) :is(#content,#siteNav,main,.brand-hero) :is(.library-views>a,.results-nav>a,.organization-alphabet a):is([aria-current=true],[aria-current=page]){text-decoration:underline!important;text-underline-offset:4px}
html body:is(.catalog-page,.results-catalog-page) :is(#content,#siteNav,main,.brand-hero) :is(.library-views>a,.results-nav>a,.organization-alphabet a):not([aria-current=true]):not([aria-current=page]):is(:hover,:focus-visible){color:var(--ig-coral-ui)!important;font-weight:600;background:none!important}

/* The bold width is reserved by an invisible bold copy of the label (data-label, set by nav-hover.js): rows never shift. */
body:is(.catalog-page,.results-catalog-page) :is(.catalog-topic-nav a>span:first-child,.topic-shortcuts a>span:first-child,.results-topics .topic-shortcuts button,.library-views>a,.results-nav>a,.organization-alphabet a)::after{content:attr(data-label);font-weight:600;visibility:hidden;height:0;overflow:hidden;user-select:none;pointer-events:none}

/* Keyboard focus: the same state plus a visible outline. */
body:is(.catalog-page,.results-catalog-page) :is(.catalog-topic-nav a,.topic-shortcuts a,.results-topics .topic-shortcuts button,.library-views>a,.results-nav>a,.organization-alphabet a):focus-visible{outline:2px solid #0b0c0c;outline-offset:2px}

/* 3. Cards: a very light outline, a little darker on hover; no shadow, no lift. On the card's link only the arrow moves. */
html body:is(.catalog-page,.results-catalog-page) :is(#content,#siteNav,main,.brand-hero) #directoryGrid>:is(.model-card,.flow-card,.organization-card){border:1px solid #e7e8e9!important;box-shadow:none!important;transform:none!important;transition:border-color .15s ease}
html body:is(.catalog-page,.results-catalog-page) :is(#content,#siteNav,main,.brand-hero) #directoryGrid>:is(.model-card,.flow-card,.organization-card):hover{border-color:#b9bcbf!important;box-shadow:none!important;transform:none!important}
body:is(.catalog-page,.results-catalog-page) #directoryGrid [data-hover-arrow],body:is(.catalog-page,.results-catalog-page) #directoryGrid [data-hover-arrow]:hover{text-decoration:none!important}
body:is(.catalog-page,.results-catalog-page) #directoryGrid .hover-arrow{display:inline-block;margin-left:.3em;transition:transform .15s ease}
body:is(.catalog-page,.results-catalog-page) #directoryGrid [data-hover-arrow]:is(:hover,:focus-visible) .hover-arrow{transform:translateX(4px)}

@media (prefers-reduced-motion:reduce){
  html body:is(.catalog-page,.results-catalog-page) :is(#content,#siteNav,main,.brand-hero) :is(:is(.catalog-topic-nav,.topic-shortcuts) a:not([aria-current=true]):is(:hover,:focus-visible)>span:first-child,.results-topics .topic-shortcuts button:not([aria-pressed=true]):is(:hover,:focus-visible)){transform:none}
  body:is(.catalog-page,.results-catalog-page) #directoryGrid [data-hover-arrow]:is(:hover,:focus-visible) .hover-arrow{transform:none}
  body:is(.catalog-page,.results-catalog-page) :is(.catalog-topic-nav a>span:first-child,.topic-shortcuts a>span:first-child,.results-topics .topic-shortcuts button,.library-views>a,.results-nav>a,.organization-alphabet a,#directoryGrid>*,.hover-arrow){transition:none}
}
