/*
Theme Name: Sarah Jay Hawley
Theme URI: https://www.sarahjayhawley.com/
Author: Agenda Jenga
Description: A calm, clear and accessible block theme for singer, songwriter and writer Sarah Jay Hawley. Paper and feather textures, AAA colour contrast, large readable type, and a built-in text size and high contrast switcher.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 2.5.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarah-jay-hawley
Tags: accessibility-ready, block-patterns, full-site-editing, one-column, wide-blocks, editor-style
*/

/* ---------- Textures ---------- */

body {
	background-color: var(--wp--preset--color--paper);
	background-image: url("assets/textures/paper-tile.jpg");
	background-repeat: repeat;
	background-size: 900px 900px;
	background-blend-mode: multiply;
}

.has-feather-texture {
	background-color: var(--wp--preset--color--paper);
	background-blend-mode: multiply;
	background-image: url("assets/textures/feather.jpg");
	background-size: cover;
	background-position: center;
}

/* Calm balanced line breaks for headings and quotes */
h1, h2, h3, .wp-block-pullquote p {
	text-wrap: balance;
}

/* ---------- Readability ---------- */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

p, li, dd, figcaption {
	max-width: 70ch;
}
.has-text-align-center:is(p) {
	margin-inline: auto;
}

/* Clear, consistent links */
:where(.wp-site-blocks) a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.22em;
}
:where(.wp-site-blocks) a:hover {
	text-decoration-thickness: 0.14em;
}

::selection {
	background: var(--wp--preset--color--sage);
	color: var(--wp--preset--color--white);
}

/* Strong, always-visible keyboard focus */
:where(a, button, input, select, textarea, summary, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--clay);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--wp--preset--color--white);
	border-radius: 4px;
}

/* Comfortable touch targets (at least 44px) */
.wp-element-button,
.wp-block-button__link,
.wp-block-navigation-item__content,
.wp-block-social-link a,
.sjh-a11y button {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.wp-block-navigation .wp-block-navigation-item__content {
	padding-block: 0.35em;
}
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
}
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
	width: 32px;
	height: 32px;
}

/* Only the header menu: hide any old menu or site title saved inside page content */
.wp-block-post-content .wp-block-navigation,
.wp-block-post-content .wp-block-site-title,
.wp-block-post-content .wp-block-site-logo,
.wp-block-post-content .wp-block-page-list {
	display: none !important;
}

/* Dropdown menus: a solid, clearly edged panel */
.wp-block-navigation:not(.is-vertical) .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--mist) !important;
	color: var(--wp--preset--color--ink) !important;
	border: 1px solid rgba(28, 29, 32, 0.25) !important;
	border-radius: 10px;
	padding: 0.5rem !important;
	min-width: 15rem !important;
	box-shadow: 0 18px 36px -20px rgba(28, 29, 32, 0.45);
	z-index: 30;
}
.wp-block-navigation:not(.is-vertical) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.6rem 0.85rem !important;
	border-radius: 6px;
	white-space: nowrap;
	justify-content: flex-start;
}
.wp-block-navigation:not(.is-vertical) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--paper);
	text-decoration: underline;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	box-shadow: none;
}

/* Parent tabs line up with the plain links */
.sjh-main-nav .wp-block-navigation__container {
	align-items: center;
}
.sjh-main-nav .wp-block-navigation__container > li > .wp-block-navigation-item__content {
	display: flex !important;
	align-items: center;
	min-height: 44px;
	padding-block: 0 !important;
	line-height: 1.3;
}

/* Mobile menu: left aligned, group names in bold with their pages indented */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	text-align: left;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-inline: var(--wp--preset--spacing--40);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.25rem !important;
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.25rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content {
	font-weight: 700;
	margin-top: 0.75rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	padding: 0 0 0 1rem !important;
	border: 0 !important;
	border-left: 2px solid var(--wp--preset--color--stone) !important;
	border-radius: 0;
	box-shadow: none;
	min-width: 0 !important;
	gap: 0 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
	display: none;
}

/* Parent tabs: show which group the current page is in */
.wp-block-navigation-submenu:has([aria-current="page"]) > .wp-block-navigation-item__content .wp-block-navigation-item__label {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}
.wp-block-navigation .wp-block-navigation-submenu__toggle {
	cursor: pointer;
}

