/* ============================================================
   AcceGuru - shared admin styles
   ============================================================
   This file holds the surfaces NOT replaced by the new
   admin/css/acceguru-design.css redesign:

   - Block Editor sidebar (.a11y-sidebar*, .a11y-chip, .a11y-issue*)
   - Help-tip popup (.a11y-help-tip*)
   - Front-end overlay shared issue chrome (.a11y-issue__row/help/code/wp-hint)
   - Bulk Alt Text progress bar / log items (JS-built)

   Old dashboard / settings / table / cards CSS lived here
   before the redesign. Those rules now come from
   acceguru-design.css inside .wrap.a11y-design.
   ============================================================ */

/* ============================================================
   Block Editor sidebar - scan panel

   Same layout, type scale and spacing as the front-end panel,
   inside the 280px WordPress gives a plugin sidebar. Colours are
   the approved palette, taken from the panel one to one.
   ============================================================ */

.acceguru-ed {
	--acceguru-navy: #05386e;
	--acceguru-mint: #2fbe8b;
	--acceguru-red: #ed3237;
	--acceguru-orange: #e07b1f;
	--acceguru-yellow: #f6c445;
	--acceguru-blue: #2271b1;
	--acceguru-indigo: #ac22c3;
	--acceguru-grey: #676c71;
	--acceguru-line: #e6e7e8;
	--acceguru-line-soft: #f1f1f2;
	--acceguru-band: #f9f9f9;
	--acceguru-band-soft: #fbfbfb;
	--acceguru-tip: #eef7f1;
	--acceguru-body: #363738;
	font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: var(--acceguru-navy);
}

.acceguru-ed button:focus-visible,
.acceguru-ed a:focus-visible {
	outline: 2px solid var(--acceguru-navy);
	outline-offset: 1px;
}

/* --- panes and their tabs --- */

/* The strip appears only when an add-on registered a second pane; on its
   own the free sidebar has one pane and no tabs at all. */
.acceguru-ed__tabs {
	display: flex;
	border-bottom: 1px solid var(--acceguru-line);
}

.acceguru-ed .acceguru-ed__tab {
	flex: 1;
	padding: 13px 10px;
	border: 0;
	background: transparent;
	font-family: 'Archivo', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: -0.025em;
	text-transform: uppercase;
	text-align: center;
	color: var(--acceguru-grey);
	cursor: pointer;
}

.acceguru-ed .acceguru-ed__tab:hover {
	color: var(--acceguru-navy);
}

.acceguru-ed .acceguru-ed__tab[aria-selected="true"] {
	font-weight: 800;
	color: var(--acceguru-navy);
	box-shadow: inset 0 -3px 0 var(--acceguru-mint);
}

.acceguru-ed__pane:focus-visible {
	outline: 2px solid var(--acceguru-navy);
	outline-offset: -2px;
}

/* --- what was scanned --- */

.acceguru-ed__scan {
	position: relative;
	padding: 20px 18px 18px;
}

.acceguru-ed__kicker-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.acceguru-ed__kicker {
	font-family: 'Archivo Narrow', system-ui, sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--acceguru-grey);
}

/* The editor sidebar styles WordPress's own h2 and h3 inside it, and that
   rule carries more weight than a single class of ours. Repeating the block
   class wins it back, so the title and the severity labels keep the size,
   weight, colour and zero margin the design gives them. */
