/* Global link treatment. Keep text links distinct by color/weight and visible keyboard focus. */
body.ad-theme a,body.ad-theme a:hover,body.ad-theme a:focus-visible,body.ad-theme a *,body.ad-theme .textbtn,body.ad-theme .textbtn:hover,body.ad-theme .mm-bottom button:hover{text-decoration:none!important}
body.ad-theme a:not(.btn):not(.wordmark):not(.skip-link):not(.chip){transition:color .2s ease,background-color .2s ease,box-shadow .2s ease}
body.ad-theme a:focus-visible,body.ad-theme .mm-div:focus-visible,body.ad-theme .mm-bottom button:focus-visible{outline:2px solid var(--color-focus);outline-offset:3px;border-radius:5px}
body.ad-theme :is(.prose,.intro-text,.text-links,.partner-link,.partner-note,.breadcrumb,.breadcrumbs,.footer-legal,.card-sub) a:not(.btn):not(.chip){font-weight:550;color:var(--color-accent);border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
body.ad-theme :is(.prose,.intro-text,.text-links,.partner-link,.partner-note,.breadcrumb,.breadcrumbs,.footer-legal,.card-sub) a:not(.btn):not(.chip):is(:hover,:focus-visible){background:color-mix(in srgb,var(--color-accent) 13%,transparent);color:var(--color-accent-hover)}
body.ad-theme .link-arrow{gap:9px;padding-inline:6px;border-radius:8px;transition:color .2s,background .2s}
body.ad-theme .link-arrow:is(:hover,:focus-visible){background:var(--color-accent-soft);color:var(--color-accent-hover)}
body.ad-theme .link-arrow .icon{transition:transform .23s cubic-bezier(.2,.8,.2,1)}
body.ad-theme .link-arrow:hover .icon{transform:translateX(5px)}
body.ad-theme .nav-link[aria-current]::after{display:none}
body.ad-theme .nav-link[aria-current],body.ad-theme .nav-link[aria-expanded=true]{background:var(--color-accent-soft);color:var(--color-accent);font-weight:600;border-color:transparent}
body.ad-theme .nav-link:is(:hover,:focus-visible){background:var(--color-accent-soft);color:var(--color-accent);border-color:transparent}
body.ad-theme .footer-cols a{border-radius:6px;transition:color .2s,transform .2s,background .2s}
body.ad-theme .footer-cols a:hover{transform:translateX(3px);color:var(--color-accent);background:var(--color-accent-soft)}
/* Mega menu: compact overview with three category columns on wide desktops.
   No clipped labels, no removed links. Short viewports retain a scroll fallback. */
body.ad-theme .v2-header .megamenu-panel{--mm-radius:var(--p-card-radius,18px);max-width:min(1450px,calc(100vw - 2 * var(--side-pad)));grid-template-columns: minmax(246px,286px) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;max-height:calc(100dvh - 120px);padding:10px;gap:0;border-radius:var(--mm-radius);align-items:stretch}
body.ad-theme .v2-header .mm-divisions{padding:11px 10px;border-radius:calc(var(--mm-radius) * .7);min-height:0;scrollbar-width:thin}
body.ad-theme .v2-header .mm-group + .mm-group{margin-top:10px}
body.ad-theme .v2-header .mm-group h2{margin:0 0 4px 9px;font-size:10px;line-height:1.3;letter-spacing:.045em;font-weight:650;color:var(--color-text-muted)}
body.ad-theme .v2-header .mm-div{min-height:32px;padding:5px 9px;gap:8px;line-height:1.25;font-size:12.5px;border:1px solid transparent;border-radius:8px;transition:background .17s,color .17s,border-color .17s}
body.ad-theme .v2-header .mm-div>.icon{width:17px;height:17px;flex:none}
body.ad-theme .v2-header .mm-div>span:not(.chev){min-width:0}
body.ad-theme .v2-header .mm-div .chev{display:flex;opacity:.5;transition:transform .2s,opacity .2s}
body.ad-theme .v2-header .mm-div:is(:hover,[aria-current=true]){background:var(--color-bg);color:var(--color-accent);border-color:var(--color-border);box-shadow:none}
body.ad-theme .v2-header .mm-div[aria-current=true]{font-weight:650;box-shadow:inset 3px 0 var(--color-accent)}
body.ad-theme .v2-header .mm-div:is(:hover,[aria-current=true]) .chev{transform:translateX(2px);opacity:1}
body.ad-theme .v2-header .mm-panels{padding:15px 20px;min-height:0;min-width:0;scrollbar-width:thin}
body.ad-theme .v2-header .mm-panel>h2{font-size:24px;line-height:1.22;margin:0 0 5px;letter-spacing:-.035em}
body.ad-theme .v2-header .mm-panel>h2 a:hover{color:var(--color-accent)}
body.ad-theme .v2-header .mm-panel>p{font-size:13px;line-height:1.45;max-width:100ch;margin:0}
body.ad-theme .v2-header .mm-cats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0 10px;align-items:stretch}
body.ad-theme .v2-header .mm-cat{display:flex;flex-direction:column;min-width:0;border:1px solid var(--color-border);border-radius:calc(var(--mm-radius) * .65);padding:12px;background:color-mix(in srgb,var(--color-surface) 70%,var(--color-bg));transition:border-color .2s,background .2s,box-shadow .2s}
body.ad-theme .v2-header .mm-cat:is(:hover,:focus-within){border-color:color-mix(in srgb,var(--color-accent) 55%,var(--color-border));background:var(--color-bg);box-shadow:0 9px 24px -19px var(--color-accent)}
body.ad-theme .v2-header .mm-category-link{display:grid;grid-template-columns:32px minmax(0,1fr) 14px;align-items:center;gap:8px;font-size:13px;line-height:1.3;padding:0;font-weight:650;min-height:34px;color:var(--color-text)}
body.ad-theme .v2-header .mm-category-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--color-accent-soft);color:var(--color-accent);flex:none}
body.ad-theme .v2-header .mm-category-link>.icon{opacity:.55;color:var(--color-accent);transition:transform .2s,opacity .2s}
body.ad-theme .v2-header .mm-category-link:hover>.icon{transform:translate(2px,-2px);opacity:1}
body.ad-theme .v2-header .mm-cat .count{align-self:flex-start;font-size:10px;line-height:1.3;margin:6px 0 7px;padding:3px 7px;background:var(--color-bg);border:1px solid var(--color-border);border-radius:999px;color:var(--color-text-muted)}
body.ad-theme .v2-header .mm-cat ul{margin:0;padding-top:6px;border-top:1px solid var(--color-border)}
body.ad-theme .v2-header .mm-cat ul a{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:5px 6px;margin:0 -3px;font-size:12px;line-height:1.3;color:var(--color-text-muted);border-radius:6px}
body.ad-theme .v2-header .mm-cat ul a>.icon{opacity:0;flex:none;transform:translateX(-3px);transition:opacity .2s,transform .2s}
body.ad-theme .v2-header .mm-cat ul a:is(:hover,:focus-visible){background:var(--color-accent-soft);color:var(--color-accent)}
body.ad-theme .v2-header .mm-cat ul a:is(:hover,:focus-visible)>.icon{opacity:1;transform:none}
body.ad-theme .v2-header .mm-panel>.link-arrow{font-size:12.5px;min-height:34px}
body.ad-theme .v2-header .mm-bottom{padding:5px 12px;gap:8px 20px;margin-top:8px;align-items:center}
body.ad-theme .v2-header .mm-bottom a,body.ad-theme .v2-header .mm-bottom button{min-height:36px;padding:4px 8px;font-size:12px;border-radius:7px}
body.ad-theme .v2-header .mm-bottom :is(a,button):is(:hover,:focus-visible){background:var(--color-accent-soft);color:var(--color-accent-hover)}
@media(min-width:1200px) and (max-width:1399px){body.ad-theme .v2-header .megamenu-panel{grid-template-columns:246px minmax(0,1fr)}body.ad-theme .v2-header .mm-panels{padding:13px 14px}body.ad-theme .v2-header .mm-cats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1400px) and (min-height:850px){body.ad-theme .v2-header .megamenu-panel{max-height:none;grid-template-rows:auto auto}body.ad-theme .v2-header :is(.mm-divisions,.mm-panels){overflow:visible}}
@media(max-height:849px){body.ad-theme .v2-header .megamenu-panel{max-height:calc(100dvh - 110px)}}
/* Topic cards: identify the domain at a glance, keep existing pattern and links. */
body.ad-theme .div-card .pattern-wrap{position:relative;min-height:94px;background:radial-gradient(ellipse at 85% 15%,var(--color-accent-soft),transparent 80%),var(--color-surface);border:1px solid var(--color-border);isolation:isolate}
body.ad-theme .div-card .pattern-wrap>svg{opacity:.47;transition:transform .35s ease,opacity .35s ease;max-height:116px}
body.ad-theme .div-card .division-symbol{position:absolute;left:14px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:50px;height:50px;border:1px solid var(--color-border);border-radius:13px;background:var(--color-bg);color:var(--color-accent);box-shadow:0 9px 22px -16px var(--color-accent)}
body.ad-theme .div-card:hover .pattern-wrap>svg{transform:scale(1.045);opacity:.72}
body.ad-theme .div-card .meta,body.ad-theme .category-card .meta{align-self:flex-start;background:var(--color-accent-soft);color:var(--color-accent);padding:4px 9px;border-radius:999px;font-size:11px;font-weight:550}
body.ad-theme .div-card .arrow{color:var(--color-accent);background:var(--color-bg);transition:background .2s,color .2s,transform .2s}
body.ad-theme .div-card:hover .arrow{background:var(--color-accent);color:var(--color-on-accent);transform:translateX(3px)}
body.ad-theme .category-card .card-icon{width:48px;height:48px;border-radius:12px}
body.ad-theme .category-card .card-sub{padding-top:12px;border-top:1px solid var(--color-border)}
body.ad-theme .category-card .card-sub a{display:inline-block;padding:3px 0}
html[data-design=ai-marketing-agency] body.ad-theme #catalog .div-card .pattern-wrap{min-height:62px}
html[data-design=ai-marketing-agency] body.ad-theme #catalog .div-card .division-symbol{left:50%;transform:translate(-50%,-50%);width:38px;height:38px}
@media(prefers-reduced-motion:reduce){body.ad-theme a,body.ad-theme .mm-cat,body.ad-theme .mm-div,body.ad-theme .div-card *{transition:none!important}}
