/* Rules shared by every page of the judgments app (loaded after the CourtsV2 stylesheets). */

/* Keyboard focus: CourtsV2 rings a, input, select and button; give summary the same ring
   where a page does not style it itself. */
summary:focus-visible { outline: #fd0 solid 6px; }

/* Show the CourtsV2 yellow ring for keyboard focus only, not after a mouse click (Marco, 28 Oct).
   :focus-visible is the browser's own "keyboard or keyboard-like" heuristic, so keyboard users keep
   exactly the same ring; text inputs still show it on click, which is the browser's choice. */
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none !important; }
.courts-cards .card:focus-within:not(:has(:focus-visible)) { outline: none; }

/* Inline SVG icons (Infrastructure/Icons.cs): sized like the icon font they replace. */
.icon { display: inline-block; width: 1em; height: 1em; font-size: 24px; fill: currentColor; vertical-align: middle; flex-shrink: 0; }
.icon--32 { font-size: 32px; }

/* Scanned-image notice on the detail page. */
.document-notice { margin: 8px 0 0; }
/* Judgment details - Back to results */
.judgments-back-link {
    margin: 4px 0;
}

    .judgments-back-link a {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        text-decoration: none;
    }

    .judgments-back-link .icon {
        font-size: 20px;
        line-height: 1;
    }

.judgments-back-link__text {
    text-decoration: underline;
    text-underline-offset: 2px;
}
/* CourtsV2 marks every target=_blank link with a Material Symbols glyph (::after). The font is no
   longer loaded (inline SVG icons instead), so it renders as an empty box; links that open a new tab
   carry their own open_in_new SVG. Loaded after courtsv2.css, so the same selector wins (Marco). */
.courts-template-content a[target=_blank]:after {
    display: none;
}
