/**
 * Bevel front-end styles.
 *
 * A foundation, not a design: enough to make unstyled WordPress look considered,
 * scoped tightly enough that a page builder never has to fight it. Everything
 * here reads from the same tokens theme.json declares.
 */

:root {
	--bevel-primary: #4f46e5;
	--bevel-primary-dark: #4338ca;
	--bevel-foreground: #0f172a;
	--bevel-muted: #64748b;
	--bevel-border: #e2e8f0;
	--bevel-background: #ffffff;
	--bevel-surface: #f8fafc;

	--bevel-content: 800px;
	--bevel-wide: 1200px;
	--bevel-gutter: 24px;

	--bevel-radius: 8px;
	--bevel-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--bevel-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* With Elementor on the site, its Global Colors lead: the kit prints them as
   --e-global-color-* on the body, so the theme's own tokens are re-read there
   and follow Site Settings. Without Elementor the fallbacks are the values above. */
body {
	--bevel-primary: var(--e-global-color-primary, #4f46e5);
	--bevel-foreground: var(--e-global-color-text, #0f172a);
	--bevel-border: var(--e-global-color-border, #e2e8f0);
	--bevel-surface: var(--e-global-color-light, #f8fafc);
}

@supports (color: color-mix(in srgb, red, blue)) {
	body {
		--bevel-primary-dark: color-mix(in srgb, var(--bevel-primary), #000 15%);
	}
}

/* Base
   ------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

*,
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--bevel-background);
	color: var(--bevel-foreground);
	font-family: var(--bevel-font);
	font-size: 17px;
	line-height: 1.65;
	margin: 0;
}

/* A full-width section that slides or scales in must not leave a horizontal
   scrollbar behind. Not in the block editor, where the wrapper stands in for
   the body and clipping it would cut off block toolbars. */
body:not(.editor-styles-wrapper) {
	overflow-x: hidden;
}

/* Normalize: what browsers still disagree on, settled here so a page builder
   never has to. */

button,
hr,
input {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

[type="checkbox"],
[type="radio"],
legend {
	box-sizing: border-box;
	padding: 0;
}

legend {
	color: inherit;
	display: table;
	max-width: 100%;
	white-space: normal;
}

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

a,
table {
	background-color: transparent;
}

abbr[title] {
	border-block-end: none;
	text-decoration: underline dotted;
}

b,
strong {
	font-weight: bolder;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

progress {
	vertical-align: baseline;
}

details {
	display: block;
}

summary {
	display: list-item;
}

[hidden],
template {
	display: none;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

img,
video,
canvas,
svg,
iframe,
embed,
object {
	max-width: 100%;
}

img,
video {
	height: auto;
}

img {
	border-style: none;
}

figure {
	margin: 0;
}

hr {
	background: var(--bevel-border);
	border: 0;
	height: 1px;
	margin: 40px 0;
}

/* Typography
   ------------------------------------------------------------------------- */

/* Long words — a title that is one unbroken string, a URL pasted into a comment — wrap inside their
   column instead of running out of it; the body clips horizontal overflow, so they would be cut
   off. */
body {
	overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.site-title,
.site-description,
.site-nav__list a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: inherit;
	font-family: inherit;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 1.8em 0 0.6em;
	text-wrap: balance;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
	margin-top: 0;
}

p,
ul,
ol,
dl,
table,
pre,
blockquote {
	margin: 0 0 1.2em;
}

/* Text a builder widget wraps on its own carries no margin of its own at either end. */
p:first-child {
	margin-top: 0;
}

p:last-child {
	margin-bottom: 0;
}

ul,
ol {
	padding-inline-start: 1.4em;
}

li > ul,
li > ol {
	margin-bottom: 0;
}

small {
	color: var(--bevel-muted);
	font-size: 0.875rem;
}

code,
kbd,
samp,
pre {
	font-family: var(--bevel-mono);
	font-size: 0.9em;
}

code {
	background: var(--bevel-surface);
	border-radius: 4px;
	padding: 0.15em 0.4em;
}

pre {
	background: var(--bevel-surface);
	border: 1px solid var(--bevel-border);
	border-radius: var(--bevel-radius);
	overflow-x: auto;
	padding: 16px 20px;
}

pre code {
	background: none;
	padding: 0;
}

blockquote {
	border-inline-start: 3px solid var(--bevel-primary);
	color: var(--bevel-muted);
	font-size: 1.1rem;
	margin-inline: 0;
	padding: 4px 0;
	padding-inline-start: 20px;
}

blockquote > :last-child {
	margin-bottom: 0;
}

table {
	border-collapse: collapse;
	width: 100%;
}

th,
td {
	border-bottom: 1px solid var(--bevel-border);
	padding: 10px 12px;
	text-align: start;
	vertical-align: top;
}

th {
	font-weight: 600;
}

/* Links and focus
   ------------------------------------------------------------------------- */

a {
	color: var(--bevel-primary);
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--bevel-primary-dark);
}

/* :where() keeps this at the weight of a bare `a`, so it still beats the link colour above but
   gives way to any class: an Elementor button with no link is an <a> without href too, and at
   full weight this rule took its text colour away from the button styles. */
a:where(:not([href]):not([tabindex])),
a:where(:not([href]):not([tabindex])):hover,
a:where(:not([href]):not([tabindex])):focus {
	color: inherit;
	text-decoration: none;
}

:focus-visible {
	outline: 2px solid var(--bevel-primary);
	outline-offset: 2px;
}

/* A mouse click focuses too; the ring is for the keyboard. */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[type="button"]:focus:not(:focus-visible),
[type="submit"]:focus:not(:focus-visible) {
	outline: 0;
}

/* Layout
   ------------------------------------------------------------------------- */

.site-header__inner,
.site-footer__inner,
.site-main {
	margin-inline: auto;
	max-width: var(--bevel-content);
	padding-inline: var(--bevel-gutter);
	width: 100%;
}

.site-main {
	padding-block: 48px 72px;
}

/* Header
   ------------------------------------------------------------------------- */

.site-header {
	border-bottom: 1px solid var(--bevel-border);
}

.site-header__inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	justify-content: space-between;
	max-width: var(--bevel-wide);
	padding-block: 20px;
}

.site-title {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-title a {
	color: var(--bevel-foreground);
	text-decoration: none;
}

.site-description {
	color: var(--bevel-muted);
	font-size: 0.875rem;
	margin: 2px 0 0;
}

.custom-logo {
	display: block;
	height: auto;
	max-height: 56px;
	width: auto;
}

/* Navigation
   ------------------------------------------------------------------------- */

.site-nav__list,
.site-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	color: var(--bevel-foreground);
	display: block;
	font-size: 0.95rem;
	font-weight: 500;
	padding: 4px 0;
	text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list a:focus,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
	color: var(--bevel-primary);
}

.site-nav__list li {
	position: relative;
}

.site-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* The button after a parent item's link (inc/navigation.php): opens its sub-menu by click, tap or
   keyboard. Scoped to the menu so the bare-button style further down does not dress it. */
.site-nav .sub-menu-toggle {
	align-items: center;
	background: none;
	border: 0;
	border-radius: var(--bevel-radius);
	color: var(--bevel-foreground);
	cursor: pointer;
	display: inline-flex;
	flex: none;
	height: 28px;
	justify-content: center;
	padding: 0;
	width: 28px;
}

.site-nav .sub-menu-toggle:hover,
.site-nav .sub-menu-toggle:focus {
	background: none;
	color: var(--bevel-primary);
}

.sub-menu-toggle__icon {
	transition: transform 0.15s ease;
}

.sub-menu-toggle[aria-expanded="true"] .sub-menu-toggle__icon {
	transform: rotate(180deg);
}

@media (min-width: 783px) {
	.site-nav__list > li,
	.site-nav__list .sub-menu > li {
		align-items: center;
		display: flex;
	}

	.site-nav__list > li > .sub-menu-toggle {
		margin-inline-start: 2px;
		width: 20px;
	}

	/* Dropdowns: closed until hovered, focused into, or opened with their button. */
	.site-nav__list .sub-menu {
		background: var(--bevel-background, #fff);
		border: 1px solid var(--bevel-border);
		border-radius: var(--bevel-radius);
		box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
		inset-inline-start: -12px;
		max-width: 320px;
		min-width: 200px;
		opacity: 0;
		padding: 6px;
		position: absolute;
		top: 100%;
		transform: translateY(4px);
		transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
		visibility: hidden;
		width: max-content;
		z-index: 100;
	}

	.site-nav__list li:hover > .sub-menu,
	.site-nav__list li:focus-within > .sub-menu,
	.site-nav__list li.is-open > .sub-menu {
		opacity: 1;
		transform: none;
		visibility: visible;
	}

	/* Escape keeps a sub-menu shut while the pointer or focus is still on its parent. */
	.site-nav__list li.is-dismissed > .sub-menu {
		opacity: 0;
		transform: translateY(4px);
		visibility: hidden;
	}

	/* Deeper levels fly out beside their parent... */
	.site-nav__list .sub-menu .sub-menu {
		inset-inline-start: 100%;
		top: -7px;
	}

	/* ...or to the other side when there is no room for them (navigation.js measures). */
	.site-nav__list .sub-menu.sub-menu--flip {
		inset-inline-end: -12px;
		inset-inline-start: auto;
	}

	.site-nav__list .sub-menu .sub-menu.sub-menu--flip {
		inset-inline-end: 100%;
	}

	.site-nav__list .sub-menu > li {
		justify-content: space-between;
	}

	.site-nav__list .sub-menu a {
		border-radius: calc(var(--bevel-radius) - 2px);
		flex: 1;
		padding: 8px 10px;
	}

	.site-nav__list .sub-menu a:hover,
	.site-nav__list .sub-menu a:focus {
		background: var(--bevel-surface);
	}

	/* A nested item's chevron points the way its sub-menu opens. */
	.site-nav__list .sub-menu .sub-menu-toggle__icon,
	.site-nav__list .sub-menu .sub-menu-toggle[aria-expanded="true"] .sub-menu-toggle__icon {
		transform: rotate(-90deg);
	}

	[dir="rtl"] .site-nav__list .sub-menu .sub-menu-toggle__icon,
	[dir="rtl"] .site-nav__list .sub-menu .sub-menu-toggle[aria-expanded="true"] .sub-menu-toggle__icon {
		transform: rotate(90deg);
	}
}

.site-nav-toggle {
	background: none;
	border: 1px solid var(--bevel-border);
	border-radius: var(--bevel-radius);
	cursor: pointer;
	display: none;
	height: 40px;
	padding: 0;
	width: 44px;
}

.site-nav-toggle__bars,
.site-nav-toggle__bars::before,
.site-nav-toggle__bars::after {
	background: var(--bevel-foreground);
	border-radius: 1px;
	display: block;
	height: 2px;
	width: 18px;
}

.site-nav-toggle__bars {
	margin: 0 auto;
	position: relative;
}

.site-nav-toggle__bars::before,
.site-nav-toggle__bars::after {
	content: "";
	position: absolute;
}

.site-nav-toggle__bars::before { top: -6px; }
.site-nav-toggle__bars::after  { top: 6px; }

/* Entry content
   ------------------------------------------------------------------------- */

.page-header {
	margin-bottom: 32px;
}

.page-header .entry-title {
	margin: 0;
}

.archive-description {
	color: var(--bevel-muted);
	margin: 12px 0 0;
}

.page-content > :last-child {
	margin-bottom: 0;
}

.post-tags {
	border-top: 1px solid var(--bevel-border);
	color: var(--bevel-muted);
	font-size: 0.9rem;
	margin-top: 48px;
	padding-top: 20px;
}

/* Archive listing
   ------------------------------------------------------------------------- */

.page-content > article {
	border-bottom: 1px solid var(--bevel-border);
	margin-bottom: 40px;
	padding-bottom: 40px;
}

.page-content > article:last-of-type {
	border-bottom: 0;
	margin-bottom: 0;
}

.page-content > article .entry-title {
	font-size: 1.5rem;
	margin: 0 0 12px;
}

.page-content > article .entry-title a {
	color: var(--bevel-foreground);
	text-decoration: none;
}

.page-content > article .entry-title a:hover,
.page-content > article .entry-title a:focus {
	color: var(--bevel-primary);
}

.page-content > article img {
	border-radius: var(--bevel-radius);
	margin-bottom: 16px;
}

.sticky {
	background: var(--bevel-surface);
	border-radius: var(--bevel-radius);
	padding: 24px;
}

/* Pagination
   ------------------------------------------------------------------------- */

.pagination {
	border-top: 1px solid var(--bevel-border);
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-top: 48px;
	padding-top: 24px;
}

.pagination a {
	font-weight: 500;
	text-decoration: none;
}

.meta-nav {
	display: inline-block;
	padding: 0 4px;
}

/* Comments
   ------------------------------------------------------------------------- */

.comments-area {
	border-top: 1px solid var(--bevel-border);
	margin-top: 56px;
	padding-top: 32px;
}

.comment-list {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
}

.comment-list ol.children {
	list-style: none;
	margin: 0;
	padding-inline-start: 28px;
}

.comment-list .comment-body {
	border-bottom: 1px solid var(--bevel-border);
	padding: 20px 0;
}

.comment-list .avatar {
	border-radius: 50%;
	margin-inline-end: 10px;
	vertical-align: middle;
}

.comment-meta {
	color: var(--bevel-muted);
	font-size: 0.875rem;
}

.comment-reply-title,
.title-comments {
	font-size: 1.25rem;
}

.bypostauthor > .comment-body .fn {
	font-weight: 700;
}

/* Forms and buttons
   ------------------------------------------------------------------------- */

/* Every control takes the page's font. Browsers give buttons and selects their
   own UI font otherwise, and a builder's form widget inherits from here. */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	margin: 0;
}

/* Dressed at zero specificity (:where), so a page builder's own field styles, which
   start at a single class, always win; an attribute selector like input[type="text"]
   would outrank them and give inputs and textareas different padding. */
:where(input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea) {
	background: var(--bevel-background);
	border: 1px solid var(--bevel-border);
	border-radius: var(--bevel-radius);
	color: var(--bevel-foreground);
	max-width: 100%;
	padding: 10px 12px;
	transition: border-color 0.3s;
	width: 100%;
}

:where(input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea):focus {
	border-color: var(--bevel-primary);
}

textarea {
	min-height: 140px;
	overflow: auto;
	resize: vertical;
}

label {
	display: inline-block;
	margin-bottom: 6px;
	vertical-align: middle;
}

.comment-form label,
.search-form label,
.post-password-form label {
	font-size: 0.9rem;
	font-weight: 500;
}

/* A bare button is a quiet one: no fill, the primary colour as text, a fill on
   hover. A builder's button widget sets everything it cares about on top of
   this, and nothing here gets in its way. */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
	width: auto;
}

button,
[type="button"],
[type="submit"] {
	background-color: transparent;
	border: none;
	border-radius: var(--bevel-radius);
	color: var(--bevel-primary);
	display: inline-block;
	font-size: 1rem;
	font-weight: 400;
	padding: 0.5rem 1rem;
	text-align: center;
	transition: 0.3s;
	-webkit-user-select: none;
	user-select: none;
	white-space: nowrap;
}

button:hover,
button:focus,
[type="button"]:hover,
[type="button"]:focus,
[type="submit"]:hover,
[type="submit"]:focus {
	background-color: var(--bevel-primary);
	color: #fff;
	text-decoration: none;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
.elementor-button {
	cursor: pointer;
}

/* The theme's own buttons keep their fill. */
.button,
.wp-block-button__link,
.search-form .search-submit,
.comment-form .submit {
	background: var(--bevel-primary);
	border: 0;
	border-radius: var(--bevel-radius);
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 11px 20px;
	text-decoration: none;
	width: auto;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.search-form .search-submit:hover,
.search-form .search-submit:focus,
.comment-form .submit:hover,
.comment-form .submit:focus {
	background: var(--bevel-primary-dark);
	color: #fff;
}

.site-nav-toggle:hover {
	background: var(--bevel-surface);
}

.search-form {
	display: flex;
	gap: 8px;
}

/* WordPress alignment and media
   ------------------------------------------------------------------------- */

/* Physical floats, flipped for RTL below: `float: inline-start` is still too
   thinly supported to be the only rule that positions an aligned image. */
.alignleft {
	float: left;
	margin: 0.4em 0 1em;
	margin-inline-end: 1.5em;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em;
	margin-inline-start: 1.5em;
}

[dir="rtl"] .alignleft {
	float: right;
}

[dir="rtl"] .alignright {
	float: left;
}

.aligncenter {
	clear: both;
	display: block;
	margin-inline: auto;
}

.alignwide {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: auto;
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: auto;
}

.page-content > .alignwide {
	margin-inline: auto;
	max-width: var(--bevel-wide);
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption,
figcaption {
	color: var(--bevel-muted);
	font-size: 0.875rem;
	margin-top: 8px;
	text-align: center;
}

.wp-block-image img {
	border-radius: var(--bevel-radius);
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--bevel-border);
}

.wp-block-pullquote,
.wp-block-quote {
	border-inline-start: 3px solid var(--bevel-primary);
	padding-inline-start: 20px;
}

.wp-block-table td,
.wp-block-table th {
	border: 1px solid var(--bevel-border);
}

.wp-block-code {
	background: var(--bevel-surface);
	border: 1px solid var(--bevel-border);
	border-radius: var(--bevel-radius);
	padding: 16px 20px;
}

/* Footer
   ------------------------------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--bevel-border);
	color: var(--bevel-muted);
	font-size: 0.9rem;
	margin-top: auto;
}

.site-footer__inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	justify-content: space-between;
	max-width: var(--bevel-wide);
	padding-block: 28px;
}

.site-footer__credit {
	margin: 0;
}

.site-footer__list a {
	color: var(--bevel-muted);
	text-decoration: none;
}

.site-footer__list a:hover,
.site-footer__list a:focus {
	color: var(--bevel-primary);
}

/* Accessibility
   ------------------------------------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.screen-reader-text:focus,
.skip-link:focus {
	background: var(--bevel-background);
	border-radius: var(--bevel-radius);
	box-shadow: 0 2px 12px rgb(15 23 42 / 18%);
	clip-path: none;
	color: var(--bevel-primary);
	font-weight: 600;
	height: auto;
	inset-inline-start: 16px;
	padding: 12px 20px;
	top: 16px;
	width: auto;
	z-index: 100000;
}

/* Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 782px) {
	body {
		font-size: 16px;
	}

	h1 { font-size: 1.875rem; }
	h2 { font-size: 1.5rem; }
	h3 { font-size: 1.25rem; }

	.site-header__inner {
		flex-wrap: nowrap;
	}

	.site-nav-toggle {
		display: block;
	}

	.site-nav {
		display: none;
		flex-basis: 100%;
		order: 3;
	}

	.site-nav.is-open {
		display: block;
		padding-bottom: 8px;
	}

	.site-header__inner {
		flex-wrap: wrap;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.site-nav__list > li {
		border-top: 1px solid var(--bevel-border);
	}

	.site-nav__list li {
		align-items: center;
		display: flex;
		flex-wrap: wrap;
	}

	.site-nav__list li > a {
		flex: 1;
	}

	.site-nav__list a {
		padding: 10px 0;
	}

	.site-nav .sub-menu-toggle {
		height: 44px;
		width: 44px;
	}

	.site-nav__list .sub-menu {
		display: none;
		flex-basis: 100%;
		padding-inline-start: 16px;
	}

	.site-nav__list li.is-open > .sub-menu {
		display: block;
	}

	.site-nav__list .sub-menu > li {
		border-top: 1px solid var(--bevel-border);
	}

	.site-main {
		padding-block: 32px 56px;
	}

	.alignleft,
	.alignright {
		float: none;
		margin-inline: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* Print
   ------------------------------------------------------------------------- */

@media print {
	*,
	*::before,
	*::after {
		background: none !important;
		box-shadow: none !important;
		color: #000 !important;
		text-shadow: none !important;
	}

	a,
	a:visited {
		text-decoration: underline;
	}

	a[href]::after {
		content: " (" attr(href) ")";
	}

	abbr[title]::after {
		content: " (" attr(title) ")";
	}

	a[href^="#"]::after,
	a[href^="javascript:"]::after {
		content: "";
	}

	pre {
		white-space: pre-wrap !important;
	}

	blockquote,
	pre {
		border: 1px solid #ccc;
	}

	blockquote,
	img,
	pre,
	tr {
		break-inside: avoid;
	}

	thead {
		display: table-header-group;
	}

	h2,
	h3,
	p {
		orphans: 3;
		widows: 3;
	}

	h2,
	h3 {
		break-after: avoid;
	}
}
