/**
 * PHISH Portal - styles for the plugin's own widgets.
 *
 * Layout and brand colours come from the Elementor kit; these rules only cover
 * the parts a widget has to draw itself (player frame, counters, bar). Every
 * colour is a custom property so the kit can override it in one place.
 */

:root {
	--phish-deep: #1a355b;
	--phish-accent: #2563eb;
	--phish-tint: #eff6ff;
	--phish-track: #e2e8f0;
	--phish-muted: #94a3b8;
	--phish-on-deep: rgba( 255, 255, 255, 0.82 );
	--phish-radius: 14px;
}

/* ------------------------------------------------------------------ player */

.phish-video {
	width: 100%;
}

.phish-video__frame {
	position: relative;
	width: 100%;
	height: 0;
	overflow: hidden;
	border-radius: var( --phish-radius );
	background-color: var( --phish-deep );
}

@supports ( aspect-ratio: 16 / 9 ) {
	/*
	 * A box sized only by percentage padding has an intrinsic height of zero,
	 * so as a flex item it collapses and the video ends up behind the text
	 * under it. aspect-ratio gives the frame a real height; the widget prints
	 * both and this drops the padding wherever the modern property works.
	 */
	.phish-video__frame {
		height: auto;
		padding-top: 0 !important;
	}
}



.phish-video__media,
.phish-video__frame iframe,
.phish-video__frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.phish-video__frame video {
	object-fit: contain;
	background-color: #000;
}

.phish-video__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 24px;
	text-align: center;
	color: var( --phish-on-deep );
	font-size: 15px;
	line-height: 1.5;
}

.phish-video__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: rgba( 255, 255, 255, 0.12 );
	position: relative;
	flex: none;
}

.phish-video__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 52%;
	transform: translate( -50%, -50% );
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent currentColor;
}

/* ---------------------------------------------------------- completion cta */

.phish-video__actions {
	margin-top: 16px;
	display: flex;
	justify-content: flex-start;
}

.phish-video__complete {
	appearance: none;
	border: 1px solid var( --phish-accent );
	background: transparent;
	color: var( --phish-accent );
	font: inherit;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

/*
 * Hello Elementor's reset.css is enqueued straight after this file and paints
 * every bare <button> its own pink on hover and focus:
 *
 *   button:focus, button:hover { background-color: #c36; color: #fff }
 *
 * Load order would win that fight, so the portal's own states are written with
 * the body class and beat it on specificity instead.
 */
body.phish-portal .phish-video__complete:hover:not( [disabled] ),
body.phish-portal .phish-video__complete:focus:not( [disabled] ) {
	background-color: var( --phish-tint );
	border-color: var( --phish-accent );
	color: var( --phish-accent );
}

.phish-video__complete.is-complete,
.phish-video__complete[disabled] {
	border-color: transparent;
	background-color: var( --phish-tint );
	color: var( --phish-accent );
	cursor: default;
}

.phish-video__complete.is-complete::before {
	content: "\2713\00a0";
}

/* ----------------------------------------------------------- module state */

/*
 * One module is one video, so a row is either watched or it is not. The tick
 * outline is always drawn; the mark inside it is only stroked once the
 * visitor has finished the video.
 */
.phish-module-state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var( --phish-muted );
	transition: color 0.15s ease;
}

.phish-module-state__tick {
	width: 18px;
	height: 18px;
	flex: none;
	display: block;
}

.phish-module-state__mark,
.phish-module-state__text {
	opacity: 0;
	transition: opacity 0.15s ease;
}

.phish-module-state.is-complete {
	color: var( --phish-accent );
}

.phish-module-state.is-complete .phish-module-state__mark,
.phish-module-state.is-complete .phish-module-state__text {
	opacity: 1;
}

.phish-module-state__text {
	font-size: 12px;
	font-weight: 600;
}

/* --------------------------------------------------------------- dashboard */

.phish-dashboard {
	width: 100%;
}

.phish-dashboard__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.phish-dashboard__label {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 11px;
	font-weight: 600;
	color: var( --phish-muted );
}

.phish-dashboard__count {
	font-size: 12px;
	font-weight: 600;
	color: var( --phish-accent );
	background-color: var( --phish-tint );
	padding: 3px 10px;
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
}

.phish-dashboard__track {
	width: 100%;
	height: 5px;
	border-radius: 999px;
	background-color: var( --phish-track );
	overflow: hidden;
}

.phish-dashboard__fill {
	height: 100%;
	width: 0;
	border-radius: inherit;
	background-color: var( --phish-accent );
	transition: width 0.35s ease;
}

/* ------------------------------------------------------- lesson done state */