/* Current page in the menu is underlined, not just coloured */
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation [aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

/* ---------- Block styles ---------- */

/* Eyebrow: small label above headings */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--source-code-pro);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--stone);
	margin-bottom: 0.25rem;
}

/* Signature: decorative Apalu script. Use only for a name or sign-off. */
.is-style-signature {
	font-family: var(--wp--preset--font-family--apalu);
	font-size: 2.6rem;
	line-height: 1.2;
}

/* Outline button */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 2px solid var(--wp--preset--color--ink);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

/* Card: quiet tile with a clear edge */
.wp-block-group.is-style-card {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(71, 66, 61, 0.35);
	border-radius: 14px;
}

/* Rule: editorial item with a strong top line, no box */
.wp-block-group.is-style-rule {
	border-top: 2px solid var(--wp--preset--color--ink);
	padding-top: var(--wp--preset--spacing--30);
}

/* Soft image corners */
.wp-block-image.is-style-soft img,
.wp-block-cover.is-style-soft {
	border-radius: 14px;
}

/* Pull quote signature */
.wp-block-pullquote cite {
	display: block;
	margin-top: 1.25rem;
	font-family: var(--wp--preset--font-family--source-code-pro);
	font-size: 1rem;
	font-style: normal;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--stone);
}

/* FAQ */
.wp-block-details summary {
	font-weight: 700;
	cursor: pointer;
	padding-block: 0.25rem;
}

/* Breathing room on inner pages when the content starts or ends with plain text */
.sjh-page-content > :first-child:not(.alignfull) {
	margin-top: var(--wp--preset--spacing--60);
}
.sjh-page-content > :last-child:not(.alignfull) {
	margin-bottom: var(--wp--preset--spacing--60);
}
.sjh-page-content > .alignfull + .alignfull {
	margin-top: 0;
}

