/* Charge-card photographic hover treatment — v14.
   Default cards remain unchanged. Hover shows more of each landscape image by fitting image width,
   then fading into navy below rather than cropping aggressively with background-size: cover. */

/* Map charge families to approved visual concepts. */
a.card[href="connecticut-dui-oui-defense.html"],a.prac[href="connecticut-dui-oui-defense.html"],
a.card[href="first-offense-oui-connecticut.html"],a.prac[href="first-offense-oui-connecticut.html"],
a.card[href="oui-drugs-connecticut.html"],a.prac[href="oui-drugs-connecticut.html"],
a.card[href="oui-refusal-connecticut.html"],a.prac[href="oui-refusal-connecticut.html"]{--charge-hover-image:url('charge-hover/dui.jpg');}

a.card[href="domestic-violence-defense-connecticut.html"],a.prac[href="domestic-violence-defense-connecticut.html"],
a.card[href="family-violence-arrest-connecticut.html"],a.prac[href="family-violence-arrest-connecticut.html"],
a.card[href="family-violence-education-program-connecticut.html"],a.prac[href="family-violence-education-program-connecticut.html"]{--charge-hover-image:url('charge-hover/domestic-violence.jpg');}

a.card[href="protective-order-violation-connecticut.html"],a.prac[href="protective-order-violation-connecticut.html"],
a.card[href="connecticut-protective-orders.html"],a.prac[href="connecticut-protective-orders.html"],
a.card[href="modify-protective-order-connecticut.html"],a.prac[href="modify-protective-order-connecticut.html"],
a.card[href="probation-violation-connecticut.html"],a.prac[href="probation-violation-connecticut.html"],
a.card[href="violation-probation-arrest-connecticut.html"],a.prac[href="violation-probation-arrest-connecticut.html"]{--charge-hover-image:url('charge-hover/protective-order.jpg');}

a.card[href="assault-defense-connecticut.html"],a.prac[href="assault-defense-connecticut.html"]{--charge-hover-image:url('charge-hover/assault.jpg');}

a.card[href="weapons-firearms-defense-connecticut.html"],a.prac[href="weapons-firearms-defense-connecticut.html"],
a.card[href="carrying-pistol-without-permit-connecticut.html"],a.prac[href="carrying-pistol-without-permit-connecticut.html"],
a.card[href="criminal-possession-firearm-connecticut.html"],a.prac[href="criminal-possession-firearm-connecticut.html"],
a.card[href="firearms-protective-orders-connecticut.html"],a.prac[href="firearms-protective-orders-connecticut.html"]{--charge-hover-image:url('charge-hover/firearms.jpg');}

a.card[href="drug-charges-connecticut.html"],a.prac[href="drug-charges-connecticut.html"],
a.card[href="pretrial-drug-program-connecticut.html"],a.prac[href="pretrial-drug-program-connecticut.html"]{--charge-hover-image:url('charge-hover/drugs.jpg');}

a.card[href="larceny-theft-defense-connecticut.html"],a.prac[href="larceny-theft-defense-connecticut.html"],
a.card[href="burglary-defense-connecticut.html"],a.prac[href="burglary-defense-connecticut.html"],
a.card[href="robbery-defense-connecticut.html"],a.prac[href="robbery-defense-connecticut.html"]{--charge-hover-image:url('charge-hover/theft.jpg');}

a.card[href="white-collar-financial-crimes-connecticut.html"],a.prac[href="white-collar-financial-crimes-connecticut.html"]{--charge-hover-image:url('charge-hover/fraud.jpg');}

a.card[href="juvenile-defense-connecticut.html"],a.prac[href="juvenile-defense-connecticut.html"],
a.card[href="risk-injury-minor-defense-connecticut.html"],a.prac[href="risk-injury-minor-defense-connecticut.html"],
a.card[href="youthful-offender-connecticut.html"],a.prac[href="youthful-offender-connecticut.html"]{--charge-hover-image:url('charge-hover/juvenile.jpg');}

a.card[href="connecticut-criminal-record-erasure.html"],a.prac[href="connecticut-criminal-record-erasure.html"],
a.card[href="connecticut-pardons.html"],a.prac[href="connecticut-pardons.html"]{--charge-hover-image:url('charge-hover/record-relief.jpg');}