[data-phish-module].is-done .phish-lesson-check {
	opacity: 1;
}

.phish-lesson-check {
	opacity: 0;
	transition: opacity 0.15s ease;
}

/* ------------------------------------------------------------------- shell */

/*
 * The sidebar is fixed so it never scrolls with the page. The width and the
 * top offset are measured from the real elements by the script, so whatever
 * the editor sets in Elementor is what the layout uses.
 */
:root {
	--phish-sidebar-w: 315px;
	--phish-topbar-h: 64px;
}

body.phish-portal .phish-topbar {
	position: sticky;
	top: 0;
	z-index: 120;
}

body.admin-bar .phish-topbar {
	top: 32px;
}

@media ( min-width: 1025px ) {
	body.phish-portal .phish-sidebar {
		position: fixed;
		top: var( --phish-topbar-h );
		left: 0;
		bottom: 0;
		width: var( --phish-sidebar-w );
		overflow-y: auto;
		overscroll-behavior: contain;
		z-index: 110;
	}

	body.admin-bar .phish-sidebar {
		top: calc( var( --phish-topbar-h ) + 32px );
	}

	/*
	 * Everything except the header sits beside the fixed sidebar. Targeting
	 * Elementor's document wrappers covers page content, archives, single
	 * lessons and the footer whatever the theme wraps them in.
	 */
	/*
	 * Every Elementor document except the header sits beside the fixed
	 * sidebar - pages, archives, single lessons, 404, search and the footer.
	 * Listing them one by one meant a new template type could slip under the
	 * sidebar, which is exactly what happened to the 404 page.
	 */
	.phish-portal.phish-has-sidebar [data-elementor-type]:not([data-elementor-type="header"]),
	.phish-portal.phish-has-sidebar .site-main {
		padding-left: var( --phish-doc-offset, var( --phish-sidebar-w ) );
	}

	/*
	 * Loop items and saved sections are Elementor documents of their own, so
	 * the rule above would indent every card inside a grid by the width of the
	 * sidebar. Only the outermost document is beside the sidebar; anything
	 * nested is already inside it.
	 */
	.phish-portal.phish-has-sidebar [data-elementor-type] [data-elementor-type] {
		--phish-doc-offset: 0px;
	}

	.phish-sidebar-toggle {
		display: none !important;
	}
}

/* --------------------------------------------------- sidebar as a menu */

/*
 * On a phone or tablet the module list is a menu that drops out of the top
 * bar: full width, only as tall as it needs to be, and scrolling inside itself
 * when there are more modules than fit.
 */
@media ( max-width: 1024px ) {
	body.phish-portal .phish-sidebar {
		position: fixed;
		top: var( --phish-topbar-h );
		bottom: auto;
		left: 0;
		right: 0;
		width: 100%;
		max-width: none;
		height: auto;
		/*
		 * The sidebar is a full height column on a desktop, which Elementor
		 * writes as min-height 100%; as a drop-down that would always be as
		 * tall as the screen.
		 */
		min-height: 0;
		max-height: min( 72vh, 620px );
		overflow-y: auto;
		overscroll-behavior: contain;
		z-index: 130;
		border-right: 0;
		border-bottom: 1px solid var( --phish-border );
		border-radius: 0 0 18px 18px;
		box-shadow: 0 20px 44px rgba( 15, 23, 42, 0.16 );
		padding: 12px 16px 18px;
		transform: translateY( -10px );
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	}

	body.admin-bar .phish-sidebar {
		top: calc( var( --phish-topbar-h ) + 46px );
	}

	body.phish-sidebar-open .phish-sidebar {
		transform: translateY( 0 );
		opacity: 1;
		visibility: visible;
	}

	.phish-sidebar-open::after {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba( 15, 23, 42, 0.42 );
		z-index: 125;
	}

	/* The EU line belongs to the page, not to a menu that drops down. */
	body.phish-portal .phish-sidebar .phish-sidebar-legal {
		display: none;
	}

	/*
	 * The way to the module archive on a phone. The top bar's "Training
	 * Platform" button is hidden below this breakpoint, so without this row
	 * /modules/ has no link pointing at it on a small screen at all.
	 */
	body.phish-portal .phish-sidebar-all {
		display: block;
		margin-top: 8px;
		padding: 12px 14px;
		border-top: 1px solid var( --phish-border );
		color: var( --phish-accent );
		font-weight: 600;
		text-decoration: none;
	}

	body.phish-portal .phish-sidebar-all::after {
		content: "\00a0\2192";
	}

	body.phish-portal .phish-sidebar-all:hover,
	body.phish-portal .phish-sidebar-all:focus {
		background-color: var( --phish-tint );
		border-radius: 10px;
	}
}

