/* 25 Nov 2026 (Joshua): underlines fill in from the left instead of appearing at once. Every page. */
:root { --ot-fill: cubic-bezier(.2,.7,.2,1); }
.nav-link { border-bottom-color: transparent !important; background: linear-gradient(var(--gold-navy), var(--gold-navy)) no-repeat 0 100% / 0% 2px; transition: color .18s var(--ot-fill), background-size .32s var(--ot-fill); }
.nav-link:hover, .nav-link.active, .nav-link[aria-expanded="true"] { background-size: 100% 2px; }
.footer-link { border-bottom-color: transparent !important; background: linear-gradient(var(--gold-navy), var(--gold-navy)) no-repeat 0 100% / 0% 1px; transition: color .18s ease, background-size .3s var(--ot-fill); }
.footer-link:hover, .footer-link:focus-visible { background-size: 100% 1px; }
.inline-link { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px; transition: border-color .2s ease, background-size .3s var(--ot-fill); }
.inline-link:hover, .inline-link:focus-visible { background-size: 100% 1px; border-bottom-color: transparent; }
.dropdown a { background: linear-gradient(var(--gold-ink, #8a6d2f), var(--gold-ink, #8a6d2f)) no-repeat 14px calc(100% - 8px) / 0% 1px; transition: background-size .28s var(--ot-fill), background-color .18s ease; }
.dropdown a:hover, .dropdown a:focus-visible { background-size: calc(100% - 28px) 1px; }

/* ChatGPT's About pages: the same fill, on the words, not the whole card */
main.cg a { text-decoration: none; }
main.cg a:not(.cta):not(.tc-link):not([class*="btn"]) { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; transition: background-size .3s var(--ot-fill); }
main.cg a:not(.cta):not(.tc-link):not([class*="btn"]):hover, main.cg a:not(.cta):not(.tc-link):not([class*="btn"]):focus-visible { background-size: 100% 1px; text-decoration: none; }
main.cg .related-grid a, main.cg .framework a { background-image: none !important; }
main.cg .related-grid a:hover, main.cg .related-grid a:hover strong, main.cg .framework a:hover { text-decoration: none; }
main.cg .related-grid strong { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px; transition: background-size .32s var(--ot-fill); padding-bottom: 2px; }
main.cg .related-grid a:hover strong, main.cg .related-grid a:focus-visible strong { background-size: 100% 1px; }
main.cg .framework a { transition: border-color .25s ease, color .2s ease; }
main.cg .framework a:hover { border-top-color: var(--navy); }
main.cg .cta, main.cg .tc-link { transition: background-color .2s ease, color .2s ease, transform .2s var(--ot-fill); }
main.cg .cta:hover, main.cg .tc-link:hover { transform: translateY(-1px); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .nav-link, .footer-link, .inline-link, .dropdown a, main.cg a, main.cg .related-grid strong { transition: none !important; }
}