/* Serious/Part A and sensitive accusation cards use restrained courthouse imagery rather than literal stock imagery. */
a.card[href="connecticut-part-a-part-b-criminal-court.html"],a.prac[href="connecticut-part-a-part-b-criminal-court.html"],
a.card[href="sexual-assault-defense-connecticut.html"],a.prac[href="sexual-assault-defense-connecticut.html"],
a.card[href="disorderly-conduct-breach-peace-connecticut.html"],a.prac[href="disorderly-conduct-breach-peace-connecticut.html"]{--charge-hover-image:url('hero-courthouse.jpg');}

/* Only mapped charge cards get this treatment. */
a.card[style*="--charge-hover-image"],a.prac[style*="--charge-hover-image"]{position:relative;overflow:hidden;isolation:isolate;}

/* Attribute style is not used for mapping, so select mapped hrefs through :where(). */
:where(a.card,a.prac):where(
[href="connecticut-dui-oui-defense.html"],[href="first-offense-oui-connecticut.html"],[href="oui-drugs-connecticut.html"],[href="oui-refusal-connecticut.html"],
[href="domestic-violence-defense-connecticut.html"],[href="family-violence-arrest-connecticut.html"],[href="family-violence-education-program-connecticut.html"],
[href="protective-order-violation-connecticut.html"],[href="connecticut-protective-orders.html"],[href="modify-protective-order-connecticut.html"],[href="probation-violation-connecticut.html"],[href="violation-probation-arrest-connecticut.html"],
[href="assault-defense-connecticut.html"],
[href="weapons-firearms-defense-connecticut.html"],[href="carrying-pistol-without-permit-connecticut.html"],[href="criminal-possession-firearm-connecticut.html"],[href="firearms-protective-orders-connecticut.html"],
[href="drug-charges-connecticut.html"],[href="pretrial-drug-program-connecticut.html"],
[href="larceny-theft-defense-connecticut.html"],[href="burglary-defense-connecticut.html"],[href="robbery-defense-connecticut.html"],
[href="white-collar-financial-crimes-connecticut.html"],
[href="juvenile-defense-connecticut.html"],[href="risk-injury-minor-defense-connecticut.html"],[href="youthful-offender-connecticut.html"],
[href="connecticut-criminal-record-erasure.html"],[href="connecticut-pardons.html"],
[href="connecticut-part-a-part-b-criminal-court.html"],[href="sexual-assault-defense-connecticut.html"],[href="disorderly-conduct-breach-peace-connecticut.html"]
){position:relative;overflow:hidden;isolation:isolate;}

:where(a.card,a.prac):where(
[href="connecticut-dui-oui-defense.html"],[href="first-offense-oui-connecticut.html"],[href="oui-drugs-connecticut.html"],[href="oui-refusal-connecticut.html"],
[href="domestic-violence-defense-connecticut.html"],[href="family-violence-arrest-connecticut.html"],[href="family-violence-education-program-connecticut.html"],
[href="protective-order-violation-connecticut.html"],[href="connecticut-protective-orders.html"],[href="modify-protective-order-connecticut.html"],[href="probation-violation-connecticut.html"],[href="violation-probation-arrest-connecticut.html"],
[href="assault-defense-connecticut.html"],[href="weapons-firearms-defense-connecticut.html"],[href="carrying-pistol-without-permit-connecticut.html"],[href="criminal-possession-firearm-connecticut.html"],[href="firearms-protective-orders-connecticut.html"],
[href="drug-charges-connecticut.html"],[href="pretrial-drug-program-connecticut.html"],[href="larceny-theft-defense-connecticut.html"],[href="burglary-defense-connecticut.html"],[href="robbery-defense-connecticut.html"],
[href="white-collar-financial-crimes-connecticut.html"],[href="juvenile-defense-connecticut.html"],[href="risk-injury-minor-defense-connecticut.html"],[href="youthful-offender-connecticut.html"],
[href="connecticut-criminal-record-erasure.html"],[href="connecticut-pardons.html"],[href="connecticut-part-a-part-b-criminal-court.html"],[href="sexual-assault-defense-connecticut.html"],[href="disorderly-conduct-breach-peace-connecticut.html"]
)::before{content:"";position:absolute;inset:0;z-index:-2;background-image:var(--charge-hover-image);background-color:#0b2744;background-size:100% auto;background-repeat:no-repeat;background-position:center top;opacity:0;transform:none;transition:opacity .24s ease;}

:where(a.card,a.prac):where(
[href="connecticut-dui-oui-defense.html"],[href="first-offense-oui-connecticut.html"],[href="oui-drugs-connecticut.html"],[href="oui-refusal-connecticut.html"],
[href="domestic-violence-defense-connecticut.html"],[href="family-violence-arrest-connecticut.html"],[href="family-violence-education-program-connecticut.html"],
[href="protective-order-violation-connecticut.html"],[href="connecticut-protective-orders.html"],[href="modify-protective-order-connecticut.html"],[href="probation-violation-connecticut.html"],[href="violation-probation-arrest-connecticut.html"],
[href="assault-defense-connecticut.html"],[href="weapons-firearms-defense-connecticut.html"],[href="carrying-pistol-without-permit-connecticut.html"],[href="criminal-possession-firearm-connecticut.html"],[href="firearms-protective-orders-connecticut.html"],
[href="drug-charges-connecticut.html"],[href="pretrial-drug-program-connecticut.html"],[href="larceny-theft-defense-connecticut.html"],[href="burglary-defense-connecticut.html"],[href="robbery-defense-connecticut.html"],
[href="white-collar-financial-crimes-connecticut.html"],[href="juvenile-defense-connecticut.html"],[href="risk-injury-minor-defense-connecticut.html"],[href="youthful-offender-connecticut.html"],
[href="connecticut-criminal-record-erasure.html"],[href="connecticut-pardons.html"],[href="connecticut-part-a-part-b-criminal-court.html"],[href="sexual-assault-defense-connecticut.html"],[href="disorderly-conduct-breach-peace-connecticut.html"]
)::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(9,30,51,.42) 0%,rgba(9,30,51,.58) 34%,rgba(9,30,51,.88) 68%,rgba(9,30,51,.96) 100%);opacity:0;transition:opacity .24s ease;}