/* The desktop top bar already carries the button. */
@media ( min-width: 1025px ) {
	body.phish-portal .phish-sidebar-all {
		display: none;
	}
}

/* --------------------------------------------------------- language picker */

.phish-lang {
	position: relative;
}

.phish-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	appearance: none;
	background: transparent;
	border: 1px solid var( --phish-border );
	border-radius: 999px;
	padding: 8px 14px;
	font: inherit;
	color: inherit;
	cursor: pointer;
	line-height: 1;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/*
 * Same story as the completion button: Hello Elementor's reset.css turns any
 * hovered or focused <button> pink, which is what flashed while a visitor was
 * picking a language. The switcher is the one button a visitor uses on every
 * page, so it gets the portal's own tint, spelled out with the body class so
 * it wins on specificity rather than on stylesheet order.
 */
body.phish-portal .phish-lang .phish-lang__toggle:hover,
body.phish-portal .phish-lang .phish-lang__toggle:focus,
body.phish-portal .phish-lang .phish-lang__toggle:active,
body.phish-portal .phish-lang.is-open .phish-lang__toggle {
	background-color: var( --phish-tint );
	color: var( --phish-deep );
}

/* Open is the loud state; hovering is only a hint. */
body.phish-portal .phish-lang.is-open .phish-lang__toggle {
	border-color: var( --phish-accent );
}

.phish-lang__caret {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 5px 4px 0 4px;
	border-color: currentColor transparent transparent transparent;
	opacity: 0.6;
	transition: transform 0.15s ease;
}

.phish-lang.is-open .phish-lang__caret {
	transform: rotate( 180deg );
}

.phish-lang__panel {
	position: absolute;
	top: calc( 100% + 8px );
	right: 0;
	min-width: 168px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var( --phish-border );
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba( 15, 23, 42, 0.12 );
	z-index: 200;
}

.phish-lang__panel li {
	margin: 0;
	list-style: none;
}

.phish-lang__item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
}

.phish-lang__item:hover {
	background: var( --phish-tint );
}

.phish-lang__item.is-current {
	color: var( --phish-accent );
	font-weight: 600;
}

.phish-lang__flag img,
.phish-lang__flag {
	display: inline-flex;
	align-items: center;
}

/* ------------------------------------------------------------ module rows */

.phish-module-row {
	transition: background-color 0.14s ease;
	cursor: pointer;
}

.phish-module-row:hover {
	background-color: var( --phish-tint );
}