.acceguru-ed .acceguru-ed__title {
	margin: 0 46px 0 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: var(--acceguru-navy);
	overflow-wrap: break-word;
	/* Two lines, then an ellipsis; the full name stays as the tooltip. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.acceguru-ed__scan-head {
	margin-top: 8px;
}

/* Sits on the numbers line, five pixels above their baseline block, exactly
   where the front-end panel puts it. */
.acceguru-ed__refresh {
	position: absolute;
	bottom: 23px;
	right: 18px;
	height: 33px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 0;
	border-radius: 17px;
	background: var(--acceguru-mint);
	color: #fff;
	cursor: pointer;
	transition: background .15s ease;
}

/* With nothing scanned yet there is no numbers line, so the button keeps to
   the top corner instead of sliding over the title. */
.acceguru-ed__scan--empty .acceguru-ed__refresh {
	top: 34px;
	bottom: auto;
}

.acceguru-ed__refresh:hover:not( :disabled ) {
	background: #24936c;
}

.acceguru-ed__refresh:disabled {
	opacity: .6;
	cursor: default;
}

.acceguru-ed__refresh-icon {
	flex: none;
	width: 33px;
	height: 33px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.acceguru-ed__refresh-label {
	max-width: 0;
	padding-left: 0;
	opacity: 0;
	font-family: 'Archivo', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	transition: max-width .18s ease, padding .18s ease, opacity .12s ease;
}

.acceguru-ed__refresh:hover:not( :disabled ) .acceguru-ed__refresh-label,
.acceguru-ed__refresh:focus-visible .acceguru-ed__refresh-label {
	max-width: 120px;
	padding-left: 14px;
	opacity: 1;
}

/* --- the two numbers --- */

.acceguru-ed__stats {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	margin-top: 18px;
}

.acceguru-ed__stat {
	flex: none;
}

.acceguru-ed__stat-value {
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
}

.acceguru-ed__stat-value--issues {
	color: var(--acceguru-red);
}

.acceguru-ed__stat-value--clean {
	color: var(--acceguru-mint);
}

.acceguru-ed__stat-value--manual {
	color: var(--acceguru-indigo);
}

.acceguru-ed__stat-divider {
	width: 2px;
	align-self: stretch;
	background: var(--acceguru-line);
}

/* The sidebar zeroes the top margin of every paragraph inside it with a rule
   that already carries two classes and a tag, so this one repeats its class
   to outweigh it and keep the line off the numbers. */
.acceguru-ed .acceguru-ed__note.acceguru-ed__note {
	margin: 10px 0 0;
	font-family: 'Archivo Narrow', system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: var(--acceguru-grey);
}

.acceguru-ed__empty {
	margin: 0;
	padding: 0 18px 18px;
	font-family: 'Archivo Narrow', system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: var(--acceguru-grey);
}

/* --- manual checks --- */

.acceguru-ed__manual {
	border-top: 1px solid var(--acceguru-line);
	border-bottom: 1px solid var(--acceguru-line);
	background: var(--acceguru-band-soft);
}

/* No colour bar on this row: the bar marks an open category further down,
   and the front-end panel does not carry one here either. */
.acceguru-ed__manual-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 12px 18px;
	border: 0;
	background: transparent;
	color: var(--acceguru-navy);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.acceguru-ed__manual-btn:hover {
	background: var(--acceguru-band);
}

/* Same question mark the front-end panel puts before the label. */
.acceguru-ed__manual-flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--acceguru-indigo);
	color: #fff;
	font-family: 'Archivo Narrow', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.acceguru-ed__manual-name {
	flex: 1;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.acceguru-ed__manual-count,
.acceguru-ed__cat-count--manual {
	flex: none;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--acceguru-indigo);
	font-variant-numeric: tabular-nums;
}

.acceguru-ed__manual-btn[aria-expanded="true"] .acceguru-ed__chevron {
	transform: rotate( 180deg );
}

.acceguru-ed__manual-empty {
	margin: 0;
	padding: 10px 18px 14px 22px;
	border-top: 1px solid var(--acceguru-line-soft);
	font-family: 'Archivo Narrow', system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: var(--acceguru-grey);
}

.acceguru-ed__cat--manual .acceguru-ed__cat-btn[aria-expanded="true"] .acceguru-ed__cat-bar {
	background: var(--acceguru-indigo);
}

.acceguru-ed__cat--manual .acceguru-ed__rule {
	background: var(--acceguru-band-soft);
}


/* --- severity band --- */

.acceguru-ed__band {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	background: var(--acceguru-band);
	border-top: 1px solid var(--acceguru-line);
	border-bottom: 1px solid var(--acceguru-line);
}

.acceguru-ed__dot {
	width: 8px;
	height: 8px;
	flex: none;
	border-radius: 50%;
	display: block;
}

.acceguru-ed .acceguru-ed__band-label {
	margin: 0;
	font-family: 'Archivo Narrow', system-ui, sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--acceguru-navy);
}