/* Bands sit flush with each other and the footer */
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Social links with visible text labels */
.wp-block-social-links.has-visible-labels .wp-social-link {
	background: transparent !important;
	color: inherit !important;
}
.wp-block-social-links.has-visible-labels .wp-block-social-link-label {
	font-size: 1.0625rem;
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

/* ---------- Music first ---------- */

/* Full-bleed photograph, nothing laid over it */
.wp-block-image.sjh-hero-photo img {
	display: block;
	width: 100%;
	height: min(86vh, 980px);
	min-height: 420px;
	object-fit: cover;
	object-position: center 30%;
}
@media (max-width: 781px) {
	.wp-block-image.sjh-hero-photo img { height: 72vh; }
}

/* Bandcamp artwork players, square */
.sjh-player {
	position: relative;
	aspect-ratio: 1;
	background: var(--wp--preset--color--mist);
	border-radius: 6px;
	overflow: hidden;
}
.sjh-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.sjh-release h3 {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	margin-top: 0.75rem !important;
}
.sjh-release > * { max-width: none; }
.sjh-archive-list {
	margin-top: var(--wp--preset--spacing--50) !important;
	padding-left: 1.2em;
}

/* Videos */
.wp-block-embed.is-type-video .wp-block-embed__wrapper {
	border-radius: 6px;
	overflow: hidden;
	background: var(--wp--preset--color--charcoal);
	color: #FFFFFF; /* readable if a video address ever shows as plain text */
}
.wp-block-embed figcaption {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	text-align: left;
	margin-top: 0.75rem;
}

/* ---------- Exhibition: The Art of Resilience ---------- */

/* Signature device: torn paper strip across a band of gold foil */
.wp-block-group.is-style-torn-foil {
	position: relative;
	isolation: isolate;
	padding-block: clamp(1.1rem, 2.6vw, 1.9rem);
}
.wp-block-group.is-style-torn-foil::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	right: max(var(--wp--style--root--padding-right, 1.5rem), calc((100% - 1180px) / 2));
	width: min(72%, 900px);
	background: #C9A227 url("assets/textures/foil.jpg") repeat-x center / auto 100%;
}
.wp-block-group.is-style-torn-foil > * {
	position: relative;
	isolation: isolate;
	margin: 0 !important;
	max-width: none;
	padding: clamp(1.1rem, 2.4vw, 1.75rem) var(--wp--preset--spacing--40);
	font-family: var(--wp--preset--font-family--source-code-pro);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(1.35rem, 3.2vw, 2.5rem);
	line-height: 1.25;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--charcoal);
	text-align: center;
}
/* the strip of paper, with torn edges */
.wp-block-group.is-style-torn-foil > *::before,
.wp-block-group.is-style-torn-foil > *::after {
	content: "";
	position: absolute;
	inset: 0;
	-webkit-mask: url("assets/textures/torn-mask.svg") center / 100% 100% no-repeat;
	mask: url("assets/textures/torn-mask.svg") center / 100% 100% no-repeat;
}
.wp-block-group.is-style-torn-foil > *::before {
	z-index: -1;
	background: linear-gradient(180deg, #F4F5F7 0%, #E9EBEE 100%);
}
/* a sliver of shadow under the tear gives the paper its thickness */
.wp-block-group.is-style-torn-foil > *::after {
	z-index: -2;
	transform: translateY(4px);
	background: rgba(60, 45, 10, 0.28);
}

/* Gold disc beside the exhibition title (decorative) */
.sjh-disc {
	position: relative;
	isolation: isolate;
}
.sjh-disc::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: clamp(1.5rem, 6vw, 4.5rem);
	right: max(var(--wp--style--root--padding-right, 1.5rem), calc((100% - 1180px) / 2));
	width: clamp(110px, 26vw, 360px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: #C9A227 url("assets/textures/foil-square.jpg") center / cover;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
/* keep the title and introduction clear of the disc */
@media (min-width: 782px) {
	.sjh-disc > :is(h1, p) {
		box-sizing: border-box;
		padding-inline-end: clamp(0px, 28vw, 380px);
	}
}
@media (max-width: 781px) {
	.sjh-disc { padding-top: calc(110px + var(--wp--preset--spacing--40)) !important; }
	.sjh-disc::after { top: var(--wp--preset--spacing--40); right: var(--wp--preset--spacing--40); }
}

/* Charcoal label boxes, as on the posters */
.is-style-label-box {
	display: inline-block;
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--source-code-pro);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.5;
	padding: 0.65rem 1.1rem;
	box-shadow: -5px -5px 0 0 var(--wp--preset--color--white);
	margin-top: 5px;
	margin-left: 5px;
}
.is-style-label-box strong {
	font-weight: 700;
}
.is-style-label-box a {
	color: inherit;
}

/* Key dates: a real sequence, laid out as a timeline */
.sjh-timeline > .wp-block-group {
	border-top: 2px solid var(--wp--preset--color--ink);
	padding-top: var(--wp--preset--spacing--30);
}
.sjh-when {
	font-family: var(--wp--preset--font-family--source-code-pro);
	font-weight: 600;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--stone);
}

