/* =========================================================================
 * Insight card variants (digest-20261112)
 * Weekly Legal Digest = BLUE bulletin card (.art--digest)
 * Legal Update        = RED news/analysis card (.art--update)
 * Markup: template-parts/card-insight.php. Same outer .art box + grid footprint
 * as the default card so every insight grid stays tidy; only structure + colour
 * differ. Contrast (AA): #fff/#15224d 15.4:1 · #c9d4f2/#15224d 10.6:1 ·
 * #e2c27a/#15224d 8.6:1 · #26408d/#fff 9.6:1 · #26408d/#eef1f8 8.6:1 ·
 * #d81f26/#fff 4.9:1 · #b3161c/#fdeaea 5.9:1.
 * ========================================================================= */

/* ---------- shared focus ring (keyboard) ---------- */
.art--digest h3 a:focus-visible,
.art--digest .arrow-link:focus-visible,
.art--update h3 a:focus-visible,
.art--update .arrow-link:focus-visible{outline:3px solid currentColor;outline-offset:3px;border-radius:4px}
.art--digest:focus-within{box-shadow:0 0 0 3px #9fb2e6,var(--sh-2)}
.art--update:focus-within{box-shadow:0 0 0 3px #f2a7aa,var(--sh-2)}

/* =================== WEEKLY LEGAL DIGEST — BLUE =================== */
.art--digest{border-color:#cfd8ef;border-top:4px solid var(--blue);display:flex;flex-direction:column}
.art--digest:hover{border-color:#9fb2e6;box-shadow:0 24px 60px rgba(38,64,141,.22)}
.art--digest .dg-head{
	position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:10px;
	aspect-ratio:16/10;padding:22px 24px;overflow:hidden;color:#fff;
	background:
		repeating-linear-gradient(0deg,rgba(255,255,255,.045) 0 1px,transparent 1px 22px),
		linear-gradient(135deg,var(--blue-ink) 0%,#1b2f6b 60%,var(--blue) 100%);
}
/* faint masthead rule lines, like a printed bulletin */
.art--digest .dg-head::after{content:"";position:absolute;right:-30px;bottom:-30px;width:150px;height:150px;border:18px solid rgba(255,255,255,.06);border-radius:50%;pointer-events:none}
.art--digest .dg-mast{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.22)}
.art--digest .dg-ico{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:8px;background:rgba(255,255,255,.12);color:#e2c27a;flex:none}
.art--digest .dg-ico svg{width:16px;height:16px}
.art--digest .dg-kicker{font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#c9d4f2}
.art--digest .dg-range{font-family:var(--font-display);font-size:clamp(26px,2.3vw,32px);line-height:1.1;font-weight:700;color:#fff;letter-spacing:.01em;position:relative;z-index:1}
.art--digest .dg-ed{align-self:flex-start;font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--blue-ink);background:#e2c27a;padding:4px 11px;border-radius:var(--r-pill);position:relative;z-index:1}
.art--digest .b{background:#fff;flex:1;display:flex;flex-direction:column}
.art--digest h3{font-size:17px;line-height:1.35}
.art--digest h3 a{color:var(--blue-ink)}
.art--digest:hover h3,.art--digest:hover h3 a{color:var(--blue)}
.art--digest .dg-issue{background:var(--blue-pale);border-left:3px solid var(--blue);border-radius:0 var(--r) var(--r) 0;padding:12px 14px 12px 16px;margin:2px 0 18px}
.art--digest .dg-issue-h{display:block;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);margin-bottom:6px}
.art--digest .dg-issue ul{list-style:none;margin:0;padding:0}
.art--digest .dg-issue li{position:relative;padding-left:16px;font-size:13.5px;line-height:1.45;color:#2b3350;margin:0 0 5px}
.art--digest .dg-issue li:last-child{margin-bottom:0}
.art--digest .dg-issue li::before{content:"";position:absolute;left:0;top:.58em;width:7px;height:7px;border-radius:2px;background:var(--blue)}
.art--digest .arrow-link{color:var(--blue);margin-top:auto}
.art--digest .arrow-link:hover{color:var(--blue-ink)}

/* ======================= LEGAL UPDATE — RED ======================= */
.art--update{border-top:4px solid var(--red);display:flex;flex-direction:column}
.art--update:hover{border-color:#f2b9bb;border-top-color:var(--red);box-shadow:0 24px 60px rgba(216,31,38,.16)}
.art--update .th::after{content:"";position:absolute;inset:auto 0 0 0;height:40%;background:linear-gradient(to top,rgba(21,34,77,.35),transparent);pointer-events:none}
.art--update .tag{background:var(--red);box-shadow:0 2px 8px rgba(0,0,0,.18);letter-spacing:.08em;font-weight:700}
.art--update .b{flex:1;display:flex;flex-direction:column}
.art--update .dt{color:#b3161c;background:var(--red-pale);align-self:flex-start;padding:4px 10px;border-radius:var(--r-pill);font-weight:500}
.art--update .dt svg{color:#b3161c}
.art--update:hover h3,.art--update:hover h3 a{color:var(--red)}
.art--update .up-by{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:var(--ink);margin:-4px 0 16px}
.art--update .up-by svg{width:14px;height:14px;color:var(--red)}
.art--update .arrow-link{color:var(--red);margin-top:auto}
.art--update .arrow-link:hover{color:var(--red-dark)}

/* ---------- mobile ---------- */
@media(max-width:600px){
	.art--digest .dg-head{padding:18px 20px}
	.art--digest .dg-range{font-size:26px}
}
@media (prefers-reduced-motion:reduce){.art--digest,.art--update{transition:none}.art--digest:hover,.art--update:hover{transform:none}}