.acceguru-ed__band-count {
	margin-left: auto;
	font-family: 'Archivo Narrow', system-ui, sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--acceguru-grey);
}

/* --- category rows --- */

.acceguru-ed__cat-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 18px 12px 0;
	border: 0;
	border-bottom: 1px solid var(--acceguru-line-soft);
	background: transparent;
	color: var(--acceguru-navy);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.acceguru-ed__cat-btn:hover {
	background: var(--acceguru-band);
}

.acceguru-ed__cat-bar {
	width: 4px;
	flex: none;
	align-self: stretch;
	background: var(--acceguru-line);
}

.acceguru-ed__cat-btn[aria-expanded="true"] .acceguru-ed__cat-bar {
	background: var(--acceguru-mint);
}

.acceguru-ed__cat-name {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
}

.acceguru-ed__cat-count {
	flex: none;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.acceguru-ed__cat-count--critical {
	color: var(--acceguru-red);
}

.acceguru-ed__cat-count--serious {
	color: var(--acceguru-orange);
}

.acceguru-ed__cat-count--moderate {
	color: var(--acceguru-yellow);
}

.acceguru-ed__cat-count--minor {
	color: var(--acceguru-blue);
}

.acceguru-ed__chevron {
	flex: none;
	color: var(--acceguru-grey);
	transition: transform .15s;
}

.acceguru-ed__cat-btn[aria-expanded="true"] .acceguru-ed__chevron,
.acceguru-ed__rule-btn[aria-expanded="true"] .acceguru-ed__chevron {
	transform: rotate( 180deg );
}

/* --- finding rows --- */

.acceguru-ed__rule {
	border-bottom: 1px solid var(--acceguru-line);
	background: var(--acceguru-band-soft);
}

.acceguru-ed__rule-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 18px 8px 22px;
	border: 0;
	background: transparent;
	color: var(--acceguru-navy);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.acceguru-ed__rule-btn:hover {
	background: var(--acceguru-band);
}

.acceguru-ed__rule-name {
	flex: 1;
	font-size: 13.5px;
	overflow-wrap: break-word;
}

.acceguru-ed__rule-count {
	flex: none;
	font-family: 'Archivo Narrow', system-ui, sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--acceguru-grey);
	font-variant-numeric: tabular-nums;
}

/* --- finding details --- */

.acceguru-ed__details {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 6px 18px 16px 22px;
	border-top: 1px solid var(--acceguru-line);
}

/* Plain body text in the reference, the same as on the site panel. */
.acceguru-ed__desc {
	margin: 0;
	font-family: 'Archivo Narrow', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--acceguru-body);
}

.acceguru-ed__badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.acceguru-ed__badge {
	font-family: 'Archivo Narrow', system-ui, sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 3px 9px;
	background: #f0f0f0;
	color: var(--acceguru-grey);
}

.acceguru-ed__badge--wcag {
	background: #dceefb;
	color: #2a6f9e;
}

.acceguru-ed__badge--508 {
	background: #fbe4cf;
	color: #a3661f;
}

.acceguru-ed__badge--en {
	background: #fbe9ee;
	color: #a3486a;
}

.acceguru-ed__link {
	align-self: flex-start;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--acceguru-mint);
	text-decoration: none;
}

.acceguru-ed__link:hover {
	text-decoration: underline;
}

.acceguru-ed__hint {
	margin: 0;
	padding: 8px 10px;
	background: var(--acceguru-tip);
	font-family: 'Archivo Narrow', system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: var(--acceguru-grey);
}

.acceguru-ed__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.acceguru-ed__action {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: 'Archivo Narrow', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--acceguru-grey);
	cursor: pointer;
}

.acceguru-ed__action:hover {
	color: var(--acceguru-mint);
}

.acceguru-ed__code-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.acceguru-ed__code {
	margin: 0;
	padding: 8px 10px;
	background: var(--acceguru-body);
	border-left: 3px solid var(--acceguru-line);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 12px;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	color: #fff;
}

/* Same dark slab as the markup block; the mint edge is what marks it. */
.acceguru-ed__code--selector {
	background: var(--acceguru-body);
	border-left-color: var(--acceguru-mint);
	color: #fff;
}