/* Workshop colours, taken from the posters and darkened for AAA contrast */
.sjh-ws-collage  { --ws-tint: #D6ECEE; --ws-deep: #184E54; --ws-ink: #0E383D; }
.sjh-ws-freeze   { --ws-tint: #DCE8D6; --ws-deep: #284F25; --ws-ink: #1B3A19; }
.sjh-ws-mask     { --ws-tint: #EBD9EA; --ws-deep: #6A2F5F; --ws-ink: #4C1F43; }
.sjh-ws-voice    { --ws-tint: #F1E2CC; --ws-deep: #663C07; --ws-ink: #482A04; }
.sjh-ws-writing  { --ws-tint: #E2DDF0; --ws-deep: #4F3A78; --ws-ink: #382858; }
.sjh-ws-grounded { --ws-tint: #D7E3F2; --ws-deep: #234B6D; --ws-ink: #16334D; }

/* Full workshop entry */
.sjh-workshop {
	position: relative;
	background: var(--ws-tint, var(--wp--preset--color--mist));
	border-radius: 20px;
	overflow: hidden;
}
.sjh-workshop::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 10px;
	background: var(--ws-deep, var(--wp--preset--color--ink));
}
.sjh-workshop .sjh-day {
	font-size: clamp(2.6rem, 5vw, 3.6rem);
	line-height: 1;
	color: var(--ws-deep);
	margin: 0;
}
.sjh-workshop .sjh-date {
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--ws-deep);
	margin-top: 0.4rem !important;
}
.sjh-workshop .sjh-date::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 7px;
	margin-top: 0.75rem;
	background: #C9A227 url("assets/textures/foil.jpg") center / auto 100%;
	border-radius: 2px;
}
.sjh-workshop h3,
.sjh-workshop .sjh-kind {
	color: var(--ws-deep);
}
.sjh-workshop h3 {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 400;
	line-height: 1.15;
}
.sjh-workshop .sjh-kind {
	font-weight: 700;
	margin-top: 0.35rem !important;
}
.sjh-workshop .sjh-with {
	font-family: var(--wp--preset--font-family--source-code-pro);
	font-weight: 500;
	font-size: 1.0625rem;
}
.sjh-workshop .wp-block-button__link {
	background: var(--ws-deep);
	border-color: var(--ws-deep);
	color: #FFFFFF;
}
.sjh-workshop .wp-block-button__link:hover,
.sjh-workshop .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
}
.sjh-workshop .wp-block-image img {
	border-radius: 14px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}
.sjh-workshop .sjh-bio {
	border-top: 1px solid var(--ws-deep);
	padding-top: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
}

/* Compact workshop row (exhibition page overview) */
.sjh-ws-row {
	display: grid;
	grid-template-columns: 12rem 1fr auto;
	gap: 0.5rem 1.5rem;
	align-items: baseline;
	padding-block: 1.1rem;
	border-top: 2px solid var(--ws-deep, var(--wp--preset--color--ink));
}
.sjh-ws-row > * { margin: 0 !important; }
.sjh-ws-row .sjh-when { color: var(--ws-ink); }
.sjh-ws-row h3 { font-size: var(--wp--preset--font-size--large); font-weight: 400; color: var(--ws-ink); }
.sjh-ws-row .sjh-with { font-family: var(--wp--preset--font-family--source-code-pro); font-size: 1.0625rem; color: var(--wp--preset--color--stone); }
@media (max-width: 781px) {
	.sjh-ws-row { grid-template-columns: 1fr; }
}

/* Homepage banner */
.wp-block-image.sjh-banner {
	margin-block: 0;
}
.wp-block-image.sjh-banner img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wp-block-image.sjh-banner a:hover img,
.wp-block-image.sjh-banner a:focus-visible img {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -18px rgba(28, 29, 32, 0.55);
}
.wp-block-image.sjh-banner figcaption {
	margin-top: 0.85rem;
	text-align: left;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
}
.wp-block-image.sjh-banner figcaption a {
	font-weight: 700;
	white-space: nowrap;
}

/* Workshops accordion: banner as cover, Read more button underneath */
.sjh-acc .wp-block-image.sjh-acc-trigger {
	margin: 0;
}
.sjh-acc .sjh-acc-trigger img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}
.sjh-acc-button {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: var(--wp--preset--spacing--30);
	min-height: 48px;
	padding: 0.5rem 1.4rem;
	font: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--ws-ink, var(--wp--preset--color--ink));
	background: transparent;
	border: 2px solid var(--ws-ink, var(--wp--preset--color--ink));
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.sjh-acc-button::after {
	content: "";
	width: 0.55em;
	height: 0.55em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-25%) rotate(45deg);
	transition: transform 0.2s ease;
}
.sjh-acc-button:hover,
.sjh-acc.is-open .sjh-acc-button {
	background: var(--ws-ink, var(--wp--preset--color--ink));
	color: #FFFFFF;
}
.sjh-acc.is-open .sjh-acc-button::after {
	transform: translateY(20%) rotate(225deg);
}
.sjh-acc .sjh-acc-panel {
	margin-top: var(--wp--preset--spacing--30) !important;
}
.sjh-acc .sjh-acc-panel:not([hidden]) {
	animation: sjh-reveal 0.28s ease-out;
}
@keyframes sjh-reveal {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}
.sjh-acc .sjh-date {
	font-size: var(--wp--preset--font-size--medium) !important;
}
.sjh-acc .sjh-date::after {
	display: none !important;
}

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