@media (hover:hover){
:where(a.card,a.prac):where(
[href="connecticut-dui-oui-defense.html"],[href="first-offense-oui-connecticut.html"],[href="oui-drugs-connecticut.html"],[href="oui-refusal-connecticut.html"],
[href="domestic-violence-defense-connecticut.html"],[href="family-violence-arrest-connecticut.html"],[href="family-violence-education-program-connecticut.html"],
[href="protective-order-violation-connecticut.html"],[href="connecticut-protective-orders.html"],[href="modify-protective-order-connecticut.html"],[href="probation-violation-connecticut.html"],[href="violation-probation-arrest-connecticut.html"],
[href="assault-defense-connecticut.html"],[href="weapons-firearms-defense-connecticut.html"],[href="carrying-pistol-without-permit-connecticut.html"],[href="criminal-possession-firearm-connecticut.html"],[href="firearms-protective-orders-connecticut.html"],
[href="drug-charges-connecticut.html"],[href="pretrial-drug-program-connecticut.html"],[href="larceny-theft-defense-connecticut.html"],[href="burglary-defense-connecticut.html"],[href="robbery-defense-connecticut.html"],
[href="white-collar-financial-crimes-connecticut.html"],[href="juvenile-defense-connecticut.html"],[href="risk-injury-minor-defense-connecticut.html"],[href="youthful-offender-connecticut.html"],
[href="connecticut-criminal-record-erasure.html"],[href="connecticut-pardons.html"],[href="connecticut-part-a-part-b-criminal-court.html"],[href="sexual-assault-defense-connecticut.html"],[href="disorderly-conduct-breach-peace-connecticut.html"]
):is(:hover,:focus-visible)::before{opacity:1;transform:none;}

:where(a.card,a.prac):where(
[href="connecticut-dui-oui-defense.html"],[href="first-offense-oui-connecticut.html"],[href="oui-drugs-connecticut.html"],[href="oui-refusal-connecticut.html"],
[href="domestic-violence-defense-connecticut.html"],[href="family-violence-arrest-connecticut.html"],[href="family-violence-education-program-connecticut.html"],
[href="protective-order-violation-connecticut.html"],[href="connecticut-protective-orders.html"],[href="modify-protective-order-connecticut.html"],[href="probation-violation-connecticut.html"],[href="violation-probation-arrest-connecticut.html"],
[href="assault-defense-connecticut.html"],[href="weapons-firearms-defense-connecticut.html"],[href="carrying-pistol-without-permit-connecticut.html"],[href="criminal-possession-firearm-connecticut.html"],[href="firearms-protective-orders-connecticut.html"],
[href="drug-charges-connecticut.html"],[href="pretrial-drug-program-connecticut.html"],[href="larceny-theft-defense-connecticut.html"],[href="burglary-defense-connecticut.html"],[href="robbery-defense-connecticut.html"],
[href="white-collar-financial-crimes-connecticut.html"],[href="juvenile-defense-connecticut.html"],[href="risk-injury-minor-defense-connecticut.html"],[href="youthful-offender-connecticut.html"],
[href="connecticut-criminal-record-erasure.html"],[href="connecticut-pardons.html"],[href="connecticut-part-a-part-b-criminal-court.html"],[href="sexual-assault-defense-connecticut.html"],[href="disorderly-conduct-breach-peace-connecticut.html"]
):is(:hover,:focus-visible)::after{opacity:1;}

:where(a.card,a.prac):where(
[href="connecticut-dui-oui-defense.html"],[href="first-offense-oui-connecticut.html"],[href="oui-drugs-connecticut.html"],[href="oui-refusal-connecticut.html"],
[href="domestic-violence-defense-connecticut.html"],[href="family-violence-arrest-connecticut.html"],[href="family-violence-education-program-connecticut.html"],
[href="protective-order-violation-connecticut.html"],[href="connecticut-protective-orders.html"],[href="modify-protective-order-connecticut.html"],[href="probation-violation-connecticut.html"],[href="violation-probation-arrest-connecticut.html"],
[href="assault-defense-connecticut.html"],[href="weapons-firearms-defense-connecticut.html"],[href="carrying-pistol-without-permit-connecticut.html"],[href="criminal-possession-firearm-connecticut.html"],[href="firearms-protective-orders-connecticut.html"],
[href="drug-charges-connecticut.html"],[href="pretrial-drug-program-connecticut.html"],[href="larceny-theft-defense-connecticut.html"],[href="burglary-defense-connecticut.html"],[href="robbery-defense-connecticut.html"],
[href="white-collar-financial-crimes-connecticut.html"],[href="juvenile-defense-connecticut.html"],[href="risk-injury-minor-defense-connecticut.html"],[href="youthful-offender-connecticut.html"],
[href="connecticut-criminal-record-erasure.html"],[href="connecticut-pardons.html"],[href="connecticut-part-a-part-b-criminal-court.html"],[href="sexual-assault-defense-connecticut.html"],[href="disorderly-conduct-breach-peace-connecticut.html"]
):is(:hover,:focus-visible){color:#fff!important;border-top-color:#d9a441!important;}

:where(a.card,a.prac):where(
[href="connecticut-dui-oui-defense.html"],[href="first-offense-oui-connecticut.html"],[href="oui-drugs-connecticut.html"],[href="oui-refusal-connecticut.html"],
[href="domestic-violence-defense-connecticut.html"],[href="family-violence-arrest-connecticut.html"],[href="family-violence-education-program-connecticut.html"],
[href="protective-order-violation-connecticut.html"],[href="connecticut-protective-orders.html"],[href="modify-protective-order-connecticut.html"],[href="probation-violation-connecticut.html"],[href="violation-probation-arrest-connecticut.html"],
[href="assault-defense-connecticut.html"],[href="weapons-firearms-defense-connecticut.html"],[href="carrying-pistol-without-permit-connecticut.html"],[href="criminal-possession-firearm-connecticut.html"],[href="firearms-protective-orders-connecticut.html"],
[href="drug-charges-connecticut.html"],[href="pretrial-drug-program-connecticut.html"],[href="larceny-theft-defense-connecticut.html"],[href="burglary-defense-connecticut.html"],[href="robbery-defense-connecticut.html"],
[href="white-collar-financial-crimes-connecticut.html"],[href="juvenile-defense-connecticut.html"],[href="risk-injury-minor-defense-connecticut.html"],[href="youthful-offender-connecticut.html"],
[href="connecticut-criminal-record-erasure.html"],[href="connecticut-pardons.html"],[href="connecticut-part-a-part-b-criminal-court.html"],[href="sexual-assault-defense-connecticut.html"],[href="disorderly-conduct-breach-peace-connecticut.html"]
):is(:hover,:focus-visible) :is(h3,p,.k,.go){color:#fff!important;}
}

@media (prefers-reduced-motion:reduce){
:where(a.card,a.prac)::before,:where(a.card,a.prac)::after{transition:none!important;}
}