/* --- foot --- */

.acceguru-ed__foot {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 20px;
	border-top: 1px solid var(--acceguru-line);
}

.acceguru-ed__foot .acceguru-ed__note {
	margin: 0;
}

/* ============================================================
   Block Editor sidebar - shared chrome used by the Pro add-on
   ============================================================ */

.a11y-sidebar {
	padding: 12px;
	font-size: 13px;
}

.a11y-sidebar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	gap: 8px;
}

.a11y-sidebar__description {
	margin: 0;
	color: #555;
	font-size: 12px;
}

.a11y-sidebar__rescan {
	flex-shrink: 0;
}

.a11y-sidebar__summary {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 12px;
}

.a11y-sidebar__summary-headline {
	margin: 0 0 6px;
	font-weight: 600;
	font-size: 13px;
	color: #1e1e1e;
}

/* Counters: the same pair the front-end panel shows, so both places open
   with the same two numbers. */
.a11y-sidebar__counts {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	margin-bottom: 8px;
}

.a11y-sidebar__count {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.a11y-sidebar__count-label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #6b7177;
}

.a11y-sidebar__count-value {
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}

.a11y-sidebar__count-value--manual {
	color: #ac22c3;
}

.a11y-sidebar__manual-note {
	margin: 0 0 6px;
	font-size: 11px;
	line-height: 1.5;
	color: #6b7177;
}

/* Severity band, then subject. Mirrors the front-end panel's order. */
.a11y-sidebar__group {
	margin-bottom: 10px;
}

.a11y-sidebar__group-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	background: #f6f7f7;
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
}

.a11y-sidebar__group-dot {
	width: 8px;
	height: 8px;
	flex: none;
	border-radius: 50%;
	display: block;
}

.a11y-sidebar__group-label {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #1e1e1e;
}

.a11y-sidebar__group-count {
	margin-left: auto;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #6b7177;
}

.a11y-sidebar__cat-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 8px;
	border: 0;
	border-bottom: 1px solid #f0f0f0;
	background: transparent;
	color: #1e1e1e;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.a11y-sidebar__cat-btn:hover {
	background: #f6f7f7;
}

.a11y-sidebar__cat-name {
	flex: 1;
	font-weight: 600;
	font-size: 12.5px;
}

.a11y-sidebar__cat-count {
	font-weight: 700;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.a11y-sidebar__cat-arrow {
	flex: none;
	font-size: 11px;
	color: #6b7177;
}

.a11y-sidebar__impact-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 6px;
}

.a11y-chip {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	border: 1.5px solid currentColor;
	font-size: 11px;
	font-weight: 600;
}

.a11y-sidebar__scan-date {
	margin: 4px 0 0;
	font-size: 11px;
	color: #999;
}