.sjh-a11y {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem 1rem;
	font-size: 1rem;
	font-family: var(--wp--preset--font-family--soleil);
}
.sjh-a11y[hidden] {
	display: none;
}
.sjh-a11y__group {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}
.sjh-a11y__label {
	color: var(--wp--preset--color--stone);
}
.sjh-a11y button {
	font: inherit;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
	background: transparent;
	border: 2px solid var(--wp--preset--color--stone);
	border-radius: 999px;
	padding: 0.2rem 0.9rem;
	min-width: 44px;
	cursor: pointer;
}
.sjh-a11y button[aria-pressed="true"] {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

/* Larger text: everything is sized in rem, so this scales the whole site */
html.sjh-text-large { font-size: 118.75%; }
html.sjh-text-xlarge { font-size: 137.5%; }

/* High contrast: plain white, black text, no textures, script swapped for plain type */
html.sjh-contrast {
	--wp--preset--color--ink: #000000;
	--wp--preset--color--stone: #000000;
	--wp--preset--color--paper: #FFFFFF;
	--wp--preset--color--mist: #FFFFFF;
	--wp--preset--color--sage: #00337A;
	--wp--preset--color--clay: #00337A;
	--wp--preset--color--forest: #000000;
}
html.sjh-contrast body,
html.sjh-contrast .has-feather-texture,
html.sjh-contrast .has-paper-texture {
	background-image: none !important;
	background-color: #FFFFFF;
}
html.sjh-contrast .wp-block-cover__image-background {
	display: none;
}
html.sjh-contrast .wp-block-cover__background {
	background-color: #FFFFFF !important;
	opacity: 1 !important;
}
html.sjh-contrast .wp-block-cover,
html.sjh-contrast .wp-block-cover * {
	color: #000000 !important;
}
html.sjh-contrast .wp-block-group.has-forest-background-color {
	background-color: #000000 !important;
}
html.sjh-contrast .wp-block-group.has-mist-background-color {
	background: #FFFFFF !important;
	border-top: 2px solid #000000;
	border-bottom: 2px solid #000000;
}
html.sjh-contrast .wp-block-group.is-style-card {
	background: #FFFFFF !important;
	border: 2px solid #000000;
}
html.sjh-contrast .wp-block-site-title,
html.sjh-contrast .is-style-signature {
	font-family: var(--wp--preset--font-family--soleil) !important;
	font-weight: 700;
	font-size: 1.6rem;
}
html.sjh-contrast a {
	text-decoration-thickness: 0.12em;
}
html.sjh-contrast .wp-block-navigation__submenu-container {
	background: #FFFFFF !important;
	border: 2px solid #000000 !important;
	box-shadow: none;
}
html.sjh-contrast .is-style-torn-foil::before,
html.sjh-contrast .sjh-disc::after,
html.sjh-contrast .sjh-date::after,
html.sjh-contrast .sjh-workshop::before {
	display: none;
}
html.sjh-contrast .is-style-torn-foil > *::before,
html.sjh-contrast .is-style-torn-foil > *::after {
	display: none;
}
html.sjh-contrast .is-style-torn-foil > * {
	background: #FFFFFF;
	color: #000000;
	border-block: 2px solid #000000;
}
html.sjh-contrast .sjh-workshop {
	--ws-tint: #FFFFFF;
	--ws-deep: #000000;
	border: 2px solid #000000;
}
html.sjh-contrast .sjh-ws-row,
html.sjh-contrast .sjh-acc {
	--ws-deep: #000000;
	--ws-ink: #000000;
}
html.sjh-contrast .is-style-label-box {
	background: #000000;
	box-shadow: none;
}

/* Respect the visitor's own system settings too */
@media (prefers-contrast: more) {
	body { background-image: none; }
	.wp-block-group.is-style-card { border-color: currentColor; }
}
@media (forced-colors: active) {
	.wp-block-button__link,
	.sjh-a11y button { border: 2px solid ButtonText; }
	.wp-block-group.is-style-card { border: 1px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	body { background: #FFFFFF; }
	.sjh-acc-panel[hidden] { display: block !important; }
	.sjh-acc-button { display: none; }
	.sjh-a11y, .wp-block-navigation { display: none; }
}

/* Hidden text for screen readers (adds context to short link labels) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 781px) {
	.sjh-workshop .sjh-portrait,
	.sjh-workshop .wp-block-group:has(> .sjh-portrait) {
		max-width: 300px;
	}
}