.phish-module-row.is-current {
	background-color: var( --phish-tint );
	box-shadow: inset 0 0 0 1px var( --phish-tint2, #dbeafe );
}

.phish-module-row.is-current .phish-module-row__badge {
	background-color: var( --phish-tint2, #dbeafe ) !important;
}

.phish-module-row.is-current .phish-module-row__title {
	color: var( --phish-accent ) !important;
}

.phish-module-row.is-current .phish-module-row__badge .elementor-heading-title {
	color: var( --phish-accent ) !important;
}

/* ----------------------------------------------------------- lesson cards */

.phish-lesson-card {
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.phish-lesson-card:hover {
	transform: translateY( -2px );
	box-shadow: 0 12px 28px rgba( 15, 23, 42, 0.09 );
}

[data-phish-module].is-done .phish-lesson-card__check,
.phish-lesson-card.is-done .phish-lesson-card__check {
	opacity: 1;
}

.phish-lesson-card__check {
	opacity: 0;
	transition: opacity 0.15s ease;
}

/* The topbar centre link has nowhere to go on a narrow screen. */
@media ( max-width: 767px ) {
	.phish-topbar__center {
		display: none !important;
	}
}


/* --------------------------------------------------- whole-row link target */

/*
 * Only the title carries the anchor; this stretches its hit area over the
 * whole row so the number and the counter are clickable too.
 */
.phish-module-row {
	position: relative;
}

.phish-module-row a::after {
	content: "";
	position: absolute;
	inset: 0;
}

body.phish-portal .phish-module-row {
	flex-direction: row;
	align-items: center;
	/*
	 * Elementor containers wrap by default, so a long module title pushed the
	 * tick onto a line of its own instead of letting the title shrink.
	 */
	flex-wrap: nowrap;
}

body.phish-portal .phish-module-row > .phish-module-row__badge,
body.phish-portal .phish-module-row > .elementor-widget {
	flex: 0 0 auto;
	width: auto;
}

body.phish-portal .phish-module-row > .phish-module-row__text {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

/*
 * The icon tile on an About card is a fixed square. Elementor stretches a
 * container to the full row on tablet and phone, which turned the tile into a
 * long bar above the text.
 */
body.phish-portal .phish-feature {
	flex-direction: row;
	align-items: flex-start;
	flex-wrap: nowrap;
}

body.phish-portal .phish-feature > .phish-feature__icon {
	flex: 0 0 auto;
	width: 42px;
	min-width: 42px;
}

body.phish-portal .phish-feature > .phish-feature__icon + .e-con {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

/* The number badge on a module card is a fixed pill, not a full width bar. */
body.phish-portal .phish-module-card__badge {
	flex: 0 0 auto;
	width: 30px;
	min-width: 30px;
}

/*
 * The funding badge above the hero headline hugs its text. Elementor stretches
 * a container to the full row, which turned the tinted pill into a band the
 * width of the hero.
 */
body.phish-portal .phish-hero__badge {
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
	align-self: center;
}

/* The EU flag sits beside the funding line above the footer disclaimer. */
body.phish-portal .phish-footer__eu {
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	align-self: center;
}

body.phish-portal .phish-footer__eu > * {
	flex: 0 0 auto;
	width: auto;
}

body.phish-portal .phish-eu-flag img {
	width: auto;
	max-width: none;
	display: block;
	border-radius: 3px;
}

.phish-module-number {
	font-variant-numeric: tabular-nums;
}

/* Elementor containers are flex, so the hidden attribute needs help. */
.phish-empty-note[hidden],
.elementor-widget[hidden] {
	display: none !important;
}

/* ------------------------------------------------------------- top bar */

/*
 * Three groups: the brand and the actions keep their natural width, the
 * middle one takes what is left. Elementor's flex controls fight the
 * container's own width:100%, so the split is settled here once.
 */
body.phish-portal .phish-topbar > .phish-brand,
body.phish-portal .phish-topbar > .phish-topbar__right {
	flex: 0 0 auto;
	width: auto;
}

body.phish-portal .phish-topbar > .phish-topbar__center {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

body.phish-portal .phish-brand > * {
	flex: 0 0 auto;
}

@media ( max-width: 767px ) {
	/*
	 * One row on a phone: logo, Modules, language. Elementor containers
	 * default to a column direction and stretch to full width, so all three
	 * are pinned to their content and the row is kept from wrapping.
	 */
	body.phish-portal .phish-topbar {
		flex-wrap: nowrap;
		align-items: center;
		column-gap: 8px;
		padding: 8px 14px;
	}

	body.phish-portal .phish-topbar > .phish-brand {
		flex: 0 0 auto;
		width: auto;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
	}

	body.phish-portal .phish-topbar > .phish-topbar__right {
		flex: 1 1 auto;
		width: auto;
		flex-wrap: nowrap;
		justify-content: flex-end;
		gap: 8px;
		margin-left: 0;
	}

	/*
	 * Three controls would not fit a 360px row, so the actions run a size
	 * smaller than on the desktop bar.
	 */
	body.phish-portal .phish-topbar .elementor-button {
		padding: 8px 12px;
		font-size: 13px;
		white-space: nowrap;
	}

	body.phish-portal .phish-lang__toggle {
		padding: 7px 10px;
		font-size: 13px;
		white-space: nowrap;
	}

	/*
	 * "Training Platform" only jumps to the module list, which the Modules
	 * drawer already does on a phone. Dropping it keeps the bar to two
	 * comfortable controls instead of three cramped ones.
	 */
	body.phish-portal .phish-cta-btn {
		display: none !important;
	}
}

/*
 * The logo tile is a fixed square at every breakpoint. Elementor gives its
 * containers width:100% on mobile, which turned the tile into a full-width
 * navy bar with the wordmark underneath.
 */
/*
 * The brand is the supplied logo lockup, so the tile sizing the old placeholder
 * needed is gone: the widget keeps its own height and the image follows it.
 * Elementor stretches a widget to full width on mobile, which would blow the
 * lockup up, so the widget is pinned to its content.
 */
body.phish-portal .phish-brand > .elementor-widget-image {
	flex: 0 0 auto;
	width: auto;
	align-self: center;
}

body.phish-portal .phish-logo img {
	width: auto;
	max-width: none;
	display: block;
}

body.phish-portal .phish-brand {
	flex-direction: row;
	align-items: center;
	white-space: nowrap;
}

/* --------------------------------------------------- lesson card artwork */

/*
 * Card artwork. Elementor containers use their own ::before/::after for
 * background overlays, so the play badge needs a stronger selector than the
 * bare class to win, and the children are pinned so a tall image cannot
 * stretch the 16:9 box.
 */
body.phish-portal .phish-lesson-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	display: block;
}

body.phish-portal .phish-lesson-card__media > * {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

body.phish-portal .phish-lesson-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

body.phish-portal .phish-lesson-card__media::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.92 );
	box-shadow: 0 4px 14px rgba( 15, 23, 42, 0.22 );
	z-index: 3;
	inset: auto;
	left: 50%;
	top: 50%;
}

body.phish-portal .phish-lesson-card__media::before {
	content: "";
	position: absolute;
	z-index: 4;
	left: 50%;
	top: 50%;
	width: 0;
	height: 0;
	margin: -8px 0 0 -4px;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #1a355b;
	background: none;
}

.phish-lesson-card__text p {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


/* Keep the card artwork at a fixed ratio whatever the image's own height. */
.phish-lesson-card__media > .elementor-element,
.phish-lesson-card__media .elementor-widget-container,
.phish-lesson-card__media figure,
.phish-lesson-card__media a {
	height: 100%;
	width: 100%;
	display: block;
}

/* ---------------------------------------------------- two-column layouts */

/*
 * Elementor containers are width:100% by default, so a "grow" column plus a
 * fixed-width sibling adds up to more than the row and the fixed one spills
 * off the right edge. Both pairs are pinned here instead.
 */
body.phish-portal .phish-about__text,
body.phish-portal .phish-lesson-main {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

body.phish-portal .phish-about__cards {
	flex: 0 0 420px;
	width: 420px;
	max-width: 100%;
}

body.phish-portal .phish-lesson-side {
	flex: 0 0 348px;
	width: 348px;
	max-width: 100%;
}

@media ( max-width: 1024px ) {
	body.phish-portal .phish-about__cards,
	body.phish-portal .phish-lesson-side {
		flex: 1 1 auto;
		width: 100%;
	}
}

/*
 * The module column is a grid rather than a flex column.
 *
 * A ratio box has no intrinsic height of its own, and Chromium gives a flex
 * item whose only content is such a box a base size of zero: the player
 * collapsed and the description landed on top of the video. Grid rows measure
 * it correctly. Elementor's own gap still drives the spacing, so the container
 * stays editable in the panel.
 */
body.phish-portal .phish-module-main {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
}

/*
 * A module page fills the space beside the sidebar and starts at the left. The
 * cap only bites on an ultra-wide monitor, where an unbounded video would run
 * past any sensible size.
 */
body.phish-portal .phish-lesson-body > .e-con,
body.phish-portal .phish-module-main {
	width: 100%;
	max-width: 1600px;
	margin-inline: 0;
}

/*
 * Module and lesson pages read as a panel next to the sidebar, so their
 * content starts at the left. Only the home page stays centred.
 */
body.phish-portal [data-elementor-type="archive"] > .e-con,
body.phish-portal [data-elementor-type="single-post"] > .e-con {
	max-width: none;
	margin-inline: 0;
}

/* -------------------------------------------------- dashboard new badge */

.phish-dashboard__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.phish-dashboard__new {
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	padding: 3px 7px;
	border-radius: 999px;
	background-color: #dcfce7;
	color: #15803d;
	white-space: nowrap;
}

.phish-dashboard__new[hidden] {
	display: none !important;
}

/* ------------------------------------------------------- clickable logo */

/*
 * Elementor does not render a link on a container in this version, so the
 * anchor lives on the wordmark and is stretched over the whole lockup.
 */
body.phish-portal .phish-brand {
	position: relative;
}

body.phish-portal .phish-brand a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

/* ----------------------------------------------- legal line in sidebar */

.phish-sidebar-legal {
	margin-top: auto;
	padding-top: 18px;
}

.phish-sidebar-legal .elementor-heading-title {
	line-height: 1.5;
}


/* ------------------------------------------------------------ a11y */

/*
 * Keyboard users need to see where they are, and to be able to jump past
 * the ten-item module list to the content.
 */
.phish-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 400;
	padding: 12px 18px;
	border-radius: 0 0 10px 0;
	background: var( --phish-primary, #1b2641 );
	color: #fff;
	text-decoration: none;
	font-size: 14px;
}

.phish-skip:focus {
	left: 0;
}

body.phish-portal a:focus-visible,
body.phish-portal button:focus-visible,
body.phish-portal .elementor-button:focus-visible {
	outline: 3px solid var( --phish-accent );
	outline-offset: 2px;
	border-radius: 4px;
}

/* The drawer traps nothing, so make its state obvious to assistive tech. */
body.phish-sidebar-open {
	overflow: hidden;
}