.a11y-sidebar__issues {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.a11y-issue {
	padding: 8px 10px;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.a11y-issue:hover {
	border-color: #2271b1;
}

.a11y-issue__badge {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	align-self: flex-start;
}

.a11y-issue__description {
	font-size: 12px;
	color: #1e1e1e;
	line-height: 1.4;
}

.a11y-issue__wcag {
	font-size: 10px;
	color: #757575;
	font-family: monospace;
}

.a11y-sidebar__empty {
	color: #999;
	font-size: 12px;
	font-style: italic;
	text-align: center;
	padding: 16px 0;
}

.a11y-sidebar__footer {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid #e0e0e0;
	text-align: center;
}

/* ============================================================
   Bulk Alt Text - progress bar + log (JS-built)
   ============================================================
   The Bulk Alt page itself is rendered inside the AI tab
   (.wrap.a11y-design) where the design system overrides the
   container chrome. These rules cover the JS-injected log
   items + progress bar fallback styling.
   ============================================================ */

.acceguru-bulk-alt__controls {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 16px;
	flex-wrap: wrap;
}

.acceguru-bulk-alt__progress {
	margin-top: 16px;
	max-width: 600px;
}

.acceguru-bulk-alt__bar {
	height: 16px;
	background: #f0f0f0;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	overflow: hidden;
}

.acceguru-bulk-alt__fill {
	display: block;
	height: 100%;
	background: #2271b1;
	transition: width 0.2s ease;
}

.acceguru-bulk-alt__log:empty {
	display: none;
}

.acceguru-bulk-alt__log-item {
	padding: 4px 0;
	font-size: 13px;
	border-bottom: 1px solid #f4f4f4;
	line-height: 1.5;
}

.acceguru-bulk-alt__log-item:last-child {
	border-bottom: none;
}

.acceguru-bulk-alt__log-item--ok strong {
	color: #1a7f37;
}

.acceguru-bulk-alt__log-item--err strong {
	color: #b32d2e;
}

/* ============================================================
   Help tooltips (popup tooltip used in dashboard, settings,
   sidebar, overlay - hover/focus/click behaviour driven by
   admin.js)
   ============================================================ */

.a11y-help-tip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	margin-left: 4px;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: #2271b1;
	cursor: help;
	vertical-align: middle;
	position: relative;
}

.a11y-help-tip:hover,
.a11y-help-tip:focus {
	color: #135e96;
	outline: none;
}

.a11y-help-tip:focus-visible {
	box-shadow: 0 0 0 2px #2271b1;
}

.a11y-help-tip .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.a11y-help-tip__content {
	position: absolute;
	bottom: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 2147483000;
	display: none;
	max-width: 280px;
	min-width: 200px;
	padding: 10px 12px;
	background: #1e1e1e;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	white-space: normal;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
	pointer-events: none;
}

.a11y-help-tip__content::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX( calc( -50% + var( --a11y-tip-arrow-shift, 0px ) ) );
	border: 6px solid transparent;
	border-top-color: #1e1e1e;
}

/* When auto-flipped to render BELOW the icon (added by JS when there is
   not enough room above). Arrow points up. */
.a11y-help-tip__content.is-below {
	bottom: auto;
	top: calc(100% + 8px);
}
.a11y-help-tip__content.is-below::after {
	top: auto;
	bottom: 100%;
	border-top-color: transparent;
	border-bottom-color: #1e1e1e;
}

.a11y-help-tip:hover + .a11y-help-tip__content,
.a11y-help-tip:focus + .a11y-help-tip__content,
.a11y-help-tip[aria-expanded="true"] + .a11y-help-tip__content {
	display: block;
}

.a11y-help-tip-wrap {
	display: inline-block;
	position: relative;
}

/* ============================================================
   Shared issue-card extras (sidebar + front-end overlay)
   ============================================================ */

.a11y-issue__row {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 6px;
}

/* Shown in the editor sidebar when a saved finding points at a theme part
   (header, navigation, footer) that the editor does not contain. */
.a11y-issue__note {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: #646970;
}

.a11y-issue__help {
	margin: 6px 0 0;
	padding: 6px 8px;
	background: #f6f7f7;
	border-left: 3px solid #c3c4c7;
	font-size: 12px;
	line-height: 1.45;
	color: #1d2327;
}

.a11y-issue__help-link {
	display: inline-block;
	margin-top: 4px;
	font-size: 12px;
	text-decoration: none;
}

.a11y-issue__help-link:hover {
	text-decoration: underline;
}

.a11y-issue__code {
	margin-top: 6px;
}

.a11y-issue__code-summary {
	font-size: 12px;
	color: #2271b1;
	cursor: pointer;
	list-style: none;
	outline: none;
}

.a11y-issue__code-summary::-webkit-details-marker {
	display: none;
}

.a11y-issue__code-selector {
	margin-top: 6px;
	font-family: Menlo, Consolas, monospace;
	font-size: 11px;
	color: #646970;
	word-break: break-all;
}

.a11y-issue__code-pre {
	margin: 4px 0 0;
	padding: 8px 10px;
	background: #1e1e1e;
	color: #f6f7f7;
	font-family: Menlo, Consolas, monospace;
	font-size: 11px;
	line-height: 1.45;
	border-radius: 4px;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-all;
}

.a11y-issue__wp-hint {
	margin: 4px 0;
	padding: 6px 8px;
	background: #fff8e5;
	border-left: 3px solid #dba617;
	font-size: 12px;
	line-height: 1.45;
	color: #1d2327;
}
